/* Wulpertinger Tabletop Tracker – angelehnt an wulpertinger.at */
:root {
  --gold: #b8860b; --gold-light: #d4a017; --gold-text: #8f6409; --gold-sand: #745108;
  --gold-btn: #996f09; --gold-btn-h: #8d6608; --gold-pale: #f7edd3;
  --cream: #fdf8f0; --warm-white: #fffdf9; --sand: #f0e5ce; --sand2: #e6d7b8; --sand3: #dccca4;
  --text: #28200f; --text2: #57442a; --muted: #645546;
  --border: rgba(184,134,11,0.15); --border-med: rgba(184,134,11,0.28); --border-dark: rgba(184,134,11,0.42);
  --shadow-sm: 0 2px 8px rgba(44,36,22,0.08); --shadow-md: 0 6px 24px rgba(44,36,22,0.12); --shadow-lg: 0 16px 56px rgba(44,36,22,0.16);
  --radius: 14px;
  --ok: #3d6b1f; --fehler: #9b2c1f;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: Nunito, sans-serif; background: var(--sand); color: var(--text); line-height: 1.5; overflow-x: hidden; padding-bottom: 5.2rem; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--gold-text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ── Kopfzeile wie auf der Vereinsseite ── */
nav.topnav { position: fixed; top: 0; left: 0; right: 0; z-index: 800; display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 2.5rem; background: rgba(255,253,249,.93); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--border-dark); box-shadow: var(--shadow-sm); }
.nav-logo { font-family: Cinzel, serif; font-size: 1.08rem; font-weight: 700; letter-spacing: .2em; color: var(--gold-text); text-decoration: none; text-transform: uppercase; display: flex; align-items: center; gap: .6rem; }
.nav-logo img { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 1px 3px rgba(184,134,11,.3)); }
.nav-back { color: var(--text2); text-decoration: none; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transition: color .25s; }
.nav-back:hover { color: var(--gold-text); }

.page-head { padding: 6.8rem 2.5rem 0; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem; align-items: center; }
.kopf-logo { width: 190px; height: auto; filter: drop-shadow(0 8px 18px rgba(44,36,22,.18)); }
.section-label { font-size: .62rem; letter-spacing: .45em; text-transform: uppercase; color: var(--gold-sand); font-weight: 700; margin-bottom: .6rem; display: flex; align-items: center; gap: .6rem; }
.section-label::before, .section-label::after { content: ""; flex: 0 0 24px; height: 1px; background: var(--gold); opacity: .5; }
h1 { font-family: Cinzel, serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.1; letter-spacing: .03em; margin-bottom: .9rem; }
.page-intro { color: var(--text2); font-size: 1rem; line-height: 1.75; max-width: 640px; }

/* ── Grundraster ── */
.tracker { max-width: 1200px; margin: 0 auto; padding: 2.2rem 2.5rem 3rem; display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 2rem; align-items: start; }
.karte { background: var(--warm-white); border: 1px solid var(--border-med); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.eintrag { padding: 1.4rem 1.3rem 1.2rem; position: sticky; top: 5.2rem; }
.karte-titel, .abschnitt-titel { font-family: Cinzel, serif; font-weight: 700; font-size: 1.25rem; letter-spacing: .03em; }
.karte-titel { margin-bottom: 0; }
.karte-kopf { display: flex; align-items: flex-end; justify-content: space-between; margin: -.6rem 0 .9rem; min-height: 3.6rem; }
.jack { image-rendering: pixelated; image-rendering: crisp-edges; width: 72px; height: 72px; flex: none; }
.karte-kopf .jack { margin-bottom: -.5rem; }
.mit-jack { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -.9rem; }
.mit-jack .jack.klein { width: 56px; height: 56px; margin-bottom: -.4rem; }
.mit-jack { gap: .5rem; }
.leer-jack { display: flex; align-items: center; gap: .6rem; }
.leer-jack .jack { width: 56px; height: 56px; }
.toast .jack { width: 56px; height: 56px; margin: -1.2rem 0 -.8rem -.7rem; }
h3 { font-family: Cinzel, serif; font-weight: 700; font-size: .98rem; letter-spacing: .04em; margin-bottom: .8rem; }
.optional { font-family: Nunito, sans-serif; font-weight: 400; font-size: .74rem; color: var(--muted); letter-spacing: 0; text-transform: none; }

/* ── Schritte ── */
.schritt { padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--border); }
.schritt-kopf { font-size: .8rem; font-weight: 700; color: var(--text2); margin-bottom: .6rem; display: flex; align-items: center; gap: .5rem; }
.schritt-nr { width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--gold-pale); border: 1px solid var(--border-dark); color: var(--gold-text);
  display: inline-flex; align-items: center; justify-content: center; font-family: Cinzel, serif; font-weight: 700; font-size: .78rem; }

input[type=text], input[type=search], select { width: 100%; height: 2.5rem; padding: 0 .8rem; border: 1px solid var(--border-dark); border-radius: 10px; background: #fff; font-size: .95rem; }
input[type=text]:focus, input[type=search]:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,11,.15); }
.suche { margin-bottom: .7rem; }

/* ── Spielkacheln (kompakt, Logo nur wenn vorhanden) ── */
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.kachel { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; min-height: 2.9rem; background: #fff; border: 1px solid var(--border-med);
  border-radius: 10px; cursor: pointer; text-align: left; transition: border-color .2s, transform .15s, background .2s; }
.kachel:hover { border-color: var(--gold); }
.kachel:active { transform: scale(.98); }
.kachel.gewaehlt { border-color: var(--gold); background: var(--gold-pale); box-shadow: inset 0 0 0 1px var(--gold); }
.kachel-logo { height: 1.9rem; width: 2.6rem; object-fit: contain; flex: none; }
.kachel-name { flex: 1; min-width: 0; font-size: .8rem; font-weight: 600; line-height: 1.2; color: var(--text2); overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.kachel-n { flex: none; font-size: .68rem; font-weight: 700; color: var(--gold-text); background: var(--gold-pale); border-radius: 100px; padding: .05rem .45rem; }
.kachel.gewaehlt .kachel-n { background: #fff; }
.kachel-aktionen { display: flex; justify-content: space-between; margin-top: .6rem; }
.link-knopf { background: none; border: 0; color: var(--gold-text); font-weight: 700; font-size: .8rem; cursor: pointer; padding: .2rem 0; }
.link-knopf:hover { text-decoration: underline; }
.leer { font-size: .85rem; color: var(--muted); grid-column: 1 / -1; padding: .4rem 0; }

/* ── Neues Spiel ── */
.neues-spiel { margin-top: .8rem; padding: 1rem; background: var(--cream); border: 1px dashed var(--border-dark); border-radius: 12px; display: grid; gap: .8rem; }
.neu-kopf { font-weight: 700; font-size: .9rem; }
.feld { display: grid; gap: .4rem; font-size: .8rem; font-weight: 700; color: var(--text2); }
.logo-wahl { display: flex; align-items: center; gap: .8rem; font-weight: 400; }
.logo-wahl input { font-size: .8rem; max-width: 100%; color: var(--muted); }
input[type=file]::file-selector-button { font: inherit; font-weight: 700; color: var(--gold-text); background: #fff; border: 1px solid var(--border-dark); border-radius: 100px; padding: .4rem .9rem; margin-right: .6rem; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--gold-pale); }
.verlauf li.mehr-zeile { display: block; text-align: center; padding-top: .7rem; }
.logo-wahl img { height: 3rem; max-width: 6rem; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.neu-knoepfe { display: flex; gap: .5rem; justify-content: flex-end; }
.dublette { font-size: .82rem; font-weight: 400; color: var(--text2); background: var(--gold-pale); border-radius: 8px; padding: .5rem .7rem; }
.dublette button { margin: .2rem .3rem 0 0; }

/* ── Chips ── */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 600; color: var(--text2); background: #fff; border: 1px solid var(--border-dark);
  border-radius: 100px; padding: .38rem .8rem; cursor: pointer; transition: background .2s, border-color .2s; position: relative; min-height: 2.2rem; }
.chip:hover { border-color: var(--gold); }
.chip.an { background: var(--gold-btn); border-color: var(--gold-btn); color: #fff; }
.chip .x { font-size: 1rem; line-height: 1; opacity: .8; }
.datum-chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.name-neu { display: flex; gap: .4rem; margin-top: .6rem; }
.ich { display: flex; align-items: center; gap: .4rem; margin-top: .6rem; font-size: .78rem; color: var(--muted); }

/* ── Mehr ── */
.mehr { margin-bottom: 1.1rem; }
.mehr summary { cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--gold-text); list-style: none; display: flex; align-items: center; gap: .4rem; }
.mehr summary::-webkit-details-marker { display: none; }
.mehr summary::before { content: "▸"; transition: transform .2s; }
.mehr[open] summary::before { transform: rotate(90deg); }
.mehr .feld { margin-top: .8rem; }

/* ── Knöpfe ── */
.knopf { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--gold-btn); color: #fff; border: 1px solid var(--gold-btn); border-radius: 100px;
  padding: .6rem 1.2rem; font-size: .84rem; font-weight: 700; letter-spacing: .04em; cursor: pointer; transition: background .2s, transform .15s; white-space: nowrap; }
.knopf:hover { background: var(--gold-btn-h); }
.knopf:active { transform: scale(.98); }
.knopf.zweit { background: #fff; color: var(--gold-text); border-color: var(--border-dark); }
.knopf.zweit:hover { background: var(--gold-pale); }
.knopf.klein { padding: .45rem .9rem; font-size: .78rem; }
.knopf.gross { width: 100%; padding: .9rem 1.2rem; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; }
.knopf[aria-busy=true] { opacity: .6; pointer-events: none; }
.hinweis { font-size: .74rem; color: var(--muted); margin-top: .7rem; text-align: center; }
.meldung { font-size: .82rem; color: var(--fehler); min-height: 0; }
.meldung:empty { display: none; }
.honig { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Jahresstand ── */
.stand-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.stand-werkzeug { display: flex; gap: .5rem; align-items: center; }
.stand-werkzeug select { width: auto; height: 2.2rem; }
.zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.zahl { background: var(--warm-white); border: 1px solid var(--border-med); border-radius: var(--radius); padding: 1.1rem 1rem; text-align: center; box-shadow: var(--shadow-sm); }
.zahl:first-child { background: var(--gold-pale); border-color: var(--border-dark); }
.zahl-wert { display: block; font-family: Cinzel, serif; font-weight: 900; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.05; color: var(--gold-text); }
.zahl-text { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text2); margin-top: .3rem; }
.kategorien { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 0; }
.kat { font-size: .74rem; font-weight: 600; color: var(--text2); background: var(--gold-pale); border: 1px solid var(--border-med); border-radius: 100px; padding: .22rem .7rem; }
.kat b { color: var(--gold-text); }

.block { background: var(--warm-white); border: 1px solid var(--border-med); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.2rem 1.2rem 1.1rem; margin-top: 1.2rem; }
.block-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.umschalter { font-size: .78rem; color: var(--muted); display: flex; gap: .3rem; align-items: center; cursor: pointer; }


/* Gespielte Spiele: kompakte Rangliste */
.wand { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .4rem .9rem; }
.wand-zeile { position: relative; display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem .6rem; min-height: 2.8rem; background: #fff;
  border: 1px solid var(--border-med); border-radius: 10px; cursor: pointer; text-align: left; overflow: hidden; transition: border-color .2s; }
.wand-zeile:hover { border-color: var(--gold); }
.wz-rang { flex: none; width: 1.4rem; font-family: Cinzel, serif; font-weight: 700; font-size: .78rem; color: var(--gold-sand); text-align: center; }
.wz-logo { flex: none; height: 1.9rem; width: 2.8rem; object-fit: contain; }
.wz-name { flex: 1; min-width: 0; font-size: .86rem; font-weight: 600; line-height: 1.2; }
.wz-n { flex: none; font-family: Cinzel, serif; font-weight: 900; font-size: 1.15rem; color: var(--gold-text); }
.wz-balken { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--gold-light); border-radius: 0 3px 3px 0; }
.offen { margin-top: .9rem; }
.offen summary { cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--text2); }
.offen-liste { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }
.offen-chip { font-size: .74rem; color: var(--muted); border: 1px dashed var(--border-dark); border-radius: 100px; padding: .15rem .6rem; }

.zweispaltig { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.zweispaltig .block { margin-top: 1.2rem; }
.monate { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .3rem; align-items: end; height: 9rem; }
.monat { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .25rem; }
.balken { width: 100%; max-width: 1.6rem; background: var(--gold-light); border-radius: 5px 5px 2px 2px; min-height: 2px; transition: height .4s; }
.balken.null { background: var(--sand2); }
.monat-n { font-size: .68rem; font-weight: 700; color: var(--text2); min-height: 1em; }
.monat-name { font-size: .64rem; color: var(--muted); }
.rangliste { list-style: none; counter-reset: r; display: grid; gap: .35rem; }
.rangliste li { counter-increment: r; display: flex; align-items: center; gap: .6rem; font-size: .88rem; }
.rangliste li::before { content: counter(r); width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--gold-pale); color: var(--gold-text); font-family: Cinzel, serif; font-weight: 700;
  font-size: .72rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rangliste .rn { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rangliste .rz { font-size: .76rem; color: var(--muted); white-space: nowrap; }
.verlauf { list-style: none; display: grid; }
.verlauf li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--border); }
.verlauf li.mit-bild { grid-template-columns: 2.8rem minmax(0, 1fr) auto; }
.verlauf .mini { width: 2.8rem; height: 2.4rem; display: flex; align-items: center; justify-content: center; }
.mini-logo { max-width: 2.8rem; max-height: 2.4rem; object-fit: contain; }
.verlauf li:first-child { border-top: 0; }
.v-spiel { font-weight: 700; font-size: .9rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; }
.marke { display: inline-flex; align-items: center; gap: .25rem; font-size: .66rem; font-weight: 700; letter-spacing: .04em; border-radius: 100px; padding: .1rem .5rem .1rem .35rem; }
.marke.turnier { background: #f3e2b5; color: var(--gold-sand); }
.marke.raurackel { background: #e8eedc; color: #3d5a1f; }
.marke img { width: 16px; height: 16px; object-fit: contain; }
.pokal { width: 1em; height: 1em; flex: none; }
.chip.anlass img { width: 22px; height: 22px; object-fit: contain; margin: -.2rem 0; }
.chip.anlass .pokal { width: 18px; height: 18px; }
.schritt-zeichen { font-family: Nunito, sans-serif; font-size: .7rem; }
.kat-anlass { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; }
.kat-anlass img { width: 18px; height: 18px; object-fit: contain; }
.kat-anlass:hover { border-color: var(--gold); }
.nav-rechts { display: flex; gap: 1.4rem; align-items: center; }
.detail-logo { width: 5rem; height: 4rem; object-fit: contain; flex: none; }
.detail-knoepfe { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.v-meta { font-size: .78rem; color: var(--muted); }
.v-datum { font-size: .76rem; color: var(--text2); text-align: right; white-space: nowrap; }
.v-weg { background: none; border: 0; color: var(--fehler); font-size: .72rem; cursor: pointer; font-weight: 700; padding: .1rem 0; display: block; margin-left: auto; }
.sieg { color: var(--gold-text); font-weight: 700; }

/* Dialog */
.detail { border: 1px solid var(--border-dark); border-radius: var(--radius); padding: 1.5rem; max-width: 560px; width: calc(100% - 2rem); background: var(--warm-white); color: var(--text); box-shadow: var(--shadow-lg); margin: auto; }
.detail::backdrop { background: rgba(40,32,15,.45); }
.schliessen { position: absolute; top: .6rem; right: .8rem; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--text2); line-height: 1; }
.detail-kopf { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding-right: 1.5rem; min-height: 2.5rem; }
.detail-kopf h3 { margin: 0; font-size: 1.2rem; }

/* Meldung unten */
.toast { position: fixed; left: 50%; bottom: 5.6rem; transform: translateX(-50%); z-index: 900; background: var(--text); color: #fff; padding: .75rem 1rem .75rem 1.2rem; border-radius: 100px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 1rem; font-size: .9rem; max-width: calc(100% - 2rem); }
.toast.fehler { background: var(--fehler); }
.toast button { background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 100px; padding: .3rem .8rem; font-weight: 700; font-size: .8rem; cursor: pointer; }

.fuss { text-align: center; padding: 1.5rem 1rem 2.5rem; font-size: .8rem; color: var(--muted); }
.fuss a { color: var(--muted); }

/* ── Jahresrückblick (Beamer) ── */
.rb-leiste { display: none; }
body.rueckblick nav.topnav, body.rueckblick .page-head, body.rueckblick .eintrag, body.rueckblick .fuss, body.rueckblick .stand-werkzeug, body.rueckblick .umschalter { display: none; }
body.rueckblick .rb-leiste { display: flex; justify-content: space-between; align-items: center; max-width: 1500px; margin: 0 auto; padding: 2rem 3rem 0; }
body.rueckblick .rb-leiste h1 { margin: 0; font-size: clamp(2.4rem, 4.5vw, 4rem); }
body.rueckblick .tracker { display: block; max-width: 1500px; padding: 1.5rem 3rem 3rem; }
body.rueckblick .stand-kopf { display: none; }
body.rueckblick .zahl-wert { font-size: clamp(3rem, 7vw, 6rem); }
body.rueckblick .zahl-text { font-size: .95rem; }
body.rueckblick .verlauf-block { display: none; }
body.rueckblick .wand { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .6rem 1rem; }
body.rueckblick .wand-zeile { min-height: 3.8rem; padding: .7rem .9rem .8rem; }
body.rueckblick .wz-logo { height: 2.8rem; width: 4rem; }
body.rueckblick .wz-name { font-size: 1.05rem; }
body.rueckblick .wz-n { font-size: 1.6rem; }

@media (max-width: 960px) {
  .tracker { grid-template-columns: 1fr; padding: 1.6rem 1.2rem 2.5rem; gap: 1.6rem; }
  .eintrag { position: static; }
  .zweispaltig { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 700px) {
  .page-head { grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: start; }
  .kopf-logo { width: 96px; }
  .jahresleiste { gap: .9rem; justify-content: space-between; padding-left: .8rem; padding-right: 1rem; }
  .jahresleiste .jack { width: 52px; height: 52px; margin-top: -1.3rem; }
  .jl-jahr { display: none; }
  .jl-zahl { font-size: .62rem; letter-spacing: .08em; flex-direction: column; align-items: center; gap: 0; }
  .jl-zahl b { font-size: 1.6rem; }
  .jl-zahl.nebensache b { font-size: 1.6rem; }
  nav.topnav { padding: .75rem 1rem; }
  .nav-logo { font-size: .95rem; }
  .nav-back { font-size: .68rem; }
  .page-head { padding: 6.3rem 1.2rem 0; }
  .zahlen { gap: .5rem; }
  .zahl { padding: .9rem .4rem; }
  .zahl-text { font-size: .6rem; letter-spacing: .1em; }
  .wand { grid-template-columns: 1fr; }
  .nav-rechts { gap: .8rem; }
  .block { padding: 1rem .9rem; }
  .monate { height: 7rem; }
}

/* ── Immer sichtbare Jahresleiste ── */
.jahresleiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; display: flex; align-items: center; justify-content: center; gap: 1.4rem;
  padding: .55rem 1.2rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(255,253,249,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-dark); box-shadow: 0 -4px 18px rgba(44,36,22,.10); text-decoration: none; color: var(--text); }
.jahresleiste .jack { width: 64px; height: 64px; margin: -1.7rem 0 -.4rem; }
.jl-jahr { font-family: Cinzel, serif; font-weight: 700; font-size: .95rem; letter-spacing: .06em; color: var(--text2); }
.jl-jahr b { color: var(--gold-text); }
.jl-zahl { display: inline-flex; align-items: baseline; gap: .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text2); }
.jl-zahl b { font-family: Cinzel, serif; font-weight: 900; font-size: 1.9rem; letter-spacing: 0; color: var(--gold-text); line-height: 1; }
.jl-zahl.nebensache b { font-size: 1.3rem; }
body.rueckblick .jahresleiste { display: none; }
body.rueckblick { padding-bottom: 0; }

.rb-logo { width: 130px; height: auto; filter: drop-shadow(0 6px 14px rgba(44,36,22,.18)); }
body.rueckblick .rb-leiste { gap: 2rem; justify-content: flex-start; }
body.rueckblick .rb-leiste .rb-text { flex: 1; }

/* ── Übersichtsseite ── */
.nav-back.aktiv { color: var(--gold-text); }
.ue { max-width: 1200px; margin: 0 auto; padding: 1.8rem 2.5rem 3rem; }
.ue-filter { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.ue-filter select { width: auto; height: 2.4rem; }
.segmente { display: inline-flex; flex-wrap: wrap; gap: .3rem; background: var(--warm-white); border: 1px solid var(--border-med); border-radius: 100px; padding: .25rem; }
.segmente button { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: none; border-radius: 100px; padding: .45rem .95rem; font-size: .84rem; font-weight: 700; color: var(--text2); cursor: pointer; }
.segmente button:hover { background: var(--gold-pale); }
.segmente button.an { background: var(--gold-btn); color: #fff; }
.segmente img { width: 20px; height: 20px; object-fit: contain; margin: -.2rem 0; }
.segmente .pokal { width: 16px; height: 16px; }
.ue-zahlen { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.zahl-vj { display: block; font-size: .72rem; color: var(--muted); margin-top: .2rem; min-height: 1em; }
.hoehepunkte { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; margin-top: 1.2rem; }
.hp { display: flex; align-items: center; gap: .8rem; background: var(--warm-white); border: 1px solid var(--border-med); border-radius: 12px; padding: .8rem 1rem; box-shadow: var(--shadow-sm); }
.hp-text { display: grid; min-width: 0; }
.hp-titel { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-sand); }
.hp-wert { font-family: Cinzel, serif; font-weight: 700; font-size: 1.05rem; line-height: 1.25; overflow-wrap: anywhere; }
.hp-zusatz { font-size: .78rem; color: var(--muted); }
.hp-logo { width: 3rem; height: 2.6rem; object-fit: contain; flex: none; }
.hp-zeichen { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #f3e2b5; color: var(--gold-sand); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hp-zeichen .pokal { width: 1.4rem; height: 1.4rem; }
.block-titel { font-family: Cinzel, serif; font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; margin-bottom: .9rem; }
.block-titel.mit-jack { margin-top: -.9rem; }

.tabelle-rahmen { overflow-x: auto; margin: 0 -.2rem; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tabelle th { text-align: left; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text2); padding: .4rem .5rem; border-bottom: 1px solid var(--border-dark); white-space: nowrap; }
.tabelle td { padding: .5rem .5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle .r { width: 2rem; text-align: center; font-family: Cinzel, serif; font-weight: 700; color: var(--gold-sand); }
.tabelle .zahlspalte { text-align: right; white-space: nowrap; }
.tabelle .klein { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.tabelle tr.hervor td { background: var(--gold-pale); }
.name-zelle { display: flex; align-items: center; gap: .6rem; min-width: 12rem; }
.tab-logo { width: 2.8rem; height: 2rem; object-fit: contain; flex: none; }
.tab-name { font-weight: 700; }
.tab-unter { display: block; font-size: .72rem; color: var(--muted); }
.marke.neu { background: var(--gold-btn); color: #fff; margin-left: .4rem; font-size: .6rem; text-transform: uppercase; padding: .05rem .4rem; }
.balken-zelle { position: relative; min-width: 7rem; }
.balken-zelle .zb { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); height: 1.3rem; background: var(--gold-pale); border-radius: 4px; max-width: calc(100% - 1rem); }
.balken-zelle b { position: relative; padding-right: .35rem; color: var(--gold-text); }

.anlaesse { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .9rem; }
.anlass-karte { border: 1px solid var(--border-med); border-radius: 12px; padding: 1rem; background: #fff; display: grid; gap: .6rem; align-content: start; }
.anlass-karte.raurackel { border-color: #c9d6b3; background: linear-gradient(#fbfcf7, #fff); }
.ak-kopf { display: flex; align-items: center; gap: .8rem; }
.ak-logo { width: 3.6rem; height: auto; flex: none; filter: drop-shadow(0 2px 4px rgba(44,36,22,.18)); }
.ak-zeichen { width: 3rem; height: 3rem; border-radius: 50%; background: #f3e2b5; color: var(--gold-sand); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ak-zeichen .pokal { width: 1.6rem; height: 1.6rem; }
.ak-art { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-sand); }
.raurackel .ak-art { color: #3d5a1f; }
.ak-datum { font-family: Cinzel, serif; font-weight: 700; font-size: 1rem; }
.ak-ort { font-size: .78rem; color: var(--muted); }
.ak-zahlen { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8rem; color: var(--text2); }
.ak-zahlen b { font-family: Cinzel, serif; color: var(--gold-text); font-size: 1rem; }
.ak-spiele { display: flex; flex-wrap: wrap; gap: .3rem; }
.offen-chip.voll { border-style: solid; color: var(--text2); background: var(--cream); }
.ak-sieger { display: flex; align-items: center; gap: .35rem; font-size: .76rem; color: var(--muted); }
.ak-namen { font-size: .76rem; color: var(--muted); }
.anteile { list-style: none; display: grid; gap: .55rem; }
.anteile li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .6rem; font-size: .86rem; }
.an-name { font-weight: 600; }
.an-zahl { color: var(--muted); font-size: .78rem; }
.an-balken { grid-column: 1 / -1; height: 5px; background: var(--sand); border-radius: 3px; overflow: hidden; }
.an-balken span { display: block; height: 100%; background: var(--gold-light); border-radius: 3px; }
body[data-art="raurackel"] .kopf-logo { width: 220px; }

@media (max-width: 960px) {
  .ue { padding: 1.4rem 1.2rem 2.5rem; }
  .ue-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .nur-weit { display: none; }
  .nav-weit { display: none; }
  .balken-zelle { min-width: 4.5rem; }
  .tabelle td, .tabelle th { padding-left: .35rem; padding-right: .35rem; }
  .segmente { width: 100%; border-radius: 14px; }
  .segmente button { flex: 1 1 auto; justify-content: center; padding: .45rem .6rem; font-size: .78rem; }
  .ue-filter select { width: 100%; }
  .name-zelle { min-width: 0; }
  body[data-art="raurackel"] .kopf-logo { width: 110px; }
}

@media (max-width: 520px) {
  .nav-logo { font-size: 0; gap: 0; }
  .nav-logo img { width: 32px; height: 32px; }
}

/* ── Vereinspasswort (einmal je Gerät) ── */
.zugang-feld { margin-bottom: 1rem; padding: .9rem; background: var(--gold-pale); border: 1px solid var(--border-dark); border-radius: 12px; display: grid; gap: .5rem; }
.zugang-feld input { width: 100%; height: 2.8rem; padding: 0 .9rem; border: 1px solid var(--border-dark); border-radius: 10px; background: #fff; font-size: 1rem; }
.zugang-feld input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,11,.15); }

/* ── Handy: Schnell-Speichern unten ── */
.schnellleiste { display: none; }
@media (max-width: 700px) {
  .seite-eintragen .page-intro { display: none; }
  .seite-eintragen .page-head { align-items: center; }
  .seite-eintragen .page-head h1 { margin-bottom: 0; }
  body.bereit .jahresleiste { display: none; }
  body.bereit .schnellleiste { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 860; align-items: center; gap: .8rem;
    padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,253,249,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-dark); box-shadow: 0 -4px 18px rgba(44,36,22,.12); }
  .sl-text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
  .sl-text b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sl-text span { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .schnellleiste .knopf { padding: .8rem 1.4rem; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
}
@media (max-width: 700px) {
  .kachel { padding: .4rem .5rem; gap: .4rem; }
  .kachel-logo { width: 1.9rem; height: 1.6rem; }
}
