/* Livetikka – Oberfläche v0.4
   Dunkel wie Apple Sports, kompakte Spielliste, Spieldetail als Karte von unten.
   Schrift: Systemschrift (auf dem iPhone SF Pro) – nichts wird von fremden Servern geladen. */

:root {
  --bg: #0B0A0D;
  --bg-2: #0d230a;
  --fg: #F5F6F8;
  --fg-2: rgba(255,255,255,.72);
  --fg-3: rgba(255,255,255,.58);
  --glass: rgba(3,32,1,.62);
  --glass-2: rgba(255,255,255,.085);
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.065);
  --live: #FF453A;
  --live-fg: #FF6B61;
  --win: #30D158;
  --draw: #8E8E93;
  --home: #FDB912;
  --away: #5B8CFF;
  --glow-a: rgba(0,0,0,0);
  --glow-b: rgba(0,0,0,0);
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .9, .25, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #071805 linear-gradient(#285921, #285921) no-repeat top / 100% 50%; }
/* Safari: Farbe hinter Statusleiste kommt vom festen grünen Kopf, Farbe hinter der Adressleiste vom dunkelgrünen Seitenhintergrund */
html.sheet-open, html.sheet-open body { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; background: transparent; color: var(--fg);
  font-family: var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #9DB8FF; outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Grundgerüst ---------- */
.shell {
  position: relative; z-index: 1; min-height: 100vh; background: transparent;
  transform-origin: 50% 0; transition: transform .45s var(--ease), border-radius .45s var(--ease), filter .45s var(--ease);
}
.ambient { position: absolute; inset: 0 0 auto 0; height: 520px; pointer-events: none; overflow: hidden; z-index: 0; }
.ambient::before, .ambient::after { content: ''; position: absolute; width: 520px; height: 460px; border-radius: 50%; transition: background .6s ease; }
.ambient::before { top: -220px; left: -180px; background: radial-gradient(closest-side, var(--glow-a), transparent); }
.ambient::after { top: -200px; right: -200px; background: radial-gradient(closest-side, var(--glow-b), transparent); }
.topbar { display: none; }
.layout { position: relative; z-index: 1; padding: calc(10px + var(--safe-t)) 12px calc(28px + var(--safe-b)); max-width: 680px; margin: 0 auto; }
.col-main, .col-detail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.col-nav { display: none; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 6px 12px calc(6px + var(--safe-b));
  background: rgba(16,14,18,.78); border-top: 1px solid var(--line-2);
  backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%);
}
.tabbar a { min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.55); }
.tabbar a[aria-current="page"] { color: var(--fg); }
.tabbar svg { width: 24px; height: 24px; }

/* ---------- Kopf ---------- */
.head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 24px; width: auto; display: block; }
.head-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.demo-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(255,214,10,.14); color: #FFD60A; font-size: 11px; font-weight: 700; white-space: nowrap; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; flex: none; padding: 0; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08); color: var(--fg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn input[type=date] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.025em; }
.sub { font-size: 13px; font-weight: 600; color: var(--fg-3); }

/* Datumsleiste */
.days { display: flex; gap: 2px; margin: 0 -12px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; min-width: 62px; height: 46px; border-radius: 14px; padding: 0 8px; scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: var(--fg-3); position: relative;
}
.day span { font-size: 11px; font-weight: 600; }
.day b { font-size: 14px; font-weight: 700; color: var(--fg-2); }
.day[aria-current="date"] { background: rgba(255,255,255,.1); }
.day[aria-current="date"] span { color: var(--fg); }
.day[aria-current="date"] b { color: var(--fg); font-weight: 800; }
.day[aria-current="date"]::after { content: ''; position: absolute; bottom: 4px; width: 18px; height: 3px; border-radius: 2px; background: var(--fg); }

/* Filter */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); font-size: 13px; font-weight: 600; }
.chip em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--live-fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: transparent; font-weight: 700; }
.chip[aria-pressed="true"] em { color: #C2281F; }

/* ---------- Karten ---------- */
.card { border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.card-pad { padding: 14px 16px; }
.card h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.link-more { min-height: 36px; display: inline-flex; align-items: center; gap: 1px; font-size: 13px; font-weight: 600; color: var(--fg-2); }
.link-more svg { width: 15px; height: 15px; }

/* Wappen: echtes Logo oder Kreis in Vereinsfarben */
.crest {
  --s: 20px; width: var(--s); height: var(--s); border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--c1); color: var(--tc); box-shadow: inset 0 0 0 calc(var(--s) / 16) var(--c2);
  font-size: calc(var(--s) * .3); font-weight: 900; letter-spacing: -.02em; line-height: 1;
}
.crest.has-logo { background: transparent; box-shadow: none; border-radius: 0; }
.crest img { width: 100%; height: 100%; object-fit: contain; display: block; }

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); flex: none; animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,69,58,.7); } 100% { box-shadow: 0 0 0 6px rgba(255,69,58,0); } }

/* ---------- Kompakte Spielliste ---------- */
.league { border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); overflow: hidden; }
.league-head { display: flex; align-items: center; gap: 10px; padding: 0 10px 0 12px; height: 40px; background: rgba(255,255,255,.05); border-bottom: 1px solid var(--line-2); }
.league-head .code { height: 20px; min-width: 28px; padding: 0 6px; border-radius: 6px; background: rgba(255,255,255,.1); font-size: 10px; font-weight: 800; letter-spacing: .04em; display: inline-flex; align-items: center; justify-content: center; }
.league-head h2 { margin: 0; flex: 1; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.league-head h2 span { color: var(--fg-3); font-weight: 600; }
.row {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 54px minmax(0, 1fr) 34px;
  align-items: center; gap: 6px; min-height: 48px; padding: 0 4px 0 10px;
}
.row + .row { border-top: 1px solid var(--line-2); }
.row:active { background: rgba(255,255,255,.05); }
.row[aria-current="true"] { background: rgba(255,255,255,.08); }
.row .cover { position: absolute; inset: 0; z-index: 1; }
.row .st { font-size: 12.5px; font-weight: 600; color: var(--fg-3); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.row .st.live { color: var(--live-fg); font-weight: 800; }
.row .tm { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 14px; font-weight: 600; }
.row .tm.h { justify-content: flex-end; text-align: right; }
.row .tm .n { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .tm.lose { color: var(--fg-3); }
.row .tm.win { font-weight: 750; }
.row .sc { justify-self: center; min-width: 46px; height: 26px; padding: 0 6px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 14.5px; font-weight: 800; background: rgba(255,255,255,.07); }
.row .sc.live { color: #FF8A82; background: rgba(255,69,58,.14); }
.row .sc.ns { font-weight: 600; color: var(--fg-3); background: transparent; }
.row .sc.flash { animation: flash 2.4s ease-out; }
@keyframes flash { 0%, 35% { background: rgba(48,209,88,.45); color: #fff; transform: scale(1.12); } 100% { transform: none; } }
.bell { position: relative; z-index: 2; width: 34px; height: 44px; border: 0; background: transparent; color: rgba(255,255,255,.45); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.bell svg { width: 17px; height: 17px; }
.bell[aria-pressed="true"] { color: #FFD60A; }

@media (max-width: 419px) {
  .layout { padding-left: 8px; padding-right: 8px; }
  .days { margin: 0 -8px; padding: 0 8px; }
  .row { grid-template-columns: 38px minmax(0, 1fr) 46px minmax(0, 1fr) 28px; gap: 5px; padding: 0 2px 0 8px; }
  .row .tm { font-size: 13.5px; gap: 6px; }
  .row .sc { min-width: 42px; font-size: 14px; padding: 0 4px; }
  .row .st { font-size: 12px; }
  .bell { width: 28px; }
}

/* Hervorgehobenes Spiel (Meine Teams) */
.feature {
  position: relative; display: flex; flex-direction: column; gap: 10px; border-radius: 24px; padding: 14px 16px;
  background: linear-gradient(135deg, var(--fa) 0%, rgba(40,20,50,.5) 55%, var(--fb) 100%);
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 18px 36px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.1);
}
.feature .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.82); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255,69,58,.22); color: #FF9A93; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pill-muted { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.25); font-size: 12px; font-weight: 700; color: rgba(255,255,255,.88); }
.vs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; }
.vs .side { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.vs .side .n { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.vs .side .f { font-size: 12px; font-weight: 600; color: var(--fg-2); }
.vs .score { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vs .score b { font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.vs .score small { font-size: 12px; font-weight: 600; color: var(--fg-2); }

/* ---------- Spieldetail ---------- */
.hero {
  border-radius: 26px; padding: 18px 14px 16px; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(160deg, var(--fa) 0%, rgba(40,18,48,.55) 55%, var(--fb) 100%);
  border: 1px solid rgba(255,255,255,.12);
}
.hero .lg { text-align: center; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); }
.hero .vs .score b { font-size: 50px; }
.hero .vs { align-items: start; }
.hero .vs .score { padding-top: 14px; }
.scorers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.85); }
.scorers div { display: flex; flex-direction: column; gap: 3px; align-items: center; text-align: center; }
.follow { align-self: center; height: 42px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.12); }
.follow svg { width: 17px; height: 17px; }
.follow[aria-pressed="true"] { background: rgba(255,255,255,.92); color: var(--bg); border-color: transparent; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.seg button { height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--fg-2); font-size: 13.5px; font-weight: 600; }
.seg button[aria-selected="true"] { background: rgba(255,255,255,.92); color: var(--bg); font-weight: 700; }

/* Matchcast */
.pitch { position: relative; height: 196px; border-radius: 14px; overflow: hidden; background: repeating-linear-gradient(90deg, #12392A 0 32px, #154231 32px 64px); }
.pitch .ln { position: absolute; border: 1.5px solid rgba(255,255,255,.35); }
.pitch .ball { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.22), 0 0 18px rgba(255,255,255,.8); transition: left 1.2s ease, top 1.2s ease; }
.pitch .trail { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: rgba(255,255,255,.35); }
.pitch .tag { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(10,11,15,.62); font-size: 11.5px; font-weight: 700; }

/* Statistik */
.stat { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.stat .v { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.stat .v b { font-size: 15px; font-weight: 800; min-width: 44px; }
.stat .v b:last-child { text-align: right; }
.stat .v span { font-size: 12.5px; font-weight: 600; color: var(--fg-2); text-align: center; }
.bars { display: flex; gap: 4px; height: 5px; }
.bars div { flex: 1; display: flex; background: rgba(255,255,255,.07); border-radius: 3px; overflow: hidden; }
.bars div:first-child { justify-content: flex-end; }
.bars i { display: block; height: 100%; border-radius: 3px; transition: width .6s ease; }
.bars div:first-child i { background: var(--home); }
.bars div:last-child i { background: var(--away); }
.legend { display: flex; gap: 10px; font-size: 11.5px; font-weight: 700; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }

/* Ticker */
.ev { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.ev .m { width: 42px; flex: none; font-size: 13px; font-weight: 800; color: rgba(255,255,255,.85); padding-top: 6px; }
.ev .ic { width: 30px; height: 30px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
.ev .ic svg { width: 16px; height: 16px; }
.ev .ic.goal { background: rgba(48,209,88,.18); color: #4CE07A; }
.ev .ic i { width: 10px; height: 14px; border-radius: 2px; background: #FFD60A; }
.ev .ic.yellow { background: rgba(255,214,10,.14); }
.ev .ic.red { background: rgba(255,69,58,.16); }
.ev .ic.red i { background: var(--live); }
.ev .ic.yellowred i { background: linear-gradient(135deg, #FFD60A 50%, var(--live) 50%); }
.ev .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.ev .tx b { font-size: 14px; font-weight: 700; }
.ev .tx span { font-size: 12.5px; color: rgba(255,255,255,.68); line-height: 1.4; }
.ev .crest { --s: 20px; margin-top: 5px; }
.empty { padding: 12px 0 8px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: rgba(255,255,255,.68); }

/* Tabellen */
.tbl-head, .tbl-row { display: flex; align-items: center; gap: 7px; padding: 0 6px; }
.tbl-head { padding: 9px 6px 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; color: rgba(255,255,255,.55); text-transform: uppercase; }
.tbl-row { min-height: 40px; border-radius: 10px; }
.tbl-row.hl { background: rgba(255,255,255,.09); }
.tbl-row.hl .tn { font-weight: 800; }
.pos { width: 22px; height: 22px; border-radius: 7px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--fg-2); }
.pos.up { background: #30D158; color: var(--bg); }
.pos.uppo { background: rgba(48,209,88,.35); color: var(--fg); }
.pos.cl { background: #5B8CFF; color: var(--bg); }
.pos.clq { background: rgba(91,140,255,.35); color: var(--fg); }
.pos.el { background: #FF9F0A; color: var(--bg); }
.pos.ecl { background: rgba(255,159,10,.35); color: var(--fg); }
.pos.relpo { background: rgba(255,69,58,.35); color: var(--fg); }
.pos.rel { background: var(--live); color: var(--bg); }
.tteam { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; }
.tn { min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-sp, .c-td { text-align: right; font-size: 13px; font-weight: 600; color: var(--fg-2); flex: none; }
.c-sp { width: 20px; } .c-td { width: 30px; }
.c-x { display: none; width: 24px; text-align: right; font-size: 13px; font-weight: 600; color: var(--fg-2); flex: none; }
.c-pkt { width: 28px; text-align: right; font-size: 14px; font-weight: 800; flex: none; }
.c-form { width: 50px; display: flex; justify-content: flex-end; gap: 3px; flex: none; }
.c-form i { width: 7px; height: 7px; border-radius: 50%; }
.f-W { background: var(--win); } .f-D { background: var(--draw); } .f-L { background: var(--live); }
.tbl-legend { display: flex; flex-direction: column; gap: 9px; padding: 4px 6px; font-size: 12.5px; font-weight: 600; color: var(--fg-2); }
.tbl-legend span { display: inline-flex; align-items: center; gap: 10px; }
.tbl-legend i { width: 13px; height: 13px; border-radius: 4px; }
.tbl-legend .forms { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.tbl-legend .forms i { width: 8px; height: 8px; border-radius: 50%; }

/* Zustände */
.skel { border-radius: var(--radius); background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.09), rgba(255,255,255,.05)); background-size: 200% 100%; animation: skel 1.4s linear infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.notice { padding: 22px 18px; text-align: center; color: var(--fg-2); font-size: 14.5px; line-height: 1.5; }
.notice b { display: block; color: var(--fg); font-size: 16px; margin-bottom: 4px; }
.btn { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1); font-size: 14.5px; font-weight: 700; margin-top: 12px; }
.foot { text-align: center; font-size: 11.5px; color: rgba(255,255,255,.45); padding: 4px 0; }

/* ---------- Karte von unten (Spieldetail auf Handy und Tablet) ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.sheet-date { position: fixed; z-index: 31; left: 0; right: 0; top: calc(var(--safe-t) + 10px); text-align: center; font-size: 15px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.sheet {
  position: fixed; z-index: 32; left: 6px; right: 6px; top: calc(var(--safe-t) + 42px); bottom: 0;
  border-radius: 28px 28px 0 0; background: var(--bg-2); overflow: hidden;
  transform: translateY(105%); visibility: hidden;
  transition: transform .5s var(--ease), top .38s var(--ease), left .38s var(--ease), right .38s var(--ease), border-radius .38s var(--ease), visibility 0s linear .5s;
  box-shadow: 0 -10px 40px rgba(0,0,0,.5);
}
.sheet::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 520px; pointer-events: none; background: linear-gradient(180deg, var(--sa, rgba(120,20,40,.6)) 0%, rgba(20,18,22,0) 100%); opacity: .9; }
.sheet-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 10px calc(28px + var(--safe-b)); }
.sheet-scroll .col-detail { position: relative; gap: 12px; }
.grab { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; height: 46px; margin: 0 -10px; padding: 0 10px; }
.grab::before { content: ''; position: absolute; left: 50%; top: 7px; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(255,255,255,.35); transition: opacity .25s; }
.grab .mini { position: absolute; left: 56px; right: 56px; top: 0; height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; font-size: 15px; font-weight: 800; }
.grab .mini small { font-size: 11px; font-weight: 700; color: var(--live-fg); }
.grab .icon-btn { width: 34px; height: 34px; position: relative; z-index: 2; }
.grab .icon-btn svg { width: 16px; height: 16px; }
.grab-bg { position: absolute; inset: 0; background: rgba(20,18,22,.82); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); border-bottom: 1px solid var(--line-2); opacity: 0; transition: opacity .25s; }

html.sheet-open .sheet { transform: translateY(0); visibility: visible; transition: transform .5s var(--ease), top .38s var(--ease), left .38s var(--ease), right .38s var(--ease), border-radius .38s var(--ease), visibility 0s; }
html.sheet-open .sheet-bg { opacity: 1; pointer-events: auto; }
html.sheet-open .sheet-date { opacity: 1; }
html.sheet-open .shell { transform: scale(.94); border-radius: 22px; filter: brightness(.55); overflow: hidden; }
html.sheet-full .sheet { top: 0; left: 0; right: 0; border-radius: 0; }
html.sheet-full .sheet-date { opacity: 0; }
html.sheet-full .grab { padding-top: var(--safe-t); height: calc(46px + var(--safe-t)); }
html.sheet-full .grab::before { opacity: 0; }
html.sheet-full .grab .mini { opacity: 1; transform: none; top: var(--safe-t); }
html.sheet-full .grab-bg { opacity: 1; }
.sheet.dragging { transition: none !important; }
.hero.swipe-l { animation: swipeL .3s var(--ease); }
.hero.swipe-r { animation: swipeR .3s var(--ease); }
@keyframes swipeL { from { transform: translateX(40px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes swipeR { from { transform: translateX(-40px); opacity: .3; } to { transform: none; opacity: 1; } }

/* Tor-Meldung */
.toasts { position: fixed; top: calc(10px + var(--safe-t)); left: 0; right: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.toast { pointer-events: auto; width: min(420px, 100%); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: rgba(30,28,34,.9); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: toastIn .35s var(--ease); }
.toast .ic { width: 34px; height: 34px; border-radius: 50%; background: rgba(48,209,88,.18); color: #4CE07A; display: flex; align-items: center; justify-content: center; flex: none; }
.toast .ic svg { width: 19px; height: 19px; }
.toast b { display: block; font-size: 14.5px; }
.toast span { font-size: 12.5px; color: var(--fg-2); }
@keyframes toastIn { from { transform: translateY(-20px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  .sheet, .shell, .sheet-bg { transition-duration: .01s !important; }
}

/* ---------- Tablet ---------- */
@media (min-width: 720px) {
  .tabbar { display: none; }
  .topbar {
    display: flex; position: sticky; top: 0; z-index: 20; flex-wrap: wrap; align-items: center; gap: 10px 22px;
    padding: calc(12px + var(--safe-t)) clamp(16px, 3vw, 40px) 12px;
    background: rgba(16,14,18,.7); border-bottom: 1px solid var(--line-2); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  }
  .topbar .logo img { height: 26px; }
  .topbar nav { display: flex; gap: 4px; }
  .topbar nav a { min-height: 38px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 600; color: var(--fg-2); }
  .topbar nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: var(--fg); font-weight: 700; }
  .topbar .spacer { flex: 1; }
  .layout { padding: 20px clamp(16px, 3vw, 40px) 48px; max-width: 820px; }
  .m-only { display: none !important; }
  .c-x { display: block; }
  .sheet { left: max(6px, calc(50% - 360px)); right: max(6px, calc(50% - 360px)); top: calc(var(--safe-t) + 52px); }
  html.sheet-full .sheet { left: max(0px, calc(50% - 400px)); right: max(0px, calc(50% - 400px)); }
  .row { grid-template-columns: 56px minmax(0, 1fr) 60px minmax(0, 1fr) 40px; min-height: 50px; padding-left: 14px; }
  .row .tm { font-size: 15px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1100px) {
  .layout { max-width: 1440px; display: grid; gap: 20px; align-items: start; grid-template-columns: 220px minmax(0, 1fr) minmax(360px, 420px); }
  .layout.no-detail { grid-template-columns: 220px minmax(0, 1fr); max-width: 1180px; }
  .col-nav { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 88px; }
  .col-nav h2 { margin: 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); }
  .col-nav .card { padding: 6px; display: flex; flex-direction: column; gap: 2px; }
  .col-nav a { min-height: 42px; padding: 0 10px; border-radius: 12px; display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; }
  .col-nav a:hover { background: rgba(255,255,255,.05); }
  .col-nav a[aria-current="page"] { background: rgba(255,255,255,.08); }
  .col-nav a em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--live-fg); }
  .col-nav .code { height: 20px; min-width: 28px; padding: 0 6px; border-radius: 6px; background: rgba(255,255,255,.1); font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
  .layout > .col-detail { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 24px; }
  .row:hover { background: rgba(255,255,255,.04); }
  .sheet, .sheet-bg, .sheet-date { display: none; }
}


/* =================== v0.4 =================== */

/* Grüner Verlauf wie Apple Sports – auch hinter der Statusleiste */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #285921 0%, #25541e 9%, #214b1b 23%, #1c4316 35%, #183b11 47%, #133210 58%, #102b0c 70%, #0d2609 78%, #092006 86%, #081b05 93%, #071805 100%);
}
.ambient { display: none; }
.league, .card, .hero, .pitch { flex: none; }
.league, .card { background: var(--glass); border-color: rgba(255,255,255,.07); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.league-head { background: rgba(255,255,255,.04); }
.row + .row { border-top-color: rgba(255,255,255,.06); }
.tabbar { background: rgba(6,26,4,.72); }
.topbar { background: #285921; }
.d-only { display: none; }

/* Kopf: Menü-Knopf */
.menu-btn {
  height: 40px; min-width: 40px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.14); color: var(--fg);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 18px rgba(0,0,0,.18);
}
.menu-btn svg { width: 20px; height: 20px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #4fb045, #1f6a1a); font-size: 13px; font-weight: 800; color: #fff; }
.menu-btn .avatar { margin: 0 -6px; }
.avatar.big { width: 46px; height: 46px; font-size: 19px; flex: none; }
.avatar.huge { width: 76px; height: 76px; font-size: 32px; }
.avatar.ghost { background: rgba(255,255,255,.14); color: rgba(255,255,255,.85); }
.avatar.ghost svg { width: 24px; height: 24px; }

/* Datumsleiste mit Kalender links */
.datebar { display: flex; align-items: center; gap: 6px; margin: 0 -12px; padding: 0 0 0 12px; }
.datebar .days { margin: 0; padding: 0 12px 0 2px; flex: 1; min-width: 0; }
.datebar .cal { width: 46px; height: 46px; border-radius: 14px; flex: none; }
@media (max-width: 419px) { .datebar { margin: 0 -8px; padding-left: 8px; } }
.days.pills .day { min-width: auto; padding: 0 12px; }
.live-filter { align-self: flex-start; height: 32px; padding: 0 8px 0 12px; border-radius: 999px; border: 1px solid rgba(255,69,58,.35); background: rgba(255,69,58,.14); color: #FF9A93; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.live-filter svg { width: 14px; height: 14px; }

/* Glas-Menü oben rechts */
.menu-bg { position: fixed; inset: 0; z-index: 70; }
.menu {
  position: fixed; z-index: 71; top: calc(var(--safe-t) + 8px); right: 10px; width: min(320px, calc(100vw - 20px));
  border-radius: 30px; padding: 8px; display: flex; flex-direction: column;
  background: rgba(44,96,36,.78); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(34px) saturate(190%); -webkit-backdrop-filter: blur(34px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 24px 60px rgba(0,0,0,.45);
  transform-origin: top right; animation: menuIn .28s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: scale(.86) translateY(-6px); } to { opacity: 1; transform: none; } }
.menu-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; border: 0; background: transparent; text-align: left; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 4px; border-radius: 22px; }
.menu-top .mt { display: flex; flex-direction: column; min-width: 0; }
.menu-top b { font-size: 16px; font-weight: 700; }
.menu-top small { font-size: 12.5px; color: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi { display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 0 14px; border-radius: 18px; border: 0; background: transparent; font-size: 16px; font-weight: 600; color: var(--fg); text-align: left; width: 100%; cursor: pointer; }
.mi:hover, .mi:active { background: rgba(255,255,255,.12); }
.mi > svg { width: 22px; height: 22px; flex: none; }
.mi > span:not(.dot) { flex: 1; min-width: 0; }
.mi em { font-style: normal; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.18); }
.mi .dot.static { width: 22px; height: 10px; border-radius: 5px; animation: none; margin: 0 0; background: var(--live); box-shadow: 0 0 0 3px rgba(255,69,58,.25); flex: none; }
.mi.lang { cursor: default; flex-wrap: wrap; }
.lang-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.22); }
.lang-seg button { height: 30px; min-width: 40px; padding: 0 8px; border-radius: 999px; border: 0; background: transparent; color: rgba(255,255,255,.8); font-size: 13px; font-weight: 700; }
.lang-seg button[aria-pressed="true"] { background: rgba(255,255,255,.92); color: #0b2108; }
.switch { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 999px; background: rgba(255,255,255,.22); position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 0; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .22s var(--ease); }
.switch:checked { background: #34C759; }
.switch:checked::after { transform: translateX(20px); }

/* Konto-Dialog */
.acc-bg { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
html.acc-open, html.acc-open body { overflow: hidden; }
.acc-card {
  position: fixed; z-index: 81; left: 8px; right: 8px; bottom: 8px; max-height: calc(100vh - var(--safe-t) - 24px); overflow-y: auto;
  border-radius: 32px; padding: 14px 18px calc(22px + var(--safe-b));
  background: linear-gradient(180deg, rgba(48,100,40,.92), rgba(10,40,7,.96)); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 30px 80px rgba(0,0,0,.55);
  animation: accIn .38s var(--ease);
}
@keyframes accIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 720px) { .acc-card { left: 50%; right: auto; bottom: auto; top: 50%; width: 420px; transform: translate(-50%, -50%); animation: accInC .32s var(--ease); padding-bottom: 24px; } @keyframes accInC { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } } }
.acc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.acc-logo img { height: 22px; }
.acc-card h2 { margin: 6px 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.acc-card .lead { margin: 0 0 18px; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.8); }
.sso { width: 100%; height: 52px; border-radius: 16px; border: 0; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16.5px; font-weight: 700; position: relative; }
.sso svg { width: 21px; height: 21px; }
.sso small { position: absolute; right: 14px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.12); }
.sso.apple { background: #fff; color: #000; }
.sso.google { background: rgba(255,255,255,.94); color: #1f1f1f; }
.sso.mail { background: rgba(255,255,255,.14); color: var(--fg); border: 1px solid rgba(255,255,255,.18); }
.sso[aria-disabled="true"] { opacity: .55; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0 6px; color: rgba(255,255,255,.6); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.18); }
.fine { font-size: 12px; line-height: 1.45; color: rgba(255,255,255,.62); margin: 14px 2px 0; }
.fld { display: block; margin-top: 12px; }
.fld span { display: block; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); margin: 0 4px 6px; }
.fld input { width: 100%; height: 52px; border-radius: 16px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); padding: 0 16px; font-size: 17px; color: var(--fg); outline: none; }
.fld input:focus { border-color: rgba(255,255,255,.55); background: rgba(0,0,0,.32); }
.primary { width: 100%; height: 52px; border-radius: 16px; border: 0; margin-top: 16px; background: var(--fg); color: #0b2108; font-size: 17px; font-weight: 800; }
.primary[disabled] { opacity: .65; }
.alinks { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 14px; }
.alinks button { border: 0; background: transparent; color: #b9f0ad; font-size: 14.5px; font-weight: 600; padding: 8px 2px; }
.aback { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: rgba(255,255,255,.8); font-size: 15px; font-weight: 600; padding: 6px 0; }
.aback svg { width: 18px; height: 18px; }
.amsg { margin: 10px 0 0; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.4; }
.amsg.err { background: rgba(255,69,58,.18); color: #FFB3AD; }
.amsg.ok { background: rgba(52,199,89,.18); color: #A6F0B7; }
.amsg.info { background: rgba(255,255,255,.12); color: #fff; }
.big-ic { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); margin: 8px 0 4px; }
.big-ic svg { width: 34px; height: 34px; }
.big-ic.ok { background: rgba(52,199,89,.22); color: #7CF0A0; }
.me { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 6px 0 14px; }
.me h2 { margin-top: 12px; }

/* Stern für Favoriten */
.fav-star { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.2); color: rgba(255,255,255,.8); display: inline-flex; align-items: center; justify-content: center; padding: 0; align-self: flex-end; margin-bottom: -26px; position: relative; z-index: 2; }
.fav-star svg { width: 17px; height: 17px; }
.fav-star[aria-pressed="true"] { color: #FFD60A; }
.fav-star.small { align-self: center; margin: 0 0 0 auto; background: transparent; }
.row .tm.fav .n::after { content: ' ★'; color: #FFD60A; font-size: 11px; }
.toast .ic.star { background: rgba(255,214,10,.18); color: #FFD60A; }

/* Detail-Reiter wie Mackolik, im Apple-Stil */
.tabs { flex: none; display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(12,36,9,.94); border: 1px solid rgba(255,255,255,.08); overflow-x: auto; scrollbar-width: none; position: sticky; top: calc(46px + var(--safe-t)); z-index: 2; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; height: 36px; padding: 0 14px; border-radius: 12px; border: 0; background: transparent; color: rgba(255,255,255,.75); font-size: 14px; font-weight: 600; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: rgba(255,255,255,.92); color: #0b2108; font-weight: 700; }
.layout > .col-detail .tabs { top: 0; }

/* Spielinfos */
.info-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.info-row:first-of-type { border-top: 0; }
.info-row .ic { width: 34px; height: 34px; flex: none; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.info-row .ic svg { width: 18px; height: 18px; }
.info-row .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.info-row .tx b { font-size: 14.5px; font-weight: 700; }
.info-row .tx span { font-size: 12.5px; color: var(--fg-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.form-team .n { font-size: 13.5px; font-weight: 700; }
.form-dots { display: flex; gap: 4px; }
.fbox { width: 22px; height: 22px; border-radius: 6px; font-style: normal; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; color: #08210a; }
.fbox.f-D { color: #fff; }
.fbox.f-L { color: #fff; }

/* Aufstellungen */
.lpitch { position: relative; height: 560px; margin: 8px 0; border-radius: 16px; overflow: hidden; background: repeating-linear-gradient(180deg, #1e5a2b 0 46px, #1a5126 46px 92px); }
.lpitch .ln { position: absolute; border: 1.5px solid rgba(255,255,255,.32); }
.pl { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; width: 70px; }
.pl .no { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; box-shadow: 0 3px 8px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.8); }
.pl.h .no { background: var(--hc); color: var(--htc); }
.pl.a .no { background: var(--ac); color: var(--atc); }
.pl .pn { font-size: 11px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.7); white-space: nowrap; max-width: 76px; overflow: hidden; text-overflow: ellipsis; }
.lu-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; padding: 4px 2px; }
.lu-head span { display: inline-flex; align-items: center; gap: 8px; }
.lu-head b { font-size: 13px; color: var(--fg-2); }
.bench { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bench ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bench li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; min-width: 0; }
.bench .no { width: 24px; height: 24px; border-radius: 50%; flex: none; background: rgba(255,255,255,.1); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* Direktvergleich */
.h2h-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; padding: 6px 0 10px; }
.h2h-sum > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.h2h-sum b { font-size: 28px; font-weight: 800; }
.h2h-sum span { font-size: 12px; color: var(--fg-2); font-weight: 600; }
.h2h-sum > div:nth-child(2) { justify-content: flex-end; }
.h2h-bar { display: flex; gap: 3px; height: 8px; }
.h2h-bar i { border-radius: 4px; min-width: 4px; }
.h2h-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 48px minmax(0, 1fr); align-items: center; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.h2h-row:first-of-type { border-top: 0; }
.h2h-row .dt { display: flex; flex-direction: column; font-size: 12px; color: var(--fg-2); font-weight: 600; }
.h2h-row .dt small { font-size: 10.5px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h2h-row .tm { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h2h-row .tm.h { justify-content: flex-end; }
.h2h-row .sc { text-align: center; font-weight: 800; font-size: 14px; background: rgba(255,255,255,.08); border-radius: 8px; padding: 4px 0; }
.tbl-wrap { overflow-x: auto; }

@media (min-width: 720px) {
  .d-only { display: block; }
  .menu { top: calc(var(--safe-t) + 66px); right: clamp(16px, 3vw, 40px); }
  .lpitch { height: 620px; }
}

/* ===== v0.5 ===== */
.tabbar, .foot { display: none !important; }
[data-k^="p-"], [data-k^="d-"] { display: contents; }
/* Glas-Menü: durchscheinender, aber noch gut lesbar */
.menu {
  background: linear-gradient(180deg, rgba(60,122,48,.36), rgba(24,66,18,.42));
  backdrop-filter: blur(18px) saturate(190%); -webkit-backdrop-filter: blur(18px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.4);
  border-color: rgba(255,255,255,.2);
  max-height: calc(100dvh - var(--safe-t) - var(--safe-b) - 24px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  transition: width .25s var(--ease);
}
.menu::-webkit-scrollbar { display: none; }
.mv { display: flex; flex-direction: column; animation: mvIn .22s var(--ease); }
@keyframes mvIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.mv[data-k="v-main"] { animation: none; }
.menu-top { width: 100%; color: var(--fg); cursor: pointer; }
.menu-top .mt { flex: 1; }
.menu-top > svg { width: 16px; height: 16px; opacity: .6; flex: none; }
.menu-top.acct { cursor: default; }
.menu-top .out { width: 38px; height: 38px; flex: none; background: rgba(255,255,255,.12); }
.menu-top .out svg { width: 19px; height: 19px; }
.avatar.pic { padding: 0; overflow: hidden; background: rgba(255,255,255,.2); }
.avatar.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mhead { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; padding: 2px 2px 4px; }
.mhead b { text-align: center; font-size: 16px; font-weight: 700; }
.mhead .icon-btn { width: 38px; height: 38px; background: rgba(255,255,255,.12); }
.mv form, .mv > .lead, .mv > .amsg, .mv > .alinks, .mv > .sso-row, .mv > .or, .mv > .fine, .mv > .ghost-btn, .mv > .primary, .mv > .big-ic, .mv > .mtitle { margin-left: 8px; margin-right: 8px; }
.sso-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.sso-row .sso { margin: 0; height: 44px; border-radius: 14px; font-size: 15px; gap: 7px; flex-direction: row; }
.sso-row .sso svg { width: 18px; height: 18px; }
.sso-row .sso small { position: static; font-size: 10px; padding: 2px 6px; }
.mv .or { margin: 12px 8px 2px; font-size: 12px; }
.mv .fld { margin-top: 8px; }
.mv .fld span { font-size: 12px; margin: 0 4px 4px; }
.mv .fld input { height: 44px; border-radius: 13px; font-size: 16px; padding: 0 14px; background: rgba(0,0,0,.22); }
.uhint { display: block; font-size: 11.5px; color: rgba(255,255,255,.6); margin: 5px 6px 0; }
.uhint.ok { color: #8FF0A8; }
.uhint.err { color: #FFB3AD; }
.mv .primary { height: 46px; border-radius: 14px; margin-top: 12px; font-size: 16px; }
.mv .amsg { margin-top: 8px; padding: 9px 12px; font-size: 13px; border-radius: 12px; }
.mv .alinks { margin-top: 6px; margin-bottom: 4px; }
.mv .alinks button { font-size: 13.5px; padding: 6px 2px; }
.mv .lead { font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.8); margin-top: 4px; margin-bottom: 4px; }
.mv .fine { font-size: 11px; margin-top: 4px; margin-bottom: 6px; }
.mv .big-ic { width: 56px; height: 56px; margin: 6px auto 2px; }
.mv .big-ic svg { width: 26px; height: 26px; }
.mtitle { text-align: center; margin: 6px 0 2px; font-size: 18px; font-weight: 800; }
.mv[data-k="v-done"] .lead, .mv[data-k="v-sent"] .lead { text-align: center; }
.ghost-btn { height: 42px; border-radius: 13px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1); color: var(--fg); font-size: 14.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.ghost-btn svg { width: 18px; height: 18px; }
.menu-top { position: relative; border-bottom: 0; }
.menu-top::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 1px; background: rgba(255,255,255,.14); }
.menu-top:active:not(.acct) { background: rgba(255,255,255,.1); }

/* ===== v0.6 ===== */
/* Fester Kopf (Handy): deckend grün → Safari färbt die Statusleiste/Notch grün */
.apphead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: calc(var(--safe-t) + 60px); padding: var(--safe-t) 12px 0 16px;
  display: flex; align-items: center; gap: 8px; background: #285921;
  transform-origin: 50% 40px; transition: transform .45s var(--ease), filter .45s var(--ease);
}
.apphead::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; background: linear-gradient(#285921, rgba(40,89,33,0)); pointer-events: none; }
.apphead .logo img { height: 26px; }
.apphead .spacer { flex: 1; }
html.sheet-open .apphead { transform: scale(.94); filter: brightness(.55); }
.layout { padding-top: calc(var(--safe-t) + 66px); padding-bottom: calc(96px + var(--safe-b)); }
.head { display: none; }
/* Unten: weicher Übergang ins Dunkelgrün hinter der Safari-Leiste */
.bfade { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--safe-b) + 96px); z-index: 19; pointer-events: none; background: linear-gradient(rgba(7,24,5,0), rgba(7,24,5,.78) 55%, #071805); }
@media (min-width: 720px) {
  .apphead, .bfade { display: none; }
  .layout { padding-top: 20px; padding-bottom: 48px; }
  .head { display: flex; }
  .topbar { background: #285921; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: rgba(255,255,255,.08); }
}
/* Runde Flaggen */
.flag { width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; flex: none; display: inline-flex; box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 1px 3px rgba(0,0,0,.3); }
.flag svg { width: 100%; height: 100%; display: block; }
.league-head .flag { margin-right: 2px; }
.col-nav a .flag { margin-right: 4px; }
.day .flag { margin-bottom: 3px; }
/* Apple/Google unter dem Anmelde-Knopf, gleiche Breite */
.sso-col { display: flex; flex-direction: column; gap: 8px; margin: 0 8px; }
.sso-col .sso { margin: 0; height: 46px; border-radius: 14px; font-size: 15.5px; gap: 8px; }
.sso-col .sso svg { width: 18px; height: 18px; }
.sso-col .sso[aria-disabled="true"] { opacity: 1; background: rgba(255,255,255,.1); color: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.1); cursor: default; }
.mv .or { margin-top: 14px; margin-bottom: 10px; }

/* ===== v0.7 ===== */
/* Kompakter Kopf der Spielkarte (wie Mackolik) */
.hero.cmp { padding: 12px 10px 12px; gap: 6px; border-radius: 24px; }
.hero.cmp .vs { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
.hero.cmp .side { position: relative; gap: 5px; padding-top: 2px; }
.hero.cmp .side .n { font-size: 13.5px; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero.cmp .fav-star { position: absolute; top: 8px; margin: 0; width: 28px; height: 28px; background: rgba(0,0,0,.18); }
.hero.cmp .side.h .fav-star { left: 2px; }
.hero.cmp .side.a .fav-star { right: 2px; }
.hero.cmp .fav-star svg { width: 15px; height: 15px; }
.hero.cmp .score { padding: 0; gap: 4px; }
.hero.cmp .score b { font-size: 40px; letter-spacing: 0; margin: 2px 0 0; }
.hero.cmp .score small { font-size: 12px; color: rgba(255,255,255,.78); text-align: center; line-height: 1.25; }
.hero.cmp .pill-muted, .hero.cmp .live-pill { font-size: 11.5px; padding: 3px 10px; letter-spacing: .02em; }
.hero.cmp .lg { font-size: 12px; }
.follow.sm { width: 32px; height: 32px; padding: 0; justify-content: center; margin-top: 4px; }
.follow.sm svg { width: 16px; height: 16px; }
.fboxes { display: inline-flex; gap: 3px; }
.fb { width: 17px; height: 17px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 900; color: #fff; background: rgba(255,255,255,.25); }
.fb svg { width: 11px; height: 11px; }
.fb.f-W { background: #2FB955; }
.fb.f-L { background: #E5484D; }
.fb.f-D { background: rgba(255,255,255,.32); }

/* Druckmeter / Baskımetre */
.pm .card-head { margin-bottom: 8px; }
.pm .card-head .sub { font-size: 12px; color: var(--fg-3); }
.pm-wrap { display: flex; gap: 8px; align-items: stretch; }
.pm-teams { display: flex; flex-direction: column; justify-content: space-around; padding: 16px 0 22px; }
.pm-chart { position: relative; flex: 1; min-width: 0; padding: 16px 0 22px; }
.pm-chart svg { display: block; width: 100%; height: 112px; overflow: visible; }
.pm-bg-h { fill: rgba(253,185,18,.08); }
.pm-bg-a { fill: rgba(91,140,255,.09); }
.pm-h { fill: var(--home); }
.pm-a { fill: var(--away); }
.pm-axis { stroke: rgba(255,255,255,.55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pm-ht { stroke: rgba(255,255,255,.4); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.pm-lbl { position: absolute; top: 0; transform: translateX(-50%); font-size: 10.5px; font-weight: 800; color: rgba(255,255,255,.7); letter-spacing: .03em; }
.pm-lbl.end { transform: translateX(-100%); }
.pm-balls { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; }
.pm-ball { position: absolute; top: 2px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; color: #0b2108; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--home); }
.pm-ball.a { box-shadow: 0 0 0 2px var(--away); }
.pm-ball svg { width: 12px; height: 12px; }

/* Spielverlauf */
.tl { padding: 14px 8px 16px; }
.tl-in { position: relative; display: flex; flex-direction: column; gap: 12px; }
.tl-in::before { content: ''; position: absolute; left: 50%; top: 14px; bottom: 14px; width: 1.5px; margin-left: -.75px; background: rgba(255,255,255,.16); }
.tl-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); align-items: center; gap: 6px; }
.tl-min { justify-self: center; z-index: 1; min-width: 40px; height: 24px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; background: #24461e; border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.9); }
.tl-min.goal { background: #fff; color: #0b2108; border-color: transparent; }
.tl-body { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tl-l .tl-body { flex-direction: row-reverse; text-align: right; }
.tl-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tl-tx b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-tx em { font-style: normal; font-size: 12.5px; font-weight: 800; color: rgba(255,255,255,.85); }
.tl-tx small { font-size: 12.5px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-body.goal { padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.tl-row.h .tl-body.goal { box-shadow: inset -3px 0 0 var(--home); }
.tl-row.a .tl-body.goal { box-shadow: inset 3px 0 0 var(--away); }
.tl-ic { flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.tl-ic svg { width: 20px; height: 20px; }
.tl-ic.goal { background: #fff; color: #0b2108; border-radius: 50%; }
.tl-ic.goal svg { width: 17px; height: 17px; }
.tl-ic.miss { color: #FF6B61; }
.tl-ic.card i { width: 11px; height: 15px; border-radius: 2.5px; background: #FFD60A; display: block; }
.tl-ic.card.red i { background: #FF453A; }
.tl-ic.card.yellowred i { background: linear-gradient(135deg, #FFD60A 50%, #FF453A 50%); }
.tl-mark { display: flex; justify-content: center; position: relative; z-index: 1; }
.tl-mark > span { height: 24px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; }
.tl-mark .soft { background: #2c5226; border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.tl-mark .dark { background: #0a1f07; border: 1px solid rgba(255,255,255,.16); letter-spacing: .03em; }
.tl-mark .live { background: rgba(255,69,58,.22); color: #FF9A93; }
.tl-mark .tl-start { width: 40px; padding: 0; justify-content: center; background: #24461e; border: 1px solid rgba(255,255,255,.14); }
.tl-mark .tl-start svg { width: 15px; height: 15px; }
.tl .empty { text-align: center; }

/* Aufstellungen */
.seg.lu-seg { grid-template-columns: 1fr 1.6fr 1fr; border-radius: 999px; padding: 4px; }
.seg.lu-seg.two { grid-template-columns: 1fr 1fr; }
.seg.lu-seg button { height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.seg.lu-seg button[aria-pressed="true"] { background: rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.seg.lu-seg .vs { font-size: 12px; font-weight: 900; font-style: italic; color: var(--fg); }
.chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 0 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.07); color: var(--fg-2); font-size: 13.5px; font-weight: 700; }
.chips button[aria-pressed="true"] { background: rgba(255,255,255,.92); color: #0b2108; border-color: transparent; }
.lu-card { overflow: hidden; padding: 0; }
.lu-strip { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: rgba(0,0,0,.18); }
.lu-coach { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lu-coach .tx, .lu-row .tx { display: flex; flex-direction: column; min-width: 0; }
.lu-coach b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-coach small { font-size: 12px; color: var(--fg-3); }
.lu-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.st-c { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 7px; background: rgba(255,255,255,.1); font-size: 12px; }
.st-c svg { width: 13px; height: 13px; opacity: .8; }
.st-c.form { font-weight: 800; letter-spacing: .02em; }
.st-c.r1, .rate.r1 { background: #D9443F; }
.st-c.r2, .rate.r2 { background: #E07B2E; }
.st-c.r3, .rate.r3 { background: #C9A227; }
.st-c.r4, .rate.r4 { background: #2E9E54; }
.st-c.r5, .rate.r5 { background: #2F6FE0; }
.lpitch2 {
  position: relative; height: calc(var(--rows) * 106px + 60px);
  background: repeating-linear-gradient(180deg, #2f6b27 0 46px, #2a6223 46px 92px);
  overflow: hidden;
}
.lpitch2.one { height: calc(var(--rows) * 112px + 40px); }
.lpitch2 .ln { position: absolute; border: 1.5px solid rgba(255,255,255,.28); pointer-events: none; }
.lpitch2 .ln.half { left: 0; right: 0; top: 50%; height: 0; border-width: 1.5px 0 0; }
.lpitch2 .ln.circle { left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; }
.lpitch2 .ln.spot { left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgba(255,255,255,.4); border: 0; }
.lpitch2 .ln.box { left: 22%; right: 22%; height: 110px; }
.lpitch2 .ln.six { left: 36%; right: 36%; height: 44px; }
.lpitch2 .ln.t { top: -2px; border-top: 0; }
.lpitch2 .ln.b { bottom: -2px; border-bottom: 0; }
.lpitch2.one .ln.b, .lpitch2.one .ln.half, .lpitch2.one .ln.circle, .lpitch2.one .ln.spot { display: none; }
.lp { position: absolute; width: 92px; margin-left: -46px; margin-top: -24px; display: flex; flex-direction: column; align-items: center; gap: 3px; z-index: 1; }
.lp-ph { position: relative; display: inline-flex; }
.ph { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #f4f6f2, #cfd8cc); color: #23421d; box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 3px 8px rgba(0,0,0,.3); flex: none; }
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ph i { font-style: normal; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.lp-ph.sm .ph { width: 42px; height: 42px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.5); }
.b-sub, .b-card, .b-goal, .b-cap, .b-flag { position: absolute; display: inline-flex; align-items: center; justify-content: center; }
.b-sub { top: -4px; left: -6px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.b-sub svg { width: 14px; height: 14px; }
.b-card { top: -3px; right: -2px; width: 9px; height: 13px; border-radius: 2px; background: #FFD60A; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.b-card.red { background: #FF453A; }
.b-goal { bottom: -3px; right: -7px; height: 18px; min-width: 18px; padding: 0 2px; border-radius: 999px; background: #fff; color: #0b2108; gap: 1px; }
.b-goal svg { width: 13px; height: 13px; }
.b-goal b { font-size: 10px; font-weight: 900; }
.b-cap { bottom: -3px; left: -5px; width: 17px; height: 17px; border-radius: 5px; background: #2F6FE0; color: #fff; font-size: 10px; font-weight: 900; }
.b-flag { bottom: -3px; right: -4px; }
.lp .nm { max-width: 92px; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 6px; background: rgba(8,26,6,.72); font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.lp .nm b { color: rgba(255,255,255,.65); font-weight: 800; }
.lp .val, .rate { display: inline-flex; align-items: center; gap: 4px; height: 19px; padding: 0 6px; border-radius: 6px; font-size: 11.5px; font-weight: 800; color: #fff; background: rgba(8,26,6,.72); white-space: nowrap; }
.lp .val.nat span { max-width: 56px; overflow: hidden; text-overflow: ellipsis; }
.flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flag.txt { align-items: center; justify-content: center; font-size: 8px; font-weight: 900; background: rgba(255,255,255,.2); }
.lu-list { padding: 4px 0; }
.lu-list .card-head { padding: 10px 14px 8px; margin: 0; justify-content: flex-start; border-bottom: 1px solid var(--line-2); }
.lu-row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; }
.lu-row + .lu-row { border-top: 1px solid var(--line-2); }
.lu-row .no { width: 24px; text-align: center; font-weight: 800; color: var(--fg-2); flex: none; }
.lu-row .tx { flex: 1; }
.lu-row .tx b { font-size: 14.5px; font-weight: 700; }
.lu-row .tx .ppos { color: var(--fg-3); font-weight: 600; }
.lu-row small { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--fg-3); }
.lu-row small svg { width: 13px; height: 13px; }
.lu-row small.in { color: #8FF0A8; font-weight: 700; }
.lu-row small.out { color: #FF8A80; font-weight: 600; }
.lu-row .rate { height: 26px; padding: 0 9px; border-radius: 8px; font-size: 13px; }
.lu-row .games { min-width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
@media (min-width: 720px) {
  .lp { width: 110px; margin-left: -55px; }
  .lp .nm { max-width: 110px; }
}

/* Startseite: Benachrichtigungen & Favoriten */
.sec-ic { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sec-ic svg { width: 14px; height: 14px; }
.sec-notif .sec-ic { background: rgba(255,214,10,.2); color: #FFD60A; }
.sec-fav .sec-ic { background: rgba(255,214,10,.2); color: #FFD60A; }
.sec-notif .league-head { background: rgba(255,214,10,.07); }
.league-head .cnt { font-style: normal; font-size: 11.5px; font-weight: 800; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; }
.ver { margin: 6px 0 0; text-align: center; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.38); letter-spacing: .02em; }
.tl-body.goal .tl-tx b { white-space: normal; }

/* ===== v0.8 ===== */
/* Unten: kein Verlauf-Overlay mehr, Hintergrund reicht bis hinter die Safari-Leiste */
html { background: #071805; }
body::before { bottom: -40vh; background: linear-gradient(180deg, #285921 0%, #234f1d 9%, #1c4316 22%, #163a11 34%, #11300d 46%, #0c2609 58%, #091f06 66%, #071805 72%, #071805 100%); }
.bfade { display: none !important; }

/* Burgund für den persönlichen Bereich */
html.theme-burg { background: #1a0509; }
html.theme-burg body::before { background: linear-gradient(180deg, #7a1e33 0%, #6d1a2d 10%, #5a1525 24%, #461020 38%, #350c18 50%, #260811 62%, #1a0509 72%, #1a0509 100%); }
html.theme-burg .apphead { background: #7a1e33; }
html.theme-burg .apphead::after { background: linear-gradient(#7a1e33, rgba(122,30,51,0)); }
html.theme-burg .topbar { background: #7a1e33; }
html.theme-burg .league, html.theme-burg .card { background: rgba(40,6,14,.5); }
html.theme-burg .league-head { background: rgba(255,255,255,.04); }

/* Menü mit Hinweis darunter */
.menu-wrap { position: fixed; z-index: 71; top: calc(var(--safe-t) + 8px); right: 10px; width: min(320px, calc(100vw - 20px)); display: flex; flex-direction: column; gap: 8px; }
.menu-wrap .menu { position: relative; top: auto; right: auto; width: 100%; max-height: calc(100dvh - var(--safe-t) - var(--safe-b) - 90px); }
.menu-note {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 20px; font-size: 14.5px; font-weight: 700;
  background: linear-gradient(180deg, rgba(60,122,48,.5), rgba(24,66,18,.55)); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(18px) saturate(190%); -webkit-backdrop-filter: blur(18px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 14px 40px rgba(0,0,0,.35); animation: noteIn .32s var(--ease);
}
.menu-note .ic { width: 26px; height: 26px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: #34C759; color: #fff; }
.menu-note .ic svg { width: 15px; height: 15px; }
.menu-note.out .ic { background: rgba(255,255,255,.2); }
@keyframes noteIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
.acct-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; }
.menu-top.acct { cursor: default; }
.menu-top.acct .acct-link:active { opacity: .7; }
.pbadge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; margin-left: 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; vertical-align: middle;
  background: linear-gradient(135deg, #FFD60A, #F5A623); color: #3a2400; }
.pbadge svg { width: 12px; height: 12px; }
.pbadge.sm { width: 20px; padding: 0; justify-content: center; margin-left: 6px; }
.pbadge.free { background: rgba(255,255,255,.16); color: #fff; }
.avatar.xl { width: 104px; height: 104px; font-size: 42px; box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 12px 30px rgba(0,0,0,.35); }

/* Persönlicher Bereich */
.prof-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 4px; }
.prof-ph { position: relative; cursor: pointer; margin-bottom: 12px; }
.prof-ph .cam { position: absolute; right: -2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #5a1525; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.prof-ph .cam svg { width: 18px; height: 18px; }
.prof-ph .busy { position: absolute; inset: 0; border-radius: 50%; background: rgba(0,0,0,.45); }
.prof-ph .busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.prof-hero h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.prof-hero .handle { margin: 6px 0 0; font-size: 15px; font-weight: 700; color: rgba(255,255,255,.85); display: inline-flex; align-items: center; }
.prof-hero .mail { margin: 4px 0 0; font-size: 13.5px; color: rgba(255,255,255,.6); }
.prof-hero .since { margin: 10px 0 0; font-size: 12px; color: rgba(255,255,255,.5); }
.prof-acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.chip-btn { position: relative; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.chip-btn svg { width: 16px; height: 16px; }
.pcard .card-head { margin-bottom: 10px; }
.plan-now { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.plan-now.prem { background: linear-gradient(135deg, rgba(255,214,10,.2), rgba(245,166,35,.1)); border-color: rgba(255,214,10,.35); }
.pn-ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #FFD60A, #F5A623); color: #3a2400; }
.pn-ic svg { width: 22px; height: 22px; }
.pn-ic.free { background: rgba(255,255,255,.14); color: #fff; }
.pn-tx { display: flex; flex-direction: column; min-width: 0; }
.pn-tx b { font-size: 16px; }
.pn-tx small { font-size: 13px; color: rgba(255,255,255,.72); margin-top: 2px; }
.up-title { margin: 18px 2px 10px; font-size: 15px; font-weight: 800; }
.plan-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plan-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 6px 12px; border-radius: 16px; border: 1.5px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; }
.plan-tile span { font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.75); }
.plan-tile b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.plan-tile small { font-size: 11px; color: rgba(255,255,255,.6); }
.plan-tile em { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 10px; font-weight: 900; padding: 3px 8px; border-radius: 999px; background: #34C759; color: #04260f; }
.plan-tile[aria-pressed="true"] { border-color: #FFD60A; background: rgba(255,214,10,.12); box-shadow: 0 0 0 3px rgba(255,214,10,.18); }
.feats { list-style: none; margin: 14px 2px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feats li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.feats svg { width: 18px; height: 18px; flex: none; color: #34C759; }
.primary.prem-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #FFD60A, #F5A623); color: #3a2400; }
.primary.prem-btn svg { width: 18px; height: 18px; }
.pcard .primary { margin-top: 16px; }
.pcard .ghost-btn { width: 100%; margin-top: 8px; }
.pcard .fine { margin-top: 10px; }
.plist { padding: 4px 0 6px; }
.plist .card-head { padding: 10px 14px 8px; margin: 0; justify-content: flex-start; gap: 10px; }
.plist .card-head h2 { flex: 1; }
.plist .card-head .cnt, .league-head .cnt { font-style: normal; font-size: 11.5px; font-weight: 800; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; }
.sec-ic.fav { background: rgba(255,214,10,.2); color: #FFD60A; }
.plist .lu-row { border-top: 1px solid var(--line-2); }
.plist .empty { margin: 0; padding: 10px 14px 12px; font-size: 13.5px; color: var(--fg-3); }
.plist .empty.pad { padding: 14px; }
.sec-ic { background: rgba(255,214,10,.2); color: #FFD60A; }
.up-hint { display: flex; align-items: center; gap: 8px; margin: 6px 14px 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255,214,10,.12); color: #FFE27A; font-size: 13px; font-weight: 600; }
.up-hint svg { width: 16px; height: 16px; flex: none; }
.perm-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--fg-2); }
.perm-row span { flex: 1; }
.perm-row .btn { margin: 0; flex: none; }
.set-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-top: 1px solid var(--line-2); background: transparent; color: var(--fg); text-align: left; font-size: 15px; }
.set-row > svg { width: 20px; height: 20px; flex: none; opacity: .85; }
.set-row .tx { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.set-row .tx b { font-size: 15px; font-weight: 700; }
.set-row .tx small { font-size: 12.5px; color: var(--fg-3); }
.set-row .lang-seg { flex: none; }
button.set-row:active, a.set-row:active { background: rgba(255,255,255,.06); }
.danger-row { color: #FF8A80; }
.del-box { padding: 12px 14px 14px; border-top: 1px solid var(--line-2); }
.del-box p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.45; color: var(--fg-2); }
.del-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.del-acts .ghost-btn { margin: 0; }
.danger { height: 42px; border-radius: 13px; border: 0; background: #E5484D; color: #fff; font-size: 14.5px; font-weight: 800; }
.notice.thanks { border-color: rgba(255,214,10,.35); }

/* Werbeplätze */
.ad { position: relative; padding: 28px 16px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad-lbl { position: absolute; top: 9px; left: 12px; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.ad-lbl svg { width: 12px; height: 12px; color: #FFD60A; }
.ad-slot { width: 100%; min-height: 100px; }
.ad.house b { font-size: 18px; font-weight: 800; margin-top: 2px; }
.ad.house > span:not(.ad-lbl) { font-size: 14px; line-height: 1.45; color: var(--fg-2); max-width: 420px; }
.ad.house .btn { margin-top: 8px; }
.ad .btn { display: inline-flex; align-items: center; }
