/*
 * Kummerkasten – Basis-Reset und Seitenlayout (Header, Navigation, Footer,
 * Hintergrund-Bühne). Alle Elemente sind standardmäßig sichtbar - keine
 * opacity:0/visibility:hidden-Reveal-Effekte, die ohne funktionierendes
 * JavaScript (oder unter Safari file://) Inhalte dauerhaft verstecken könnten.
 */

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  /* Bewusster Rückfall gegen horizontalen Overflow (Vorgabe: Null Overflow
     auf Mobil). Fängt insbesondere vw/vmax-große, dekorative Elemente ab
     (z. B. .kk-bg-mesh-Blobs), die trotz overflow:hidden auf ihrem eigenen
     Container in seltenen Fällen die Layout-Breite beeinflussen können. */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: var(--fs-body);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-accent-fill-hover);
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Skip-Link: unsichtbar bis Fokus, aber niemals per opacity/visibility versteckt -
   Position außerhalb des Sichtbereichs, dadurch weiterhin für Screenreader
   und bei fehlendem CSS jederzeit vorhanden. */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent-fill);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* Hintergrund-Bühne: fixiert, hinter allem Inhalt, nimmt am Layout nicht teil
   (position:fixed). Bewegung ausschließlich in motion.css (transform-basiert). */
.kk-bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--color-bg);
}

.site-header {
  background: var(--color-surface);
  color: var(--color-ink);
  padding: var(--space-sm) var(--space-md);
  position: relative;
  border-bottom: 1px solid var(--color-border-soft);
}

.site-header a {
  color: var(--color-ink);
}

.site-header__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
}

.site-header__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  position: relative;
}

.site-header__claim {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--color-ink-muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: border-color var(--duration-base) var(--ease-standard);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
}

.lang-switch a {
  font-size: 0.85rem;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px dotted var(--color-ink-muted);
  transition: border-color var(--duration-base) var(--ease-standard);
}

.lang-switch a:hover {
  border-bottom-color: var(--color-ink);
}

.confidentiality-banner {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-soft);
  padding: var(--space-2xs) var(--space-md);
  font-size: var(--fs-small);
  color: var(--color-ink-muted);
  text-align: center;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
}

main.main-wide {
  max-width: var(--max-width-wide);
}

main.main-stage {
  max-width: var(--max-width-stage);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--fs-h1);
  margin-top: 0;
}

.hero-title {
  font-size: var(--fs-hero);
  max-width: 22ch;
  font-weight: 800;
  position: relative;
}

h2 {
  font-size: var(--fs-h2);
  margin-top: var(--space-lg);
}

h3 {
  font-size: var(--fs-h3);
}

.lede {
  font-size: var(--fs-lede);
  color: var(--color-ink-muted);
}

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-soft);
  padding: var(--space-lg) var(--space-md);
  margin-top: var(--space-lg);
  position: relative;
}

.site-footer__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--color-ink-muted);
}

.site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer a {
  color: var(--color-ink-muted);
}

.site-footer a:hover {
  color: var(--color-ink);
}

.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
