/* ==========================================================================
   City Kiosk Tuttlingen – style.css
   Mobile-first. Reihenfolge: Tokens → Reset → Layout → Bausteine → Sektionen
   Schriften werden lokal aus fonts/ geladen (DSGVO, keine Google-CDN).
   ========================================================================== */

/* ---------- Schriften (selbst gehostet) ---------- */
@font-face {
  font-family: "Archivo Black";
  src: url("fonts/archivo-black-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;           /* Variable Font: deckt alle Schnitte ab */
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben aus dem Logo abgeleitet */
  --navy:      #0d1b2f;
  --navy-2:    #14263f;
  --navy-3:    #1d3552;
  --red:       #e63c33;
  --red-dark:  #c22a22;
  --yellow:    #ffc93c;
  --sky:       #46b1e1;
  --green:     #2fb673;
  --cream:     #fdf7ec;
  --cream-2:   #f3ead9;
  --white:     #ffffff;

  --text-dark: #12203a;
  --text-mute: #5c6b82;

  --radius:    18px;
  --radius-lg: 26px;
  --shadow:    0 14px 34px rgba(9, 20, 38, .12);
  --shadow-lg: 0 24px 60px rgba(9, 20, 38, .22);

  --gap:       clamp(1rem, 4vw, 1.75rem);
  --pad-y:     clamp(3.5rem, 10vw, 6.5rem);

  /* Abstand des Hero-Anfangs vom oberen Seitenrand (siehe ".hero" weiter unten) */
  --anker-abstand: 7.5rem;

  /* Sichtbare Fensterhöhe beim Seitenanfang: svh = Höhe bei eingeblendeter
     Adressleiste auf dem Handy (stabil, springt beim Scrollen nicht). */
  --vh: 100vh;
  /* Kopfzeilenhöhe: gemessen von script.js (--header-h); der Fallback gilt nur
     bis das Skript lief und entspricht der Kopfzeile der jeweiligen Ansicht. */
  --hh: var(--header-h, 175px);
  /* So weit wird der Hero-Anfang unter die Kopfzeile gezogen (siehe .hero). */
  --shift: max(0px, calc(var(--hh) - var(--anker-abstand)));

  --font-display: "Archivo Black", "Arial Black", "Helvetica Neue", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@supports (height: 100svh) { :root { --vh: 100svh; } }
/* Fallbacks der Kopfzeilenhöhe je Ansicht (gleiche Bedingungen wie beim Header) */
@media (min-width: 1375px) { :root { --hh: var(--header-h, 129px); } }
@media (max-width: 767px), (max-height: 500px) and (max-width: 1023px) {
  :root { --hh: var(--header-h, 77px); }
}

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

html {
  scroll-behavior: smooth;
  /* Anker-Sprünge (Nav-Buttons, Hamburger-Menü) landen genau unter der
     klebenden Kopfzeile: Abschnittsanfang = Kopfzeilen-Unterkante, nichts vom
     vorherigen Abschnitt sichtbar und nichts vom Ziel verdeckt. -1px lässt den
     Abschnitt 1px unter die Kopfzeile ragen (kein Durchblitzen durch
     Rundungsbrüche). --hh = gemessene Höhe der jeweiligen Ansicht. */
  scroll-padding-top: calc(var(--hh) - 1px);
  -webkit-text-size-adjust: 100%;
  /* KEIN overflow-x hier: bricht position:sticky im Header (topbar). */
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--yellow); color: var(--navy);
  padding: .75rem 1.25rem; border-radius: 0 0 12px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - 2.25rem, 1120px);
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2.25rem, 760px); }

.section { padding-block: var(--pad-y); }
.section--light  { background: var(--white); }
.section--dark   { background: var(--navy); color: var(--cream); }
.section--accent { background: var(--yellow); color: var(--navy); }

.grid { display: grid; gap: var(--gap); }
@media (min-width: 900px) {
  .grid--2 { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

/* ==========================================================================
   Kopfzeile
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 27, 47, .94);
  backdrop-filter: blur(10px);
  color: var(--cream);
  border-bottom: 1px solid rgba(253, 247, 236, .12);
}

.topbar__inner {
  width: min(100% - 2.25rem, 1120px);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: center;
  gap: .6rem;
  padding-block: .6rem;
}

/* Zeile mit Abschnitts-Buttons + Live-Status, gleiche Breite wie topbar__inner.
   Drei Stufen:
   - unter 768px ("Mobile", oder Handy im Querformat): ausklappbares
     Menü-Panel per Hamburger-Knopf (siehe Mobile-Media-Query weiter unten),
     standardmäßig zugeklappt.
   - 768px bis 1374px: Buttons zentriert in einer Zeile, die Pille steht
     zentriert darunter (gleiche Höhe/Schriftgröße wie die Buttons).
   - ab 1375px: Pille löst sich aus dem Fluss (position:absolute), springt auf
     ihre maximale Rechtsverschiebung (-7.7rem) und steht auf Höhe der Buttons;
     die Buttons bleiben als einziges Flex-Element exakt mittig unter Logo +
     DHL-Badge. position:relative bleibt hier (nicht auf .topbar), damit
     "top: 50%" sich auf die Höhe dieser Zeile bezieht. */
.topbar__navrow {
  position: relative;
  width: min(100% - 2.25rem, 1120px);
  margin-inline: auto;
  display: flex; flex-direction: column; align-items: center;
  gap: .6rem;
  padding-top: 1rem;
  padding-bottom: .75rem;
}
.topbar__left {
  display: flex; align-items: center; gap: .65rem;
  flex-wrap: wrap;
  min-width: 0;
}

.brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; color: inherit;
}
.brand__logo {
  width: 44px; height: 44px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.05rem; letter-spacing: -.01em;
}
.brand__text span {
  font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--yellow);
}

/* DHL-Badge neben dem Markennamen */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .72rem; font-weight: 800;
  letter-spacing: .01em; white-space: nowrap;
  text-decoration: none;
}
.badge--dhl {
  background: var(--yellow); color: var(--navy);
  border: 1px solid var(--red);
}

/* Chip-Navigation: auf dem Handy horizontal scrollbar */
.chipnav {
  display: flex; gap: .5rem;
  flex: 0 1 auto; min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chipnav::-webkit-scrollbar { display: none; }
.chipnav a {
  flex: 0 0 auto;
  padding: .38rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(253, 247, 236, .22);
  font-size: .85rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.chipnav a:hover { background: rgba(253, 247, 236, .12); }
.chipnav a.is-active {
  background: var(--yellow); border-color: var(--yellow); color: var(--navy);
}

/* Live-Status in der Nav-Zeile (in der normalen Ansicht sichtbar). Bis 1374px gleiche
   Schriftgröße und vertikales Padding wie die Buttons = exakt gleiche Höhe;
   ab 1375px etwas größer (siehe Media Query oben, Höhe bleibt gleich). */
.topbar__navrow .status {
  flex: 0 0 auto;
  padding: .38rem 1.1rem .38rem .95rem;
  font-size: .85rem;
  gap: .6rem;
}
/* 1375px = Punkt, ab dem neben dem 1120px-Container genug Rand ist, dass
   -7.7rem (123,2px) plus 4px Puffer hineinpassen: (1375 - 1120) / 2 = 127,5px.
   Steht bewusst NACH der Basisregel darüber, sonst überschreibt diese die
   größere Schrift/das Padding hier. */
@media (min-width: 1375px) {
  .topbar__navrow .status {
    position: absolute;
    top: 50%;
    right: -7.7rem;
    transform: translateY(-50%);
    padding: .3rem 1.1rem .3rem .95rem;
    font-size: .95rem;
  }
}

/* Menü-Knopf (Hamburger): nur in der Mobile-Ansicht sichtbar, siehe Media Query unten */
.menu-toggle {
  display: none;
  flex: 0 0 auto;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  width: 32px; height: 32px;
  padding: 0;
  border: 1px solid rgba(253, 247, 236, .25);
  border-radius: 10px;
  background: rgba(253, 247, 236, .06);
  cursor: pointer;
}
.menu-toggle__bar {
  display: block;
  width: 18px; height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}
.topbar.is-menu-open .menu-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topbar.is-menu-open .menu-toggle__bar:nth-child(2) { opacity: 0; }
.topbar.is-menu-open .menu-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Kurze Status-Pille in der Kopfzeile: nur in der Mobile-Ansicht sichtbar, einzeilig
   ("Jetzt geöffnet" / "Jetzt geschlossen" / …). Die ausführliche Variante
   mit Uhrzeit steht im aufgeklappten Menü-Panel (.topbar__navrow .status). */
.status.status--compact {
  display: none;
  flex: 0 0 auto;
  font-size: clamp(.58rem, 2.8vw, .8rem);
  padding: .28rem .4rem .28rem .35rem;
  gap: .22rem;
}
.status.status--compact .status__dot {
  width: .55rem; height: .55rem;
}

/* Kurztext ("Jetzt geöffnet") vs. voller Text ("Jetzt geöffnet · bis 23:00 Uhr").
   Der volle Text wird erst gezeigt, wenn neben Logo-Block (132px) und
   Menü-Knopf (32px) noch mindestens ca. 25px Luft je Seite bleibt – die
   Schwellen sind je Status-Art gemessen, weil die Texte unterschiedlich lang
   sind (Pillenbreite bei voller Schrift 12,8px): offen 210px, "schließt in
   NN Min." 240px, geschlossen bis 374px ("… öffnet am Donnerstag um 13:00 Uhr").
   Formel im gedeckelten Bereich (ab 457px): Breite >= 250px + Pillenbreite. */
.status--compact .status__text-lang { display: none; }
@media (min-width: 462px) {
  .status--compact.is-open .status__text { display: none; }
  .status--compact.is-open .status__text-lang { display: inline; }
}
@media (min-width: 491px) {
  .status--compact.is-soon .status__text { display: none; }
  .status--compact.is-soon .status__text-lang { display: inline; }
}
@media (min-width: 625px) {
  .status--compact.is-closed .status__text { display: none; }
  .status--compact.is-closed .status__text-lang { display: inline; }
}

/* Mobile-Ansicht: Kopfzeile wird kompakt (Marke + Status + Menü-Knopf).
   Die DHL-Badge rutscht unter den Schriftzug "City Kiosk" (zweite Zeile, mit
   Einzug in Logo-Breite), die Nav-Zeile wird zum Menü-Panel, das per Knopf
   auf-/zugeklappt wird – darin volle, gut lesbare Schriftgröße statt bis zur
   Unlesbarkeit zu schrumpfen.
   Gilt bei Breite unter 768px ODER bei sehr niedrigem Fenster (Höhe bis 500px,
   Breite bis 1023px = Handy im Querformat, bis ca. 932x430): dort wäre die
   zweizeilige normale Kopfzeile (ca. 175px) fast die halbe Bildschirmhöhe.
   WICHTIG: dieselbe Bedingung steht in script.js (MOBIL_ANSICHT). */
@media (max-width: 767px), (max-height: 500px) and (max-width: 1023px) {
  .topbar__inner { justify-content: space-between; gap: .4rem; align-items: center; }
  .topbar__left {
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
  }
  .brand { gap: .5rem; }
  .brand__logo {
    width: 30px; height: 30px;
    /* Logo mittig auf Höhe von Status-Pille und Menü-Knopf setzen (die sind zur
       Kopfzeile zentriert, das Logo sitzt sonst in der oberen Zeile des
       Logo-Blocks). Versatz = halbe Höhe der DHL-Badge-Zeile darunter
       ((Badge ≈ 21,9px + Abstand .3rem) / 2 ≈ 13,3px). Schriftzug und Badge
       bleiben unverändert; das Logo liegt links neben der Badge, nichts überlappt. */
    transform: translateY(.83rem);
  }
  /* Impressum/Datenschutz: Marke steht direkt in .topbar__inner, ohne DHL-Badge
     darunter – dort kein Versatz, sonst rutscht das Logo aus der Kopfzeile. */
  .topbar__inner > .brand .brand__logo { transform: none; }
  /* "Tuttlingen"-Unterzeile ausblenden: spart Platz für Status-Pille + Menü-Knopf */
  .brand__text span { display: none; }

  .badge--dhl {
    margin-left: calc(30px + .5rem); /* Logo-Breite + Abstand: Badge beginnt unter dem Schriftzug, nicht unter dem Logo */
    font-size: .56rem;
    padding: .16rem .3rem .16rem .3rem;
    gap: .2rem;
  }

  .status.status--compact { display: flex; }
  .menu-toggle { display: flex; flex-shrink: 0; }

  /* Bei geöffnetem Menü: kurze Pille im Header ausblenden, da die
     ausführliche Version dann schon im Panel steht (sonst doppelt). */
  .topbar.is-menu-open .status.status--compact { display: none; }

  /* Das aufgeklappte Menü liegt als Overlay über dem Seiteninhalt (position:absolute
     unter der Kopfzeile) und macht die Kopfzeile nicht höher: Hero und Inhalt werden
     nicht nach unten geschoben, die Seite springt beim Auf-/Zuklappen nicht.
     top: -1px überlappt den unteren Rand der Kopfzeile, damit keine Trennlinie
     zwischen Kopfzeile und Menü entsteht. max-height/overflow: bei sehr niedrigem
     Fenster (Querformat) bleibt das Menü so scrollbar statt abgeschnitten. */
  .topbar__navrow {
    display: none;
    position: absolute;
    top: calc(100% - 1px); left: 0; right: 0;
    width: auto; margin: 0;
    max-height: calc(100vh - var(--hh));
    overflow-y: auto;
    background: rgb(25, 39, 58); /* blickdicht, sonst scheint der Hero durch; Ton wie die Kopfzeile */
    border-bottom: 1px solid rgba(253, 247, 236, .12);
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }
  .topbar.is-menu-open .topbar__navrow { display: flex; }

  .chipnav {
    flex-direction: column;
    overflow-x: visible;
    gap: .5rem;
    width: 100%;
  }
  .chipnav a {
    width: 100%;
    text-align: center;
    padding: .7rem 1rem;
    font-size: .95rem;
  }
  .topbar__navrow .status {
    align-self: center;
    padding: .3rem 1.1rem .3rem .95rem;
    font-size: .95rem;
  }
}

/* ==========================================================================
   Bausteine
   ========================================================================== */
.eyebrow {
  font-size: .78rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin-bottom: .5rem;
}
.section--dark .eyebrow   { color: var(--yellow); }
.section--accent .eyebrow { color: var(--red-dark); }

.h2 { font-size: clamp(2rem, 7.5vw, 3.25rem); text-transform: uppercase; }
.h3 { font-size: clamp(1.15rem, 3.6vw, 1.4rem); }

/* Über uns: Headline trägt den roten Zitat-Akzent, den vorher das Pull-Quote im Text hatte */
#ueber-uns .h2 {
  font-size: clamp(1.65rem, 5.5vw, 2.5rem);
  border-left: 5px solid var(--red);
  padding-left: .9rem;
  margin-bottom: 2rem;
}

.lead {
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  color: var(--text-mute);
  max-width: 46ch;
  margin-top: .9rem;
  margin-bottom: clamp(1.75rem, 5vw, 2.75rem);
}
.section--dark .lead   { color: rgba(253, 247, 236, .72); }
.section--accent .lead { color: rgba(13, 27, 47, .78); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn--primary {
  background: var(--red); color: var(--white);
  box-shadow: 0 8px 0 0 var(--red-dark);
}
.btn--primary:hover { transform: translateY(2px); box-shadow: 0 6px 0 0 var(--red-dark); }
.btn--primary:active { transform: translateY(6px); box-shadow: 0 2px 0 0 var(--red-dark); }

.btn--ghost {
  background: transparent; color: currentColor;
  border-color: currentColor;
}
.btn--ghost:hover { background: rgba(253, 247, 236, .12); }

.btn--full { width: 100%; }

.btnrow { display: flex; flex-wrap: wrap; gap: .75rem; }
/* Hero: stehen die Buttons untereinander, frisst der 8px-Schatten des roten Buttons
   fast den Abstand (12px - 8px = 4px sichtbar). row-gap wirkt nur beim Umbruch;
   der Abstand nebeneinander (column-gap) bleibt .75rem. */
.hero .btnrow { row-gap: 1.4rem; }

/* Live-Status-Badge */
.status {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .9rem .4rem .75rem;
  border-radius: 999px;
  background: rgba(253, 247, 236, .1);
  border: 1px solid rgba(253, 247, 236, .2);
  font-size: .82rem; font-weight: 700;
  margin: 0; white-space: nowrap;
}
.status--lg {
  font-size: clamp(.9rem, 2.4vw, 1rem);
  padding: .6rem 1.15rem .6rem 1rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}
/* Umbruch nur an einer Stelle: zwischen Hauptteil ("Geschlossen") und Zusatz
   ("öffnet morgen 13:00 Uhr"). Beide Teile bleiben je in einer Zeile; passt
   alles nicht nebeneinander, setzt script.js .is-umbruch: Der Trenner "·" bleibt
   hinter dem Hauptteil stehen, der Zusatz kommt in die zweite Zeile. */
.status--lg .status__haupt,
.status--lg .status__zusatz { white-space: nowrap; }
.status--lg.is-umbruch .status__zusatz { display: block; }
.status__dot {
  width: .65rem; height: .65rem; border-radius: 50%;
  background: currentColor; flex: 0 0 auto;
}
.status.is-open    { color: var(--green);  background: rgba(47, 182, 115, .14); border-color: rgba(47, 182, 115, .4); }
.status.is-open .status__dot { box-shadow: 0 0 0 0 rgba(47, 182, 115, .6); animation: pulse 2.2s infinite; }
.status.is-soon    { color: #b8860b;       background: rgba(255, 201, 60, .2);  border-color: rgba(255, 201, 60, .55); }
.status.is-closed  { color: var(--red);    background: rgba(230, 60, 51, .12);  border-color: rgba(230, 60, 51, .38); }
.status.is-closed .status__dot { box-shadow: 0 0 0 0 rgba(230, 60, 51, .6); animation: pulse-red 2.2s infinite; }

.section--dark .status.is-soon { color: var(--yellow); }

@keyframes pulse {
  70%  { box-shadow: 0 0 0 .5rem rgba(47, 182, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 182, 115, 0); }
}
@keyframes pulse-red {
  70%  { box-shadow: 0 0 0 .5rem rgba(230, 60, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 60, 51, 0); }
}

/* Panels */
.panel {
  background: var(--white);
  border: 1px solid rgba(13, 27, 47, .08);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2rem);
  box-shadow: var(--shadow);
}
.panel--flush { padding: 0; overflow: hidden; }

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(60rem 32rem at 82% -12%, rgba(70, 177, 225, .3), transparent 62%),
    radial-gradient(48rem 30rem at 8% 12%, rgba(230, 60, 51, .28), transparent 60%),
    var(--navy);
  color: var(--cream);
  padding-top: clamp(3rem, 10vw, 5.5rem);
  padding-bottom: 0;
  overflow: hidden;
  /* Der Hero beginnt --anker-abstand (120px) unter dem Seitenrand statt direkt
     unter der Kopfzeile: Ist die Kopfzeile höher, wird der Hero-Anfang um den
     Überstand --shift (siehe :root) nach oben gezogen und liegt teils hinter
     der halbtransparenten Kopfzeile (normal 175px-120px = 55px, ab 1375px
     9px, Mobile 0). So gibt es über dem Seitenanfang / dem Logo-Sprung nichts
     mehr, was man noch hochscrollen könnte. */
  margin-top: calc(-1 * var(--shift));
  /* gleicht das -1px des scroll-padding-top (html) aus: Logo-Klick (#top) landet
     dadurch exakt bei 0 und nicht 1px darunter */
  scroll-margin-top: 1px;
}

/* leichtes Punktraster, kostet kein zusätzliches Bild */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(253, 247, 236, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.hero__inner { position: relative; padding-bottom: clamp(3rem, 9vw, 5rem); }

/* Fallback für Browser ohne Container-Queries (siehe Block "Hero passt immer
   auf den ersten Bildschirm" weiter unten, der das in allen anderen Browsern
   für alle Größen übernimmt): Mobile-Hero füllt den ersten Bildschirm bis zum
   Lauftext, kein Weiß darunter. */
@media (max-width: 700px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - var(--header-h, 0px));
  }
  .ticker { margin-top: auto; }
}

.kicker {
  display: inline-block;
  max-width: 100%;
  background: var(--yellow); color: var(--navy);
  font-size: clamp(.66rem, 3.1vw, .78rem); font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
  padding: .35rem .85rem; border-radius: 999px;
  transform: rotate(-1.5deg);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(3rem, 16vw, 8.5rem);
  text-transform: uppercase;
  letter-spacing: -.035em;
  line-height: .88;
  margin-bottom: clamp(1.75rem, 5vw, 2.5rem);
}
.hero__title span { display: block; }
.hero__l2 {
  color: var(--yellow);
  margin-left: .06em;
}
.hero__l3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(.9rem, 3.6vw, 1.4rem);
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--sky);
  margin-top: .7rem;
  line-height: 1.2;
}

.claim {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 4.2vw, 1.6rem);
  color: var(--white);
  border-left: 5px solid var(--red);
  padding-left: .9rem;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.hero__sub {
  max-width: 44ch;
  color: rgba(253, 247, 236, .8);
  margin-bottom: clamp(2rem, 6vw, 2.75rem);
}

/* Lauftext */
.ticker {
  position: relative;
  background: var(--red);
  color: var(--white);
  border-top: 3px solid var(--navy-3);
  padding-block: .7rem;
  overflow: hidden;
}
/* Dauer passt zur Textlänge im HTML – längerer Text braucht mehr Sekunden,
   damit das Tempo gleich bleibt. */
.ticker__track {
  display: flex; width: max-content;
  animation: marquee 120s linear infinite;
}
.ticker__item {
  font-family: var(--font-display);
  font-size: clamp(.95rem, 3vw, 1.25rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-right: 1rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   Hero passt immer auf den ersten Bildschirm: Der rote Streifen (Lauftext)
   sitzt beim Öffnen, Neuladen und ganz oben scrollen exakt am unteren
   Fensterrand – bei jeder Fenstergröße, ohne die Kopfzeile zu verändern.
   Dafür bekommt der Hero die Höhe "Fensterhöhe minus Hero-Anfang" und alle
   Inhalte skalieren mit dieser Höhe (cqh = 1% der Hero-Höhe, braucht
   Container-Queries). Ältere Browser ohne Container-Queries behalten das
   bisherige Verhalten (ganz oben im Hero-Block, mobile Höhe per min-height).
   ========================================================================== */
@supports (container-type: size) {
  .hero {
    container-type: size;
    height: calc(var(--vh) - min(var(--hh), var(--anker-abstand)));
    min-height: 0;
    display: flex; flex-direction: column;
    padding-top: calc(var(--shift) + clamp(.5rem, calc(var(--vh) * .03), 2.75rem));
  }
  .hero__inner {
    flex: 1 1 0; min-height: 0;
    display: flex; flex-direction: column;
    padding-bottom: clamp(.4rem, 2.5cqh, 1.5rem);
  }
  /* freien Platz gleichmäßig über und unter dem Inhalt verteilen (zwei
     Abstandshalter); ist kein Platz frei, schrumpfen sie auf 0 und der Inhalt
     startet oben. Funktioniert auch, wenn einzelne Elemente ausgeblendet sind. */
  .hero__inner::before, .hero__inner::after {
    content: ""; flex: 1 1 0; min-height: 0;
  }
  .ticker { flex: 0 0 auto; margin-top: 0; }

  .kicker { align-self: flex-start; margin-bottom: clamp(.4rem, 2cqh, 1.25rem); }
  .hero__title {
    font-size: clamp(1.6rem, min(16vw, 15cqh), 8.5rem);
    margin-bottom: clamp(.5rem, 3cqh, 2.5rem);
  }
  .hero__l3 { font-size: clamp(.75rem, min(3.6vw, 2.4cqh), 1.4rem); margin-top: .5rem; }
  .claim {
    font-size: clamp(.9rem, min(4.2vw, 3.2cqh), 1.6rem);
    margin-bottom: clamp(.4rem, 2cqh, 1.25rem);
  }
  .hero__sub {
    font-size: clamp(.82rem, 2.2cqh, 1.0625rem);
    line-height: 1.5;
    margin-bottom: clamp(.6rem, 3cqh, 2.75rem);
  }
  .hero .btn {
    padding-block: clamp(.5rem, 1.9cqh, .95rem);
    font-size: clamp(.85rem, 2.2cqh, 1rem);
  }
}
/* Untertext nur zeigen, wenn er noch mit Luft über dem Streifen passt. Die
   Schwellen sind gemessen (Hero-Höhe = Fensterhöhe minus Hero-Anfang): Tablet/
   Desktop ab 470px; schmale Handys brauchen mehr, weil der Text dort mehr
   Zeilen hat (bis 400px Breite ab 500px, bis 340px Breite ab 560px). */
@container (max-height: 470px) { .hero__sub { display: none; } }
@container (max-width: 400px) and (max-height: 500px) { .hero__sub { display: none; } }
@container (max-width: 340px) and (max-height: 560px) { .hero__sub { display: none; } }
/* Bei sehr niedrigen Fenstern (z. B. Handy im Querformat) weitere Stufen, damit
   Titel und Buttons immer über dem Streifen bleiben: erst der Claim, dann der Kicker. */
@container (max-height: 380px) { .claim { display: none; } }
@container (max-height: 320px) { .kicker { display: none; } }
@container (max-height: 260px) { .hero__title { font-size: min(16vw, 11cqh); } }
@container (max-height: 250px) { .hero__l3 { display: none; } }

/* ==========================================================================
   2. Öffnungszeiten
   ========================================================================== */
.hours-card {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 5vw, 2.4rem);
  box-shadow: var(--shadow-lg);
}

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td {
  padding: .8rem .25rem;
  border-bottom: 1px solid rgba(253, 247, 236, .13);
  font-size: 1rem;
}
.hours th {
  text-align: left; font-weight: 600;
  color: rgba(253, 247, 236, .82);
}
.hours td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .is-closed { color: rgba(253, 247, 236, .45); font-weight: 500; }

/* heutiger Tag wird per JS markiert */
.hours tr.is-today th, .hours tr.is-today td {
  color: var(--yellow);
  font-weight: 800;
}
.hours tr.is-today th::before {
  content: "▸ ";
  color: var(--yellow);
}

.hours__note {
  margin-top: 1.25rem;
  font-size: .88rem;
  color: rgba(253, 247, 236, .6);
}
.hours__note a { color: var(--yellow); }

/* ==========================================================================
   3. Standort
   ========================================================================== */
.address {
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1.55;
  font-weight: 600;
  margin: .75rem 0 1.25rem;
}

.facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.facts li { display: flex; gap: .75rem; font-size: .95rem; color: var(--text-mute); }
.facts strong { color: var(--text-dark); }

.ico {
  width: 26px; height: 26px; flex: 0 0 26px;
  fill: none; stroke: var(--red); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  margin-top: .15rem;
}

/* Karte mit Zwei-Klick-Lösung */
.map {
  position: relative;
  min-height: 340px; height: 100%;
  background:
    repeating-linear-gradient(45deg, var(--cream-2) 0 14px, var(--cream) 14px 28px);
  display: flex;
}
.map__consent {
  margin: auto;
  text-align: center;
  padding: clamp(1.5rem, 5vw, 2.25rem);
  max-width: 34ch;
}
.map__consent p {
  font-size: .9rem; color: var(--text-mute);
  margin: .75rem 0 1.25rem;
}
.map__pin {
  width: 42px; height: 42px; margin: 0 auto .75rem;
  fill: none; stroke: var(--red); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.map iframe {
  width: 100%; height: 100%;
  min-height: 340px; border: 0; display: block;
}

/* ==========================================================================
   4. Sortiment
   ========================================================================== */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--gap);
}
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  background: var(--navy-2);
  border: 1px solid rgba(253, 247, 236, .1);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  transition: scale .2s ease, border-color .2s ease;
}
/* Hover (Sortiment + DHL Paketshop, PC und Mobile): Box wächst und liegt über den
   Nachbarn, dazu gelber Rahmen.
   "scale" statt "transform": .reveal setzt transform selbst (Einblenden). */
.card:hover { scale: 1.05; z-index: 1; border-color: var(--yellow); }
/* .reveal[data-reveal] überschreibt die transition oben – Hover-Übergänge hier ergänzen */
.card.reveal[data-reveal] {
  transition: opacity .55s ease, transform .55s ease, scale .2s ease, border-color .2s ease;
}
.card p {
  font-size: .93rem;
  color: rgba(253, 247, 236, .68);
  margin-top: .6rem;
}

.card__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  margin-bottom: 1.1rem;
  transform: rotate(-4deg);
}
.card__icon svg {
  width: 30px; height: 30px;
  fill: none; stroke: var(--navy); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.card__icon--blue   { background: var(--sky); }
.card__icon--yellow { background: var(--yellow); }
.card__icon--red    { background: var(--red); }
.card__icon--red svg { stroke: var(--white); }
.card__icon--green  { background: var(--green); }

/* ==========================================================================
   5. Über uns
   ========================================================================== */
.factbadges {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .85rem 1rem;
}
/* Bis 430px: Badges untereinander, mittig. */
@media (max-width: 430px) {
  .factbadges { flex-direction: column; align-items: center; text-align: center; }
}
.factbadge {
  padding: .5rem 1.15rem;
  /* Rand 1,5px: Browser runden border-width auf ganze Pixel, daher 1px Rand + 0,5px
     Ring per box-shadow (ändert die Badge-Größe nicht) */
  border: 1px solid #000;
  box-shadow: 0 0 0 .5px #000;
  border-radius: 999px;
  font-size: .82rem; font-weight: 800;
  white-space: nowrap;
}
/* Weiße Schrift (grün/blau): schmale schwarze Kontur um die Buchstaben. Bewusst als
   text-shadow (8 Richtungen, .6px, ohne Weichzeichnung) statt -webkit-text-stroke:
   Der Stroke rendert die Schrift als Vektorpfad (weicher, ohne Hinting) und hellt
   Emojis auf – so bleibt der Text scharf. Das Emoji bekommt keine Kontur. */
.factbadge--green,
.factbadge--blue {
  text-shadow:
    -.6px 0 #000, .6px 0 #000, 0 -.6px #000, 0 .6px #000,
    -.6px -.6px #000, .6px -.6px #000, -.6px .6px #000, .6px .6px #000;
}
.factbadge__emoji { text-shadow: none; }
.factbadge--yellow { background: var(--yellow); color: var(--navy); transform: rotate(-1.5deg); }
.factbadge--green  { background: var(--green);  color: var(--white); transform: rotate(-1.5deg); }
.factbadge--red    { background: var(--red);    color: var(--navy);  transform: rotate(1deg); }
.factbadge--blue   { background: var(--sky);    color: var(--white); transform: rotate(-1deg); }
.factbadge--dhl {
  background: var(--yellow); color: var(--navy);
  transform: rotate(1.5deg);
}

.prose { font-size: clamp(1.02rem, 2.7vw, 1.15rem); }
.prose p { margin-bottom: 1.15rem; }

/* ==========================================================================
   6. Social
   ========================================================================== */
.socials { display: grid; gap: var(--gap); }
@media (min-width: 620px) { .socials { grid-template-columns: 1fr 1fr; } }

.social {
  display: block;
  text-decoration: none;
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2rem);
  box-shadow: 0 10px 0 0 rgba(13, 27, 47, .25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.social:hover { transform: translateY(4px); box-shadow: 0 6px 0 0 rgba(13, 27, 47, .25); }

.social__ico {
  width: 38px; height: 38px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 1rem;
}
.social--ig .social__ico { color: #ff6a8e; }
.social--tt .social__ico { color: #4de3e0; }

.social__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem; text-transform: uppercase;
}
.social__handle {
  display: block;
  color: rgba(253, 247, 236, .65);
  font-size: .95rem; margin-top: .2rem;
}
.social__cta {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 800; color: var(--yellow);
}

/* ==========================================================================
   8. Bewertungen
   ========================================================================== */
.stars {
  font-size: 1.6rem; letter-spacing: .25em;
  color: var(--yellow); margin-bottom: .75rem;
}

.review-grid {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: var(--gap);
}
@media (min-width: 780px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  background: var(--navy-2);
  border: 1px solid rgba(253, 247, 236, .1);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  color: var(--cream);
  display: flex; flex-direction: column;
}
.review-card__text {
  font-size: .95rem;
  color: rgba(253, 247, 236, .82);
  flex: 1;
}
.review-card__author {
  margin-top: 1rem; margin-bottom: 0;
  font-weight: 800; font-size: .9rem;
}
.review-card__author span {
  font-weight: 500;
  color: rgba(253, 247, 236, .55);
}

.reviews-cta {
  text-align: center;
  margin-top: clamp(2rem, 6vw, 2.75rem);
}
.reviews-cta__rating { font-size: 1.05rem; margin-bottom: .35rem; }
.reviews-cta p:not(.reviews-cta__rating) {
  color: var(--text-mute);
  margin-bottom: 1.35rem;
}

/* ==========================================================================
   9. Kontakt
   ========================================================================== */
.contacts { display: grid; gap: 1rem; }
@media (min-width: 620px)  { .contacts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .contacts { grid-template-columns: repeat(4, 1fr); } }

.contact {
  display: block;
  text-decoration: none;
  background: var(--navy-2);
  border: 1px solid rgba(253, 247, 236, .12);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  transition: background .18s ease, transform .18s ease;
}
.contact:hover { background: var(--navy-3); transform: translateY(-3px); }

/* Mobile-Ansicht: Social- und Kontakt-Kacheln haben keinen Hover-Effekt – auf dem
   Touchscreen bliebe er nach dem Tippen hängen. Die Karten (Sortiment, DHL) behalten
   ihren Hover (wachsen + gelber Rahmen). Buttons (.btn, Menü-Chips, Footer-Icons)
   behalten ihren Effekt. Die Werte entsprechen dem Ruhezustand der jeweiligen Box
   (siehe oben).
   Gleiche Bedingung wie die Mobile-Ansicht der Kopfzeile und MOBIL_ANSICHT in script.js. */
@media (max-width: 767px), (max-height: 500px) and (max-width: 1023px) {
  .social:hover  { transform: none; box-shadow: 0 10px 0 0 rgba(13, 27, 47, .25); }
  .contact:hover { transform: none; background: var(--navy-2); }
}

.contact__ico {
  width: 28px; height: 28px;
  fill: none; stroke: var(--yellow); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: .85rem;
}
.contact__label {
  display: block; font-weight: 800; font-size: 1.02rem;
}
.contact__value {
  display: block;
  color: rgba(253, 247, 236, .62);
  font-size: .9rem; margin-top: .15rem;
  word-break: break-word;
}
/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--navy);
  color: rgba(253, 247, 236, .72);
  padding-block: clamp(2.5rem, 7vw, 3.5rem);
  border-top: 4px solid var(--yellow);
}
.footer__top {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(253, 247, 236, .14);
}

.footer__brand { display: flex; align-items: center; gap: .9rem; }
.footer__brand img { width: 52px; height: 52px; }
.footer__brand strong { color: var(--cream); font-family: var(--font-display); }
.footer__brand p { font-size: .9rem; margin: .1rem 0 0; }

.footer__social { display: flex; gap: .65rem; }
.footer__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(253, 247, 236, .08);
  border: 1px solid rgba(253, 247, 236, .18);
  color: var(--cream);
  transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.footer__icon:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); transform: translateY(-2px); }
.footer__icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

.footer__bottom {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
}

.footer__legal-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer__legal-nav a { font-weight: 600; text-decoration: none; font-size: .9rem; }
.footer__legal-nav a:hover { color: var(--yellow); text-decoration: underline; }

.footer__legal { font-size: .82rem; color: rgba(253, 247, 236, .45); margin: 0; }
.footer__legal-nobreak { display: inline-block; white-space: nowrap; }
.footer__legal a { color: inherit; text-decoration: none; }
.footer__legal a:hover { color: var(--yellow); }
.footer__maku { display: inline; }
.footer__maku-logo { display: inline-block; width: auto; height: 1.1em; margin-right: .35em; vertical-align: -.22em; }

/* ==========================================================================
   Rechtstexte (impressum.html / datenschutz.html)
   ========================================================================== */
.legal { padding-block: clamp(2.5rem, 8vw, 4.5rem); overflow-wrap: anywhere; }
/* Kein seitliches Verschieben auf dem Handy. "clip" (statt hidden) lässt
   position:sticky der Kopfzeile intakt. */
html:has(.legal), html:has(.legal) body { overflow-x: clip; }
.legal h1 {
  font-size: clamp(1.9rem, 6vw, 2.75rem);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  /* Passt das Wort nicht ins Bild, bricht es nur an der Stelle im HTML (&shy;):
     "Datenschutz-" / "erklärung". */
  hyphens: manual;
  overflow-wrap: normal;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.4vw, 1.35rem);
  margin: 2.25rem 0 .75rem;
}
.legal p, .legal li { color: #33415a; }
.legal ul { padding-left: 1.15rem; }
.legal a { color: var(--red); }
.legal .todo {
  background: #fff5cc;
  border-left: 5px solid var(--yellow);
  padding: 1rem 1.15rem;
  border-radius: 0 12px 12px 0;
  font-size: .93rem;
  margin: 1.5rem 0;
}
.legal .back { display: inline-block; margin-top: 2.5rem; font-weight: 700; }

/* ==========================================================================
   Scroll-Animation (wird von script.js aktiviert)
   ========================================================================== */
.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .status.is-open .status__dot,
  .status.is-closed .status__dot { animation: none; }
  .reveal[data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Druck ---------- */
@media print {
  .topbar, .ticker, .map__consent, .btnrow, .chipnav { display: none; }
  body { background: #fff; color: #000; }
  .section--dark, .hours-card, .hero { background: #fff !important; color: #000 !important; }
}
