/* =====================================================================
   AFCA-Design: eigene Gestaltung der AFCA-App.
   Farben aus dem AFCA-Logo (2026): Dunkelblau #05274B · Rot #DF0D20 · Königsblau #004BA8 · Silber #D0D2D4 · Weiß.
   Liegt über style.css (gemeinsame Bausteine) und theme.css (--primary/--accent aus .env).
   ===================================================================== */
:root {
  --mist: #E6EAF0;              /* helles Silber – Text auf Dunkelblau */
  --royal: #004BA8;             /* Königsblau aus dem Logo – Links, Akzente */
  --silver: #D0D2D4;            /* Silber der Logo-Konturen */
  --navy-deep: #05274B;         /* Dunkelblau des Logos – Fußzeile, Bühne */
  --bg: #EEF1F5;
  --ice: #f4f7fa;
  --line: #d3dce7;
  --radius: 6px;
  --shadow: 0 1px 0 rgba(5, 39, 75, .06), 0 2px 10px rgba(5, 39, 75, .06);
  --nav-hover: var(--primary);         /* Schrift Menü bei Mouseover/aktiv */
  --nav-hover-bg: #e3eaf3;              /* Hintergrund Untermenü-Eintrag bei Mouseover */
  --display: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #081a2e; --surface: #0f2440; --ice: #15304f; --line: #24405f; --navy-deep: #051424; --nav-hover: #ffffff; --nav-hover-bg: #1d3d63; }
}
body { background: var(--bg); }

/* Überschriften: schmal, kräftig, in Versalien – wie Stadion-Banner */
h1, h2, .mag-title, .ticket-title, .club-card strong, .quick-tile strong, .brand strong {
  font-family: var(--display); font-stretch: condensed; letter-spacing: .01em;
}
h1, h2 { text-transform: uppercase; font-weight: 800; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.05; }
h2 { font-size: 1.35rem; }
.eyebrow { color: var(--accent); letter-spacing: .12em; }

/* Flaggenstreifen oben und im Footer */
.flag-stripe { display: flex; height: 6px; }
.flag-stripe span { flex: 1; }
.flag-stripe span:nth-child(1) { background: var(--royal); }
.flag-stripe span:nth-child(2) { background: #fff; box-shadow: inset 0 -1px 0 var(--silver), inset 0 1px 0 var(--silver); }
.flag-stripe span:nth-child(3) { background: var(--accent); }

/* Kopfzeile: hell, fest oben, rote Unterstreichung statt Kachel-Hover */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--surface); color: var(--text); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(5, 39, 75, .06); }
.header-inner { min-height: 64px; flex-wrap: nowrap; }
.site-header .wrap { max-width: 1320px; }
@media (max-width: 1240px) { .header-inner { flex-wrap: wrap; } }
.brand { color: var(--primary); }
.brand img { width: 46px; height: 46px; }
/* Logo des Logosets (Bildmarke + Wortmarke) – ersetzt Icon + Text */
.brand .brand-logo { width: auto; height: 56px; display: block; }
@media (max-width: 520px) { .brand .brand-logo { height: 40px; } }
.footer-logo { width: auto; height: 60px; display: block; }
.footer-logo-card { display: inline-block; background: #fff; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; box-shadow: 0 0 0 2px var(--silver); }
@media (prefers-color-scheme: dark) { .brand .brand-logo { background: #fff; border-radius: 8px; padding: 3px 8px; box-sizing: content-box; height: 44px; } }
.brand strong { font-size: 1.6rem; font-weight: 900; color: var(--primary); line-height: 1; }
.brand small { opacity: 1; color: var(--muted); font-size: .78rem; }
.nav a, .nav .linklike, .nav-group > summary { color: var(--text); border-radius: 0; padding: 20px 7px 17px; border-bottom: 3px solid transparent; font-weight: 600; font-size: .93rem; white-space: nowrap; }
.nav a:hover, .nav a.active, .nav .linklike:hover,
.nav-group > summary:hover, .nav-group[open] > summary, .nav-group.active > summary { background: none; border-bottom-color: var(--accent); color: var(--nav-hover); }
.nav .btn { padding: 8px 14px; border-radius: 999px; border: 0; color: #fff; }
.nav .btn:hover { color: #fff; filter: brightness(1.08); }
.nav-sub { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 0 0 8px 8px; top: 100%; }
.nav-sub a { padding: 9px 12px; border-bottom: 0; }
.nav-sub a { color: var(--text); }
.nav-sub a:hover, .nav-sub a:focus-visible, .nav-sub a.active { background: var(--nav-hover-bg); color: var(--nav-hover); border-left: 3px solid var(--accent); padding-left: 9px; }
.nav-toggle { color: var(--primary); border-color: var(--line); }
@media (prefers-color-scheme: dark) {
  .brand strong { color: #9cc0ff; }
}
@media (max-width: 1240px) {
  .nav a, .nav .linklike, .nav-group > summary { padding: 10px 6px; border-bottom: 0; border-left: 3px solid transparent; }
  .nav a.active, .nav-group.active > summary { border-left-color: var(--accent); }
  .nav-sub { border: 0; }
}
body.standalone .site-header, :root:has(body.standalone) .site-header { top: 0; }

/* Bühne (Startseite): Flagge als Vollbild, Text auf dunklem Verlauf */
.hero { position: relative; display: block; padding: 0; margin: 20px 0 0; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); color: #fff; min-height: 420px; }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 31, 64, .94) 0%, rgba(10, 31, 64, .8) 42%, rgba(10, 31, 64, .1) 75%); }
.stage-text { position: relative; z-index: 1; max-width: 560px; padding: 44px 36px; }
/* Startseite ohne Titelbild: schlichter dunkelblauer Kopfbereich, Text über die volle Breite */
.hero-plain { min-height: 0; }
.hero-plain::after { display: none; }
/* Logo Horizontal (Negativ, weiß) als dezentes Wasserzeichen rechts im Kopfbereich – vollständig sichtbar (nicht angeschnitten), reine Deko, Text bleibt darüber */
.hero-plain::before { content: ""; position: absolute; top: 50%; right: 36px; width: min(50%, 620px); aspect-ratio: 414 / 121; transform: translateY(-50%);
  background: url("/img/afca/logo/logo-horizontal-negativ.png") right center / contain no-repeat; opacity: .12; pointer-events: none; }
.hero-plain .stage-text { max-width: 760px; padding: 40px 36px 72px; }
.hero-plain .lead { margin-bottom: 0; }
.stage-text h1 { color: #fff; margin: 0 0 .3em; }
.stage-text .eyebrow { color: var(--mist); opacity: 1; }
.stage-text .lead { color: rgba(255, 255, 255, .88); }
.hero .btn:not(.btn-ghost) { background: var(--accent); border-color: var(--accent); }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .stage-img { position: static; height: 190px; }
  .hero::after { display: none; }
  .stage-text { padding: 22px 18px 24px; max-width: none; }
  .hero-plain .stage-text { padding: 24px 18px; }
  .hero-plain::before { top: auto; bottom: 12px; right: 12px; width: calc(100% - 24px); transform: none; opacity: .08; }
}

/* Schnellzugriff + Termin-Ticket */
.home-split { display: grid; grid-template-columns: 1fr 320px; gap: 16px; margin: -36px 20px 28px; position: relative; z-index: 2; }
@media (max-width: 900px) { .home-split { grid-template-columns: 1fr; margin: 16px 0 24px; } }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 560px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
.quick-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px; background: var(--surface); color: var(--text); text-decoration: none; border-top: 3px solid transparent; }
.quick-tile:hover { border-top-color: var(--accent); background: var(--ice); }
.quick-tile strong { font-size: 1.1rem; text-transform: uppercase; color: var(--primary); }
.quick-tile small { color: var(--muted); }
.quick-num, .quick-ico { font-family: var(--display); font-size: 1.8rem; font-weight: 900; line-height: 1; color: var(--accent); }
.quick-ico { font-size: 1.5rem; }
@media (prefers-color-scheme: dark) { .quick-tile strong { color: #9cc0ff; } }
.ticket { align-self: start; background: var(--primary); color: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.ticket .eyebrow { color: var(--mist); }
.ticket a { color: #fff; font-weight: 600; }
.ticket .muted { color: rgba(255, 255, 255, .78); }
.ticket-body { display: flex; gap: 14px; align-items: center; margin: 8px 0 12px; }
.ticket-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; height: 68px; background: #fff; color: var(--primary); border-radius: 6px; border-top: 6px solid var(--accent); font-family: var(--display); }
.ticket-date span { font-size: 1.8rem; font-weight: 900; line-height: 1; }
.ticket-date small { text-transform: uppercase; font-weight: 700; font-size: .75rem; }
.ticket-title { display: block; font-size: 1.2rem; }

/* Beiträge im Magazin-Raster */
.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.mag-lead { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) { .mag-grid { grid-template-columns: repeat(2, 1fr); } .mag-lead { grid-row: auto; } }
@media (max-width: 560px) { .mag-grid { grid-template-columns: 1fr; } .mag-lead { grid-column: auto; } }
.mag-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mag-card > a { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; }
.mag-img { display: block; aspect-ratio: 16 / 9; background: var(--ice); overflow: hidden; border-bottom: 3px solid var(--accent); }
.mag-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mag-img img.mag-logo { object-fit: contain; padding: 18%; opacity: .5; }
.mag-card:hover .mag-img img { transform: scale(1.03); }
.mag-lead .mag-img { aspect-ratio: 16 / 8; }
.mag-lead .mag-body { flex: 1; justify-content: flex-end; }
.mag-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 16px; }
.mag-title { font-weight: 800; font-size: 1.15rem; line-height: 1.2; color: var(--primary); }
.mag-lead .mag-title { font-size: 1.6rem; text-transform: uppercase; }
.mag-card:hover .mag-title { text-decoration: underline; }
@media (prefers-color-scheme: dark) { .mag-title { color: #9cc0ff; } }
@media (prefers-reduced-motion: reduce) { .mag-img img { transition: none; } }

/* Bestehende Bausteine im AFCA-Stil */
.card { border-radius: var(--radius); }
.btn { border-radius: 999px; }
.section-head h2 { border-left: 5px solid var(--accent); padding-left: 10px; }
.news-card { border-left: 4px solid var(--primary); }
.news-card-title { font-family: var(--display); font-stretch: condensed; font-size: 1.25rem; }
.page-card h1 { border-bottom: 3px solid var(--accent); padding-bottom: 8px; display: inline-block; }

/* Fanclub-Verzeichnis */
.page-hero { position: relative; margin: 20px 0 16px; border-radius: var(--radius); overflow: hidden; background: var(--primary); color: #fff; min-height: 150px; display: flex; align-items: flex-end; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.page-hero-text { position: relative; padding: 24px; }
.page-hero-text h1 { color: #fff; margin: 0; }
.page-hero-text .eyebrow { color: var(--mist); }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.club-card { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; box-shadow: var(--shadow); border-bottom: 3px solid var(--primary); }
.club-card:hover { border-bottom-color: var(--accent); }
.club-card:hover strong { text-decoration: underline; }
.club-body { display: flex; flex-direction: column; min-width: 0; }
.club-card strong { font-size: 1.15rem; color: var(--primary); line-height: 1.15; }
.club-meta { color: var(--muted); font-size: .88rem; }
.club-logo { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--display); font-weight: 900; font-size: 1.3rem; overflow: hidden; border: 3px solid var(--accent); }
.club-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.club-logo-lg { width: 96px; height: 96px; font-size: 2rem; }
.club-profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.club-profile-head h1 { margin: 0; }
.club-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 14px; }
.club-facts div { background: var(--ice); border-radius: var(--radius); padding: 10px 12px; border-left: 3px solid var(--accent); }
.club-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.club-facts dd { margin: 2px 0 0; word-break: break-word; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 600; }
.chip:hover { border-color: var(--accent); }
.crumbs { margin: 18px 0 8px; }
.cta-card { border-top: 4px solid var(--accent); }
.club-logo-preview { border-radius: 50%; }
@media (prefers-color-scheme: dark) { .club-card strong { color: #9cc0ff; } }

/* Fußzeile */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .78); border-top: 0; margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; padding: 32px 16px 18px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand strong { color: #fff; font-family: var(--display); font-size: 1.2rem; text-transform: uppercase; }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; }
.site-footer h2 { font-size: .85rem; letter-spacing: .12em; color: var(--mist); margin: 0 0 4px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); padding: 14px 16px 22px; font-size: .85rem; }

/* Als installierte App: kompakter */
@media (display-mode: standalone) { .hero { min-height: 0; } .stage-img { display: none; } .hero::after { display: none; } .home-split { margin-top: 16px; } }

/* Downloadbereich */
.dl-search input { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; min-width: 220px; }
.dl-manage > summary { cursor: pointer; }
.dl-manage[open] > summary { margin-bottom: 12px; }
.dl-folder-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dl-folder-head h2 { margin: 0 0 8px; }
.dl-folder-edit summary { cursor: pointer; color: var(--primary); }
.dl-folder-edit form { margin-top: 8px; }
.dl-list { list-style: none; margin: 0; padding: 0; }
.dl-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dl-icon { font-size: 1.6rem; line-height: 1; }
.dl-main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; min-width: 0; }
.dl-title { font-weight: 700; word-break: break-word; }
.dl-desc { color: var(--text); }
.dl-item .actions { display: flex; gap: 6px; align-items: center; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--ice); color: var(--text); font: inherit; }
.inline-form input[type=number] { width: 90px; }
.inline-form .grow { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; font-weight: 600; }

/* Konto-Menü (Profil, Mein Fanclub, Admin, Abmelden) */
.nav-group-right .nav-sub { left: auto; right: 0; }
.nav-sub form { display: block; }
.nav-sub .linklike { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; text-decoration: none; color: var(--text); font-weight: 600; }
.nav-sub .linklike:hover, .nav-sub .linklike:focus-visible { background: var(--nav-hover-bg); color: var(--nav-hover); }

/* Live schalten (Abnahme) */
.deploy-log { max-height: 360px; overflow: auto; background: var(--ice); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; font-size: .8rem; white-space: pre-wrap; }
.changelog-preview { background: var(--ice); border-radius: var(--radius); padding: 8px 14px; margin-bottom: 12px; font-size: .92rem; }
.changelog-preview h4 { margin: 6px 0 2px; }
.fallback-row { padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.fallback-row .grow { flex: 1 1 240px; }
.fallback-row input[name=confirm] { width: 110px; }

/* Kalender-Kategorien AFCA: Spiele der Adler · AFCA Sitzungen · Veranstaltungen der Clubs */
:root { --c-session: #9a6b00; --c-club: var(--accent); }
@media (prefers-color-scheme: dark) { :root { --c-session: #f2c200; --c-club: #ff4d57; } }
.cat-dot-session { background: var(--c-session); }
.cat-dot-club { background: var(--c-club); }
.chip-session.active { background: var(--c-session); border-color: var(--c-session); }
.chip-club.active { background: var(--c-club); border-color: var(--c-club); }
.cal-event.ev-session { background: var(--c-session); }
.cal-event.ev-club { background: var(--c-club); }
.event-row.ev-session { border-left-color: var(--c-session); }
.event-row.ev-club { border-left-color: var(--c-club); }
.event-row.ev-session .date-badge { background: var(--c-session); }
.event-row.ev-club .date-badge { background: var(--c-club); }
.ev-session .event-cat { color: var(--c-session); }
.ev-club .event-cat { color: var(--c-club); }

/* Bustouren */
.bus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 20px; }
.bus-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; border-top: 4px solid var(--accent); scroll-margin-top: 90px; }
.bus-card:target { outline: 3px solid var(--accent); }
.bus-date { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 62px; height: 66px; background: var(--primary); color: #fff; border-radius: 6px; font-family: var(--display); }
.bus-date span { font-size: 1.7rem; font-weight: 900; line-height: 1; }
.bus-date small { text-transform: uppercase; font-weight: 700; font-size: .75rem; color: var(--mist); }
.bus-body { min-width: 0; flex: 1; }
.bus-body h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.35rem; margin: 0 0 8px; color: var(--primary); }
.bus-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0 0 10px; }
.bus-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.bus-facts dd { margin: 0; word-break: break-word; }
.bus-signup { grid-column: 1 / -1; }
@media (max-width: 420px) { .bus-facts { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { .bus-body h3 { color: #9cc0ff; } }

/* Berechtigungen (Tabelle mit Häkchen) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--card, #fff); border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.perm-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.perm-table th, .perm-table td { padding: 8px 10px; border-bottom: 1px solid var(--line, #e3e6ec); text-align: left; vertical-align: middle; }
.perm-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #5b6474); white-space: nowrap; position: sticky; top: 0; background: var(--card, #fff); }
.perm-table td.cb { text-align: center; }
.perm-table td.cb input { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; }
.perm-table td.cb input:disabled { cursor: not-allowed; opacity: .45; }
.perm-table tr.row-pending { background: rgba(232, 176, 0, .08); }
.perm-table tr.row-blocked { color: var(--muted, #5b6474); }
.perm-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg, #f3f4f7) 30%); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 12px 0; }
.filter-bar label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
.code-input { font-size: 1.6rem; letter-spacing: .35em; text-align: center; max-width: 12ch; }

/* Häkchen „Berechtigungen“ je Konto (Admin → Mitglieder, Mein Fanclub) */
.perm-boxes { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; min-width: 220px; max-width: 360px; }
.perm-box { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; white-space: nowrap; cursor: pointer; }
.perm-box input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; cursor: pointer; }
.perm-box.is-locked { opacity: .5; cursor: not-allowed; }
.perm-box.is-locked input { cursor: not-allowed; }
.perm-msg { flex-basis: 100%; min-height: 1.2em; }
.perm-msg.perm-ok { color: #1d7a3a; }
.perm-msg.perm-err { color: var(--accent); font-weight: 600; }

/* Dunkelmodus: Schrift in „Dunkelblau“ (#05274B) wäre auf dunklem Grund unlesbar → helles Blau.
   Flächen in --primary (Ticket, Datums-Kacheln, Buttons) bleiben dunkelblau mit weißer Schrift. */
@media (prefers-color-scheme: dark) {
  .brand, .nav-toggle, .quick-tile strong, .mag-title, .club-card strong, .dl-folder-edit summary, .bus-body h3,
  .linklike, .calendar td.has-events .day, .msg-head strong, .mention, .event-main h3, .tag-home, .news-card-title,
  .activity-card:hover strong { color: #a9c6f0; }
  .nav-toggle { border-color: #3a5878; }
  .ticket-date { color: var(--primary); } /* weiße Kachel – Schrift bleibt dunkelblau */
}
.upload-note { display: block; color: var(--accent); font-weight: 600; margin-top: 4px; }

/* Beiträge: Reiter „Aktuell | Archiv“ als Karteireiter, Jahre im Archiv als Chips */
.tabs:not(.tabs-sub) { gap: 0; border-bottom: 2px solid var(--line); margin-bottom: 16px; }
.tabs:not(.tabs-sub) .tab { border: 0; border-radius: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 10px 18px; font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; background: none; color: var(--text); }
.tabs:not(.tabs-sub) .tab:hover { color: var(--nav-hover); background: var(--nav-hover-bg); }
.tabs:not(.tabs-sub) .tab.active { color: var(--nav-hover); background: none; border-bottom-color: var(--accent); }
.tabs-sub .tab { background: var(--surface); }
.tabs-sub .tab:hover { background: var(--nav-hover-bg); color: var(--nav-hover); }
.tab-count { display: inline-block; min-width: 1.6em; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--ice); color: var(--muted); font-size: .78rem; font-family: system-ui, sans-serif; text-align: center; }
.tab.active .tab-count { background: var(--accent); color: #fff; }
.tabs-sub .tab.active, .tabs-sub .tab.active:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
@media (prefers-color-scheme: dark) { .tabs-sub .tab.active, .tabs-sub .tab.active:hover { background: #1d3d63; border-color: #a9c6f0; } }

/* Links im Inhalt in Königsblau (Logo), Hover dunkelblau */
main a:not(.btn):not(.tab):not(.card):not(.cal-event):not(.club-card):not(.quick-tile):not(.event-row) { color: var(--royal); }
main a:not(.btn):not(.tab):not(.card):not(.cal-event):not(.club-card):not(.quick-tile):not(.event-row):hover { color: var(--primary); }
@media (prefers-color-scheme: dark) {
  main a:not(.btn):not(.tab):not(.card):not(.cal-event):not(.club-card):not(.quick-tile):not(.event-row) { color: #8db8ff; }
  main a:not(.btn):not(.tab):not(.card):not(.cal-event):not(.club-card):not(.quick-tile):not(.event-row):hover { color: #fff; }
}

/* Startseite: rechte Spalte (nächster Termin + aktuelle Umfragen) */
/* Raster: links Kacheln und darunter die Beiträge, rechts über beide Zeilen Termin + Umfragen; mobil: Kacheln, Termin/Umfragen, Beiträge */
.home-split { grid-template-areas: "tiles side" "news side"; grid-template-rows: auto 1fr; }
.home-split > .quick-grid { grid-area: tiles; align-self: start; }
.home-side { grid-area: side; }
.home-news { grid-area: news; min-width: 0; margin-top: 12px; }
@media (max-width: 900px) { .home-split { grid-template-areas: "tiles" "side" "news"; grid-template-rows: auto; } .home-news { margin-top: 8px; } }
.home-side { display: flex; flex-direction: column; gap: 16px; align-self: start; min-width: 0; }
.side-polls { margin: 0; padding: 18px 20px; }
.side-poll-list { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 12px; }
.side-poll-list li { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.side-poll-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-poll-q { font-weight: 700; line-height: 1.3; }
.side-poll-list .meta { font-size: .85rem; }
.side-poll-list .tag { justify-self: start; text-decoration: none; }
.side-polls .btn { margin-top: 8px; }
.side-more { font-weight: 600; }

/* Offene Umfragen: Freitext-Antworten (ohne Namen) */
.answer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.answer { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--bg, transparent); }
.answer .prose > :first-child { margin-top: 0; }
.answer .prose > :last-child { margin-bottom: 0; }
.answer .meta { margin: 8px 0 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.answer-own { border-color: var(--ok, #2e7d32); }
.privacy-note a { white-space: nowrap; }
.answer .meta form.inline { display: inline-flex; margin: 0; }
main .ticket a:not(.btn):not(.tab):not(.card):not(.cal-event):not(.club-card):not(.quick-tile):not(.event-row) { color: #fff; } /* Link im Termin-Ticket lesbar auf Dunkelblau */

/* Bustouren 2.0: Detailseite, Preise, Anmeldung mit Mitfahrenden, Verwaltung */
.bus-body h3 a { color: inherit; text-decoration: none; }
.bus-body h3 a:hover { text-decoration: underline; }
.bus-detail { margin-bottom: 16px; }
.bus-title { font-family: var(--display); text-transform: uppercase; font-size: 1.8rem; margin: 0 0 12px; color: var(--primary); }
.bus-prices { grid-column: 1 / -1; }
.bus-prices dd { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .row-3 { grid-template-columns: 1fr; } }
.passengers { display: grid; gap: 10px; }
.passenger-row { display: grid; grid-template-columns: 1fr 1fr 90px 1.3fr; gap: 10px; align-items: end; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
@media (max-width: 760px) { .passenger-row { grid-template-columns: 1fr 1fr; } }
.consent span { font-size: .92rem; }
.bus-form [hidden] { display: none !important; }
.reg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.reg-item { border: 1px solid var(--line); border-left: 4px solid var(--warn, #b26a00); border-radius: var(--radius); padding: 12px 14px; }
.reg-item.reg-confirmed { border-left-color: var(--ok, #2e7d32); }
.reg-item.reg-unverified { opacity: .75; }
.reg-item ul { margin: 6px 0; padding-left: 18px; }
.reg-item .actions { margin-top: 8px; }
.bus-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.bus-stats span { background: var(--ice); border-radius: 999px; padding: 4px 12px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .bus-title { color: #9cc0ff; } }

/* Spielerpaten: je Fanclub eine Karte mit „#Nr Vorname Nachname“ */
.paten-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.paten-club { margin: 0; border-top: 4px solid var(--accent); }
.paten-club h3 { margin: 0 0 10px; font-family: var(--display); text-transform: uppercase; }
.paten-club h3 a { color: var(--primary); text-decoration: none; }
.paten-players { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.paten-players li { display: flex; gap: 10px; align-items: baseline; }
.paten-nr { flex: none; min-width: 42px; font-family: var(--display); font-weight: 900; font-size: 1.15rem; color: var(--accent); }
.paten-table { width: 100%; border-collapse: collapse; }
.paten-table th, .paten-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.paten-table select { width: 100%; min-width: 160px; }
.paten-missing td { opacity: .7; }
.paten-text { margin-top: 14px; }
@media (prefers-color-scheme: dark) { .paten-club h3 a { color: #9cc0ff; } }

/* Zähler „Nächste Auswärtsfahrten (n)“ */
.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6em; height: 1.6em; padding: 0 .45em; margin-left: .3em; border-radius: 999px; background: var(--accent); color: #fff; font-size: .7em; vertical-align: middle; }

/* Sprecher*innen */
.speaker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.speaker-card { margin: 0; text-align: center; border-top: 4px solid var(--accent); }
.speaker-card h2 { font-size: 1.15rem; margin: 10px 0 4px; }
.speaker-card .meta { margin: 0; }
.speaker-avatar { display: inline-flex; align-items: center; justify-content: center; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: var(--ice); color: var(--primary); font-family: var(--display); font-size: 2.4rem; font-weight: 900; }
.speaker-admin { padding-left: 20px; display: grid; gap: 8px; margin-bottom: 16px; }
.speaker-admin li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.speaker-admin .actions { margin: 0; }
