/*
 * Komponenten aus dem Design-System „Moonflow Events“ (Vorlage: docs/design-reference/
 * components/**): Button, IconButton, Badge, Tag, Tabs, Switch, Input/Suche, Karte, Toast,
 * Tooltip/SpotlightLabel, Dialog, Avatar, Navigation (SideNav, BottomNav, AppHeader) und die
 * Event-Komponenten (StreamThumb, StageCard, ScheduleItem, ExhibitorCard, ProductCard,
 * CouponBox, SocialLinks)
 * Pfad: /var/www/moonflow-event-system/public/assets/css/components.css
 *
 * Alle Werte aus den Tokens (tokens/*.css). Maße aus den Komponenten-Specs, für die es
 * keinen globalen Token gibt, stehen als Komponenten-Variablen hier oben; Farben, die das
 * Design-System nicht liefert, in tokens/project.css (keine rgba()/Hex-Werte hier,
 * CssColorTokensTest). Das StreamPanel (samt ChatPanel und Sprungmarken) steht in
 * stream-panel.css, reine Admin-Varianten (.select--sm, Bühnen-Status) in admin.css.
 * Track-Farben kommen per Custom Property vom Element: style="--track: …; --track-soft: …".
 * Mobile first: Tap-Ziele mindestens 44px, kein horizontales Scrollen ab 360px.
 */
:root {
  --fs-input: .9375rem;        /* 15px: Input-Feld, Button md, Nav-Einträge */
  --fs-hint: .75rem;           /* 12px: Hinweis, Zähler */
  --fs-card-title: 1.0625rem;  /* 17px: Titel in Karten und Listen */
  --radius-input: 12px;
  --radius-toast: 16px;
  --radius-tile: 18px;         /* Kategorie-Kacheln */
  --tap-min: 44px;
  --sidenav-compact: 76px;
  --bottom-nav-h: 64px;
  /* Farben (--surface-header, --scrim-capsule, --night-hover …) in tokens/project.css */
  --track: var(--lilac-600);
  --track-soft: var(--lilac-100);
}

/* --- Hilfsklassen ----------------------------------------------------------------------- */
/* hidden gilt auch für Elemente mit eigener display-Regel (z. B. .btn) */
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  box-shadow: var(--shadow-md);
}
.skip-link:focus { top: var(--space-3); }

/* Sichtbarer Fokus überall (Lila-Ring laut Design-System) */
:focus-visible { outline: 2px solid transparent; box-shadow: var(--shadow-focus); }

/* Interaktive Karten heben sich an (Moonflow-Signatur) */
.lift-card { transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.lift-card:hover,
.lift-card:focus-within { transform: translateY(var(--lift-y)); box-shadow: var(--shadow-hover); }

/* Link über die ganze Karte; Bedienelemente darin liegen darüber (z-index) */
.stretched-link { color: inherit; }
.stretched-link:hover { color: inherit; text-decoration: none; }
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.stretched-link:focus-visible { box-shadow: none; }
.stretched-link:focus-visible::after { box-shadow: var(--shadow-focus); }

/* --- Button: Pille, Gotham 500 ------------------------------------------------------ */
.btn {
  /* Padding und Rahmen innerhalb der Breite, sonst ragt .btn--block (width: 100%) heraus */
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.btn--sm { padding: .4rem .85rem; font-size: var(--fs-xs); min-height: 36px; }
.btn--md { padding: .65rem 1.25rem; font-size: var(--fs-input); min-height: var(--tap-min); }
.btn--lg { padding: .85rem 1.6rem; font-size: var(--fs-body); min-height: var(--tap-min); }
.btn--block { display: flex; width: 100%; }
/* Kleine Buttons auf Touch-Geräten trotzdem gut treffbar */
@media (pointer: coarse) { .btn--sm { min-height: var(--tap-min); } }

.btn--primary { background: var(--mf-gradient); color: var(--text-on-brand); }
.btn--primary:hover { color: var(--text-on-brand); transform: translateY(var(--lift-y-sm)); box-shadow: var(--shadow-btn); }
.btn--secondary { background: var(--surface-card); border-color: var(--border-strong); color: var(--text-strong); }
.btn--secondary:hover { background: var(--surface-subtle); color: var(--text-strong); }
.btn--soft { background: var(--lilac-100); color: var(--mf-purple); }
.btn--soft:hover { background: var(--lilac-50); color: var(--mf-purple-deep); }
.btn--ghost { background: transparent; color: var(--text-strong); }
.btn--ghost:hover { background: var(--surface-subtle); color: var(--text-heading); }
.btn--night { background: var(--night-700); color: var(--night-text); }
.btn--night:hover { background: var(--night-600); color: var(--night-text); }
.btn--inverse { background: var(--surface-card); color: var(--mf-purple); }
.btn--inverse:hover { color: var(--mf-purple); transform: translateY(var(--lift-y-sm)); box-shadow: var(--shadow-md); }
.btn--inverse-outline { background: transparent; color: var(--text-on-brand); border-color: var(--inverse-outline); }
.btn--inverse-outline:hover { background: var(--inverse-hover); color: var(--text-on-brand); }

.btn:disabled,
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- IconButton ------------------------------------------------------------------- */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-strong);
  font-size: 15px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.icon-btn:hover { text-decoration: none; color: var(--text-heading); }
.icon-btn--sm { width: 36px; height: 36px; border-radius: 10px; }
.icon-btn--md { width: 40px; height: 40px; }
.icon-btn--lg { width: 48px; height: 48px; font-size: 17px; }
@media (pointer: coarse) { .icon-btn--sm, .icon-btn--md { width: var(--tap-min); height: var(--tap-min); } }
.icon-btn--ghost:hover { background: var(--surface-subtle); }
.icon-btn--secondary { background: var(--surface-card); border-color: var(--border-strong); }
.icon-btn--secondary:hover { background: var(--surface-subtle); }
.icon-btn--night { background: var(--night-soft); color: var(--night-text); }
.icon-btn--night:hover { background: var(--night-hover); color: var(--night-text); }
.icon-btn--primary { background: var(--mf-gradient); color: var(--text-on-brand); }
.icon-btn.is-active { background: var(--lilac-100); color: var(--mf-purple); }

/* --- Badge -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px var(--space-2);
  border-radius: var(--radius-xs);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-overline);
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--neutral { background: var(--surface-subtle); color: var(--text-strong); }
.badge--live { background: var(--live); color: var(--text-on-brand); }
.badge--brand { background: var(--mf-gradient); color: var(--text-on-brand); }
.badge--soft { background: var(--lilac-100); color: var(--mf-purple); }
.badge--night { background: var(--scrim-capsule); color: var(--text-on-brand); }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge__dot,
.live-badge__dot,
.live-dot { animation: mf-live-pulse 1.6s var(--ease) infinite; }
.badge__dot { width: 7px; height: 7px; border-radius: var(--radius-round); background: currentColor; }

/* LIVE-Badge (Rot ist laut Design-System ausschließlich dafür reserviert) */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--live);
  color: var(--text-on-brand);
  font-size: .625rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-overline);
  line-height: 1.2;
  text-transform: uppercase;
}
.live-badge__dot { width: 6px; height: 6px; border-radius: var(--radius-round); background: currentColor; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: var(--radius-round); background: var(--live); flex: none; }

/* --- Track-Pille, Tag, Chip --------------------------------------------------------------- */
.track-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--track-soft);
  color: var(--track);
  font-size: var(--fs-hint);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--track-soft);
  color: var(--track);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.tag i { font-size: .75rem; }
.tag--filter { position: relative; min-height: 36px; box-sizing: border-box; cursor: pointer; }
@media (pointer: coarse) { .tag--filter { min-height: var(--tap-min); } }
.tag--filter:hover { box-shadow: inset 0 0 0 1px var(--track); }
.tag--filter:has(.tag__input:checked) { background: var(--track); color: var(--text-on-brand); }
.tag--filter:focus-within { box-shadow: var(--shadow-focus); }
.tag__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }

.chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip { padding: 3px 9px; border-radius: var(--radius-pill); background: var(--surface-subtle); color: var(--text-strong); font-size: var(--fs-hint); }
.chip--lg { padding: 4px 12px; font-size: var(--fs-xs); }

/* --- Tabs (Pillen) ------------------------------------------------------------------- */
.tabs {
  display: inline-flex;
  min-width: 0;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  box-sizing: border-box;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}
.tabs--scroll { overflow-x: auto; scrollbar-width: none; }
.tabs--scroll::-webkit-scrollbar { display: none; }
.tabs__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 36px;
  padding: .45rem 1rem;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
@media (pointer: coarse) { .tabs__item { min-height: var(--tap-min); } }
.tabs__item:hover { color: var(--text-body); text-decoration: none; }
.tabs__item.is-active { background: var(--surface-card); color: var(--text-body); box-shadow: var(--shadow-sm); }
.tabs__count { margin-left: 6px; font-size: var(--fs-hint); color: var(--text-muted); }

/* --- Switch -------------------------------------------------------------------------- */
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap-min); cursor: pointer; font-size: var(--fs-input); }
.switch__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.switch__track {
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--paper-300);
  transition: background var(--dur-base) var(--ease);
}
.switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-round);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
  transition: left var(--dur-base) var(--ease);
}
.switch__input:checked + .switch__track { background: var(--mf-purple); }
.switch__input:checked + .switch__track .switch__thumb { left: 19px; }
.switch__input:focus-visible + .switch__track { box-shadow: var(--shadow-focus); }

/* --- Input und Suchfeld ----------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--text-strong); }
.field__input,
.search-field__input {
  width: 100%;
  box-sizing: border-box;
  min-height: var(--tap-min);
  padding: .65rem .9rem;
  font: inherit;
  font-size: var(--fs-input);
  color: var(--text-body);
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field__input::placeholder,
.search-field__input::placeholder { color: var(--text-disabled); }
.field__input:focus,
.search-field__input:focus { outline: none; border-color: var(--mf-purple); box-shadow: var(--shadow-focus); }
.field__hint { margin: 0; font-size: var(--fs-hint); color: var(--text-muted); }
.field--error .field__input { border-color: var(--danger); }
.field--error .field__hint { color: var(--danger); }

.search-field { position: relative; display: block; margin: 0; }
.search-field > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; pointer-events: none; }
.search-field__input { padding-left: 40px; }
.search-field--lg .search-field__input { min-height: 52px; font-size: var(--fs-body); }

/* --- Karte -------------------------------------------------------------------------- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.card--hover { transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.card--hover:hover { transform: translateY(var(--lift-y)); box-shadow: var(--shadow-hover); }
.card__header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.card__title { margin: 0; font-size: var(--fs-h3); }

/* --- Toast -------------------------------------------------------------------------- */
.toast-region {
  position: fixed;
  right: var(--space-3);
  bottom: calc(var(--bottom-nav-h) + var(--space-5));
  left: var(--space-3);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  padding: 14px 16px;
  background: var(--night-800);
  color: var(--night-text);
  border-radius: var(--radius-toast);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  animation: mf-fade-up var(--dur-base) var(--ease-out);
  pointer-events: auto;
}
.toast--error { border-left: 4px solid var(--danger); }
.toast--success { border-left: 4px solid var(--success); }
.toast__text { flex: 1; min-width: 0; }
.toast__title { margin: 0; font-weight: var(--fw-medium); }
.toast__body { margin: 2px 0 0; color: var(--night-muted); overflow-wrap: anywhere; }
.toast__close {
  flex: none;
  width: var(--tap-min);
  height: var(--tap-min);
  margin: -12px -12px -12px 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--night-muted);
  font-size: var(--fs-h4);
  cursor: pointer;
}
.toast__close:hover { color: var(--night-text); }
.toast__close:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.toast.is-leaving { opacity: 0; transition: opacity var(--dur-base) var(--ease); }
@media (min-width: 768px) {
  .toast-region { left: auto; right: var(--space-5); bottom: var(--space-5); }
}

/* --- Tooltip und SpotlightLabel --------------------------------------------------------- */
.tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 30;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--night-900);
  color: var(--text-on-brand);
  font-size: var(--fs-hint);
  font-weight: var(--fw-medium);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
[data-tooltip]:hover .tooltip,
[data-tooltip]:focus-within .tooltip,
[data-tooltip].is-open .tooltip { visibility: visible; opacity: 1; }
[data-tooltip].is-dismissed .tooltip { visibility: hidden; opacity: 0; }

.spotlight-label {
  position: relative;
  z-index: 2;             /* über dem Karten-Link */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  color: var(--mf-purple);
  box-shadow: var(--shadow-xs);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-overline);
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.spotlight-label > i { font-size: 9px; }
.spotlight-label--dark { background: var(--scrim-capsule); color: var(--text-on-brand); box-shadow: none; }
.spotlight-label__info {
  position: relative;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-round);
  background: var(--lilac-100);
  color: inherit;
  font-size: 9px;
  cursor: help;
}
/* Unsichtbar vergrößerte Trefferfläche (44px) */
.spotlight-label__info::before { content: ""; position: absolute; inset: -14px; }
.spotlight-label--dark .spotlight-label__info { background: var(--night-hover); }

/* --- Dialog ------------------------------------------------------------------------- */
.dialog {
  width: min(480px, calc(100% - 2 * var(--space-4)));
  box-sizing: border-box;
  padding: var(--space-5);
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  color: var(--text-strong);
  box-shadow: var(--shadow-lg);
}
.dialog[open] { animation: mf-fade-up var(--dur-base) var(--ease-out); }
.dialog::backdrop { background: var(--overlay-scrim); }
.dialog__head { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-3); }
.dialog__title { flex: 1; font-size: 1.25rem; font-weight: var(--fw-bold); letter-spacing: 0; }
.dialog__close { background: var(--surface-subtle); }
.dialog__body { line-height: 1.6; }
.dialog__body p { margin: 0 0 var(--space-2); }
.dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: var(--space-5); }
.dialog__actions form { margin: 0; }

/* --- Avatar ------------------------------------------------------------------------- */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  background: var(--lilac-100);
  color: var(--mf-purple);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xs);
}
.avatar:hover { text-decoration: none; color: var(--mf-purple-deep); box-shadow: 0 0 0 2px var(--surface-card), 0 0 0 4px var(--mf-purple); }
@media (pointer: coarse) { .avatar { width: var(--tap-min); height: var(--tap-min); } }

/* --- SideNav ------------------------------------------------------------------------ */
.side-nav {
  display: none;
  position: sticky;
  top: 0;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: var(--sidenav-compact);
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  padding: var(--space-4) 10px;
  overflow-y: auto;
  background: var(--surface-card);
  border-right: 1px solid var(--border-hairline);
}
.side-nav__brand { display: flex; align-items: center; padding-bottom: 14px; }
.side-nav__logo { display: none; height: 34px; width: auto; }
.side-nav__logo-compact { width: 36px; height: 36px; border-radius: 10px; }
.side-nav__list { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; margin: 0; padding: 0; list-style: none; }
.side-nav__list > li { width: 100%; display: flex; justify-content: center; }
.side-nav__section span { display: none; }
.side-nav__section::before { content: ""; display: block; width: 28px; height: 1px; margin: 10px 0; background: var(--border-hairline); }
.side-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 52px;
  height: 48px;
  box-sizing: border-box;
  border-radius: var(--radius-md);
  color: var(--text-strong);
  font-size: var(--fs-input);
  font-weight: var(--fw-medium);
  transition: background var(--dur-fast) var(--ease);
}
.side-nav__item i { width: 18px; text-align: center; font-size: 17px; }
.side-nav__item:hover { background: var(--surface-subtle); color: var(--text-heading); text-decoration: none; }
.side-nav__item.is-active { background: var(--lilac-100); color: var(--mf-purple); }
.side-nav__label,
.side-nav__count { display: none; }
.side-nav__item .live-dot { position: absolute; top: 8px; right: 8px; }
.side-nav__footer { display: none; margin-top: auto; padding-top: var(--space-4); }

@media (min-width: 768px) {
  .side-nav { display: flex; }
}
@media (min-width: 1100px) {
  .side-nav { width: var(--sidebar-w); align-items: stretch; padding: 20px 14px; }
  .side-nav__brand { padding: 0 10px 18px; }
  .side-nav__logo { display: block; }
  .side-nav__logo-compact { display: none; }
  .side-nav__list { align-items: stretch; }
  .side-nav__list > li { display: block; }
  .side-nav__section::before { display: none; }
  .side-nav__section span {
    display: block;
    padding: 16px 12px 6px;
    color: var(--text-muted);
    font-size: var(--fs-2xs);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-overline);
    text-transform: uppercase;
  }
  .side-nav__item { justify-content: flex-start; width: 100%; height: auto; min-height: var(--tap-min); padding: 10px 12px; border-radius: 12px; }
  .side-nav__item i { font-size: 15px; }
  .side-nav__label { display: block; flex: 1; }
  .side-nav__count { display: block; font-size: var(--fs-hint); color: var(--text-muted); }
  .side-nav__item .live-dot { position: static; }
  .side-nav__footer { display: block; }
}

/* --- Ticket-Pille (SideNav-Fuß) ------------------------------------------------------- */
.ticket-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: var(--warning-soft);
  color: var(--text-strong);
  font-size: var(--fs-xs);
}
.ticket-pill > i { color: var(--warning); }
.ticket-pill:hover { text-decoration: none; color: var(--text-heading); }
.ticket-pill__text { display: grid; line-height: 1.3; }
.ticket-pill__title { font-weight: var(--fw-medium); }
.ticket-pill__sub { color: var(--text-muted); font-size: var(--fs-hint); }
.ticket-pill--active { background: var(--surface-subtle); }
.ticket-pill--active > i { color: var(--mf-purple); }

/* --- BottomNav ---------------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: var(--surface-bottom-nav);
  border-top: 1px solid var(--border-hairline);
}
.bottom-nav__item {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
}
.bottom-nav__item:hover { text-decoration: none; color: var(--text-strong); }
.bottom-nav__item.is-active { color: var(--mf-purple); font-weight: var(--fw-bold); }
.bottom-nav__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 28px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  transition: background var(--dur-fast) var(--ease);
}
.bottom-nav__item.is-active .bottom-nav__icon { background: var(--lilac-100); }
.bottom-nav__icon .live-dot { position: absolute; top: 2px; right: 12px; width: 7px; height: 7px; box-shadow: 0 0 0 2px var(--surface-card); }
.bottom-nav__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 768px) { .bottom-nav { display: none; } }

/* --- AppHeader ---------------------------------------------------------------------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--header-h);
  padding: 0 var(--space-4);
  box-sizing: border-box;
  background: var(--surface-header);
  border-bottom: 1px solid var(--border-hairline);
}
.app-header__brand { display: grid; min-width: 0; line-height: 1.2; color: var(--text-heading); }
.app-header__brand:hover { text-decoration: none; color: var(--mf-purple); }
.app-header__name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-header__meta { display: none; font-size: var(--fs-hint); color: var(--text-muted); }
.app-header__spacer { flex: 1; }
.app-header__search { display: none; width: 180px; }
.app-header__search .search-field__input { min-height: 40px; padding-top: .5rem; padding-bottom: .5rem; }
@media (min-width: 768px) {
  .app-header { gap: var(--space-4); padding: 0 var(--space-5); }
  .app-header__meta { display: block; }
  .app-header__search { display: block; }
  .app-header__search-btn { display: none; }
}
@media (min-width: 1100px) { .app-header__search { width: 220px; } }

/* --- StreamThumb -------------------------------------------------------------------- */
.stream-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--mf-gradient-night);
}
.stream-thumb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stream-thumb__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--night-muted); opacity: .45; font-size: 28px; }
.stream-thumb__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.stream-thumb__badges .live-badge { padding: 4px 8px; font-size: var(--fs-2xs); border-radius: var(--radius-xs); }
.stream-thumb__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; background: var(--overlay-video); color: var(--text-on-brand); font-size: var(--fs-xs); font-weight: var(--fw-medium); }

/* --- StageCard ---------------------------------------------------------------------- */
.stage-card {
  display: block;
  padding: var(--space-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
}
.stage-card:hover { text-decoration: none; color: var(--text-body); }
.stage-card__body { display: grid; gap: 4px; padding: 12px 8px 6px; }
.stage-card__overline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--track);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
}
.stage-card__dot { width: 8px; height: 8px; border-radius: 3px; background: var(--track); }
.stage-card__track { color: var(--text-muted); }
.stage-card__title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-card-title); line-height: 1.25; color: var(--text-heading); }
.stage-card__time { font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* --- ScheduleItem ------------------------------------------------------------------- */
.schedule-list {
  padding: 6px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
}
.schedule-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 4px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.schedule-item:hover { border-color: var(--border-hairline); background: var(--surface-card); }
.schedule-item + .schedule-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--paper-100);
}
.schedule-item__time {
  display: grid;
  align-content: start;
  min-width: 52px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.schedule-item__end { font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--text-muted); }
.schedule-item__bar { border-radius: 4px; background: var(--track); opacity: .5; }
.schedule-item.is-live .schedule-item__bar { opacity: 1; }
.schedule-item__body { display: grid; gap: 4px; min-width: 0; }
.schedule-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.schedule-item__stage { font-size: var(--fs-xs); color: var(--text-muted); }
.schedule-item__title { margin: 0; font-size: var(--fs-card-title); font-weight: var(--fw-bold); letter-spacing: 0; overflow-wrap: anywhere; }
.schedule-item__link { color: inherit; }
.schedule-item__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.schedule-item__link:hover { color: var(--mf-purple); text-decoration: none; }
.schedule-item.is-live { cursor: pointer; }
.schedule-item__desc {
  display: -webkit-box;
  max-width: 640px;
  margin: 0;
  overflow: hidden;
  color: var(--text-strong);
  font-size: var(--fs-sm);
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.schedule-item__host { margin: 0; font-size: var(--fs-xs); color: var(--text-muted); }
.schedule-item__actions { position: relative; z-index: 2; display: flex; gap: 2px; align-self: center; }
.schedule-item__actions .icon-btn { color: var(--text-muted); }
.schedule-item__actions .icon-btn.is-active { color: var(--mf-purple); }
.schedule-item.is-past { opacity: .7; }
.toggle { margin: 0; }
@media (max-width: 479px) {
  /* Schmale Handys: Aktionen unter den Text statt daneben */
  .schedule-item { grid-template-columns: auto 4px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .schedule-item__actions { grid-column: 3; justify-self: start; margin-left: -8px; }
}

.empty-state { margin: 0; padding: 48px 20px; text-align: center; color: var(--text-muted); }
.empty-state i { display: block; margin-bottom: 10px; font-size: 28px; color: var(--mf-purple); }

/* --- Anwesenheit (Ort / Nur online) -------------------------------------------------- */
.presence { display: inline-flex; align-items: center; gap: 5px; color: var(--text-strong); }
.presence i { font-size: 10px; color: var(--mf-purple); }

/* --- ExhibitorCard ------------------------------------------------------------------ */
.exhibitor-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
}
.exhibitor-card__cover {
  position: relative;
  height: 96px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--track-soft);
}
.exhibitor-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.exhibitor-card__spot { position: absolute; top: 10px; left: 10px; z-index: 2; }
/* Tooltip darf aus dem Cover herausragen */
.exhibitor-card__cover:has(.spotlight-label) { overflow: visible; }
.exhibitor-card__cover:has(.spotlight-label) img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.exhibitor-card__body { display: grid; gap: 6px; padding: 0 16px 16px; }
.exhibitor-card__logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  box-sizing: border-box;
  overflow: hidden;
  border: 3px solid var(--surface-card);
  border-radius: 16px;
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  color: var(--track);
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 20px;
}
.exhibitor-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.exhibitor-card__name { margin: 0; font-size: var(--fs-card-title); font-weight: var(--fw-bold); letter-spacing: 0; }
.exhibitor-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-xs); color: var(--text-muted); }
.exhibitor-card__presence { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-hint); }
.dot-sep { color: var(--border-strong); }
.exhibitor-card .chip-list { margin-top: 4px; }
.exhibitor-card--lg .exhibitor-card__cover { height: 150px; }
.exhibitor-card--lg .exhibitor-card__body { padding: 0 20px 20px; }
.exhibitor-card--lg .exhibitor-card__logo { width: 72px; height: 72px; margin-top: -36px; border-radius: var(--radius-lg); font-size: 26px; }
.exhibitor-card--lg .exhibitor-card__name { font-size: 1.25rem; }

/* --- ProductCard -------------------------------------------------------------------- */
.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--space-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
}
.product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: var(--track-soft);
  color: var(--track);
  font-size: 26px;
}
.product-card__media > i { opacity: .5; }
.product-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); transition: transform var(--dur-base) var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__labels { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.product-card__body { display: grid; gap: 4px; flex: 1; padding: 10px 6px 4px; }
.product-card__exhibitor { justify-self: start; font-size: var(--fs-hint); font-weight: var(--fw-medium); color: var(--text-muted); }
.product-card__exhibitor:hover { color: var(--mf-purple); }
.product-card__name { overflow-wrap: anywhere; margin: 0; font-family: var(--font-body); font-size: var(--fs-input); font-weight: var(--fw-medium); line-height: 1.3; letter-spacing: 0; color: var(--text-body); }
.product-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: auto 0 0; padding-top: 6px; }
.product-card__price { flex: 1; font-family: var(--font-display); font-weight: var(--fw-bold); }
.product-card__shop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: .4rem .8rem;
  box-sizing: border-box;
  border-radius: var(--radius-pill);
  background: var(--lilac-100);
  color: var(--mf-purple);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}
.product-card__shop i { font-size: 10px; }
.product-card__shop:hover { text-decoration: none; background: var(--lilac-50); }
@media (pointer: coarse) { .product-card__shop { min-height: var(--tap-min); } }

/* --- CouponBox ---------------------------------------------------------------------- */
.coupon-box {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1.5px dashed var(--coupon-border);
  border-radius: var(--radius-lg);
  background: var(--lilac-50);
}
.coupon-box__head { display: flex; align-items: center; gap: 10px; }
.coupon-box__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--mf-gradient); color: var(--text-on-brand); font-size: 15px; }
.coupon-box__overline { margin: 0; color: var(--mf-purple); font-size: var(--fs-2xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-overline); text-transform: uppercase; }
.coupon-box__offer { margin: 0; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-card-title); color: var(--text-heading); }
.coupon-box__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.coupon-box__code {
  flex: 1 1 160px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  background: var(--surface-card);
  color: var(--text-body);
  font-family: var(--font-mono);
  font-size: var(--fs-card-title);
  font-weight: var(--fw-bold);
  letter-spacing: .12em;
  user-select: all;
  overflow-wrap: anywhere;
}
.coupon-box__code--locked { color: var(--text-disabled); user-select: none; }
.coupon-box__note { margin: 0; font-size: var(--fs-xs); color: var(--text-muted); }

/* --- SocialLinks -------------------------------------------------------------------- */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-round);
  background: var(--surface-card);
  color: var(--mf-purple);
  font-size: 15px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.social-link:hover { border-color: transparent; background: var(--mf-gradient); color: var(--text-on-brand); text-decoration: none; }
@media (pointer: coarse) { .social-link { width: var(--tap-min); height: var(--tap-min); } }

/* --- Status-Tag (Tickets, Bestellungen) --------------------------------------------- */
.status-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--space-2);
  border-radius: var(--radius-xs);
  background: var(--surface-subtle);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}
/* Bühnen- und Server-Zustände (live, scheduled, ended, closed) nur im Admin: admin.css */
.status-tag--paid { background: var(--success-soft); color: var(--success); }
.status-tag--pending { background: var(--lilac-100); color: var(--mf-purple); }
.status-tag--refunded,
.status-tag--disputed,
.status-tag--canceled { background: var(--warning-soft); color: var(--warning); }
.status-tag--failed,
.status-tag--expired,
.status-tag--muted { background: var(--surface-subtle); color: var(--text-muted); }

/* --- Bewegung reduzieren ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .btn, .card--hover, .toast, .lift-card, .dialog[open], .tooltip, .product-card__media img { transition: none; animation: none; }
  .btn--primary:hover, .btn--inverse:hover, .card--hover:hover,
  .lift-card:hover, .lift-card:focus-within,
  .product-card:hover .product-card__media img { transform: none; }
  .badge__dot, .live-badge__dot, .live-dot { animation: none; }
}

/* --- Select, Textarea, Checkbox --------------------------------------------------------- */
.select { position: relative; display: block; }
.select__input { appearance: none; padding-right: 36px; cursor: pointer; }
.select > i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--text-muted); pointer-events: none; }
.field__input--area { min-height: 88px; resize: vertical; line-height: var(--lh-body); }
input[type="file"].field__input { padding: .5rem .6rem; }

.checkbox { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap-min); cursor: pointer; font-size: var(--fs-input); }
.checkbox__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.checkbox__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background: var(--surface-card);
  color: var(--text-on-brand);
  font-size: 11px;
  transition: background var(--dur-fast) var(--ease);
}
.checkbox__box i { visibility: hidden; }
.checkbox__input:checked + .checkbox__box { border-color: transparent; background: var(--mf-gradient); }
.checkbox__input:checked + .checkbox__box i { visibility: visible; }
.checkbox__input:focus-visible + .checkbox__box { box-shadow: var(--shadow-focus); }
