/* Fliesstext läuft über den System-Sans-Serif-Stack (siehe --font-sans).
   Nur die Überschriften (h1-h3) nutzen Playfair Display (siehe --font-heading),
   lokal eingebunden, Lizenz: SIL Open Font License 1.1 (assets/fonts/
   PlayfairDisplay-OFL.txt). Das Druck-PDF nutzt über PrintPdfService.php eine
   eigene, separate Schriftdatei (assets/fonts/Corporate_S_Bold.ttf),
   unabhängig von dieser CSS-Datei. */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-800.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-900.woff2') format('woff2');
}

:root {
  --red: #c53438;
  --red-rgb: 197, 52, 56;
  --red-light: #e2555a;
  /* Weinrot-Töne für dunkle Flächen (Hero, Footer-Band, dunkle Sektionen),
     von dunkel nach hell. */
  --wine-rgb: 61, 10, 16;
  --wine-900: #3d0a10;
  --wine-800: #4a0c12;
  --wine-700: #6e1219;
  --wine-600: #8f1a22;
  --red-dark: var(--wine-600);
  --gold: #c9a43a;
  --gold-rgb: 201, 164, 58;
  /* Gold für Text auf hellem Grund (ausreichender Kontrast). */
  --gold-dark: #82650f;
  --cream: #f4efe6;
  /* Text und helle Flächen der Startseiten-Abschnitte (Design-Vorlage). */
  --text-dark: #1e1e1e;
  --bg-light: #f8f8f8;
  --ink: #565858;
  --ink-rgb: 86, 88, 88;
  --strong: #3f4141;
  --strong-rgb: 63, 65, 65;
  --muted: #7b7d7c;
  --muted-rgb: 123, 125, 124;
  /* Eigene Variable statt literalem #000, um die Absicht "wirklich Schwarz,
     nicht --ink/--strong" erkennbar zu machen. */
  --black: #000;
  --paper: #ffffff;
  --paper-rgb: 255, 255, 255;
  --light-grey: #bbbdbd;
  --soft-grey: #f2f3f3;
  --mid-grey: #d9dbdb;
  --row-stripe: #f7f8f8;
  --mid-grey-rgb: 217, 219, 219;
  --pure-green: #80bb34;
  --pure-green-rgb: 128, 187, 52;
  /* Eigenständiges "Erfolg"-Grün für den Admin-Badge der "Admin"-Rolle -
     bewusst getrennt von --pure-green (Status "Bezahlt"/"Captured"), da
     unterschiedliche Features, nicht zwingend dieselbe Farbe. */
  --success-green: #2a9d5c;
  --success-green-rgb: 42, 157, 92;
  --success-green-dark: #1e7a45;
  /* Dunkler Overlay-Ton für Modal-Backdrops (siehe z.B. shop-wizard.css
     .wizard-box-preview-modal). */
  --overlay-rgb: 31, 42, 55;
  --shadow: none;
  --box-radius: 12px;
  --button-radius: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Schriftgrössen-Skala in rem statt fester px-Werte - rem respektiert die
     Browser-Schriftgrössen-Einstellung des Nutzers, px nicht. Jede Stufe
     rundet auf den nächstliegenden früheren px-Wert (siehe Kommentare
     rechts), ist also keine exakte 1:1-Umrechnung. */
  --fs-xs: 0.75rem;    /* 12px  - vorher 11/12/12.5px */
  --fs-sm: 0.875rem;   /* 14px  - vorher 13/13.5/14/14.5px */
  --fs-base: 1rem;     /* 16px  - vorher 15/16px */
  --fs-md: 1.125rem;   /* 18px  - vorher 17/18px */
  --fs-lg: 1.25rem;    /* 20px  - vorher 19/20px */
  --fs-xl: 1.375rem;   /* 22px  - vorher 22px */
  --fs-2xl: 1.5rem;    /* 24px  - vorher 25px */
  --fs-3xl: 1.75rem;   /* 28px  - vorher 28px */
  --fs-4xl: 2rem;      /* 32px  - vorher 30/32/34px */
  --fs-5xl: 2.5rem;    /* 40px  - vorher 40px */
  --fs-6xl: 2.75rem;   /* 44px  - vorher 44px */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
}

body.admin-menu-open {
  overflow: hidden;
}

body,
button,
input,
select,
textarea {
  font: 16px/1.5 var(--font-sans);
}

.input-on-grey {
  background-color: white;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Einheitlicher Tastatur-Fokus, gleiche Optik wie die spezifischeren Regeln in
   shop-wizard.css. Auf dunklen Flächen (z.B. Hero) wird er dort überschrieben. */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  /* Playfair Display hat standardmässig Mediävalziffern (unterschiedlich hoch,
     teils unter der Grundlinie); Versalziffern wirken in Titeln und Zahlen
     ruhiger und sitzen mittig in Kreisen. */
  font-variant-numeric: lining-nums;
}

h1,
h2 {
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--strong);
}

h1 {
  font-size: clamp(2.625rem, 7vw, 5.75rem);
  max-width: 920px;
}

h2 {
  font-size: clamp(1.875rem, 4.5vw, 3.625rem);
}

button,
input,
select,
textarea {
  border-radius: var(--box-radius);
}

/* ---- Header ---------------------------------------------------------------
   Weinroter Balken auf allen Seiten, sticky am oberen Rand. Auf der
   Startseite (body.has-overlay-header, siehe unten) liegt er ab 1101px
   transparent über dem Hero. Ab 960px steht die Navigation als Leiste mit
   Aufklapp-Menü (.has-sub) im Header, darunter öffnet der Hamburger-Knopf
   ein Menü unterhalb des Headers (js/utils/dom.js setzt .open). */
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: var(--button-radius);
  background: var(--paper);
  color: var(--wine-900);
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Ziel des Skip-Links: bekommt per Klick Fokus, braucht dafür aber keinen
   sichtbaren Rahmen. */
main:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: var(--wine-900);
  color: var(--cream);
  transition: background 0.25s ease;
}

.site-header :focus-visible {
  outline-color: var(--cream);
}

/* ---- Header-Overlay auf der Startseite ------------------------------------
   body.has-overlay-header (siehe view/index.html) legt den Header per
   position:fixed über den Hero statt eigenen Platz zu beanspruchen, damit
   .hero auf volle 100vh kommt (siehe index.css). Transparent ist hier der
   DEFAULT-Zustand (nicht erst per Klasse zugeschaltet), damit schon beim
   ersten Rendern - vor dem ersten IntersectionObserver-Callback aus
   js/pages/start.js - der richtige Zustand steht. .site-header--solid
   (gesetzt, sobald der Hero verlassen ist) sowie Hover/Tastaturfokus machen
   den Balken deckend. Gilt nur ab 1101px (synchron zur Grenze in index.css) -
   darunter ist der Hero selbst weiss, der Header bleibt normal sticky. */
@media (min-width: 1101px) {
  body.has-overlay-header .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(61, 10, 16, 0.92) 0%, rgba(61, 10, 16, 0) 100%);
  }

  body.has-overlay-header .site-header:is(.site-header--solid, :hover, :focus-within) {
    background: var(--wine-900);
  }
}

/* ---- Header-Overlay auf den Inhaltsseiten (body.has-scroll-header) ---------
   Wie auf der Startseite: Header liegt über dem Seitenkopf und ist ganz oben
   transparent. Erst beim Scrollen (.site-header--solid, gesetzt von
   js/pages/content.js), bei Hover/Fokus oder offenem Burger-Menü wird er
   weinrot. Gilt auf allen Breiten, der Seitenkopf ist immer dunkel. */
body.has-scroll-header .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(61, 10, 16, 0.92) 0%, rgba(61, 10, 16, 0) 100%);
}

body.has-scroll-header .site-header:is(.site-header--solid, :hover, :focus-within),
body.has-scroll-header .site-header:has(.nav-burger[aria-expanded="true"]) {
  background: var(--wine-900);
}

/* Wortmarke "meinspiel" (ohne Bildmarke) mit Zusatz «by Vögeli AG»
   rechtsbündig darunter. Die Schrift gehört zur Marke meinspiel.ch; die
   Farben gelten auf dunklem Grund (Header), im Footer werden "mein" und der
   Zusatz dunkel (.brand--footer). */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.brand-text {
  white-space: nowrap;
}

.brand-mein {
  color: #fff;
}

.brand-spiel {
  color: #bf873e;
}

.brand-by {
  align-self: flex-end;
  font-family: var(--font-sans);
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream);
  opacity: 0.75;
  white-space: nowrap;
}

.brand--footer {
  margin-bottom: 16px;
  font-size: 2.3rem;
}

.brand--footer .brand-mein,
.brand--footer .brand-by {
  color: var(--wine-900);
}

/* Das Admin-Backend zeigt weiterhin das Vögeli-Logo (siehe admin.css). */
.brand-logo {
  width: 156px;
  max-height: 48px;
  object-fit: contain;
  /* object-fit:contain zentriert per Default (object-position: 50% 50%) -
     bei abweichendem Seitenverhältnis zur 156x48px-Box bleibt sonst
     unsichtbarer Leerraum links, der das Logo trotz flush-left sitzender
     Box optisch nach rechts verschiebt. Stattdessen am linken Rand andocken. */
  object-position: left center;
}

/* ---- Navigation ---- */
.main-nav {
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: stretch;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links > li {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links a {
  display: block;
  padding: 26px 0;
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--gold);
  }
}

.has-sub > a::after {
  content: "\25BE";
  margin-left: 6px;
  font-size: 0.7rem;
  opacity: 0.7;
}

.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 250px;
  background: var(--wine-900);
  border-top: 2px solid var(--gold);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.3);
}

.nav-sub ul {
  margin: 0;
  padding: 10px 0 14px;
  list-style: none;
}

.nav-sub a {
  padding: 10px 24px;
}

@media (hover: hover) and (pointer: fine) {
  .nav-sub a:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}

.has-sub:hover > .nav-sub,
.has-sub:focus-within > .nav-sub {
  display: block;
}

/* Sprachumschalter DE / FR (view/partials/lang-switch.php). Steht ausserhalb
   des Menüs, damit er auch auf dem Handy ohne Aufklappen sichtbar ist. */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switch-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 6px;
  color: var(--cream);
  border-radius: var(--button-radius);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.lang-switch-item.is-active {
  color: var(--gold);
  opacity: 1;
}

.lang-switch-item + .lang-switch-item {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
}

@media (hover: hover) and (pointer: fine) {
  a.lang-switch-item:hover {
    opacity: 1;
  }
}

/* Sprachhinweis (view/partials/lang-switch.php, js/components/lang-hint.js):
   schmaler Balken am unteren Rand, wenn die Browsersprache von der Sprache der
   Seite abweicht. Unter dem Cookie-Banner (z-index 1000), damit dieser zuerst
   beantwortet wird. */
.lang-hint {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 52px 0.75rem clamp(18px, 5vw, 70px);
  background: var(--wine-900);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 20px rgba(var(--overlay-rgb), 0.25);
  font-size: var(--fs-sm);
  color: var(--cream);
}

.lang-hint[hidden] {
  display: none;
}

.lang-hint-text {
  margin: 0;
  line-height: 1.4;
}

.lang-hint-close {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* .button.primary ist rot auf transparent und verschwindet auf dem weinroten
   Balken: weisse Schrift mit weisser Umrandung. */
.lang-hint .button.primary {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--paper);
}

@media (hover: hover) and (pointer: fine) {
  .lang-hint .button.primary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: var(--paper);
    box-shadow: inset 0 0 0 1px var(--paper);
  }
}

.lang-hint :focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Burger-Button (nur unter 960px) */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: var(--button-radius);
}

.nav-burger span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 959px) {
  .nav-burger {
    display: flex;
  }

  /* Menü klappt unter dem Header auf (der Header ist sticky/fixed und damit
     Bezugsrahmen für position:absolute). */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    padding: 8px clamp(18px, 4vw, 56px) 24px;
    background: var(--wine-900);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-nav.open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links > li {
    display: block;
  }

  .nav-links a {
    padding: 14px 0;
    font-size: 1.05rem;
    font-weight: 600;
  }

  .has-sub > a::after {
    content: none;
  }

  /* Untermenü ist auf Mobile immer aufgeklappt. */
  .nav-sub {
    display: block;
    position: static;
    min-width: 0;
    background: none;
    border-top: 0;
    box-shadow: none;
  }

  .nav-sub ul {
    padding: 0 0 8px 16px;
  }

  .nav-sub a {
    padding: 8px 0;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.85;
  }
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  padding: 14px 20px 10px;
  cursor: pointer;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  background: var(--soft-grey);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  border-radius: var(--button-radius);
}

/* Wie .button.primary - transparent mit rotem Rahmen/Text statt grauer
   Fläche, damit der Logout-Button sich nicht mit dem weissen
   Sidebar-Hintergrund und den grauen Icons vermischt. */
.nav-action {
  background: transparent;
  color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

/* (hover: hover) and (pointer: fine): ohne dies bleibt die Hover-Farbe auf
   Touch-Geräten nach dem Antippen hängen, bis woanders hingetippt wird -
   wirkt wie ein Klick-Effekt oder ein fälschlich ausgewählter Zustand.
   Gleiches Muster wie .wizard-chip:hover/.wizard-type-card:hover in
   shop-wizard.css. */
@media (hover: hover) and (pointer: fine) {
  .button:hover:not(:disabled) {
    background: var(--mid-grey);
  }
}

/* Ohne dies sieht ein disabled-Button beim Hover weiterhin normal/klickbar
   aus, da :hover sonst unabhängig von :disabled greift. */
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-action:hover {
  background: var(--red);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--red);
}

.button.primary {
  background: transparent;
  color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.button.secondary {
  background: var(--soft-grey);
  color: var(--ink);
}

/* .button:hover:not(:disabled) weiter oben hat durch die zwei zusätzlichen
   Pseudoklassen höhere Spezifität als .button.secondary - ohne dieses
   Override bekäme .secondary beim Hover also das generische Grau statt des
   hier gewünschten Rot. Gleiches Muster wie .wizard-chip:hover in
   shop-wizard.css. */
@media (hover: hover) and (pointer: fine) {
  .button.primary:hover:not(:disabled) {
    background: var(--red);
    color: white;
    box-shadow: inset 0 0 0 1px var(--red);
  }

  .button.secondary:hover:not(:disabled) {
    background: var(--red);
    color: var(--paper);
  }
}

.button.small {
  min-height: 40px;
  padding: 9px 14px;
  font-size: var(--fs-sm);
}

.button.danger {
  color: var(--red);
  box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), 0.28);
}

/* Wie .button.primary:hover - voll rot statt dem generischen grauen
   .button:hover, damit "Entfernen"/"Löschen" sich gleich verhalten wie die
   anderen Buttons. */
@media (hover: hover) and (pointer: fine) {
  .button.danger:hover:not(:disabled) {
    background: var(--red);
    color: var(--paper);
    box-shadow: inset 0 0 0 1px var(--red);
  }
}

/* Gefüllter Hauptknopf für Inhaltsseiten, Hero und Call-to-Action (anders als
   .button.primary, der nur umrandet ist und im Wizard verwendet wird). Gilt
   für <a> und <button>. */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border: 0;
  border-radius: var(--button-radius);
  background: var(--red);
  color: var(--cream);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover:not(:disabled) {
    background: var(--red-light);
  }
}

/* ---- Footer ---------------------------------------------------------------
   Aufbau: Call-to-Action-Band, Spalten, optionale Brotkrumen, Fusszeile.
   Die Brotkrumen kommen aus $breadcrumbs der jeweiligen View
   (view/partials/footer.php). */
.site-footer {
  background: var(--paper);
  color: var(--strong);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 0.95rem;
}

.footer-cta,
.footer-inner,
.breadcrumb,
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: clamp(18px, 4vw, 32px);
  padding-right: clamp(18px, 4vw, 32px);
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.footer-cta h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: var(--strong);
}

.footer-cta p {
  margin: 0;
  max-width: 560px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-cta .btn-primary {
  flex-shrink: 0;
  padding: 11px 26px;
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  padding-top: 48px;
  padding-bottom: 32px;
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-brand p {
  max-width: 340px;
  margin: 0;
  line-height: 1.6;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: var(--strong);
}

.footer-col h3 a {
  color: inherit;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col address {
  font-style: normal;
  line-height: 1.7;
}

.footer-col a,
.footer-bottom a {
  transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover,
  .footer-bottom a:hover,
  .breadcrumb a:hover {
    color: var(--red);
  }
}

.breadcrumb {
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb [aria-current="page"] {
  font-weight: 700;
}

.breadcrumb li + li::before {
  content: "\203A";
  margin-right: 8px;
  opacity: 0.6;
}

/* Direkt unter den Brotkrumen keine zweite Trennlinie. */
.breadcrumb + .footer-bottom {
  padding-top: 12px;
  border-top: 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

@media (min-width: 900px) {
  .footer-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 36px;
    padding-bottom: 32px;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Footer-Spalten: ab 600px drei Spalten (Markenspalte über die
   ganze Breite), ab 900px vier Spalten; die Spalten sind durch eine feine
   Linie getrennt (Reihe 1: Marke, Anlässe, Entdecken, Kontakt; Reihe 2:
   Nachhaltigkeit, Partnershops, Weitere Angebote). */
@media (min-width: 600px) {
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 0;
    row-gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col:not(.footer-brand) {
    padding: 0 24px;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
  }

  .footer-col:nth-child(3n + 2):not(.footer-brand) {
    border-left: none;
    padding-left: 0;
  }
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-col {
    padding: 0 28px;
  }

  .footer-col:nth-child(3n + 2):not(.footer-brand) {
    border-left: 1px solid rgba(0, 0, 0, 0.12);
    padding-left: 28px;
  }

  .footer-col:nth-child(4n + 1) {
    border-left: none;
    padding-left: 0;
  }

  .footer-col:nth-child(4n) {
    padding-right: 0;
  }
}

.admin-page {
  background: var(--soft-grey);
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 70px);
}

label {
  display: grid;
  gap: 7px;
  font-weight: 500;
}

span.required {
  color: var(--red);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  background: var(--soft-grey);
  padding: 12px 13px;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.hidden {
  display: none !important;
}

/* Nur für Screenreader sichtbar (z.B. Überschrift im Footer). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--muted);
}

.loader-ring {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(var(--red-rgb), 0.18);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--soft-grey);
  border-radius: var(--button-radius);
}

.checkbox-row input,
th input,
.waitlist-row-select {
  width: 22px;
  height: 22px;
  accent-color: var(--red);
}

/* ---- Responsive: global / buttons ---- */
@media (max-width: 560px) {
  h1 {
    font-size: var(--fs-5xl);
  }

  h2 {
    font-size: var(--fs-4xl);
  }

  /* Kleinere Wortmarke und engeres Padding im Header; das Admin-Logo
     (.brand-logo) wird ebenfalls kleiner. */
  .site-header {
    gap: 10px;
  }

  .site-header .brand {
    font-size: 1.35rem;
  }

  .brand-logo {
    width: clamp(90px, 30vw, 130px);
  }

  .button,
  .nav-action {
    width: 100%;
  }
}

/* Cookie-Consent-Banner (siehe view/partials/analytics.php). Grosse Box in der
   Mitte der Seite (Text oben, Knöpfe darunter), auf dem Handy mit 16px Rand.
   Wird per js/services/analytics.js ein-/ausgeblendet. Dunkles Weinrot mit
   Goldrahmen passend zum Header; die Knöpfe sind hier eigens eingefärbt, da
   die Standard-Knöpfe für helle Flächen gedacht sind. */
.cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  width: min(560px, calc(100vw - 32px));
  min-height: 300px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: clamp(32px, 6vw, 56px);
  background: var(--wine-900);
  border: 2px solid var(--gold);
  border-radius: var(--box-radius);
  box-shadow: 0 24px 60px rgba(var(--overlay-rgb), 0.45);
  font-size: var(--fs-base);
  color: var(--cream);
}

/* Solange der Banner sichtbar ist, liegt eine abgedunkelte Fläche über der
   ganzen Seite: Der Inhalt dahinter ist ausgegraut und per Maus/Touch nicht
   bedienbar (auch Menü und Warenkorb nicht). Der Banner selbst liegt darüber. */
body:has(.cookie-banner:not([hidden]))::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(var(--overlay-rgb), 0.55);
}

/* Datenschutz und Impressum: Dort soll man lesen können, ohne den Banner zu
   beantworten. Darum keine abgedunkelte Fläche, und der Banner steht als
   schmaler Balken am unteren Rand. */
.legal-page:has(.cookie-banner:not([hidden]))::before {
  display: none;
}

.legal-page .cookie-banner {
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  transform: none;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  width: auto;
  min-height: 0;
  max-height: none;
  padding: 0.75rem clamp(18px, 5vw, 70px);
  border-width: 2px 0 0;
  border-radius: 0;
  box-shadow: 0 -4px 20px rgba(var(--overlay-rgb), 0.25);
  font-size: var(--fs-sm);
}

.legal-page .cookie-banner-text {
  flex: 1;
  line-height: 1.4;
}

@media (max-width: 559px) {
  .legal-page .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
}

.cookie-banner:focus {
  outline: none;
}

.cookie-banner :focus-visible {
  outline-color: var(--cream);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-text {
  margin: 0;
  line-height: 1.6;
}

.cookie-banner-text a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Überschreibt das width: 100% für .button auf Mobile (Footer-Media-Query
   weiter oben) - im Banner sollen die Knöpfe kompakt nebeneinander bleiben. */
.cookie-banner-actions .button {
  width: auto;
  min-height: 46px;
  padding-left: 24px;
  padding-right: 24px;
}

.cookie-banner .button.primary {
  background: var(--red);
  color: var(--cream);
  box-shadow: none;
}

.cookie-banner .button.secondary {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 2px var(--cream);
}

@media (hover: hover) and (pointer: fine) {
  .cookie-banner .button.primary:hover:not(:disabled) {
    background: var(--red-light);
    color: var(--cream);
    box-shadow: none;
  }

  .cookie-banner .button.secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: var(--cream);
  }
}

/* Desktop: etwas breiter, damit der Text weniger Zeilen braucht. Der Balken
   auf Datenschutz und Impressum bleibt über die volle Breite (width: auto). */
@media (min-width: 900px) {
  .cookie-banner {
    width: min(680px, calc(100vw - 32px));
  }

  .legal-page .cookie-banner {
    width: auto;
  }
}

/* Schmale Handys: Knöpfe untereinander über die volle Breite. */
@media (max-width: 420px) {
  .cookie-banner-actions {
    flex-direction: column-reverse;
  }

  .cookie-banner-actions .button {
    width: 100%;
  }
}
