/* Reset & Grundlagen ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper-100);
  color: var(--paper-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: inherit;
  /* Lange deutsche Komposita (z. B. "zusammenzuarbeiten") duerfen auf
     schmalen Viewports mitten im Wort umbrechen statt zu ueberlaufen.
     hyphens:auto (mit lang="de" auf <html>) setzt dabei einen echten
     Trennstrich statt eines rohen Wortbruchs. */
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: var(--text-3xl); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4vw + 1rem, var(--text-2xl)); }
h3 { font-size: var(--text-xl); }
p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--brand-500); }
a.link, .content a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 0.15em; }
a.contact-link { text-decoration: underline; text-underline-offset: 0.15em; }
a.contact-link:hover { color: var(--brand-600); }
:where(.dark-section) a.contact-link:hover { color: var(--brand-400); }

ul, ol { padding-left: 1.25em; }

label { display: block; font-size: var(--text-sm); margin-bottom: 0.35em; font-weight: 500; }
input, select, textarea, button { font: inherit; }
input, select, textarea {
  width: 100%;
  padding: 0.7em 0.85em;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-sm);
  background: var(--paper-000);
  color: var(--paper-text);
}
input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-600);
}
:where(.dark-section) .eyebrow { color: var(--brand-400); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip-Link ("Direkt zum Inhalt", siehe layouts/base.njk) --------------------
   Bewusst NICHT display:none/visibility:hidden (waere dann nicht fokussierbar).
   Ruhezustand: per transform ausserhalb des sichtbaren Bereichs, reserviert
   keinen Layoutplatz (position:absolute). Erst bei :focus (Tab-Taste) wieder
   eingeblendet - reiner CSS-Mechanismus, kein JavaScript. z-index liegt ueber
   allen anderen Ebenen der Seite (Header 50, Lightbox 200, Cookie-Banner/
   -Dialog 300/310). */
.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 1000;
  transform: translateY(-150%);
  padding: 0.65em 1.1em;
  background: var(--ink-900);
  color: var(--ink-text);
  border: 1px solid var(--brand-500);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}
