/* =====================================================================
   VfB Live – Design (Vereinsfarben hier anpassen)
   ===================================================================== */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("../fonts/Inter-ExtraBold.woff") format("woff"); }
/* Überschriften-Schrift der Vereinsseite (ABeeZee, SIL Open Font License) – lokal, nicht von Google */
@font-face { font-family: "ABeeZee"; font-weight: 400; font-display: swap; src: url("../fonts/ABeeZee-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 900; font-display: swap; src: url("../fonts/InterDisplay-Black.woff") format("woff"); }

:root {
  --navy: #003267;        /* VfB-Dunkelblau (Corporate Design vfb-fallersleben.de) */
  --navy-2: #004179;      /* VfB-Blau */
  --navy-3: #004972;
  --blue: #004179;        /* Buttons & Links */
  --grey-cd: #a1a1a1;     /* Grau der Schrägstreifen */
  --r: 3px;               /* eckige Formen wie auf der Vereinsseite */
  --live: #e11d48;
  --win: #16a34a;
  --draw: #94a3b8;
  --loss: #dc2626;
  --bg: #f2f4f8;
  --card: #ffffff;
  --text: #003267;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --radius: 3px;
  --shadow: 0 6px 24px rgba(23, 35, 66, .08), 0 1px 2px rgba(23, 35, 66, .06);
  --display: "ABeeZee", "Inter Display", "Inter", system-ui, sans-serif;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* ---------- Kopfbereich ---------- */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.top-inner { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 14px; height: 70px; text-decoration: none; color: #fff; }
.brand .club-logo { height: 50px; width: auto; }
.brand .divider { width: 1px; align-self: stretch; margin: 14px 0; background: rgba(255,255,255,.35); }
.brand-text b { display: block; font-size: 17px; font-weight: 800; letter-spacing: .01em; }
.brand-text small { display: block; font-size: 12px; opacity: .75; margin-top: 2px; font-weight: 600; }
.brand h1 { font-size: 17px; margin: 0; font-weight: 800; }
.brand .spacer { flex: 1; }
.brand a.link, .brand .link { color: #fff; opacity: .75; font-size: 13px; text-decoration: none; }
.burger { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-content: center; gap: 7px; padding: 0; }
.burger i { display: block; width: 30px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
body.menu-open .burger i:nth-child(1) { transform: translateY(9px) rotate(45deg); }
body.menu-open .burger i:nth-child(2) { opacity: 0; }
body.menu-open .burger i:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.crest { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 900; font-size: 13px; }

/* Mannschafts-Leiste */
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; background: var(--navy-2); margin: 0 -16px; padding: 0 10px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button {
  background: none; border: 0; color: #fff; opacity: .7; padding: 12px 12px 11px; cursor: pointer;
  font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  border-bottom: 3px solid transparent; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.tabs .on { opacity: 1; border-color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.2s infinite; display: inline-block; }

/* Menü */
.menu { position: fixed; inset: 0; z-index: 25; background: var(--navy); color: #fff; padding: calc(190px + env(safe-area-inset-top)) 24px 40px; overflow-y: auto;
  transform: translateY(-100%); transition: transform .25s ease; }
body.menu-open .menu { transform: none; }
body.menu-open { overflow: hidden; }
.menu a { display: block; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 26px; text-transform: uppercase; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.menu a.sub { font-family: inherit; font-weight: 600; font-size: 15px; text-transform: none; opacity: .75; border: 0; padding: 8px 0; }
.menu .menu-inner { max-width: 712px; margin: 0 auto; }

main { max-width: 760px; margin: 0 auto; padding: 16px; }
.empty { text-align: center; color: var(--muted); padding: 36px 16px; }

/* ---------- Abschnitts-Überschriften (zentriert mit Linien) ---------- */
.sec-title, h2.section {
  display: flex; align-items: center; gap: 14px; margin: 34px 0 16px; color: var(--navy);
  font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; justify-content: center; text-align: center;
}
.sec-title::before, .sec-title::after, h2.section::before, h2.section::after { content: ""; flex: 1; height: 1px; background: #cbd5e1; }
h2.section a, .sec-title a { display: none; }
.more { text-align: center; margin: 14px 0 0; }

/* ---------- Seitenkopf (Mannschaft) ---------- */
.page-band { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; border-radius: var(--radius); padding: 22px 20px; position: relative; overflow: hidden; margin-bottom: 6px; }
.page-band h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 34px; margin: 0; letter-spacing: .01em; line-height: 1; }
.page-band p { margin: 8px 0 0; opacity: .8; font-weight: 600; font-size: 14px; }
.page-band .club-logo { position: absolute; right: -20px; top: 50%; transform: translateY(-50%); height: 150%; opacity: .12; }
.page-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 30px; margin: 6px 0 4px; color: var(--navy); }
.lead { color: var(--body); margin: 0 0 8px; }
a.back { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; padding: 2px 0 14px; }

/* ---------- News-Slider ---------- */
.slider { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 18px; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 88%; max-width: 560px; scroll-snap-align: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.slide-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: block; background: var(--navy); }
.ph { aspect-ratio: 16 / 9; background: radial-gradient(circle at 80% 20%, var(--navy-3), var(--navy) 70%); position: relative; overflow: hidden; display: grid; place-items: center; }
.ph .club-logo { position: absolute; height: 120%; right: -12%; opacity: .1; }
.ph span { font-family: var(--display); font-weight: 900; color: #fff; text-transform: uppercase; font-size: clamp(26px, 8vw, 44px); line-height: .95; text-align: center; padding: 0 20px; position: relative; letter-spacing: .01em; }
.ph em { display: block; font-style: normal; font-size: .45em; letter-spacing: .12em; opacity: .8; margin-top: 8px; font-family: "Inter", sans-serif; font-weight: 800; }
.slide-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.slide-body h3 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 800; color: var(--navy); }
.meta-line { font-size: 13px; font-weight: 600; color: var(--navy); margin-top: 8px; opacity: .85; }
.slide-body p { margin: 10px 0 18px; color: var(--body); font-size: 15px; line-height: 1.5; }
.cta { margin-top: auto; align-self: flex-start; display: inline-flex; gap: 10px; align-items: center; background: var(--blue); color: #fff; text-decoration: none; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 12px 16px; border-radius: var(--r); border: 0; cursor: pointer; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: -4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.dots i.on { background: none; border: 2px solid var(--navy); width: 12px; height: 12px; margin-top: -2px; }

/* ---------- Spieltag / Match-Center ---------- */
.mc { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.team-tabs { display: flex; justify-content: center; background: var(--bg); padding-top: 4px; overflow-x: auto; scrollbar-width: none; }
.team-tabs button { border: 0; background: none; padding: 12px 14px; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); cursor: pointer; white-space: nowrap; border-radius: 8px 8px 0 0; }
.team-tabs button.on { background: var(--card); }
.md { padding: 22px 12px 18px; }
.md-row { display: grid; grid-template-columns: 28px 1fr auto 1fr 28px; align-items: center; gap: 6px; }
.md-state { margin-bottom: 8px; }
.md-arrow { border: 0; background: none; font-size: 26px; color: var(--navy); cursor: pointer; padding: 0; height: 44px; }
.md-arrow:disabled { opacity: .2; }
.md-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 800; font-size: 14px; color: var(--navy); min-width: 0; }
.md-team .club-logo { height: 52px; width: auto; }
.md-team .opp-crest { width: 52px; height: 52px; font-size: 16px; }
.opp-crest { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #e8edf5; color: var(--navy); font-weight: 900; font-size: 18px; border: 2px solid #d5deeb; flex: none; }
.md-score { font-family: var(--display); font-weight: 900; font-size: 44px; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.md-score em { font-style: normal; color: #94a3b8; margin: 0 4px; }
.md-info { text-align: center; color: var(--navy); font-size: 14px; margin-top: 16px; line-height: 1.6; }
.md-info b { font-weight: 600; }
.md-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pill-link { border: 1.5px solid var(--navy); color: var(--navy); text-decoration: none; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: var(--r); }
.pill-link.solid { background: var(--navy); color: #fff; }
.pill-link.live { background: var(--live); border-color: var(--live); color: #fff; }
.countdown { display: flex; gap: 5px; }
.cd { text-align: center; }
.cd b { display: flex; gap: 2px; }
.cd b span { background: #1f2937; color: #fff; font-weight: 800; font-size: 17px; width: 18px; height: 30px; display: grid; place-items: center; border-radius: 3px; font-variant-numeric: tabular-nums; box-shadow: inset 0 -16px 0 rgba(255,255,255,.06); }
.cd small { display: block; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* Formkurve „Die letzten Spiele“ */
.form { padding: 6px 14px 20px; }
.form-grid { display: grid; grid-template-columns: 22px repeat(5, 1fr); grid-template-rows: repeat(3, 46px); position: relative; }
.form-grid .lbl { grid-column: 1; display: flex; align-items: center; font-weight: 800; color: var(--navy); font-size: 14px; }
.form-grid .hl { grid-column: 2 / -1; border-top: 1px solid #cbd5e1; align-self: center; }
.form-grid .cell { display: grid; place-items: center; position: relative; z-index: 1; }
.form-grid .vl { border-left: 1px solid #e2e8f0; grid-row: 1 / -1; justify-self: center; height: 100%; }
.form-grid .opp-crest { width: 36px; height: 36px; font-size: 11px; box-shadow: 0 0 0 4px var(--card); }
.form-res { display: grid; grid-template-columns: 22px repeat(5, 1fr); margin-top: 10px; }
.form-res a { justify-self: center; text-align: center; text-decoration: none; }
.form-res .res { display: inline-block; }
.form-res small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 600; }

/* ---------- Karten, Anzeigetafel, Ticker ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.card-head b { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.card-body { padding: 16px; }
.card-foot { padding: 4px 16px 16px; display: flex; gap: 8px; flex-wrap: wrap; }

.badge { font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 5px 9px; border-radius: var(--r); background: var(--line); color: var(--muted); white-space: nowrap; text-transform: uppercase; }
.badge.live { background: var(--live); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.badge.live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.badge.done { background: var(--navy); color: #fff; }
@keyframes pulse { 50% { opacity: .25; } }

.sb { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 800; font-size: 14px; min-width: 0; }
.sb-team span:last-child { overflow-wrap: anywhere; }
.sb-team .club-logo { height: 52px; width: auto; }
.sb-team .opp-crest { width: 52px; height: 52px; font-size: 16px; }
.sb-score { font-family: var(--display); font-size: 40px; font-weight: 900; font-variant-numeric: tabular-nums; display: flex; gap: 6px; align-items: center; }
.sb-score em { font-style: normal; color: #94a3b8; font-weight: 400; }
.sb-score .vs { font-size: 18px; }
.sb.big .sb-score { font-size: 54px; }
.sb.big .club-logo { height: 70px; }
.sb.big .opp-crest { width: 70px; height: 70px; font-size: 20px; }
.sb.win .sb-score b { color: var(--win); }
.sb.loss .sb-score b { color: var(--loss); }

.feed { list-style: none; margin: 0; padding: 0; }
.ev { display: grid; grid-template-columns: 48px 30px 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; }
.ev:first-child { border-top: 0; }
.ev-min { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy); padding-top: 1px; }
.ev-icon { font-size: 18px; line-height: 1.2; }
.ev-title { font-weight: 800; }
.ev-sub { font-size: 14px; margin-top: 2px; }
.ev-text { font-size: 14px; color: var(--body); margin-top: 3px; line-height: 1.45; }
.ev-video { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; background: var(--navy); color: #fff; padding: 6px 10px; border-radius: var(--r); }
.ev-tor { background: linear-gradient(90deg, rgba(22,163,74,.10), transparent 70%); }
.ev-tor .ev-title { color: var(--win); font-size: 17px; }
.ev-status .ev-title { color: var(--muted); font-weight: 600; }
.ev-actions { margin-top: 8px; display: flex; gap: 6px; }

.gameday { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 8px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--muted); }

/* Listen */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); cursor: pointer; color: inherit; text-decoration: none; }
.row:first-child { border-top: 0; }
.row:hover { background: #f8fafc; }
.row .meta { font-size: 12px; color: var(--muted); font-weight: 600; }
.row .opp { font-weight: 800; margin-top: 2px; }
.res { font-weight: 900; font-variant-numeric: tabular-nums; padding: 5px 10px; border-radius: var(--r); color: #fff; background: var(--draw); font-size: 14px; }
.res.win { background: var(--win); } .res.loss { background: var(--loss); }

/* Weitere News (Liste) */
.news { display: grid; gap: 12px; }
.news a { display: grid; grid-template-columns: 110px 1fr; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; min-height: 96px; }
.news .thumb { width: 100%; height: 100%; object-fit: cover; }
.news .ph { aspect-ratio: auto; height: 100%; }
.news .ph span { font-size: 12px; letter-spacing: .08em; }
.news .ph .club-logo { height: 140%; right: -30%; }
.news-body { padding: 12px 14px; min-width: 0; }
.news-body h3 { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 800; color: var(--navy); }
.news-body .meta-line { margin-top: 6px; font-size: 12px; }
.news-body p { margin: 4px 0 0; font-size: 14px; color: var(--body); }

.kind { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: var(--r); background: var(--line); color: var(--navy); }
.kind-vorbericht { background: #dbeafe; color: #1e40af; }
.kind-spielbericht { background: #dcfce7; color: #166534; }
.kind-trainer { background: #fef3c7; color: #92400e; }
.kind-news { background: #ede9fe; color: #5b21b6; }

/* Artikel */
.article h1 { font-size: 26px; line-height: 1.2; margin: 10px 0 6px; font-weight: 800; color: var(--navy); }
.article-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.article-body { font-size: 17px; line-height: 1.7; color: #1e293b; }
.article-body p { margin: 0 0 16px; }
.post-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }

/* Statistik */
table.stats { width: 100%; border-collapse: collapse; font-size: 14px; }
table.stats th, table.stats td { padding: 10px 8px; text-align: center; border-top: 1px solid var(--line); }
table.stats th { font-size: 11px; color: var(--muted); border-top: 0; text-transform: uppercase; letter-spacing: .06em; }
table.stats td:first-child, table.stats th:first-child { text-align: left; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--card); border-radius: var(--radius); padding: 14px 6px; text-align: center; box-shadow: var(--shadow); }
.kpi b { display: block; font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--navy); }
.kpi span { font-size: 11px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

/* Sponsoren */
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.partners a { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); display: grid; place-items: center; padding: 18px 14px; min-height: 120px; text-decoration: none; }
.sp-logo { max-height: 70px; max-width: 100%; object-fit: contain; display: block; }
.sp-logo.sm { max-height: 36px; max-width: 80px; }
.sp-logo.xs { max-height: 24px; max-width: 110px; }
.sp-txt { font-weight: 900; font-family: var(--display); color: var(--navy); font-size: 17px; text-align: center; line-height: 1.15; text-transform: uppercase; }
.sp-logo.sm.sp-txt { font-size: 11px; width: 80px; }
.sp-logo.xs.sp-txt { font-size: 12px; }
.sponsors { display: grid; gap: 12px; }
.sponsor { display: grid; grid-template-columns: 120px 1fr; align-items: center; margin: 0; }
.sponsor-logo { display: grid; place-items: center; padding: 14px; height: 100%; border-right: 1px solid var(--line); }
.tier-haupt .sponsor { grid-template-columns: 1fr; }
.tier-haupt .sponsor-logo { border-right: 0; border-bottom: 1px solid var(--line); padding: 30px; }
.tier-haupt .sp-logo { max-height: 100px; max-width: 280px; }
.tier-haupt .sp-txt { font-size: 28px; }
.post-title { font-weight: 800; font-size: 16px; margin-top: 2px; line-height: 1.3; }
.post-teaser { font-size: 14px; color: var(--body); margin-top: 4px; line-height: 1.45; }

/* ---------- Fußbereich ---------- */
.foot { background: var(--navy); color: #fff; margin-top: 40px; padding: 36px 16px calc(36px + env(safe-area-inset-bottom)); text-align: center; }
.foot .club-logo { height: 90px; width: auto; }
.foot nav { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 22px 0 10px; }
.foot a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.foot small { display: block; opacity: .6; margin-top: 14px; }

/* ---------- Buttons & Formulare ---------- */
.btn { border: 0; border-radius: var(--r); padding: 10px 14px; font-weight: 800; cursor: pointer; background: var(--line); color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; justify-content: center; font-size: 14px; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.blue { background: var(--blue); color: #fff; }
.btn.danger { background: #fee2e2; color: var(--loss); }
.btn.small { padding: 7px 11px; font-size: 12px; letter-spacing: .03em; }
.btn:disabled { opacity: .5; cursor: default; }
label.f { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 4px; }
.in { width: 100%; padding: 11px 12px; border-radius: var(--r); border: 1px solid #cbd5e1; background: #fff; font-size: 16px; color: var(--text); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.err { color: var(--loss); font-weight: 600; margin-top: 10px; }
.demo { background: #fef3c7; color: #78350f; font-size: 12px; padding: 7px 16px; text-align: center; }
.demo button { margin-left: 6px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 8px 14px; font-weight: 800; font-size: 13px; cursor: pointer; white-space: nowrap; color: var(--text); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }

/* ---------- Ticker-Eingabe ---------- */
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick button { border: 0; border-radius: var(--r); padding: 18px 8px; font-size: 17px; font-weight: 800; cursor: pointer; background: #fff; box-shadow: var(--shadow); color: var(--text); }
.quick .goal { background: var(--win); color: #fff; grid-column: span 2; font-size: 22px; padding: 24px 8px; }
.quick .against { color: var(--loss); box-shadow: inset 0 0 0 2px var(--loss); }
.quick button:active { transform: scale(.97); }
.phase { width: 100%; padding: 16px; font-size: 18px; margin: 14px 0 6px; }
.minute-now { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; }
.login { max-width: 400px; margin: 40px auto; }
dialog { border: 0; border-radius: var(--r); padding: 0; width: min(520px, 94vw); max-height: 92vh; box-shadow: 0 20px 60px rgba(0,0,0,.35); color: var(--text); }
dialog::backdrop { background: rgba(23,35,66,.6); }
dialog form { padding: 20px; max-height: 92vh; overflow-y: auto; }
dialog h3 { margin: 0 0 4px; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.phrases { display: flex; flex-wrap: wrap; gap: 6px; }
.phrase { border: 1px solid #cbd5e1; background: #fff; border-radius: var(--r); padding: 7px 11px; font-size: 14px; cursor: pointer; color: var(--text); text-align: left; }
.phrase.used { background: #dbeafe; border-color: #93c5fd; }
.check { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-weight: 600; }
.check input { width: 20px; height: 20px; }
.img-pick { display: grid; gap: 8px; justify-items: start; }
.img-pick img { max-width: 100%; max-height: 160px; border-radius: var(--r); border: 1px solid var(--line); }
.ai-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
@media (min-width: 760px) { .quick { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Einbett-Widget ---------- */
body.embed { background: transparent; }
body.embed main { padding: 0; }
.w-card { background: #fff; border-radius: var(--r); border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 10px; color: var(--text); text-decoration: none; display: block; }
.w-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.w-card .sb-score { font-size: 30px; }
.w-card .club-logo { height: 42px; }
.w-card .opp-crest { width: 42px; height: 42px; font-size: 13px; }
.w-last { font-size: 13px; margin-top: 10px; color: var(--body); border-top: 1px solid var(--line); padding-top: 8px; }
.w-foot { text-align: right; font-size: 12px; font-weight: 800; }

.sec-title.live { color: var(--live); }

/* =====================================================================
   Ticker-Eingabe: Spieltags-Cockpit
   ===================================================================== */
.top-inner.wide, main.wide { max-width: 1520px; }
body.cockpit-mode { background: #e8edf4; }
body.cockpit-mode .top, body.ticker-page .top { position: static; }
.matchbar { background: var(--navy-2); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.mb-inner { max-width: 1520px; margin: 0 auto; padding: 10px 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.mb-inner > * { min-width: 0; }
.mb-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mb-tabs button, .mb-tabs a { background: rgba(255,255,255,.08); border: 0; color: #fff; font-weight: 800; font-size: 13px; padding: 9px 12px; border-radius: var(--r); cursor: pointer; white-space: nowrap; text-decoration: none; }
.mb-tabs .on { background: #fff; color: var(--navy); }
.mb-center { text-align: center; }
.mb-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .04em; font-size: 17px; }
.mb-match { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 6px; }
.mb-match label { font-size: 13px; opacity: .8; }
.mb-match select { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: var(--r); padding: 7px 10px; font-weight: 700; max-width: 320px; }
.mb-match select option { color: var(--text); }
.mb-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.mb-btn { border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-weight: 800; font-size: 14px; padding: 10px 14px; border-radius: var(--r); cursor: pointer; white-space: nowrap; }
.mb-btn.ghost { padding: 6px 10px; font-size: 14px; }
.mb-btn.start { background: #fff; color: var(--navy); border-color: #fff; }
.mb-btn.stop { background: var(--live); border-color: var(--live); }
.mb-btn.full { background: #15803d; border-color: #15803d; }
body.cockpit-mode main { padding-top: 16px; }

.cockpit { display: grid; gap: 14px; align-items: start;
  grid-template-columns: minmax(300px, 1fr) minmax(380px, 1.3fr) minmax(330px, 1.1fr);
  grid-template-areas: "stats elf mom" "stats vfb opp"; }
.ck { background: #fff; border-radius: var(--r); border: 1px solid #dbe3ee; box-shadow: 0 2px 8px rgba(23,35,66,.05); padding: 16px; min-width: 0; }
.ck-score { flex: none; }
.ck-stats { grid-area: stats; }
.ck-elf { grid-area: elf; align-self: stretch; }
.ck-mom { grid-area: mom; align-self: stretch; }
.ck-act.vfb { grid-area: vfb; align-self: stretch; }
.ck-act.opp { grid-area: opp; align-self: stretch; }
.ck-h { font-weight: 800; font-size: 16px; color: var(--navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ck-h.center { justify-content: center; }
.ck-h small { font-weight: 600; color: var(--muted); }
.ck-h .btn { margin-left: auto; }
.hint { font-size: 12px; color: var(--muted); margin: -2px 0 10px; }
.warnhint { background: #fef3c7; color: #92400e; padding: 8px 10px; border-radius: var(--r); margin: 0 0 10px; }

/* Uhr & Spielstand */
.clock { font-family: var(--display); font-weight: 900; font-size: 46px; text-align: center; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1; }
.clock-sub { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; }
.ck-sb { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; background: #f3f6fa; border-radius: var(--r); padding: 14px 10px; margin-top: 14px; }
.ck-team { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; text-align: center; min-width: 0; overflow-wrap: anywhere; }
.ck-team .club-logo { height: 44px; }
.ck-team .opp-crest { width: 44px; height: 44px; font-size: 14px; background: #fde2e4; border-color: #f9c3c8; color: #9f1239; }
.ck-res { font-family: var(--display); font-weight: 900; font-size: 44px; color: var(--navy); font-variant-numeric: tabular-nums; }
.ck-res em { font-style: normal; color: #94a3b8; margin: 0 4px; }

/* Segmente */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #eef2f7; border-radius: var(--r); padding: 3px; margin-bottom: 12px; }
.seg button { border: 0; background: none; padding: 8px; font-weight: 800; font-size: 13px; color: var(--navy); border-radius: var(--r); cursor: pointer; }
.seg button.on { background: var(--navy); color: #fff; }
.seg.sm { margin: 0; display: inline-grid; }
.seg.sm button { padding: 5px 10px; font-size: 12px; }

/* Vergleichszeilen mit +/- */
.cmp { display: grid; grid-template-columns: 112px 1fr 112px; gap: 8px; align-items: center; padding: 5px 0; }
.cmp.xg { padding: 6px 0; }
.cnt { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; border-radius: var(--r); height: 38px; }
.cnt.vfb { background: #e7efff; } .cnt.gegner { background: #fdecee; }
.cnt.ro { grid-template-columns: 1fr; text-align: center; }
.cnt b { text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--navy); }
.cnt.gegner b { color: #9f1239; }
.cnt button { border: 0; background: rgba(255,255,255,.7); height: 30px; width: 28px; margin: 0 2px; border-radius: var(--r); font-size: 18px; font-weight: 800; color: var(--navy); cursor: pointer; }
.cnt button:active { transform: scale(.92); }
.cmp-mid { text-align: center; min-width: 0; }
.cmp-mid span { font-size: 12.5px; font-weight: 800; color: var(--navy); display: block; }
.cmp-bar { height: 4px; border-radius: var(--r); background: #fecdd3; margin-top: 5px; overflow: hidden; }
.cmp-bar i { display: block; height: 100%; background: #3b6fe0; border-radius: var(--r); }
.cmp-bar.inv { background: #c7d6f6; } .cmp-bar.inv i { background: #f87171; }
.sync { font-size: 12px; color: var(--muted); margin-top: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dot-ok { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; display: inline-block; box-shadow: 0 0 0 3px #dcfce7; }

/* Aktuelle Elf */
.elf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pt { position: relative; border: 1px solid #dbe3ee; background: #f8fafc; border-radius: var(--r); padding: 14px 4px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--navy); min-width: 0; }
.pt b { font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1.1; }
.pt span { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.pt small { font-size: 10px; color: var(--muted); }
.pt.on { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 0 0 3px #bfd3ff; }
.pt.on small { color: #cbd5e1; }
.pt-min { position: absolute; top: 5px; left: 7px; font-size: 10px; font-weight: 800; color: var(--muted); }
.pt.on .pt-min { color: #cbd5e1; }
.pt-ok { position: absolute; top: 5px; right: 6px; font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--navy); font-size: 11px; font-weight: 900; display: grid; place-items: center; }
.pt-card { position: absolute; top: 6px; right: 8px; width: 9px; height: 12px; border-radius: 2px; background: #facc15; }
.pt-card.red { background: #dc2626; }
.pt.on .pt-card { right: 28px; }
.bench { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.bench span { font-weight: 800; color: var(--navy); }
.psel { margin-top: 14px; background: #f3f6fa; border: 1px solid #dbe3ee; border-radius: var(--r); padding: 12px; }
.psel.empty-sel { font-size: 13px; color: var(--muted); text-align: center; }
.psel-h small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.psel-h b { font-size: 15px; color: var(--navy); }
.psel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.psel-grid div { background: #fff; border-radius: var(--r); text-align: center; padding: 6px 4px; border: 1px solid #e2e8f0; }
.psel-grid b { display: block; font-size: 17px; color: var(--navy); font-variant-numeric: tabular-nums; }
.psel-grid span { font-size: 10px; color: var(--muted); font-weight: 600; }
.psel-grid .rate { background: #dcfce7; border-color: #bbf7d0; } .psel-grid .rate b { color: #166534; }
.psel-grid .xgv { background: #e7efff; border-color: #c7d6f6; }

/* Aktionen */
.ck-act.vfb { background: linear-gradient(#fff, #f5f8ff); }
.ck-act.opp { background: linear-gradient(#fff, #fff6f7); }
.ck-act .ck-h { text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.selpill { margin-left: auto; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: var(--r); background: #e7efff; color: #1e40af; text-transform: none; letter-spacing: 0; border: 1px solid #c7d6f6; }
.selpill.opp { background: #fdecee; color: #9f1239; border-color: #fecdd3; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.act { border: 1px solid #d6e1f5; background: #fff; border-radius: var(--r); padding: 15px 8px; font-weight: 800; font-size: 15px; color: var(--navy); cursor: pointer; box-shadow: 0 1px 2px rgba(23,35,66,.05); }
.act:active { transform: scale(.97); background: #eef3ff; }
.act:disabled { opacity: .45; cursor: not-allowed; }
.act.big, .act.wide { grid-column: span 2; }
.vfb .act.big { background: #3b6fe0; color: #fff; border-color: #3b6fe0; font-size: 19px; padding: 18px; }
.vfb .act.warn { background: #fff7e6; border-color: #fde3b0; }
.opp .act { border-color: #f6d3d7; }
.opp .act:active { background: #fff0f2; }
.opp .act.big { background: #e11d48; color: #fff; border-color: #e11d48; font-size: 19px; padding: 18px; }
.opp .act.warn { background: #fff7e6; border-color: #fde3b0; }

/* Momentum */
.mom-val { margin-left: auto; font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--muted); }
.mom-val.pos { color: #004179; } .mom-val.neg { color: #e11d48; }
.mom-sub { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.mom-sub b { color: var(--navy); font-size: 12px; }
.mom-meter { position: relative; height: 8px; border-radius: var(--r); margin: 10px 0 4px; background: linear-gradient(90deg, #f43f5e, #e2e8f0 50%, #3b6fe0); }
.mom-meter i { position: absolute; top: -4px; width: 4px; height: 16px; background: var(--navy); border-radius: 2px; transform: translateX(-2px); }
.mom-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.chart { width: 100%; height: 200px; margin-top: 8px; background: #f8fafc; border-radius: var(--r); }
.chart text { font-size: 10px; fill: #94a3b8; }
.chart .lbl { font-size: 11px; font-weight: 700; fill: #64748b; }
.chart .g { stroke: #e2e8f0; } .chart .g45 { stroke: #94a3b8; stroke-dasharray: 3 3; } .chart .g0 { stroke: #94a3b8; }
.chart .b-vfb { fill: #3b6fe0; } .chart .b-opp { fill: #f43f5e; }
.chart .mline { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; opacity: .6; }
.chart .nowl { stroke: #16a34a; stroke-width: 1.5; stroke-dasharray: 2 3; }
.chart .xl-vfb { fill: none; stroke: #3b6fe0; stroke-width: 3; } .chart .xl-opp { fill: none; stroke: #f43f5e; stroke-width: 3; }
.chart .vfbc { fill: #004179; } .chart .oppc { fill: #e11d48; }
.tools { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.tool { grid-column: span 3; border: 1px solid #dbe3ee; background: #fff; border-radius: var(--r); padding: 10px 8px; font-weight: 800; font-size: 13px; color: var(--navy); cursor: pointer; }
.tool:nth-child(n+3) { grid-column: span 2; }
.tool.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.tool i { font-style: normal; background: var(--navy); color: #fff; border-radius: var(--r); padding: 1px 7px; margin-left: 4px; font-size: 11px; }
.tool:disabled { opacity: .45; }
.saved { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* Aufstellung-Dialog & Toast */
.lu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; background: var(--navy); color: #fff; border-radius: var(--r); padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-weight: 600; font-size: 14px; max-width: 94vw; }
.toast button { border: 0; background: rgba(255,255,255,.15); color: #fff; font-weight: 800; border-radius: var(--r); padding: 8px 10px; cursor: pointer; white-space: nowrap; }

@media (max-width: 1250px) {
  .cockpit { grid-template-columns: 1fr 1.2fr; grid-template-areas: "stats elf" "stats vfb" "mom opp"; }
}
@media (max-width: 860px) {
  .mb-inner { grid-template-columns: 1fr; }
  .mb-center { order: -1; }
  .mb-actions { justify-content: center; }
  .mb-match select { flex: 1; min-width: 0; max-width: none; }
  .mb-title { font-size: 15px; }
  .matchbar { position: static; }
  .cockpit { grid-template-columns: 1fr; grid-template-areas: "stats" "elf" "vfb" "opp" "mom"; }
  .elf { grid-template-columns: repeat(3, 1fr); }
  .clock { font-size: 40px; }
  .cmp { grid-template-columns: 100px 1fr 100px; }
}
@media (max-width: 380px) { .elf { grid-template-columns: repeat(2, 1fr); } .cmp { grid-template-columns: 92px 1fr 92px; } }

/* Spielstatistik (Zuschauerseite) */
.vs-head { display: flex; justify-content: space-between; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.vs-row { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 10px; padding: 7px 0; }
.vs-row > b { font-family: var(--display); font-weight: 900; font-size: 18px; text-align: center; color: var(--navy); }
.vs-row span { display: block; text-align: center; font-size: 13px; font-weight: 700; color: var(--navy); }
.vs-bar { height: 6px; background: #fecdd3; border-radius: var(--r); overflow: hidden; margin-top: 4px; }
.vs-bar i { display: block; height: 100%; background: var(--navy); }

/* ---------- Gegner-Wappen ---------- */
.opp-crest.img { background: #fff !important; border-color: #e2e8f0 !important; overflow: hidden; padding: 4px; }
.opp-crest.img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fbde { overflow-x: auto; }

/* ---------- Ticker: Netzstatus, Erinnerung ---------- */
.net { font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: var(--r); align-self: center; white-space: nowrap; }
.net.ok { background: rgba(22,163,74,.2); color: #bbf7d0; }
.net.off { background: rgba(225,29,72,.25); color: #fecdd3; }
.net.wait { background: #f59e0b; color: #1f2937; }
.remind { display: flex; align-items: center; gap: 10px; background: #fef3c7; border: 2px solid #f59e0b; color: #78350f; border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; font-size: 14px; flex-wrap: wrap; }
.remind span { flex: 1; min-width: 180px; }
.pend { font-size: 11px; font-weight: 800; color: #b45309; align-self: center; }

/* ---------- Spielfeldrand-Modus ---------- */
.rand { max-width: 560px; margin: 0 auto; }
.rand-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--navy); color: #fff; border-radius: var(--r); padding: 12px 16px; position: sticky; top: 8px; z-index: 5; box-shadow: 0 6px 18px rgba(23,35,66,.25); }
.rand-clock b { font-family: var(--display); font-weight: 900; font-size: 30px; font-variant-numeric: tabular-nums; display: block; line-height: 1; }
.rand-clock small { font-size: 11px; opacity: .75; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.rand-score { display: flex; align-items: center; gap: 10px; }
.rand-score b { font-family: var(--display); font-weight: 900; font-size: 38px; font-variant-numeric: tabular-nums; }
.rand-score em { font-style: normal; opacity: .5; margin: 0 3px; }
.rand-score .club-logo { height: 40px; filter: brightness(0) invert(1); }
.rand-score .opp-crest { width: 38px; height: 38px; font-size: 12px; }
.rand-h { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); margin: 18px 2px 8px; }
.rand-h small { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); }
.rand-h.opp { color: #9f1239; }
.rand-h .btn { margin-left: auto; text-transform: none; letter-spacing: 0; }
.rand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.r { border: 1px solid #d6e1f5; background: #fff; border-radius: var(--r); min-height: 64px; padding: 12px 8px; font-weight: 800; font-size: 17px; color: var(--navy); cursor: pointer; box-shadow: 0 2px 6px rgba(23,35,66,.08); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.r:active { transform: scale(.96); }
.r:disabled { opacity: .45; }
.r.big { grid-column: span 2; min-height: 84px; font-size: 24px; letter-spacing: .02em; }
.r.big.vfb { background: #3b6fe0; border-color: #3b6fe0; color: #fff; }
.r.big.opp { background: #e11d48; border-color: #e11d48; color: #fff; }
.rand-grid.opp .r:not(.big) { border-color: #f6d3d7; background: #fffafb; }
.r.wide { width: 100%; margin-top: 10px; }
.rand-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 30px; }
.rand-tools .tool { grid-column: auto !important; }

/* Auswahlfenster */
dialog.sheet { width: min(560px, 100vw); margin: auto auto 0; border-radius: 20px 20px 0 0; max-height: 88vh; }
dialog.sheet h3 { font-size: 19px; }
.sh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.sh-grid .pt { padding: 12px 4px 10px; }
.sh-grid .pt b { font-size: 26px; }
.sh-extra { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 10px; }
.sh-extra .btn { padding: 14px; font-size: 15px; }
.sh-cancel { width: 100%; margin-top: 8px; padding: 12px; background: none; color: var(--muted); }
@media (min-width: 700px) { dialog.sheet { margin: auto; border-radius: var(--r); } }
.op-prev { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.op-prev button { border: 1px solid #fecdd3; background: #fdecee; color: #9f1239; border-radius: var(--r); padding: 6px 9px; font-size: 13px; cursor: pointer; }
.op-prev button.off { background: #f1f5f9; color: #94a3b8; border-color: #e2e8f0; text-decoration: line-through; }
@media (max-width: 860px) {
  .mb-inner { gap: 8px; padding: 8px 12px; }
  .mb-btn { padding: 8px 11px; font-size: 13px; }
  .mb-btn.full { display: none; }          /* Vollbild: am Handy besser „Zum Home-Bildschirm“ */
  .mb-match { margin-top: 4px; }
  .toast { top: calc(10px + env(safe-area-inset-top)); bottom: auto; font-size: 13px; }
}

/* =====================================================================
   Cockpit auf Tablet & Laptop: alles auf einen Bildschirm, kein Scrollen
   (greift nur im Cockpit, nicht im Spielfeldrand-Modus)
   ===================================================================== */
@media (min-width: 900px) and (min-height: 560px) {
  body.cockpit-mode:has(.cockpit) { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
  body.cockpit-mode:has(.cockpit) > main { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  body.cockpit-mode:has(.cockpit) #app, body.cockpit-mode:has(.cockpit) #panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  body.cockpit-mode:has(.cockpit) .remind { margin-bottom: 8px; padding: 6px 12px; }

  /* Kopf: eine Zeile statt zwei */
  body.cockpit-mode:has(.cockpit) .top-inner { display: flex; align-items: center; gap: 12px; padding: 0 12px; }
  body.cockpit-mode:has(.cockpit) .brand { display: contents; }
  body.cockpit-mode:has(.cockpit) .brand > * { order: 0; }
  body.cockpit-mode:has(.cockpit) .brand .club-logo { height: 32px; }
  body.cockpit-mode:has(.cockpit) .brand .divider { margin: 10px 0; }
  body.cockpit-mode:has(.cockpit) .brand-text b { font-size: 15px; }
  body.cockpit-mode:has(.cockpit) .brand-text small { display: none; }
  body.cockpit-mode:has(.cockpit) .tabs { order: 1; margin: 0; padding: 0; background: none; min-width: 0; }
  body.cockpit-mode:has(.cockpit) .tabs button { padding-top: 13px; padding-bottom: 11px; }
  body.cockpit-mode:has(.cockpit) .brand .spacer { order: 2; }
  body.cockpit-mode:has(.cockpit) #who, body.cockpit-mode:has(.cockpit) #logout { order: 3; }
  body.cockpit-mode:has(.cockpit) #crest { display: flex; align-items: center; height: 46px; }

  /* Spielleiste: eine Zeile */
  body.cockpit-mode:has(.cockpit) .mb-inner { grid-template-columns: auto minmax(150px, 1fr) auto; padding: 6px 12px; gap: 10px; max-width: none; }
  body.cockpit-mode:has(.cockpit) .mb-title { display: none; }
  body.cockpit-mode:has(.cockpit) .mb-match { margin-top: 0; }
  body.cockpit-mode:has(.cockpit) .mb-match label { display: none; }
  body.cockpit-mode:has(.cockpit) .mb-match select { flex: 1; min-width: 0; max-width: 340px; }
  body.cockpit-mode:has(.cockpit) .mb-tabs button, body.cockpit-mode:has(.cockpit) .mb-tabs a { padding: 8px 10px; }
  body.cockpit-mode:has(.cockpit) .mb-actions { flex-wrap: nowrap; }
  body.cockpit-mode:has(.cockpit) .mb-btn { padding: 7px 11px; font-size: 13px; }
  .ck-act.opp .selpill.opp { display: none; }

  /* Raster füllt die Höhe */
  .cockpit { flex: 1; min-height: 0; gap: 10px; align-items: stretch;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.3fr) minmax(0, 1.1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "stats elf mom" "stats vfb opp"; }
  .ck { padding: 10px 12px; border-radius: var(--r); display: flex; flex-direction: column; min-height: 0; overflow: auto; overscroll-behavior: contain; }
  .ck-h { font-size: 14px; margin-bottom: 6px; }
  .ck-h .btn.small { padding: 5px 10px; }
  .hint { display: none; }
  .warnhint { display: block; margin: 0 0 6px; padding: 5px 8px; font-size: 12px; }

  /* Uhr & Stand kompakt */
  .ck-score > .ck-h { display: none; }
  .clock { font-size: 34px; }
  .clock-sub { font-size: 11px; margin-top: 2px; }
  .ck-sb { margin-top: 8px; padding: 6px 8px; }
  .ck-team { font-size: 12px; gap: 3px; }
  .ck-team .club-logo { height: 30px; }
  .ck-team .opp-crest { width: 30px; height: 30px; font-size: 11px; }
  .ck-res { font-size: 34px; }

  /* Teamvergleich: Zeilen teilen sich die Höhe */
  .ck-stats .seg { margin-bottom: 6px; flex: none; }
  .ck-stats .seg button { padding: 5px; }
  .ck-stats .cmp { flex: 1 1 0; min-height: 28px; max-height: 42px; padding: 2px 0; grid-template-columns: 92px 1fr 92px; gap: 6px; }
  .ck-stats .cnt { height: 100%; max-height: 36px; grid-template-columns: 28px 1fr 28px; }
  .ck-stats .cnt.ro { grid-template-columns: 1fr; }
  .ck-stats .cnt button { width: 26px; height: calc(100% - 4px); max-height: 30px; }
  .ck-stats .cnt b { font-size: 15px; }
  .ck-stats .cmp-mid span { font-size: 11.5px; }
  .ck-stats .cmp-bar { margin-top: 3px; }
  .ck-stats label.f { margin-top: 6px; font-size: 12px; flex: none; }
  .ck-stats #notes { flex: 0 1 56px; min-height: 36px; resize: none; padding: 6px 10px; font-size: 13px; }
  .ck-stats .sync { display: none; }

  /* Aktuelle Elf kompakt */
  .elf { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .pt { padding: 7px 4px 5px; border-radius: var(--r); }
  .pt b { font-size: 20px; }
  .pt span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .pt-min { top: 3px; left: 6px; }
  .pt-ok { top: 3px; right: 4px; width: 16px; height: 16px; }
  .bench { margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
  .psel { margin-top: auto; padding: 8px; flex: none; }
  .elf + .psel, .bench + .psel { margin-top: 6px; }
  .psel.empty-sel { padding: 8px; font-size: 12px; }
  .psel-h { display: flex; align-items: baseline; gap: 8px; }
  .psel-grid { grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 4px; }
  .psel-grid div { padding: 4px 2px; }
  .psel-grid b { font-size: 15px; }
  .psel-grid span { font-size: 9.5px; }

  /* Aktionen: 4 Spalten, Knöpfe füllen die Fläche */
  .ck-act .ck-h { font-size: 12px; margin-bottom: 6px; }
  .acts { flex: 1; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(44px, 1fr); gap: 6px; }
  .act { padding: 6px 4px; font-size: 13px; border-radius: var(--r); line-height: 1.15; }
  .vfb .act.big, .opp .act.big { font-size: 17px; padding: 6px; }

  /* Momentum */
  .ck-mom .ck-h { margin-bottom: 4px; }
  .mom-val { font-size: 24px; line-height: 1; }
  .mom-sub span { display: none; }
  .mom-meter { margin: 6px 0 2px; }
  .chart { flex: 1 1 0; min-height: 70px; height: auto; margin-top: 6px; }
  .tools { margin-top: 8px; gap: 6px; flex: none; }
  .tool { padding: 8px 4px; font-size: 12px; }
  .saved { margin-top: 4px; flex: none; }
}

/* iPad hochkant: zwei Spalten */
@media (min-width: 740px) and (max-width: 899px) and (min-height: 900px) {
  body.cockpit-mode:has(.cockpit) { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
  body.cockpit-mode:has(.cockpit) > main { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  body.cockpit-mode:has(.cockpit) #app, body.cockpit-mode:has(.cockpit) #panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  body.cockpit-mode:has(.cockpit) .brand { height: 52px; }
  body.cockpit-mode:has(.cockpit) .brand .club-logo { height: 36px; }
  body.cockpit-mode:has(.cockpit) .brand .divider { margin: 10px 0; }
  body.cockpit-mode:has(.cockpit) .tabs button { padding-top: 10px; padding-bottom: 9px; }
  body.cockpit-mode:has(.cockpit) .mb-inner { grid-template-columns: 1fr auto; padding: 6px 12px; }
  body.cockpit-mode:has(.cockpit) .mb-center { order: 0; grid-column: 1 / -1; }
  body.cockpit-mode:has(.cockpit) .mb-title, body.cockpit-mode:has(.cockpit) .mb-match label { display: none; }
  body.cockpit-mode:has(.cockpit) .mb-match { margin-top: 0; }
  body.cockpit-mode:has(.cockpit) .mb-actions { flex-wrap: nowrap; }

  .cockpit { flex: 1; min-height: 0; gap: 10px; align-items: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-rows: minmax(0, 1fr) auto auto;
    grid-template-areas: "stats elf" "stats vfb" "mom opp"; }
  .ck { padding: 10px 12px; display: flex; flex-direction: column; min-height: 0; overflow: auto; overscroll-behavior: contain; }
  .ck-h { font-size: 14px; margin-bottom: 6px; }
  .hint { display: none; }
  .ck-score > .ck-h { display: none; }
  .clock { font-size: 34px; }
  .ck-sb { margin-top: 8px; padding: 6px 8px; }
  .ck-team .club-logo { height: 30px; }
  .ck-team .opp-crest { width: 30px; height: 30px; font-size: 11px; }
  .ck-res { font-size: 34px; }
  .ck-stats .seg { margin-bottom: 6px; }
  .ck-stats .seg button { padding: 5px; }
  .ck-stats .cmp { flex: 1 1 0; min-height: 30px; max-height: 44px; padding: 2px 0; grid-template-columns: 92px 1fr 92px; gap: 6px; }
  .ck-stats .cnt { height: 100%; max-height: 38px; }
  .ck-stats .cnt button { height: calc(100% - 4px); max-height: 30px; }
  .ck-stats #notes { flex: 0 1 70px; min-height: 40px; resize: none; }
  .ck-stats .sync { display: none; }
  .elf { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .pt { padding: 8px 4px 6px; }
  .pt b { font-size: 20px; }
  .pt span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .bench { margin-top: 6px; }
  .psel { margin-top: 8px; padding: 8px; }
  .psel-grid { gap: 4px; }
  .psel-grid div { padding: 4px 2px; }
  .acts { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .ck-act .acts { flex: 1; grid-auto-rows: minmax(44px, 1fr); }
  .act { padding: 6px 4px; font-size: 13px; line-height: 1.15; }
  .vfb .act.big, .opp .act.big { font-size: 17px; padding: 6px; }
  .mom-val { font-size: 22px; line-height: 1; }
  .mom-sub span { display: none; }
  .mom-meter { margin: 6px 0 2px; }
  .chart { flex: 1 1 0; min-height: 60px; height: auto; margin-top: 6px; }
  .tools { margin-top: 8px; gap: 6px; }
  .tool { padding: 8px 4px; font-size: 12px; }
  .saved { display: none; }
}
@media (min-width: 900px) and (max-width: 1279px) and (min-height: 560px) {
  body.cockpit-mode:has(.cockpit) .mb-inner .lbl { display: none; }
  body.cockpit-mode:has(.cockpit) .mb-tabs button, body.cockpit-mode:has(.cockpit) .mb-tabs a { padding: 8px 8px; font-size: 12.5px; }
}
/* schmalere Tablets (z. B. iPad 10,2"/mini quer) */
@media (min-width: 900px) and (max-width: 1099px) and (min-height: 560px) {
  .cockpit { grid-template-columns: minmax(0, .92fr) minmax(0, 1.25fr) minmax(0, 1fr); }
  .ck-stats .cmp { grid-template-columns: 76px 1fr 76px; gap: 4px; }
  .ck-stats .cnt { grid-template-columns: 24px 1fr 24px; }
  .ck-stats .cnt button { width: 22px; margin: 0 1px; }
  .ck-stats .cmp-mid span { font-size: 10.5px; hyphens: auto; }
  .ck-mom .seg.sm { order: 3; }
}
/* niedrige Bildschirme (Safari mit Adressleiste) */
@media (min-width: 900px) and (min-height: 560px) and (max-height: 780px) {
  .ck-stats .cmp { min-height: 25px; }
  .ck-stats .cnt b { font-size: 14px; }
  .ck-stats #notes { min-height: 32px; }
  .pt { padding: 4px 3px 3px; }
  .pt b { font-size: 17px; }
  .pt span { font-size: 10.5px; }
  .pt-min { font-size: 9px; }
  .bench { display: none; }
  .psel { padding: 6px 8px; }
  .psel-h small { display: none; }
  .psel-h b { font-size: 13px; }
  .psel-grid b { font-size: 13px; }
  .psel-grid span { font-size: 9px; }
  .acts { grid-auto-rows: minmax(40px, 1fr); }
  .act { font-size: 12.5px; }
  .mom-scale { display: none; }
  .mom-sub { font-size: 11px; }
  .tool { padding: 6px 4px; }
  .saved { display: none; }
}
@media (min-width: 900px) and (min-height: 560px) {
  .ck-stats .cmp-mid span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ck-mom .tool { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .psel-grid span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 900px) and (min-height: 560px) and (max-height: 780px) {
  .psel-grid div { padding: 3px 2px; }
  .elf { gap: 5px; }
}
/* iPad hochkant: Kopf und Spielleiste verdichten */
@media (min-width: 740px) and (max-width: 899px) and (min-height: 900px) {
  body.cockpit-mode:has(.cockpit) .top-inner { display: flex; align-items: center; gap: 12px; padding: 0 12px; }
  body.cockpit-mode:has(.cockpit) .brand { display: contents; }
  body.cockpit-mode:has(.cockpit) .brand .club-logo { height: 30px; }
  body.cockpit-mode:has(.cockpit) .brand-text b { font-size: 15px; }
  body.cockpit-mode:has(.cockpit) .brand-text small, body.cockpit-mode:has(.cockpit) #who { display: none; }
  body.cockpit-mode:has(.cockpit) .tabs { order: 1; margin: 0; padding: 0; background: none; min-width: 0; }
  body.cockpit-mode:has(.cockpit) .brand .spacer { order: 2; }
  body.cockpit-mode:has(.cockpit) #logout { order: 3; }
  body.cockpit-mode:has(.cockpit) #crest { display: flex; align-items: center; height: 46px; }
  body.cockpit-mode:has(.cockpit) .mb-tabs { grid-row: 1; grid-column: 1; }
  body.cockpit-mode:has(.cockpit) .mb-actions { grid-row: 1; grid-column: 2; }
  body.cockpit-mode:has(.cockpit) .mb-center { grid-row: 2; grid-column: 1 / -1; }
  body.cockpit-mode:has(.cockpit) .mb-inner .lbl { display: none; }
  body.cockpit-mode:has(.cockpit) .mb-tabs button, body.cockpit-mode:has(.cockpit) .mb-tabs a { padding: 8px 9px; font-size: 12.5px; }
  body.cockpit-mode:has(.cockpit) .mb-btn { padding: 7px 10px; }
  .ck-act.opp .selpill.opp { display: none; }
  .ck-stats .cmp-mid span, .ck-mom .tool { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .psel-h small { display: none; }
  .psel-grid { grid-template-columns: repeat(6, 1fr); margin-top: 4px; }
  .psel-grid b { font-size: 14px; }
  .psel-grid span { display: block; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 740px) and (max-width: 899px) and (min-height: 900px) and (max-height: 1060px) {
  .ck-stats .cmp { min-height: 25px; }
  .ck-stats .cnt b { font-size: 14px; }
  .ck-stats #notes { min-height: 32px; flex-basis: 40px; }
  .clock { font-size: 30px; }
  .ck-res { font-size: 30px; }
  .pt { padding: 4px 3px 3px; }
  .pt b { font-size: 17px; }
  .pt span { font-size: 10.5px; }
  .bench { display: none; }
  .psel { padding: 6px 8px; }
  .psel-grid div { padding: 3px 2px; }
  .ck-act .acts { grid-auto-rows: minmax(40px, 1fr); }
  .mom-sub, .mom-scale { display: none; }
  .tool { padding: 6px 4px; }
}
@media (min-width: 740px) and (max-width: 899px) and (min-height: 900px) and (max-height: 1060px) {
  .ck-stats label.f { display: none; }
  .ck-stats #notes { margin-top: 6px; }
  .ck-stats .seg { margin-bottom: 4px; }
}

/* Spielerauswahl als Kacheln (Ereignis-Fenster) */
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; margin-top: 4px; }
.pk { border: 1px solid #dbe3ee; background: #f8fafc; border-radius: var(--r); padding: 7px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; color: var(--navy); min-width: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pk b { font-family: var(--display); font-weight: 900; font-size: 19px; line-height: 1.1; }
.pk span { font-size: 11px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk.on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 0 0 3px #bfd3ff; }
.pk.none { grid-column: span 2; justify-content: center; font-size: 13px; font-weight: 700; color: var(--muted); background: #fff; border-style: dashed; }
.pk.none.on { color: #fff; background: var(--navy); border-color: var(--navy); border-style: solid; }
.pk:active { transform: scale(.96); }
.pk-more { grid-column: 1 / -1; }
.pk-more summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--navy); padding: 6px 2px; }
.pk-more .pk-grid { margin-top: 2px; }

/* =====================================================================
   Zuschauerseite: Profi-Look (Vorbild: Vereinsseiten von VfB Oldenburg & HSV)
   Farben, Wappen und Schrift bleiben die des VfB Fallersleben.
   ===================================================================== */
body.viewer { overflow-x: clip; }
@media (min-width: 1000px) {
  body.viewer main, body.viewer .top-inner, body.viewer .foot > * { max-width: 1160px; }
  body.viewer .top-inner { padding: 0 24px; }
  body.viewer main { padding: 20px 24px 40px; }
}

/* Überschriften: groß, fett, Großbuchstaben, linksbündig mit Akzentbalken */
body.viewer .sec-title { justify-content: flex-start; text-align: left; font-family: var(--display); font-weight: 900; font-size: clamp(24px, 4vw, 34px); letter-spacing: .01em; line-height: 1; margin: 40px 0 18px; gap: 12px; }
body.viewer .sec-title::before { content: ""; flex: none; width: 6px; height: .9em; background: var(--blue); border-radius: 2px; }
body.viewer .sec-title::after { content: none; }
body.viewer .sec-title.live::before { background: var(--live); }
body.viewer .sec-title.light { color: #fff; }
body.viewer .sec-title.light::before { background: #fff; }

/* Bänder über die volle Breite */
.band { margin-inline: calc(50% - 50vw); padding: 6px max(16px, calc(50vw - 50% + 16px)) 30px; }
.band.dark { background: radial-gradient(1200px 500px at 85% 0%, var(--navy-3), transparent 60%), repeating-linear-gradient(120deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px), var(--navy); color: #fff; margin-top: 26px; padding-top: 2px; padding-bottom: 34px; }
.band.dark .sec-title { margin-top: 30px; }
.band:not(.dark) { background: #e7ecf4; margin-top: 30px; padding-top: 2px; }

/* Spieltags-Bühne */
.mc.stage { background: transparent; box-shadow: none; overflow: visible; }
.stage .team-tabs { background: none; justify-content: flex-start; gap: 6px; padding: 0 0 14px; }
.stage .team-tabs button { color: #fff; background: rgba(255,255,255,.08); border-radius: var(--r); padding: 9px 16px; }
.stage .team-tabs button.on { background: #fff; color: var(--navy); }
.stage .md { position: relative; background: linear-gradient(115deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 22px 14px 22px; overflow: hidden; }
.stage .md::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; height: 140%; background: radial-gradient(closest-side, var(--opp), transparent); opacity: .28; pointer-events: none; }
.stage .md > * { position: relative; z-index: 1; }
.md-kicker { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-bottom: 14px; }
.stage .md-arrow { color: #fff; }
.stage .md-team { color: #fff; font-size: 15px; }
.stage .md-team .club-logo { height: clamp(60px, 11vw, 110px); filter: brightness(0) invert(1); }
.stage .md-team .opp-crest { width: clamp(60px, 11vw, 110px); height: clamp(60px, 11vw, 110px); font-size: clamp(16px, 3vw, 28px); }
.stage .md-team .opp-crest.img { background: #fff !important; border: 0 !important; padding: 10%; box-shadow: 0 0 0 4px var(--opp), 0 10px 30px rgba(0,0,0,.35); }
.stage .md-score { color: #fff; font-size: clamp(48px, 9vw, 88px); line-height: 1; }
.stage .md-score em { color: rgba(255,255,255,.45); }
.stage .md-info { color: rgba(255,255,255,.85); }
.stage .pill-link { border-color: rgba(255,255,255,.6); color: #fff; }
.stage .pill-link.solid { background: #fff; color: var(--navy); border-color: #fff; }
.stage .countdown .cd b span { background: #fff; color: var(--navy); }
.stage .countdown .cd small { color: rgba(255,255,255,.75); }
.stage .form { background: var(--card); color: var(--navy); border-radius: var(--r); margin-top: 16px; padding: 4px 16px 16px; }
.stage .form .sec-title { color: var(--navy); font-size: 18px; margin: 16px 0 10px; }

/* Termine */
.fx-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: thin; }
.fx { flex: 0 0 min(250px, 78vw); scroll-snap-align: start; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; color: var(--navy); border-top: 5px solid var(--opp); padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s; }
.fx:hover { transform: translateY(-2px); }
.fx-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fx-top span:last-child { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-mid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; }
.fx-mid .club-logo { height: 46px; }
.fx-mid .opp-crest { width: 46px; height: 46px; font-size: 13px; }
.fx-mid b { font-family: var(--display); font-weight: 900; font-size: 15px; color: var(--muted); }
.fx-names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 12.5px; font-weight: 800; text-align: center; line-height: 1.25; }
.fx-date { text-align: center; font-weight: 800; font-size: 13px; background: #f1f5fa; border-radius: var(--r); padding: 7px; }

/* Ergebnisse */
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.rs { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; color: var(--navy); padding: 12px 14px 14px; border-left: 5px solid var(--draw); }
.rs.win { border-left-color: var(--win); } .rs.loss { border-left-color: var(--loss); }
.rs-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.rs-top span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.rs-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12.5px; font-weight: 800; line-height: 1.2; min-width: 0; }
.rs-team .club-logo { height: 40px; }
.rs-team .opp-crest { width: 40px; height: 40px; font-size: 12px; }
.rs-score { font-family: var(--display); font-weight: 900; font-size: 30px; font-variant-numeric: tabular-nums; padding: 4px 12px; border-radius: var(--r); background: #f1f5fa; white-space: nowrap; }
.rs.win .rs-score { background: #dcfce7; color: #166534; } .rs.loss .rs-score { background: #fee2e2; color: #991b1b; }
.rs-score em { font-style: normal; opacity: .5; margin: 0 2px; }

/* Mannschaftsseite: großer Kopf, zweispaltig auf breiten Bildschirmen */
.page-band.hero { padding: 34px 24px 30px; border-radius: var(--r); background: repeating-linear-gradient(120deg, rgba(255,255,255,.04) 0 2px, transparent 2px 22px), linear-gradient(135deg, var(--navy), var(--navy-3)); }
.page-band.hero small { display: block; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; opacity: .7; margin-bottom: 8px; }
.page-band.hero h1 { font-size: clamp(38px, 7vw, 64px); }
.two-col { display: grid; gap: 0 28px; }
@media (min-width: 1000px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } .slide { flex-basis: 48%; } }
#view > .band:first-child { margin-top: -16px; }
@media (min-width: 1000px) { #view > .band:first-child { margin-top: -20px; } }
@media (max-width: 520px) {
  .stage .md { padding: 18px 8px; }
  .stage .md-row { grid-template-columns: 20px 1fr auto 1fr 20px; gap: 4px; }
  .stage .md-team { font-size: 12.5px; }
  .stage .md-team .club-logo { height: 46px; }
  .stage .md-team .opp-crest { width: 46px; height: 46px; font-size: 14px; }
  .stage .md-score { font-size: 44px; }
  .stage .md-arrow { font-size: 20px; }
}

/* =====================================================================
   Ticker nach Mannschaften getrennt (wie bei kicker.de):
   Heimteam links, Gast rechts, Minute in der Mitte, Status & Kommentare mittig
   ===================================================================== */
.feed-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 14px 0 4px; padding: 8px 0 10px; border-bottom: 2px solid var(--line); }
.feed-head b { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fh-team { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; color: var(--navy); min-width: 0; }
.fh-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-head .fh-team:last-child { flex-direction: row-reverse; text-align: right; }
.fh-team .club-logo { height: 28px; width: auto; }
.fh-team .opp-crest { width: 28px; height: 28px; font-size: 10px; border-width: 1px; }

.feed.split { position: relative; }
.feed.split::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--line); }
.feed.split .ev { position: relative; grid-template-columns: 1fr 58px 1fr; grid-template-rows: auto auto; gap: 0 10px; border-top: 0; padding: 8px 0; background: none; }
.feed.split .ev-min, .feed.split .ev-icon { grid-column: 2; justify-self: center; text-align: center; position: relative; z-index: 1; background: var(--card); }
.feed.split .ev-min { grid-row: 1; font-size: 13px; padding: 2px 6px; border-radius: var(--r); border: 2px solid var(--line); min-width: 40px; }
.feed.split .ev-icon { grid-row: 2; padding-top: 2px; }
.feed.split .ev-body { grid-row: 1 / 3; min-width: 0; background: #f6f8fb; border-radius: var(--r); padding: 8px 10px; }
.feed.split .ev-L .ev-body { grid-column: 1; text-align: right; border-right: 3px solid var(--navy); }
.feed.split .ev-R .ev-body { grid-column: 3; text-align: left; border-left: 3px solid #94a3b8; }
.feed.split .ev-L .ev-actions { justify-content: flex-end; }
.feed.split .ev-tor .ev-body { background: #e8f8ee; border-color: var(--win); }
.feed.split .ev-gegentor .ev-body { background: #fdecee; border-color: var(--loss); }
.feed.split .ev-tor .ev-title, .feed.split .ev-gegentor .ev-title { font-size: 16px; }
.feed.split .ev-gegentor .ev-title { color: var(--loss); }
/* Mittig: Anpfiff, Halbzeit, Abpfiff, Kommentare */
.feed.split .ev-C .ev-min { display: none; }
.feed.split .ev-C .ev-icon { grid-column: 2; grid-row: 1; }
.feed.split .ev-C .ev-body { grid-column: 1 / -1; grid-row: 2; text-align: center; background: var(--card); border: 1px solid var(--line); margin: 2px 12%; position: relative; z-index: 1; }
.feed.split .ev-status .ev-body { padding: 4px 10px; margin: 2px 30%; border-radius: var(--r); }
.feed.split .ev-status .ev-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.feed.split .ev-kommentar .ev-title { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 480px) {
  .feed.split .ev { grid-template-columns: 1fr 46px 1fr; gap: 0 6px; }
  .feed.split .ev-min { font-size: 12px; min-width: 34px; padding: 1px 4px; }
  .feed.split .ev-title { font-size: 13.5px; }
  .feed.split .ev-sub, .feed.split .ev-text { font-size: 13px; }
  .feed.split .ev-C .ev-body { margin: 2px 4%; }
  .feed.split .ev-status .ev-body { margin: 2px 22%; }
}

/* Cockpit-Layout anpassen */
.mb-btn.on { background: #fff; color: var(--navy); border-color: #fff; }
.layout-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff7e6; border: 2px dashed #f59e0b; color: #78350f; border-radius: var(--r); padding: 8px 12px; margin-bottom: 10px; font-size: 14px; flex: none; }
.layout-bar span { flex: 1; min-width: 200px; }
.cockpit.editing .ck { position: relative; cursor: pointer; outline: 2px dashed #94a3b8; outline-offset: -2px; user-select: none; -webkit-user-select: none; }
.cockpit.editing .ck > * { pointer-events: none; opacity: .55; }
.cockpit.editing .ck::after { content: "⠿ " attr(data-label); position: absolute; top: 8px; right: 8px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 4px 8px; border-radius: var(--r); z-index: 2; }
.cockpit.editing .ck:hover { outline-color: var(--blue); }
.cockpit.editing .ck.ck-picked { outline: 3px solid var(--blue); box-shadow: 0 0 0 6px rgba(29,78,216,.18); }
.cockpit.editing .ck.ck-picked::after { background: var(--blue); content: "✓ ausgewählt"; }

/* =====================================================================
   Live-Extras: Live-Balken, Tor-Moment, Teilen, Aufstellung
   ===================================================================== */
.livebar { background: var(--live); position: sticky; top: 0; z-index: 25; box-shadow: 0 4px 14px rgba(225,29,72,.35); }
.lb-item { display: flex; align-items: center; gap: 12px; max-width: 1160px; margin: 0 auto; padding: 9px 16px; color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; }
.lb-item + .lb-item { border-top: 1px solid rgba(255,255,255,.25); }
.lb-tag { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--live); border-radius: var(--r); padding: 3px 9px; font-size: 11px; letter-spacing: .08em; flex: none; }
.lb-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: lbpulse 1.2s infinite; }
@keyframes lbpulse { 50% { opacity: .25; } }
.lb-score { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.lb-min { font-variant-numeric: tabular-nums; opacity: .9; flex: none; }
.lb-go { flex: none; font-size: 12px; opacity: .9; }
@media (max-width: 560px) { .lb-go { display: none; } .lb-item { font-size: 13px; gap: 8px; } }

#goal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(10,16,32,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); padding: 16px; cursor: pointer; }
.goal-box { text-align: center; color: #fff; border-radius: var(--r); padding: 28px 30px 26px; max-width: 520px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.45); animation: goalpop .5s cubic-bezier(.2,1.6,.4,1); }
#goal.ours .goal-box { background: radial-gradient(circle at 50% 0%, #22c55e, #15803d 70%); }
#goal.theirs .goal-box { background: linear-gradient(135deg, var(--navy), #3b4a6b); }
.goal-big { font-family: var(--display); font-weight: 900; font-size: clamp(54px, 15vw, 96px); line-height: .95; letter-spacing: .01em; text-transform: uppercase; }
#goal.theirs .goal-big { font-size: clamp(36px, 10vw, 60px); }
.goal-score { font-weight: 800; font-size: clamp(18px, 4.5vw, 24px); margin-top: 12px; font-variant-numeric: tabular-nums; }
.goal-who { opacity: .9; font-weight: 600; margin: 6px 0 18px; }
.goal-box .pill-link.solid { background: #fff; color: var(--navy); border-color: #fff; }
@keyframes goalpop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

.share-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
button.pill-link { background: none; cursor: pointer; font: inherit; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.pill-link.share { border-color: #25d366; color: #128c4a; }
.stage .pill-link.share { border-color: #25d366; color: #fff; background: rgba(37,211,102,.18); }

.lineup .lu-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.lineup .lu-head .club-logo { height: 30px; }
.lineup .lu-head .muted { margin-left: auto; font-size: 12px; }
.lu-group { margin-top: 12px; }
.lu-pos { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.lu-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.lu-p { display: flex; align-items: center; gap: 10px; background: #f6f8fb; border: 1px solid var(--line); border-radius: var(--r); padding: 7px 10px; min-width: 0; }
.lu-p b { font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--navy); min-width: 24px; text-align: center; }
.lu-p span { font-weight: 700; font-size: 13px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.lu-p em { font-style: normal; font-size: 11px; font-weight: 800; flex: none; }
.lu-out { color: var(--loss); } .lu-in { color: var(--win); }

/* =====================================================================
   Spielerfotos, Spielfeld & Taktiktafel
   ===================================================================== */
.av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; display: inline-grid; place-items: center; background: #e2e8f0; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(23,35,66,.25); }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.none { background: var(--navy); color: #fff; font-weight: 900; font-size: 13px; font-family: var(--display); }
.kader-p { display: flex; align-items: center; gap: 12px; }
.img-pick .avatar-prev { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }

/* Spielfeld (hochkant, Angriff nach oben) */
.pitch { position: relative; width: 100%; aspect-ratio: 68 / 100; border-radius: var(--r); overflow: hidden;
  background: repeating-linear-gradient(180deg, #2f8a3a 0 10%, #2a7e35 10% 20%); box-shadow: inset 0 0 0 3px rgba(255,255,255,.75); }
.pitch-lines i { position: absolute; border: 2px solid rgba(255,255,255,.7); }
.pl-half { left: 0; right: 0; top: 50%; height: 0; border-width: 2px 0 0 !important; }
.pl-circle { left: 50%; top: 50%; width: 24%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.pl-box { left: 21%; right: 21%; height: 15%; }
.pl-box.top { top: -2px; } .pl-box.bottom { bottom: -2px; }
.pl-six { left: 37%; right: 37%; height: 5.5%; }
.pl-six.top { top: -2px; } .pl-six.bottom { bottom: -2px; }
.pitch-form { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.35); color: #fff; font-weight: 900; font-size: 13px; padding: 4px 9px; border-radius: var(--r); z-index: 2; }
.pp, .tk-slot { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px; width: 74px; text-align: center; z-index: 3; }
.pp .av, .tk-slot .av { width: 46px; height: 46px; }
.pp b, .tk-slot b { margin-top: -10px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 900; border-radius: var(--r); padding: 1px 6px; position: relative; z-index: 1; }
.pp span, .tk-slot > span:not(.av) { color: #fff; font-weight: 800; font-size: 11.5px; text-shadow: 0 1px 3px rgba(0,0,0,.7); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp em { font-style: normal; font-size: 10px; font-weight: 900; background: #fee2e2; color: #991b1b; border-radius: var(--r); padding: 0 4px; margin-top: 1px; }
.pitch.small .pp { width: 60px; } .pitch.small .pp .av { width: 36px; height: 36px; }

/* Aufstellung im Live-Ticker */
.lu-pitch { max-width: 460px; margin: 6px auto 4px; }

/* Taktiktafel */
.tk { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.tk-board { padding: 12px; }
.tk-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-tools .btn.on, .tk-forms .btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tk-help { font-size: 13px; color: var(--muted); margin: 8px 2px 10px; min-height: 20px; }
.tk-pitch { max-width: 560px; margin: 0 auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.tk-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.tk-l { stroke-width: 1.1; fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tk-svg .tk-l { stroke-width: 3.5; }
.tk-l.run { stroke: #facc15; stroke-dasharray: 7 5; }
.tk-l.pass { stroke: #67e8f9; }
.tk-hit { stroke: transparent; stroke-width: 18; vector-effect: non-scaling-stroke; pointer-events: none; }
.tk-pitch.mode-erase .tk-hit { pointer-events: stroke; cursor: pointer; }
.tk-pitch.mode-erase .tk-hit:hover { stroke: rgba(255,80,80,.35); }
.tk-pitch.mode-run, .tk-pitch.mode-pass { cursor: crosshair; }
.tk-pitch.mode-run .tk-slot, .tk-pitch.mode-pass .tk-slot, .tk-pitch.mode-erase .tk-slot { pointer-events: none; }
.tk-slot { cursor: grab; }
.tk-slot.empty .av { background: rgba(255,255,255,.18); border: 2px dashed rgba(255,255,255,.85); box-shadow: none; font-size: 11px; }
.tk-slot.empty > span:not(.av) { display: none; }
.tk-slot.sel .av { box-shadow: 0 0 0 4px #facc15, 0 2px 8px rgba(0,0,0,.4); }
.tk-side { display: grid; gap: 12px; }
.tk-side .card { margin: 0; }
.tk-side .card-body { padding: 12px 14px; }
.tk-row { display: flex; gap: 6px; align-items: center; }
.tk-row select { flex: 1; min-width: 0; }
.tk-forms { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; color: var(--navy); }
.tk-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; max-height: 360px; overflow: auto; }
.tk-p { border: 1px solid var(--line); background: #f8fafc; border-radius: var(--r); padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; color: var(--navy); min-width: 0; }
.tk-p .av { width: 34px; height: 34px; }
.tk-p b { font-size: 13px; font-family: var(--display); font-weight: 900; }
.tk-p span { font-size: 11px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-p.used { opacity: .45; }
.tk-apply { width: 100%; margin-top: 8px; padding: 12px; }
.tk-msg { background: #dcfce7; color: #166534; border-radius: var(--r); padding: 8px 10px; font-size: 13px; margin: 10px 0 0; }
@media (max-width: 860px) { .tk { grid-template-columns: 1fr; } }
.tk-pitch { width: auto; height: min(74vh, 780px); max-width: 100%; }
.pitch-lines i { background: none !important; z-index: 0; box-shadow: none; border-radius: 0; width: auto; }
.pitch-lines .pl-circle { border-radius: 50%; width: 24%; }
.pitch-lines .pl-half { width: auto; }

/* ===== Reiter Saison (Statistiken) ===== */
.sz { display: flex; flex-direction: column; gap: 14px; }
.sz-nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: #fff; border-radius: var(--r); padding: 6px; box-shadow: 0 1px 3px rgba(23,35,66,.08); }
.sz-nav button { border: 0; background: transparent; padding: 9px 13px; border-radius: var(--r); font-weight: 700; font-size: 14px; color: var(--body); cursor: pointer; }
.sz-nav button.on { background: var(--navy); color: #fff; }
.sz-filter { width: auto; margin-left: auto; padding: 8px 10px; font-size: 14px; }
.sz-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sz-kpis.small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.sz-kpi { background: #fff; border-radius: var(--r); padding: 12px 14px; box-shadow: 0 1px 3px rgba(23,35,66,.08); border-top: 3px solid var(--navy); display: flex; flex-direction: column; gap: 2px; }
.sz-kpis.small .sz-kpi { box-shadow: none; background: #f5f7fb; }
.sz-kpi b { font-size: 24px; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; }
.sz-kpi span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sz-kpi small { font-size: 12px; color: var(--muted); }
.sz-note { margin: -4px 2px 0; }
.sz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 14px; }
.sz-card { margin: 0; }
.sz-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 15px; }
.sz-chart { width: 100%; height: auto; display: block; }
.sz-chart text { font-size: 11px; fill: #64748b; }
.sz-chart .g { stroke: #e2e8f0; stroke-width: 1; }
.sz-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.sz-legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.sz-form { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.sz-form .res { font-size: 12px; padding: 3px 7px; }
.sz-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.sz-table th, .sz-table td { padding: 7px 8px; border-bottom: 1px solid #edf1f6; text-align: center; white-space: nowrap; }
.sz-table th:first-child, .sz-table td:first-child { text-align: left; }
.sz-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.sz-table .res { font-size: 12px; padding: 3px 7px; }
.sz-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sz-players tbody tr { cursor: pointer; }
.sz-players tbody tr:hover { background: #f5f7fb; }
.sz-players th.sortable { cursor: pointer; }
.sz-players th.on { color: var(--navy); text-decoration: underline; }
.sz-heat td.hm.pos { background: rgba(22,163,74,var(--a)); color: #fff; font-weight: 800; }
.sz-heat td.hm.neg { background: rgba(220,38,38,var(--a)); color: #fff; font-weight: 800; }
.sz-heat td.hm { color: #cbd5e1; }
.sz-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: 170px; align-items: end; }
.sz-bar { display: flex; flex-direction: column; height: 100%; gap: 4px; }
.sz-bar > span { font-size: 11px; color: var(--muted); text-align: center; }
.sz-bar-cols { flex: 1; display: flex; align-items: flex-end; gap: 3px; justify-content: center; }
.sz-bar-cols i { width: 42%; min-height: 2px; border-radius: 4px 4px 0 0; position: relative; }
.sz-bar-cols i b { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--body); font-style: normal; white-space: nowrap; }
.sz-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sz-tools .btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.sz-tools label { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; flex: 1; min-width: 260px; }
.sz-tools select { flex: 1; }
.sz-cmp td[colspan] { font-weight: 700; }
.sz-player-head { display: flex; gap: 14px; align-items: center; background: var(--navy); color: #fff; border-radius: var(--r); padding: 14px 18px; }
.sz-player-head > b { font-size: 34px; font-weight: 900; min-width: 44px; text-align: center; }
.sz-player-head h3 { margin: 0; font-size: 20px; }
.sz-player-head .muted { color: rgba(255,255,255,.75); }
.sz > .bar, .sz > .card, .sz > p { margin-top: 0; margin-bottom: 0; }
@media (max-width: 760px) { .sz-grid { grid-template-columns: 1fr; } .sz-filter { margin-left: 0; width: 100%; } }

/* ===== Cockpit wie Trainer-Vorlage (iPad quer) ===== */
.pt.booked { border: 2px solid #facc15; box-shadow: inset 0 0 0 1px #fde68a; }
.pt.on.booked { box-shadow: 0 0 0 3px #facc15; }
.ck-more { margin-top: 8px; border: 1px solid #dbe3ee; border-radius: var(--r); background: #f8fafc; flex: none; }
.ck-more summary { cursor: pointer; padding: 9px 12px; font-weight: 800; font-size: 14px; color: var(--navy); list-style: none; display: flex; justify-content: space-between; }
.ck-more summary::after { content: '⌄'; font-size: 18px; line-height: 1; }
.ck-more[open] summary::after { content: '⌃'; }
.ck-more summary::-webkit-details-marker { display: none; }
.more-t { width: calc(100% - 16px); margin: 0 8px 6px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.more-t th { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.more-t td, .more-t th { padding: 4px 6px; text-align: center; border-top: 1px solid #edf1f6; }
.more-t td:nth-child(2) { color: var(--navy); font-weight: 700; }
.ck-more .sync { margin: 4px 12px 10px; }
.mb-team { background: transparent; color: inherit; border: 0; border-bottom: 2px solid rgba(255,255,255,.4); font: inherit; text-transform: uppercase; letter-spacing: inherit; padding: 0 2px; cursor: pointer; }
.mb-team option { color: var(--text); text-transform: none; }
.tools .tool[data-act] { white-space: nowrap; }
.ck-stats .ck-score .ck-h { justify-content: center; font-size: 20px; margin-bottom: 2px; }

@media (min-width: 900px) and (min-height: 560px) {
  /* Kopf wie in der Vorlage: nur die Spielleiste, kein Logo-Balken */
  body.cockpit-mode:has(.cockpit) .top { display: none; }
  body.cockpit-mode:has(.cockpit) .matchbar { background: linear-gradient(180deg, #003267, #1e3a6e); }
  body.cockpit-mode:has(.cockpit) .mb-inner { grid-template-columns: 1fr auto 1fr; padding: 8px 14px 0; align-items: end; }
  body.cockpit-mode:has(.cockpit) .mb-center { padding-bottom: 8px; }
  body.cockpit-mode:has(.cockpit) .mb-title { display: block; font-size: 16px; }
  body.cockpit-mode:has(.cockpit) .mb-match { margin-top: 4px; }
  body.cockpit-mode:has(.cockpit) .mb-match label { display: inline; }
  body.cockpit-mode:has(.cockpit) .mb-tabs { align-self: end; background: rgba(255,255,255,.08); border-radius: 12px 12px 0 0; padding: 6px 6px 0; }
  body.cockpit-mode:has(.cockpit) .mb-tabs button, body.cockpit-mode:has(.cockpit) .mb-tabs a { background: transparent; border-radius: 8px 8px 0 0; padding: 9px 12px; }
  body.cockpit-mode:has(.cockpit) .mb-tabs .on { background: #e8edf4; color: var(--navy); }
  body.cockpit-mode:has(.cockpit) .mb-actions { align-self: center; padding-bottom: 8px; }

  /* Linke Spalte: Uhr, Stand und Teamvergleich in einem Kasten */
  .ck-stats .ck-score { margin-bottom: 8px; }
  .ck-stats .ck-score > .ck-h { display: flex; font-size: 17px; margin: 0; }
  .ck-stats .clock { font-size: 40px; }
  .ck-stats .ck-sb { margin-top: 6px; }

  /* Aktionen: 2 Spalten, Wechsel über die ganze Breite */
  .acts { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(40px, 1fr); }
  .act { font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; }
  .act.big { grid-column: auto; }
  .vfb .act.big { background: #dbe7ff; color: var(--navy); border-color: #b9cdf7; font-size: 16px; padding: 6px; }
  .opp .act.big { background: #fde2e5; color: #9f1239; border-color: #f9c3c8; font-size: 16px; padding: 6px; }
  .act.wide { grid-column: 1 / -1; }
  .vfb .act.wide { background: #e7efff; }
  .opp .act { color: #9f1239; border-color: #f6d0d5; }
  .opp .act.wide { background: #fdecee; }

  /* Aktuelle Elf: Kacheln dürfen wachsen */
  .ck-elf .elf { grid-auto-rows: minmax(52px, auto); }
  .ck-elf .pt { justify-content: center; }
}
@media (min-width: 900px) and (min-height: 560px) {
  .cockpit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); }
  .ck-stats .cmp { grid-template-columns: 84px 1fr 84px; }
  .ck-stats .cmp-mid span { white-space: normal; line-height: 1.1; hyphens: auto; }
  .ck-mom .tools { display: grid; grid-template-columns: repeat(3, 1fr); }
  .ck-mom .tools .tool { grid-column: auto !important; }
}
@media (min-width: 900px) and (min-height: 560px) { .ck-elf .bench { display: none; } .ck-elf .elf { grid-auto-rows: auto; } }
#evMetaWrap .chips { flex-wrap: wrap; padding-bottom: 4px; }
#evMetaWrap .chip { padding: 10px 14px; font-size: 14px; }
#shGrid .pt b { font-size: 26px; }
#shGrid.few { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
#shGrid.few .pt { padding: 26px 12px; border-radius: var(--r); gap: 8px; }
#shGrid.few .pt b { font-size: 34px; }
#shGrid.few .pt span { font-size: 16px; font-weight: 800; white-space: normal; overflow: visible; }

/* Aufstellung: Spielnoten nach dem Abpfiff */
.pp { position: absolute; }
.pp .rt { position: absolute; top: -6px; right: 2px; z-index: 2; }
.rt { font-style: normal; font-size: 11px; font-weight: 900; color: #fff; border-radius: var(--r); padding: 1px 5px; box-shadow: 0 1px 3px rgba(0,0,0,.3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-top { background: #0e7490; } .rt-good { background: #16a34a; } .rt-mid { background: #d97706; } .rt-low { background: #dc2626; }
.rt.best { background: linear-gradient(135deg, #f59e0b, #d97706); outline: 2px solid #fff; }
.lu-p .rt { flex: none; }
.pp u { text-decoration: none; font-size: 11px; line-height: 1; }
.lu-best { margin: 4px 0 10px; padding: 8px 12px; border-radius: var(--r); background: linear-gradient(90deg, #fff7e6, #fff); border: 1px solid #fde3b0; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lu-note { margin: 10px 0 0; }

/* ===== Mannschaftsseite: Heim/Auswärts, Ergebnisreihe, Tabelle, Spieltag ===== */
.fx.home { background: linear-gradient(160deg, #004179, #003267); color: #fff; border-top-color: #93c5fd; }
.fx.home .fx-top { color: rgba(255,255,255,.75); }
.fx.home .fx-mid b { color: rgba(255,255,255,.7); }
.fx.home .fx-date { background: rgba(255,255,255,.14); color: #fff; }
.fx.home .fx-mid .club-logo { filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.fx.away { background: linear-gradient(160deg, color-mix(in srgb, var(--opp) 16%, #fff), color-mix(in srgb, var(--opp2) 10%, #fff) 70%); border-top-color: var(--opp); }
.fx.away .fx-date { background: rgba(255,255,255,.7); }
.rs-strip .rs { flex: 0 0 min(290px, 82vw); scroll-snap-align: start; }

.lt { overflow: hidden; }
.lt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 12px 16px 8px; font-size: 14px; }
.lt-head span { font-size: 12px; color: var(--muted); }
.lt-scroll { overflow-x: auto; }
.lt-t { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.lt-t th, .lt-t td { padding: 9px 8px; text-align: center; border-top: 1px solid #edf1f6; white-space: nowrap; }
.lt-t th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-top: 0; }
.lt-t .l { text-align: left; width: 100%; }
.lt-club { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--navy); }
.lt-club span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.lt-crest, .lt-club .club-logo { width: 24px; height: 24px; object-fit: contain; flex: none; }
.lt-t tr.us td { background: #004179; color: #fff; }
.lt-t tr.us .lt-club { color: #fff; }
.lt-t tr.us .lt-club .club-logo { filter: brightness(0) invert(1); }
.lt-src { margin: 0; padding: 8px 16px 12px; font-size: 12px; color: var(--muted); }
.lt-src a { color: inherit; }

.md-card { padding: 6px 0; }
.md-g { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid #edf1f6; font-size: 14px; font-weight: 700; color: var(--navy); }
.md-g:first-child { border-top: 0; }
.md-t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.md-t.h { justify-content: flex-end; text-align: right; }
.md-t .lt-crest, .md-t .club-logo { width: 26px; height: 26px; }
.md-s { font-family: var(--display); font-weight: 900; font-size: 20px; min-width: 62px; text-align: center; background: #f1f5fa; border-radius: var(--r); padding: 4px 8px; }
.md-s em { font-style: normal; opacity: .45; margin: 0 2px; }
.md-s small { font-family: var(--body-font, inherit); font-size: 11px; font-weight: 700; color: var(--muted); }
.md-g.sotw { margin: 8px 10px 10px; border: 0; border-radius: var(--r); padding: 30px 16px 16px; background: linear-gradient(135deg, #003267, #004179); color: #fff; box-shadow: 0 8px 24px rgba(29,78,216,.3); font-size: 15px; }
.md-g.sotw .md-s { background: #fff; color: var(--navy); font-size: 24px; }
.md-g.sotw .md-t .lt-crest, .md-g.sotw .md-t .club-logo { width: 34px; height: 34px; }
.sotw-tag { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #fde68a; white-space: nowrap; }
@media (max-width: 560px) { .md-g { font-size: 12.5px; gap: 6px; padding: 9px 10px; } .md-s { font-size: 17px; min-width: 50px; } .md-t .lt-crest { width: 20px; height: 20px; } }

/* ===== Kader: Belastung & Aufstellungsplaner ===== */
.kz-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.kz-tools label { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; }
.kz-tools select { width: auto; }
.kz-upload { cursor: pointer; margin-left: auto; }
.kz-name { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.kz-name .av { width: 28px; height: 28px; font-size: 10px; }
.acwr { display: inline-block; min-width: 46px; text-align: center; font-weight: 900; border-radius: var(--r); padding: 3px 8px; color: #fff; }
.acwr-ok { background: #16a34a; } .acwr-low { background: #3b82f6; } .acwr-warn { background: #d97706; } .acwr-high { background: #dc2626; } .acwr-none { background: #cbd5e1; color: #475569; }
.kz-spark { display: inline-flex; align-items: flex-end; gap: 3px; height: 28px; width: 64px; }
.kz-spark i { flex: 1; background: #c7d6f6; border-radius: 2px 2px 0 0; }
.kz-spark i.now { background: #004179; }
.att { display: inline-block; font-size: 12px; font-weight: 800; border-radius: var(--r); padding: 3px 9px; white-space: nowrap; }
.att-zugesagt { background: #dcfce7; color: #166534; } .att-abgesagt { background: #fee2e2; color: #991b1b; } .att-abwesend { background: #f1f5f9; color: #475569; }
.att-unsicher { background: #fef3c7; color: #92400e; } .att-offen, .att-nicht_nominiert { background: #eef2f7; color: #64748b; }
.kz-map .kz-maprow { display: grid; grid-template-columns: 180px 1fr; gap: 10px; align-items: center; margin-top: 8px; }
.pl-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.pl-pitch .pitch { max-width: 520px; margin: 0 auto; }
.pl-row { display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-items: center; margin-bottom: 6px; }
.pl-pos { font-weight: 900; color: var(--navy); background: #eef2f7; border-radius: var(--r); text-align: center; padding: 8px 0; font-size: 13px; }
.pl-row select { padding: 8px 10px; font-size: 14px; }
.pl-bench { margin-top: 12px; font-size: 13px; line-height: 1.6; }
.pl-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 12px; align-items: center; }
.pp .pl-av { background: #dcfce7; color: #166534; }
.pp .pl-av.av-unsicher { background: #fef3c7; color: #92400e; } .pp .pl-av.av-abgesagt, .pp .pl-av.av-abwesend { background: #fee2e2; color: #991b1b; } .pp .pl-av.av-offen { background: #eef2f7; color: #64748b; }
@media (max-width: 860px) { .pl-grid { grid-template-columns: 1fr; } .kz-upload { margin-left: 0; } }
.fx.home .club-logo, .md-g.sotw .club-logo { filter: brightness(0) invert(1); }
.pl-pitch .pitch { max-width: 400px; }
.chart .b-vfb { fill: #236caf; } .chart .b-opp { fill: #c64a60; } .chart .b-0 { fill: #a6b3c4; opacity: .3; }
.chart .gm { font-size: 11px; }
.ti-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; margin-top: 8px; }
.ti-p { display: grid; grid-template-columns: 34px 1fr 1fr; gap: 8px; align-items: center; padding: 6px 8px; border-radius: var(--r); background: #fff7e6; border: 1px solid #fde3b0; }
.ti-p.ok { background: #f0fdf4; border-color: #bbf7d0; }
.ti-p b { font-family: var(--display); font-size: 18px; text-align: center; color: var(--navy); }
.ti-p span { font-weight: 700; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ti-p select { padding: 7px 8px; font-size: 13px; }
.ti-g { display: grid; grid-template-columns: 1fr minmax(220px, 300px) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #edf1f6; }
.ti-g small { display: block; margin-top: 2px; }
@media (max-width: 760px) { .ti-g { grid-template-columns: 1fr; } }

/* ===== Heimspiel dunkelblau wie das Wappen, Logo weiß ===== */
.fx.home { background: linear-gradient(160deg, #003267, #0f1830); border-top-color: #3b6fe0; }
.fx.home .club-logo { filter: none; }
.fx.home .fx-date { background: rgba(255,255,255,.12); }

/* ===== Formvergleich ===== */
.fc-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.fc-team { border-radius: var(--r); padding: 12px; background: color-mix(in srgb, var(--c) 9%, #fff); border-top: 4px solid var(--c); display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.fc-team .club-logo, .fc-team .lt-crest { width: 40px; height: 40px; object-fit: contain; }
.fc-team b { display: block; font-size: 15px; color: var(--navy); }
.fc-team small { color: var(--muted); font-size: 12px; }
.fc-form, .fc-sum { grid-column: 1 / -1; display: flex; gap: 5px; flex-wrap: wrap; }
.fc-sum { gap: 14px; font-size: 13px; color: var(--muted); } .fc-sum b { color: var(--navy); font-size: 16px; }
.fc-r { font-style: normal; width: 26px; height: 26px; border-radius: var(--r); display: grid; place-items: center; font-weight: 900; font-size: 12px; color: #fff; }
.fc-r.w { background: var(--win); } .fc-r.d { background: var(--draw); } .fc-r.l { background: var(--loss); }
.fc-vs { align-self: center; font-family: var(--display); font-weight: 900; color: var(--muted); }
.fc-chart { width: 100%; height: auto; display: block; margin-top: 12px; }
.fc-chart .fc-g { stroke: #e2e8f0; } .fc-chart .fc-0 { stroke: #94a3b8; stroke-width: 1.5; }
.fc-chart .fc-ax { font-size: 11px; fill: #64748b; } .fc-chart .fc-s { font-size: 11px; font-weight: 800; fill: #003267; }
@media (max-width: 600px) { .fc-head { grid-template-columns: 1fr; } .fc-vs { display: none; } }

/* Tabelle: nächster Gegner markiert */
.lt-legend { display: flex; gap: 14px; padding: 0 16px 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lt-legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: #004179; }
.lt-legend .them::before { background: var(--c); }
.lt-t tr.them td { background: color-mix(in srgb, var(--c) 82%, #000); color: #fff; }
.lt-t tr.them .lt-club { color: #fff; }
.md-rk { font-size: 11px; color: var(--muted); font-weight: 800; }
.md-g.sotw .md-rk { color: rgba(255,255,255,.7); }
.md-g.ours:not(.sotw) { background: #eef4ff; }
.md-s small { line-height: 1.25; display: block; }
.md-g.sotw .md-s small { color: var(--navy); }
.fc-chart .fc-lv { font-size: 12px; font-weight: 900; }
.fc-chart .fc-lv.S { fill: #16a34a; } .fc-chart .fc-lv.U { fill: #94a3b8; } .fc-chart .fc-lv.N { fill: #dc2626; }
.fc-chart .fc-s { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; font-size: 12px; }
.lu-wait .card-body { font-weight: 700; color: var(--navy); background: #f5f8ff; }

/* ===== Startseite: alle Mannschaften auf einen Blick ===== */
.to-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.to-card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; color: var(--navy); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s; }
.to-card:hover { transform: translateY(-2px); }
.to-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(135deg, #003267, #22335f); color: #fff; }
.to-head .club-logo { height: 30px; }
.to-head b { font-family: var(--display); font-size: 18px; text-transform: uppercase; letter-spacing: .02em; flex: 1; }
.to-head span { opacity: .7; }
.to-rank { display: flex; align-items: center; gap: 8px; padding: 12px 14px 4px; }
.to-rank > b { font-family: var(--display); font-size: 34px; font-weight: 900; line-height: 1; color: #004179; }
.to-rank > span { font-size: 12px; font-weight: 800; line-height: 1.2; }
.to-rank small { font-weight: 600; color: var(--muted); }
.to-league { margin-left: auto; font-size: 11px !important; font-weight: 700 !important; color: var(--muted); text-align: right; max-width: 45%; }
.to-form { display: flex; gap: 4px; padding: 6px 14px 8px; }
.to-form .fc-r { width: 22px; height: 22px; font-size: 11px; border-radius: var(--r); }
.to-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; align-items: center; padding: 8px 14px; border-top: 1px solid #edf1f6; text-decoration: none; color: var(--navy); font-size: 13px; }
.to-line span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.to-line b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.to-line em { font-style: normal; font-weight: 800; white-space: nowrap; font-size: 12px; }
.to-line .res { font-size: 13px; padding: 3px 8px; }
.to-line.next.home { background: #eef4ff; }
.to-line.live { background: #fff1f2; } .to-line.live span { color: var(--live); }
.to-empty { padding: 14px; margin: 0; color: var(--muted); font-size: 13px; flex: 1; display: flex; align-items: center; }
.to-head { text-decoration: none; }
.to-card:hover { transform: none; }
.to-head:hover span { opacity: 1; }
.to-line b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }

/* ===== Spielseite: Reiter Verlauf / Statistik / Aufstellungen ===== */
.mt-tabs { display: flex; gap: 6px; align-items: center; background: #fff; border-radius: var(--r); padding: 6px; box-shadow: var(--shadow); margin: 14px 0; position: sticky; top: 8px; z-index: 5; }
.mt-tabs button { flex: 1; border: 0; background: transparent; padding: 11px 8px; border-radius: var(--r); font-weight: 800; font-size: 14px; color: var(--navy); cursor: pointer; }
.mt-tabs button.on { background: var(--navy); color: #fff; }
.mt-tabs .mt-step { flex: 0 0 38px; font-size: 22px; line-height: 1; color: var(--muted); }
.mt-tabs .mt-step:disabled { opacity: .25; }
.mt-panel { touch-action: pan-y; min-height: 200px; }
.mt-panel > .sec-title:first-child { margin-top: 0; }
.pre-cd { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 12px; font-weight: 800; color: var(--navy); }
.lu-row.opp { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.lt-live { color: var(--live); }
.md-live { font-style: normal; font-size: 9px; font-weight: 900; color: #fff; background: var(--live); border-radius: var(--r); padding: 1px 4px; margin-right: 4px; vertical-align: 3px; }
@media (max-width: 560px) { .mt-tabs button { font-size: 12.5px; padding: 10px 4px; } }
.lt-t tr.last td { background: #111; color: #fff; }
.lt-t tr.last .lt-club { color: #fff; }
.lt-legend .last::before { background: #111; }

/* ===== Sponsoren-Laufband ganz oben ===== */
.sponsor-ticker { display: flex; align-items: center; height: 34px; background: #0c1428; color: #fff; overflow: hidden; font-size: 13px; position: relative; z-index: 30; }
.st-label { flex: none; height: 100%; display: flex; align-items: center; padding: 0 12px; background: #004179; font-weight: 900; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; position: relative; z-index: 1; }
.st-label::after { content: ''; position: absolute; right: -10px; top: 0; border-left: 10px solid #004179; border-top: 17px solid transparent; border-bottom: 17px solid transparent; }
.st-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.st-run { display: inline-flex; align-items: center; white-space: nowrap; animation: st-scroll linear infinite; padding-left: 20px; }
.sponsor-ticker:hover .st-run { animation-play-state: paused; }
.st-item { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; padding: 0 6px; }
.st-item img { height: 20px; width: auto; max-width: 70px; object-fit: contain; background: #fff; border-radius: var(--r); padding: 1px 3px; }
.st-sep { font-style: normal; color: #f59e0b; margin: 0 16px; font-size: 10px; }
@keyframes st-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .st-run { animation: none; } .st-track { overflow-x: auto; } }

/* ===== Glocke & Benachrichtigungen ===== */
.bell { background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 18px; width: 40px; height: 40px; border-radius: var(--r); cursor: pointer; margin-right: 8px; position: relative; filter: grayscale(1); opacity: .85; }
.bell.on { filter: none; opacity: 1; background: rgba(255,255,255,.18); }
.bell.on::after { content: ''; position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px #003267; }
.notify-dlg { border: 0; border-radius: var(--r); padding: 0; width: min(440px, 94vw); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.notify-dlg::backdrop { background: rgba(15,24,48,.5); }
.nt { padding: 20px; color: var(--navy); }
.nt h3 { margin: 0 0 12px; }
.nt label { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; cursor: pointer; }
.nt input[type=checkbox] { width: 20px; height: 20px; accent-color: #004179; flex: none; }
.nt .nt-main { background: #eef4ff; border-radius: var(--r); padding: 12px; font-weight: 800; }
.nt fieldset { border: 0; border-top: 1px solid #e2e8f0; margin: 10px 0 0; padding: 8px 0 0; }
.nt legend { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0; }
.nt small { color: var(--muted); }
.nt-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.notify-toast { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 200; background: #003267; color: #fff; border-radius: var(--r); padding: 12px 18px; box-shadow: 0 12px 32px rgba(0,0,0,.3); text-decoration: none; display: flex; flex-direction: column; gap: 2px; min-width: min(360px, 90vw); }
.notify-toast b { font-size: 15px; } .notify-toast span { font-size: 13px; opacity: .85; }

/* ===== Unterseiten je Mannschaft ===== */
.team-sub { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; background: #fff; border-radius: var(--r); padding: 6px; box-shadow: var(--shadow); margin: 12px 0 8px; }
.team-sub a { flex: none; padding: 10px 14px; border-radius: var(--r); font-weight: 800; font-size: 14px; color: var(--navy); text-decoration: none; white-space: nowrap; }
.team-sub a.on { background: var(--navy); color: #fff; }
.kd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.kd-card { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.kd-photo { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #22335f, #003267); display: grid; place-items: center; overflow: hidden; }
.kd-photo img { width: 100%; height: 100%; object-fit: cover; }
.kd-photo span { font-family: var(--display); font-size: 46px; font-weight: 900; color: rgba(255,255,255,.35); }
.kd-photo b { position: absolute; left: 10px; bottom: 8px; font-family: var(--display); font-size: 38px; font-weight: 900; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); line-height: 1; }
.kd-body { padding: 10px 12px 12px; }
.kd-name { font-weight: 900; font-size: 15px; color: var(--navy); line-height: 1.2; }
.kd-pos { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.kd-stats { display: flex; gap: 10px; margin-top: 8px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.kd-stats b { color: var(--navy); font-size: 14px; }
.kd-info { font-size: 13px; color: var(--body); margin: 8px 0 0; }
.kd-grid.staff { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.sd-addr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; margin: 0 0 10px; }
.sd-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.sd-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); display: block; }
@media (max-width: 560px) { .kd-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .kd-photo b { font-size: 30px; } }
.tp-person { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid #edf1f6; }
.tp-photo { width: 76px; height: 92px; border-radius: var(--r); overflow: hidden; background: #eef2f7; display: grid; place-items: center; cursor: pointer; font-size: 12px; color: var(--muted); font-weight: 700; }
.tp-photo img { width: 100%; height: 100%; object-fit: cover; }
.tp-fields { display: grid; gap: 6px; }
.tp-fields .in, .card-body > .row2 .in, .card-body > textarea.in { padding: 9px 11px; font-size: 14px; }
.tp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; }
.tp-ph { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: #eef2f7; }
.tp-ph img { width: 100%; height: 100%; object-fit: cover; }
.tp-ph .btn { position: absolute; top: 4px; right: 4px; padding: 2px 7px; }
.tp-ph.add { display: grid; place-items: center; cursor: pointer; font-weight: 800; color: var(--navy); border: 2px dashed #c7d6f6; }
.tp-sp { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; margin-top: 8px; }
.tp-sp label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.tp-save { position: sticky; bottom: 10px; display: flex; justify-content: flex-end; }
.nt .nt-push { background: #f0fdf4; border-radius: var(--r); padding: 10px 12px; margin-top: 6px; align-items: flex-start; }
.nt .nt-push span { line-height: 1.35; }
/* Glocken-Fenster: auf dem Handy scrollbar, Knöpfe immer sichtbar über der Safari-Leiste */
.notify-dlg { max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; margin: auto; }
.nt { padding-bottom: 0; }
.nt-actions { position: sticky; bottom: 0; background: #fff; margin: 12px -20px 0; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #e2e8f0; box-shadow: 0 -8px 16px rgba(255,255,255,.9); }
.nt-actions .btn { flex: 1; padding: 13px; font-size: 16px; }
@media (max-width: 560px) { .notify-dlg { width: 100vw; max-width: 100vw; border-radius: 18px 18px 0 0; margin: auto 0 0; max-height: 88dvh; } .nt label { padding: 9px 0; } }
/* Glocken-Fenster: oben scrollt der Inhalt, unten bleibt die Knopfleiste immer sichtbar */
.notify-dlg[open] { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.notify-dlg .nt { display: flex; flex-direction: column; min-height: 0; flex: 1; padding: 0; }
.notify-dlg .nt-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px 20px 8px; }
.notify-dlg .nt-actions { position: static; flex: none; margin: 0; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 14px rgba(23,35,66,.06); }

/* ===== Alle Fenster: passen in den sichtbaren Bereich (iPhone-Safari-Leiste), Knöpfe bleiben unten sichtbar ===== */
dialog { max-height: 92vh; max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
dialog[open]:not(.notify-dlg) { display: flex; flex-direction: column; overflow: hidden; }
dialog form { max-height: none; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
dialog .dlg-actions { position: sticky; bottom: -20px; z-index: 2; background: #fff; margin: 18px -20px -20px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #e2e8f0; box-shadow: 0 -8px 16px rgba(23,35,66,.05); flex-wrap: wrap; }
dialog.sheet { max-height: 88vh; max-height: calc(100dvh - 40px - env(safe-area-inset-top)); }
dialog.sheet > *:last-child { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
@media (max-width: 560px) {
  dialog:not(.sheet):not(.notify-dlg) { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  dialog .dlg-actions .btn { flex: 1 1 auto; padding: 13px 12px; font-size: 15px; }
}
dialog.sheet .sh-cancel { position: sticky; bottom: -20px; z-index: 2; box-shadow: 0 -10px 0 #fff, 0 -8px 16px rgba(23,35,66,.06); margin-bottom: 0; }
.nt-tone { display: grid; grid-template-columns: 1fr minmax(130px, 46%) auto; gap: 8px; align-items: center; padding: 5px 0; font-size: 14px; }
.nt-tone select { padding: 8px 10px; font-size: 14px; }
.nt-tone .btn { padding: 8px 12px; }
@media (max-width: 400px) { .nt-tone { grid-template-columns: 1fr auto; } .nt-tone span { grid-column: 1 / -1; } }
/* Ton-Knöpfe: antippen = anhören + auswählen */
.nt-tone { display: block; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.nt-tone > span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.nt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nt-chip { border: 1px solid #cbd5e1; background: #fff; color: var(--navy); border-radius: var(--r); padding: 8px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.nt-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.nt-chip:active { transform: scale(.96); }

/* ===== Handy: keine Pfeile, stattdessen Wischen ===== */
@keyframes slide-l { from { opacity: .3; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes slide-r { from { opacity: .3; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.slide-l { animation: slide-l .25s ease-out; } .slide-r { animation: slide-r .25s ease-out; }
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .md-arrow, .mt-tabs .mt-step { display: none; }
  .md-row, .stage .md-row { grid-template-columns: 1fr auto 1fr; }
  .md-links::after { content: '⇆ wischen für weitere Spiele'; flex-basis: 100%; display: block; text-align: center; font-size: 11px; letter-spacing: .04em; opacity: .55; margin-top: 10px; }
  .mt-panel::before { content: '⇆ wischen'; display: block; text-align: center; font-size: 11px; color: var(--muted); margin: -6px 0 6px; }
}
/* Unterpunkte der Mannschaft direkt unter der Kopfzeile */
.team-sub { margin: 0 0 12px; }

/* ---- Teamseite: weiße Verbindung zur Bereichs-Leiste + Deckblatt mit Mannschaftsfoto ---- */
.team-subw { position: relative; }
.team-nub { position: absolute; left: var(--nub-x, 50%); bottom: 100%; width: var(--nub-w, 90px); height: calc(var(--nub-h, 8px) + 4px); margin-bottom: -4px; transform: translateX(-50%); pointer-events: none; z-index: 1; background: #fff; box-shadow: 0 0 6px rgba(23,35,66,.18); }
.team-subw { margin-top: -8px; }
.team-subw .team-sub { position: relative; z-index: 2; }
.team-subw .team-sub { margin-top: 0; }
.page-band.hero { padding: 20px 20px 18px; }
.page-band.hero small { font-size: 11px; margin-bottom: 4px; }
.page-band.hero h1 { font-size: clamp(30px, 5.5vw, 46px); }
.page-band.hero p { margin-top: 6px; font-size: 13px; }
.page-band.hero.has-photo { background: linear-gradient(135deg, rgba(23,35,66,.88), rgba(45,67,121,.8)), var(--hero-img) center 30% / cover no-repeat; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; }
.page-band.hero.has-photo .club-logo { opacity: .14; }
@media (max-width: 760px) { .page-band.hero { padding: 16px 16px 14px; } .page-band.hero.has-photo { min-height: 130px; } }
.tp-ph.wide { grid-column: span 2; aspect-ratio: 16 / 9; }

/* Teamseite: Bereichs-Leiste bleibt beim Scrollen unter dem Kopf stehen; Stadion im Deckblatt */
.team-subw { position: sticky; top: calc(var(--top-h, 110px) + 6px); z-index: 20; }
.hero-sd { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; border-radius: var(--r); background: rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; position: relative; z-index: 1; backdrop-filter: blur(2px); }
.hero-sd b { opacity: .7; }
.hero-sd:hover { background: rgba(255,255,255,.24); }

/* ---- Spieler-Steckbrief ---- */
a.kd-card.link { color: inherit; text-decoration: none; position: relative; transition: transform .15s, box-shadow .15s; }
a.kd-card.link:hover { transform: translateY(-2px); }
.kd-more { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 22px; color: var(--muted); opacity: .6; }
.pf-photo { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 4.2; max-height: 460px; width: 100%; background: linear-gradient(135deg, var(--navy), var(--navy-3)); display: grid; place-items: center; box-shadow: var(--shadow); }
.pf-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.pf-photo > span { font-family: var(--display); font-weight: 900; font-size: 96px; color: rgba(255,255,255,.25); }
.pf-head { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: 14px; padding: 60px 18px 16px; color: #fff; background: linear-gradient(transparent, rgba(23,35,66,.92)); }
.pf-head h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(26px, 7vw, 40px); line-height: 1; margin: 0; }
.pf-head p { margin: 6px 0 0; font-weight: 600; font-size: 13px; opacity: .85; }
.pf-nr { font-family: var(--display); font-size: 56px; line-height: .85; font-weight: 900; opacity: .9; }
.pf-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.pf-chips div { background: #fff; border-radius: var(--r); padding: 10px 12px; box-shadow: var(--shadow); }
.pf-chips span, .pf-kpi span, .pf-fact span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pf-chips b { font-size: 16px; color: var(--navy); }
.pf-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pf-kpi { background: #fff; border-radius: var(--r); padding: 12px 6px; text-align: center; box-shadow: var(--shadow); }
.pf-kpi b { display: block; font-family: var(--display); font-size: 26px; font-weight: 900; color: var(--navy); line-height: 1.1; }
.pf-kpi span { font-size: 10px; }
.pf-best { display: block; margin-top: 10px; background: #fff; border-radius: var(--r); padding: 10px 14px; box-shadow: var(--shadow); color: var(--navy); font-weight: 700; font-size: 14px; text-decoration: none; }
.pf-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.pf-fact { background: #fff; border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); border-left: 4px solid var(--blue, #2563eb); }
.pf-fact b { display: block; margin-top: 4px; font-size: 16px; color: var(--navy); }
.pf-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 18px 0 4px; font-size: 13px; font-weight: 700; }
.pf-nav a { color: var(--navy); text-decoration: none; background: #fff; border-radius: var(--r); padding: 8px 12px; box-shadow: var(--shadow); max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .pf-kpis { grid-template-columns: repeat(4, 1fr); gap: 6px; } .pf-kpi b { font-size: 21px; } .pf-photo { aspect-ratio: 1 / 1.05; } }
.tp-pf { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.tp-pf label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.tp-pf.facts { border-top: 1px solid var(--line, #e5e7eb); padding-top: 10px; }

/* ---- Saison-Analysen ---- */
.an-sub { margin: -6px 0 10px; color: var(--muted); font-size: 13px; }
.an-k { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; }
.an-bars { display: flex; gap: 8px; align-items: stretch; height: 170px; }
.an-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.an-pair { flex: 1; display: flex; align-items: flex-end; gap: 3px; justify-content: center; border-bottom: 1px solid var(--line, #e5e7eb); }
.an-pair i { position: relative; width: 42%; max-width: 26px; border-radius: 5px 5px 0 0; min-height: 2px; }
.an-pair i.f { background: #004179; } .an-pair i.a { background: #e11d48; opacity: .8; }
.an-pair em { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.an-col > span { text-align: center; font-size: 10px; color: var(--muted); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-legend { display: flex; gap: 16px; justify-content: center; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.an-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.an-legend .f::before { background: #004179; } .an-legend .a::before { background: #e11d48; }
.an-share { display: grid; grid-template-columns: 120px 1fr 28px; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.an-share i { height: 10px; border-radius: var(--r); background: #004179; }
.an-share b { text-align: right; }
.an-mom { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.an-mom > div { display: flex; flex-direction: column; align-items: center; }
.an-mom .up, .an-mom .dn { height: 70px; width: 100%; display: flex; justify-content: center; }
.an-mom .up { align-items: flex-end; border-bottom: 1px solid var(--line, #e5e7eb); } .an-mom .dn { align-items: flex-start; }
.an-mom i { width: 60%; max-width: 30px; border-radius: 5px 5px 0 0; background: #004179; min-height: 2px; }
.an-mom i.neg { border-radius: 0 0 5px 5px; background: #e11d48; }
.an-mom b { font-size: 12px; color: var(--navy); margin-top: 4px; } .an-mom span { font-size: 10px; color: var(--muted); }
.an-form { display: flex; gap: 6px; flex-wrap: wrap; }
.an-form .res { width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r); color: #fff; font-weight: 800; }
.an-form .res.w { background: #16a34a; } .an-form .res.d { background: #94a3b8; } .an-form .res.l { background: #e11d48; }
.an-rank { width: 100%; height: 170px; margin-top: 14px; }
.an-rank .grid { stroke: #e5e7eb; stroke-width: 1; } .an-rank text { font-size: 11px; fill: #94a3b8; }
.an-rank .line { fill: none; stroke: #004179; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.an-rank circle { fill: #fff; stroke: #004179; stroke-width: 2; vector-effect: non-scaling-stroke; }
.an-duo { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line, #eef2f7); font-weight: 700; }
.an-duo:last-child { border-bottom: 0; } .an-duo em { font-style: normal; color: var(--muted); } .an-duo b { color: #004179; }
.an-scroll { overflow-x: auto; }
.stats td a, .an-duo a { color: var(--navy); text-decoration: none; border-bottom: 1px dotted currentColor; }

/* Spielseite: Reiter ganz oben, fixiert unter dem Kopf; automatischer Spielbericht */
.mt-wrap { margin-bottom: 12px; }
.mt-wrap .mt-tabs { position: static; margin: 0; }
.mr p { line-height: 1.6; margin: 0 0 12px; }
.mr-kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mr-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 24px; color: var(--navy); margin: 4px 0 12px; }

/* Übersicht: Aktuelles mit Spielbericht und Instagram */
.mr-wrap { margin-bottom: 12px; }
.mr-wrap .mr { margin-bottom: 8px; }
.mr-more { display: inline-block; }
.insta { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 16px; border-radius: var(--r); color: #fff; text-decoration: none; box-shadow: var(--shadow);
  background: linear-gradient(115deg, #f58529 0%, #dd2a7b 45%, #8134af 75%, #515bd4 100%); }
.insta span:not(.insta-ic) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.insta b { font-size: 16px; } .insta small { opacity: .9; font-size: 12px; }
.insta em { font-style: normal; font-size: 20px; opacity: .9; }
.insta-ic { width: 34px; height: 34px; border: 3px solid #fff; border-radius: var(--r); position: relative; flex: none; }
.insta-ic::before { content: ''; position: absolute; inset: 6px; border: 3px solid #fff; border-radius: 50%; }
.insta-ic::after { content: ''; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; background: #fff; border-radius: 50%; }
.sec-title.big { margin-top: 28px; }

/* Tabelle: Aufstiegs- und Abstiegsplätze */
.lt-t tr.up td { background: #ecfdf3; }
.lt-t tr.down td { background: #fef2f2; }
.lt-t tr.up td:first-child { box-shadow: inset 4px 0 #16a34a; }
.lt-t tr.down td:first-child { box-shadow: inset 4px 0 #e11d48; }
.lt-t tr.us.up td, .lt-t tr.us.down td { background: #004179; }
.lt-legend .up::before { background: #16a34a !important; }
.lt-legend .down::before { background: #e11d48 !important; }

/* ---- Fan-Bereich ---- */
.tip-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.tip-h a { font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; }
.tip-row { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 8px; }
.tip-row em { font-style: normal; font-weight: 900; font-size: 22px; color: var(--muted); }
.tip-t { font-weight: 800; font-size: 13px; line-height: 1.2; color: var(--navy); }
.tip-t:first-child { text-align: right; }
.tip-num { display: flex; flex-direction: column; align-items: center; background: #f1f5f9; border-radius: var(--r); overflow: hidden; }
.tip-num b { font-family: var(--display); font-size: 30px; font-weight: 900; color: var(--navy); line-height: 1.1; min-width: 44px; text-align: center; }
.tip-num button { border: 0; background: none; width: 44px; height: 30px; font-size: 20px; font-weight: 800; color: var(--navy); cursor: pointer; }
.tip-num button:active { background: #e2e8f0; }
.tip-send { display: flex; gap: 8px; margin: 12px 0 6px; } .tip-send .in { flex: 1; min-width: 0; }
.tip-dist { margin-top: 10px; }
.tip-bar { display: flex; height: 10px; border-radius: var(--r); overflow: hidden; background: #eef2f7; }
.tip-bar i.h { background: #004179; } .tip-bar i.d { background: #94a3b8; } .tip-bar i.a { background: #e11d48; }
.tip-leg { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 4px; }
table.stats tr.me td { background: #eff6ff; font-weight: 800; }
.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin: 8px 0; }
.vote-grid button { display: flex; gap: 8px; align-items: center; text-align: left; border: 1px solid var(--line, #e5e7eb); background: #fff; border-radius: var(--r); padding: 9px 10px; font-weight: 700; font-size: 13px; color: var(--navy); cursor: pointer; }
.vote-grid button b { color: var(--muted); min-width: 18px; }
.vote-grid button.on { background: var(--navy); color: #fff; border-color: var(--navy); } .vote-grid button.on b { color: #fff; }
.vote-r { display: grid; grid-template-columns: minmax(110px, 40%) 1fr 44px; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; font-weight: 700; }
.vote-r i { height: 10px; border-radius: var(--r); background: #f59e0b; } .vote-r.me span { color: #004179; } .vote-r b { text-align: right; }
.pf-ms { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.pf-ms a { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 8px; background: #fff; border-radius: var(--r); padding: 10px 12px; box-shadow: var(--shadow); text-decoration: none; color: var(--navy); }
.pf-ms span { grid-row: span 2; font-size: 22px; align-self: center; } .pf-ms small { color: var(--muted); }
/* Kalender (Monatsansicht) */
.cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-top b { font-family: var(--display); font-size: 22px; font-weight: 900; text-transform: uppercase; color: var(--navy); }
.cal-nav { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #f1f5f9; font-size: 22px; font-weight: 800; color: var(--navy); cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-w { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; padding-bottom: 4px; }
.cal-d { position: relative; min-height: 74px; border-radius: var(--r); background: #f8fafc; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 18px 2px 5px; text-decoration: none; color: var(--navy); overflow: hidden; }
.cal-d.empty { background: none; }
.cal-n { position: absolute; top: 4px; left: 6px; font-size: 11px; font-weight: 700; color: var(--muted); }
.cal-d.today { outline: 2px solid #f59e0b; }
.cal-d.game.home { background: var(--navy); color: #fff; } .cal-d.game.home .cal-n { color: rgba(255,255,255,.7); }
.cal-d.game.away { background: #fff; border: 2px solid var(--navy); }
.cal-c img, .cal-c svg { width: 28px; height: 28px; object-fit: contain; display: block; }
.cal-c { background: #fff; border-radius: 50%; padding: 2px; }
.cal-d em { font-style: normal; font-size: 10px; font-weight: 800; opacity: .75; margin-top: 2px; }
.cal-d small { font-size: 11px; font-weight: 800; }
.cal-res { font-size: 11px; padding: 1px 5px; border-radius: var(--r); color: #fff; }
.cal-res.w, .cal-res.win { background: #16a34a; } .cal-res.d, .cal-res.draw { background: #94a3b8; } .cal-res.l, .cal-res.loss { background: #e11d48; } .cal-res.live { background: #e11d48; }
.cal-leg { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 10px; }
.cal-leg .home::before, .cal-leg .away::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.cal-leg .home::before { background: var(--navy); } .cal-leg .away::before { border: 2px solid var(--navy); box-sizing: border-box; }
.cal-sub { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.cal-sub .btn { text-decoration: none; }
@media (max-width: 520px) { .cal-d { min-height: 62px; padding-top: 16px; } .cal-c img, .cal-c svg { width: 22px; height: 22px; } .cal-d em { display: none; } }
/* Startseite: Heute */
.today { display: grid; gap: 10px; }
.td { padding: 0; overflow: hidden; }
.td-main { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; text-decoration: none; color: var(--navy); }
.td-team { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 18px; }
.td-opp { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; } .td-opp img { width: 28px; height: 28px; object-fit: contain; }
.td-opp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-time { font-family: var(--display); font-size: 22px; font-weight: 900; }
.td-foot { background: #f8fafc; padding: 8px 16px; font-size: 12px; color: var(--muted); font-weight: 600; } .td-foot a { color: var(--navy); }
.cal-c .opp-crest, .td-opp .opp-crest { width: 28px !important; height: 28px !important; min-width: 0 !important; font-size: 10px !important; margin: 0 !important; display: grid; place-items: center; overflow: hidden; border-radius: 50%; }
.cal-c .opp-crest img, .td-opp .opp-crest img { width: 100% !important; height: 100% !important; object-fit: contain; }
@media (max-width: 520px) { .cal-c .opp-crest { width: 24px !important; height: 24px !important; } }

/* ---- Tippspiel-Reiter ---- */
.tip-hero { margin-bottom: 12px; background: linear-gradient(135deg, #0f766e, var(--navy)) !important; }
.tip-me-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tip-as { flex: 1; align-self: center; font-size: 14px; } .tip-as a { font-size: 12px; margin-left: 4px; }
.tip-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.tip-filter button { flex: none; border: 1px solid var(--line, #e5e7eb); background: #fff; border-radius: var(--r); padding: 7px 12px; font-weight: 700; font-size: 13px; color: var(--navy); cursor: pointer; }
.tip-filter button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tip-prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tip-prizes div { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 8px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.tip-prizes span { font-size: 30px; } .tip-prizes b { color: var(--navy); } .tip-prizes small { color: var(--muted); font-size: 11px; line-height: 1.3; }
.tip-rules p { margin: 0 0 10px; line-height: 1.5; } .tip-rules p:last-child { margin: 0; }
.tip-more summary { cursor: pointer; font-weight: 700; color: var(--navy); margin: 6px 0 10px; }
.card.tip + .card.tip { margin-top: 10px; }

/* ---- Förderkreis ---- */
.fk-hero { background: linear-gradient(135deg, #be123c, var(--navy)) !important; margin-bottom: 12px; }
.fk-hero p { max-width: 560px; line-height: 1.5; }
.fk-toggle { display: inline-flex; background: #f1f5f9; border-radius: var(--r); padding: 4px; margin-bottom: 12px; }
.fk-toggle button { border: 0; background: none; padding: 8px 16px; border-radius: var(--r); font-weight: 800; color: var(--navy); cursor: pointer; }
.fk-toggle button.on { background: var(--navy); color: #fff; }
.fk-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; }
.fk-chips button { border: 1px solid var(--line, #e5e7eb); background: #fff; border-radius: var(--r); padding: 8px 12px; font-weight: 800; color: var(--navy); cursor: pointer; }
.fk-chips button.on { background: #be123c; border-color: #be123c; color: #fff; }
.fk-own { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.fk-own input { width: 74px; border: 1px solid var(--line, #e5e7eb); border-radius: var(--r); padding: 8px; font: inherit; font-weight: 800; color: var(--navy); }
.fk-pay { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fk-pay .btn { text-decoration: none; }
.fk-pp { background: #ffc439 !important; color: #142c8e !important; border-color: #ffc439 !important; font-weight: 900; }
.fk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.fk-head { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; }
.fk-head b { color: var(--navy); font-size: 16px; } .fk-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.fk-head em { font-style: normal; font-weight: 900; color: var(--navy); font-size: 18px; white-space: nowrap; }
.fk-ic { font-size: 28px; line-height: 1; }
.fk-item.big .fk-ic { font-size: 40px; } .fk-item.big .fk-head b { font-size: 20px; }
.fk-bar { height: 12px; border-radius: var(--r); background: #f1f5f9; overflow: hidden; margin-top: 12px; }
.fk-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f43f5e, #be123c); border-radius: var(--r); }
.fk-stand { margin: 6px 0 0; font-size: 13px; color: var(--muted); } .fk-stand b { color: var(--navy); }
.fk-item + .fk-item { margin-top: 10px; } .fk-grid .fk-item + .fk-item { margin-top: 0; }
.fk-done { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.fk-done div { background: #ecfdf3; border-radius: var(--r); padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; }
.fk-done span { grid-row: span 2; font-size: 22px; } .fk-done b { color: #166534; font-size: 13px; } .fk-done small { color: #15803d; }
.fk-modal { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 100; display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.fk-sheet { background: #fff; border-radius: var(--r); padding: 18px; width: 100%; max-width: 460px; max-height: 85dvh; overflow: auto; display: grid; gap: 8px; margin-bottom: env(safe-area-inset-bottom); }
.fk-sheet-t { font-family: var(--display); font-size: 20px; text-transform: uppercase; color: var(--navy); }
.fk-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; border-bottom: 1px solid #eef2f7; padding: 6px 0; }
.fk-row span { grid-column: 1 / -1; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.fk-row b { color: var(--navy); overflow-wrap: anywhere; }
@media (min-width: 700px) { .fk-modal { align-items: center; } }
.fk-ed { border: 1px solid var(--line, #e5e7eb); border-radius: var(--r); padding: 10px; margin: 10px 0; display: grid; gap: 8px; }
.fk-ed-r { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.fk-ed-r > .in { flex: 1; min-width: 140px; } .fk-ed-r label { display: flex; flex-direction: column; font-size: 11px; font-weight: 700; color: var(--muted); gap: 3px; }
.fk-ed-r label .in { width: 110px; } .fk-ic-in { flex: 0 0 56px !important; min-width: 0 !important; text-align: center; font-size: 20px; }
.fk-chk { flex-direction: row !important; align-items: center; gap: 6px !important; font-size: 13px !important; color: var(--navy) !important; padding-bottom: 8px; }

/* ---- Turnier (WAZ Cup) ---- */
.wz-hero { background: linear-gradient(135deg, #b45309, var(--navy)) !important; margin-bottom: 12px; }
.wz-live { background: #e11d48; color: #fff; font-weight: 800; border-radius: var(--r); padding: 10px 14px; margin-bottom: 12px; } .wz-live a { color: #fff; }
.wz-cd b { font-family: var(--display); font-size: 22px; text-transform: uppercase; color: var(--navy); }
.wz-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.wz-g { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 10px; display: grid; gap: 6px; align-content: start; }
.wz-gh { font-family: var(--display); font-weight: 900; text-transform: uppercase; color: #fff; background: var(--navy); border-radius: var(--r); padding: 6px 10px; font-size: 18px; }
.wz-slot { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--r); background: #f8fafc; font-weight: 700; color: var(--navy); min-height: 44px; }
.wz-slot .opp-crest, .wz-pot .opp-crest, .wz-slot .club-logo, .wz-pot .club-logo { width: 28px !important; height: 28px !important; flex: none; margin: 0 !important; }
.wz-slot .opp-crest img, .wz-pot .opp-crest img { width: 100%; height: 100%; object-fit: contain; }
.wz-slot small { margin-left: auto; font-size: 10px; color: var(--muted); text-transform: uppercase; }
.wz-slot.empty { border: 2px dashed #cbd5e1; background: none; color: #94a3b8; justify-content: center; font-weight: 800; }
.wz-slot.new { animation: wz-pop 1.2s ease-out; background: #fef3c7; }
@keyframes wz-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
.wz-pot { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.wz-pot div { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 8px 10px; font-weight: 700; color: var(--navy); font-size: 14px; }
.wz-pot small { margin-left: auto; font-size: 10px; color: var(--muted); }
.wz-m { display: grid !important; grid-template-columns: 46px 22px 1fr auto 1fr; gap: 8px; align-items: center; font-size: 14px; }
.wz-t { font-weight: 800; color: var(--muted); } .wz-gl { font-weight: 900; color: #b45309; } .wz-h { text-align: right; } .wz-m b { font-family: var(--display); font-size: 18px; }
.wz-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.wz-tabs .card { margin: 0; } .wz-tabs th.l, .wz-tabs td.l { text-align: left; }
/* Leinwand-Modus: nur die Auslosung, ohne Kopf und Fuß */
body.screen-mode .top, body.screen-mode #sponsorTicker, body.screen-mode #livebar, body.screen-mode #foot, body.screen-mode #demo, body.screen-mode .tabs { display: none !important; }
body.screen-mode { background: #0b1226; }
body.screen-mode main { max-width: none; padding: 0; }
.ds { min-height: 100vh; background: radial-gradient(circle at 20% 0%, #1e3a8a 0%, #0b1226 55%); color: #fff; display: flex; flex-direction: column; padding: 2.2vw 2.5vw; box-sizing: border-box; font-size: 1.1vw; }
.ds-top { display: flex; align-items: center; gap: 1.5vw; margin-bottom: 1.8vw; }
.ds-top .club-logo { height: 5vw; width: auto; }
.ds-top small { font-weight: 800; letter-spacing: .2em; text-transform: uppercase; opacity: .7; font-size: 1vw; }
.ds-top h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 3.4vw; margin: 0; line-height: 1; }
.ds-live { margin-left: auto; background: #e11d48; padding: .5vw 1.2vw; border-radius: var(--r); font-weight: 900; font-size: 1.4vw; animation: ds-blink 1.6s infinite; }
@keyframes ds-blink { 50% { opacity: .55; } }
.ds-body { flex: 1; display: grid; grid-template-columns: 1fr 2.4fr; gap: 2vw; }
.ds-pot { background: rgba(255,255,255,.06); border-radius: 1.2vw; padding: 1.2vw; }
.ds-pot h2, .ds-right .wz-gh { font-family: var(--display); text-transform: uppercase; }
.ds-pot h2 { margin: 0 0 1vw; font-size: 2vw; display: flex; justify-content: space-between; }
.ds-pot h2 span { background: #f59e0b; color: #0b1226; border-radius: var(--r); padding: 0 .9vw; }
.ds-balls { display: grid; gap: .7vw; }
.ds-ball { display: flex; align-items: center; gap: .9vw; background: rgba(255,255,255,.1); border-radius: .8vw; padding: .7vw .9vw; font-size: 1.35vw; font-weight: 700; }
.ds-ball .opp-crest, .ds-ball .club-logo { width: 2.4vw !important; height: 2.4vw !important; margin: 0 !important; flex: none; background: #fff; border-radius: 50%; }
.ds-ball .opp-crest img { width: 100%; height: 100%; object-fit: contain; }
.ds-empty { font-size: 1.6vw; opacity: .8; }
.wz-groups.screen { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1.4vw; align-items: start; }
.wz-groups.screen .wz-g { background: rgba(255,255,255,.08); box-shadow: none; padding: 1vw; gap: .8vw; border-radius: 1.2vw; }
.wz-groups.screen .wz-gh { font-size: 2.2vw; background: #f59e0b; color: #0b1226; text-align: center; border-radius: .8vw; padding: .5vw; }
.wz-groups.screen .wz-slot { background: rgba(255,255,255,.12); color: #fff; font-size: 1.5vw; min-height: 4.2vw; padding: .6vw .9vw; border-radius: .8vw; gap: .9vw; }
.wz-groups.screen .wz-slot.empty { border: .18vw dashed rgba(255,255,255,.3); background: none; color: rgba(255,255,255,.35); }
.wz-groups.screen .wz-slot.new { background: #f59e0b; color: #0b1226; }
.wz-groups.screen .wz-slot .opp-crest, .wz-groups.screen .wz-slot .club-logo { width: 2.8vw !important; height: 2.8vw !important; background: #fff; border-radius: 50%; }
.wz-groups.screen .wz-slot small { color: inherit; opacity: .7; font-size: .9vw; }
.ds-reveal { position: fixed; inset: 0; background: rgba(5,10,25,.72); display: grid; place-items: center; z-index: 50; animation: ds-fade 7s forwards; }
.ds-card { background: #fff; color: var(--navy); border-radius: 2vw; padding: 3vw 5vw; display: flex; flex-direction: column; align-items: center; gap: 1.2vw; animation: ds-zoom .7s cubic-bezier(.2,1.4,.4,1); box-shadow: 0 2vw 6vw rgba(0,0,0,.5); }
.ds-card .opp-crest, .ds-card .club-logo { width: 10vw !important; height: 10vw !important; margin: 0 !important; }
.ds-card .opp-crest img { width: 100%; height: 100%; object-fit: contain; }
.ds-card b { font-family: var(--display); font-size: 4.5vw; text-transform: uppercase; line-height: 1; text-align: center; }
.ds-card span { font-size: 2.6vw; font-weight: 900; color: #fff; background: #b45309; border-radius: var(--r); padding: .4vw 2vw; }
@keyframes ds-zoom { from { transform: scale(.2) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ds-fade { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }

/* =====================================================================
   Corporate Design VfB Fallersleben (wie www.vfb-fallersleben.de):
   weißer Kopf mit blau-grauen Schrägstreifen, VfB-Blau, eckige Formen, Überschriften in ABeeZee
   ===================================================================== */
.top { background: #fff; color: var(--navy); box-shadow: 0 3px 0 var(--navy-2), 0 6px 18px rgba(0, 50, 103, .12); }
.brand, .brand-text, .brand a.link, .brand .link { color: var(--navy) !important; }
.brand .divider { background: rgba(0, 50, 103, .25); }
.brand-text small { opacity: .7; }
.burger i { background: var(--navy); }
.bell { background: #eef3f8; color: var(--navy); }
.bell.on { background: #e1ebf5; } .bell.on::after { box-shadow: 0 0 0 2px #fff; }
/* Schrägstreifen wie im Kopf der Vereinsseite */
.brand .spacer { position: relative; align-self: stretch; overflow: hidden; }
.brand .spacer::before, .brand .spacer::after { content: ''; position: absolute; top: 0; bottom: 0; transform: skewX(-32deg); }
.brand .spacer::before { right: 64px; width: 54px; background: var(--navy-2); }
.brand .spacer::after { right: 4px; width: 54px; background: var(--grey-cd); }
@media (max-width: 420px) { .brand .spacer::before, .brand .spacer::after { width: 30px; } .brand .spacer::before { right: 40px; } }
.tabs { background: var(--navy-2); }
/* Überschriften: ABeeZee in Großbuchstaben (fett wie auf der Vereinsseite) */
.sec-title, .page-band h1, .md-kicker, .td-team, .mr-title, .pf-head h1, .wz-gh, .fk-sheet-t, .cal-top b { font-family: var(--display); font-weight: 700; letter-spacing: .02em; }
.sec-title::before { border-radius: 0 !important; }
.btn, .pill-link, .cta { border-radius: var(--r) !important; }

/* ---- Organigramm / Ansprechpartner ---- */
.og-hero { margin-bottom: 18px; }
.og { position: relative; }
.og-root { display: flex; justify-content: center; position: relative; padding-bottom: 22px; }
.og-root::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 3px; height: 22px; background: var(--navy-2); transform: translateX(-50%); }
.og-row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; position: relative; padding-top: 22px; }
.og-row::before { content: ''; position: absolute; top: 0; height: 3px; background: var(--navy-2); left: calc(50% / var(--n)); right: calc(50% / var(--n)); }
.og-col { position: relative; display: flex; flex-direction: column; gap: 10px; }
.og-col::before { content: ''; position: absolute; top: -22px; left: 50%; width: 3px; height: 22px; background: var(--navy-2); transform: translateX(-50%); }
.og-p { background: #fff; box-shadow: var(--shadow); border-top: 4px solid var(--navy-2); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.og-p.top { width: min(320px, 100%); border-top-color: var(--grey-cd); background: var(--navy); color: #fff; }
.og-ph { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: #eef3f8; display: grid; place-items: center; flex: none; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--navy-2); }
.og-p.top .og-ph { width: 104px; height: 104px; }
.og-ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.og-ph span { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--navy); }
.og-tx { display: flex; flex-direction: column; gap: 2px; }
.og-tx small { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-2); }
.og-tx b { font-family: var(--display); font-size: 17px; text-transform: uppercase; color: var(--navy); }
.og-p.top .og-tx b { color: #fff; font-size: 20px; } .og-p.top .og-tx span { color: rgba(255,255,255,.8); }
.og-tx > span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.og-sub { display: flex; flex-direction: column; gap: 6px; padding-left: 12px; border-left: 3px solid #d6e2ee; margin-left: 12px; }
.og-team { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; background: #f4f7fb; border-radius: var(--r); padding: 8px 10px; text-decoration: none; color: var(--navy); }
.og-team b { font-size: 13px; } .og-team span { grid-column: 1; font-size: 12px; color: var(--muted); } .og-team i { font-style: normal; opacity: .75; }
.og-team em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: 18px; color: var(--navy-2); }
.og-ct { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.og-ct a { font-size: 12px; font-weight: 700; }
.og-contact { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; } .og-contact .og-ct { justify-content: flex-start; } .og-contact .btn { text-decoration: none; }
/* Handy: Baum senkrecht mit Linie links */
@media (max-width: 760px) {
  .og-root { justify-content: flex-start; padding-left: 0; }
  .og-root::after { left: 26px; }
  .og-row { grid-template-columns: 1fr; padding: 22px 0 0 26px; gap: 12px; }
  .og-row::before { left: 24px; right: auto; width: 3px; top: 0; bottom: 40px; height: auto; }
  .og-col::before { top: 38px; left: -26px; width: 26px; height: 3px; transform: none; }
  .og-p:not(.top) { flex-direction: row; text-align: left; align-items: center; }
  .og-p:not(.top) .og-ph { width: 64px; height: 64px; }
  .og-p:not(.top) .og-ct { justify-content: flex-start; }
}

/* ---- Bausteine für die Vereinsseite (embed) ---- */
body.embed { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #333; }
.w-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.w-box { background: #fff; border-top: 4px solid var(--navy-2); box-shadow: 0 1px 4px rgba(0,0,0,.08); padding: 12px 14px; }
.w-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.w-title small { display: block; font-family: inherit; text-transform: none; font-size: 11px; color: #888; font-weight: 400; }
.w-row { display: grid; grid-template-columns: 44px 80px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eee; text-decoration: none; color: inherit; font-size: 14px; }
.w-date { color: #888; font-size: 12px; } .w-team { font-weight: 700; color: var(--navy); font-size: 13px; }
.w-opp { display: flex; align-items: center; gap: 6px; min-width: 0; } .w-opp > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-opp .opp-crest { width: 22px !important; height: 22px !important; min-width: 0 !important; margin: 0 !important; flex: none; } .w-opp .opp-crest img { width: 100%; height: 100%; object-fit: contain; }
.w-res { color: #fff; padding: 2px 8px; font-size: 13px; background: #94a3b8; } .w-res.win { background: #16a34a; } .w-res.loss { background: #dc2626; }
.w-tab { width: 100%; border-collapse: collapse; font-size: 14px; } .w-tab th { font-size: 11px; color: #888; text-transform: uppercase; padding: 4px; }
.w-tab td { padding: 6px 4px; text-align: center; border-bottom: 1px solid #eee; } .w-tab .l { text-align: left; }
.w-tab tr.us td { background: var(--navy-2); color: #fff; font-weight: 700; }
.w-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.w-tm { display: flex; flex-direction: column; gap: 3px; background: var(--navy); color: #fff; text-decoration: none; padding: 14px; border-left: 6px solid var(--grey-cd); }
.w-tm b { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 20px; } .w-tm small { opacity: .75; font-size: 12px; }
.w-rank { font-weight: 700; font-size: 13px; margin-top: 4px; } .w-next { font-size: 12px; opacity: .85; }
.w-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; align-items: stretch; }
.w-links > .club-logo { display: none; }
.w-links a { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: var(--navy-2); color: #fff; text-decoration: none; transition: background .15s; }
.w-links a:hover { background: var(--navy); } .w-links span { font-size: 24px; } .w-links b { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 16px; } .w-links small { opacity: .8; font-size: 12px; }
.w-empty { color: #888; font-size: 14px; }

/* Kopf wie auf vfb-fallersleben.de: Original-Wimpel statt nachgebauter Streifen */
.brand .spacer::before, .brand .spacer::after { display: none !important; }
.brand #crest { display: flex; align-items: flex-end; align-self: stretch; }
.brand .wimpel { height: 58px; width: auto; display: block; margin-top: auto; }
@media (max-width: 760px) {
  .brand { height: 64px; }
  .brand .wimpel { height: 46px; }
  .brand .divider, .brand .brand-text { display: none !important; }   /* wie auf der Vereinsseite: nur Wimpel + Menü */
  .burger { background: #f0f0f0; width: 50px; height: 50px; gap: 6px; }
  .burger i { width: 26px; height: 3px; background: #333; border-radius: 0; }
  .bell { background: #f0f0f0; border-radius: 0; height: 50px; width: 50px; }
}
/* weiße Sponsorenlogos (z. B. Brauhaus) auf VfB-Blau, sonst unsichtbar */
img.sp-logo.on-dark { background: var(--navy); padding: 6px 10px; box-sizing: content-box; }
