/* ===========================================================================
   Design-Tokens  (Vuexy-inspirierte Design-Sprache, eigenständig umgesetzt)
   Standard-Theme ist „Ticino Pulse · Notte“ (pulse); dieser Block trägt die
   klassischen Themes. Klassische Palette: Primär #7367F0, Success #28C76F, Warning #FF9F43,
            Danger #EA5455, Info #00CFE8.
   *-strong / *-fg = kontraststärkere Textvarianten (WCAG AA auf hellem Grund).
   =========================================================================== */
:root,
:root[data-theme="dark"] {
  /* Flächen-Abstufungen (dunkel -> heller) */
  --bg: #25293C;
  --surface: #2F3349;      /* Karten, Panels (== altes --panel) */
  --surface-2: #353A52;    /* Tabellen-Header, Inputs (== altes --panel-2) */
  --surface-3: #3E4364;    /* Hover/aktive Flächen */
  --panel: #2F3349;        /* Kompatibilitäts-Aliase (bestehendes Markup) */
  --panel-2: #353A52;

  --border: #3B4058;
  --border-strong: #4A4F6E;
  --card-border: #3A3F58;  /* dezenter Kartenrahmen nur im Dark-Mode */

  --text: #CFD3EC;
  --text-2: #B6BAD6;
  --muted: #A5A3AE;

  --accent: #7367F0;       /* Primär (Solid-Fills, Buttons, Gradient, FAB) */
  --accent-strong: #685DD8;/* Hover der Primärfläche */
  --accent-fg: #A9A0F8;    /* Primär als Text/Link (kontraststark) */
  --accent-2: #28C76F;     /* Success */
  --accent-3: #FF9F43;     /* Warning */
  --info: #00CFE8;
  --danger: #EA5455;
  --warn: #FF9F43;
  --ok: #28C76F;

  /* kontraststarke Text-Varianten (im Dark-Mode = volle Sättigung) */
  --success-strong: #28C76F;
  --warn-strong: #FF9F43;
  --info-strong: #00CFE8;
  --danger-strong: #F1706F;

  --accent-soft: rgba(115, 103, 240, .16);
  --success-soft: rgba(40, 199, 111, .16);
  --info-soft: rgba(0, 207, 232, .16);
  --danger-soft: rgba(234, 84, 85, .16);
  --warn-soft: rgba(255, 159, 67, .16);

  /* Radius / Typo (Vuexy-Skala, System-Font-Stack) */
  --radius: 10px;
  --radius-sm: 8px;
  --radius-xs: 6px; --radius-lg: 12px; --radius-xl: 18px; --radius-pill: 999px;   /* v3.23.0: ein Radius-Satz */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --fs-3xs: 0.625rem;   /* 10px */
  --fs-2xs: 0.6875rem;  /* 11px */
  --fs-xs: 0.78rem;
  --fs-sm: 0.86rem;
  --fs-base: 0.94rem;   /* Basis ~15px */
  --fs-md: 1rem;
  --fs-lg: 1.13rem;     /* Karten-Titel ~18px */
  --fs-xl: 1.6rem;
  --fs-2xl: 1.85rem;

  /* Schatten (weich) */
  --shadow-sm: 0 2px 8px rgba(15, 20, 34, .30);
  --shadow-md: 0 4px 18px rgba(15, 20, 34, .42);
  --shadow-lg: 0 14px 40px rgba(15, 20, 34, .55);
  --focus-ring: 0 0 0 3px rgba(115, 103, 240, .40);

  --sidebar-w: 290px;
  --trans: .16s ease;
}

:root[data-theme="light"] {
  --bg: #F8F7FA;
  --surface: #FFFFFF;
  --surface-2: #F6F6F7;    /* Tabellen-Header, Inputs */
  --surface-3: #EDEDF1;    /* Hover/aktive Flächen */
  --panel: #FFFFFF;
  --panel-2: #F6F6F7;

  --border: #E6E6EA;
  --border-strong: #D5D5DC;
  --card-border: transparent;  /* kein harter Kartenrahmen im Light-Mode */

  --text: #444050;
  --text-2: #5D596B;
  --muted: #6D6B77;

  --accent: #7367F0;
  --accent-strong: #685DD8;
  --accent-fg: #675DD8;    /* Primär als Text/Link (AA auf hellem Grund) */
  --accent-2: #28C76F;
  --accent-3: #FF9F43;
  --info: #00CFE8;
  --danger: #EA5455;
  --warn: #FF9F43;
  --ok: #28C76F;

  /* kontraststarke Text-Varianten (abgedunkelt für AA auf hellem Grund) */
  --success-strong: #157A43;
  --warn-strong: #9A5417;
  --info-strong: #0B7C8A;
  --danger-strong: #C0292A;

  --accent-soft: rgba(115, 103, 240, .16);
  --success-soft: rgba(40, 199, 111, .16);
  --info-soft: rgba(0, 207, 232, .16);
  --danger-soft: rgba(234, 84, 85, .14);
  --warn-soft: rgba(255, 159, 67, .16);

  --shadow-sm: 0 4px 18px rgba(75, 70, 92, .10);
  --shadow-md: 0 6px 22px rgba(75, 70, 92, .14);
  --shadow-lg: 0 14px 40px rgba(75, 70, 92, .18);
  --focus-ring: 0 0 0 3px rgba(115, 103, 240, .30);
}

/* ===========================================================================
   Taktische Themes (heller Text auf dunklem Grund, ausser "coyote").
   Jeder Block definiert dieselben Tokens wie der Dark-Block.
   =========================================================================== */

/* Black / OLED – reines Schwarz, voller Kontrast. */
:root[data-theme="black"] {
  --bg: #000000;
  --surface: #101012;
  --surface-2: #17171A;
  --surface-3: #202024;
  --panel: #101012;
  --panel-2: #17171A;

  --border: #2A2A2F;
  --border-strong: #3A3A40;
  --card-border: #2A2A2F;

  --text: #ECECF0;
  --text-2: #C7C7CE;
  --muted: #919299;

  --accent: #7367F0;
  --accent-strong: #685DD8;
  --accent-fg: #A9A0F8;
  --accent-2: #28C76F;
  --accent-3: #FF9F43;
  --info: #00CFE8;
  --danger: #EA5455;
  --warn: #FF9F43;
  --ok: #28C76F;

  --success-strong: #28C76F;
  --warn-strong: #FF9F43;
  --info-strong: #00CFE8;
  --danger-strong: #F1706F;

  --accent-soft: rgba(115, 103, 240, .18);
  --success-soft: rgba(40, 199, 111, .18);
  --info-soft: rgba(0, 207, 232, .18);
  --danger-soft: rgba(234, 84, 85, .18);
  --warn-soft: rgba(255, 159, 67, .18);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .55);
  --shadow-md: 0 4px 18px rgba(0, 0, 0, .65);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, .78);
  --focus-ring: 0 0 0 3px rgba(115, 103, 240, .45);
}

/* Navy Blue – Marineblau. */
:root[data-theme="navy"] {
  --bg: #0A1626;
  --surface: #0F2138;
  --surface-2: #16304C;
  --surface-3: #1E3C5C;
  --panel: #0F2138;
  --panel-2: #16304C;

  --border: #274668;
  --border-strong: #33578A;
  --card-border: #274668;

  --text: #E7EFFA;
  --text-2: #C2D2E8;
  --muted: #93A7C4;

  --accent: #4C8DFF;
  --accent-strong: #3D7BEB;
  --accent-fg: #93B8FF;
  --accent-2: #28C76F;
  --accent-3: #FF9F43;
  --info: #00CFE8;
  --danger: #EA5455;
  --warn: #FF9F43;
  --ok: #28C76F;

  --success-strong: #28C76F;
  --warn-strong: #FF9F43;
  --info-strong: #00CFE8;
  --danger-strong: #F1706F;

  --accent-soft: rgba(76, 141, 255, .20);
  --success-soft: rgba(40, 199, 111, .16);
  --info-soft: rgba(0, 207, 232, .16);
  --danger-soft: rgba(234, 84, 85, .18);
  --warn-soft: rgba(255, 159, 67, .16);

  --shadow-sm: 0 2px 8px rgba(3, 10, 20, .45);
  --shadow-md: 0 4px 18px rgba(3, 10, 20, .58);
  --shadow-lg: 0 14px 40px rgba(3, 10, 20, .70);
  --focus-ring: 0 0 0 3px rgba(76, 141, 255, .42);
}


/* ===========================================================================
   TDT – Tiro Dinamico Ticino (v3.3.2): Farben aus dem Club-Logo.
   Tessiner Rot + Blau, IPSC-Karton (Tan) als dritter Akzent, Nachthimmel als
   Grund (Notte) bzw. heller, warmer Grund für draussen am Stand (Giorno).
   =========================================================================== */
/* ===========================================================================
   TDT-Theme-Familien (v3.5): A Ticino Pulse · B Swiss Precision · C Range Day,
   je Notte (dunkel) und Giorno (hell). Pulse Notte = Standard im Salite-Stil.
   =========================================================================== */
:root[data-theme="pulse"] {
  --tdt-red: #FF4B57;
  --tdt-blue: #3D8BFF;
  --tdt-tan: #C8A97E;
  --bg: #070B14;
  --surface: #0F1626;
  --surface-2: #152036;
  --surface-3: #1C2A47;
  --panel: #0F1626;
  --panel-2: #152036;
  --border: #1F2A44;
  --border-strong: #2C3B60;
  --card-border: #1B2640;
  --text: #EEF2FA;
  --text-2: #C3CCDD;
  --muted: #7E8BA6;
  --accent: #3D8BFF;
  --accent-strong: #2F78F0;
  --accent-fg: #8DB8FF;
  --accent-2: #2FD07A;
  --accent-3: #C8A97E;
  --info: #4FC3F7;
  --danger: #FF4B57;
  --warn: #FF8A3D;
  --ok: #2FD07A;
  --success-strong: #45E08E;
  --warn-strong: #FFA866;
  --info-strong: #6FD0F9;
  --danger-strong: #FF707A;
  --accent-soft: rgba(61, 139, 255, 0.2);
  --success-soft: rgba(47, 208, 122, 0.16);
  --info-soft: rgba(79, 195, 247, 0.16);
  --danger-soft: rgba(255, 75, 87, 0.18);
  --warn-soft: rgba(255, 138, 61, 0.16);
  --shadow-sm: 0 2px 8px rgba(2, 5, 12, .50);
  --shadow-md: 0 4px 18px rgba(2, 5, 12, .62);
  --shadow-lg: 0 14px 40px rgba(2, 5, 12, .72);
  --focus-ring: 0 0 0 3px rgba(61, 139, 255, 0.45);
}

:root[data-theme="pulse-light"] {
  --tdt-red: #E5333F;
  --tdt-blue: #2B7BFF;
  --tdt-tan: #8C7350;
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --surface-2: #EEF2F9;
  --surface-3: #E2E8F4;
  --panel: #FFFFFF;
  --panel-2: #EEF2F9;
  --border: #DFE5F0;
  --border-strong: #C6D0E2;
  --card-border: #E6EBF4;
  --text: #0E1526;
  --text-2: #33405C;
  --muted: #66728C;
  --accent: #2B7BFF;
  --accent-strong: #1F66E0;
  --accent-fg: #1F5FCC;
  --accent-2: #16A35A;
  --accent-3: #8C7350;
  --info: #0E8DB8;
  --danger: #E5333F;
  --warn: #E07A1F;
  --ok: #16A35A;
  --success-strong: #127A45;
  --warn-strong: #9A520F;
  --info-strong: #0B6E8F;
  --danger-strong: #B8222D;
  --accent-soft: rgba(43, 123, 255, 0.12);
  --success-soft: rgba(22, 163, 90, 0.13);
  --info-soft: rgba(14, 141, 184, 0.12);
  --danger-soft: rgba(229, 51, 63, 0.12);
  --warn-soft: rgba(224, 122, 31, 0.14);
  --shadow-sm: 0 2px 10px rgba(20, 30, 50, .07);
  --shadow-md: 0 6px 22px rgba(20, 30, 50, .11);
  --shadow-lg: 0 14px 40px rgba(20, 30, 50, .15);
  --focus-ring: 0 0 0 3px rgba(43, 123, 255, 0.28);
}

:root[data-theme="swiss"] {
  --tdt-red: #E3342F;
  --tdt-blue: #5AA9E6;
  --tdt-tan: #C8A97E;
  --bg: #111111;
  --surface: #1A1A1A;
  --surface-2: #222222;
  --surface-3: #2C2C2C;
  --panel: #1A1A1A;
  --panel-2: #222222;
  --border: #2C2C2C;
  --border-strong: #3D3D3D;
  --card-border: #262626;
  --text: #F5F5F5;
  --text-2: #D0D0D0;
  --muted: #8F8F8F;
  --accent: #E3342F;
  --accent-strong: #C9241F;
  --accent-fg: #FF6A60;
  --accent-2: #3CC37A;
  --accent-3: #C8A97E;
  --info: #5AA9E6;
  --danger: #E3342F;
  --warn: #F0A43A;
  --ok: #3CC37A;
  --success-strong: #55D68E;
  --warn-strong: #F5BA62;
  --info-strong: #7DBDEE;
  --danger-strong: #FF7A70;
  --accent-soft: rgba(227, 52, 47, 0.2);
  --success-soft: rgba(60, 195, 122, 0.16);
  --info-soft: rgba(90, 169, 230, 0.16);
  --danger-soft: rgba(227, 52, 47, 0.18);
  --warn-soft: rgba(240, 164, 58, 0.16);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .50);
  --shadow-md: 0 4px 18px rgba(0, 0, 0, .62);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, .72);
  --focus-ring: 0 0 0 3px rgba(227, 52, 47, 0.45);
}

:root[data-theme="swiss-light"] {
  --tdt-red: #DA291C;
  --tdt-blue: #1F6FB2;
  --tdt-tan: #8C7350;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F6F6F6;
  --surface-3: #ECECEC;
  --panel: #FFFFFF;
  --panel-2: #F6F6F6;
  --border: #E6E6E6;
  --border-strong: #D0D0D0;
  --card-border: #E9E9E9;
  --text: #111111;
  --text-2: #333333;
  --muted: #6B6B6B;
  --accent: #DA291C;
  --accent-strong: #B81F14;
  --accent-fg: #B81F14;
  --accent-2: #1E8E4E;
  --accent-3: #8C7350;
  --info: #1F6FB2;
  --danger: #DA291C;
  --warn: #B8670E;
  --ok: #1E8E4E;
  --success-strong: #16703C;
  --warn-strong: #8F4F09;
  --info-strong: #175A91;
  --danger-strong: #A81A10;
  --accent-soft: rgba(218, 41, 28, 0.12);
  --success-soft: rgba(30, 142, 78, 0.13);
  --info-soft: rgba(31, 111, 178, 0.12);
  --danger-soft: rgba(218, 41, 28, 0.12);
  --warn-soft: rgba(184, 103, 14, 0.14);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .07);
  --shadow-md: 0 6px 22px rgba(0, 0, 0, .11);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, .15);
  --focus-ring: 0 0 0 3px rgba(218, 41, 28, 0.28);
}

:root[data-theme="range"] {
  --tdt-red: #E5483C;
  --tdt-blue: #3A7BDB;
  --tdt-tan: #C8A97E;
  --bg: #15110D;
  --surface: #1F1913;
  --surface-2: #2A2219;
  --surface-3: #352B20;
  --panel: #1F1913;
  --panel-2: #2A2219;
  --border: #3A3026;
  --border-strong: #4E4133;
  --card-border: #30271D;
  --text: #F1E7D6;
  --text-2: #D8CBB5;
  --muted: #A08D72;
  --accent: #3A7BDB;
  --accent-strong: #2F69C2;
  --accent-fg: #8AB4F0;
  --accent-2: #5CC17A;
  --accent-3: #C8A97E;
  --info: #4FB0D8;
  --danger: #E5483C;
  --warn: #E0A33A;
  --ok: #5CC17A;
  --success-strong: #76D492;
  --warn-strong: #F0BA5A;
  --info-strong: #72C4E6;
  --danger-strong: #F06A60;
  --accent-soft: rgba(58, 123, 219, 0.2);
  --success-soft: rgba(92, 193, 122, 0.16);
  --info-soft: rgba(79, 176, 216, 0.16);
  --danger-soft: rgba(229, 72, 60, 0.18);
  --warn-soft: rgba(224, 163, 58, 0.16);
  --shadow-sm: 0 2px 8px rgba(5, 3, 1, .50);
  --shadow-md: 0 4px 18px rgba(5, 3, 1, .62);
  --shadow-lg: 0 14px 40px rgba(5, 3, 1, .72);
  --focus-ring: 0 0 0 3px rgba(58, 123, 219, 0.45);
}

:root[data-theme="range-light"] {
  --tdt-red: #D63B2F;
  --tdt-blue: #1E5FBF;
  --tdt-tan: #8C7350;
  --bg: #F3EBDD;
  --surface: #FBF6EE;
  --surface-2: #EFE4D2;
  --surface-3: #E6D6BC;
  --panel: #FBF6EE;
  --panel-2: #EFE4D2;
  --border: #DCC9A8;
  --border-strong: #C8B08A;
  --card-border: #E3D4BB;
  --text: #2A2118;
  --text-2: #4A3C2C;
  --muted: #7A6650;
  --accent: #1E5FBF;
  --accent-strong: #184EA0;
  --accent-fg: #184EA0;
  --accent-2: #2E8B4A;
  --accent-3: #8C7350;
  --info: #1F7FA0;
  --danger: #D63B2F;
  --warn: #B8701A;
  --ok: #2E8B4A;
  --success-strong: #226B38;
  --warn-strong: #8A5310;
  --info-strong: #18637D;
  --danger-strong: #AE2C22;
  --accent-soft: rgba(30, 95, 191, 0.12);
  --success-soft: rgba(46, 139, 74, 0.13);
  --info-soft: rgba(31, 127, 160, 0.12);
  --danger-soft: rgba(214, 59, 47, 0.12);
  --warn-soft: rgba(184, 112, 26, 0.14);
  --shadow-sm: 0 2px 10px rgba(60, 40, 15, .07);
  --shadow-md: 0 6px 22px rgba(60, 40, 15, .11);
  --shadow-lg: 0 14px 40px rgba(60, 40, 15, .15);
  --focus-ring: 0 0 0 3px rgba(30, 95, 191, 0.28);
}

/* Signatur: Tessiner Flagge als feiner Streifen unter dem Kopf der Sidebar
   und der mobilen Leiste, Abschnittstitel mit kurzem Rot/Blau-Strich. */
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .sidebar-head,
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .mobile-bar { position: relative; }
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .sidebar-head::after,
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .mobile-bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--tdt-red) 0 50%, var(--tdt-blue) 50% 100%);
}
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .section-title h2 { position: relative; padding-bottom: 6px; letter-spacing: .2px; }
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .section-title h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--tdt-red) 0 50%, var(--tdt-blue) 50% 100%);
}
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .tab-btn.active {
  background: var(--accent); color: #fff; box-shadow: inset 3px 0 0 var(--tdt-red);
}
/* "Send it" in Tessiner Rot (Action!), "Sent ✓" bleibt grün */
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .club-sendit:not(.is-going):not(.is-full) {
  color: var(--tdt-red); border-color: var(--tdt-red);
}
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .club-sendit:not(.is-going):not(.is-full):hover { background: var(--danger-soft); }
/* Empfohlen-Stern und Karten im IPSC-Karton-Ton */
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .club-rec-card { border-color: var(--tdt-tan); background: color-mix(in srgb, var(--tdt-tan) 14%, var(--surface)); }
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .club-rec-title { color: var(--text); }
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .club-cal-day.has-ev { background: color-mix(in srgb, var(--tdt-blue) 22%, transparent); color: var(--text); }
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .club-cal-day.is-selected { background: var(--tdt-blue); }
:root[data-theme="pulse"] body {
  background:
    radial-gradient(1200px 600px at 0% 0%, rgba(47, 123, 234, .10), transparent 60%),
    radial-gradient(1000px 600px at 100% 0%, rgba(226, 69, 60, .08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: var(--fs-base);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}

/* ===========================================================================
   App-Shell: Sidebar + Hauptbereich
   =========================================================================== */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 40;
}
:root[data-theme="light"] .sidebar { border-right: none; box-shadow: 0 0 15px rgba(75, 70, 92, .08); }

/* Brand-Zone: bewusst in beiden Themes dunkel (Navy), damit das goldene
   Wappen und der weisse Schriftzug immer kontrastreich lesbar sind. */
.sidebar-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  /* Passt sich ans Theme an (statt fixem Dunkel) - dezenter Verlauf aus den
     Flächen-Tokens, damit Icon/Titel sich überall einfügen und lesbar bleiben. */
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border-bottom: 1px solid var(--border);
}
:root[data-theme="light"] .sidebar-head { border-bottom: none; box-shadow: 0 2px 8px rgba(75, 70, 92, .18); }
.sidebar-head .brand-icon { flex: 0 0 auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.sidebar-title {
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: .01em;
  color: var(--text);
  line-height: 1.15;
  white-space: nowrap;
}

.sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;          /* v3.12.0: scrollt auch bei kleiner Höhe (1366×768) */
  overflow-y: auto;
  padding: 10px 12px 16px;
}
.nav-group { margin-bottom: 14px; }
.nav-group-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 700;
  padding: 8px 10px 4px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-2);
  padding: 9px 11px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background var(--trans), color var(--trans);
}
.tab-btn:hover { background: var(--surface-2); color: var(--text); }
.tab-btn.active {
  background: var(--accent-solid);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 2px 6px var(--accent-glow);
}
.tab-btn.active:hover { background: var(--accent-solid); color: #FFFFFF; }
.tab-btn.active .nav-ico { color: #FFFFFF; }
.nav-ico {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: var(--muted);
  transition: color var(--trans);
}
.tab-btn:hover .nav-ico { color: var(--text); }

.sidebar-foot {
  border-top: 1px solid var(--border);
  padding: 12px;
}
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 9px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background var(--trans), border-color var(--trans);
}
.theme-toggle:hover { background: var(--surface-3); border-color: var(--border-strong); }
.theme-ico { width: 18px; height: 18px; flex: 0 0 auto; }
/* Dunkle Themes zeigen die Sonne (Klick -> Light), helle den Mond (Klick -> Dark). */
:root[data-theme="dark"] .theme-ico-dark,
:root[data-theme="black"] .theme-ico-dark,
:root[data-theme="navy"] .theme-ico-dark,
:root:is([data-theme="pulse"],[data-theme="swiss"],[data-theme="range"]) .theme-ico-dark { display: none; }
:root[data-theme="light"] .theme-ico-light,
:root:is([data-theme="pulse-light"],[data-theme="swiss-light"],[data-theme="range-light"]) .theme-ico-light { display: none; }

/* Schwebender Theme-Umschalter oben rechts (Vuexy-typische Position).
   Fixiert, damit er auf Desktop und Mobile immer erreichbar ist. */
.theme-toggle-top {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: color var(--trans), border-color var(--trans), box-shadow var(--trans), transform var(--trans);
}
.theme-toggle-top:hover {
  color: var(--accent-fg);
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--accent-glow);
  transform: translateY(-1px);
}
.theme-toggle-top .theme-ico { width: 20px; height: 20px; }
@media print { .theme-toggle-top { display: none; } }

.app-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Mobile-Kopfzeile mit Hamburger - nur < 900px sichtbar */
.mobile-bar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--fs-md);
  white-space: nowrap;
}
.brand span { color: var(--text); }

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 35;
}

/* Aktivitäten: bereits stattgefundene Sessions (Datum <= heute) dezent grün
   hinterlegt = "abgeschlossen". Zukünftige/geplante bleiben neutral. */
tbody tr.row-done td { background: rgba(40, 199, 111, .07); }
tbody tr.row-done:hover td { background: rgba(40, 199, 111, .13); }

/* Start-Tab: die beiden Latein-Zitate nebeneinander als Kärtchen
   (auf schmalen Screens automatisch untereinander). */
/* Zitate: zwei kompakte Kärtchen nebeneinander (auf Mobile gestapelt). */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.quote-grid .quote-card { margin-bottom: 0; box-sizing: border-box; }

/* Start-Tab: News (links) und die zwei Zitat-Kacheln (rechts) nebeneinander. */
.start-news-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
}
.start-news-row #news-carousel-wrap { flex: 1 1 340px; min-width: 300px; }
.start-news-row .quote-col { flex: 1 1 300px; min-width: 280px; }
.quote-head { display: flex; align-items: center; margin-bottom: 10px; min-height: 30px; }
.quote-head h2 { margin: 0; font-size: var(--fs-lg); }
.start-news-row .quote-grid {
  margin-bottom: 0;
  align-content: start;
}

/* News-Kopf mit Filter-Chips (nur so breit wie die News-Spalte). */
.news-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.news-head h2 { margin: 0; font-size: var(--fs-lg); }
.news-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.news-chip {
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-2); font-size: var(--fs-xs); font-weight: 600;
  padding: 3px 11px; border-radius: var(--radius-pill); cursor: pointer;
  transition: all var(--trans);
}
.news-chip:hover { background: var(--surface-3); }
.news-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* News-Crawl (Start-Tab): langsames Scrollen von unten nach oben im Stil eines
   Film-Abspanns. Kontinuierlich, pausiert bei Hover. Breite = Spaltenbreite. */
.news-crawl {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: var(--radius);
  /* sanftes Aus-/Einblenden oben und unten */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
}
.news-crawl-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  animation-name: newsCrawl;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
.news-crawl:hover .news-crawl-track { animation-play-state: paused; }
@keyframes newsCrawl {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }  /* Slides sind doppelt -> nahtlos */
}
.news-crawl-item {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.news-crawl-item .chip { align-self: flex-start; }
.news-title {
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
}
.news-title:hover { color: var(--accent-fg); text-decoration: underline; }
.news-meta { font-size: var(--fs-xs); }

/* App/Server-Steuerung (Qualität-Tab) + Stop/Neustart-Overlay. */
.system-card { max-width: 640px; }
.system-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(0, 0, 0, .6);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.system-overlay.hidden { display: none; }
.system-overlay-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px 32px;
  max-width: 420px; text-align: center;
}
.system-overlay-box h3 { margin: 8px 0 8px; }
.system-overlay-box .btn { margin-top: 14px; }
.system-spinner {
  width: 34px; height: 34px; margin: 0 auto 6px;
  border: 3px solid var(--surface-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: sysspin .8s linear infinite;
}
@keyframes sysspin { to { transform: rotate(360deg); } }

/* Lightbox: Bild-Vergrösserung als Overlay (z.B. Drill-Karten) statt neuem Tab. */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  cursor: zoom-out;
  padding: 24px;
}
.lightbox.hidden { display: none; }
.lightbox img {
  max-width: 94vw;
  max-height: 92vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.sidebar-backdrop[hidden] { display: none; }

.content { padding: 24px; max-width: min(2200px, 100%); margin: 0 auto; width: 100%; }

/* ===========================================================================
   Karten / KPI / Charts
   =========================================================================== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card[onclick] { transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans); }
.card[onclick]:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin: 0 0 6px 0; font-size: var(--fs-sm); color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.card .big { font-size: 1.7rem; font-weight: 700; color: var(--accent); letter-spacing: -.01em; }
.card .sub { color: var(--muted); font-size: var(--fs-xs); margin-top: 4px; }

/* KPI-Karte mit Icon-Chip oben */
.kpi-card { position: relative; }
.kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-ico {
  width: 42px; height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
}
.kpi-ico svg { width: 21px; height: 21px; }
/* Rotierende Akzentfarbe pro KPI-Karte: primary / success / warning / info */
.grid .card:nth-child(4n+1) .big { color: var(--accent); }
.grid .card:nth-child(4n+2) .big { color: var(--success-strong); }
.grid .card:nth-child(4n+3) .big { color: var(--warn-strong); }
.grid .card:nth-child(4n+4) .big { color: var(--info-strong); }
.kpi-card:nth-child(4n+1) .kpi-ico { background: var(--accent-soft); color: var(--accent); }
.kpi-card:nth-child(4n+2) .kpi-ico { background: var(--success-soft); color: var(--ok); }
.kpi-card:nth-child(4n+3) .kpi-ico { background: var(--warn-soft); color: var(--warn); }
.kpi-card:nth-child(4n+4) .kpi-ico { background: var(--info-soft); color: var(--info); }

/* Alert-Reihe (Warn-Karten) oberhalb des Dashboards */
.alert-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.alert-card {
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid var(--card-border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans);
}
.alert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.alert-card .alert-ico { width: 42px; height: 42px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.alert-card .alert-ico svg { width: 22px; height: 22px; }
.alert-card .alert-body { min-width: 0; }
.alert-card .alert-val { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.alert-card .alert-lbl { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.alert-card.is-alert { border: 1px solid var(--danger); background: var(--danger-soft); }
.alert-card.is-alert .alert-ico { background: rgba(234,84,85,.22); color: var(--danger); }
.alert-card.is-alert .alert-val { color: var(--danger); }
.alert-card.is-ok .alert-ico { background: var(--success-soft); color: var(--ok); }
.alert-card.is-ok .alert-val { color: var(--text); }
.alert-card .alert-lbl { display: flex; flex-direction: column; }
/* Start-Tab: "Zu erledigen"-Kacheln nebeneinander, Datenqualität direkt darunter. */
.start-page .alert-row { margin-bottom: 12px; }

/* News: "mehr"-Knopf unter dem Crawl (z.B. RMSI-Archiv). */
.news-more { display: flex; justify-content: center; padding: 8px 0 2px; }

/* Qualitäts-Befund-Filter-Banner (zeigt nur die betroffenen Einträge). */
.qc-filter-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--warn-soft); border: 1px solid var(--warn); border-radius: var(--radius-sm);
  padding: 8px 12px; margin-bottom: 14px; font-size: var(--fs-sm); color: var(--text);
}

/* Infos & Verbände: Gruppen-Zwischenzeile in der Verbände/Links-Tabelle. */
tr.ref-group-row td { background: var(--surface-2); font-weight: 700; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 10px; }

/* Buchen-Dialog: Mehrfach-Waffenauswahl (Checkbox-Liste, gruppiert). */
.booking-fw-list { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; max-height: 230px; overflow-y: auto; background: var(--surface-2); }
.booking-fw-group + .booking-fw-group { margin-top: 8px; }
.booking-fw-group-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 2px 0 4px; }
.booking-fw-item { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-radius: var(--radius-xs); cursor: pointer; }
.booking-fw-item:hover { background: var(--surface-3); }
.booking-fw-item input { flex: 0 0 auto; }
.booking-fw-item .muted { margin-left: auto; font-size: var(--fs-xs); }
/* Zusatzzeile, z.B. die knappen Kaliber bei „Munition bestellen". */
.alert-detail { font-size: var(--fs-xs); font-weight: 700; color: var(--danger-strong); margin-top: 1px; }
/* Schlanke „alles erledigt"-Zeile, wenn keine Handlungs-Karte nötig ist. */
.alert-allclear {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--success-soft);
  color: var(--text); font-size: var(--fs-sm);
}
.alert-allclear-ico {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ok); color: #fff; font-weight: 800; font-size: var(--fs-sm);
}

.chart-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.chart-card h3 { margin-top: 0; font-size: var(--fs-lg); font-weight: 600; color: var(--text); }
.chart-wrap { position: relative; height: 280px; }

/* ===========================================================================
   Filter-Bar / Bulk-Toolbar
   =========================================================================== */
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.filter-bar label { display: block; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .03em; }
.filter-bar select, .filter-bar input {
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-sm);
  min-width: 160px;
}
.filter-bar .btn { margin-bottom: 1px; }

.cell-truncate { cursor: help; border-bottom: 1px dotted var(--muted); }
.actions-cell { display: flex; gap: 6px; white-space: nowrap; }

.bulk-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 14px;
}
.bulk-toolbar.hidden { display: none; }
.bulk-toolbar label { display: block; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .03em; }
.bulk-toolbar select, .bulk-toolbar input {
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-sm);
}
.bulk-count { font-weight: 700; color: var(--accent-fg); align-self: center; margin-bottom: 4px; }

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.file-row:last-child { border-bottom: none; }
.file-row a { flex: 1; color: var(--text); text-decoration: none; }
.file-row a:hover { color: var(--accent-fg); }

/* ===========================================================================
   Tabellen: Sticky Header, Sortierung, Icon-Aktionen
   =========================================================================== */
/* Scroll-Container (horizontal für breite Tabellen, vertikal begrenzt, damit
   der sticky Tabellen-Kopf beim Scrollen sichtbar bleibt). */
.table-wrap { overflow: auto; max-height: calc(100vh - 130px); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.table-wrap.table-narrow { max-width: 640px; width: auto; }
@media (max-width: 700px) { .table-wrap.table-narrow { max-width: 100%; } }

table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
thead th {
  text-align: left;
  padding: 10px 12px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}
/* Sortierbare Header (alle ausser Auswahl-/Aktionsspalten) */
thead th.th-sortable { cursor: pointer; user-select: none; padding-right: 22px; position: sticky; }
thead th.th-sortable:hover { color: var(--text); }
thead th.th-sortable::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid currentColor;
  opacity: .22;
  transform: translateY(-50%);
}
thead th.th-sortable[aria-sort="ascending"]::after { opacity: .95; border-bottom-color: var(--accent); }
thead th.th-sortable[aria-sort="descending"]::after { opacity: .95; border-bottom: none; border-top: 5px solid var(--accent); }

tbody td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: var(--fs-base); }
tbody tr { transition: background var(--trans); }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: none; }

tfoot .sum-row td {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--success-strong);
  border-top: 2px solid var(--border);
  border-bottom: none;
}

/* Icon-Buttons für Zeilen-Aktionen */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); border-color: var(--border-strong); }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.icon-btn.primary:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .01em; }
.badge.ok { background: var(--success-soft); color: var(--success-strong); }
.badge.open { background: var(--accent-soft); color: var(--accent-fg); }
.badge.due { background: var(--danger-soft); color: var(--danger-strong); }
.badge.neutral { background: rgba(136,145,163,.16); color: var(--muted); }
.badge.warn { background: var(--warn-soft); color: var(--warn-strong); }

/* Wert & Versicherung (Phase 4): hervorgehobene Investment-Gesamtkachel und
   Low-Stock-Zeilenmarkierung im Munitionsbestand. */
.kpi-accent { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.kpi-accent .big { color: var(--accent); }
.row-lowstock { background: var(--danger-soft); }
.row-lowstock td { color: var(--danger-strong); }

/* Wartungs-Fortschrittsbalken (Phase 3) - Farbstufen grün/orange/rot */
.mbar-cell { min-width: 150px; }
.mbar {
  position: relative;
  height: 16px;
  border-radius: var(--radius-pill);
  background: rgba(136,145,163,.18);
  overflow: hidden;
  min-width: 120px;
}
.mbar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--radius-pill); }
.mbar-fill.ok { background: var(--ok); }
.mbar-fill.warn { background: var(--warn); }
.mbar-fill.due { background: var(--danger); }
.mbar-fill.neutral { background: var(--muted); }
.mbar-pct {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-2xs); font-weight: 700; color: var(--text); mix-blend-mode: luminosity;
}
.mbar-detail { font-size: var(--fs-2xs); margin-top: 3px; }

.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.section-title h2 { margin: 0; font-size: var(--fs-lg); }
.section-title .count { color: var(--muted); font-size: var(--fs-sm); }

/* Ansehnliche leere Zustände */
.empty-state { padding: 40px; text-align: center; color: var(--muted); }
.empty-rich {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 44px 20px;
  color: var(--muted);
}
.empty-rich svg { width: 46px; height: 46px; opacity: .5; margin-bottom: 4px; }
.empty-rich .empty-title { font-size: var(--fs-md); font-weight: 700; color: var(--text-2); }
.empty-rich .empty-hint { font-size: var(--fs-sm); }
.empty-rich .empty-hint b { color: var(--accent-fg); }

/* ===========================================================================
   View-Umschalter (Waffen: Tabelle / Galerie)
   =========================================================================== */
.view-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface-2); }
.view-switch button {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; background: transparent; color: var(--muted);
  padding: 7px 12px; cursor: pointer; font-size: var(--fs-sm); font-weight: 600;
}
.view-switch button svg { width: 16px; height: 16px; }
.view-switch button.active { background: var(--accent); color: #FFFFFF; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.gun-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.gun-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gun-photo {
  height: 165px;
  background: var(--surface-2);
  display: block;
  width: 100%;
  object-fit: cover;
}
.gun-photo-empty {
  height: 165px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.gun-photo-empty svg { width: 54px; height: 54px; opacity: .4; }
.gun-card-body { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.gun-card-body h3 { margin: 0; font-size: var(--fs-md); }
.gun-card-meta { color: var(--muted); font-size: var(--fs-sm); }
.gun-card-stats { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.gun-card-shots { font-size: var(--fs-sm); color: var(--text-2); }
.gun-card-shots b { color: var(--accent-fg); font-size: var(--fs-md); }
.gun-card-actions { display: flex; gap: 6px; margin-top: 12px; }

/* ===========================================================================
   Drill-Galerie / Start-Seite / Zitate / Chips (unverändert im Verhalten)
   =========================================================================== */
.drill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.drill-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans), box-shadow var(--trans);
}
.drill-card { cursor: pointer; }
.drill-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.drill-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.drill-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow-md); }

/* Auswahl-Checkbox oben links auf dem Kartenbild (für den Trainingsplan). */
.drill-select {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--radius-sm); cursor: pointer;
  background: rgba(0, 0, 0, .45); backdrop-filter: blur(2px);
}
.drill-select input { width: 17px; height: 17px; cursor: pointer; accent-color: var(--accent); margin: 0; }

/* Sticky Aktionsleiste am unteren Rand, sobald Drills gewählt sind. */
.drill-plan-bar {
  position: sticky; bottom: 12px; z-index: 20;
  margin: 16px auto 0; max-width: 640px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 14px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--accent);
  box-shadow: var(--shadow-lg);
}
.drill-plan-bar.hidden { display: none; }
.drill-plan-info { font-size: var(--fs-sm); color: var(--text); }
.drill-plan-actions { display: flex; gap: 8px; }

/* Trainingsplan-Modal: Tabellen + QR. */
.tp-scroll { max-height: 40vh; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.tp-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tp-table th, .tp-table td { padding: 6px 9px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.tp-table thead th { position: sticky; top: 0; background: var(--surface-2); color: var(--text-2); }
.tp-ammo { max-width: 320px; }
.tp-ammo .tp-total td { border-top: 2px solid var(--accent); font-weight: 700; }
.tp-details { display: flex; flex-direction: column; gap: 10px; max-height: 34vh; overflow: auto; }
.tp-detail { border-left: 3px solid var(--accent); padding: 2px 0 2px 10px; }
.tp-detail-title { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 2px; }
.tp-detail-body { font-size: var(--fs-sm); white-space: pre-wrap; line-height: 1.35; }
.tp-detail-note { font-size: var(--fs-xs); color: var(--warn); margin-top: 3px; }
.tp-qr { margin-top: 12px; text-align: center; }
.tp-qr.hidden { display: none; }
.tp-qr-inner { display: inline-block; padding: 10px; background: #fff; border-radius: var(--radius); }
.tp-qr-inner svg { width: 220px; height: 220px; display: block; }
.drill-thumb { display: block; width: 100%; height: 200px; object-fit: cover; background: var(--surface-2); }
.drill-thumb-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: var(--fs-sm); }
/* Hover-Hinweis auf dem Kartenbild: signalisiert die Klickbarkeit. */
.drill-thumb-wrap { position: relative; }
.drill-card-hint {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 6px 10px; font-size: var(--fs-xs); font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
  opacity: 0; transition: opacity var(--trans); pointer-events: none;
}
.drill-card:hover .drill-card-hint, .drill-card:focus-visible .drill-card-hint { opacity: 1; }
.drill-card-body { padding: 14px; }
.drill-card-body h3 { margin: 0 0 4px 0; font-size: var(--fs-md); }
.drill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---- Drill-Index: Toolbar + Facetten-Kacheln ---- */
.drill-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.drill-search-wrap { position: relative; flex: 1; min-width: 220px; }
.drill-search-ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: var(--fs-base); opacity: .6; pointer-events: none;
}
.drill-search-wrap input {
  width: 100%; padding: 11px 14px 11px 38px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font-size: var(--fs-base);
}
.drill-search-wrap input:focus { border-color: var(--accent); box-shadow: var(--focus-ring); outline: none; }

.drill-facets {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.drill-facet-group { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.drill-facet-label {
  flex: 0 0 62px; padding-top: 7px;
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted);
}
/* Indoor/fixe-Bahn-Preset-Button in der Drill-Toolbar */
.drill-preset {
  flex: 0 0 auto; padding: 9px 14px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font-size: var(--fs-sm); font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background var(--trans), border-color var(--trans), color var(--trans);
}
.drill-preset:hover { border-color: var(--accent); }
.drill-preset.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.drill-tiles { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.drill-tile {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text);
  font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
  transition: background var(--trans), border-color var(--trans), color var(--trans), transform var(--trans);
}
.drill-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.drill-tile.is-active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.drill-tile-ico { font-size: var(--fs-base); line-height: 1; }
.drill-tile-cnt {
  font-size: var(--fs-xs); font-weight: 700; padding: 1px 7px;
  border-radius: var(--radius-pill); background: var(--surface-3); color: var(--muted);
}
.drill-tile.is-active .drill-tile-cnt { background: rgba(255,255,255,.22); color: #fff; }

/* ---- Drill-Detail (read-only Modal) ---- */
.drill-detail { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.drill-detail-media { flex: 0 0 240px; max-width: 100%; }
.drill-detail-img {
  display: block; width: 100%; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2); cursor: zoom-in;
  min-height: 120px; object-fit: contain;
}
.drill-detail-info { flex: 1; min-width: 220px; }
.drill-detail-sketch { margin-top: 12px; display: flex; flex-direction: column; align-items: center; }
/* Zielscheiben: SVG-Vorschau (wenn kein Foto) + Bezugsquelle-Zeile */
.target-thumb-svg { display: flex; align-items: center; justify-content: center; padding: 16px; }
.target-thumb-svg svg { max-width: 100%; max-height: 100%; }
.target-source { font-size: var(--fs-xs); color: var(--muted); margin-top: 8px; }
.target-source a { color: var(--accent-fg); text-decoration: none; }
.target-source a:hover { text-decoration: underline; }

/* Bestands-Block auf der Zielscheiben-Karte (Anzahl + Warnschwelle + Ampel). */
.target-stock { margin-top: 10px; }
.target-stock-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-size: var(--fs-xs); color: var(--muted);
}
.target-stock-head b { color: var(--text); font-size: var(--fs-sm); }
.target-stock .stockbar { max-width: none; }
.chip-warn {
  background: var(--danger); color: #fff; border-color: transparent;
  font-size: var(--fs-xs); padding: 1px 7px;
}

/* Schiessstände: Disziplin-/Distanz-Chips + Quellenzeile */
.disc-chip {
  display: inline-block; padding: 1px 7px; margin: 1px 0;
  border-radius: var(--radius-pill); font-size: var(--fs-2xs); font-weight: 600; white-space: nowrap;
}
.disc-pistol { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); color: var(--accent-fg); }
.disc-rifle  { background: color-mix(in srgb, #2f8f5e 24%, var(--surface)); color: #7fd6a6; }
/* Munitions-Bedarfsschätzung */
.ammo-needs-table .need-order { color: var(--accent-fg); }
.ammo-needs-table tr.is-low td { background: var(--danger-soft); }

/* Globale Suche (Sidebar) */
.sidebar-search { position: relative; padding: 0 14px 10px; }
.sidebar-search-ico { position: absolute; left: 24px; top: 9px; font-size: var(--fs-sm); opacity: .6; pointer-events: none; }
.sidebar-search input {
  width: 100%; padding: 8px 10px 8px 32px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-size: var(--fs-sm);
}
.sidebar-search input:focus { border-color: var(--accent); box-shadow: var(--focus-ring); outline: none; }
.gsearch-results {
  position: absolute; left: 14px; right: 14px; top: 100%; z-index: 60; max-height: 60vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 6px;
}
.gsearch-results.hidden { display: none; }
.gsearch-empty { padding: 10px; font-size: var(--fs-sm); }
.gsearch-group + .gsearch-group { margin-top: 4px; }
.gsearch-group-h { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 8px 2px; }
.gsearch-item {
  display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; cursor: pointer;
  padding: 6px 8px; border: none; background: none; border-radius: var(--radius-sm); color: var(--text);
}
.gsearch-item:hover { background: var(--surface-3); }
.gsearch-label { font-size: var(--fs-sm); font-weight: 600; }
.gsearch-sub { font-size: var(--fs-xs); color: var(--muted); }

/* Aufklappbarer „Erweitert"-Bereich in Formularen */
.form-advanced { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0; }
.form-advanced > summary { cursor: pointer; padding: 9px 12px; font-weight: 600; font-size: var(--fs-sm); color: var(--text); list-style: revert; }
.form-advanced[open] > summary { border-bottom: 1px solid var(--border); }
.form-advanced-body { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.form-advanced-body .form-field { margin: 0; }

.ranges-map { height: 62vh; min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
/* Karte oben im Tab (über der Liste): moderatere Höhe, damit die Liste sichtbar bleibt. */
.ranges-map.ranges-map-inline { height: 40vh; min-height: 300px; margin: 4px 0 16px; }
.ranges-map .leaflet-popup-content { font-size: var(--fs-xs); line-height: 1.4; }
.ranges-source { font-size: var(--fs-sm); margin-top: -6px; }
.ranges-source a { color: var(--accent-fg); text-decoration: none; }
.ranges-source a:hover { text-decoration: underline; }

/* Schiessnachweis Live-Fit / Zeichen-Zähler unter Ort + Schiessveranstaltung */
.sn-fit { font-size: var(--fs-xs); margin-top: 4px; font-weight: 600; min-height: 1em; }
.sn-fit-ok { color: var(--ok); }
.sn-fit-warn { color: var(--accent-3); }
.sn-fit-bad { color: var(--danger); }

/* Waffen-Dossier: Aktions-Buttons oben, damit man nicht scrollen muss */
.dossier-actions { margin: 2px 0 2px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* My-Infos: Anhang-Chips (Klick = Vorschau) + In-App-Attachment-Viewer */
.myinfo-detail-files { display: flex; flex-wrap: wrap; gap: 8px; }
.attach-viewer {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column;
  background: rgba(0, 0, 0, .82); backdrop-filter: blur(2px);
}
.attach-viewer.hidden { display: none; }
.attach-viewer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; color: #fff; flex: 0 0 auto;
}
.attach-viewer-title { font-weight: 600; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.attach-viewer-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.attach-viewer-dl {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  padding: 6px 12px; border-radius: 8px; font-size: var(--fs-sm); font-weight: 600;
  color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12);
}
.attach-viewer-dl:hover { background: rgba(255,255,255,.24); }
.attach-viewer-close {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; font-size: var(--fs-md);
}
.attach-viewer-close:hover { background: rgba(255,255,255,.24); }
.attach-viewer-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 16px 16px; min-height: 0; overflow: auto; }
.attach-viewer-body img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-xs); background: #fff; }
.attach-viewer-body iframe { width: 100%; height: 100%; border: none; border-radius: var(--radius-xs); background: #fff; }
/* Selbst gerenderte PDF-Seiten (PDF.js) – scrollbare Canvas-Liste */
.attach-pdf-pages { align-self: flex-start; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; max-height: 100%; }
.attach-pdf-canvas { max-width: 100%; height: auto; background: #fff; border-radius: var(--radius-xs); box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.attach-viewer-fallback { color: #fff; text-align: center; font-size: var(--fs-sm); }
.attach-viewer-fallback a { color: #fff; text-decoration: underline; }
.drill-detail-meta { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.drill-detail-text {
  white-space: pre-wrap; line-height: 1.55;
  font-size: var(--fs-sm); color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
}

.start-page { position: relative; }
.start-page > * { position: relative; z-index: 1; }

.quote-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
/* Kompakte Kachel-Variante (Start-Tab, zwei nebeneinander) */
.quote-mini {
  padding: 14px 16px;
  margin-bottom: 0;
}
.quote-mini .quote-category {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-fg);
  font-weight: 700;
}
.quote-mini .quote-latin { font-size: var(--fs-md); font-style: italic; font-weight: 600; color: var(--accent-fg); margin: 0 0 4px 0; }
.quote-mini .quote-de { font-size: var(--fs-base); color: var(--text); margin: 0 0 4px 0; }
.quote-mini .quote-meaning { font-size: var(--fs-xs); color: var(--muted); margin: 0; }

.quote-category { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.quote-latin { font-size: 1.35rem; font-style: italic; font-weight: 600; color: var(--accent); margin: 0 0 6px 0; }
.quote-de { font-size: var(--fs-base); color: var(--text); margin: 0 0 6px 0; }
.quote-meaning { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-fg);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

/* ===========================================================================
   FAB (mit Label-Tooltip)
   =========================================================================== */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px var(--accent-glow);
  z-index: 20;
  transition: transform var(--trans), background var(--trans), box-shadow var(--trans);
}
.fab:hover { transform: scale(1.06); background: var(--accent-strong); box-shadow: 0 8px 22px var(--accent-glow); }
.fab.hidden { display: none; }
.fab::after {
  content: attr(data-tip);
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans), transform var(--trans);
}
.fab:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ===========================================================================
   Modal / Formulare (zweispaltig ab 640px)
   =========================================================================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex; align-items: center; justify-content: center;
  z-index: 75;   /* über der Bottom-Nav (60) */
  padding: 16px;
}
.modal-overlay.hidden { display: none; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 20px 22px 22px;
  box-shadow: var(--shadow-lg);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-header h3 { margin: 0; font-size: var(--fs-lg); }
.modal-close { background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 2px 6px; border-radius: var(--radius-xs); }
.modal-close:hover { color: var(--text); background: var(--surface-2); }

.modal-form label { display: block; font-size: var(--fs-sm); color: var(--muted); margin: 12px 0 5px; }
.modal-form input, .modal-form select, .modal-form textarea {
  width: 100%;
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-base);
}
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus { border-color: var(--accent); box-shadow: var(--focus-ring); outline: none; }
.modal-form textarea { min-height: 62px; resize: vertical; }
.caliber-other-input.hidden { display: none; }
.round-row { display: flex; gap: 8px; align-items: end; margin-top: 8px; }
.round-row > div { flex: 1; }
.round-row button { flex: 0 0 auto; }

/* Pflichtfeld-Markierung */
.req-star { color: var(--danger-strong); font-weight: 700; }

/* Zweispaltiges Formular-Layout */
.modal-form.two-col .form-field label { margin-top: 0; }
.form-field { margin-top: 12px; }
.form-field label { margin: 0 0 5px; }
@media (min-width: 640px) {
  .modal { max-width: 620px; }
  .modal-form.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .modal-form.two-col .form-field { margin-top: 0; }
  .modal-form.two-col .form-field.full { grid-column: 1 / -1; }
  .modal-form.two-col .btn-row { grid-column: 1 / -1; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: var(--fs-base);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--trans), border-color var(--trans), color var(--trans);
}
.btn-primary { background: var(--accent-solid); color: #FFFFFF; box-shadow: 0 2px 6px var(--accent-glow); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 70%, #000); box-shadow: 0 4px 10px var(--accent-glow); }
/* .btn ohne Variante (v3.12.0): neutraler Standard statt Browser-Weiss */
.btn:not(.btn-primary):not(.btn-secondary):not(.btn-danger):not(.btn-success):not(.btn-warn) {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
/* Sekundär = tonal (Alpha-Fläche) */
.btn-secondary { background: rgba(136, 145, 163, .16); color: var(--text); border: 1px solid transparent; }
:root[data-theme="dark"] .btn-secondary { background: var(--surface-2); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(136, 145, 163, .26); }
:root[data-theme="dark"] .btn-secondary:hover { background: var(--surface-3); border-color: var(--border-strong); }
.btn-danger { background: var(--danger-soft); color: var(--danger-strong); border: 1px solid transparent; padding: 4px 10px; font-size: var(--fs-xs); }
.btn-danger:hover { background: rgba(234, 84, 85, .22); }
.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.btn-small { padding: 6px 11px; font-size: var(--fs-xs); border-radius: 7px; }

.muted { color: var(--muted); }
a { color: var(--accent-fg); }

/* ===========================================================================
   Toast
   =========================================================================== */
.toast {
  position: fixed;
  bottom: 100px;
  right: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--radius);
  z-index: 60;
  box-shadow: var(--shadow-lg);
  max-width: min(360px, 90vw);
}
.toast.hidden { display: none; }
.toast.error { border-left-color: var(--danger); }

/* ===========================================================================
   Responsive: Sidebar off-canvas < 900px
   =========================================================================== */
@media (max-width: 900px) {
  .mobile-bar { display: flex; }
  .sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: var(--shadow-lg);
  }
  .app-shell.nav-open .sidebar { transform: translateX(0); }
  .app-main { width: 100%; }
  /* v3.9.2: Menü endet über der unteren Leiste (sonst verdeckt sie Version,
     Datenschutz-Link und Feedback); dvh = sichtbare Höhe auf iOS. */
  .sidebar { height: 100dvh; padding-bottom: calc(64px + env(safe-area-inset-bottom)); box-sizing: border-box; }
}
@media (min-width: 901px) {
  .sidebar-backdrop { display: none !important; }
}

@media (max-width: 900px) {
  /* Drawer nie breiter als der Viewport (kleine Phones) */
  .sidebar { width: min(88vw, var(--sidebar-w)); }
}
@media (max-width: 640px) {
  .content { padding: 14px; }
  .fab { bottom: 20px; right: 20px; }
  .fab::after { display: none; }
  /* Fürs Loggen am Stand: natürliche Seiten-Scrollung statt verschachteltem
     Tabellen-Scroll, grössere Tap-Flächen, kompaktere Karten/Map. */
  .table-wrap { max-height: none; }
  .icon-btn { width: 36px; height: 36px; }
  .btn-small { min-height: 34px; }
  .ranges-map { height: 52vh; min-height: 300px; }
  .modal-overlay { padding: 8px; }
  .modal { padding: 16px; max-height: 92vh; }
  .drill-toolbar { flex-wrap: wrap; }
  .drill-preset { flex: 1 1 auto; }
  .section-title h2 { font-size: 1.2rem; }
  .attach-viewer-title { max-width: 55vw; }
}

/* ===========================================================================
   Schiesstagebuch+ (Phase 2): klickbare Zeilen/Karten, Session-Detailansicht,
   Waffen-Akte (Dossier). Wiederverwenden die bestehenden Modal-Flächen.
   =========================================================================== */
tr.row-clickable { cursor: pointer; }
tr.row-clickable:hover td { background: var(--surface-3); }
.gun-card.row-clickable { cursor: pointer; }

/* Meta-Grid (Datum/Ort/Distanz ... als Key/Value-Paare) */
.detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; }
.detail-kv { display: flex; flex-direction: column; gap: 1px; }
.detail-k { font-size: var(--fs-xs); color: var(--muted); }
.detail-v { font-size: var(--fs-base); color: var(--text); }

.detail-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.detail-section h4 { margin: 0 0 8px; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.detail-weapons { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

.detail-drill { display: flex; gap: 12px; align-items: center; }
.detail-drill-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* Scheiben-Foto-Galerie im Session-Detail */
.session-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.session-photo-item { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.session-photo { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.session-photo-doc { display: flex; align-items: center; justify-content: center; font-size: 2rem; background: var(--surface-2); text-decoration: none; }
.session-photo-item figcaption { font-size: var(--fs-xs); color: var(--muted); word-break: break-word; }

/* Waffen-Akte (Dossier) */
.dossier-head { display: flex; gap: 16px; align-items: center; }
.dossier-photo { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); flex: 0 0 auto; display: block; }
.dossier-photo-empty { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); }
.dossier-photo-empty svg { width: 48px; height: 48px; opacity: .4; }
.dossier-head-body { flex: 1; min-width: 0; }
.dossier-stats { display: flex; gap: 20px; margin-top: 12px; }
.dossier-stat { display: flex; flex-direction: column; }
.dossier-stat-val { font-size: var(--fs-xl); font-weight: 700; color: var(--accent); line-height: 1.1; }
.dossier-stat-lbl { font-size: var(--fs-xs); color: var(--muted); }
.dossier-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.dossier-table th, .dossier-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.dossier-table th { color: var(--muted); font-weight: 600; font-size: var(--fs-xs); }

/* ===========================================================================
   Druck-Stylesheet: nur Tabellen/Inhalt, ohne Navigation/Buttons
   =========================================================================== */
@media print {
  :root { --bg: #fff; }
  body { background: #fff; color: #000; }
  .sidebar, .mobile-bar, .fab, .filter-bar, .bulk-toolbar, .view-switch,
  .sidebar-backdrop, .modal-overlay, .toast, .actions-cell, thead th:last-child,
  .card[onclick], .btn { display: none !important; }
  .app-shell { display: block; }
  .app-main { width: 100%; }
  .content { padding: 0; max-width: 100%; }
  .table-wrap { overflow: visible; max-height: none; border: none; box-shadow: none; }
  table { border: 1px solid #999; }
  thead th { position: static; background: #eee !important; color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  thead th::after { display: none !important; }
  tbody td { color: #000; border-bottom: 1px solid #bbb; }
  .section-title h2 { color: #000; }
}

/* ---------------------------------------------------------------------------
   Events & Wettkämpfe (Start-Tab, unter dem News-Carousel)
   --------------------------------------------------------------------------- */
/* Links die (schmalere) Öffnungs-Karte, rechts Peschiera + PractiScore
   nebeneinander - alle drei gleich hoch (align-items: stretch). */
/* "Aktualisiert vor X" - Frische-Badge mit Ampelpunkt */
.ev-freshness {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--fs-xs); font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}
.ev-fresh-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ev-fresh-ok   { color: var(--success-strong); background: var(--success-soft); }
.ev-fresh-ok   .ev-fresh-dot { background: var(--ok); }
.ev-fresh-warn { color: var(--warn-strong); background: var(--warn-soft); }
.ev-fresh-warn .ev-fresh-dot { background: var(--warn); }
.ev-fresh-old  { color: var(--danger-strong); background: var(--danger-soft); }
.ev-fresh-old  .ev-fresh-dot { background: var(--danger); }

.ev-signal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* v3.9.3: Öffnungszeiten-Karte entfernt (siehe „Wo schiessen?") */
  max-width: 760px;
  gap: 16px;
  margin-bottom: 18px;
  align-items: stretch;
}
.ev-signal-grid > * { min-width: 0; }
@media (max-width: 1150px) { .ev-signal-grid { grid-template-columns: 1fr; } }

.ev-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
}
.ev-card h3 { margin: 0 0 10px; font-size: var(--fs-base); }
.ev-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ev-card-head h3 { margin: 0; }

.ev-openings-card {
  border-left: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
}
/* Chips immer unten bündig -> Karte füllt die Zeilenhöhe sauber aus */
.ev-openings-card .ev-chip-row { margin-top: auto; }

.ev-opening-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text);
  transition: background var(--trans);
}
.ev-opening-row:hover { background: var(--surface-3); }
.ev-opening-main { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.ev-opening-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-countdown {
  flex-shrink: 0; font-weight: 600; font-size: var(--fs-sm);
  color: var(--accent-fg); background: var(--accent-soft);
  padding: 3px 10px; border-radius: var(--radius-pill);
}

.ev-country {
  flex-shrink: 0; display: inline-block; min-width: 34px; text-align: center;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em;
  color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 2px 6px;
}

.ev-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ev-chip {
  cursor: pointer; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-2); font-size: var(--fs-xs); font-weight: 600;
  padding: 4px 12px; border-radius: var(--radius-pill); transition: all var(--trans);
}
.ev-chip:hover { background: var(--surface-3); }
.ev-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.ev-chip-new.active { background: var(--ok); border-color: var(--ok); }
.ev-chip-open.active { background: var(--accent); border-color: var(--accent); }

/* Rechte Spalte: Öffnungszeiten + PractiScore NEBENEINANDER, gleich hoch. */
.ev-side-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-width: 0;
}
.ev-side-col > * { min-width: 0; height: 100%; }
@media (max-width: 560px) { .ev-side-col { grid-template-columns: 1fr; } }

.ev-ps-card {
  border-left: 3px solid var(--info);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}
.ev-ps-card h3 { margin-bottom: 6px; }
/* Reserve-Platz: Text oben, Buttons immer unten bündig */
.ev-ps-text { font-size: var(--fs-xs); line-height: 1.45; margin-bottom: 14px; flex: 1; }
.ev-ps-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.ev-ps-btns .btn { text-decoration: none; }

.ev-hours-card {
  border-left: 3px solid var(--ok);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}
.ev-hours-card h3 { margin-bottom: 6px; }
.ev-hours-card .ev-src-link { margin-top: auto; padding-top: 10px; }
.ev-hours-lines { display: flex; flex-direction: column; gap: 3px; font-size: var(--fs-sm); }
.ev-hours-lines div { color: var(--text-2); }
.ev-hours-label {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted) !important; font-weight: 700; margin-bottom: 2px;
}
.ev-hours-closed { color: var(--warn-strong) !important; font-weight: 600; }
.ev-hours-closed::before { content: "• "; }
.ev-src-link { display: inline-block; font-size: var(--fs-xs); }

.ev-filter-bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px;
  margin-bottom: 12px;
}
.ev-filter-bar label { display: block; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .03em; }
.ev-filter-bar select, .ev-filter-bar input[type="search"], .ev-filter-bar input[type="date"], .ev-sheet-dates input {
  padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-size: var(--fs-sm); min-width: 150px;
}
.ev-check { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-2); text-transform: none; letter-spacing: 0; }
.ev-check input { width: auto; margin: 0; }

/* Drill-Spezifikationen-Hinweis im Aktivitäts-Formular (nach Drill-Auswahl) */
.drill-prefill-hint { font-size: var(--fs-xs); margin-top: 6px; line-height: 1.4; }
.drill-prefill-hint:empty { display: none; }

/* Quellenzeile jetzt oben (unter der Filterleiste) statt versteckt ganz unten. */
.ev-sources { font-size: var(--fs-xs); margin: 0 0 14px; line-height: 1.6; }
.ev-sources a { color: var(--accent-fg); text-decoration: none; }
.ev-sources a:hover { text-decoration: underline; }

/* Fahrzeit-Widget ganz rechts in der Filterleiste */
.ev-travel-widget { margin-left: auto; }
.ev-travel-widget label { display: block; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .03em; }
.ev-travel-row { display: flex; gap: 6px; align-items: center; }
.ev-travel-row input {
  padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-size: var(--fs-sm); min-width: 150px;
}
.ev-travel-chip {
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--info-strong); background: var(--info-soft);
  padding: 2px 9px; border-radius: var(--radius-pill); white-space: nowrap;
}
@media (max-width: 760px) { .ev-travel-widget { margin-left: 0; } }

.ev-month {
  font-weight: 700; font-size: var(--fs-sm); color: var(--accent-fg);
  text-transform: capitalize; letter-spacing: .02em;
  margin: 16px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--border);
}
.ev-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px; border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border);
}
.ev-row:hover { background: var(--surface-2); }
.ev-row-cancelled .ev-title a, .ev-row-cancelled .ev-title { text-decoration: line-through; opacity: .7; }
.ev-date { flex-shrink: 0; width: 128px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.ev-thumb {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--surface-2);
  border: 1px solid var(--border); cursor: zoom-in;
}
.ev-thumb-empty {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: default; color: var(--muted);
}
.ev-main { flex: 1; min-width: 0; }
.ev-title { font-weight: 600; }
.ev-title a { color: var(--accent-fg); text-decoration: none; }
.ev-title a:hover { text-decoration: underline; }
/* Munitionsbestand: Typ-Icon (Pistole/Gewehr/Schrot/Luft) mit Hover-Farbwechsel
   + Bestands-Level-Balken. */
/* Kaliber-Zelle im Tab 'Munition' > 'Munitionsbestand': Icon + Kaliber + ggf.
   'knapp'-Badge in EINER Zeile (schlank). Eigener Name, um die Kollision mit der
   gleichnamigen Kalender-Zelle (.cal-cell, Spalten-Layout) zu vermeiden. */
.ammo-cal-cell { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Wiederholbarer Waffen-/Munitions-Editor im Aktivitäten-Formular (1-n Zeilen). */
.sre-rows { display: flex; flex-direction: column; gap: 8px; }
.sre-row {
  display: grid;
  grid-template-columns: 70px 1.3fr 1.2fr 1fr 1.2fr 84px 30px;
  gap: 6px; align-items: center;
}
.sre-row select, .sre-row input { width: 100%; min-width: 0; padding: 6px 8px; }
.sre-hint { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.sre-del { color: var(--danger); }
.sre-add { margin-top: 8px; }
@media (max-width: 720px) {
  .sre-row { grid-template-columns: 1fr 1fr; }
  .sre-hint { grid-column: 1 / -1; }
}

/* "Bestand nach Geschossart" (einklappbar) – kompakte Tabellen je Kaliber. */
.ammo-loads > summary { cursor: pointer; font-weight: 600; }
.ammo-loads-body { margin-top: 10px; }
.ammo-load-group { margin-bottom: 14px; }
.ammo-load-cal { margin: 6px 0 4px; font-size: var(--fs-sm); color: var(--accent-fg); }
.ammo-load-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.ammo-load-table th, .ammo-load-table td { padding: 4px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.ammo-load-table th { color: var(--muted); font-weight: 600; }
.badge.ok { background: var(--success-soft); color: var(--success-strong); }
.cal-ico {
  flex: 0 0 auto; width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  border-radius: 7px;
  transition: color var(--trans), background var(--trans), transform var(--trans);
}
.cal-ico svg { width: 20px; height: 20px; }
/* Hover (übers Icon oder die ganze Zeile) -> Typ-Farbe + dezenter Chip. */
.cal-ico:hover, tbody tr:hover .cal-ico { transform: scale(1.08); }
.cal-ico-pistol:hover,  tbody tr:hover .cal-ico-pistol  { color: var(--accent-fg);     background: var(--accent-soft); }
.cal-ico-rifle:hover,   tbody tr:hover .cal-ico-rifle   { color: var(--info-strong);   background: var(--info-soft); }
.cal-ico-shotgun:hover, tbody tr:hover .cal-ico-shotgun { color: var(--warn-strong);   background: var(--warn-soft); }
.cal-ico-air:hover,     tbody tr:hover .cal-ico-air     { color: var(--success-strong); background: var(--success-soft); }
.cal-ico-default:hover, tbody tr:hover .cal-ico-default { color: var(--accent-fg);     background: var(--accent-soft); }

.stock-remaining { min-width: 130px; }
.stockbar {
  margin-top: 5px; height: 7px; width: 100%; max-width: 120px;
  background: var(--surface-3); border-radius: var(--radius-pill); overflow: hidden;
}
.stockbar-fill { height: 100%; border-radius: var(--radius-pill); }
.stockbar-ok   { background: var(--ok); }
.stockbar-warn { background: var(--warn); }
.stockbar-low  { background: var(--danger); }
.stockbar-none { background: var(--border-strong); }

/* Warnschwellen-Eingabe: dezent navy-getönt statt reinweiss, klar vom
 * Seitenhintergrund abgesetzt und in allen Themes lesbar. */
.lowstock-input {
  background: color-mix(in srgb, #2f5c9e 18%, var(--surface));
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}
.lowstock-input::placeholder { color: var(--muted); }
/* Keine Spinner-Pfeile: man tippt die Zahl einfach ein. */
.lowstock-input::-webkit-outer-spin-button,
.lowstock-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lowstock-input { -moz-appearance: textfield; appearance: textfield; }
.lowstock-input:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
  outline: none;
}

.ev-sub { font-size: var(--fs-xs); margin-top: 2px; }
/* Kompakte Fakten-Zeile pro Event (Event-/Anmelde-Zeitraum, Level, ...) */
.ev-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 5px; }
.ev-fact { font-size: var(--fs-xs); color: var(--text-2); white-space: nowrap; }
.ev-fact b { color: var(--muted); font-weight: 600; }
.ev-also { color: var(--muted); }
.ev-also a { color: var(--accent-fg); text-decoration: none; }
.ev-also a:hover { text-decoration: underline; }
.ev-util { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.ev-regopens {
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--warn-strong); background: var(--warn-soft);
  padding: 2px 8px; border-radius: var(--radius-pill); white-space: nowrap;
}
.ev-footer { margin-top: 16px; font-size: var(--fs-xs); }
.ev-footer a { color: var(--accent-fg); }
.ev-more { padding: 10px 2px; font-size: var(--fs-sm); }

@media (max-width: 640px) {
  .ev-row { flex-wrap: wrap; }
  .ev-date { width: auto; }
}

/* ---------------------------------------------------------------------------
   Qualität & Version (Features 1-3): App-Version, QS-Panel, Changelog.
   --------------------------------------------------------------------------- */
.app-version {
  margin-top: 10px;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: .02em;
}

/* QS-Panel (Datenqualitäts-Check) */
.qc-panel { display: flex; flex-direction: column; gap: 10px; }
.qc-finding {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}
.qc-finding > .badge { flex: 0 0 auto; }
.qc-finding-body { flex: 1; min-width: 0; }
.qc-finding-body strong { display: block; font-size: var(--fs-sm); }
.qc-finding-body .muted { font-size: var(--fs-xs); }
.qc-finding.qc-ok { border-color: var(--success-soft); }


/* Kompakte, schmale Datenqualitäts-Statuszeile auf dem Start-Tab (klickbar). */
.qc-summary-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 20px 0;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color var(--trans), box-shadow var(--trans);
  max-width: 100%;
}
.qc-summary-strip:hover { box-shadow: var(--shadow-md); }
.qc-strip-ico { width: 18px; height: 18px; flex: 0 0 auto; color: var(--accent-fg); }
.qc-strip-label { font-weight: 700; font-size: var(--fs-sm); }
.qc-strip-head { font-size: var(--fs-sm); color: var(--muted); }
.qc-strip-arrow { color: var(--muted); font-size: 1.1rem; margin-left: 2px; }

/* Schiessnachweis-Kachel (jetzt im My-Infos-Tab): Text links, Button rechts. */
.myinfos-schiessnachweis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.myinfos-schiessnachweis .sn-tile-text h3 { margin: 0 0 4px 0; }
.myinfos-schiessnachweis .sn-tile-text p { margin: 0; max-width: 640px; }
.myinfos-schiessnachweis .btn { flex: 0 0 auto; }

/* Ausweismappe-Kachel (My-Infos-Tab): Text links, scope-Auswahl + Aktionen rechts. */
.ausweismappe-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.ausweismappe-tile .am-tile-text h3 { margin: 0 0 4px 0; }
.ausweismappe-tile .am-tile-text p { margin: 0; max-width: 560px; }
.ausweismappe-tile .am-tile-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}
.ausweismappe-tile .btn-row { margin-top: 0; }

/* Segmented-Control (scope-Auswahl). */
.segmented {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}
.segmented .seg-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 6px 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--trans), color var(--trans);
}
.segmented .seg-btn + .seg-btn { border-left: 1px solid var(--border-strong); }
.segmented .seg-btn:hover { background: var(--surface-3); }
.segmented .seg-btn.active { background: var(--accent); color: #fff; }

/* Datei-Upload-Bereiche im Waffen-Bearbeiten-Popup (Galerie-Foto + Beleg) */
.firearm-uploads {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.firearm-uploads .upload-label { font-weight: 600; margin-bottom: 4px; display: block; }
.firearm-uploads .upload-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.firearm-uploads .upload-hint { font-size: var(--fs-xs); }

/* Changelog-Timeline */
.changelog { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.changelog-entry {
  border-left: 3px solid var(--accent-soft);
  padding: 2px 0 2px 16px;
}
.changelog-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.changelog-list { margin: 0; padding-left: 18px; }
.changelog-list li { font-size: var(--fs-sm); color: var(--text-2); margin: 2px 0; }

/* ===========================================================================
   Einstellungen-Tab: Theme-Auswahl (Swatch-Karten)
   =========================================================================== */
.settings-block { margin-bottom: 28px; max-width: 760px; }
.settings-h3 { font-size: var(--fs-lg); margin: 0 0 6px; color: var(--text); }
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.theme-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  text-align: left;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}
.theme-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.theme-card.active { border-color: var(--accent); }
.theme-swatch {
  display: flex;
  height: 36px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.theme-swatch-color { flex: 1; }
.theme-card-name { font-weight: 600; font-size: var(--fs-sm); }
.theme-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-fg);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
:root[data-theme="light"] .theme-card-check { color: #fff; }
.theme-card.active .theme-card-check { display: flex; }

/* ===========================================================================
   Munition: Preis-Check-Leiste (Schweiz)
   =========================================================================== */
.muni-stock-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.muni-stock-main { flex: 1 1 560px; min-width: 0; }
.muni-pricecheck { flex: 1 1 300px; min-width: 260px; }
.pricecheck-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
}
.pricecheck-title { margin: 0 0 4px; font-size: var(--fs-lg); color: var(--text); }
.pricecheck-hint { margin: 0 0 12px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; }
.pricecheck-list { display: flex; flex-direction: column; }
.pricecheck-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}
.pricecheck-row:first-child { border-top: none; }
.pricecheck-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pricecheck-row.is-low {
  background: var(--danger-soft);
  border-top-color: transparent;
  margin: 2px -10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
}
.pricecheck-row.is-low + .pricecheck-row { border-top-color: transparent; }
.pricecheck-cal { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.pricecheck-cal strong { color: var(--text); }
.pricecheck-row.is-low .pricecheck-cal strong { color: var(--danger-strong); }
.pricecheck-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; flex-wrap: wrap; }
.pricecheck-web { font-size: var(--fs-xs); color: var(--accent-fg); text-decoration: none; }
.pricecheck-web:hover { text-decoration: underline; }

/* Knapp-Sektion: hervorgehoben, immer sichtbar. */
.pricecheck-low { margin-bottom: 6px; }
.pricecheck-low-head {
  display: flex; align-items: center; gap: 7px;
  font-size: var(--fs-xs); font-weight: 600; color: var(--danger-strong);
  margin-bottom: 2px;
}
/* „Alle Kaliber"-Panel: eingeklappt, damit der Preis-Check klein bleibt. */
.pricecheck-more { border-top: 1px solid var(--border); }
.pricecheck-more > summary {
  cursor: pointer; padding: 8px 0 6px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text);
  list-style: revert;
}
.pricecheck-more-body { display: flex; flex-direction: column; }
/* Hinweis-Panel kompakt (überschreibt den unteren Rand des Standard-Textes). */
.pricecheck-info { margin-bottom: 12px; }
.pricecheck-info .pricecheck-hint { margin: 0; padding: 10px; }

/* Präferenz-Karte (aufklappbar) */
.ammo-pref { margin: 0 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.ammo-pref > summary {
  cursor: pointer;
  padding: 8px 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  list-style: revert;
}
.ammo-pref[open] > summary { border-bottom: 1px solid var(--border); }
.ammo-pref-body { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.ammo-pref-field { display: flex; flex-direction: column; gap: 3px; font-size: var(--fs-xs); color: var(--muted); }
.ammo-pref-field input,
.ammo-pref-field select {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-sm);
}
/* Kaliber-Wähler oben leicht abgesetzt (steuert, welches Kaliber bearbeitet wird). */
.ammo-pref-cal { padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.ammo-pref-cal select { font-weight: 600; }
/* Toggle „Nur bevorzugte Marken anzeigen" */
.ammo-pref-onlypref {
  display: flex; align-items: center; gap: 7px;
  font-size: var(--fs-xs); color: var(--text);
  cursor: pointer; margin-top: 2px;
}
.ammo-pref-onlypref input { width: auto; margin: 0; cursor: pointer; }
.ammo-pref-body button { align-self: flex-start; margin-top: 2px; }
/* „Ausblenden"-Button unter einer geladenen Preisliste */
.ammo-clear { align-self: flex-start; margin-top: 4px; }

/* Live-Preise pro Kaliber */
.ammo-live-badge { background: var(--accent-soft, #e0f0ff); color: var(--accent-fg); }
.ammo-live { display: flex; flex-direction: column; gap: 6px; }
.ammo-live-status { font-size: var(--fs-xs); margin: 2px 0 0; line-height: 1.4; }
.ammo-offers { display: flex; flex-direction: column; gap: 6px; }
.ammo-offer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--fs-xs);
}
.ammo-offer.is-pref { border-color: var(--accent-fg); background: var(--accent-soft, #eef6ff); }
.ammo-offer-main { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.ammo-offer-price { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; white-space: nowrap; }
.ammo-shop-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-2xs);
  font-weight: 600;
  background: var(--border);
  color: var(--text);
}
.ammo-shop-joray { background: #dfe9d8; color: #33501f; }
.ammo-shop-armatum { background: #d8e2ef; color: #22405f; }
.ammo-shop-gruenel { background: #efe4d3; color: #6a4a1c; }
.ammo-shop-munitionch { background: #e6dcef; color: #4a2f66; }
.ammo-star { color: #e0a92e; }
.ammo-man { font-weight: 600; color: var(--text); }
.ammo-grain { color: var(--muted); }
.ammo-grain.is-pref { color: var(--accent-fg); font-weight: 700; }
.ammo-prod { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ammo-price { font-weight: 700; color: var(--text); }
.ammo-ppr { color: var(--muted); }
.ammo-link { color: var(--accent-fg); text-decoration: none; font-weight: 700; }
.ammo-link:hover { text-decoration: underline; }
.pricecheck-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
}
.pricecheck-fallback a { color: var(--accent-fg); text-decoration: none; }
.pricecheck-fallback a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------------
   Event buchen + Readiness-Check ("startklar?")
   --------------------------------------------------------------------------- */
/* "Buchen"-Button in der Events-Liste */
.ev-book-btn { margin-top: 6px; }

/* Booking-Modal: Event-Kopf */
.booking-event-head {
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.booking-event-title { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.booking-event-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--fs-xs); }

/* Readiness-Prüfliste (Ampel) */
.rc-box { min-height: 32px; }
.rc-summary { margin-bottom: 8px; }
.rc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rc-list-compact { margin-top: 8px; }
.rc-item { display: flex; align-items: flex-start; gap: 9px; }
.rc-dot {
  flex: 0 0 auto;
  width: 11px; height: 11px;
  border-radius: 50%;
  margin-top: 3px;
  box-shadow: 0 0 0 3px rgba(0,0,0,.04);
}
.rc-dot-ok   { background: var(--success-strong); }
.rc-dot-warn { background: var(--warn-strong); }
.rc-dot-fail { background: var(--danger); }
.rc-body { display: flex; flex-direction: column; min-width: 0; }
.rc-label { font-weight: 600; color: var(--text); font-size: var(--fs-sm); }
.rc-detail { font-size: var(--fs-xs); }

/* "Meine Buchungen" (Aktivitäten-Tab) */
.bookings-section { margin-bottom: 8px; }
.booking-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.booking-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.booking-card-main { min-width: 0; flex: 1 1 auto; }
.booking-card-title { font-weight: 700; color: var(--text); margin-bottom: 5px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.booking-card-title a { color: var(--text); text-decoration: none; }
.booking-card-title a:hover { text-decoration: underline; }
.booking-card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--fs-xs); }
.booking-card-notes { margin-top: 7px; white-space: pre-wrap; font-size: var(--fs-xs); }
.booking-card-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex: 0 0 auto; }
.booking-status-select { min-width: 168px; }
@media (max-width: 640px) {
  .booking-card { flex-direction: column; }
  .booking-card-actions { flex-direction: row; align-items: center; align-self: stretch; }
  .booking-status-select { flex: 1 1 auto; }
}

/* ===========================================================================
   Visueller Politur-Durchgang (v2.20) – dezente, rein additive Verfeinerungen.
   Alle Farben über CSS-Variablen -> alle Themes bleiben unverändert intakt.
   =========================================================================== */

/* Taktiles Klick-Feedback + weichere Übergänge auf Buttons/Icon-Buttons */
.btn, .icon-btn {
  transition: background var(--trans), border-color var(--trans), color var(--trans),
              box-shadow var(--trans), transform var(--trans);
}
.btn:active, .icon-btn:active { transform: translateY(1px); }
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); }

/* Klickbare Karten heben sich beim Hover leicht (Start-/Dashboard-Kacheln) */
.card { transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans); }
.card[onclick]:hover,
.card[role="button"]:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Eingabefelder: einheitlicher, weicher Fokus-Übergang */
input, select, textarea { transition: border-color var(--trans), box-shadow var(--trans), background var(--trans); }

/* Dezente, themensichere Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-sm); border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: content-box; }

/* Modal-Auftritt: sanftes Einblenden statt hartem Erscheinen */
.modal { animation: modal-in .16s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(6px) scale(.99); } to { opacity: 1; transform: none; } }

/* ---- Einstellungen: App-Icon ---- */
.branding-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.branding-preview {
  width: 72px; height: 72px; object-fit: contain; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2); padding: 6px; flex: 0 0 auto;
}
.branding-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Icon-Vorlagen-Auswahl (alle gleich gross) */
.branding-templates { display: flex; flex-wrap: wrap; gap: 10px; }
.branding-template { width: 64px; height: 64px; padding: 3px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; flex: 0 0 auto;
  transition: border-color var(--trans), transform var(--trans); }
.branding-template img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; display: block; }
.branding-template:hover { transform: translateY(-2px); border-color: var(--accent); }
.branding-template.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

/* ---- Trainings-Kalender (Aktivitäten) ---- */
.training-calendar { margin-bottom: 22px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-title { font-weight: 700; font-size: var(--fs-lg); min-width: 150px; text-align: center; text-transform: capitalize; }
.cal-legends { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.cal-legend { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); color: var(--muted); }
.cal-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal-weekdays > div { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-cell {
  min-height: 84px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); padding: 6px; display: flex; flex-direction: column; gap: 3px;
  cursor: pointer; transition: border-color var(--trans), background var(--trans);
}
.cal-cell:hover { border-color: var(--accent); }
.cal-cell.cal-empty { background: transparent; border: none; cursor: default; }
.cal-cell.is-today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-day { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.cal-cell.is-today .cal-day { color: var(--accent-fg); }
.cal-chip {
  display: block; width: 100%; text-align: left; font-size: var(--fs-2xs); font-weight: 600;
  color: #fff; background: var(--c); border: none; border-radius: 5px; padding: 2px 6px;
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-chip.is-planned { background: transparent; color: var(--text); border: 1px dashed var(--c); }
.cal-more { font-size: var(--fs-xs); color: var(--muted); padding-left: 2px; }
.row-planned td { opacity: .85; }
@media (max-width: 640px) {
  .cal-cell { min-height: 60px; padding: 4px; }
  .cal-chip { font-size: var(--fs-3xs); padding: 1px 4px; }
  .cal-legends { display: none; }
}

/* ===========================================================================
   Tactical Games (TTG): Readiness, Standards, Benchmarks, Gear-Check
   =========================================================================== */
.ttg-readiness-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.ttg-readiness-cards .stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat-card .stat-label { font-size: var(--fs-sm); color: var(--muted); }
.stat-card .stat-value { font-size: 1.7rem; font-weight: 700; color: var(--text); margin-top: 2px; }
.ttg-bar { height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.ttg-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; }

.ttg-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; padding: 6px 16px; }
.ttg-panel > summary { cursor: pointer; list-style: none; padding: 10px 0; font-weight: 600; }
.ttg-panel > summary::-webkit-details-marker { display: none; }
.ttg-panel-title { font-size: var(--fs-md); color: var(--text); }
.ttg-panel > summary::before { content: "▸"; color: var(--muted); margin-right: 8px; }
.ttg-panel[open] > summary::before { content: "▾"; }

.ttg-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; padding: 8px 0 14px; }
.ttg-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.ttg-card h4 { margin: 0 0 8px; font-size: var(--fs-base); color: var(--text); }
.ttg-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.ttg-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 3px 6px; border-bottom: 1px solid var(--border); }
.ttg-table td { padding: 4px 6px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; }
.ttg-table td:first-child { color: var(--muted); }
.ttg-note { background: var(--warn-soft); border-radius: var(--radius-sm); padding: 8px 10px; font-size: var(--fs-sm); color: var(--text); }

.ttg-cat-title { margin: 14px 0 8px; font-size: var(--fs-base); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ttg-bench-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ttg-bench-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; gap: 5px; }
.ttg-bench-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ttg-bench-name { font-weight: 600; color: var(--text); }
.ttg-bench-best { font-size: var(--fs-sm); color: var(--text); }
.ttg-bench-actions { display: flex; gap: 6px; margin-top: 6px; }
.ttg-badge { font-size: var(--fs-2xs); padding: 2px 7px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.ttg-badge.ok { background: var(--success-soft); color: var(--success-strong); }
.ttg-badge.warn { background: var(--warn-soft); color: var(--warn-strong); }

.ttg-gear-summary { font-weight: 700; padding: 10px 14px; border-radius: var(--radius-sm); margin: 8px 0; }
.ttg-gear-summary.ok { background: var(--success-soft); color: var(--success-strong); }
.ttg-gear-summary.warn { background: var(--warn-soft); color: var(--warn-strong); }
.ttg-gear-list { list-style: none; margin: 0; padding: 0; }
.ttg-gear-list li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.ttg-gear-ico { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-size: var(--fs-xs); }
.ttg-gear-list li.ok .ttg-gear-ico { background: var(--success-soft); color: var(--success-strong); }
.ttg-gear-list li.no .ttg-gear-ico { background: var(--danger-soft); color: var(--danger-strong); }
.ttg-gear-label { color: var(--text); }
.ttg-gear-missing { margin-top: 12px; background: var(--danger-soft); border-radius: var(--radius-sm); padding: 10px 12px; font-size: var(--fs-sm); color: var(--text); }

/* Offizielle TTG-Ausrüstungsliste (Referenz) */
.ttg-gearlist { list-style: none; margin: 0; padding: 0; }
.ttg-gearlist li { padding: 5px 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text); }
.ttg-gearlist li:last-child { border-bottom: none; }
.ttg-req-badge { display: inline-block; font-size: var(--fs-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 1px 6px; border-radius: 20px; background: var(--danger-soft); color: var(--danger-strong); margin-right: 4px; vertical-align: middle; }
.ttg-req-badge.sug { background: var(--surface-3); color: var(--muted); }
@media (max-width: 640px) { .ttg-bench-grid { grid-template-columns: 1fr; } }

/* Wetter-Box in der Session-Detailansicht (Open-Meteo) */
.session-weather-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--info-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 12px; margin: 10px 0 4px; font-size: var(--fs-sm); color: var(--text); }
.session-weather-box .sw-ico { font-size: 1.4rem; }
.session-weather-box .sw-place { margin-left: auto; }


/* ===========================================================================
   Multiuser v1: Login-Seite (login.html) + Benutzer-Block in der Sidebar.
   Nur additive Klassen, ausschliesslich bestehende Variablen.
   =========================================================================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.login-box { max-width: 380px; }
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.login-logo { width: 64px; height: 64px; object-fit: contain; border-radius: var(--radius-lg); }
.login-submit { width: 100%; }
.login-error {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger-strong);
  font-size: var(--fs-sm);
}
.login-hint { font-size: var(--fs-xs); text-align: center; margin: 14px 0 0; }

.user-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  min-width: 0;
}
.user-block-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
}
.user-block.hidden { display: none; }

/* Admin-only-Elemente (z.B. Tab "Benutzer"): standardmässig aus, app.js setzt
   .is-admin nur für Admins. Die Rechte prüft ohnehin das Backend. */
[data-admin-only]:not(.is-admin) { display: none !important; }
.user-admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.user-admin-actions .btn { white-space: nowrap; }

/* Einladungslink + Freigabe (Tab "Benutzer", register.html) */
.pending-box {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--warn);
  border-radius: var(--radius);
  background: var(--warn-soft);
}
.pending-box .section-title { margin-top: 0; }
.invite-section-title { margin-top: 28px; }
.invite-link-input { width: 100%; font-family: monospace; font-size: var(--fs-sm); }
.register-intro { font-size: var(--fs-sm); margin: 0 0 6px; }
.register-done { text-align: center; }

/* Wartungs-Chips im Kalender sind reine Anzeige (Tab "Wartung" ausgeblendet). */
.cal-chip.cal-chip-maint { cursor: default; }

/* ===========================================================================
   Multiuser v1: Club-Aktivitäten (Tab "Club Aktivitäten" + Block auf Start).
   Nur additive Klassen, ausschliesslich bestehende Variablen.
   =========================================================================== */
.club-filter { align-items: center; }
.club-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-sm);
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
}
.filter-bar .club-check { text-transform: none; letter-spacing: 0; margin: 0; font-size: var(--fs-sm); color: var(--text-2); }
.filter-bar .club-check input,
.modal-form .club-check input { width: auto; min-width: 0; padding: 0; margin: 0; accent-color: var(--accent); }
.modal-form .club-check { margin: 14px 0 0; }
.club-hint { font-size: var(--fs-xs); margin: 6px 0 0; }
.club-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .club-form-row { grid-template-columns: 1fr; } }

.club-list { display: grid; gap: 14px; }
.club-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; }
.club-card.is-recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
}
.club-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.club-card-when { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.club-card-title { font-size: var(--fs-lg); font-weight: 700; color: var(--text); }
.club-card-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-sm); color: var(--text-2); }
.club-card-desc { font-size: var(--fs-sm); color: var(--text-2); white-space: pre-wrap; }
.club-card-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.club-card-edit { display: inline-flex; gap: 6px; margin-left: auto; }
.club-card-by { font-size: var(--fs-xs); }
.club-link {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--accent-fg); font: inherit; text-decoration: underline;
}
.participation-btn.active,
.participation-btn.active:hover { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.club-participants summary { cursor: pointer; font-size: var(--fs-sm); color: var(--text-2); }
.club-participants ul { margin: 6px 0 0; padding-left: 18px; font-size: var(--fs-sm); }

.club-start { margin-bottom: 18px; }
.club-start .section-title { margin-bottom: 4px; }
.club-start-row { margin-top: 10px; }
.club-start-row .settings-h3 { margin: 0 0 6px; }
.club-start-empty { font-size: var(--fs-sm); margin: 0; }
.club-mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.club-mini {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color var(--trans);
}
.club-mini:hover { border-color: var(--border-strong); }
.club-mini.is-recommended { border-color: var(--accent); background: var(--accent-soft); }
.club-mini-when { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; min-width: 150px; }
.club-mini-title { font-weight: 600; color: var(--text); flex: 1; min-width: 140px; }

/* Neues quadratisches App-Icon (TDT): leicht gerundet wie ein App-Icon. */
.sidebar-head .brand-icon { border-radius: var(--radius-lg); object-fit: cover; }

/* Club-Aktivitäten: Serie (weitere Termine) im Dialog */
.club-series { margin-top: 6px; }
.club-series-rows { display: grid; gap: 6px; margin-bottom: 8px; }
.club-series-row { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.6fr auto; gap: 6px; align-items: center; }
.modal-form .club-series-row input, .modal-form .club-series-row select { padding: 7px 8px; font-size: var(--fs-sm); }
@media (max-width: 520px) { .club-series-row { grid-template-columns: 1fr 1fr; } }
.participation-btn:disabled { opacity: .45; cursor: not-allowed; }
.club-mini-where { font-weight: 400; color: var(--muted); font-size: var(--fs-sm); margin-left: 4px; }

/* Login: Sprachumschalter IT | DE */
.login-box { position: relative; }
.login-lang { position: absolute; top: 12px; right: 12px; display: inline-flex; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 2px; }
.login-lang-btn { border: none; background: transparent; color: var(--muted); font-weight: 700;
  font-size: var(--fs-xs); padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.login-lang-btn.active { background: var(--accent); color: #FFFFFF; }

/* Start: Club-Block (v3.2.1) – Chips, Empfohlen-Karten, Monatskalender */
.club-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.club-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font: inherit;
  font-size: var(--fs-sm); color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-pill); cursor: pointer; }
.club-chip:hover { border-color: var(--border-strong); }
.club-chip > span:first-child { color: var(--muted); white-space: nowrap; }
.club-chip { max-width: 100%; text-align: left; flex-wrap: wrap; }
.club-chip-title { font-weight: 600; }
.club-rec-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.club-rec-card { flex: 0 0 210px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px;
  text-align: left; font: inherit; color: var(--text); padding: 10px 12px; cursor: pointer;
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-sm); }
.club-rec-card:hover { border-color: var(--accent-strong); }
.club-rec-when, .club-rec-where { font-size: var(--fs-xs); color: var(--muted); }
.club-rec-when { font-weight: 600; }
.club-rec-title { font-weight: 600; line-height: 1.25; }
.club-rec-bar { display: block; height: 5px; border-radius: 3px; background: var(--surface-3); margin-top: 2px; overflow: hidden; }
.club-rec-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.club-rec-bar.is-full i { background: var(--warn); }
.club-rec-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); }
.club-cal-wrap { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .club-cal-wrap { grid-template-columns: minmax(0, 1fr); } }
.club-cal-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; margin-bottom: 6px; text-transform: capitalize; }
.club-cal-nav { font: inherit; font-size: 1.1rem; line-height: 1; width: 28px; height: 28px; cursor: pointer;
  color: var(--text); background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.club-cal-nav:disabled { opacity: .35; cursor: default; }
.club-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.club-cal-wd { font-size: var(--fs-xs); color: var(--muted); padding: 2px 0; text-transform: capitalize; }
.club-cal-day { position: relative; font: inherit; font-size: var(--fs-sm); padding: 6px 0; border-radius: 6px;
  border: 1px solid transparent; background: transparent; color: var(--text); }
.club-cal-day.is-past { color: var(--muted); opacity: .6; }
.club-cal-day.is-today { border-color: var(--border-strong); }
.club-cal-day.has-ev { background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; cursor: pointer; }
.club-cal-day.has-ev:hover { border-color: var(--accent); }
.club-cal-day.is-mine { box-shadow: inset 0 0 0 2px var(--ok); }
.club-cal-day.is-selected { background: var(--accent); color: #fff; }
.club-cal-day small { position: absolute; top: 1px; right: 3px; font-size: 9px; font-weight: 700; }
.club-cal-legend { display: flex; gap: 12px; margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }
.club-cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.club-cal-legend .lg-ev { background: var(--accent-soft); border: 1px solid var(--accent); }
.club-cal-legend .lg-mine { box-shadow: inset 0 0 0 2px var(--ok); }
.club-cal-list { display: grid; gap: 6px; }
.club-cal-list-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: var(--fs-sm); }
.club-cal-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; text-align: left; font: inherit; color: var(--text);
  padding: 8px 10px; cursor: pointer; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.club-cal-row:hover { border-color: var(--border-strong); }
.club-cal-row.is-recommended { border-color: var(--accent); }
.club-cal-row-when { display: flex; flex-direction: column; min-width: 78px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.club-cal-row-title { flex: 1 1 160px; min-width: 0; font-weight: 600; display: flex; flex-direction: column; }
.club-cal-row small { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.club-cal-row-badges { display: inline-flex; gap: 6px; margin-left: auto; }

/* Club Aktivitäten (v3.2.1): Filter-Chips, Kalender links, schlanke Zeilen */
.club-fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.club-fbar-spacer { flex: 1; }
.club-fchip { font: inherit; font-size: var(--fs-sm); padding: 5px 12px; border-radius: 999px; cursor: pointer;
  color: var(--text-2); background: transparent; border: 1px solid var(--border-strong); }
.club-fchip:hover { border-color: var(--accent); }
.club-fchip.on { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent); font-weight: 600; }
.club-more-filter { margin-bottom: 12px; }
.club-more-filter[hidden] { display: none; }
.club-tab-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
/* v3.18.0/v3.19.1: Ansichten – Kalender ist jetzt der grosse Monatsraster wie in Matches,
   der kleine Seitenkalender entfällt im Tab Club Aktivitäten */
.club-tab-grid.club-cal-wrap { grid-template-columns: minmax(0, 1fr); }
.club-tab-grid.club-cal-wrap > .club-cal { display: none !important; }
.evcal-it.ct-training { --stripe: var(--accent); } .evcal-it.ct-match { --stripe: var(--ok); } .evcal-it.ct-anlass { --stripe: var(--warn); }
.evcal-it.is-mine { font-weight: 700; box-shadow: inset 2px 0 0 var(--ok); }
.evcal-cell.is-mine .evcal-d { color: var(--ok); }
.evcal-legend { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 14px; font-size: var(--fs-xs); color: var(--muted); }
.evcal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.evcal-legend .lg-ct-training { background: var(--accent); } .evcal-legend .lg-ct-match { background: var(--ok); } .evcal-legend .lg-ct-anlass { background: var(--warn); }
.club-title { justify-content: flex-start; }
.club-title .seg { margin-left: auto; }
.club-tab-grid > .club-cal { position: sticky; top: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--card-border, var(--border)); border-radius: var(--radius); }
@media (max-width: 860px) { .club-tab-grid { grid-template-columns: minmax(0, 1fr); } .club-tab-grid > .club-cal { position: static; } }
.club-tab-grid .club-list { gap: 6px; }
.club-month-head { display: flex; align-items: baseline; gap: 6px; font-size: var(--fs-sm); color: var(--muted); margin: 6px 0 2px; }
.club-month-head:first-child { margin-top: 0; }
.club-month-name { font-weight: 700; color: var(--text); text-transform: capitalize; }
.club-month-head .club-link { margin-left: auto; }
.club-row { background: var(--surface); border: 1px solid var(--card-border, var(--border)); border-radius: var(--radius-sm); }
.club-row.is-recommended { border-color: var(--accent); }
.club-row-main { display: flex; align-items: center; gap: 12px; padding: 8px 12px; cursor: pointer; flex-wrap: wrap; }
.club-row-date { width: 42px; text-align: center; line-height: 1.1; flex: none; }
.club-row-date small { display: block; font-size: var(--fs-xs); color: var(--muted); text-transform: capitalize; }
.club-row-date b { font-size: 1.25rem; }
.club-row-body { flex: 1 1 220px; min-width: 0; }
.club-row-title { font-weight: 600; color: var(--text); }
.club-row-title .badge { margin-left: 4px; vertical-align: 1px; }
.club-row-sub { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.club-row-sub .club-link { font-size: inherit; }
.club-row-side { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.club-row-bar { width: 56px; margin: 0; }
.club-row-count { font-size: var(--fs-xs); color: var(--muted); min-width: 30px; }
.club-sendit { font: inherit; font-size: var(--fs-sm); font-weight: 700; padding: 5px 14px; border-radius: 999px; cursor: pointer;
  color: var(--accent-strong); background: transparent; border: 1px solid var(--accent); white-space: nowrap; min-width: 84px; }
.club-sendit:hover { background: var(--accent-soft); }
.club-sendit.is-going { color: var(--success-strong); background: var(--success-soft); border-color: var(--ok); }
.club-sendit.is-full { color: var(--warn-strong); background: var(--warn-soft); border-color: var(--warn); cursor: not-allowed; }
.club-more { position: relative; }
.club-more summary { list-style: none; cursor: pointer; padding: 2px 8px; border-radius: var(--radius-sm); color: var(--muted); font-size: 1.1rem; }
.club-more summary::-webkit-details-marker { display: none; }
.club-more summary:hover { background: var(--surface-2); }
.club-more-menu { position: absolute; right: 0; top: 100%; z-index: 20; display: grid; min-width: 130px; padding: 4px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.club-more-menu button { font: inherit; font-size: var(--fs-sm); text-align: left; padding: 6px 10px; border: 0; background: transparent; color: var(--text); border-radius: 6px; cursor: pointer; }
.club-more-menu button:hover { background: var(--surface-2); }
.club-more-menu button.danger { color: var(--danger); }
.club-row-details { display: none; padding: 0 12px 10px 66px; font-size: var(--fs-sm); color: var(--text-2); }
.club-row.is-open .club-row-details { display: grid; gap: 6px; }
.club-row-people strong { color: var(--text); }
@media (max-width: 520px) { .club-row-details { padding-left: 12px; } .club-row-side { width: 100%; justify-content: flex-end; } }
/* Kalender-/Teilen-Menü (📅) */
.cal-menu summary { font-size: var(--fs-md); padding: 2px 6px; }
.cal-menu .club-more-menu { min-width: 230px; }
.cal-menu .club-more-menu a { display: block; font-size: var(--fs-sm); padding: 6px 10px; border-radius: 6px; color: var(--text); text-decoration: none; }
.cal-menu .club-more-menu a:hover { background: var(--surface-2); }
/* Kalender-Abo + 🔔 (v3.3.1) */
.ev-watch { font: inherit; font-size: var(--fs-xs); font-weight: 600; line-height: 1; padding: 5px 9px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius-pill); }
.ev-watch:hover { border-color: var(--border-strong); color: var(--text); }
.ev-watch.on { filter: none; opacity: 1; background: var(--warn-soft); border-color: var(--warn); }
.club-start-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.cal-sub p { margin: 0 0 10px; font-size: var(--fs-sm); }
.cal-sub-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.cal-sub-link { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.cal-sub-link input { flex: 1; min-width: 0; font-size: var(--fs-xs); }
/* Trainingslog (v3.3.1) */
.tl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tl-stat { background: var(--surface); border: 1px solid var(--card-border, var(--border)); border-radius: var(--radius-sm); padding: 10px 14px; }
.tl-stat span { display: block; font-size: var(--fs-xs); color: var(--muted); }
.tl-stat b { font-size: 1.4rem; }
.tl-open { margin-bottom: 16px; }
.tl-open-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 10px; margin-bottom: 6px;
  border: 1px solid var(--border); border-left: 3px solid #0FA3B1; border-radius: 0; background: var(--surface); }
.tl-open-when { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); min-width: 90px; }
.tl-open-title { flex: 1 1 200px; font-weight: 600; }
.tl-open-title small { font-weight: 400; color: var(--muted); }
/* Trainingslog als Karten (v3.4) */
.tl-filter select { width: auto; min-width: 140px; }
.tl-list { display: grid; gap: 8px; }
.tl-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--card-border, var(--border)); border-radius: var(--radius-sm); }
.tl-card:hover { border-color: var(--border-strong); }
.tl-card.is-planned { border-style: dashed; }
.tl-card .club-row-date small:last-child { text-transform: capitalize; }
.tl-card-body { flex: 1; min-width: 0; }
.tl-card-title { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.tl-card-sub { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.tl-card-side { display: flex; align-items: center; gap: 10px; }
.tl-card-shots { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.tl-card-shots small { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 520px) { .tl-card-side .actions-cell { display: none; } }
/* Infos: Link-Karten (v3.4) */
.info-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 4px 0 18px; }
.info-link-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: var(--fs-sm); }
/* Infos: IPSC-Linksammlung (v3.7.3) */
.ipsc-dir { margin: 4px 0 22px; }
.ipsc-lead { margin: 4px 0 12px; font-size: var(--fs-sm); max-width: 65ch; }
.ipsc-fav-title { margin: 0 0 8px; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ipsc-favs { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ipsc-fav { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px 4px 4px;
  border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text);
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none; transition: border-color var(--trans), background var(--trans); }
.ipsc-fav:hover { border-color: var(--accent); background: var(--accent-soft); }
.ipsc-fav:active { transform: translateY(1px); }
.ipsc-fav-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text-2); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.ipsc-groups { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.ipsc-group + .ipsc-group { border-top: 1px solid var(--border); }
.ipsc-group summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; cursor: pointer;
  list-style: none; font-weight: 600; }
.ipsc-group summary::-webkit-details-marker { display: none; }
.ipsc-group summary::after { content: ""; width: 7px; height: 7px; margin-left: 4px; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform var(--trans); }
.ipsc-group[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.ipsc-group summary:hover { background: var(--surface-2); }
.ipsc-code { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 4px; border-radius: 4px;
  background: var(--surface-2); color: var(--text-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; }
.ipsc-gname { flex: 1; }
.ipsc-gcount { color: var(--muted); font-size: var(--fs-xs); font-weight: 500; font-variant-numeric: tabular-nums; }
.ipsc-links { list-style: none; margin: 0; padding: 0 0 6px; }
.ipsc-links a { display: grid; grid-template-columns: minmax(150px, 220px) 1fr auto; align-items: baseline; gap: 2px 14px;
  padding: 9px 12px 9px 52px; color: var(--text); text-decoration: none; }
.ipsc-links a:hover { background: var(--surface-2); }
.ipsc-links a:hover .ipsc-ln { color: var(--accent); }
.ipsc-ln { font-weight: 600; font-size: var(--fs-sm); }
.ipsc-ld { color: var(--muted); font-size: var(--fs-sm); }
.ipsc-arrow { color: var(--muted); font-size: var(--fs-sm); }
.ipsc-src { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--accent-soft);
  color: var(--accent); font-size: var(--fs-3xs); font-weight: 700; letter-spacing: .03em; vertical-align: 1px; }
@media (max-width: 640px) {
  .ipsc-links a { grid-template-columns: 1fr auto; padding-left: 12px; }
  .ipsc-ld { grid-column: 1; grid-row: 2; }
  .ipsc-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .ipsc-favs { flex-wrap: nowrap; overflow-x: auto; margin-left: -14px; margin-right: -14px; padding: 0 14px 4px; scrollbar-width: none; }
  .ipsc-favs::-webkit-scrollbar { display: none; }
  .ipsc-fav { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .ipsc-group summary::after { transition: none; } }
/* My Infos als Karten (v3.4) */
.mi-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--card-border, var(--border)); border-radius: var(--radius-sm); }
.mi-card:hover { border-color: var(--border-strong); }
.mi-card-body { flex: 1 1 200px; min-width: 0; }
.mi-card-side { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.mi-until { display: flex; flex-direction: column; align-items: flex-end; font-size: var(--fs-sm); line-height: 1.15; }
.mi-until small { font-size: var(--fs-xs); color: var(--muted); }

/* ===========================================================================
   Handy-Paket (v3.4): untere Navigation, Hero-Karte, Matches als Karten
   =========================================================================== */
.bottom-nav { display: none; }
@media (max-width: 900px) {
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); box-sizing: border-box;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-top: 1px solid var(--border);
  }
  .bottom-nav button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 48px; font: inherit; font-size: var(--fs-2xs); font-weight: 600; color: var(--muted);
    background: transparent; border: 0; border-radius: var(--radius-lg); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav button svg { width: 22px; height: 22px; }
  .bottom-nav button.active { color: var(--accent-fg); }
  :root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .bottom-nav button.active { color: var(--text); }
  :root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .bottom-nav button.active svg { color: var(--tdt-red); }
  .bottom-nav button:active { transform: scale(.94); }
  .content { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .fab { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
}

/* Hero: nächstes Training */
.club-hero { margin: 8px 0 12px; padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid var(--accent); }
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .club-hero { border-image: none; box-shadow: inset 4px 0 0 var(--tdt-red); }
.club-hero-k { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.club-hero-k b { color: var(--text); }
.club-hero-when { font-size: 1.35rem; font-weight: 700; color: var(--text); margin: 2px 0; }
.club-hero-title { font-weight: 600; color: var(--text); }
.club-hero-title span { font-weight: 400; color: var(--muted); font-size: var(--fs-sm); }
.club-hero-bar { height: 7px; margin: 10px 0 8px; }
.club-hero-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--muted); }
.club-hero-foot .club-sendit { margin-left: auto; min-height: 40px; padding: 6px 18px; }

/* Start: Anmelde-Öffnungen */
.start-openings { margin-top: 18px; }
.so-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); }
.so-row:first-of-type { border-top: 0; }
.so-flag { font-size: 1.3rem; width: 28px; text-align: center; }
.so-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.so-main a { font-weight: 600; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-main small { font-size: var(--fs-xs); color: var(--muted); }
.so-when { white-space: nowrap; }

/* Flaggen */
.flag { font-size: 1.25rem; line-height: 1; }
.flag-code { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }

/* Matches als Karten am Handy */
@media (max-width: 640px) {
  .ev-row { display: grid !important; grid-template-columns: 34px 1fr; grid-template-areas:
      "flag main" "date date" "status status"; gap: 4px 10px; padding: 12px !important;
    border: 1px solid var(--card-border, var(--border)); border-radius: var(--radius-lg); margin-bottom: 8px; background: var(--surface); }
  .ev-row .ev-thumb { display: none; }
  .ev-row .ev-country { grid-area: flag; align-self: start; padding-top: 2px; }
  .ev-row .ev-main { grid-area: main; min-width: 0; }
  .ev-row .ev-title { font-size: var(--fs-md); line-height: 1.3; word-break: normal; overflow-wrap: anywhere; }
  .ev-row .ev-date { grid-area: date; width: auto !important; font-size: var(--fs-xs); color: var(--muted); padding-left: 44px; }
  .ev-row .ev-facts { display: none; }
  .ev-watch, .cal-menu summary { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .club-sendit { min-height: 40px; }
  .club-more summary { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 640px) {
  .so-row { display: grid; grid-template-columns: 30px 1fr auto; grid-template-areas: "flag main bell" "flag when bell"; gap: 2px 8px; }
  .so-flag { grid-area: flag; align-self: start; }
  .so-main { grid-area: main; }
  .so-main a { white-space: normal; }
  .so-when { grid-area: when; justify-self: start; }
  .so-row .ev-watch { grid-area: bell; }
}

/* ===========================================================================
   Salite-Stil (v3.5) für die TDT-Familien: Kopf mit Farbverlauf, Kennzahlen,
   ◇-Labels, blasse Rangziffern, IPSC-Zielscheibe als Wasserzeichen.
   =========================================================================== */
.start-head { margin: 4px 0 18px; }
/* Start-Figur neben dem Titel (v3.17.0): freigestelltes Mitglieder-Foto
   data/branding/start-hero.png, zielt auf die IPSC-Scheiben (Schusslinie per JS
   auf ein Einschussloch ausgerichtet, siehe layoutStartShot). Nur wenn die Datei
   existiert; am Handy ausgeblendet (kein Platz neben dem Titel). */
.start-head { z-index: 2; }
.start-head:has(.start-photo:not([hidden])) { display: grid; grid-template-columns: auto auto 1fr; align-content: end; min-height: 128px; }
.start-head:has(.start-photo:not([hidden])) > :not(.start-photo) { grid-column: 1; justify-self: start; }
.start-photo { grid-column: 2; grid-row: 1 / span 2; align-self: end; position: relative; margin: 0 0 -16px 36px; height: 140px; }
.start-photo img { display: block; height: 100%; width: auto; filter: drop-shadow(0 8px 16px rgba(0,0,0,.45)); }
/* v3.19.2: dezenter – dünn, blass, zur Scheibe hin auslaufend; Loch ohne grossen Schein */
.start-page > .start-shot { position: absolute; z-index: 1; height: 1px; transform-origin: 0 50%; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,214,102,.45), rgba(255,214,102,.12) 55%, rgba(255,214,102,.04) 92%, rgba(255,214,102,.25)); }
.start-page > .start-hit { position: absolute; z-index: 1; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; pointer-events: none;
  background: #1A140E; box-shadow: 0 0 0 1px rgba(233,220,196,.8), 0 0 5px 1px rgba(255,214,102,.25); }
@media (max-width: 760px) {
  .start-head:has(.start-photo:not([hidden])) { display: block; min-height: 0; }
  .start-photo, .start-shot, .start-hit { display: none; }
}
.start-pill { display: inline-flex; align-items: center; font-size: var(--fs-3xs); font-weight: 700; letter-spacing: 2px;
  color: var(--info); border: 1px solid color-mix(in srgb, var(--info) 35%, transparent); border-radius: var(--radius-pill);
  padding: 5px 12px; background: color-mix(in srgb, var(--info) 8%, transparent); }
.start-title { font-size: clamp(1.8rem, 6vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 12px 0 8px; color: var(--text); }
.start-grad { background: linear-gradient(90deg, var(--tdt-red, var(--danger)), var(--tdt-blue, var(--accent)));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.start-lead { color: var(--muted); max-width: 560px; margin: 0 0 14px; }
.start-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .start-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.start-stat { background: var(--surface); border: 1px solid var(--card-border, var(--border)); border-radius: var(--radius-lg); padding: 12px 14px; }
.start-stat b { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.start-stat span { font-size: var(--fs-3xs); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
button.start-stat { font: inherit; color: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0;
  transition: border-color .15s ease, transform .15s ease, background-color .15s ease; }
button.start-stat:hover { border-color: var(--accent); background: var(--surface-2); }
button.start-stat:active { transform: scale(.98); }
button.start-stat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.start-stat small { font-size: var(--fs-xs, 12px); color: var(--text-2); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { button.start-stat { transition: none; } button.start-stat:active { transform: none; } }
.s-red b { color: var(--tdt-red, var(--danger)); }
.s-blue b { color: var(--tdt-blue, var(--accent)); }
.s-warn b { color: var(--warn); }
.s-tan b { color: var(--tdt-tan, var(--text)); }

/* ◇-Labels (Abschnitts-Überschriften in Karten) */
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .club-start-row .settings-h3,
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .tl-open .settings-h3 {
  font-size: var(--fs-2xs); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--warn); }
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .club-start-row .settings-h3::before,
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .tl-open .settings-h3::before { content: "◇ "; }
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .section-title h2 { font-weight: 800; letter-spacing: -.01em; }

/* Kennzahlen im Trainingslog farbig wie die Start-Stats */
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .tl-stat b { font-weight: 800; font-size: var(--fs-xl); }
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .tl-stat:nth-child(1) b { color: var(--tdt-red); }
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .tl-stat:nth-child(2) b { color: var(--tdt-blue); }
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .tl-stat:nth-child(3) b { color: var(--warn); }
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .tl-stat:nth-child(4) b { color: var(--tdt-tan); }
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .tl-stat span { text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; font-size: var(--fs-3xs); }

/* Rangziffern auf den Empfohlen-Karten */
.club-rec-card { position: relative; overflow: hidden; }

/* IPSC-Zielscheibe als Wasserzeichen auf Start (v3.16.1: höher, damit die Scheiben neben dem Titel
   stehen und nicht hinter der Club-Karte verschwinden) */
.start-page { position: relative; }
:root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .start-page::before {
  content: ""; position: absolute; right: -24px; top: -112px; width: min(780px, 100%); height: 300px; pointer-events: none;
  opacity: .16; background: no-repeat right top / contain url("range-scene.svg");
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
:root:is([data-theme="pulse-light"],[data-theme="swiss-light"],[data-theme="range-light"]) .start-page::before { opacity: .22; }
@media (max-width: 640px) {
  :root:is([data-theme^="pulse"],[data-theme^="swiss"],[data-theme^="range"]) .start-page::before { top: -18px; right: -12px; width: 110%; height: 220px; opacity: .13; }
}
.start-page > * { position: relative; }

/* Swiss: Streifen in Schweizer Rot statt Rot/Blau */
:root[data-theme^="swiss"] .sidebar-head::after, :root[data-theme^="swiss"] .mobile-bar::after { background: var(--tdt-red); }
:root[data-theme^="swiss"] .start-grad { background: none; color: var(--tdt-red); }
/* Range Day: Karton-Akzent auf dem Hero */
:root[data-theme^="range"] .club-hero { background: color-mix(in srgb, var(--tdt-tan) 20%, var(--surface)); border-color: var(--tdt-tan); }
:root[data-theme="range"] body { background: radial-gradient(900px 500px at 100% 0%, rgba(200,169,126,.10), transparent 60%), var(--bg); background-attachment: fixed; }
/* Admin-Hinweise auf offene Registrierungen (v3.5.1) */
.tab-btn { position: relative; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; background: var(--danger); color: #fff; }
.nav-badge[hidden] { display: none; }
.pending-banner { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 14px; padding: 10px 14px; cursor: pointer;
  font: inherit; color: var(--text); text-align: left; border-radius: var(--radius-lg); border: 1px solid var(--warn);
  background: var(--warn-soft); }
.allowlist-text { width: 100%; max-width: 720px; font: inherit; font-size: var(--fs-sm); padding: 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
/* Benutzer anlegen: Ladezustand, Fehler im Dialog, NEU-Markierung (v3.5.1) */
.btn.is-busy { opacity: .75; cursor: progress; position: relative; padding-left: 34px; }
.btn.is-busy::before { content: ""; position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { margin: 10px 0 0; padding: 8px 10px; border-radius: var(--radius-sm); font-size: var(--fs-sm);
  color: var(--danger-strong); background: var(--danger-soft); border: 1px solid var(--danger); }
.form-error[hidden] { display: none; }
.new-badge { background: var(--accent); color: #fff; font-size: var(--fs-3xs); letter-spacing: .8px; }
tr.is-new-user td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
tr.is-new-user td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
tr.is-just-created td { animation: row-flash 2.4s ease-out 1; }
@keyframes row-flash { 0%, 30% { background: color-mix(in srgb, var(--ok) 28%, transparent); } 100% { background: color-mix(in srgb, var(--accent) 7%, transparent); } }
@media (prefers-reduced-motion: reduce) { tr.is-just-created td, .btn.is-busy::before { animation: none; } }
/* Vor-/Nachname nebeneinander, Zusatzzeile in Benutzerliste (v3.5.2) */
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-2col > div { display: flex; flex-direction: column; }
@media (max-width: 420px) { .form-2col { grid-template-columns: 1fr; } }
.user-sub { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
/* Login: "Mike!" statt nüchterner Fehlermeldung (v3.5.3, light-Version von 404-Option C) */
.login-mike { position: relative; display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 10px 12px;
  border-radius: var(--radius-lg); background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); }
.login-mike[hidden] { display: none; }
.mike-target { width: 34px; height: 46px; flex: none; }
.mike-stamp { position: absolute; left: 14px; top: 50%; margin-top: -15px; width: 30px; height: 30px; display: grid; place-items: center;
  font-weight: 900; font-size: var(--fs-lg); color: var(--danger); border: 2.5px solid var(--danger); border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--surface) 60%, transparent); transform: rotate(-14deg); }
.mike-text { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); color: var(--text-2); flex: 1; min-width: 0; }
.mike-text strong { color: var(--danger-strong); font-size: var(--fs-base); }
.mike-count { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; font-size: var(--fs-sm); color: var(--danger-strong);
  padding: 3px 8px; border-radius: var(--radius-xs); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); }
.login-mike.is-procedural { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.login-mike.is-procedural .mike-stamp, .login-mike.is-procedural .mike-text strong, .login-mike.is-procedural .mike-count { color: var(--warn-strong); border-color: var(--warn); }
.login-mike.is-hit .mike-stamp { animation: mike-stamp .55s cubic-bezier(.16, 1, .3, 1) both; }
.login-mike.is-hit .mike-hole { animation: mike-flash .5s ease-out both; }
@keyframes mike-stamp { from { opacity: 0; transform: scale(2.2) rotate(-4deg); } to { opacity: 1; transform: scale(1) rotate(-14deg); } }
@keyframes mike-flash { 0% { fill: #FFD27A; r: 4; } 100% { fill: #1A140E; r: 2.2; } }
@media (prefers-reduced-motion: reduce) { .login-mike.is-hit .mike-stamp, .login-mike.is-hit .mike-hole { animation: none; } }

/* v3.6.0: Club-Tipps aus Matches, Disziplinen, Teilnehmerliste mit Anmeldezeit */
.ev-pick { font: inherit; font-size: var(--fs-xs, 12px); font-weight: 700; padding: 4px 9px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  color: var(--muted); background: transparent; border: 1px dashed var(--border-strong); }
.ev-pick:hover { color: var(--accent-strong); border-color: var(--accent); }
.ev-pick.on { color: var(--warn-strong); background: var(--warn-soft); border: 1px solid var(--warn); }
.disc-checks { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.disc-check { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  font-size: var(--fs-sm); cursor: pointer; user-select: none; min-height: 36px; }
.disc-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.disc-check input { margin: 0; }
.club-pick-title { margin: 0 0 6px; line-height: 1.4; }
.club-rec-filter { font-size: var(--fs-xs, 12px); font-weight: 600; text-transform: none; letter-spacing: 0; margin-left: 6px; }
.club-people-list { list-style: none; counter-reset: ppl; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.club-people-list li { counter-increment: ppl; display: flex; justify-content: space-between; gap: 12px; padding: 4px 8px; border-radius: var(--radius-xs); }
.club-people-list li:nth-child(odd) { background: var(--surface-2); }
.club-people-list li::before { content: counter(ppl) "."; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 1.6em; }
.club-people-name { flex: 1; color: var(--text); }
.club-people-list time { color: var(--muted); font-size: var(--fs-xs, 12px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.club-people-none { margin: 4px 0 0; }
.club-people { position: relative; }
.club-people summary { list-style: none; cursor: pointer; font-size: var(--fs-sm); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap; }
.club-people summary::-webkit-details-marker { display: none; }
.club-people summary::after { content: " ▾"; color: var(--muted); }
.club-people[open] summary::after { content: " ▴"; }
.club-people-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; max-height: 260px; overflow: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.club-row.is-focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.club-row-count { cursor: pointer; }
@media (max-width: 520px) { .club-people-pop { min-width: min(250px, calc(100vw - 64px)); } }
.modal-form .disc-check { display: inline-flex; flex-direction: row; align-items: center; margin: 0; font-weight: 500; text-transform: none; letter-spacing: 0; }
.modal-form .disc-check input { width: auto; min-height: 0; padding: 0; accent-color: var(--accent); }

/* Testversion auf der NAS (WR_STAGE=test): unübersehbares Band oben */
.stage-ribbon { position: sticky; top: 0; z-index: 1000; padding: 4px 12px; text-align: center; font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: .5px; color: #1A140E; background: repeating-linear-gradient(-45deg, #F5C542 0 14px, #E9B425 14px 28px); }

/* Trainingslog-Kalender: mehrzeilige Einträge (Was / Wo / Schüsse), Spalten bleiben gleich breit */
.cal-chip-t, .cal-chip-s { display: block; min-width: 0; }
.cal-chip:has(.cal-chip-t) { white-space: normal; line-height: 1.25; padding: 3px 6px; }
.cal-chip-t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.cal-chip-s { font-weight: 500; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .cal-chip-s { display: none; }
  .cal-chip-t { -webkit-line-clamp: 3; }
}

/* Passwort vergessen (Login) */
.login-forgot { margin: 10px 0 0; text-align: center; font-size: var(--fs-sm); }
.forgot-form { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); }
.forgot-hint { font-size: var(--fs-xs); line-height: 1.4; margin: 4px 0 8px; }
.forgot-done { font-size: var(--fs-sm); line-height: 1.45; margin: 8px 0 0; }
.reset-warn { margin: 6px 0 0; padding: 8px 10px; border-radius: var(--radius-sm); font-size: var(--fs-xs); line-height: 1.4;
  color: var(--warn-strong); background: var(--warn-soft); border: 1px solid var(--warn); }

/* Feedback (v3.6.1) */
.feedback-btn { margin-top: 6px; }
.feedback-ico { width: 18px; text-align: center; }
.fb-cats { margin-bottom: 2px; }
.fb-cat-hint { margin: 2px 0 6px; font-size: var(--fs-xs); }
.fb-ctx { font-size: var(--fs-xs); margin-top: 6px; }
.fb-ctx summary { cursor: pointer; color: var(--muted); }
.fb-ctx div, .fb-ctx p { margin: 4px 0 0; overflow-wrap: anywhere; }
.fb-mine { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; font-size: var(--fs-sm); }
.fb-mine summary { cursor: pointer; font-weight: 600; }
.fb-mine-row { padding: 8px 0; border-bottom: 1px solid var(--border); }
.fb-mine-head, .fb-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fb-text { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.fb-reply { padding: 6px 8px; border-radius: var(--radius-sm); background: var(--surface-2); }
.fb-reply.is-new { border: 1px solid var(--accent); }
.fb-filters { display: grid; gap: 8px; margin-bottom: 12px; }
.fb-filters .segmented { justify-self: start; max-width: 100%; overflow-x: auto; }
.fb-list { display: grid; gap: 10px; }
.fb-card { padding: 12px 14px; }
.fb-who { font-weight: 600; }
.fb-when { margin-left: auto; font-size: var(--fs-xs); }
.fb-ctx-line { font-size: var(--fs-xs); overflow-wrap: anywhere; }
.fb-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.fb-actions input { flex: 1 1 220px; min-width: 0; }
.fb-actions .danger { color: var(--danger); }
.fb-reply-info { font-size: var(--fs-xs); margin-top: 4px; }

/* Empfohlen-Karte mit Send it (wie Club Aktivitäten) */
.club-rec-card .club-rec-foot { margin-top: auto; justify-content: space-between; }
.club-rec-card .club-sendit { min-width: 0; padding: 4px 12px; font-size: var(--fs-xs); }
.club-rec-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* v3.6.3 Start-Feinschliff (Design-Review): weniger Doppelungen, ruhigere Flächen */
.start-stat { border-top: 3px solid var(--stat-c, var(--border)); }
.s-red { --stat-c: var(--tdt-red, var(--danger)); }
.s-blue { --stat-c: var(--tdt-blue, var(--accent)); }
.s-warn { --stat-c: var(--warn); }
.s-tan { --stat-c: var(--tdt-tan, var(--border-strong)); }
.start-stat span { font-size: var(--fs-2xs); letter-spacing: .8px; }

.club-hero { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border-color: var(--border); }
.club-hero-bar { max-width: 320px; }
@media (min-width: 700px) {
  .club-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
  .club-hero > :not(.club-hero-foot) { grid-column: 1; }
  .club-hero-foot { grid-column: 2; grid-row: 1 / span 5; align-self: center; flex-wrap: nowrap; }
}

.club-rec-when { font-size: var(--fs-sm); color: var(--text); }
.club-rec-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 900px) {
  .club-rec-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); overflow: visible; }
  .club-rec-card { flex: none; }
}
@media (max-width: 899px) {
  .club-rec-strip { scroll-padding-inline: 12px; }
  .club-rec-card { flex: 0 0 78%; max-width: 280px; }
}

.club-cal-row { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 10px 4px; min-height: 44px; }
.club-cal-row:first-child { border-top: 0; }
.club-cal-row:hover { background: var(--surface-2); }
.club-cal-row.is-recommended { border-color: var(--border); }
.club-cal-row-when { flex-direction: row; min-width: 120px; font-size: var(--fs-sm); color: var(--text); }
.club-cal-more { display: block; margin: 8px 4px 0; font-size: var(--fs-sm); }

@media (pointer: coarse) {
  .club-hero-foot .club-sendit, .club-rec-card .club-sendit { min-height: 44px; }
}

/* Art-Etikett auf Empfohlen-Karten */
.club-rec-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.club-type-tag { font-size: var(--fs-2xs); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* Matches mit geschlossener Anmeldung (v3.6.4): A = gedimmt, D = Gruppe am Monatsende */
.ev-row { transition: background-color .45s cubic-bezier(.32,.72,0,1); }
.ev-row-closed { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.ev-row-closed .ev-date, .ev-row-closed .ev-sub, .ev-row-closed .ev-fact,
.ev-row-closed .ev-title, .ev-row-closed .ev-title a { color: var(--muted); transition: color .45s cubic-bezier(.32,.72,0,1); }
.ev-row-closed .ev-thumb, .ev-row-closed .ev-country { filter: grayscale(.9); opacity: .55;
  transition: filter .45s cubic-bezier(.32,.72,0,1), opacity .45s cubic-bezier(.32,.72,0,1); }
.ev-row-closed:hover .ev-title, .ev-row-closed:hover .ev-title a, .ev-row-closed:focus-within .ev-title a { color: var(--accent-fg); }
.ev-row-closed:hover .ev-date { color: var(--text-2); }
.ev-row-closed:hover .ev-thumb, .ev-row-closed:hover .ev-country { filter: none; opacity: 1; }
.ev-closed-group { margin: 2px 0 8px; border-radius: var(--radius-sm); }
.ev-closed-group > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 8px 12px; cursor: pointer; font-size: var(--fs-sm); color: var(--muted);
  border: 1px dashed var(--border); border-radius: var(--radius-sm); }
.ev-closed-group > summary::-webkit-details-marker { display: none; }
.ev-closed-group > summary:hover { color: var(--text-2); border-color: var(--border-strong); }
.ev-closed-toggle { color: var(--accent-fg); white-space: nowrap; }
.ev-closed-group .when-open, .ev-closed-group[open] .when-closed { display: none; }
.ev-closed-group[open] .when-open { display: inline; }
.ev-closed-group[open] > summary { margin-bottom: 4px; }
@media (prefers-reduced-motion: reduce) {
  .ev-row, .ev-row-closed .ev-title, .ev-row-closed .ev-thumb, .ev-row-closed .ev-country { transition: none; }
}

/* v3.7.0 Paket A (Review): Toast über Dialogen, Labels, Tap-Ziele, Überläufe, Selects, Laptop-Höhe */
.toast { z-index: 80; }
.system-overlay { z-index: 85; }
.cal-menu summary { display: inline-flex; align-items: center; gap: 5px; }
.cal-lbl { font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
/* In dichten Zeilen (Club, Start-Listen) nur das Symbol */
.club-row .cal-lbl, .club-hero .cal-lbl, .so-row .ev-watch-lbl, .club-cal-row .cal-lbl { display: none; }
.so-row .ev-watch { border-color: transparent; padding: 5px 7px; }

@media (pointer: coarse) {
  .icon-btn, .ev-watch, .ev-pick, .cal-menu summary, .club-more summary, .club-people summary,
  .seg-btn, .news-chip, .club-fchip { min-height: 44px; }
  .icon-btn, .club-more summary { min-width: 44px; }
  .ev-pick, .ev-watch, .club-people summary { display: inline-flex; align-items: center; }
}

/* Überläufe am Handy */
.ausweismappe-tile .segmented { display: flex; flex-wrap: wrap; max-width: 100%; }
.ausweismappe-tile .segmented .seg-btn { flex: 1 1 auto; }
.ausweismappe-tile .btn-row { flex-wrap: wrap; }
.rangeday-check { white-space: normal; align-items: flex-start; overflow-wrap: anywhere; }
.filter-bar input[type="text"], .filter-bar input[type="search"] { width: 100%; min-width: 0; }

/* Ein Stil für alle Auswahlfelder ausserhalb von Formularen */
select:not(.modal-form select):not(.filter-bar select) {
  font: inherit; font-size: var(--fs-sm); color: var(--text); background-color: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 30px 8px 10px; min-height: 40px; max-width: 100%;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
select:not(.modal-form select):not(.filter-bar select):focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Laptop mit wenig Höhe (1366×768): Sidebar verdichten, Karte niedriger */
@media (min-width: 901px) and (max-height: 820px) {
  .sidebar-head { padding-top: 12px; padding-bottom: 12px; }
  .tab-btn { padding-top: 7px; padding-bottom: 7px; }
  .nav-group { margin-bottom: 8px; }
  .nav-group-label { margin-top: 4px; }
}
.ranges-map { height: clamp(260px, 40vh, 480px); min-height: 0; }
.ranges-map.ranges-map-inline { height: clamp(240px, 36vh, 420px); min-height: 0; }

/* Platz unter dem Inhalt, damit der +-Knopf nichts verdeckt */
@media (min-width: 901px) { .content { padding-bottom: 96px; } }

/* Empfohlen: 5 Karten in einer Reihe auch bei 1366 px */
@media (min-width: 900px) {
  .club-rec-strip { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}
.profile-pw { margin-top: 4px; border-top: 1px solid var(--border); padding-top: 10px; }
.profile-pw > summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
@media (max-width: 640px) { .ev-row .cal-lbl { display: none; } }
@media (max-width: 640px) {
  .ausweismappe-tile .am-tile-actions { flex: 1 1 100%; align-items: stretch; min-width: 0; }
  .ausweismappe-tile .btn-row .btn { flex: 1 1 auto; }
}

/* v3.7.0 Paket B: Tabellen als Karten am Handy, einklappbare Match-Filter */
@media (max-width: 640px) {
  .table-wrap.cards-mobile { overflow: visible; border: 0; background: none; box-shadow: none; }
  .cards-mobile table, .cards-mobile tbody, .cards-mobile tr, .cards-mobile td { display: block; width: 100%; }
  .cards-mobile thead { display: none; }
  .cards-mobile tr { background: var(--surface); border: 1px solid var(--card-border, var(--border)); border-radius: var(--radius-lg);
    padding: 10px 14px; margin-bottom: 10px; }
  .cards-mobile td { border: 0 !important; padding: 4px 0; white-space: normal; overflow-wrap: anywhere; }
  .cards-mobile td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: var(--fs-2xs);
    color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
  .cards-mobile td:first-child { font-size: var(--fs-md); }
  .cards-mobile td.actions-cell { text-align: right; }
  .cards-mobile td.actions-cell::before { display: none !important; }
  .ev-side-col { display: none; }
}
.ev-filter-collapse > summary { list-style: none; display: none; }
.ev-filter-collapse > summary::-webkit-details-marker { display: none; }
@media (max-width: 640px) {
  .ev-filter-collapse { margin: 10px 0 12px; }
  .ev-filter-collapse > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-height: 44px; padding: 8px 12px; cursor: pointer; font-weight: 600; font-size: var(--fs-sm);
    background: var(--surface); border: 1px solid var(--card-border, var(--border)); border-radius: var(--radius); }
  .ev-filter-collapse[open] > summary { margin-bottom: 8px; }
}

/* Trainingslog am Handy: Farbpunkte + Tagesblatt */
@media (max-width: 640px) {
  .cal-cell { gap: 4px; }
  .cal-cell .cal-chip { width: 9px; height: 9px; min-height: 0; padding: 0; border-radius: 50%; font-size: 0; display: inline-block;
    border: 0; flex: none; }
  .cal-cell .cal-chip.is-planned { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
  .cal-cell { flex-direction: row; flex-wrap: wrap; align-content: flex-start; }
  .cal-cell .cal-day { width: 100%; }
  .cal-cell .cal-more { font-size: var(--fs-3xs); }
}
.day-sheet { display: grid; gap: 6px; margin-bottom: 10px; }
.day-sheet-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; text-align: left; font: inherit;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.day-sheet-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }

/* Start: Monatskalender am Handy einklappbar */
.club-cal-toggle { display: none; }
@media (max-width: 640px) {
  .club-cal-toggle { display: inline-flex; align-items: center; min-height: 40px; margin-bottom: 6px; }
  .club-cal-wrap:not(.show-cal) .club-cal { display: none; }
}

/* Club Aktivitäten: Filter-Chips am Handy in einer scrollbaren Zeile; ruhige Empfohlen-Markierung */
@media (max-width: 640px) {
  .club-fbar { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .club-fbar > * { flex: none; scroll-snap-align: start; }
  .club-fbar .club-fbar-spacer { display: none; }
}
.club-row.is-recommended { border-color: var(--card-border, var(--border)); }
@media (max-width: 640px) { .cards-mobile td.is-empty { display: none; } }
.bottom-nav button { min-width: 0; }
@media (max-width: 640px) { .cards-mobile td * { white-space: normal; overflow-wrap: anywhere; max-width: 100%; } }

/* v3.7.0 Paket C: Design-System-Grundlagen */
:root { --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; }

/* Ein Filter-Chip-Stil für alle Filter-/Auswahl-Chips (Club, Matches-Signale, Feedback, News, Drill-Facetten) */
.news-chip, .ev-chip, .club-fchip, .drill-tile {
  font: inherit; font-size: var(--fs-sm); font-weight: 600; line-height: 1.2;
  min-height: 34px; padding: 6px 14px; border-radius: var(--radius-pill); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2); background: transparent; border: 1px solid var(--border-strong);
  transition: background-color .25s cubic-bezier(.32,.72,0,1), border-color .25s cubic-bezier(.32,.72,0,1), color .25s cubic-bezier(.32,.72,0,1);
}
.news-chip:hover, .ev-chip:hover, .club-fchip:hover, .drill-tile:hover { border-color: var(--accent); background: transparent; transform: none; }
.news-chip.active, .ev-chip.active, .club-fchip.on, .drill-tile.is-active {
  background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent);
}
.ev-chip-new.active { background: var(--success-soft); color: var(--success-strong, var(--ok)); border-color: var(--ok); }
@media (prefers-reduced-motion: reduce) { .news-chip, .ev-chip, .club-fchip, .drill-tile { transition: none; } }

/* Leerzustand mit Knopf */
.empty-rich .empty-cta { margin-top: var(--sp-3); }

/* Seitenkopf: Unterabschnitte klar kleiner als der Seitentitel */
.section-title h3 { font-size: var(--fs-md); }
.section-title + p.muted { max-width: 70ch; }

/* Wo schiessen? (v3.7.0) */
.venue-intro { margin: -6px 0 12px; }
.venue-origin { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.venue-origin input { flex: 1 1 200px; min-width: 0; min-height: 40px; padding: 8px 12px; font: inherit; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.venue-chips { margin-bottom: 8px; }
@media (max-width: 640px) { .venue-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .venue-chips > * { flex: none; } }
.venue-h { margin: 18px 0 8px; }
.venue-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.venue-card { padding: 12px 14px; display: grid; gap: 8px; }
.venue-head { display: flex; align-items: flex-start; gap: 10px; }
.venue-flag { font-size: 1.2rem; line-height: 1.2; }
.venue-title { flex: 1; min-width: 0; display: grid; }
.venue-title b { line-height: 1.25; }
.venue-title small { color: var(--muted); font-size: var(--fs-xs); }
.venue-fav { font-size: 1.3rem; line-height: 1; background: none; border: 0; color: var(--muted); cursor: pointer; min-width: 44px; min-height: 44px; margin: -10px -10px 0 0; }
.venue-fav.on { color: var(--warn); }
.venue-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: var(--fs-sm); }
.venue-status { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.venue-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.venue-status-open { color: var(--success-strong, var(--ok)); }
.venue-status-open::before { background: var(--ok); box-shadow: 0 0 0 3px var(--success-soft); }
.venue-status-later::before { background: var(--warn); }
.venue-status-next { color: var(--text-2); }
.venue-status-unknown { color: var(--muted); font-weight: 600; }
.venue-travel { color: var(--text-2); font-weight: 600; }
.venue-disc { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.venue-dist { font-size: var(--fs-xs); }
.venue-more > summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--accent-fg); min-height: 36px; display: flex; align-items: center; }
.venue-more[open] > summary { margin-bottom: 6px; }
.venue-week { display: grid; gap: 2px; margin-bottom: 8px; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.venue-week-row { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 3px 6px; border-radius: var(--radius-xs); }
.venue-week-row.is-today { background: var(--accent-soft); font-weight: 700; }
.venue-live pre { white-space: pre-wrap; font: inherit; font-size: var(--fs-xs); margin: 4px 0 8px; color: var(--text-2); }
.venue-text { font-size: var(--fs-sm); margin: 0 0 8px; color: var(--text-2); overflow-wrap: anywhere; }
.venue-plan { font-size: var(--fs-sm); margin: 0 0 8px; }
.venue-contact { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.venue-contact .btn { min-height: 40px; display: inline-flex; align-items: center; }
.venue-src { font-size: var(--fs-xs); margin: 0 0 6px; }
.venue-card.venue-next, .venue-card.venue-unknown { opacity: .92; }

/* Meine Voraussetzungen (v3.7.0) */
.cred-panel { padding: 0; margin: 4px 0 10px; }
.cred-panel > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  flex-wrap: wrap; padding: 12px 14px; min-height: 44px; font-weight: 700; }
.cred-panel > summary::-webkit-details-marker { display: none; }
.cred-panel > summary .muted { font-weight: 500; font-size: var(--fs-sm); }
.cred-panel[open] > summary { border-bottom: 1px solid var(--border); }
.cred-panel > :not(summary) { margin-left: 14px; margin-right: 14px; }
.cred-intro { font-size: var(--fs-xs); margin-top: 10px; }
.cred-grid { display: grid; gap: 4px; }
.cred-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; padding: 6px 0;
  border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.cred-row .cred-add { grid-column: 2 / -1; justify-self: start; font-size: var(--fs-xs); }
.cred-label small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.cred-state { font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.cred-state.ok { color: var(--success-strong, var(--ok)); }
.cred-state.soon { color: var(--warn-strong, var(--warn)); }
.cred-state.bad { color: var(--danger); }
.cred-state.none { color: var(--muted); }
.cred-mem { list-style: none; padding: 0; margin: 10px 0 6px; display: grid; gap: 4px; font-size: var(--fs-sm); }
.cred-panel .cred-add[data-cred-add="membership"] { display: inline-block; margin-bottom: 12px; }
.venue-fits { display: flex; flex-wrap: wrap; gap: 6px; }
.venue-fit { font-size: var(--fs-xs); font-weight: 600; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); }
.venue-fit.ok { color: var(--success-strong, var(--ok)); border-color: var(--ok); background: var(--success-soft); }
.venue-fit.bad { color: var(--warn-strong, var(--warn)); border-color: var(--warn); background: var(--warn-soft); }
.venue-fit.info { color: var(--text-2); }
.profile-cred { margin-top: 4px; border-top: 1px solid var(--border); padding-top: 10px; }
.profile-cred > summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.profile-cred .cred-row { grid-template-columns: 26px minmax(0, 1fr) auto; }

/* Checkliste mit Häkchen (Meine Voraussetzungen) */
.cred-row.is-tickable { grid-template-columns: 28px minmax(0, 1fr) auto; cursor: pointer; min-height: 44px; }
.cred-tick { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.myinfos-cred { margin-bottom: 16px; }
.cred-row .cred-add + .cred-add { margin-left: 12px; }

/* Matches am Handy (v3.7.5): Chip-Leiste + Filter-Blatt */
.ev-mbar { display: none; }
@media (max-width: 640px) {
  .ev-filter-collapse, .ev-total-line { display: none !important; }
  .ev-mbar { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; z-index: 25;
    margin: 4px 0 10px; padding: 8px 0 6px; background: var(--bg, var(--surface)); border-bottom: 1px solid var(--border); }
  .ev-mbar-chips { display: flex; gap: 6px; overflow-x: auto; min-width: 0; scrollbar-width: none; }
  .ev-mbar-chips::-webkit-scrollbar { display: none; }
  .ev-mbar-count { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
  .ev-mbar-count b { color: var(--text); font-variant-numeric: tabular-nums; }
}
.ev-mchip { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--border-strong, var(--border)); border-radius: var(--radius-pill); background: var(--surface);
  color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; cursor: pointer; }
.ev-mchip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.ev-mchip:active { transform: translateY(1px); }
.ev-mchip-caret { width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .7; }
.ev-mchip-more { padding: 0 11px; }
.ev-mchip .flag { font-size: var(--fs-md); line-height: 1; }
body.ev-sheet-open { overflow: hidden; }
.ev-sheet-ov { position: fixed; inset: 0; z-index: 75; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; }
.ev-sheet { width: 100%; max-width: 560px; max-height: 86vh; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-bottom: 0; border-radius: 18px 18px 0 0; animation: ev-sheet-in .22s cubic-bezier(.32, .72, 0, 1); }
@keyframes ev-sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ev-sheet { animation: none; } }
.ev-sheet-grab { width: 38px; height: 4px; border-radius: 2px; background: var(--border-strong, var(--border)); margin: 8px auto 2px; }
.ev-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 4px; }
.ev-sheet-head h3 { margin: 0; font-size: var(--fs-lg, 1.1rem); }
.ev-sheet-reset { background: none; border: 0; color: var(--accent); font: inherit; font-size: var(--fs-sm); font-weight: 600; padding: 8px 0; cursor: pointer; }
.ev-sheet-body { overflow-y: auto; padding: 0 16px 8px; overscroll-behavior: contain; }
.ev-sgroup { padding: 10px 0; border-top: 1px solid var(--border); }
.ev-sgroup:first-child { border-top: 0; }
.ev-sgroup h4 { margin: 0 0 8px; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ev-schips { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-schip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.ev-schip.on { background: var(--accent-solid); border-color: var(--accent-solid); color: #fff; font-weight: 600; }
.ev-schip-more { display: none; }
.ev-schip-expand { border-style: dashed; color: var(--muted); }
.ev-schip-n { font-size: var(--fs-xs); opacity: .65; font-variant-numeric: tabular-nums; }
.ev-sheet-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.ev-sheet-foot .btn { width: 100%; min-height: 46px; }
.ev-sheet .ev-travel-row { display: flex; gap: 8px; }
.ev-sheet .ev-travel-row input { flex: 1; min-width: 0; }

/* My Infos nur mit Häkchen (v3.8.0) */
.mi-intro { margin: -6px 0 14px; max-width: 65ch; }
.mi-tick-card { padding: 12px 16px; margin-bottom: 14px; }
.mi-tick-card h3 { margin: 0 0 6px; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mi-tick-card .cred-row small { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
.mi-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.mi-add input[name="label"] { flex: 1 1 200px; min-width: 0; }
.mi-add select { flex: 0 1 auto; }
.mi-add select[hidden] { display: none; }

/* Datenschutz-Seite (v3.9.0) */
.legal-page { max-width: 760px; margin: 0 auto; padding: 20px 16px 60px; }
.legal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.legal-top .login-lang { position: static; }
.legal-back { color: var(--accent); text-decoration: none; font-weight: 600; }
.legal-text h1 { font-size: var(--fs-xl); margin: 10px 0 2px; }
.legal-text h2 { font-size: var(--fs-md); margin: 22px 0 6px; }
.legal-text p, .legal-text li { line-height: 1.6; max-width: 70ch; }
.legal-text ul { padding-left: 1.2em; }
.legal-text mark { background: var(--warn-soft, #fff3cd); color: inherit; padding: 0 3px; border-radius: 3px; }
.legal-links { margin-top: 14px; text-align: center; font-size: var(--fs-xs); }
.legal-links a { color: var(--muted); }
.app-version a { color: inherit; }

/* Auto-Aktualisierung Club (v3.10.0): Hinweis-Pille */
.live-pill { position: fixed; left: 50%; transform: translateX(-50%); top: 14px; z-index: 70;
  padding: 8px 16px; border-radius: var(--radius-pill); border: 1px solid var(--accent); background: var(--surface);
  color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow-md); max-width: calc(100vw - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-pill:active { transform: translateX(-50%) translateY(1px); }
@media (max-width: 900px) { .live-pill { top: calc(10px + env(safe-area-inset-top)); } }

/* Ungelesen-Zähler Club (v3.11.0) */
.bottom-nav button { position: relative; }
.bottom-nav .club-badge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; min-width: 18px; height: 18px;
  font-size: var(--fs-3xs); padding: 0 5px; }
.club-new-chip { display: inline-block; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--danger); color: #fff;
  font-size: var(--fs-2xs); font-weight: 700; vertical-align: 2px; }
.club-new-chip.soft { background: var(--accent-soft); color: var(--accent); }
.club-row.is-new { box-shadow: inset 3px 0 0 var(--danger); }


/* Kontrast-Tokens (v3.12.0): Fläche für weisse Schrift (≥ 4.5:1 in allen
   Themes) und Schein-Farbe aus dem jeweiligen Akzent statt fixem Lila. */
:root, :root[data-theme] {
  --accent-solid: color-mix(in srgb, var(--accent) 80%, #000);
  --accent-glow: color-mix(in srgb, var(--accent) 40%, transparent);
}

.ev-card-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ev-more { display: flex; align-items: center; gap: 12px; padding: 14px 2px; }

/* ===== Matches-Karten (v3.13.0, Paket B) ===== */
:root, :root[data-theme] {
  --disc-hg: var(--accent); --disc-pcc: #8B5CF6; --disc-mr: #14B8A6; --disc-rf: #22C55E;
  --disc-sg: #F59E0B; --disc-aa: #EC4899; --disc-lr: #94A3B8; --disc-x: var(--border-strong, var(--border));
}
.pill { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 0 8px; border-radius: var(--radius-pill);
  font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; line-height: 1;
  color: color-mix(in srgb, var(--pill-c, var(--muted)) 62%, var(--text)); background: color-mix(in srgb, var(--pill-c, var(--muted)) 16%, transparent); }
.pill.is-ok { --pill-c: var(--ok, #22C55E); }
.pill.is-warn { --pill-c: var(--warn, #F59E0B); }
.pill.is-bad { --pill-c: var(--danger, #EF4444); }
.pill.is-new { --pill-c: var(--accent); }
.pill.is-tan { --pill-c: var(--tdt-tan, #C8A97E); }
.pill.disc-hg { --pill-c: var(--disc-hg); } .pill.disc-pcc { --pill-c: var(--disc-pcc); } .pill.disc-mr { --pill-c: var(--disc-mr); }
.pill.disc-rf { --pill-c: var(--disc-rf); } .pill.disc-sg { --pill-c: var(--disc-sg); } .pill.disc-aa { --pill-c: var(--disc-aa); }
.pill.disc-lr { --pill-c: var(--disc-lr); }

.evc { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start;
  padding: 12px 14px 12px 12px; margin-bottom: 8px; border-radius: var(--radius-lg); cursor: pointer;
  background: var(--surface); border: 1px solid var(--card-border, var(--border));
  box-shadow: inset 4px 0 0 var(--stripe, var(--disc-x)); transition: border-color var(--trans), transform var(--trans); }
.evc:hover { border-color: var(--border-strong, var(--accent)); }
.evc:active { transform: translateY(1px); }
.evc:focus-visible { outline: none; box-shadow: inset 4px 0 0 var(--stripe, var(--disc-x)), var(--focus-ring); }
.evc.disc-hg { --stripe: var(--disc-hg); } .evc.disc-pcc { --stripe: var(--disc-pcc); } .evc.disc-mr { --stripe: var(--disc-mr); }
.evc.disc-rf { --stripe: var(--disc-rf); } .evc.disc-sg { --stripe: var(--disc-sg); } .evc.disc-aa { --stripe: var(--disc-aa); }
.evc.disc-lr { --stripe: var(--disc-lr); }
/* v3.28.1: Anmeldung geschlossen = verschleiert (schraffiert, grau), Text bleibt lesbar */
.evc.is-closed { --stripe: var(--border-strong, var(--muted));
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--muted) 9%, transparent) 10px 11px),
    color-mix(in srgb, var(--surface-2) 70%, var(--surface)); }
.evc.is-closed .evc-date { filter: grayscale(1); opacity: .75; }
.evc.is-closed .evc-title { color: var(--text-2, var(--text)); font-weight: 600; }
.evc.is-closed .evc-loc, .evc.is-closed .ev-crew { opacity: .8; }
.evc.is-closed:hover { background:
    repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--muted) 12%, transparent) 10px 11px),
    var(--surface-2); }
.evc.is-cancelled .evc-title { text-decoration: line-through; }
.evc-date { display: grid; place-items: center; align-content: center; min-height: 52px; padding: 6px 2px; border-radius: var(--radius);
  background: var(--surface-2); text-align: center; line-height: 1.05; }
.evc-date b { font-size: var(--fs-md); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.evc-date small { font-size: var(--fs-3xs); font-weight: 700; letter-spacing: .06em; color: var(--accent); margin-top: 3px; }
.evc-body { min-width: 0; display: grid; gap: 4px; }
.evc-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.evc-title { margin: 2px 0 0; font-size: var(--fs-base); font-weight: 700; color: var(--text); line-height: 1.3; overflow-wrap: anywhere; }
.evc-loc { font-size: var(--fs-sm); color: var(--text-2, var(--text)); display: flex; align-items: center; gap: 6px; min-width: 0; }
.evc-loc .ev-country { flex: none; }
.evc-facts { font-size: var(--fs-xs); color: var(--muted); }
.evc-actions { display: flex; align-items: center; gap: 8px; }
/* v3.19.0: Send it in Matches + „wer ist dabei“ (Initialen) */
.evc.is-going { --stripe: var(--ok); }
.ev-crew { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-2, var(--text)); }
.ev-crew:empty { display: none; }
.crew-av { display: inline-flex; vertical-align: middle; }
.crew-av i { width: 24px; height: 24px; margin-left: -6px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  font-size: var(--fs-3xs); font-weight: 800; letter-spacing: .02em; color: var(--text); background: var(--surface-2);
  border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.crew-av i:first-child { margin-left: 0; }
.crew-av i.me { background: var(--ok); color: #06210F; }
.crew-av i.more { font-size: 9px; color: var(--muted); }
.club-row-av i { width: 22px; height: 22px; font-size: 9px; }
.club-from-ev { font-size: var(--fs-3xs); min-height: 18px; vertical-align: 2px; }
@media (max-width: 640px) {
  .evc { grid-template-columns: 50px minmax(0, 1fr); padding-right: 10px; }
  .evc-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .evc-actions .ev-watch-lbl { display: none; }
  .evc-date { min-height: 46px; }
  .club-row-av { display: none; }
}
/* Detail-Blatt */
.evd { display: grid; gap: 10px; }
.evd-poster { width: 100%; max-height: 220px; object-fit: contain; border-radius: var(--radius); background: var(--surface-2); cursor: zoom-in; }
.evd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.evd-kv { padding: 8px 10px; border-radius: var(--radius); background: var(--surface-2); display: grid; gap: 2px; }
.evd-kv span { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.evd-kv b { font-size: var(--fs-sm); font-weight: 600; }
.evd-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.evd-src { margin: 0; font-size: var(--fs-xs); }

/* Ansichts-Umschalter + Tabelle + Kalender + Karte (v3.13.0) */
.seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border); flex: none; }
.seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 0; border-radius: var(--radius-pill);
  background: none; color: var(--muted); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.seg button svg { width: 16px; height: 16px; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.ev-listhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 10px; flex-wrap: wrap; }
/* v3.18.0: Fahrzeit und Ansicht auf einer Zeile rechts neben der Anzahl */
.ev-listhead-r { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.ev-listhead .ev-travel-widget { display: flex; align-items: center; gap: 8px; margin: 0; }
.ev-listhead .ev-travel-widget label { margin: 0; white-space: nowrap; }
.ev-listhead .ev-travel-row input { min-width: 190px; }
.ev-mbar-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ev-mbar .seg button { padding: 0 9px; min-height: 30px; }
@media (max-width: 640px) {
  .ev-listhead { display: none; }
  .seg .only-desktop, .seg .seg-lbl { display: none; }
}
.ev-table { width: 100%; }
.ev-table tbody tr { cursor: pointer; }
.ev-table tbody tr:hover td { background: var(--surface-2); }
.ev-table tr.is-closed td { opacity: .75; background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.ev-table td { vertical-align: middle; }
.ev-table td .pill { margin: 1px 2px 1px 0; }
.ev-table .nowrap { white-space: nowrap; }
.ev-table th.is-sorted { color: var(--text); }
.evcal { background: var(--surface); border: 1px solid var(--card-border, var(--border)); border-radius: var(--radius-lg); padding: 12px; }
.evcal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.evcal-head b { flex: 1; font-size: var(--fs-lg, 1.1rem); text-transform: capitalize; }
.evcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.evcal-wd { font-size: var(--fs-xs); color: var(--muted); text-align: center; text-transform: uppercase; padding: 2px 0; }
.evcal-cell { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-height: 92px; padding: 5px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.evcal-cell.is-pad { visibility: hidden; }
.evcal-cell.is-today { border-color: var(--accent); }
.evcal-cell.is-sel { background: var(--accent-soft); border-color: var(--accent); }
.evcal-d { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.evcal-items { display: grid; gap: 2px; min-width: 0; }
.evcal-it { display: block; font-size: var(--fs-2xs); line-height: 1.3; padding: 1px 5px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: color-mix(in srgb, var(--stripe, var(--muted)) 55%, var(--text)); background: color-mix(in srgb, var(--stripe, var(--muted)) 18%, transparent); }
.evcal-it.disc-hg { --stripe: var(--disc-hg); } .evcal-it.disc-pcc { --stripe: var(--disc-pcc); } .evcal-it.disc-mr { --stripe: var(--disc-mr); }
.evcal-it.disc-rf { --stripe: var(--disc-rf); } .evcal-it.disc-sg { --stripe: var(--disc-sg); } .evcal-it.disc-aa { --stripe: var(--disc-aa); }
.evcal-more { font-size: var(--fs-2xs); color: var(--accent); font-weight: 600; }
.evcal-dot { display: none; }
.evcal-daylist { margin-top: 12px; }
.evcal-hint { margin: 10px 2px; font-size: var(--fs-sm); }
@media (max-width: 640px) {
  .evcal { padding: 8px; }
  .evcal-cell { min-height: 44px; align-items: center; justify-content: center; padding: 3px; }
  .evcal-items { display: none; }
  .evcal-d { font-size: var(--fs-sm); color: var(--text); }
  .evcal-dot { display: inline-grid; place-items: center; min-width: 18px; height: 16px; padding: 0 4px; border-radius: var(--radius-pill);
    background: var(--accent-solid); color: #fff; font-size: var(--fs-3xs); font-weight: 700; }
}
.evmap-wrap { display: grid; gap: 6px; }
.evmap { height: min(70vh, 560px); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.evmap-note { margin: 0; font-size: var(--fs-xs); }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: color-mix(in srgb, var(--accent) 35%, transparent) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: var(--accent-solid) !important; color: #fff !important; font-weight: 700; }
.ev-sheet-q { width: 100%; }
.ev-f-search input { min-width: 200px; }

/* Tab „Ich“ (v3.14.0) */
.ich-list { display: grid; margin: 0 0 14px; border: 1px solid var(--card-border, var(--border)); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.ich-item { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 14px; border: 0; border-top: 1px solid var(--border);
  background: none; color: var(--text); font: inherit; font-size: var(--fs-base); text-align: left; cursor: pointer; }
.ich-item:first-child { border-top: 0; }
.ich-item:hover { background: var(--surface-2); }
.ich-item > span:first-of-type { flex: 1; }
.ich-ico { width: 20px; height: 20px; color: var(--muted); flex: none; }
.ich-chev { color: var(--muted); font-size: 1.2rem; }
.ich-item .nav-badge { margin-left: 0; }
.ich-foot { text-align: center; font-size: var(--fs-xs); margin: 4px 0 20px; }
.bottom-nav .ich-badge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; min-width: 18px; height: 18px; font-size: 10px; padding: 0 5px; }
.start-mine-matches { margin: 18px 0; }

/* Stände (v3.16.0) */
.venue-viewseg { margin-left: auto; }
.range-extra { padding: 0; margin-top: 16px; }
.range-extra > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 14px; font-weight: 600; }
.range-extra > summary::-webkit-details-marker { display: none; }
.range-extra[open] > summary { border-bottom: 1px solid var(--border); }
.range-extra-note { margin: 8px 14px; font-size: var(--fs-xs); }
.range-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--border); }
.range-row-main { flex: 1; min-width: 0; display: grid; }
.range-row-main small { color: var(--muted); font-size: var(--fs-xs); }
.range-row-links { display: flex; gap: 10px; font-size: var(--fs-sm); white-space: nowrap; }
.venue-card.is-focus, .range-row.is-focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.venue-disc { font-size: var(--fs-sm); color: var(--text-2, var(--text)); }
/* v3.19.0: Tabelle Matches – Erinnern nur als Glocke, Send it kompakt */
.ev-table .ev-watch-lbl { display: none; }
.ev-table td.nowrap .club-sendit { min-width: 0; padding: 4px 10px; margin-left: 6px; }

/* Bewegte Effekte (v3.20.0) – siehe fxNavGlide/fxTabEnter/fxMuzzle in app.js */
.sidebar-nav { position: relative; }
.sidebar-nav .tab-btn { position: relative; z-index: 1; }
.fx-nav-ghost { position: absolute; z-index: 0; pointer-events: none; }
.sidebar-nav .tab-btn.active { transition: none; }   /* Ghost liest die echte Akzentfarbe, kein Flackern danach */
.app-main { overflow-x: clip; }                      /* Tab-Slide: kein seitliches Wackeln (clip: sticky bleibt) */
.sidebar-nav.fx-gliding .tab-btn.active { background: transparent !important; box-shadow: none !important; color: var(--text) !important; }
.sidebar-nav.fx-gliding .tab-btn.active .nav-ico { color: inherit !important; }
.fx-bnav-ghost { position: absolute; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--tdt-red, var(--accent)); pointer-events: none; }
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 2000; }
.fx-layer span { position: fixed; }
@media (prefers-reduced-motion: reduce) { .fx-layer, .fx-nav-ghost, .fx-bnav-ghost { display: none !important; } }

/* Ziehen zum Aktualisieren (v3.22.0) – Pille über der unteren Leiste */
.ptr { white-space: nowrap; position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 70; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(0,0,0,.25);
  font-size: var(--fs-sm); font-weight: 600; color: var(--muted);
  transform: translate(-50%, 16px); opacity: 0; transition: opacity .15s, transform .15s; }
.ptr.on { opacity: 1; transform: translate(-50%, 0); }
/* v3.22.1: oben nach unten ziehen – Pille unter der Kopfzeile */
.ptr.top { bottom: auto; top: calc(64px + env(safe-area-inset-top)); transform: translate(-50%, -16px); }
.ptr.top.on { transform: translate(-50%, 0); }
.ptr-ico { display: inline-block; font-size: 1.1rem; transform: rotate(calc(var(--p, 0) * 300deg)); }
.ptr.ready { color: var(--text); border-color: var(--accent); }
.ptr.ready .ptr-ico { color: var(--accent); }
.ptr.busy .ptr-ico { animation: ptr-spin .8s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ptr, .ptr-ico { transition: none; } .ptr.busy .ptr-ico { animation: none; } }

/* ===== v3.23.0: Lade-Skelett, eigener Datumsbereich in Matches ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sk-list { display: grid; gap: 8px; padding: 4px 0; }
.sk-row { display: flex; gap: 14px; align-items: center; padding: 12px 14px 12px 12px; border: 1px solid var(--card-border, var(--border));
  border-radius: var(--radius-lg); background: var(--surface); }
.sk-venue { padding: 16px; } .sk-venue .sk-date { display: none; }
.sk-club .sk-date { width: 44px; height: 52px; }
.sk-body { flex: 1; display: grid; gap: 8px; min-width: 0; }
.sk { display: block; border-radius: var(--radius-xs); background: linear-gradient(90deg, var(--surface-3) 25%, color-mix(in srgb, var(--surface-3) 55%, var(--surface)) 45%, var(--surface-3) 65%);
  background-size: 300% 100%; animation: skShimmer 1.3s ease-in-out infinite; }
.sk-date { width: 46px; height: 46px; border-radius: var(--radius); flex: 0 0 auto; }
.sk-l1 { height: 14px; width: min(62%, 420px); }
.sk-l2 { height: 11px; width: min(38%, 260px); }
.sk-row:nth-child(odd) .sk-l1 { width: min(48%, 340px); }
@keyframes skShimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.ev-f-daterow { display: flex; gap: 6px; }
.ev-f-daterow input[type="date"] { min-width: 0; width: 9.6em; }
.ev-sheet-dates { display: flex; gap: 10px; flex-basis: 100%; margin-top: 4px; }
.ev-sheet-dates label { flex: 1; display: grid; gap: 4px; font-size: var(--fs-xs); color: var(--muted); }
.ev-sheet-dates input { width: 100%; min-height: 40px; }

/* ===== v3.23.0: Design-System – Icons, ein Pill-System, Orange nur für Zeitkritisches ===== */
.ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }
.btn .ico, .pill .ico, .news-chip .ico, summary .ico { pointer-events: none; }
.btn > .ico + span, .news-chip > .ico + span, .news-chip > .dot-open + span { margin-left: 6px; }
.pill > .ico { width: 1em; height: 1em; }
.ev-filter-ttl { display: inline-flex; align-items: center; gap: 7px; }
.cal-menu summary .ico, .club-more summary .ico, .club-people summary .ico { width: 18px; height: 18px; }
.club-people summary .ico { width: 16px; height: 16px; }
.ev-mchip-more .ico { width: 18px; height: 18px; }
.sidebar-search-ico .ico, .drill-search-ico .ico { width: 15px; height: 15px; display: block; }
.feedback-ico .ico { width: 18px; height: 18px; display: block; }
.dot-open { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
/* 🔔 gemerkt und ★ Favorit/Club-Tipp sind Zustände, keine Fristen -> nicht orange */
.ev-watch.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong, var(--accent)); }
.ev-watch.on .ico { fill: currentColor; }
.venue-fav { display: inline-grid; place-items: center; }
.venue-fav .ico { width: 22px; height: 22px; }
.venue-fav.on { color: var(--tdt-tan, var(--warn)); }
.venue-fav.on .ico { fill: currentColor; }
.ev-pick.on { color: var(--text); background: color-mix(in srgb, var(--tdt-tan, var(--warn)) 18%, transparent); border: 1px solid var(--tdt-tan, var(--warn)); }

/* Ein Pill-System: Status-Pills (getönt, 22px) und Filter-Chips (36px) teilen Masse; Farben bleiben je Klasse */
:root { --pill-h: 22px; --pill-px: 8px; --fchip-h: 36px; --fchip-px: 14px; }
.pill, .badge, .chip:not(.chip-warn), .disc-chip, .ttg-badge, .ttg-req-badge,
.ammo-shop-badge, .ev-travel-chip, .ev-regopens, .club-new-chip {
  padding: 0 var(--pill-px); min-height: var(--pill-h); line-height: var(--pill-h);
  border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600; box-sizing: border-box;
}
.badge.new-badge, .badge.club-type-tag, .ttg-req-badge, .club-new-chip { font-size: var(--fs-2xs); }
.news-chip, .ev-chip, .club-fchip, .ev-schip {
  display: inline-flex; align-items: center; min-height: var(--fchip-h); padding: 0 var(--fchip-px);
  border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: 600; line-height: 1.2;
}
@media (max-width: 640px) {
  .news-chip, .ev-chip, .club-fchip, .ev-schip { min-height: 44px; }
  .ev-mchip { min-height: 40px; }
}
.club-rec-where .ico, .club-hero-title .ico, .club-cal-row-title .ico, .tl-open-title .ico, .cal-chip-s .ico, .club-row .ico-pin { width: .95em; height: .95em; opacity: .75; }

/* ===== v3.24.0: Vorführkonto ===== */
.demo-ribbon { position: sticky; top: 0; z-index: 1000; display: flex; gap: 8px; align-items: center; justify-content: center;
  flex-wrap: wrap; padding: 5px 12px; font-size: var(--fs-xs); text-align: center;
  background: color-mix(in srgb, var(--accent) 22%, var(--surface)); color: var(--text); border-bottom: 1px solid var(--accent); }
.demo-ribbon b { padding: 1px 8px; border-radius: var(--radius-pill); background: var(--accent); color: #fff; font-size: var(--fs-2xs);
  letter-spacing: .06em; text-transform: uppercase; }

/* v3.26.0: abgesagte Club-Aktivitäten – bleiben sichtbar, Titel durchgestrichen,
   leicht entsättigt, Grund als rotes Band. */
.club-row.is-cancelled, .club-rec-card.is-cancelled, .club-hero.is-cancelled, .club-table tr.is-cancelled { opacity: .72; }
.club-row.is-cancelled .club-row-date, .club-rec-card.is-cancelled .club-rec-bar, .club-hero.is-cancelled .club-hero-bar { filter: grayscale(1); }
.is-cancelled .club-title-text, .club-chip-title.is-cancelled, .club-rec-card.is-cancelled .club-rec-title {
  text-decoration: line-through; text-decoration-color: var(--danger); text-decoration-thickness: 2px; }
.club-cancel-pill { background: var(--danger-soft); color: var(--danger-strong); font-weight: 600; }
.club-row-cancel { margin-top: 2px; font-size: var(--fs-sm); color: var(--danger-strong); }
.club-row-cancel::before { content: "Grund: "; font-weight: 600; }
.club-cancel-banner { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin: 4px 0 8px; padding: 8px 12px;
  border-radius: 10px; background: var(--danger-soft); color: var(--danger-strong); border-left: 4px solid var(--danger); }
.club-hero.is-cancelled { opacity: 1; }
.club-hero.is-cancelled > :not(.club-cancel-banner) { opacity: .7; }
.club-sendit.is-cancelled { color: var(--danger-strong); background: var(--danger-soft); border-color: transparent; cursor: not-allowed; }
.club-cal-day.is-cancelled { text-decoration: line-through; opacity: .6; }
.club-new-chip.is-cancel { background: var(--danger-strong); }
.club-cancel-form input[name=reason] { width: 100%; }
.club-row.is-open .club-row-cancel { display: none; }

/* v3.27.0: Nutzung im Tab Benutzer */
.usage-box { margin: 0 0 18px; }
.usage-bars { display: flex; align-items: flex-end; gap: 3px; height: 64px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.usage-bars i { flex: 1 1 0; min-width: 3px; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .85; }
.usage-bars i.zero { background: var(--border); opacity: 1; }
.usage-note { font-size: var(--fs-xs); margin: 6px 0 0; }

/* v3.28.0: Push-Meldungen im Profil */
.push-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 10px; }
.profile-push .js-push-body { color: var(--text); }
