/* ntgrator.com — Farben aus dem CI-Kit (kit/farben.css, CI-Leitfaden.md). Gesetzt wird
   alles in Inter, Überschriften fett; die Hausschrift n-type-grator bleibt dem Logo
   vorbehalten (Entscheidung 2026-10-09).
   Altrosa und Oliv sind Schmuckfarben: nie für Fließtext (Kontrast 1,8 bzw. 2,9 : 1). */

@font-face {
  font-family: "Inter";
  src: url("schrift/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bordeaux: #7A2740;
  --altrosa: #F0B3A6;
  --tinte: #2A0F18;
  --hauch: #FAF0EF;
  --oliv: #9A9B55;
  --verlauf: linear-gradient(135deg, #8D455B 0%, #511A2A 100%);

  /* abgeleitet */
  --weiss: #fff;
  --tinte-leise: #5E434B;      /* 8,6 : 1 auf Hauch */
  --linie: #EBD8D5;
  --rosa-flaeche: #FBE6E1;
  --oliv-tief: #5C5D2B;        /* Oliv, für Text abgedunkelt: 6,6 : 1 auf Weiß */
  --oliv-flaeche: #EEEEDD;

  --schrift: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-gross: 22px;
  --schatten: 0 1px 2px rgba(42, 15, 24, .05), 0 12px 32px -12px rgba(42, 15, 24, .18);
  --rand: clamp(20px, 5vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--hauch);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
a { color: var(--bordeaux); text-underline-offset: .18em; }
a:hover { color: var(--tinte); }

:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 3px; border-radius: 6px; }

h1, h2 {
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.03em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h3 { font-size: 1.35rem; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; margin: 0 0 .5em; }

.breite { width: min(1120px, 100% - 2 * var(--rand)); margin-inline: auto; }
.schmal { max-width: 720px; }

.sprung {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--tinte); color: var(--weiss); padding: 10px 16px; border-radius: 8px;
}
.sprung:focus { top: 12px; color: var(--weiss); }

.marke {
  font-size: .8125rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  color: var(--bordeaux); margin-bottom: 1.1em;
}
.vorspann { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--tinte-leise); max-width: 34em; }
.hinweis { font-size: .9375rem; color: var(--tinte-leise); }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--bordeaux); color: var(--weiss); border: 2px solid var(--bordeaux);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.knopf:hover { background: var(--tinte); border-color: var(--tinte); color: var(--weiss); }
.knopf:active { transform: scale(.98); }
.knopf-klein { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.knopf-zweit { background: transparent; color: var(--bordeaux); }
.knopf-zweit:hover { background: var(--bordeaux); border-color: var(--bordeaux); }
.knopf-hell { background: var(--weiss); border-color: var(--weiss); color: var(--bordeaux); }
.knopf-hell:hover { background: var(--altrosa); border-color: var(--altrosa); color: var(--tinte); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8em 0 1.2em; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 240, 239, .92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen { display: flex; align-items: center; gap: 24px; min-height: 72px; }
/* Das Logo trägt seinen Schutzraum in der Datei; der negative Rand holt die
   sichtbare Kante an den Spaltenrand zurück. */
.logo { display: block; flex: none; margin-left: -4px; }
.logo img { width: 164px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--tinte); text-decoration: none; font-size: .9375rem; font-weight: 500; border-radius: 8px;
}
.nav a:hover { background: var(--rosa-flaeche); color: var(--tinte); }

/* Sprachumschalter: zwei Hälften, die eigene Sprache ist die gedrückte. */
.sprache { position: relative; display: inline-flex; flex: none; padding: 3px; border-radius: 999px; background: var(--weiss); border: 1px solid var(--linie); }
.schieber {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--bordeaux);
}
.schieber { transition: transform .3s cubic-bezier(.3, .7, .2, 1); }
.sprache-en .schieber { transform: translateX(100%); }
.sprache a, .sprache span {
  position: relative; flex: 1; display: grid; place-items: center; min-width: 42px; min-height: 36px; padding: 0 10px; border-radius: 999px;
  font-size: .8125rem; font-weight: 650; letter-spacing: .04em; text-decoration: none; color: var(--tinte-leise);
  transition: background-color .18s ease, color .18s ease;
}
/* Kein Hintergrund beim Überfahren: er läge ÜBER dem Schieber und deckte ihn zu,
   sobald er ankommt. Welche Hälfte hell beschriftet ist, hängt an der Klasse des
   Umschalters, nicht am Element — sprache.js stellt die Klasse um, bevor der Inhalt
   getauscht ist, und Schieber und Schrift wechseln dann zusammen. */
.sprache a:hover { color: var(--tinte); }
.sprache-de > :nth-child(2), .sprache-en > :nth-child(3),
.sprache-de > :nth-child(2):hover, .sprache-en > :nth-child(3):hover { color: var(--weiss); }
.fuss .sprache { background: transparent; border-color: rgba(255, 255, 255, .25); margin-left: auto; }
.fuss .sprache a { min-height: 36px; padding: 0 10px; color: #E9D9D6; }
.fuss .schieber { background: var(--weiss); }
.fuss .sprache a:hover { color: var(--weiss); }
.fuss .sprache-de > :nth-child(2), .fuss .sprache-en > :nth-child(3),
.fuss .sprache-de > :nth-child(2):hover, .fuss .sprache-en > :nth-child(3):hover { color: var(--tinte); }
.kopf-rechts { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav + .kopf-rechts { margin-left: 0; }

/* Der Doppelbogen als Schmuck */
.bogen { position: absolute; pointer-events: none; fill: var(--altrosa); opacity: .28; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 112px); }
.hero .bogen { width: min(760px, 90vw); right: -14%; top: -18%; }
.hero-innen { position: relative; display: grid; gap: clamp(40px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 10em; }

/* Gezeichnetes Programmfenster */
.fenster {
  margin: 0; background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius-gross); box-shadow: var(--schatten); overflow: hidden;
  font-size: .875rem;
}
.fenster-leiste { display: flex; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--linie); background: var(--hauch); }
.fenster-leiste span { width: 10px; height: 10px; border-radius: 50%; background: var(--altrosa); }
.fenster-leiste span:first-child { background: var(--bordeaux); }
.fenster-leiste span:last-child { background: var(--oliv); }
.fenster-inhalt { padding: 18px clamp(14px, 2.4vw, 24px) 8px; }
.fenster-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 12px; }
.fenster-kopf strong { font-size: 1.05rem; margin-right: auto; }
.zaehler { color: var(--tinte-leise); font-size: .8125rem; }
.zaehler b { color: var(--tinte); font-variant-numeric: tabular-nums; }

.liste { width: 100%; border-collapse: collapse; }
.liste th {
  text-align: left; font-size: .6875rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--tinte-leise); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--linie);
}
.liste td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--linie); white-space: nowrap; }
.liste tr:last-child td { border-bottom: 0; }
.liste th:last-child, .liste td:last-child { padding-right: 0; }
.zahl { text-align: right !important; font-variant-numeric: tabular-nums; }
.mono { font-variant-numeric: tabular-nums; color: var(--tinte-leise); font-size: .8125rem; }

/* Logos der Marktplätze und Versender in Markenfarbe, Höhe an der Schrift gemessen.
   Die Wortmarken sind flacher als die Zeichen und bekommen ihre eigene Höhe. */
.marke-logo { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .8125rem; white-space: nowrap; }
.marke-logo svg { height: 1.3em; width: auto; flex: none; }
.marke-logo .m-ebay { height: 1.25em; }
.marke-logo .m-dhl { height: .6em; }
/* DHL und die Post gehören auf ihr Gelb. */
.marke-logo .m-dhl, .marke-logo .m-deutschepost { box-sizing: content-box; background: #FFCC00; border-radius: 5px; padding: .3em .45em; }
.marke-logo .m-deutschepost { height: 1.05em; padding: .2em .3em; }
.marke-logo .m-amazon { position: relative; top: .1em; }

.pille { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.p-neu { background: var(--rosa-flaeche); color: var(--bordeaux); }
.p-verpackt { background: var(--hauch); color: var(--tinte); box-shadow: inset 0 0 0 1px var(--linie); }
.p-versandt { background: var(--oliv-flaeche); color: var(--oliv-tief); }
.nur-breit { display: none; }

/* Kanäle */
.kanaele { background: var(--weiss); border-block: 1px solid var(--linie); padding: 34px 0; text-align: center; }
.kanaele-innen { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px clamp(32px, 6vw, 72px); }
.kanaele-titel {
  font-size: .8125rem; font-weight: 650; letter-spacing: .09em;
  text-transform: uppercase; color: var(--tinte-leise); margin-bottom: 16px;
}
.kanaele-liste { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; }
.kanaele-liste li {
  display: flex; align-items: center; min-height: 48px; padding: 0 20px;
  border-radius: 999px; background: var(--hauch); color: var(--tinte);
}
.kanaele-liste .marke-logo { font-size: 1.0625rem; font-weight: 700; }

/* Abschnitte */
.abschnitt { padding: clamp(64px, 9vw, 120px) 0; }
.abschnitt-hell { background: var(--weiss); border-block: 1px solid var(--linie); }
.abschnitt-kopf { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }

/* Funktionen */
/* Funktionen als Galerie: eine Kachel steht in der Mitte, die Nachbarn schauen an
   den Kanten hervor. Wischen und Einrasten macht der Browser; galerie.js (Klasse
   `js`) ergänzt Pfeile, blendet die Nachbarn ab und markiert den Reiter. */
.kapitel {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: -16px calc(-1 * var(--rand)) 20px; padding: 4px var(--rand);
}
.kapitel::-webkit-scrollbar { display: none; }
.kapitel a {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--weiss); border: 1px solid var(--linie);
  color: var(--tinte); text-decoration: none; font-weight: 600; font-size: .9375rem;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.kapitel a:hover { border-color: var(--bordeaux); color: var(--bordeaux); }
.kapitel a[aria-current] { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--weiss); }
.kapitel .sym { width: 18px; height: 18px; }

.galerie { position: relative; --kachel: min(940px, 84vw); }
.funktionen {
  position: relative; display: flex; gap: clamp(12px, 2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 4px calc((100% - var(--kachel)) / 2) 24px; scrollbar-width: none;
}
.funktionen::-webkit-scrollbar { display: none; }
.funktion {
  flex: 0 0 var(--kachel); scroll-snap-align: center; scroll-margin-top: 150px;
  display: flex; flex-direction: column;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius-gross); overflow: hidden;
  transition: opacity .3s ease;
}
.galerie.js .funktion:not(.aktiv) { opacity: .4; cursor: pointer; }
.funktion-bild { order: -1; background: var(--rosa-flaeche); padding: 20px; display: grid; place-items: center; min-height: 320px; }
.funktion-text { padding: 22px 22px 26px; }
.funktion-kurz { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--bordeaux); margin-bottom: .6em; font-size: .9375rem; }
.funktion-kurz .sym { width: 20px; height: 20px; }
.funktion h3 { font-size: 1.25rem; }
.funktion-text > p:not(.funktion-kurz) { color: var(--tinte-leise); font-size: 1rem; }
.punkte { display: grid; gap: 7px; margin-top: 1.1em; }
.punkte li { display: flex; gap: 9px; align-items: flex-start; font-size: .9375rem; }
.haken { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--oliv-tief); }

.pfeil-knopf {
  position: absolute; top: calc(50% - 10px); z-index: 2; transform: translateY(-50%);
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%;
  background: var(--weiss); border: 1px solid var(--linie); box-shadow: var(--schatten);
  color: var(--bordeaux); cursor: pointer;
  transition: background-color .18s ease, color .18s ease, opacity .18s ease;
}
.pfeil-knopf[hidden] { display: none; }
.pfeil-knopf:hover { background: var(--bordeaux); color: var(--weiss); }
.pfeil-knopf:disabled { opacity: 0; pointer-events: none; }
.pfeil-knopf.zurueck { left: calc((100% - var(--kachel)) / 2 - 26px); }
.pfeil-knopf.weiter { right: calc((100% - var(--kachel)) / 2 - 26px); }

/* Maßgeschneidert */
.individuell { display: grid; gap: 40px; }
.individuell .abschnitt-kopf { margin-bottom: 0; }
.individuell-liste { display: grid; gap: 14px; }
.individuell-liste li { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--weiss); border: 1px solid var(--linie); }
.individuell-liste .sym { flex: none; box-sizing: content-box; width: 24px; height: 24px; padding: 12px; border-radius: 50%; background: var(--bordeaux); color: var(--weiss); }
.individuell-liste h3 { font-size: 1.125rem; margin-bottom: .3em; }
.individuell-liste p { margin: 0; color: var(--tinte-leise); font-size: 1rem; }

/* Gezeichnete Karten */
.karte {
  width: min(100%, 340px); background: var(--weiss); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 20px; font-size: .9375rem;
}
.karte p { margin: 0; }
.karte-titel { font-weight: 650; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px !important; }
.karte .mono { white-space: nowrap; }

.zusammen { display: grid; gap: 10px; }
.mini { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 10px; }
.mini > * { white-space: nowrap; }
.mini .mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.klammer { display: flex; align-items: center; gap: 10px; color: var(--bordeaux); padding-top: 4px; }
.klammer .sym { transform: rotate(90deg); flex: none; }

.etikett-adr { line-height: 1.45; margin-bottom: 14px !important; }
.strichcode {
  height: 36px; margin-bottom: 6px;
  background: repeating-linear-gradient(90deg, var(--tinte) 0 2px, transparent 2px 5px, var(--tinte) 5px 6px, transparent 6px 10px, var(--tinte) 10px 13px, transparent 13px 15px);
}
.erledigt { display: flex; align-items: center; gap: 8px; margin-top: 14px !important; padding-top: 12px; border-top: 1px solid var(--linie); color: var(--oliv-tief); font-weight: 600; }
.erledigt .sym { width: 20px; height: 20px; }

.linien { display: grid; gap: 8px; margin-bottom: 16px; }
.linien span { height: 8px; border-radius: 4px; background: var(--hauch); }
.linien span:nth-child(2) { width: 82%; }
.linien span:nth-child(3) { width: 58%; }
.beleg dl { margin: 0; display: grid; gap: 6px; }
.beleg dl div { display: flex; justify-content: space-between; color: var(--tinte-leise); }
.beleg dd { margin: 0; font-variant-numeric: tabular-nums; }
.beleg .summe { color: var(--tinte); font-weight: 700; padding-top: 8px; border-top: 1px solid var(--linie); }
.marke-klein { display: inline-block; margin-top: 14px !important; padding: 3px 10px; border-radius: 6px; background: var(--oliv-flaeche); color: var(--oliv-tief); font-size: .75rem; font-weight: 700; letter-spacing: .06em; }

.bestand { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.lager { display: grid; justify-items: center; padding: 14px 18px; border-radius: 12px; background: var(--bordeaux); color: var(--weiss); }
.lager b { font-weight: 700; font-size: 2.4rem; line-height: 1.1; letter-spacing: -.03em; }
.lager span, .lager small { font-size: .75rem; opacity: .85; }
.bestand ul, .preise ul { display: grid; gap: 6px; }
.bestand li { display: flex; justify-content: space-between; padding: 5px 10px; border-radius: 8px; background: var(--hauch); font-size: .875rem; }
.bestand li b, .preise b { font-variant-numeric: tabular-nums; }

.preise li { display: grid; grid-template-columns: 1fr auto 92px; gap: 10px; align-items: center; font-size: .875rem; padding: 6px 0; border-top: 1px solid var(--linie); }
.preise em { font-style: normal; font-size: .75rem; font-weight: 600; text-align: center; padding: 2px 8px; border-radius: 999px; }
.preise .ok { background: var(--oliv-flaeche); color: var(--oliv-tief); }
.preise .ab { background: var(--bordeaux); color: var(--weiss); }

.regeln ul { display: grid; gap: 10px; }
.regeln li { padding: 12px 14px; border: 1px solid var(--linie); border-radius: 10px; line-height: 1.45; }
.wort { font-size: .6875rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--bordeaux); }

/* Preise: auf dem Handy eine Reihe zum Wischen (die nächste Kachel schaut hervor),
   ab 860 px drei Spalten nebeneinander. */
.tarife {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * var(--rand)); padding: 4px var(--rand); scroll-padding-inline: var(--rand);
}
.tarife::-webkit-scrollbar { display: none; }
.tarif {
  flex: 0 0 min(78%, 320px); scroll-snap-align: start;
  display: flex; flex-direction: column; padding: 26px 22px; border-radius: var(--radius-gross);
  background: var(--hauch); border: 1px solid var(--linie);
}
.tarif h3 { font-size: 1.125rem; color: var(--bordeaux); margin-bottom: .6em; }
.tarif-preis { margin: 0 0 .7em; color: var(--tinte-leise); font-size: .9375rem; min-height: 5.2em; }
.tarif-preis b { display: block; font-size: 2.5rem; line-height: 1.1; letter-spacing: -.03em; color: var(--tinte); font-variant-numeric: tabular-nums; margin-bottom: .15em; white-space: nowrap; }
.tarif-kurz { color: var(--tinte-leise); font-size: 1rem; min-height: 3.2em; }
.tarif .punkte { margin: 0 0 28px; padding-top: 20px; border-top: 1px solid var(--linie); }
.tarif .punkte li { font-size: .9375rem; }
.tarif .knopf { margin-top: auto; }
.tarif-hinweis { margin: 18px 0 0; }

/* Sicherheit */
.sicherheit { display: grid; gap: 16px; }
.sicherheit li { background: var(--hauch); border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px; }
.sicherheit .sym { width: 28px; height: 28px; color: var(--bordeaux); margin-bottom: 14px; }
.sicherheit h3 { font-size: 1.125rem; }
.sicherheit p { color: var(--tinte-leise); margin: 0; font-size: 1rem; }

.herkunft { text-align: center; }
.herkunft .vorspann { margin-inline: auto; }

/* Abschluss */
.schluss { position: relative; overflow: hidden; background: var(--verlauf); color: var(--weiss); padding: clamp(64px, 9vw, 112px) 0; text-align: center; }
.schluss .bogen { fill: var(--weiss); opacity: .06; width: min(620px, 90vw); left: -8%; bottom: -40%; }
.schluss-innen { position: relative; }
.schluss img { width: 200px; margin: 0 auto 28px; }
.schluss p { max-width: 30em; margin-inline: auto; font-size: 1.125rem; }
.schluss p:last-child { margin: 1.8em auto 0; }

/* Fuß */
.fuss { background: var(--tinte); color: #E9D9D6; font-size: .9375rem; padding: 28px 0; }
/* Der Sprachumschalter steht in Kopf und Fuß immer ganz rechts: so bleibt er an
   seinem Platz, auch wenn die Wörter daneben je Sprache verschieden lang sind. */
.fuss-innen { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.fuss-firma { margin-right: auto !important; }
.fuss-firma { margin: 0; }
.fuss nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: -12px; }
.fuss a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--weiss); text-decoration: none; border-radius: 8px; font-weight: 500; }
.fuss a:hover { background: rgba(255, 255, 255, .1); color: var(--weiss); }
.fuss :focus-visible { outline-color: var(--altrosa); }

/* Aufbauseite */
.seite-aufbau { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.seite-aufbau main { flex: 1; display: flex; }
.aufbau { position: relative; overflow: hidden; flex: 1; display: grid; place-items: center; padding: clamp(40px, 8vw, 96px) 0; text-align: center; }
.aufbau .bogen { width: min(900px, 130vw); right: -22%; bottom: -34%; }
.aufbau-innen { position: relative; display: grid; justify-items: center; }
.aufbau-logo { width: clamp(150px, 26vw, 210px); margin-bottom: 8px; }
.aufbau .marke { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border-radius: 999px; background: var(--weiss); border: 1px solid var(--linie); }
.aufbau .marke::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--oliv); }
.aufbau h1 { max-width: 11em; }
.aufbau .vorspann { margin-bottom: 1.8em; }
.aufbau .hinweis { margin: 1.2em 0 0; }

/* Fehlerseite */
.fehler { min-height: 56vh; display: grid; align-items: center; }
.fehler h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

/* Rechtstexte */
.recht h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .8em; }
.recht h2 { font-size: 1.125rem; font-weight: 650; line-height: 1.3; letter-spacing: 0; margin: 2em 0 .4em; }
.recht p { color: var(--tinte-leise); }
.hinweis-kasten { padding: 14px 18px; border-radius: 10px; background: var(--weiss); border: 1px solid var(--linie); color: var(--tinte) !important; }

/* Hinweis zu Cookies: eine Karte am unteren Rand, über allem außer dem Sprunglink.
   `hidden` muss gewinnen — `display: flex` überstimmte es sonst. */
.cookie {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 15;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px 22px;
  width: min(680px, calc(100% - 2 * var(--rand)));
  padding: 16px 16px 16px 22px;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius-gross);
  box-shadow: var(--schatten);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; font-size: .9375rem; line-height: 1.45; color: var(--tinte-leise); }
.cookie a { color: var(--bordeaux); font-weight: 600; white-space: nowrap; }
.cookie .knopf { flex: none; }
@media (max-width: 619px) {
  .cookie { flex-direction: column; align-items: stretch; padding: 18px; border-radius: var(--radius); }
  .cookie a { white-space: normal; }
}
@media (prefers-reduced-motion: no-preference) {
  .cookie { animation: cookie-auf .35s cubic-bezier(.2, .7, .2, 1) .4s both; }
  @keyframes cookie-auf { from { opacity: 0; transform: translate(-50%, 12px); } }
}

/* Einblenden beim Laden — nur der Kopfbereich, einmal. */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > *, .aufbau-innen > *, .fenster { animation: auf .5s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2), .aufbau-innen > :nth-child(2) { animation-delay: .05s; }
  .hero-text > :nth-child(3), .aufbau-innen > :nth-child(3) { animation-delay: .1s; }
  .hero-text > :nth-child(4), .aufbau-innen > :nth-child(4) { animation-delay: .15s; }
  .hero-text > :nth-child(5), .aufbau-innen > :nth-child(5) { animation-delay: .2s; }
  .aufbau-innen > :nth-child(6) { animation-delay: .25s; }
  .fenster { animation-delay: .2s; }
  @keyframes auf { from { opacity: 0; transform: translateY(10px); } }
}
/* Sprachwechsel: sprache.js stellt zuerst den Umschalter um (der Schieber gleitet als
   gewöhnlicher Übergang), blendet dabei den Inhalt aus (`wechselt`), tauscht ihn und
   blendet ihn wieder ein. Kopf und Fuß bleiben stehen. Nach dem Tausch blendet der
   Kopfbereich nicht noch einmal ein (`ohne-einblenden`), sonst ruckt es doppelt. */
.ohne-einblenden .hero-text > *, .ohne-einblenden .aufbau-innen > *, .ohne-einblenden .fenster { animation: none; }
main { transition: opacity .2s ease; }
.wechselt main { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .knopf, .funktion, .kapitel a, .pfeil-knopf, .sprache a, .sprache span, .schieber, main { transition: none; }
}

@media (max-width: 619px) {
  .pfeil-knopf { display: none; }
  .regeln { padding: 14px; font-size: .8125rem; }
  .regeln ul { gap: 8px; }
  .regeln li { padding: 9px 12px; }
}
@media (max-width: 1099px) {
  .nav { display: none; }
  .nav + .kopf-rechts { margin-left: auto; }
}
@media (max-width: 479px) {
  .logo img { width: 132px; }
  .kopf-innen { gap: 8px; }
  /* Neben Logo und Sprachumschalter ist kein Platz für den Knopf; derselbe Knopf
     steht direkt darunter im Kopfbereich und am Ende der Seite. */
  .kopf .zugang { display: none; }
  .kopf .anmelden { padding: 0 10px; }
  .fenster { font-size: .8125rem; }
  .liste td, .liste th { padding-right: 6px; }
  .pille { padding: 3px 8px; font-size: .6875rem; }
  .liste .marke-logo { font-size: .75rem; gap: .4em; }
  .kanaele-liste li { padding: 0 16px; min-height: 44px; }
  .kanaele-liste .marke-logo { font-size: 1rem; }
}
@media (min-width: 620px) {
  .nur-breit { display: revert; }
  .sicherheit { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .sicherheit { grid-template-columns: repeat(3, 1fr); }
  .funktion { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
  .funktion-bild { order: 0; min-height: 0; padding: 32px; }
  .funktion-text { padding: 44px; align-self: center; }
  .funktion h3 { font-size: 1.6rem; letter-spacing: -.02em; }
  .individuell { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .tarife { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; overflow: visible; margin-inline: 0; padding: 0; }
  .tarif { padding: 32px; }
}
@media (min-width: 1000px) {
  .hero-innen { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
/* Zweispaltig ist das Fenster schmaler als auf dem Tablett: die Nummer passt erst
   wieder, wenn die Seite ihre volle Breite hat. */
@media (min-width: 1000px) and (max-width: 1179px) {
  .nur-breit { display: none; }
}

/* Prüfseite für Etsy (web/bauen.py: etsy_pruefung) */
.pruefung-eckdaten { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 1.4em 0; }
.pruefung-eckdaten dt { font-weight: 650; }
.pruefung-eckdaten dd { margin: 0; overflow-wrap: anywhere; }
.pruefung-menue { margin: 0 0 1em; padding-left: 1.3em; }
.pruefung-menue li { margin: .2em 0; }
.pruefung .knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1em; }
.pruefung-bild { margin: 1.4em 0; }
.pruefung-bild img, .pruefung-video { width: 100%; height: auto; display: block; border: 1px solid var(--linie); border-radius: 10px; }
.pruefung-bild figcaption { margin-top: .5em; font-size: .9rem; color: var(--tinte-leise); }
