/* Zimmerweise · Basis: Reset, Schrift, Kopf, Menü, Fuß ---------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--papier) var(--papierkorn);
  color: var(--tinte);
  font: 400 1rem/1.6 var(--f-sans);
  font-feature-settings: "kern", "liga";
  overflow-x: clip;
  overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
}
main { flex: 1 0 auto; display: block; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, [role="button"], label, summary, input, select, textarea { touch-action: manipulation; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--tinte); text-wrap: balance; hyphens: manual; overflow-wrap: anywhere; }
h1 { font-size: var(--t-h1); font-weight: 700; line-height: 1.04; letter-spacing: -0.028em; }
h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1.1; letter-spacing: -0.022em; }
h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
strong, b { font-weight: 600; }
a { color: var(--stift); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--stift); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gelb); color: var(--tinte); }
hr { border: 0; border-top: 1px solid var(--linie); margin: var(--a-6) 0; }

@media (min-width: 960px) {
  body { font-size: 1.0625rem; }
}

/* Hilfsklassen ----------------------------------------------------------- */
.nur-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.rahmen { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
.rahmen--schmal { max-width: calc(820px + 2 * var(--rand)); }
.mono { font-family: var(--f-mono); }
.hand { font-family: var(--f-hand); font-weight: 600; color: var(--stift); }

/* Formularbeschriftung, das Vokabular der Seite */
.etikett {
  overflow-wrap: anywhere;
  font: 500 0.75rem/1.3 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grau);
}
.etikett--stift { color: var(--stift); }

/* Sprunglink ------------------------------------------------------------- */
.sprung {
  position: absolute; left: var(--a-4); top: -100px; z-index: 100;
  background: var(--stift); color: #fff; padding: 12px 18px; border-radius: var(--r-feld);
  font-weight: 600; text-decoration: none;
}
.sprung:focus { top: var(--a-3); }

/* Kopf ------------------------------------------------------------------- */
.kopf {
  position: sticky; top: 0; z-index: var(--z-kopf);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--linie);
}
@supports (backdrop-filter: blur(8px)) {
  .kopf { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(150%) blur(12px); }
}
/* die Perforation der Durchschreibesätze unter dem Kopf */
.kopf::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: radial-gradient(circle, var(--linie-stark) 1px, transparent 1.4px) 0 50% / 8px 3px repeat-x;
  pointer-events: none;
}
.kopf__zeile { display: flex; align-items: center; gap: var(--a-3); min-height: 64px; }
.marke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinte); flex: 0 0 auto; padding: 6px 0; }
.marke img, .marke svg { width: 148px; height: auto; }
.marke:hover { text-decoration: none; }
.kopf__aktion { margin-left: auto; display: none; }
.kopf__knopf {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -8px; margin-left: auto;
  border: 0; background: transparent; border-radius: var(--r-feld); color: var(--tinte);
}
.kopf__knopf:hover { background: var(--stift-hauch); }
.kopf__knopf-linien { position: relative; width: 22px; height: 14px; }
.kopf__knopf-linien::before, .kopf__knopf-linien::after, .kopf__knopf-linien span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform var(--d-mittel) var(--ease), opacity var(--d-kurz) linear;
}
.kopf__knopf-linien::before { top: 0; }
.kopf__knopf-linien span { top: 6px; }
.kopf__knopf-linien::after { top: 12px; }
.kopf__knopf[aria-expanded="true"] .kopf__knopf-linien::before { transform: translateY(6px) rotate(45deg); }
.kopf__knopf[aria-expanded="true"] .kopf__knopf-linien::after { transform: translateY(-6px) rotate(-45deg); }
.kopf__knopf[aria-expanded="true"] .kopf__knopf-linien span { opacity: 0; }

/* Menü: auf dem Telefon ein Blatt, das sich unter dem Kopf öffnet */
.menue {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--original);
  border-bottom: 1px solid var(--linie);
  box-shadow: var(--s-hoch);
  padding: var(--a-3) var(--rand) var(--a-5);
  max-height: calc(100dvh - 64px); overflow-y: auto;
}
.kopf:has([aria-expanded="true"]) .menue,
.menue[data-zustand="offen"] { display: block; }
.menue__liste { list-style: none; margin: 0; padding: 0; }
.menue__liste a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--a-3);
  min-height: 52px; padding: 10px 0; border-bottom: 1px solid var(--linie);
  color: var(--tinte); text-decoration: none; font-weight: 500; font-size: 1.0625rem;
}
.menue__liste a::after { content: ""; width: 18px; height: 18px; background: var(--stift); -webkit-mask: var(--pfeil) center / contain no-repeat; mask: var(--pfeil) center / contain no-repeat; }
.menue__liste a[aria-current="page"] { color: var(--stift); font-weight: 600; }
.menue__aktion { margin-top: var(--a-4); display: grid; gap: var(--a-2); }

@media (min-width: 1040px) {
  .kopf__zeile { min-height: 72px; gap: var(--a-5); }
  .marke img, .marke svg { width: 164px; }
  .kopf__knopf { display: none; }
  .menue {
    display: flex !important; align-items: center; gap: var(--a-5);
    position: static; padding: 0; border: 0; box-shadow: none; background: transparent;
    max-height: none; overflow: visible; flex: 1 1 auto;
  }
  .menue__liste { display: flex; gap: 2px; }
  .menue__liste a {
    min-height: 44px; padding: 8px 12px; border: 0; border-radius: var(--r-feld);
    font-size: 0.9375rem; color: var(--tinte);
  }
  .menue__liste a::after { display: none; }
  .menue__liste a:hover { background: var(--stift-hauch); text-decoration: none; }
  .menue__liste a[aria-current="page"] { background: var(--stift-hauch); color: var(--stift); }
  .menue__aktion { margin: 0 0 0 auto; display: flex; gap: var(--a-2); }
}

/* Brotkrumen ------------------------------------------------------------- */
.krumen { padding-top: var(--a-4); }
.krumen ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font: 500 0.75rem/1.4 var(--f-mono); letter-spacing: 0.04em; color: var(--grau); }
.krumen li { display: inline-flex; align-items: center; gap: 6px; }
.krumen li + li::before { content: "/"; color: var(--linie-stark); }
.krumen a { color: var(--grau); text-decoration: none; display: inline-block; padding: 8px 0; }
.krumen a:hover { color: var(--stift); text-decoration: underline; }
.krumen [aria-current="page"] { color: var(--tinte); }

/* Fuß -------------------------------------------------------------------- */
.fuss {
  position: relative;
  margin-top: var(--a-9);
  background: var(--papier-tief);
  border-top: 1px solid var(--linie);
  padding: var(--a-8) 0 var(--a-6);
  font-size: 0.9375rem;
}
.fuss::before {
  content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 3px;
  background: radial-gradient(circle, var(--linie-stark) 1px, transparent 1.4px) 0 50% / 8px 3px repeat-x;
}
.fuss__oben { display: grid; gap: var(--a-6); }
.fuss__marke p { margin-top: var(--a-3); color: var(--grau); max-width: 36ch; }
.fuss__marke img { width: 160px; }
.fuss__versprechen {
  margin-top: var(--a-4); display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1.5px solid var(--gruen); border-radius: 6px; color: var(--gruen);
  font: 600 0.75rem/1.3 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase;
  transform: rotate(-1.2deg);
}
.fuss__versprechen::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--haken) center / contain no-repeat; mask: var(--haken) center / contain no-repeat; }
.fuss__spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a-6) var(--a-5); }
.fuss__spalte h2 { font: 500 0.75rem/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--grau); margin-bottom: var(--a-2); }
.fuss__spalte ul { list-style: none; padding: 0; margin: 0; }
.fuss__spalte a { display: inline-block; padding: 9px 0; color: var(--tinte); text-decoration: none; line-height: 1.35; hyphens: manual; overflow-wrap: break-word; max-width: 100%; }
.fuss__spalte a:hover { color: var(--stift); text-decoration: underline; }
.fuss__pdf { display: inline-flex; align-items: baseline; gap: 6px; }
.fuss__pdf small { font: 500 0.6875rem/1 var(--f-mono); color: var(--grau); letter-spacing: 0.04em; }
.fuss__unten {
  margin-top: var(--a-7); padding-top: var(--a-4); border-top: 1px solid var(--linie-stark);
  display: flex; flex-wrap: wrap; gap: var(--a-2) var(--a-5); justify-content: space-between;
  font: 400 0.8125rem/1.5 var(--f-mono); color: var(--grau);
}
.fuss__unten a { color: var(--grau); }

@media (min-width: 640px) {
  .fuss__spalten { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .fuss__oben { grid-template-columns: minmax(260px, 1fr) 2.6fr; gap: var(--a-8); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Illustrationen: Wörter nie mitten im Wort trennen */
.buehne, .buehne *, .vergleich-bild, .vergleich-bild *, .probe, .probe *, .zettel, .zettel * { overflow-wrap: normal; }
