/* ==========================================================================
   Fanclub Trinkpause – Fanshop Stylesheet
   Farben gemaess offiziellem Farbcode-Dokument des Fanclubs:
   Rot #ed1c24 / #dd1a21, Anthrazit #3a3a3c, Schwarz, Weiss
   ========================================================================== */

@font-face {
  font-family: "Serpentine";
  src: url("../fonts/SerpentineD-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --red: #ed1c24;
  --red-dark: #dd1a21;
  --anthracite: #3a3a3c;
  --anthracite-light: #4c4c4f;
  --black: #000000;
  --white: #ffffff;
  --off-white: #f6f5f4;
  --grey-line: #e4e2e0;
  --text-muted: #706f70;

  --font-display: "Serpentine", "Montserrat", "Arial Black", sans-serif;
  --font-heavy: "Montserrat", "Arial", sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-strong: 0 20px 50px rgba(0,0,0,0.25);
  --header-h: 76px;
  --transition: 220ms cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
/* overflow-y: scroll + scrollbar-gutter: stable reservieren die
   Scrollbar-Breite normalerweise immer, auch ohne Inhalt zum Scrollen.
   Bei manchen Browser/OS-Kombinationen (z.B. Overlay-Scrollbalken unter
   Windows) greift das aber nicht zuverlässig - der Balken erscheint
   dort nur, wenn wirklich gescrollt werden kann, und verschwindet
   sonst ganz. Damit verschiebt sich der zentrierte Inhalt (inkl.
   sticky Kopfzeile) beim Wechsel zwischen unterschiedlich hohen
   Tabs/Reitern (z.B. Kasse ↔ Verlauf ↔ Saldo) sichtbar hin und her.
   Robuste Lösung, die nicht von dieser Browser-Eigenheit abhängt: body
   ist immer mindestens 1px höher als der sichtbare Bereich, damit auf
   JEDER Seite tatsächlich (minimal) gescrollt werden kann und der
   Balken dadurch immer echt vorhanden ist - nicht nur "reserviert". */
html { scroll-behavior: smooth; overflow-y: scroll; scrollbar-gutter: stable; }
/* Solange irgendein Fenster (Popup), der Warenkorb, "Meine Bestellungen/
   Tickets" oder das Handy-Menü offen ist, steht die Seite dahinter still.
   Die Sperre muss auf html sitzen (dort wird gescrollt, siehe oben) -
   auf body allein wirkt sie hier nicht. Gilt für ALLE Seiten (Shop,
   Kasse, Verwaltung). Der Platz der Bildlaufleiste bleibt dank
   scrollbar-gutter reserviert, es verschiebt sich also nichts. */
html:has(.modal-overlay.open),
html:has(.nav-overlay.show) { overflow-y: hidden; }
.modal-panel, .cart-drawer { overscroll-behavior: contain; }
body {
  margin: 0;
  min-height: calc(100vh + 1px);
  font-family: var(--font-body);
  color: var(--anthracite);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-heavy);
  letter-spacing: 0.01em;
  margin: 0 0 .4em;
  color: var(--black);
}
p { line-height: 1.6; margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-heavy);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
/* Eigentliche Ursache des "Nur reservieren"-Anzeigefehlers vom
   21.08.2026: .btn setzt oben explizit display:inline-flex - das
   überschreibt IMMER das hidden-Attribut (Browser-Standard wäre
   display:none), unabhängig davon, was JS setzt. Gleiches Muster wie
   bei .km-total-row[hidden], .filter-bar[hidden] etc. an anderer
   Stelle im Projekt - dort war es schon gelöst, bei .btn fehlte es. */
.btn[hidden] { display: none; }
/* Genereller "deaktiviert"-Look für ALLE Button-Farbvarianten (nicht nur
   .btn-primary, das weiter unten dieselben Werte nochmal explizit
   setzt) - ohne das hier würde z.B. ein disabled .btn-blue optisch
   exakt gleich wie aktiv aussehen (Bug vom 21.08.2026: "Nur
   reservieren"-Button bei anonymem Kunde sah trotz disabled=true immer
   noch aktiv aus). */
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(237,28,36,0.35);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(237,28,36,0.45);
}
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
/* WICHTIG (wiederholt aufgetretener Fehler, zuletzt gemeldet
   25.08.2026 - "weisse Schrift auf hellem Hintergrund"): .btn-ghost ist
   NUR für dunkle Hintergründe gedacht (z.B. den Hero-Bereich) - die
   weisse Schrift ist auf hellen/weissen Flächen praktisch unsichtbar.
   Für Buttons auf hellen Flächen (Panels, Modals, Karten - der weitaus
   häufigere Fall in den Admin-Bereichen) IMMER .btn-ghost-light
   verwenden, siehe direkt darunter. Vor jedem neuen .btn-ghost muss der
   Hintergrund der Stelle geprüft werden, an der der Button steht. */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
/* Helle Variante von .btn-ghost - für Buttons auf weissem/hellem
   Hintergrund (Panels, Modals, Karten). Verallgemeinert das Muster, das
   bisher lokal/wiederholt einzeln nachgebaut wurde (siehe
   .ticket-events-head .btn-ghost weiter unten und #eventModal
   .btn-ghost in tickets/tickets.css) - ab jetzt hier zentral, damit
   neue helle Ghost-Buttons nicht wieder versehentlich .btn-ghost
   (dunkle Variante) verwenden. */
.btn-ghost-light {
  background: transparent;
  color: var(--anthracite);
  border-color: var(--grey-line);
}
.btn-ghost-light:hover {
  background: var(--off-white);
  border-color: var(--anthracite);
}
.btn-ghost-light:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-ghost-light.active {
  background: var(--anthracite);
  color: var(--white);
  border-color: var(--anthracite);
}
.btn-block { width: 100%; }
/* Breite Knöpfe dürfen umbrechen (24.11.2026, Stefans Meldung: «Bestellung
   verbindlich senden» ragte am Handy über den Knopf hinaus). .btn verbietet
   Umbrüche (white-space: nowrap) - bei voller Breite reicht der Platz am
   Handy aber nicht für lange Texte in Grossbuchstaben. */
.btn-block { white-space: normal; text-align: center; line-height: 1.25; }
@media (max-width: 480px) {
  .btn-block { padding-left: 18px; padding-right: 18px; }
}
/* Kleine Knopf-Variante (15.11.2026, Wunsch von Stefan: ".btn" ist für
   Knöpfe innerhalb der Verwaltungs-Seiten viel zu gross - 14px/30px
   Innenabstand, gedacht für die grossen Aktionen im Shop). NEUE Knöpfe
   in Stammdaten/Betrieb/Finanzen/Tickets bekommen darum zusätzlich
   "btn-sm" (z.B. class="btn btn-ghost-light btn-sm"). Bestehende Knöpfe
   sind bewusst nicht verändert. */
.btn-sm {
  padding: 7px 16px;
  font-size: 0.78rem;
  border-width: 1.5px;
}

/* ---------- Monats-Navigation (Buchhaltung, Dashboard) ----------
   Wiederverwendbare Toolbar für "Monat per Pfeiltasten/Kalender
   durchblättern + Total-Ansicht" (Wunsch vom 24.08.2026), gemeinsam
   genutzt von stammdaten/index.html (Buchhaltung) und
   betrieb/index.html (Dashboard), damit beide Stellen exakt gleich
   aussehen und sich künftig zusammen pflegen lassen. */
.month-nav-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.month-nav-arrow {
  padding: 10px 16px;
  font-size: 1rem;
  line-height: 1;
}
.month-nav-toolbar input[type="month"] {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--grey-line);
  font-size: 0.9rem;
}
.month-nav-period-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 200;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-line);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  transition: transform var(--transition);
  background: #ffffff;
  border-radius: 50%;
  padding: 1px;
  box-sizing: border-box;
}
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--red);
  letter-spacing: 0.02em;
}
.brand-sub { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; border-radius: 50%;
  color: var(--anthracite);
  transition: background var(--transition), color var(--transition);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--off-white); color: var(--red); }

/* ---------- Bereiche-Menü für Vorstand/Admin (nur eingeblendet nach Login-Prüfung) ---------- */
.staff-menu-wrap { position: relative; }
.staff-menu-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-strong);
  min-width: 190px;
  padding: 8px;
  z-index: 200;
}
.staff-menu-dropdown.open { display: flex; }
.staff-menu-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  padding: 6px 10px 4px;
}
.staff-menu-dropdown a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--anthracite);
  text-decoration: none;
}
.staff-menu-dropdown a:hover { background: var(--off-white); color: var(--red); }
.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  transform: scale(0);
  transition: transform 260ms cubic-bezier(.34,1.56,.64,1);
}
.cart-count.show { transform: scale(1); }

.hamburger { display: flex; flex-direction: column; gap: 5px; }
.hamburger span {
  width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 150; opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.nav-overlay.show { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 24px 100px;
  background: radial-gradient(circle at 20% 20%, #4a4a4d 0%, var(--anthracite) 45%, #1b1b1c 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}
.glow-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--red) 0%, transparent 70%);
  top: -120px; right: -80px;
}
.glow-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--red-dark) 0%, transparent 70%);
  bottom: -140px; left: -100px;
  animation-delay: -6s;
}
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-20px) scale(1.08); }
}
.hero-stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 40px);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-logo {
  width: 120px; height: 120px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.45));
  animation: pop-in 900ms cubic-bezier(.34,1.56,.64,1) 100ms both;
  background: #ffffff;
  border-radius: 50%;
  padding: 1.5px;
  box-sizing: border-box;
  object-fit: contain;
}
@keyframes pop-in {
  0% { transform: scale(0.4) rotate(-15deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.hero-eyebrow {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero-title span { color: var(--red); }
.hero-text {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  z-index: 1;
}
.scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--white);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-dot 1.6s ease infinite;
}
@keyframes scroll-dot {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; }
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
section { padding: 90px 24px; max-width: 1360px; margin: 0 auto; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}
.section-head h2::after {
  content: "";
  display: block;
  width: 56px; height: 4px;
  background: var(--red);
  border-radius: 4px;
  margin: 16px auto 0;
}

/* ---------- Process ---------- */
.process { padding-top: 60px; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.process-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.step-number {
  width: 48px; height: 48px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heavy);
  font-weight: 700;
  font-size: 1.2rem;
}
.process-step h3 { font-size: 1.1rem; }
.process-step p { margin-bottom: 0; font-size: 0.92rem; }

/* ---------- Shop / Filter ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
/* "display: flex" oben überschreibt sonst das Standardverhalten des
   Browsers für das hidden-Attribut (Autoren-CSS gewinnt immer gegen
   die UA-Standardregel) - dadurch blieben zweite Filterleisten
   (#subFilterBar, #ticketCompetitionBar) IMMER sichtbar, auch leer,
   und überlappten sich optisch mit der Hauptfilterleiste darüber
   (Fehler gemeldet 17.08.2026, betraf Shop, Kasse Desktop und Mobile). */
.filter-bar[hidden] { display: none; }

/* Shop-geschlossen-Hinweis (Stammdaten -> Einstellungen). display:flex
   NICHT als Inline-Style auf dem Element selbst, sondern hier als
   Klasse - sonst überschreibt es (wie zuvor schon bei .filter-bar)
   das hidden-Attribut und die Meldung bliebe IMMER sichtbar, auch bei
   geöffnetem Shop (Fehler gemeldet 18.08.2026). */
.shop-closed-notice { display: flex; }
.shop-closed-notice[hidden] { display: none; }
.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid var(--grey-line);
  background: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--anthracite);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active {
  background: var(--anthracite);
  border-color: var(--anthracite);
  color: var(--white);
}
/* Wunsch vom 07.11.2026: Button "Tickets" in der Hauptfilterleiste
   farblich von den übrigen Kategorien (Alle/Fanartikel/Bekleidung)
   abheben, da es sich um einen eigenständigen Bereich (Ticketverkauf)
   handelt, nicht nur eine weitere Artikelkategorie. */
/* 25.11.2026 (Wunsch Stefan, Variante B): Tickets blau, Veranstaltungen
   gelb - beide Bereiche heben sich so von den Artikel-Kategorien ab. Gelbe
   Schrift auf Weiss ist schlecht lesbar, darum gelber Rahmen mit
   dunkelgoldener Schrift; gewählt gelb gefüllt mit dunkler Schrift. */
:root {
  --filter-tickets: #1f6fd1;
  --filter-veranstaltungen: #f5c400;
  --filter-veranstaltungen-rand: #d9a400;
  --filter-veranstaltungen-text: #7a5a00;
}
.filter-btn[data-filter="tickets"] {
  border-color: var(--filter-tickets);
  color: var(--filter-tickets);
}
.filter-btn[data-filter="tickets"]:hover {
  background: var(--filter-tickets);
  color: var(--white);
}
.filter-btn[data-filter="tickets"].active {
  background: var(--filter-tickets);
  border-color: var(--filter-tickets);
  color: var(--white);
}
.filter-btn[data-filter="veranstaltungen"] {
  border-color: var(--filter-veranstaltungen-rand);
  color: var(--filter-veranstaltungen-text);
}
.filter-btn[data-filter="veranstaltungen"]:hover,
.filter-btn[data-filter="veranstaltungen"].active {
  background: var(--filter-veranstaltungen);
  border-color: var(--filter-veranstaltungen);
  color: var(--anthracite);
}
/* Artikel-Kategorien in der ERSTEN Filterzeile (Alle, Bekleidung,
   Fanartikel, ...) verhalten sich wie Tickets/Veranstaltungen, nur in Rot
   (25.11.2026, Wunsch Stefan): rot umrandet, beim Darüberfahren und wenn
   gewählt rot ausgefüllt. Nur #filterBar (Shop, Kasse, Kasse Mobile) - die
   Unterfilter (zweite Zeile) und die Filter in der Verwaltung bleiben. */
#filterBar .filter-btn:not([data-filter="tickets"]):not([data-filter="veranstaltungen"]) {
  border-color: var(--red);
  color: var(--red);
}
#filterBar .filter-btn:not([data-filter="tickets"]):not([data-filter="veranstaltungen"]):hover,
#filterBar .filter-btn:not([data-filter="tickets"]):not([data-filter="veranstaltungen"]).active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Zusätzliche Filterzeilen (Wettbewerb + Heimspiel/Auswärtsspiel bei
   Tickets) - kleiner und dichter unter der jeweils vorherigen Zeile,
   damit die Hierarchie klar bleibt. margin-top statt margin-bottom auf
   .filter-bar, da diese davor bereits 46px Abstand nach unten mitbringt. */
#ticketCompetitionBar,
#subFilterBar,
#subSubFilterBar {
  margin-top: -30px;
}
#ticketCompetitionBar .filter-btn,
#subFilterBar .filter-btn,
#subSubFilterBar .filter-btn {
  padding: 6px 16px;
  font-size: 0.8rem;
  border-color: var(--grey-line);
}
#ticketCompetitionBar .filter-btn.active,
#subFilterBar .filter-btn.active,
#subSubFilterBar .filter-btn.active {
  background: var(--red);
  border-color: var(--red);
}
/* Darüberfahren (25.11.2026, Rückmeldung Stefan): bei den Unterfiltern
   wird wie bei der Hauptleiste auch der Rahmen rot, nicht nur die Schrift
   (der graue Rahmen oben hat das bisher verhindert). */
#ticketCompetitionBar .filter-btn:not(.active):hover,
#subFilterBar .filter-btn:not(.active):hover,
#subSubFilterBar .filter-btn:not(.active):hover {
  border-color: var(--red);
  color: var(--red);
}
/* Unter «Tickets» (blau, 25.11.2026) auch die Unterfilter blau - gewählt
   und beim Darüberfahren (Rückmeldung Stefan: Schrift war noch rot) */
body[data-shop-filter="tickets"] #ticketCompetitionBar .filter-btn.active,
body[data-shop-filter="tickets"] #subFilterBar .filter-btn.active {
  background: var(--filter-tickets);
  border-color: var(--filter-tickets);
}
body[data-shop-filter="tickets"] #ticketCompetitionBar .filter-btn:not(.active):hover,
body[data-shop-filter="tickets"] #subFilterBar .filter-btn:not(.active):hover {
  border-color: var(--filter-tickets);
  color: var(--filter-tickets);
}
/* Dritte Filterzeile (Wunsch vom 28.10.2026, "Bekleidung -> gpard ->
   Herren"): noch etwas kleiner/dezenter als die zweite Zeile und ohne
   den -30px-Überlapp, da sie ERST erscheint, nachdem in der zweiten
   Zeile schon etwas ausgewählt wurde (kein Platzproblem durch zwei
   gleichzeitig leere Zeilen wie bei den oberen beiden). */
#subSubFilterBar {
  margin-top: -22px;
  margin-bottom: 36px;
}
#subSubFilterBar .filter-btn {
  padding: 5px 14px;
  font-size: 0.76rem;
  opacity: 0.85;
}
#subSubFilterBar .filter-btn.active {
  opacity: 1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: transform var(--transition), box-shadow var(--transition), opacity 420ms ease;
}
.product-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Hover-Effekte nur bei echter Maus (24.11.2026): auf dem Handy wertete
   iOS den ersten Tipp als "Hover" - die Karte hob sich an, die Bildpfeile
   erschienen, und der Klick ging verloren (zweimal tippen nötig). */
@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
  }
}
.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--off-white);
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
  transition: transform 500ms cubic-bezier(.2,.7,.3,1);
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-media img { transform: scale(1.05); }
}
.product-soldout-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
}
.product-soldout-text {
  color: var(--red);
  font-family: var(--font-heavy);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transform: rotate(-20deg);
  border: 3px solid var(--red);
  padding: 4px 18px;
  background: rgba(255,255,255,0.9);
  border-radius: 6px;
}
.product-image-dots {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.product-image-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.25);
  padding: 0;
  cursor: pointer;
}
.product-image-dot.active { background: var(--red); }
.product-image-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--anthracite);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
}
.product-image-arrow:focus-visible {
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-image-arrow { opacity: 1; }
}
.product-image-arrow:hover { background: var(--white); }
.product-image-arrow-prev { left: 8px; }
.product-image-arrow-next { right: 8px; }
@media (hover: none) {
  /* Auf Touch-Geräten gibt es kein ":hover" zum Einblenden - Pfeile
     bleiben darum dauerhaft sichtbar (etwas dezenter), da hier ohnehin
     primär gewischt wird und die Pfeile nur als Zusatzoption dienen. */
  .product-image-arrow { opacity: 0.7; }
}
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
/* Grössenvarianten - je Status-Wert in Stammdaten -> Artikel-Dropdown
   wählbar. Ohne Auswahl gilt "mittel" (= die obigen Basiswerte). */
.product-badge-klein { font-size: 0.6rem; padding: 3px 9px; }
.product-badge-gross { font-size: 0.85rem; padding: 7px 15px; }
.product-badge-xl { font-size: 1rem; padding: 9px 18px; }
.product-badge-xxl { font-size: 1.2rem; padding: 11px 22px; }
.product-badge-xxxl { font-size: 1.4rem; padding: 13px 26px; }
.product-info { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-name { font-size: 1.02rem; margin: 0; color: var(--black); font-family: var(--font-heavy); }
.product-desc { font-size: 0.85rem; margin: 0; flex: 1; }
[data-product-detail] { cursor: pointer; }
[data-product-detail]:hover { text-decoration: underline; text-decoration-color: rgba(0,0,0,0.25); }
[data-product-lightbox] { cursor: zoom-in; }
.product-detail-text { white-space: pre-wrap; }
.product-price {
  font-family: var(--font-heavy);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--red);
}
.product-price small { color: var(--text-muted); font-size: 0.7rem; font-weight: 600; margin-left: 4px; }

/* Drückt Grössenauswahl + Mengen-/Warenkorb-Zeile an den unteren Rand
   der Karte, statt dass ihre Position vom Textumfang darüber (Name,
   Kurzbeschreibung, Lagerhinweis...) abhängt - dadurch stehen die
   Buttons bei allen Karten einer Reihe auf gleicher Höhe. */
.product-options { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
/* Grössenauswahl mit Bestand (Variante B, 24.11.2026): Felder für 7 Grössen
   auf einer Linie ausgelegt (Stefan: mehr als 7 Grössen pro Artikel sind
   selten). Hat ein Artikel mehr, lässt sich die Reihe seitlich verschieben
   (Scrollbalken). Wenige Grössen bleiben kompakt (max. 52px pro Feld). */
.size-select {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(52px, calc((100% - 6 * 4px) / 7));
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
/* Mittig zentriert (24.11.2026); bei mehr als 7 Grössen linksbündig, sonst
   wären die ersten Felder beim seitlichen Verschieben nicht erreichbar */
.size-select { justify-content: center; }
.size-select.size-scroll { padding-bottom: 6px; justify-content: start; }
.size-btn {
  position: relative;
  min-width: 0;
  height: 40px;
  padding: 0 0 5px;
  border-radius: 8px;
  border: 1.5px solid var(--grey-line);
  background: var(--white);
  color: var(--anthracite);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--transition);
}
.size-btn::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px; bottom: 5px;
  height: 3px;
  border-radius: 2px;
  background: transparent;
}
.size-btn.size-lager::after { background: #2e9e4f; }
.size-btn.size-bestellung::after { background: #e39b17; }
.size-btn.size-aus::after { background: var(--red); }
@media (hover: hover) and (pointer: fine) {
  .size-btn:hover { border-color: var(--red); }
}
.size-btn.selected { background: var(--anthracite); border-color: var(--anthracite); color: var(--white); }
/* Ausverkauft: Feld ausgegraut, Text NICHT durchgestrichen, roter Strich bleibt */
.size-btn.size-aus, .size-btn.size-aus:hover {
  background: var(--off-white);
  border-color: #ece9e6;
  color: #a5a5a5;
  cursor: not-allowed;
}
.size-legend { display: flex; flex-wrap: nowrap; justify-content: center; gap: 9px; margin-top: 6px; font-size: 0.66rem; color: var(--text-muted); white-space: nowrap; }
.size-legend-item { display: inline-flex; align-items: center; gap: 4px; }
.size-legend-item::before { content: ""; flex: none; width: 10px; height: 3px; border-radius: 2px; }
.size-legend-item.lager::before { background: #2e9e4f; }
.size-legend-item.bestellung::before { background: #e39b17; }
.size-legend-item.aus::before { background: var(--red); }
/* Sehr schmale Handys (z.B. 320px): Legende bleibt auf einer Linie */
@media (max-width: 360px) {
  .size-legend { font-size: 0.6rem; gap: 6px; }
  .size-legend-item { gap: 3px; }
  .size-legend-item::before { width: 8px; }
}

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qty-stepper {
  display: flex; align-items: center;
  border: 1.5px solid var(--grey-line);
  border-radius: 999px;
  overflow: hidden;
}
.qty-stepper button {
  width: 32px; height: 32px;
  border: none; background: var(--off-white);
  font-size: 1rem; font-weight: 700; color: var(--anthracite);
  transition: background var(--transition);
}
.qty-stepper button:hover { background: var(--grey-line); }
.qty-stepper span { width: 30px; text-align: center; font-weight: 700; font-size: 0.9rem; }

.add-to-cart {
  border: none;
  background: var(--anthracite);
  color: var(--white);
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background var(--transition), transform 160ms ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.add-to-cart:hover { background: var(--red); }
.add-to-cart.added { background: #1e8e3e; }
.add-to-cart.added::after { content: "✓ Hinzugefügt"; }
.add-to-cart .default-label { display: inline; }
.add-to-cart.added .default-label { display: none; }

/* ---------- Info / Kontakt ---------- */
.info-cta-inner {
  background: linear-gradient(135deg, var(--anthracite), #232324);
  border-radius: 24px;
  padding: 54px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  color: var(--white);
}
.info-block h2 { color: var(--white); }
.info-block h2::after { margin: 16px 0 0; }
.info-block p { color: rgba(255,255,255,0.75); }
.info-list li {
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}
.info-list strong { color: var(--white); }
.info-list a { color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 2px; }
.info-list a:hover { color: var(--white); }
.info-note {
  background: rgba(237,28,36,0.14);
  border: 1px solid rgba(237,28,36,0.4);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.note-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-heavy);
  display: flex; align-items: center; justify-content: center;
}
.info-note p { color: rgba(255,255,255,0.9); font-size: 0.9rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,0.7); padding: 60px 24px 0; }
.footer-inner {
  max-width: 1360px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-logo { width: 48px; height: 48px; background: #ffffff; border-radius: 50%; padding: 1px; box-sizing: border-box; object-fit: contain; }
.footer-brand p { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-links h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.footer-links a { display: block; padding: 6px 0; font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--red); }
.footer-bottom { max-width: 1360px; margin: 0 auto; padding: 20px 0; font-size: 0.78rem; text-align: center; color: rgba(255,255,255,0.45); }

/* ==========================================================================
   CART DRAWER
   ========================================================================== */
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--white);
  z-index: 400;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 380ms cubic-bezier(.2,.7,.3,1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.2);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--grey-line);
}
.cart-header h3 { margin: 0; font-family: var(--font-heavy); }
.cart-body { flex: 1; overflow-y: auto; padding: 10px 24px; }
.cart-empty { text-align: center; margin-top: 60px; color: var(--text-muted); }
.cart-items { display: flex; flex-direction: column; gap: 14px; padding: 14px 0; }
.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--grey-line);
  animation: item-in 320ms ease;
}
@keyframes item-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.cart-item img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; background: var(--off-white); }
.cart-item-name { font-weight: 700; font-size: 0.88rem; margin-bottom: 2px; }
.cart-item-meta { font-size: 0.76rem; color: var(--text-muted); }
.cart-item-controls { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-item-controls button {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--grey-line); background: var(--white);
  font-weight: 700; font-size: 0.8rem;
}
.cart-item-price { font-weight: 700; font-size: 0.88rem; text-align: right; white-space: nowrap; }
.cart-item-remove {
  border: none; background: transparent; color: var(--text-muted);
  font-size: 0.72rem; text-decoration: underline; margin-top: 4px;
}
.cart-item-remove:hover { color: var(--red); }

.cart-footer { padding: 20px 24px 26px; border-top: 1px solid var(--grey-line); }
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-heavy); font-weight: 700; font-size: 1.15rem;
  margin-bottom: 8px;
}
.cart-hint { font-size: 0.76rem; color: var(--text-muted); margin-bottom: 16px; }

/* ==========================================================================
   MODAL / CHECKOUT
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--white);
  border-radius: 20px;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 320ms cubic-bezier(.2,.7,.3,1);
  position: relative;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-panel { padding: 26px 28px 30px; max-height: 88vh; overflow-y: auto; }
.confirm-panel { display: none; text-align: center; }
.modal.show-confirm .modal-panel#panelForm { display: none; }
.modal.show-confirm .confirm-panel { display: block; }

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-header h3 { margin: 0; font-family: var(--font-heavy); }

/* ---------- Bild-Popup (grosse Ansicht) ---------- */
.image-lightbox-modal {
  background: transparent;
  box-shadow: none;
  max-width: min(90vw, 700px);
  width: auto;
  overflow: visible;
}
.image-lightbox-modal img {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--white);
}
.image-lightbox-modal img.is-switchable { cursor: pointer; }
#imageLightboxOverlay { overscroll-behavior: contain; touch-action: none; }
.image-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255,255,255,0.9);
}
.order-summary {
  background: var(--off-white);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.84rem;
  margin-bottom: 18px;
  max-height: 160px;
  overflow-y: auto;
}
.order-summary-row { display: flex; justify-content: space-between; padding: 4px 0; }
.order-summary-total { display: flex; justify-content: space-between; font-weight: 700; padding-top: 8px; margin-top: 6px; border-top: 1px dashed var(--grey-line); }

#checkoutForm { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
#checkoutForm label { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--anthracite); }
#checkoutForm input, #checkoutForm textarea {
  font-family: inherit;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--grey-line);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
#checkoutForm input:focus, #checkoutForm textarea:focus { outline: none; border-color: var(--red); }
.checkbox-row { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 0.8rem !important; color: var(--text-muted) !important; }
.checkbox-row input { margin-top: 3px; flex-shrink: 0; }

/* ---------- Ticketverkauf (js/member-tickets.js) ---------- */
.ticket-events-section { margin-bottom: 28px; }
.ticket-events-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
/* Gleiches wiederkehrendes Muster wie bei .btn[hidden]/.filter-bar[hidden]
   weiter oben: "display: flex" gewinnt sonst IMMER gegen das
   hidden-Attribut, wodurch "Meine Bestellungen" bei Kategorie "Tickets"
   trotz gesetztem hidden weiterhin sichtbar blieb (gemeldet 28.10.2026). */
.ticket-events-head[hidden] { display: none; }
.ticket-events-head h3 { margin: 0; font-family: var(--font-heavy); }
/* .btn-ghost ist für den dunklen Hero-Bereich gedacht (weisse Schrift) -
   auf dem hellen Hintergrund hier praktisch unsichtbar, darum eigene,
   dunkle Variante für diesen Button. */
.ticket-events-head .btn-ghost {
  color: var(--anthracite);
  border-color: var(--grey-line);
  /* Bleibt auch dann rechtsbündig, wenn der Button wegen flex-wrap in
     eine eigene Zeile umbricht (z.B. weil "Tickets bestellen" + Button
     nicht mehr nebeneinander passen) - sonst würde er auf seiner
     eigenen Zeile links landen (gemeldet 18.08.2026). */
  margin-left: auto;
}
.ticket-events-head .btn-ghost:hover {
  background: var(--off-white);
  border-color: var(--anthracite);
}
.ticket-events-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ticket-events-empty { color: var(--text-muted); font-size: 0.9rem; }
.ticket-event-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  text-align: center;
}
/* Bearbeiten-Knopf für Admins (24.11.2026) - oben rechts auf Artikel-,
   Spiel- und Veranstaltungskarten, führt direkt in die Stammdaten. */
.ticket-event-card { position: relative; }
.admin-edit-btn {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 4;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--anthracite);
  border: 1.5px solid var(--grey-line);
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  transition: all var(--transition);
}
.admin-edit-btn:hover, .admin-edit-btn:focus-visible { background: var(--anthracite); border-color: var(--anthracite); color: var(--white); }
.ticket-event-card .admin-edit-btn { top: 8px; right: 8px; width: 28px; height: 28px; font-size: 0.85rem; }
.ticket-event-card h4 { margin: 0 0 4px; font-family: var(--font-heavy); font-size: 1rem; }
.ticket-event-teams { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.ticket-event-meta { font-size: 0.78rem; color: var(--text-muted); margin: 0 0 12px; }
/* Heimspiel/Auswärtsspiel-Badge oberhalb der Clublogos (07.11.2026),
   analog zur bereits bestehenden Anzeige im Ticketbereich
   (.sell-tile .tile-badge in tickets/tickets.css). */
.ticket-event-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; background: var(--off-white); color: var(--text-muted);
  margin-bottom: 4px;
}
/* Der allgemeine .btn ist für grosszügige Call-to-Action-Flächen
   gedacht (viel Padding, keine Umbrüche) - in dieser schmalen Karte
   (ab 220px) sprengt "Ticket auswählen" damit den Rand. Eigene, engere
   Variante nur für diesen Button. */
.ticket-event-card .btn {
  width: 100%;
  padding: 12px 10px;
  font-size: 0.82rem;
  white-space: normal;
  box-sizing: border-box;
}
/* Bestellschluss erreicht (konfigurierbar pro Spiel, 07.11.2026,
   ersetzt die frühere feste "am Spieltag selbst"-Regel vom 17.08.2026):
   kein Online-Verkauf mehr, Karte ausgegraut, Klick zeigt einen Hinweis
   statt das Bestellfenster zu öffnen. */
.ticket-event-card-locked { opacity: 0.55; cursor: pointer; }
.ticket-event-card-locked:hover { opacity: 0.75; }
.ticket-event-locked-hint {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.tile-teams { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 8px; }
.tile-team-logo { width: 84px; height: 84px; object-fit: contain; flex: none; }
.tile-team-logo-placeholder { display: inline-block; border-radius: 50%; background: var(--off-white); }
.tile-teams-vs { font-size: 0.72rem; color: var(--text-muted); font-weight: 700; }

#ticketOrderModal label { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--anthracite); margin-bottom: 14px; }
#ticketOrderModal select {
  font-family: inherit;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--grey-line);
  font-size: 0.9rem;
}

/* ---------- Ticket bestellen: 3-stufiger Ablauf (Sektor -> Kategorie) ---------- */
.ticket-order-step-title { margin: 0 0 12px; font-family: var(--font-heavy); font-size: 0.95rem; }
.ticket-order-back-btn {
  background: none; border: none; padding: 0 0 12px; margin: 0;
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted); cursor: pointer;
}
.ticket-order-back-btn:hover { color: var(--anthracite); }
.ticket-order-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 6px; }
.ticket-order-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--off-white);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 160ms;
}
.ticket-order-tile:hover { border-color: var(--red); }
/* Wunsch vom 25.10.2026: Sektor / Anzahl Kategorien / Anzahl verfügbare
   Tickets je auf einer eigenen, zentrierten Zeile (statt "X Kategorien
   · Y verfügbar" auf einer Linie - zu wenig Platz auf dem Handy). */
.ticket-order-tile-line { font-size: 0.78rem; color: var(--text-muted); }
.ticket-order-type-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.ticket-order-type-row {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--off-white);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
}
.ticket-order-type-row:hover { border-color: var(--red); }
.ticket-order-type-row.selected { border-color: var(--red); }
/* Bestellschluss erreicht, teilweise Sperre (07.11.2026): Kategorie
   ohne verfügbaren Bestand ist nicht mehr anklickbar (kein
   Überverkaufen mehr - siehe orderLockReached/partialLockActive). */
.ticket-order-type-row:disabled { cursor: not-allowed; opacity: 0.6; }
.ticket-order-type-row:disabled:hover { border-color: transparent; }
.ticket-order-type-row .tor-top-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticket-order-type-row .tor-name { flex: 1; min-width: 0; }
.ticket-order-type-row .tor-price { font-weight: 700; color: var(--black); white-space: nowrap; flex: 0 0 90px; text-align: right; }
.ticket-order-type-row .tor-price.tor-price-soldout { color: var(--red); }
/* Wunsch vom 25.10.2026: Verfügbarkeit auf eigener Zeile unter Name +
   Preis - entweder "X verfügbar" (neutral) oder rot "Auf Bestellung". */
.tor-availability { font-size: 0.78rem; color: var(--text-muted); }
.tor-availability.tor-availability-soldout { color: var(--red); font-weight: 700; }
.ticket-soldout-explainer {
  font-size: 0.82rem;
  color: var(--black);
  margin: 4px 0 0;
}
.tor-soldout-hint-word {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
}
.ticket-order-hint { font-size: 0.78rem; color: var(--text-muted); margin: 12px 0; }
.ticket-order-error {
  background: #fdeaea; color: #b30000; border: 1px solid #f5c2c2;
  border-radius: 8px; padding: 10px 12px; font-size: 0.82rem; margin-bottom: 14px;
}

.ticket-orders-list { display: flex; flex-direction: column; gap: 10px; }
.ticket-order-row { background: var(--off-white); border-radius: 10px; padding: 12px 14px; }
.ticket-order-row .tor-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
/* .ticket-event-meta bringt sonst 12px margin-bottom mit (gedacht für
   die Event-Kachel) - hier als eigene Zeile im Buchungs-Verlauf reicht
   ein kleinerer Abstand zur Detailzeile darunter. */
.ticket-order-row .ticket-event-meta { margin: 0 0 4px; }
.ticket-order-row .tor-details { font-size: 0.84rem; color: var(--anthracite); }

/* "Meine Tickets": Unterteilung Aktuell/Zukünftig/Vergangene (28.10.2026) */
.my-tickets-group { display: flex; flex-direction: column; gap: 10px; }
.my-tickets-group + .my-tickets-group { margin-top: 18px; }
/* Farbig hervorgehobene Titelbalken statt blossem grauem Text (Wunsch
   vom 28.10.2026) - je Abschnitt eine eigene Farbe, damit sich die drei
   Bereiche auf den ersten Blick unterscheiden lassen: Aktuell in Rot
   (Markenfarbe, zieht die Aufmerksamkeit auf das nächste Spiel),
   Zukünftig neutral/dunkel, Vergangene dezent/grau. */
.my-tickets-group-title {
  font-family: var(--font-heavy);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 999px;
  display: inline-block;
}
.my-tickets-group-title-aktuell { background: rgba(237,28,36,0.12); color: var(--red-dark); }
.my-tickets-group-title-zukuenftig { background: var(--anthracite); color: var(--white); }
.my-tickets-group-title-vergangen { background: var(--grey-line); color: var(--text-muted); }

/* Status-Chip pro Ticket-Buchung (Wunsch vom 28.10.2026) - fasst
   Zuweisung (status) und Bezahlung (payment_status) zu einem
   verständlichen Gesamtstatus zusammen, siehe ticketStatusInfo() in
   member-tickets.js. */
.ticket-status-chip {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.ticket-status-chip.ticket-status-offen { background: rgba(138,90,0,0.12); color: #8A5A00; }
.ticket-status-chip.ticket-status-zugewiesen { background: rgba(58,58,60,0.1); color: var(--anthracite); }
.ticket-status-chip.ticket-status-bezahlt { background: rgba(30,142,62,0.12); color: #1e8e3e; }
.ticket-status-chip.ticket-status-storniert { background: var(--grey-line); color: var(--text-muted); text-decoration: line-through; }

.confirm-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  background: #1e8e3e;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  animation: pop-in 500ms cubic-bezier(.34,1.56,.64,1);
}
.confirm-text { font-size: 0.9rem; }
#orderNumber { color: var(--red); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .process-steps { grid-template-columns: 1fr; }
  .info-cta-inner { grid-template-columns: 1fr; padding: 34px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .brand-sub { display: none; }
  .form-row, .form-row.form-row-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  section { padding: 64px 18px; }
}

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

/* ==========================================================================
   ERGÄNZUNG: Demo-Modus-Banner, Admin-Link, Lagerbestand im Shop
   ========================================================================== */
.mode-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  background: #fff3cd;
  color: #7a5b00;
  text-align: center;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-bottom: 1px solid #f0d98c;
}
.mode-banner code {
  background: rgba(0,0,0,0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
}
body:has(.mode-banner:not([hidden])) .site-header { top: 34px; }
body:has(.mode-banner:not([hidden])) .hero { padding-top: calc(var(--header-h) + 34px + 40px); }

.footer-bottom .admin-link { color: rgba(255,255,255,0.5); text-decoration: underline; }
.footer-bottom .admin-link:hover { color: var(--red); }

.stock-note { font-size: 0.76rem; color: var(--text-muted); }
.bulk-hint {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--red);
  background: rgba(237,28,36,0.1);
  border-radius: 999px;
  padding: 2px 9px;
  margin: 2px 0 4px;
}
.compare-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85em;
  margin-right: 2px;
}
.stock-note.low { color: var(--red); font-weight: 600; }
.stock-note.out { color: var(--red); font-weight: 700; }
.stock-note.backorder { color: #8A5A00; font-weight: 600; }

/* Sammelbestellungen - Live-Anzeige + Fortschrittsbalken (Phase 2,
   21.08.2026): aktuell erreichter Mengenrabatt beim gemeinsamen
   Einkauf, gilt artikel- und mitgliederübergreifend. */
.sammelbestellung-box {
  margin: 6px 0 4px;
  padding: 8px 10px;
  background: var(--off-white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-sm);
}
.sb-status { font-size: 0.78rem; color: var(--anthracite); }
.sb-status strong { color: var(--red); }
.sb-progress-bar {
  margin-top: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--grey-line);
  overflow: hidden;
}
.sb-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--red);
  transition: width var(--transition);
}
.sb-progress-label {
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.sb-hint {
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.product-card.sold-out .product-media img { filter: grayscale(0.6); opacity: 0.6; }
.product-card.sold-out .add-to-cart { background: #b7b6b6; cursor: not-allowed; }
.product-card.sold-out .add-to-cart:hover { background: #b7b6b6; }
/* Gesperrte Grössen: Darstellung siehe .size-btn.size-aus (ausgegraut,
   ohne Durchstreichen, roter Strich) - Variante B, 24.11.2026 */
.size-btn:disabled { cursor: not-allowed; }
/* Höchstmenge erreicht (z.B. 10 Tickets pro Bestellung): Plus-Knopf
   sichtbar deaktiviert. */
.qty-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-stepper button:disabled:hover { background: var(--off-white); }
/* Hinweis auf die Höchstmenge (Wunsch vom 15.11.2026): rot und fett. */
#ticketOrderQtyMaxHint { color: var(--red); font-weight: 700; }

/* ---------- Shop-Fenster: Titel und "x" bleiben beim Scrollen oben
   (15.11.2026, Wunsch von Stefan - wie in den Verwaltungsbereichen,
   siehe stammdaten/stammdaten.css). Betrifft "Bestellung abschliessen",
   "Ticket bestellen" und die Artikel-Detailansicht; die Kasse ist
   bewusst nicht einbezogen. "top: -26px": Bezug ist der Inhaltsbereich
   von .modal-panel (26px Innenabstand oben) - mit "top: 0" würde der
   Kopf die erste Inhaltszeile verdecken. ---------- */
#checkoutModal .modal-panel > .modal-header,
#ticketOrderModal .modal-panel > .modal-header,
#productDetailModal .modal-panel > .modal-header {
  position: sticky;
  top: -26px;
  z-index: 6;
  background: var(--white);
  margin: -26px -28px 10px;
  padding: 16px 28px 10px;
  border-bottom: 1px solid var(--grey-line);
}

/* Handy: kein automatisches Hineinzoomen beim Antippen eines Eingabefelds.
   iOS zoomt, sobald die Schrift eines Felds kleiner als 16px ist. Daher gilt
   auf Touch-Geräten mindestens 16px; Doppeltipp-Zoom ist ausgeschaltet. */
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}
html { touch-action: manipulation; }

/* ---------- Konfigurierbare Artikel im Shop (Etappe 3, 23.11.2026) ----------
   Auswahl auf der Artikelkarte: Farbe als Farbpunkte, Druckpositionen als
   Chips (inkl. «ohne»), darunter die Grössen. Nicht kombinierbare Optionen
   sind ausgegraut und durchgestrichen, ausverkaufte nur blass. */
.kf-auswahl { display: flex; flex-direction: column; gap: 8px; }
.kf-gruppe { display: flex; flex-direction: column; gap: 4px; }
.kf-label { font-size: 0.76rem; color: var(--text-muted); }
.kf-label strong { color: var(--black); font-weight: 600; }
.kf-optionen { display: flex; flex-wrap: wrap; gap: 6px; }
.kf-opt { transition: all var(--transition); }
.kf-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1.5px solid var(--grey-line);
  background: var(--white);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
}
@media (hover: hover) and (pointer: fine) {
  .kf-chip:hover:not(:disabled) { border-color: var(--red); }
}
.kf-chip.selected { background: var(--anthracite); border-color: var(--anthracite); color: var(--white); }
.kf-chip.kf-ohne { font-weight: 500; font-style: italic; }
.kf-swatch {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.25);
  flex: 0 0 auto;
}
.kf-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--kf-farbe, #ccc);
  border: 1px solid rgba(0,0,0,0.2);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3px transparent;
  padding: 0;
}
@media (hover: hover) and (pointer: fine) {
  .kf-dot:hover:not(:disabled) { box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--red); }
}
.kf-dot.selected { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--anthracite); }
.kf-opt.kf-leer { opacity: 0.5; }
.kf-opt:disabled { opacity: 0.3; cursor: not-allowed; }
.kf-chip:disabled { text-decoration: line-through; }
.kf-dot:disabled { background-image: linear-gradient(135deg, transparent 45%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.55) 55%, transparent 55%); }

.kf-frage-modal { width: min(440px, 100%); }
.kf-frage-modal .modal-body p { margin: 0 0 16px; }
.kf-frage-buttons { display: flex; flex-wrap: wrap; gap: 8px; }


/* Bild einer Veranstaltung (25.11.2026, optional): oben über die ganze
   Kartenbreite, antippen vergrössert (Lightbox aus js/script.js). */
.va-card-bild {
  position: relative;
  display: block;
  width: calc(100% + 32px);
  aspect-ratio: 16 / 9;
  margin: -16px -16px 12px;
  padding: 0;
  border: 0;
  background: var(--off-white);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  cursor: zoom-in;
}
/* Grösse/Lage kommen aus dem Ausschnitt (bildStil in js/member-veranstaltungen.js) */
.va-card-bild img,
.va-modal-bild img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
/* Anmeldefenster: gleiches Format wie die Karte (16:9), damit der in den
   Stammdaten gewählte Ausschnitt genau gleich aussieht. */
.va-modal-bild {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  margin: 0 0 12px;
  overflow: hidden;
  background: var(--off-white);
  cursor: zoom-in;
}
.va-modal-bild[hidden] { display: none; }

/* Passwort anzeigen (25.11.2026): Augen-Symbol rechts im Passwortfeld
   (eingebaut von js/api.js). */
.pw-feld { position: relative; display: block; width: 100%; }
.pw-feld input { width: 100%; box-sizing: border-box; padding-right: 44px !important; }
.pw-auge {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.pw-auge:hover, .pw-auge[aria-pressed="true"] { color: var(--anthracite); background: rgba(0, 0, 0, 0.05); }
.pw-auge:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }

/* ---------- Ansicht umschalten (27.11.2026): «Mitglied» ausgeschaltet ----------
   Der Shop bleibt zu; sichtbar sind nur die Titelleiste (Bereiche-Menü,
   Menü mit «Ansicht» und «Abmelden») und der Hinweis (js/authgate.js). */
body.ansicht-ohne-mitglied #shopContent > *:not(.site-header):not(#ansichtOhneMitglied) { display: none !important; }
body.ansicht-ohne-mitglied #cartToggle,
body.ansicht-ohne-mitglied #mainNav > a:not(#logoutLink):not(#ansichtMenuePunkt) { display: none !important; }
.ansicht-ohne-mitglied-hinweis { max-width: 560px; margin: 130px auto 70px; padding: 26px 24px; text-align: center; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-strong); }
.ansicht-ohne-mitglied-hinweis h2 { font-size: 1.2rem; margin-bottom: 8px; }
.ansicht-ohne-mitglied-hinweis p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.ansicht-ohne-mitglied-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.ansicht-bereich-link { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--grey-line, #ddd); background: var(--white); color: var(--anthracite); font-size: 0.8rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.ansicht-bereich-link:hover { border-color: var(--red); color: var(--red); }
.ansicht-bereich-link.ansicht-aendern { background: var(--anthracite); border-color: var(--anthracite); color: var(--white); }
.ansicht-bereich-link.ansicht-aendern:hover { background: var(--red); border-color: var(--red); color: var(--white); }

/* Menü-Einträge, die per "hidden" ausgeblendet werden (Bereiche, die die
   Person nicht nutzen darf): "display: block/flex" der Menü-Regeln
   überschrieb das hidden-Attribut, die Links blieben darum immer sichtbar
   (gemeldet von Stefan, 27.11.2026). Gilt für das Bereiche-Menü im Shop
   (vier Quadrate), das Hamburger-Menü und das «☰ Menü» der Verwaltung. */
.staff-menu-dropdown a[hidden],
.nav-menu-dropdown a[hidden],
.nav-menu-dropdown button[hidden] { display: none !important; }

/* ---------- Sichtbarkeit nach Rolle (28.11.2026) ----------
   Hinweis «sichtbar für …» als zweite, kleine Zeile im Knopf der
   Kategorien-Leiste (Shop, Kasse) und in den Bereichs-Reitern der Kasse.
   Der Text steht im Attribut data-sichtbar (js/api.js, Sichtbarkeit). */
.filter-btn[data-sichtbar]::after,
.km-tab-btn[data-sichtbar]::after {
  content: attr(data-sichtbar);
  display: block;
  margin-top: 2px;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  opacity: 0.85;
}
.filter-btn[data-sichtbar], .km-tab-btn[data-sichtbar] { outline: 2px dashed #e6b800; outline-offset: -2px; }
/* Kasse: offene Positionen eines nicht freigegebenen Bereichs ausblenden */
body.kasse-ohne-shop #kasseOpenOrdersSection, body.kasse-ohne-shop #kmOpenOrdersSection,
body.kasse-ohne-tickets #kasseAssignedTicketsSection, body.kasse-ohne-tickets #kmAssignedTicketsSection,
body.kasse-ohne-veranstaltungen #kvOffenSection { display: none !important; }

/* Sichtbarkeit pro Artikel (Etappe 2, 28.11.2026): Schildchen «TEST» auf dem
   Artikelbild und Zeile «sichtbar für …» - Shop, Kasse und Kasse Mobile.
   Gleiches Gelb wie der Hinweis an den Knöpfen der Kategorien-Leiste. */
.sichtbar-test-schild {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  background: #ffd84d;
  color: #1a1a1a;
  border: 1px dashed #1a1a1a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  pointer-events: none;
}
.sichtbar-artikel-zeile {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  color: #7a5c00;
}
.kasse-product-card, .km-product-card { position: relative; }
.kasse-product-card .sichtbar-test-schild, .km-product-card .sichtbar-test-schild { top: 6px; right: 6px; font-size: 0.62rem; padding: 4px 7px; }
/* Shop: oben rechts sitzt der Bearbeiten-Knopf, oben links der Status - darum unten links */
.product-media .sichtbar-test-schild { top: auto; right: auto; bottom: 12px; left: 12px; }

/* ==========================================================================
   Bereich «Legenden» (28.11.2026, Wunsch Stefan): alte, nicht mehr
   bestellbare Artikel. Der Knopf steht ganz rechts in der Kategorien-Leiste,
   durch einen Strich von den aktiven Bereichen abgetrennt. Damit die übrigen
   Knöpfe in der Mitte bleiben, nimmt links ein leerer Platzhalter gleich
   viel Raum ein wie rechts der Rahmen um den Legenden-Knopf.
   ========================================================================== */
.filter-bar.mit-legenden::before { content: ""; flex: 1 1 0; }
.filter-legenden-wrap { flex: 1 1 0; display: flex; justify-content: flex-end; align-items: stretch; }
#filterBar .filter-legenden-wrap .filter-btn[data-filter="legenden"] { position: relative; margin-left: 22px; border-color: #8a8a8a; color: #5a5a5a; background: #f1f0ee; }
#filterBar .filter-legenden-wrap .filter-btn[data-filter="legenden"]::before {
  content: ""; position: absolute; left: -14px; top: 4px; bottom: 4px;
  border-left: 2px solid var(--grey-line);
}
#filterBar .filter-legenden-wrap .filter-btn[data-filter="legenden"]:hover { border-color: var(--anthracite); color: var(--anthracite); }
#filterBar .filter-legenden-wrap .filter-btn[data-filter="legenden"].active { background: #5a5a5a; border-color: #5a5a5a; color: var(--white); }
@media (max-width: 720px) {
  /* schmal: eigene Zeile, weiterhin rechts und mit Abstand abgesetzt */
  .filter-bar.mit-legenden::before { display: none; }
  .filter-legenden-wrap { flex: 1 1 100%; padding-top: 10px; margin-top: 4px; border-top: 2px solid var(--grey-line); }
  #filterBar .filter-legenden-wrap .filter-btn[data-filter="legenden"] { margin-left: 0; }
  #filterBar .filter-legenden-wrap .filter-btn[data-filter="legenden"]::before { display: none; }
}
.legende-card .product-media img { filter: grayscale(0.35); }
.legende-schild {
  position: absolute; top: 12px; left: 12px;
  background: #5a5a5a; color: var(--white);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.legende-zeit { font-weight: 700; font-size: 0.92rem; color: var(--anthracite); }
.legende-preis { font-family: var(--font-heavy); font-weight: 700; font-size: 1.05rem; color: #5a5a5a; }
.legende-preis span { font-family: inherit; font-size: 0.72rem; font-weight: 600; color: var(--text-muted); margin-right: 4px; }
.legende-hinweis { font-size: 0.78rem; color: var(--text-muted); }

/* Bestätigung nach dem Bestellen (29.11.2026): je Bestellnummer ein Block
   mit Zustand und den zugehörigen Artikeln. */
#orderSummaryConfirm { max-height: 300px; }
.order-summary-teil + .order-summary-teil { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--grey-line); }
.order-summary-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 4px; }
.order-summary-zustand { font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.order-summary-zustand-bereit { background: #dff3e4; color: #17662e; }
.order-summary-zustand-bestellt { background: #fff0d0; color: #7a5200; }
.order-summary-zwischen { color: var(--text-muted); font-size: 0.78rem; }
.order-summary-pos-zustand { font-style: normal; font-size: 0.72rem; color: #7a5200; margin-left: 4px; }

/* Legenden-Kachel (29.11.2026, Wunsch Stefan): Zeitraum direkt unter dem Titel,
   Beschreibung darunter; Preis und «Nicht mehr bestellbar» immer ganz unten -
   auch wenn ein Artikel keinen Text hat (margin-top: auto). */
.legende-fuss { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }

/* ---------- Testbestellung (29.11.2026, Wunsch Stefan, Migration 99zy) ---------- */
.test-bestellung-chip { display: inline-block; vertical-align: middle; margin-left: 5px; padding: 2px 7px; border-radius: 999px; background: #FFD23F; color: #3a2c00; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; line-height: 1.4; white-space: nowrap; }
.order-nr-cell .test-bestellung-chip { display: block; width: fit-content; margin: 3px auto 0; }
.order-item-test { margin-left: 4px; padding: 0 5px; border-radius: 4px; background: #FFF3C4; color: #6b5200; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; }
tr.order-row-test > td:first-child { box-shadow: inset 4px 0 0 #FFD23F; }
.test-bestellung-hinweis { margin: 0 0 12px; padding: 9px 12px; border: 1.5px solid #E0A800; border-radius: 10px; background: #FFF8DC; color: #5a4300; font-size: 0.86rem; font-weight: 600; }
.test-bestellung-hinweis[hidden] { display: none; }
/* Shop -> «Meine Bestellungen»: eigene Testbestellung stornieren */
.tor-test-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.tor-test-aktion button { padding: 6px 12px; border-radius: 8px; border: 1.5px solid #c0392b; background: #fff; color: #c0392b; font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.tor-test-aktion button.tor-test-ja { background: #c0392b; color: #fff; }
.tor-test-aktion button.tor-test-nein { border-color: #9aa3ad; color: #48566a; }
.tor-test-aktion button:disabled { opacity: 0.6; cursor: default; }
.tor-test-meldung { flex-basis: 100%; font-size: 0.8rem; color: #a02a1e; }
.tor-test-meldung.ok { color: #1f7a3d; }
.rc-test { margin: 0 0 8px; padding: 5px 8px; border: 2px dashed #b88900; text-align: center; font-weight: 800; letter-spacing: 0.08em; }
