/* Fanzone 1:1 nach App-Code (fanzone_page.dart, next_match_row.dart, competition_logo_row.dart, fanzone_feature.dart,
 * competition_banner.dart, competition_tile.dart, standings_table.dart, fixture_card.dart, competition_stat_screen.dart).
 * px = pt der App. Farben aus den Design-Tokens: Text #121212 / #666B78, Linie #E3E6E8, Akzent #E6197A. */

.fi-fz { --fz-pink: #e6197a; --fz-text: #121212; --fz-muted: #666b78; --fz-line: #e3e6e8; max-width: 640px; margin: 0 auto; padding-bottom: 24px; color: var(--fz-text); }
.fi-fz a { color: inherit; text-decoration: none; }
.fi-fzpage .fi-main { background: #fff; }
/* Handy: Fanzone ohne Website-Kopf (eigener Kopf im Banner); am Computer mit Hauptmenü */
@media (max-width: 1023px) { body.fi-fzpage .fi-apphead, body.fi-fzpage .fi-appsearch { display: none !important; } }
.fz-top { display: contents; }
.fz-banner-more, .fz-comp-sub, .fz-section--more { display: none; }

/* ---------- Übersicht: Begrüßung ---------- */
.fz-banner { padding: calc(10px + env(safe-area-inset-top)) 16px 12px; background: linear-gradient(to bottom right, #e00030, #9a1450); color: #fff; }
.fz-banner h1 { margin: 0; font-size: 23px; font-weight: 800; line-height: 1.25; letter-spacing: 0; color: #fff; }
.fz-banner p { margin: 2px 0 0; font-size: 13px; color: rgba(255, 255, 255, .85); }

/* Nächstes Spiel */
.fz-next { display: block; margin-top: 4px; padding: 12px 16px 14px; border-top: 1px solid var(--fz-line); border-bottom: 1px solid var(--fz-line); background: #fff; }
.fz-next-head { display: flex; align-items: center; margin: 0; }
.fz-bar { flex: none; width: 4px; height: 13px; margin-right: 9px; background: var(--fz-pink); }
.fz-next-head b { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; color: var(--fz-pink); }
.fz-next-head small { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .9px; color: var(--fz-muted); }
.fz-next-body { display: flex; align-items: stretch; gap: 12px; margin-top: 12px; }
.fz-next-teams { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; flex: 1; min-width: 0; }
.fz-next-side { display: flex; align-items: center; gap: 12px; }
.fz-next-crest { display: grid; place-items: center; flex: none; width: 54px; height: 46px; }
.fz-next-crest img { width: 100%; height: 100%; object-fit: contain; }
.fz-next-side b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 800; line-height: 1.15; letter-spacing: .3px; }
.fz-next-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.fz-kickoff { padding: 6px 12px; background: var(--fz-pink); color: #fff; font-size: 19px; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; }
.fz-live { font-size: 13px; font-weight: 700; color: var(--fz-pink); }
.fz-countdown { display: flex; flex-direction: column; align-items: flex-end; }
.fz-countdown small { font-size: 9.5px; font-weight: 700; letter-spacing: 1px; color: var(--fz-muted); }
.fz-countdown > span { display: flex; gap: 12px; margin-top: 3px; }
.fz-fig { display: flex; align-items: baseline; gap: 4px; }
.fz-fig b { font-size: 22px; font-weight: 800; letter-spacing: -.8px; font-variant-numeric: tabular-nums; line-height: 1; }
.fz-fig i { font-size: 10px; font-style: normal; font-weight: 700; letter-spacing: .8px; color: var(--fz-muted); }

/* Abschnittsüberschrift */
.fz-section { margin: 0; padding: 16px 16px 8px; font-size: 11px !important; font-weight: 800; letter-spacing: 1.1px; line-height: 1.3; text-transform: uppercase; color: var(--fz-pink) !important; }

/* Wettbewerbe: Logo-Kacheln mit hartem pinkem Versatz-Schatten */
.fz-comps { display: flex; gap: 14px; padding: 0 20px 4px 16px; }
.fz-comp { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; padding: 12px 8px; border: 1.4px solid var(--fz-text); background: #fff; box-shadow: 4px 4px 0 var(--fz-pink); text-align: center; }
.fz-comp:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--fz-pink); }
.fz-comp-logo { display: grid; place-items: center; height: 40px; }
.fz-comp-logo img { max-width: 100%; height: 40px; object-fit: contain; }
.fz-comp b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: 13px; font-weight: 700; line-height: 1.15; }

/* Mitmachen: breite Kacheln mit gezeichnetem Motiv */
.fz-join { padding: 0 16px; }
.fz-feature { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 108px; margin-bottom: 10px; padding: 14px 16px; overflow: hidden; color: #fff !important; }
.fz-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fz-feature-kicker { position: relative; font-size: 10.5px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.fz-feature-text { position: relative; display: flex; flex-direction: column; gap: 4px; }
.fz-feature-text b { font-size: 20px; font-weight: 800; letter-spacing: -.5px; line-height: 1.05; }
.fz-feature-text small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.fz-feature-text small span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fz-feature-text small svg { flex: none; color: #fff; }
.fz-feature:active { filter: brightness(1.08); }

/* Kleine Kacheln (FanzoneChip / CompetitionTile) – drei bzw. zwei pro Zeile */
.fz-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.fz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fz-tile { display: flex; flex-direction: column; min-width: 0; padding: 13px; border: 1px solid var(--fz-line); background: #fff; }
.fz-grid .fz-tile { padding: 14px; }
.fz-tile-emoji { font-size: 24px; line-height: 1.2; }
.fz-tile b { margin-top: 14px; overflow: hidden; font-size: 15px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; text-overflow: ellipsis; }
.fz-tile small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 11.5px; line-height: 1.25; color: var(--fz-muted); }
.fz-tile:active { background: #f7f7f8; }

/* ---------- Wettbewerb: Banner ---------- */
.fz-cbanner { padding: calc(4px + env(safe-area-inset-top)) 16px 14px; color: #fff; }
.fz-back { display: grid; place-items: center start; width: 44px; height: 40px; color: #fff !important; }
.fz-cbanner-row { display: flex; align-items: flex-end; gap: 14px; margin-top: 6px; }
.fz-cbanner-text { flex: 1; min-width: 0; }
.fz-kicker { margin: 0; overflow: hidden; font-size: 10.5px; font-weight: 800; letter-spacing: 1.3px; white-space: nowrap; text-overflow: ellipsis; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.fz-cbanner h1 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 3px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.6px; line-height: 1.05; color: #fff; }
.fz-mark { display: grid; place-items: center; flex: none; width: 68px; height: 68px; padding: 9px; background: #fff; box-shadow: 4px 4px 0 var(--fz-pink); }
.fz-mark img { width: 100%; height: 100%; object-fit: contain; }
.fz-seasons { display: flex; margin-top: 16px; border: 1px solid rgba(255, 255, 255, .45); }
.fz-seasons a { flex: 1; padding: 9px 0; font-size: 12.5px; font-weight: 800; letter-spacing: .2px; line-height: 1.2; text-align: center; color: rgba(255, 255, 255, .9) !important; }
.fz-seasons a + a { border-left: 1px solid rgba(255, 255, 255, .45); }
.fz-seasons a.is-on { background: #fff; color: #111 !important; }

.fz-group { padding: 20px 16px 0; }
.fz-group .fz-section { padding: 0 0 10px; }

/* ---------- Tabelle ---------- */
.fz-card { margin: 12px 16px 0; border: 1px solid var(--fz-line); background: #fff; overflow: hidden; }
.fz-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fz-table th { padding: 6px 0; border-bottom: 1px solid var(--fz-line); font-size: 12px; font-weight: 400; color: var(--fz-muted); text-align: center; }
.fz-table td { height: 42px; padding: 0; text-align: center; font-variant-numeric: tabular-nums; }
.fz-table .c-rank { width: 40px; padding-left: 16px; text-align: left; color: var(--fz-muted); }
.fz-table td.c-rank { box-shadow: inset 3px 0 0 var(--m, transparent); }
.fz-table .c-team { text-align: left; }
.fz-table .c-team span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fz-table .c-team img { flex: none; width: 20px; height: 20px; object-fit: contain; }
.fz-table .c-team b { overflow: hidden; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.fz-table th:nth-child(3), .fz-table td:nth-child(3) { width: 30px; }
.fz-table th:nth-child(4), .fz-table td:nth-child(4) { width: 38px; }
.fz-table .c-pts { width: 50px; padding-right: 16px; text-align: right; font-weight: 600; }
.fz-table tr.is-us td { background: rgba(230, 25, 122, .08); }
.fz-table tr.is-us .c-team b { font-weight: 600; }
.fz-table-note { margin: 0; padding: 10px 16px; font-size: 12px; color: var(--fz-muted); }
.fz-table-group { margin: 0; padding: 14px 16px 6px; font-size: 14px; font-weight: 600; }
.fz-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 10px 20px 0; font-size: 12px; color: var(--fz-muted); }
.fz-legend span { display: flex; align-items: center; gap: 5px; }
.fz-legend i { width: 8px; height: 8px; border-radius: 2px; }
.fz-note { margin: 0; padding: 48px 32px 24px; font-size: 14px; line-height: 1.4; text-align: center; color: var(--fz-muted); }

/* ---------- Spielplan ---------- */
.fz-rounds-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 8px; }
.fz-rounds-head h2 { flex: 1; margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.fz-pick { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--fz-line); background: #fff; color: var(--fz-text); font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.fz-matches { padding: 0 16px 8px; }
.fz-fixture { display: block; margin-bottom: 10px; padding: 14px; border: 1px solid var(--fz-line); background: #fff; }
.fz-fixture.is-ours { border: 1.4px solid var(--fz-pink); }
.fz-fixture-head { display: flex; align-items: center; margin: 0; }
.fz-fixture-head .fz-bar { width: 4px; height: 12px; margin-right: 8px; }
.fz-fixture-head b { flex: 1; min-width: 0; overflow: hidden; font-size: 10px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; text-overflow: ellipsis; }
.fz-fixture-head small { margin-left: 8px; font-size: 10px; font-weight: 800; letter-spacing: .6px; color: var(--fz-muted); }
.fz-fixture-head small.is-tip { color: var(--fz-pink); }
.fz-fixture-head small[hidden] { display: none; }
.fz-fixture-body { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.fz-fixture-teams { display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 0; }
.fz-fixture-teams span { display: flex; align-items: center; gap: 10px; overflow: hidden; font-size: 15px; font-weight: 700; letter-spacing: -.2px; white-space: nowrap; text-overflow: ellipsis; }
.fz-fixture-teams span.is-win { font-weight: 800; }
.fz-fixture-teams i { display: grid; place-items: center; flex: none; width: 26px; height: 26px; }
.fz-fixture-teams img { width: 100%; height: 100%; object-fit: contain; }
.fz-scores { display: flex; flex-direction: column; gap: 6px; }
.fz-scores[hidden] { display: none; }
.fz-scores b { display: grid; place-items: center; width: 44px; height: 30px; background: var(--fz-text); color: #fff; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fz-fixture-foot { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; }
.fz-fixture-foot > span:first-child { flex: 1; min-width: 0; overflow: hidden; font-size: 11px; color: var(--fz-muted); white-space: nowrap; text-overflow: ellipsis; }
.fz-tipbtn { display: inline-flex; align-items: center; gap: 3px; padding: 4px 7px 4px 9px; background: var(--fz-pink); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1px; cursor: pointer; }
.fz-tipbtn svg { width: 11px; height: 11px; }
.fz-tipbtn.has-tip { padding: 3px 6px 3px 8px; border: 1.4px solid var(--fz-pink); background: transparent; color: var(--fz-pink); }

/* Spieltag-Auswahl */
.fz-sheet .fi-bellsheet-panel { border-radius: 0; }
.fz-rounds-list a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 20px; border-bottom: 1px solid var(--fz-line); font-size: 15px; font-weight: 600; color: var(--fz-text) !important; }
.fz-rounds-list a.is-on { font-weight: 800; }
.fz-rounds-list a.is-on::after { content: "✓"; color: var(--fz-pink); font-weight: 800; }

/* ---------- Bestenlisten ---------- */
.fz-leaders { padding: 0; list-style: none; }
.fz-leaders li { display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--fz-line); }
.fz-leaders li:last-child { border-bottom: 0; }
.fz-leaders li.is-us { background: rgba(230, 25, 122, .08); }
.fz-l-rank { flex: none; width: 24px; font-size: 14px; color: var(--fz-muted); }
.fz-l-photo { flex: none; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; background: var(--fz-line); }
.fz-l-photo img { width: 100%; height: 100%; object-fit: cover; }
.fz-l-main { display: flex; flex-direction: column; flex: 1; min-width: 0; margin-left: 10px; }
.fz-l-main b { overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.fz-l-main small { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 12px; color: var(--fz-muted); }
.fz-l-main small img { flex: none; width: 13px; height: 13px; object-fit: contain; }
.fz-l-main small span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fz-l-value { flex: none; margin-left: 8px; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

.fz-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 100002; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 12px 16px; background: #111; color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.35; transform: translateX(-50%); }
.fz-toast[hidden] { display: none; }

@media (min-width: 700px) {
	.fi-fz { border-left: 1px solid var(--fz-line); border-right: 1px solid var(--fz-line); }
}
.fz-table th.c-pts { font-weight: 400; }

/* Wettbewerb: Schnellübersicht gibt es nur am Computer (fi-wide.css) */
.fz-dash { display: none; }
/* Wettbewerbs-Kopf: Link „← Fanzone“ nur am Computer */
.fz-up { display: none; }
