/* Serponado - serponado.org
   Max-Kontrast Schwarz auf Weiss. Mobile-first. CLS = 0. Null JavaScript. */

/* Reiner System-Font-Stack: kein Netzwerk-Request, kein FOIT, kein CLS. */

:root {
  --ink: #000;
  --paper: #fff;
  --rule: #000;
  --maxw: 46rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.25rem; /* 20px Grundschrift */
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Skip-Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* Fokus-Stile, durchgaengig sichtbar */
a:focus-visible,
button:focus-visible,
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header / Brand */
.site-header {
  border-bottom: 4px solid var(--rule);
}
.site-header .wrap {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.brandmark {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
}
.brandmark a {
  color: inherit;
  text-decoration: none;
}

/* Hero / H1 */
.hero {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 4px solid var(--rule);
}
h1 {
  font-size: clamp(3rem, 12vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 1.25rem;
}
.brand-claim {
  font-size: 1.4rem;
  line-height: 1.55;
  font-weight: 400;
  margin: 0;
  max-width: 42rem;
}

/* Ueberschriften-Hierarchie */
h2 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 3rem 0 1rem;
  scroll-margin-top: 1.5rem;
}
h3 {
  font-size: clamp(1.35rem, 3.2vw, 1.6rem);
  line-height: 1.25;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
}

p {
  margin: 0 0 1.25rem;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 2px;
}
a:hover {
  text-decoration-thickness: 4px;
}

/* TOC */
.toc {
  margin: 2.5rem 0 1rem;
  padding: 1.5rem;
  border: 4px solid var(--rule);
}
.toc h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}
.toc ol {
  margin: 0;
  padding-left: 1.4rem;
}
.toc li {
  margin: 0.4rem 0;
  font-weight: 700;
}

/* Definitions-Block (apodiktisch) als visueller Anker */
.lead-def {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
  border-left: 8px solid var(--rule);
  padding-left: 1.25rem;
  margin: 0 0 1.5rem;
}

/* Methode als scanbare Schritt-Chunks */
.steps {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  counter-reset: step;
}
.steps > li {
  counter-increment: step;
  border-top: 3px solid var(--rule);
  padding: 1.25rem 0;
}
.steps > li::before {
  content: "Schritt " counter(step);
  display: block;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.steps > li strong {
  font-weight: 800;
}

/* Faktor-Liste GEO */
.factors {
  margin: 1.25rem 0;
  padding-left: 1.4rem;
}
.factors li {
  margin: 0.6rem 0;
}

/* Frag-die-KI-Box */
.ask-ai {
  margin: 3rem 0;
  padding: 1.75rem;
  border: 4px solid var(--rule);
}
.ask-ai h2 {
  margin-top: 0;
}
.ask-ai .license {
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.ai-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.ai-buttons a {
  display: inline-block;
  border: 3px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  padding: 0.85rem 1.25rem;
  font-weight: 800;
  text-decoration: none;
  min-height: 48px; /* Touch-Target */
  line-height: 1.4;
}
.ai-buttons a:hover,
.ai-buttons a:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* FAQ */
.faq dt {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 1.75rem 0 0.4rem;
}
.faq dd {
  margin: 0 0 1.25rem;
  padding: 0;
}

/* Footer */
.site-footer {
  border-top: 4px solid var(--rule);
  margin-top: 3rem;
}
.site-footer .wrap {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  font-size: 1.05rem;
}
.site-footer p {
  margin: 0 0 0.5rem;
}

/* Tablet / Desktop */
@media (min-width: 48rem) {
  body {
    font-size: 1.375rem; /* 22px */
  }
  .hero {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .ai-buttons a {
    padding: 1rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}

/* Tabellen */
.table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
}
caption {
  text-align: left;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
th,
td {
  border: 3px solid var(--rule);
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  font-size: 1.05rem;
  line-height: 1.45;
}
thead th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
}
tbody th {
  font-weight: 800;
}

/* Methode-Diagramm */
.method-diagram {
  margin: 2rem 0;
}
.method-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}
.method-diagram figcaption {
  font-size: 1rem;
  margin-top: 0.6rem;
}
