/* OEM – helles Eis-Design (Farben und Formen aus dem Design "hell") */

/* Schriften: Plus Jakarta Sans und Space Grotesk. Die Dateien liegen lokal in assets/fonts
   (siehe README). Fehlen sie, greifen die Systemschriften. */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400 800; font-style: normal; font-display: swap;
  src: local("Plus Jakarta Sans"), url("fonts/PlusJakartaSans-Variable.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500 700; font-style: normal; font-display: swap;
  src: local("Space Grotesk"), url("fonts/SpaceGrotesk-Variable.woff2") format("woff2"); }

:root {
  --arctic: #f8fafc;
  --arctic-200: #e0f2fe;
  --sapphire: #0a1a35;
  --sapphire-800: #1e293b;
  --sapphire-50: #f0f6ff;
  --sapphire-100: #e0edfe;
  --mint: #0b78c9;
  --mint-400: #5bb5f0;
  --mint-50: #eef6fe;
  --crimson: #e11d48;
  --ice: #0284c7;
  --ice-400: #38bdf8;
  --amber: #f59e0b;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-700: #334155;
  --ok: #0b78c9;
  --nav-h: 3.7rem;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --glass: rgba(255, 255, 255, .88);
  --shadow: 0 20px 50px -12px rgba(15, 23, 42, .08), 0 0 20px rgba(14, 165, 233, .04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow-x: hidden;
  color: var(--sapphire); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  background-color: var(--arctic);
  background-image:
    radial-gradient(circle at 50% -10%, rgba(14, 165, 233, .10) 0%, transparent 55%),
    radial-gradient(circle at 85% 30%, rgba(11,120,201, .08) 0%, transparent 45%),
    radial-gradient(circle at 15% 75%, rgba(225, 29, 72, .06) 0%, transparent 45%),
    radial-gradient(rgba(15, 23, 42, .02) 1px, transparent 0);
  background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px;
}
body.has-nav { padding-bottom: var(--nav-h); }
::selection { background: var(--mint); color: #fff; }
a { color: var(--ice); }
:focus-visible { outline: 3px solid var(--ice-400); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .6rem; letter-spacing: -.01em; }
h1 { font-size: 1.85rem; margin-top: .2rem; }
h2 { font-size: 1.12rem; text-transform: uppercase; letter-spacing: .03em; }
.muted { color: var(--slate-500); }
.small { font-size: .85rem; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.icon { vertical-align: -.15em; flex: none; }
[hidden] { display: none !important; }

/* Hintergrundebenen: Nebel, Rinklinien, Schnee */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fog { position: absolute; filter: blur(44px); }
.fog-1 { top: -20%; left: -10%; width: 120%; height: 90%; animation: fog1 28s ease-in-out infinite;
  background: radial-gradient(ellipse at 40% 40%, rgba(186, 230, 253, .6) 0%, rgba(248, 250, 252, 0) 70%); }
.fog-2 { top: 20%; right: -15%; width: 110%; height: 95%; animation: fog2 36s ease-in-out infinite;
  background: radial-gradient(ellipse at 70% 60%, rgba(204, 251, 241, .5) 0%, rgba(248, 250, 252, 0) 65%); }
.rink-lines { position: absolute; inset: 0; opacity: .4;
  background:
    linear-gradient(to bottom, transparent 49.6%, rgba(225, 29, 72, .35) 49.6%, rgba(225, 29, 72, .35) 50.4%, transparent 50.4%),
    linear-gradient(to right, transparent 15%, rgba(2, 132, 199, .25) 15.3%, transparent 15.6%),
    linear-gradient(to right, transparent 84.4%, rgba(2, 132, 199, .25) 84.7%, transparent 85%); }
@keyframes fog1 { 0%, 100% { transform: translate(-10%, 0) scale(1); opacity: .35; } 50% { transform: translate(12%, -3%) scale(1.1); opacity: .55; } }
@keyframes fog2 { 0%, 100% { transform: translate(15%, -2%) scale(1.05); opacity: .25; } 50% { transform: translate(-12%, 4%) scale(1); opacity: .45; } }
#snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .8; }
.top, .tabs, .page, .foot { position: relative; z-index: 2; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .82); backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--arctic-200); }
.top-in { display: flex; align-items: center; gap: 1rem; max-width: 70rem; margin: 0 auto; padding: .55rem 1rem; min-height: 3.6rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--sapphire); }
.emblem { width: 3.6rem; height: 3.6rem; margin: -.4rem 0; display: grid; place-items: center;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, .18)); transition: transform .3s; flex: none; }
.emblem img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand:hover .emblem { transform: scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; text-transform: uppercase; }

.pill { display: none; align-items: center; gap: .55rem; padding: .3rem .9rem; border-radius: 999px; background: rgba(241, 245, 249, .85);
  border: 1px solid rgba(226, 232, 240, .85); font-size: .75rem; font-weight: 600; color: var(--slate-700); margin-left: .5rem; }
.pill b { font-family: var(--display); color: var(--sapphire); text-transform: uppercase; }
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 .5rem rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.top-right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.who { display: flex; align-items: center; gap: .55rem; text-align: right; line-height: 1.2; font-size: .78rem; min-width: 0; }
.who-text { display: flex; flex-direction: column; min-width: 0; }
.who strong { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 9rem; }
.who span { color: var(--slate-500); font-variant-numeric: tabular-nums; }
.adminlink { font-size: .75rem; font-weight: 700; text-decoration: none; color: var(--crimson); border: 1px solid #fecdd3; background: #fff1f2;
  border-radius: .6rem; padding: .3rem .6rem; font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; }
.logout { margin: 0; }

/* Hauptmenü: unten am Handy, als Pillen ab Tablet */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: var(--nav-h); display: flex;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--slate-200); }
.tabs a { flex: 1; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--slate-500);
  font-weight: 700; font-size: .76rem; border-top: 3px solid transparent; font-family: var(--display); }
.tabs a[aria-current="page"] { color: var(--sapphire); border-top-color: var(--mint); background: var(--mint-50); }
@media (min-width: 760px) {
  .pill { display: inline-flex; }
  body.has-nav { padding-bottom: 0; }
  .tabs { position: sticky; top: 3.6rem; bottom: auto; height: auto; max-width: 70rem; margin: 0 auto; padding: .7rem 1rem 0; gap: .4rem;
    background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; justify-content: flex-start; z-index: 30; }
  .tabs a { flex: 0 0 auto; padding: .5rem 1.1rem; border: 1px solid var(--slate-200); border-radius: .8rem; background: rgba(255, 255, 255, .85);
    font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
  .tabs a:hover { border-color: var(--mint); color: var(--mint); }
  .tabs a[aria-current="page"] { background: var(--sapphire); color: #fff; border-color: var(--sapphire); }
}
.subtabs { display: flex; flex-wrap: wrap; gap: .3rem .5rem; margin: 0 0 1rem; }
.subtabs a { padding: .35rem .9rem; border-radius: 999px; text-decoration: none; color: var(--slate-700); font-weight: 600; font-size: .85rem;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--slate-200); }
.subtabs a[aria-current="page"] { background: var(--mint); border-color: var(--mint); color: #fff; }

.page { flex: 1 0 auto; width: 100%; max-width: 70rem; margin: 0 auto; padding: 1rem 1rem 1.5rem; }

/* Karten */
.panel{ background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226, 232, 240, .85); border-radius: 1.25rem; padding: 1.1rem 1.2rem; margin: 0 0 1rem; box-shadow: var(--shadow); }

.panel h2:first-child { margin-top: 0; }
.accent-top { position: relative; overflow: hidden; }
.accent-top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, #38a1e8, #0284c7, #f43f5e); }
.hero { padding: .5rem 0 1rem; max-width: 40rem; }
.hero h1 { font-size: 2rem; }
.hero p { color: var(--slate-500); margin: 0; }

.flash { padding: .75rem 1rem; border-radius: .9rem; margin: 0 0 .8rem; border: 1px solid var(--slate-200); border-left: 5px solid var(--slate-400);
  background: rgba(255, 255, 255, .95); box-shadow: 0 6px 18px -8px rgba(15, 23, 42, .15); font-size: .92rem; }
.flash-ok { border-left-color: var(--mint); }
.flash-error { border-left-color: var(--crimson); }
.notice { border: 1px solid #fde68a; border-left: 5px solid var(--amber); background: #fffbeb; padding: .65rem .9rem; margin: .8rem 0 0; border-radius: .8rem; font-size: .9rem; }

/* Formulare */
.form { display: grid; gap: .9rem; margin-bottom: 1rem; }
.form label, label.field { display: grid; gap: .3rem; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-700); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=file], select, textarea {
  width: 100%; padding: .7rem .85rem; font: inherit; font-size: .92rem; color: var(--sapphire); background: #fff; text-transform: none; letter-spacing: 0; font-weight: 500;
  border: 1px solid var(--slate-200); border-radius: .85rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(20, 184, 166, .18); }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--slate-400); }
.input-icon input { padding-left: 2.4rem; }
.btn { font: inherit; font-family: var(--display); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; padding: .7rem 1.2rem; border-radius: .85rem;
  cursor: pointer; background: #fff; color: var(--sapphire); border: 1px solid var(--slate-300); display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  text-decoration: none; transition: background .2s, border-color .2s, transform .1s; }
.btn:hover { background: var(--slate-50); border-color: var(--mint); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sapphire); border-color: var(--sapphire); color: #fff; box-shadow: 0 10px 22px -10px rgba(15, 23, 42, .5); }
.btn-primary:hover { background: var(--sapphire-800); border-color: var(--sapphire-800); }
.btn-primary .icon { color: var(--mint-400); }
.btn-crimson { background: linear-gradient(90deg, #f43f5e, #e11d48); border-color: #e11d48; color: #fff; box-shadow: 0 10px 22px -10px rgba(225, 29, 72, .6); }
.btn-crimson:hover { background: linear-gradient(90deg, #e11d48, #be123c); border-color: #be123c; }
.btn-danger { color: var(--crimson); border-color: #fecdd3; }
.btn-danger:hover { background: #fff1f2; border-color: var(--crimson); }
.btn-quiet { padding: .4rem .75rem; font-size: .72rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.inline-form { margin: 0 0 1rem; }



/* Zahlen und Listen */
.total { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .6rem; }


.meter-row { display: grid; grid-template-columns: 5.6rem 1fr 2rem; align-items: center; gap: .6rem; margin: .4rem 0; font-size: .9rem; }
.meter-row b { text-align: right; font-variant-numeric: tabular-nums; }
.meter { height: .55rem; background: var(--slate-200); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #5bb5f0, #0b78c9); border-radius: 999px; }
.facts { margin: 0; display: grid; gap: .45rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--slate-100); padding-bottom: .35rem; }
.facts dt { color: var(--slate-500); }
.facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.facts .sum { border-top: 2px solid var(--sapphire); border-bottom: 0; padding-top: .4rem; margin-top: .2rem; }
.plain { list-style: none; margin: 0 0 .6rem; padding: 0; }
.plain li { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--slate-100); }
.plain li:last-child { border-bottom: 0; }
.amt-pos, .ok { color: var(--mint); }
.amt-neg { color: var(--crimson); }
.pos { display: inline-block; min-width: 2.3rem; text-align: center; font-size: .72rem; font-weight: 800; padding: .08rem .35rem; border: 1px solid #bae6fd;
  background: #f0f9ff; color: var(--ice); border-radius: .45rem; font-family: var(--display); }
.pos-D { border-color: #99f6e4; background: #eef6fe; color: #0f766e; }
.pos-LW, .pos-C, .pos-RW { border-color: #fde68a; background: #fffbeb; color: #b45309; }
.pos-G { border-color: #fecdd3; background: #fff1f2; color: var(--crimson); }
.tag { font-size: .68rem; font-weight: 700; border: 1px solid #bae6fd; background: #f0f9ff; color: var(--ice); border-radius: .4rem; padding: .02rem .35rem; margin-left: .25rem; white-space: nowrap; }
.tag-ok { border-color: #99f6e4; background: var(--mint-50); color: var(--mint); }
.tag-bad { border-color: #fecdd3; background: #fff1f2; color: var(--crimson); }
.plain-link { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--slate-400); }
.delta { min-width: 2rem; text-align: right; font-variant-numeric: tabular-nums; }

/* Wappen */
.badge { border-radius: .6rem; object-fit: cover; vertical-align: middle; flex: none; background: transparent; }
.badge-ini { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-family: var(--display); }

/* Tabellen */
.sortbar { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; margin: 0 0 .6rem; font-size: .88rem; }
.sortbar a[aria-current] { color: var(--sapphire); font-weight: 800; text-decoration: none; border-bottom: 3px solid var(--mint); }
.table-wrap { overflow-x: auto; background: var(--glass); border: 1px solid rgba(226, 232, 240, .9); border-radius: 1.1rem; box-shadow: var(--shadow); margin-bottom: .8rem; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .9rem; }
th, td { padding: .55rem .65rem; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--slate-100); }
th { background: var(--slate-100); color: var(--slate-500); text-transform: uppercase; font-size: .7rem; font-weight: 800; letter-spacing: .05em; }
tbody tr:hover td { background: rgba(240, 249, 255, .7); }
.left { text-align: left !important; }
.right { text-align: right !important; }
.squad .sticky { position: sticky; left: 0; text-align: left; background: #fff; font-weight: 700; }
.squad th.sticky { background: var(--slate-100); z-index: 1; }
.standings .left, .ledger .left { white-space: normal; }
tr.me td { background: linear-gradient(90deg, #ccfbf1, #eef6fe) !important; color: #115e59; font-weight: 700; }
tr.me td { border-top: 2px solid #0b78c9; border-bottom: 2px solid #0b78c9; }
tr.me a.teamlink { color: #115e59; }
.rankcell { font-family: var(--display); font-weight: 700; }
.rank-1 { color: var(--amber); }
.namecell { display: flex; align-items: center; gap: .5rem; }
.ledger td, .ledger th { text-align: right; }
.ledger .left { text-align: left; }
.daynav { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .4rem; }
.daynav h2 { margin: 0; }
.results a { color: var(--sapphire); }


/* Spielplan */
.fixtures { list-style: none; margin: 0 0 1rem; padding: 0; }
.fx { display: flex; align-items: center; gap: .8rem; padding: .65rem .9rem; background: var(--glass); border: 1px solid var(--slate-200); border-left: 4px solid var(--slate-300);
  border-radius: .9rem; margin: 0 0 .45rem; }
.fx-next { border-left-color: var(--mint); box-shadow: 0 8px 22px -12px rgba(11,120,201, .5); }
.fx-when { display: flex; flex-direction: column; flex: 0 0 8.5rem; line-height: 1.25; }
.fx-res { text-align: right; min-width: 3.5rem; }
.fx-res a { color: var(--sapphire); }

/* Taktik und Training */
.choices { border: 1px solid var(--slate-200); border-radius: 1.1rem; background: var(--glass); margin: 0 0 1rem; padding: .6rem 1.1rem 1rem; }
.choices legend { font-family: var(--display); font-weight: 700; font-size: 1rem; padding: 0 .4rem; text-transform: uppercase; letter-spacing: .03em; }
.choice { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem 0; border-bottom: 1px solid var(--slate-100); cursor: pointer; }
.choice:last-child { border-bottom: 0; }
.choice input { margin-top: .35rem; accent-color: var(--mint); width: 1.1rem; height: 1.1rem; }
.choice small { display: block; color: var(--slate-500); }
.actionbar { position: sticky; bottom: calc(var(--nav-h) + .5rem); padding: .5rem 0; z-index: 5; }
.actionbar .btn { width: 100%; }
@media (min-width: 760px) { .actionbar { bottom: .5rem; } .actionbar .btn { width: auto; } }

/* Aufstellung */
.line { background: var(--glass); border: 1px solid var(--slate-200); border-left: 5px solid var(--ice); border-radius: 1rem; padding: .8rem 1rem; margin: 0 0 .8rem; box-shadow: var(--shadow); }
.line-goal { border-left-color: var(--crimson); }
.line h2 { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; }
.slot { display: flex; align-items: center; gap: .6rem; margin: .4rem 0; }


/* Spielbericht */




.ticker { list-style: none; margin: 0 0 1rem; padding: 0; border-radius: 1rem; overflow: hidden; border: 1px solid var(--slate-200); }
.ev { display: grid; grid-template-columns: 5.2rem 1fr; gap: .5rem; padding: .5rem .7rem; border-bottom: 1px solid var(--slate-100); background: #fff; }
.ev:last-child { border-bottom: 0; }







/* Transfermarkt */
.filters { display: grid; gap: .2rem; margin-bottom: .8rem; }
.pcard { background: var(--glass); border: 1px solid var(--slate-200); border-left: 5px solid var(--ice); border-radius: 1rem; padding: .75rem 1rem; margin: 0 0 .75rem; box-shadow: var(--shadow); }
.pcard header { display: flex; align-items: center; gap: .6rem; }
.pcard p { margin: .25rem 0; }
.pname { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--sapphire); text-decoration: none; flex: 1; }


.bidform { display: flex; gap: .4rem; align-items: center; margin: 0; flex-wrap: wrap; }
.bidform input[type=number] { min-width: 0; }
.bidform input[type=number] { width: 8.5rem; }
@media (max-width: 480px) { .tabs a { font-size: .68rem; }  .bidform input[type=number] { flex: 1; width: auto; }
  .fx { flex-wrap: wrap; } .fx-when { flex-basis: 100%; flex-direction: row; justify-content: space-between; } }

/* Startseite (Login, Registrierung, Vorschau) */
.landing { display: grid; gap: 1.5rem; padding-top: .5rem; }
@media (min-width: 960px) { .landing { grid-template-columns: 5fr 7fr; align-items: start; gap: 2rem; padding-top: 1.5rem; } }
.auth-card { padding: 1.6rem 1.4rem 1.4rem; border-radius: 1.6rem; }


.auth-card h1 { margin: .7rem 0 .25rem; font-size: 1.65rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; padding: .35rem; background: var(--slate-100); border: 1px solid rgba(226, 232, 240, .8); border-radius: 1rem; margin: 1.1rem 0 1.2rem; }
.auth-tabs button { font: inherit; font-family: var(--display); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; padding: .65rem .4rem;
  border: 1px solid transparent; background: transparent; color: var(--slate-500); border-radius: .8rem; cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; justify-content: center; }
.auth-tabs button.is-active { background: #fff; color: var(--sapphire); border-color: var(--slate-200); box-shadow: 0 2px 6px rgba(15, 23, 42, .06); }
.auth-tabs button .icon { color: var(--mint); }
.auth-tabs button[data-tab="register"] .icon { color: var(--crimson); }
.js .auth-form.hidden { display: none; }
.auth-form { margin: 0; }
.auth-hint { margin: .9rem 0 0; font-size: .8rem; color: var(--slate-500); text-align: center; }
.showcase { padding: 1.1rem; border-radius: 1.6rem; box-shadow: 0 25px 60px -15px rgba(15, 23, 42, .12), 0 0 35px rgba(11,120,201, .12); }
.showcase-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: .7rem; margin-bottom: .9rem; border-bottom: 1px solid var(--slate-200); gap: .5rem; flex-wrap: wrap; }
.showcase-head span:first-child { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.showcase-head .dot { background: var(--mint); animation: none; }
.showcase-head .ver { font-family: var(--mono); font-size: .72rem; color: var(--slate-400); }




.tile { background: rgba(255, 255, 255, .85); border: 1px solid var(--slate-200); border-radius: .9rem; padding: .7rem .4rem; text-align: center; transition: border-color .2s; }
.tile:hover { border-color: var(--mint); }
.tile .icon { color: var(--mint); margin-bottom: .2rem; }
.tile:nth-child(2) .icon { color: var(--ice); }
.tile:nth-child(3) .icon { color: var(--crimson); }
.tile b { display: block; font-size: .72rem; }
.tile span { font-size: .65rem; color: var(--slate-500); }
.stats3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .6rem; }
.stat { min-width: 0; } .stat b { overflow-wrap: anywhere; }
.stat { background: #fff; border: 1px solid var(--slate-200); border-radius: .9rem; padding: .7rem .8rem; }
.stat b { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1.1; color: var(--sapphire); }
.stat span { font-size: .72rem; color: var(--slate-500); }



/* Liga-Dialog */
dialog.modal { border: 1px solid var(--slate-200); border-radius: 1.6rem; padding: 0; max-width: 40rem; width: calc(100% - 2rem); box-shadow: 0 30px 80px rgba(15, 23, 42, .3); color: var(--sapphire); }
dialog.modal::backdrop { background: rgba(15, 23, 42, .6); backdrop-filter: blur(6px); }
.modal-in { padding: 1.3rem 1.4rem; }
.modal-head { display: flex; align-items: center; gap: .8rem; padding-bottom: .9rem; border-bottom: 1px solid var(--slate-200); margin-bottom: .8rem; }

.modal-head h3 { margin: 0; font-size: 1.05rem; text-transform: uppercase; }
.modal-head p { margin: 0; font-size: .8rem; color: var(--slate-500); }
.modal-foot { text-align: right; padding-top: .8rem; margin-top: .4rem; border-top: 1px solid var(--slate-100); }

/* Fußzeile mit Ergebnis-Ticker */
.foot { background: rgba(255, 255, 255, .9); border-top: 1px solid var(--slate-200); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); margin-top: auto; }
.foot-in { max-width: 70rem; margin: 0 auto; padding: .8rem 1rem; display: flex; flex-direction: column; gap: .6rem; font-size: .78rem; }
@media (min-width: 900px) { .foot-in { flex-direction: row; align-items: center; justify-content: space-between; } }







.copy { color: var(--slate-400); font-size: .72rem; flex: none; }

/* Admin */
.admin-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .admin-grid { grid-template-columns: 1fr 1fr; } }
.filterbar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; align-items: end; }
.filterbar > * { flex: 1 1 9rem; }
.filterbar .btn { flex: 0 0 auto; }
.edit-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.logo-big { width: 8rem; height: 8rem; display: grid; place-items: center; background: repeating-conic-gradient(#f1f5f9 0% 25%, #fff 0% 50%) 50% / 16px 16px; border: 1px solid var(--slate-200); border-radius: 1rem; }
.logo-row { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.check { display: flex !important; align-items: center; gap: .5rem; text-transform: none !important; letter-spacing: 0 !important; font-size: .9rem !important; font-weight: 600 !important; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--mint); }
.diag { list-style: none; margin: 0; padding: 0; }
.diag li { display: flex; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--slate-100); align-items: flex-start; }
.diag .st { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--mint); }
.diag .bad .st { background: var(--crimson); }
.diag .msg { font-size: .85rem; color: var(--slate-500); word-break: break-word; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } #snow { display: none; } }

/* Auf- und Abstieg in der Tabelle */

tr.row-down td { background: linear-gradient(90deg, #fecdd3, #ffe4e6) !important; color: #881337; font-weight: 700; border-top: 1px solid #e11d48; border-bottom: 1px solid #e11d48; }
tr.row-down td:first-child { box-shadow: inset 6px 0 0 var(--crimson); }
tr.row-down a.teamlink { color: #881337; }
.tag-down { background: #ffe4e6; color: #9f1239; border-color: #fda4af; }
.legend { display: inline-block; margin: 0 .6rem 0 .2rem; padding-left: .6rem; font-weight: 700; }

.legend-down { border-left: 4px solid var(--crimson); }

/* Flaggen */
.flag { display: inline-block; vertical-align: -.2em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .18); flex: none; }
.pname .flag { vertical-align: -.1em; margin-right: .15rem; }

/* Arena: Steh- und Sitzplätze */
.meter.cap { display: flex; height: .8rem; }
.meter.cap i { height: 100%; border-radius: 0; background: var(--mint); }
.meter.cap i.b { background: var(--ice); }
.key { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; vertical-align: -.1em; background: var(--mint); margin-left: .3rem; }
.key-b { background: var(--ice); }

/* Trikotnummern */
.num { display: inline-block; min-width: 2.1rem; font-family: var(--mono); font-size: .78rem; color: var(--slate-500); text-align: right; }

/* Vereinsprofil */
.club-form { max-width: 30rem; }
.club-form .hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--slate-500); font-size: .78rem; }
.colorpick { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.colorpick legend { grid-column: 1 / -1; padding: 0; margin-bottom: .3rem; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-700); }

.club-head { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
a.teamlink { color: inherit; text-decoration: none; font-weight: 700; }
a.teamlink:hover { text-decoration: underline; }

/* Playoffs */
.legend-po { border-left: 4px solid #3b82f6; }
tr.row-po td:first-child { box-shadow: inset 4px 0 0 #3b82f6; }
.po { display: grid; gap: 1rem; }
@media (min-width: 900px) { .po { grid-template-columns: repeat(3, 1fr); align-items: start; } }










/* Stadionausbau */
.facility-grid { display: grid; gap: .8rem; }
@media (min-width: 760px) { .facility-grid { grid-template-columns: 1fr 1fr; } }
.facility { border: 1px solid var(--slate-200); border-radius: .8rem; padding: .7rem .9rem; background: rgba(255,255,255,.6); }
.facility h3 { margin: 0; font-size: .95rem; }

/* Sponsoren */
.offer-grid { display: grid; gap: .7rem; }
@media (min-width: 760px) { .offer-grid { grid-template-columns: repeat(3, 1fr); } }
.offer { display: flex; flex-direction: column; gap: .25rem; border: 1px solid var(--slate-200); border-radius: .8rem; padding: .7rem .9rem; background: rgba(255,255,255,.6); }
.offer-amt { font-size: 1.15rem; font-weight: 800; }
.offer .btn { margin-top: .4rem; align-self: flex-start; }

/* Admin: Reiter im Team-Editor */
.subtabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: .3rem; background: rgba(255, 255, 255, .7); border: 1px solid var(--slate-200); border-radius: 1rem; }
.subtabs a { padding: .45rem .95rem; border-radius: .7rem; text-decoration: none; color: var(--slate-500); font-weight: 700; font-size: .85rem; font-family: var(--display); }
.subtabs a:hover { color: var(--mint); }
.subtabs a[aria-current="page"] { background: var(--sapphire); color: #fff; }
td.actions { white-space: nowrap; }
td.actions .inline-form { display: inline-block; margin: 0 .2rem 0 0; }
.admin-links { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.admin-links a { display: block; padding: .8rem 1rem; border: 1px solid var(--slate-200); border-radius: .9rem; background: rgba(255, 255, 255, .85); text-decoration: none; color: var(--sapphire); font-weight: 800; }
.admin-links a span { display: block; font-weight: 400; font-size: .8rem; color: var(--slate-500); margin-top: .15rem; }
.admin-links a:hover { border-color: var(--mint); }

/* Bauaufträge */
.builds { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .9rem; }
.builds li { padding: .8rem 1rem; border: 1px solid var(--slate-200); border-radius: .9rem; background: rgba(255, 255, 255, .7); }
.build-head, .build-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem .8rem; }
.build-head { margin-bottom: .5rem; }
.build-foot { margin-top: .5rem; }
.build-foot form { margin: 0; }

/* Hauptrundensieger und Zuschauer in Ergebnislisten */
tr.row-champ td { background: linear-gradient(90deg, #fde68a, #fef3c7) !important; color: #78350f; font-weight: 700; border-top: 1px solid #f59e0b; border-bottom: 1px solid #f59e0b; }
tr.row-champ td:first-child { box-shadow: inset 6px 0 0 #d97706; }
tr.row-champ a.teamlink { color: #78350f; }
.tag-champ { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.legend-champ { border-left: 4px solid #d97706; }
.results .att { margin-right: .7rem; white-space: nowrap; }
@media (max-width: 560px) { .results .att { display: none; } }

/* Dashboard: Kopf mit Vereinslogo */
.club-head { display: flex; align-items: center; gap: 1rem; margin: .2rem 0 1rem; }
.club-head .badge { border-radius: 1.1rem; flex: none; }

/* Aufstellung als Karten */
.slots { display: grid; gap: .6rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slots-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slot-card { display: grid; gap: .3rem; padding: .6rem .7rem; border: 1px solid var(--slate-200); border-radius: .8rem; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.slot-card.is-hurt { border-color: #fca5a5; background: #fff1f2; }
.slot-top { display: flex; justify-content: space-between; align-items: center; }
.slot-ovr { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1; }
.slot-name { font-weight: 700; font-size: .9rem; min-height: 1.2em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-bar { height: 5px; border-radius: 3px; background: var(--slate-200); overflow: hidden; }
.slot-bar i { display: block; height: 100%; background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.slot-card select { width: 100%; font-size: .8rem; }
@media (max-width: 560px) { .slots { grid-template-columns: 1fr; } .slots-2 { grid-template-columns: 1fr 1fr; } }

/* Starting 6 im Dashboard: halbe Eisfläche, umgedrehte Pyramide (Sturm oben, Verteidiger, Torhüter unten) */
.six { position: relative; width: 100%; aspect-ratio: 800 / 340; }
.six-rink { position: absolute; inset: 0; width: 100%; height: 100%; }
.six-card { position: absolute; width: 24%; min-width: 0; transform: translate(-50%, -50%); display: grid; gap: .1rem; justify-items: center; text-align: center; padding: .4rem .25rem; border: 1px solid var(--slate-300); border-radius: .7rem; background: rgba(255,255,255,.93); box-shadow: 0 4px 12px rgba(15,23,42,.12); }
.six-s-F1_LW { left: 16%; top: 21%; }
.six-s-F1_C  { left: 50%; top: 17%; }
.six-s-F1_RW { left: 84%; top: 21%; }
.six-s-D1_LD { left: 32%; top: 53%; }
.six-s-D1_RD { left: 68%; top: 53%; }
.six-s-G_1   { left: 50%; top: 85%; }
@media (max-width: 520px) { .six { aspect-ratio: 400 / 340; } .six-card { width: 29%; padding: .2rem .1rem; border-radius: .5rem; gap: 0; } .six-name { font-size: .7rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .six-ovr { font-size: 1.05rem; } .six-meta { display: none; } .six .pos { min-width: 1.6rem; font-size: .62rem; padding: 0 .2rem; } .six-s-F1_LW { left: 16%; } .six-s-F1_RW { left: 84%; } .six-s-D1_LD { left: 28%; } .six-s-D1_RD { left: 72%; } }
.six-card.is-hurt { border-color: #fca5a5; background: #fff1f2; }
.six-name { font-weight: 700; font-size: .88rem; }
.six-meta { font-size: .72rem; }
.six-ovr { font-family: var(--display); font-size: 1.5rem; line-height: 1; }

/* Popups und Postfach */
.mailcount { display: inline-block; min-width: 1.2rem; padding: 0 .35rem; border-radius: 999px; background: #dc2626; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.3rem; text-align: center; }
.popups { position: fixed; right: 1rem; top: 4.5rem; z-index: 80; display: grid; gap: .5rem; width: min(24rem, calc(100vw - 2rem)); transition: opacity .5s; }
.popup { position: relative; display: grid; gap: .2rem; padding: .8rem 2rem .8rem .9rem; border-radius: .8rem; background: #fff; border: 1px solid var(--slate-200); border-left: 5px solid #0ea5e9; box-shadow: 0 10px 30px rgba(15,23,42,.18); animation: popin .35s ease-out; }
.popup-hurt { border-left-color: #dc2626; }
.popup-deal { border-left-color: #16a34a; }
.popup-mail { border-left-color: #d97706; }
.popup b { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.popup span { font-size: .92rem; }
.popup a { font-size: .85rem; font-weight: 600; }
.popup-x { position: absolute; right: .4rem; top: .2rem; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: #64748b; }
@keyframes popin { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.tag-derby { background: #fee2e2; color: #991b1b; }
.mail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.mail-list li { display: flex; gap: .7rem; align-items: center; padding: .6rem .8rem; border: 1px solid var(--slate-200); border-radius: .7rem; background: #fff; }
.mail-list li.unread { border-left: 4px solid #d97706; font-weight: 700; }
.mail-body { white-space: pre-wrap; padding: .8rem; border-radius: .7rem; background: #f8fafc; }
.mailink { font-size: .75rem; font-weight: 700; text-decoration: none; color: var(--ink, #0f172a); border: 1px solid var(--slate-200); background: #fff; padding: .45rem .8rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.mailink.is-on { background: #0f172a; color: #fff; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.2rem; }
@media (max-width: 600px) { .cols2 { grid-template-columns: 1fr; } }

/* Personal */
.pers-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin: 0 0 1rem; }
.pers-sum .stat { background: var(--glass); border: 1px solid var(--slate-200); border-radius: 1rem; padding: .7rem .9rem; }
.pers-sum b { display: block; font-family: var(--display); font-size: 1.35rem; }
.pers-sum span { color: var(--slate-500); font-size: .8rem; }
.pers-tabs { display: flex; gap: .4rem; margin: 0 0 1rem; flex-wrap: wrap; }
.pers-tabs a { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--slate-200); background: var(--glass); font-weight: 600; font-size: .92rem; color: var(--slate-700); text-decoration: none; }
.pers-tabs a.on { background: var(--sapphire); color: #fff; border-color: var(--sapphire); }
.pers-tabs small { opacity: .7; margin-left: .3rem; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.pgrid .pcard { margin: 0; background: var(--glass); border: 1px solid var(--slate-200); border-radius: 1.1rem; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; box-shadow: var(--shadow); }
.pgrid .pcard.empty { border-style: dashed; background: rgba(255,255,255,.55); }
.phead { display: flex; gap: .8rem; align-items: center; }
.pico { width: 2.6rem; height: 2.6rem; border-radius: .8rem; background: var(--sapphire-100); color: var(--ice); display: grid; place-items: center; flex: none; }
.pcard.empty .pico { background: var(--slate-100); color: var(--slate-400); }
.phead h3 { margin: 0; font-size: 1.05rem; }
.phead small { color: var(--slate-500); display: block; }
.pgrid .pname { font-weight: 600; }
.pips { display: flex; gap: .3rem; }
.pips i { flex: 1; height: .5rem; border-radius: 99px; background: var(--slate-200); }
.pips i.on { background: linear-gradient(90deg, var(--mint-400), var(--mint)); }
.plvl { display: flex; justify-content: space-between; font-size: .82rem; color: var(--slate-500); }
.peff { background: var(--mint-50); border: 1px solid #99f6e4; color: #0f766e; border-radius: .7rem; padding: .45rem .7rem; font-size: .88rem; font-weight: 600; }
.pact { display: flex; gap: .5rem; justify-content: space-between; align-items: center; border-top: 1px solid var(--slate-100); padding-top: .6rem; }
.pact .cost { font-size: .82rem; color: var(--slate-500); }
.pchange summary { list-style: none; cursor: pointer; display: inline-block; }
.pchange summary::-webkit-details-marker { display: none; }
.pchoices { margin-top: .6rem; }
.hint { margin-top: 1rem; }
.medstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 1.2rem 0 0; }
.inj { display: flex; justify-content: space-between; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--slate-100); font-size: .92rem; }
.inj:last-child { border: 0; }
.pchoices .actionbar { position: static; margin: .6rem 0 0; padding: 0; background: none; border: 0; box-shadow: none; display: block; }
/* Letztes und nächstes Spiel auf der Übersicht */
.gameday { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1.2rem; align-items: start; }
.gd-card { background: var(--glass); border: 1px solid var(--slate-200); border-radius: 1.1rem; padding: 1rem 1.2rem; box-shadow: var(--shadow); }


.gd-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500); font-weight: 700; }










@media (max-width: 700px) { .gameday { grid-template-columns: 1fr; }   }

/* Eigenes Team auf Platz 1 oder auf dem Abstiegsplatz: Gold bzw. Rot bleibt, dazu ein türkiser Balken außen */
tr.me.row-champ td:first-child { box-shadow: inset 6px 0 0 #d97706; }
tr.me.row-down td:first-child { box-shadow: inset 6px 0 0 var(--crimson); }
tr.me.row-champ td { color: #78350f; }
tr.me.row-down td { color: #881337; }
tr.me.row-champ a.teamlink { color: #78350f; }
tr.me.row-down a.teamlink { color: #881337; }
tr.me.row-po td:first-child { box-shadow: inset 4px 0 0 #3b82f6; }

/* Das steht an */
.todo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: 0 0 1rem; }
.todo-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--slate-500); margin-right: .2rem; }
.todo { padding: .3rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 600; text-decoration: none; border: 1px solid var(--slate-200); background: #fff; color: var(--slate-700); }
.todo:hover { border-color: var(--mint); }
.todo-bad { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.todo-warn { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.todo-info { background: #e0f2fe; border-color: #7dd3fc; color: #075985; }
.chipbar { display: flex; flex-wrap: wrap; gap: .3rem .5rem; margin: 0 0 .8rem; align-items: center; }
.chipbar a { padding: .25rem .75rem; border-radius: 999px; text-decoration: none; font-size: .82rem; font-weight: 600; color: var(--slate-700); border: 1px solid var(--slate-200); background: #fff; }
.chipbar a[aria-current="true"] { background: var(--mint); border-color: var(--mint); color: #fff; }

/* Spielbericht: Scoreboard */
.sb2 { background: #fff; border: 1px solid var(--slate-200); border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow); margin-bottom: .6rem; }
.sb2-head { display: flex; justify-content: space-between; gap: .6rem; padding: .6rem 1rem; background: var(--slate-50, #f8fafc); border-bottom: 1px solid var(--slate-200); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--slate-700); }
.sb2-main { display: grid; grid-template-columns: minmax(5rem, 1fr) auto minmax(5rem, 1fr); align-items: stretch; min-height: 7rem; }
.sb2-side { display: flex; align-items: center; justify-content: center; background: var(--c); clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); padding-right: 1rem; }
.sb2-right { clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); padding: 0 0 0 1rem; }
.sb2-mid { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .8rem 1rem; font-family: var(--display); }
.sb2-name { font-weight: 700; font-size: 1rem; text-align: center; flex: 1 1 0; min-width: 0; }
.sb2-name:first-child { text-align: right; }
.sb2-name:last-child { text-align: left; }
.sb2-score { font-size: 2.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb2-score i { font-style: normal; margin: 0 .35rem; color: var(--slate-500); }
.sb2-final { text-align: center; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-500); margin-top: -.4rem; padding-bottom: .4rem; }
.sb2-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--slate-200); font-size: .9rem; }
.sb2-table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--slate-700); background: var(--slate-50, #f8fafc); padding: .55rem .8rem; border-bottom: 1px solid var(--slate-200); text-align: center; width: 3.2rem; }
.sb2-table th.left, .sb2-table td.left { text-align: left; width: auto; }
.sb2-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--slate-100); text-align: center; font-variant-numeric: tabular-nums; }
.sb2-table td.left { font-weight: 700; font-family: var(--display); }
.sb2-table tr:last-child td { border-bottom: 0; }
.sb2-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; padding: .6rem 1rem; border-top: 1px solid var(--slate-200); background: var(--slate-50, #f8fafc); font-size: .82rem; color: var(--slate-700); }
.sb2-officials{background:var(--slate-50,#f8fafc);border-top:0;padding-top:.1rem;font-size:.78rem;flex-direction:column;align-items:center}
.sb2-officials div{text-align:center}
.sb2-officials .flag,.sb2-officials svg{vertical-align:-3px}
.sb2-foot span { display: inline-flex; align-items: center; gap: .35rem; }
@media (max-width: 560px) {
  .sb2-mid { flex-direction: column; gap: .3rem; padding: .6rem .4rem; }
  .sb2-name, .sb2-name:first-child, .sb2-name:last-child { text-align: center; font-size: .85rem; }
  .sb2-score { order: -1; font-size: 2.1rem; }
  .sb2-main { grid-template-columns: 4.2rem 1fr 4.2rem; }
  .sb2-side { padding-right: .4rem; }
  .sb2-right { padding-left: .4rem; }
}

/* Spielbericht: Statistik-Vergleich */
.st2-teams { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem .2rem; font-family: var(--display); font-size: .9rem; }
.st2-teams b { border-bottom: 3px solid var(--c); padding-bottom: .15rem; }
.st2-row { display: grid; grid-template-columns: 5.5rem 1fr 5.5rem; align-items: center; gap: .1rem .6rem; padding: .55rem 1rem .25rem; }
.st2-v { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1rem; color: var(--slate-700); }
.st2-r { text-align: right; }
.st2-win { color: #0f172a; font-size: 1.05rem; }
.st2-l { text-align: center; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--slate-500); }
.st2-bar { grid-column: 1 / -1; display: flex; height: .4rem; gap: 3px; border-radius: 999px; overflow: hidden; }
.st2-bar i { display: block; height: 100%; border-radius: 999px; min-width: 3px; }
.st2-sub { padding-top: .2rem; }
.st2-sub .st2-v { font-size: .88rem; font-weight: 600; }
.st2-sub .st2-l { font-size: .7rem; font-weight: 600; }
.st2-sub .st2-bar { height: .25rem; opacity: .75; }
.st2 { padding-bottom: .6rem; }
@media (max-width: 560px) { .st2-row { grid-template-columns: 4.2rem 1fr 4.2rem; padding-left: .7rem; padding-right: .7rem; } .st2-l { font-size: .68rem; } }

/* Spielverlauf: Zeitleiste */
.tl { background: #fff; border: 1px solid var(--slate-200); border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow); }
.tl-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: .8rem 1rem .4rem; font-family: var(--display); font-size: .9rem; }
.tl-teams b { border-bottom: 3px solid var(--c); padding-bottom: .15rem; width: fit-content; }
.tl-teams b:last-child { justify-self: end; }
.tl-band { background: var(--arctic-200, #e0f2fe); font-family: var(--display); font-weight: 700; font-size: .85rem; text-align: center; padding: .5rem 1rem; margin-top: .3rem; }
.tl-row { display: grid; grid-template-columns: 1fr 5.4rem 1fr; align-items: stretch; min-height: 2.2rem; }
.tl-t { position: relative; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .8rem; color: var(--slate-500); }
.tl-t::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--slate-200); }
.tl-t span { position: relative; background: #fff; padding: .1rem .3rem; border-radius: .5rem; }
.tl-l, .tl-r { display: flex; flex-direction: column; justify-content: center; padding: .35rem .8rem; min-width: 0; }
.tl-l { align-items: flex-end; text-align: right; }
.tl-r { align-items: flex-start; text-align: left; }
.tl-main { font-weight: 700; font-size: .95rem; }
.tl-sub { font-size: .8rem; color: var(--slate-500); }
.tl-score { font-variant-numeric: tabular-nums; margin-left: .3rem; }
.tl-goal.tl-h .tl-l, .tl-goal.tl-h .tl-t span { }
.tl-goal.tl-h .tl-l { background: linear-gradient(270deg, color-mix(in srgb, var(--hc) 16%, transparent), transparent 85%); border-right: 4px solid var(--hc); }
.tl-goal.tl-a .tl-r { background: linear-gradient(90deg, color-mix(in srgb, var(--ac) 16%, transparent), transparent 85%); border-left: 4px solid var(--ac); }
.tl-goal .tl-t span { background: #0f172a; color: #fff; font-weight: 700; }
.tl-chip { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: .08rem .45rem; border-radius: 999px; vertical-align: middle; }
.tl-pen { background: #fef3c7; color: #92400e; }
.tl-pp { background: #dcfce7; color: #166534; }
.tl-vid-ok { background: #e0e7ff; color: #3730a3; }
.tl-vid-no { background: #fee2e2; color: #991b1b; }
.tl-ghost { opacity: .45; filter: grayscale(1); }
.tl-ghost .tl-main { text-decoration: line-through; }
.tl-ghost .tl-chip { text-decoration: none; display: inline-block; }
.tl-penalty .tl-main { font-weight: 600; }
.tl-chance, .tl-shootout { opacity: .8; }
.tl-chance .tl-sub { font-size: .76rem; }
@media (max-width: 560px) { .tl-row { grid-template-columns: 1fr 4.6rem 1fr; } .tl-l, .tl-r { padding: .35rem .5rem; } .tl-main { font-size: .85rem; } }

.tl-ad { text-align: center; font-size: .78rem; color: var(--slate-500); padding: .5rem 1rem 0; }
.tl-ad b { color: var(--slate-700); }

/* Spielkarten */
.gc-list { display: grid; gap: .7rem; margin: 0 0 1rem; }
.gc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: .7rem; }
.gc { background: #fff; border: 1px solid var(--slate-200); border-radius: .9rem; overflow: hidden; border-left: 5px solid var(--slate-300); }
.gc-win { border-left-color: #16a34a; }
.gc-loss { border-left-color: #dc2626; }
.gc-next { border-left-color: #0b78c9; box-shadow: 0 8px 22px -12px rgba(11,120,201, .5); }
.gc-me { background: linear-gradient(90deg, #eef6fe, #fff 70%); }
.gc-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .4rem .8rem; background: var(--slate-50, #f8fafc); border-bottom: 1px solid var(--slate-100); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--slate-700); }
.gc-chip { margin-left: .5rem; padding: .08rem .5rem; border-radius: 999px; font-size: .66rem; }
.gc-chip-win { background: #dcfce7; color: #166534; }
.gc-chip-loss { background: #fee2e2; color: #991b1b; }
.gc-chip-next { background: #ccfbf1; color: #0f766e; }
.gc-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; padding: .7rem .8rem; }
.gc-team { display: flex; align-items: center; gap: .55rem; min-width: 0; font-family: var(--display); font-weight: 600; font-size: .92rem; }

.gc-name { min-width: 0; overflow-wrap: anywhere; }
.gc-own { font-weight: 800; color: #0f766e; }
.gc-score { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; text-align: center; min-width: 4.2rem; white-space: nowrap; font-variant-numeric: tabular-nums; text-decoration: none; color: #0f172a; }
.gc-score i { font-style: normal; margin: 0 .2rem; color: var(--slate-500); }
.gc-score small { display: block; font-size: .65rem; font-weight: 700; color: var(--slate-500); margin-top: .15rem; letter-spacing: .05em; }
.gc-open { font-size: 1rem; color: var(--slate-400); font-weight: 700; }
.gc-foot { padding: .35rem .8rem; border-top: 1px solid var(--slate-100); font-size: .76rem; color: var(--slate-500); }
@media (max-width: 560px) { .gc-grid { grid-template-columns: 1fr; } .gc-team { font-size: .82rem; gap: .35rem; } .gc-body { gap: .3rem; padding: .6rem .5rem; } .gc-score { min-width: 3.4rem; font-size: 1.3rem; } }
.form-dots { display: inline-flex; gap: .25rem; vertical-align: middle; }
.fd { display: inline-flex; align-items: center; justify-content: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; font-size: .66rem; font-weight: 800; color: #fff; text-decoration: none; }
.fd-w { background: #16a34a; }
.fd-l { background: #dc2626; }

/* Vereinskopf */
.club-hero { border-radius: 1.1rem; overflow: hidden; margin-bottom: 1rem; color: #fff; box-shadow: var(--shadow);
  background: linear-gradient(115deg, var(--c1) 0%, var(--c1) 52%, var(--c2) 100%); position: relative; }
.club-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.38)); }
.club-hero > * { position: relative; }
.ch-top { display: flex; align-items: center; gap: 1.2rem; padding: 1.3rem 1.3rem .6rem; }
.ch-logo { flex: 0 0 auto; background: rgba(255,255,255,.92); border-radius: 1rem; padding: .5rem; display: flex; }
.ch-title h1 { margin: 0; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.ch-title p { margin: .25rem 0 0; opacity: .92; }
.ch-abbr { font-size: .7rem; vertical-align: middle; background: rgba(255,255,255,.25); border-radius: 999px; padding: .1rem .55rem; }
.ch-info { display: flex; flex-wrap: wrap; gap: .4rem; padding: .3rem 1.3rem; }
.ch-chip { background: rgba(255,255,255,.2); backdrop-filter: blur(3px); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: .2rem .75rem; font-size: .8rem; }
.ch-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; padding: .7rem 1.3rem 1.1rem; }
.ch-form { display: inline-flex; align-items: center; gap: .5rem; }
.ch-form .fd { box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.ch-actions .btn { background: rgba(255,255,255,.92); }
.derby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .5rem; }
.derby-card { display: flex; flex-direction: column; gap: .1rem; padding: .55rem .8rem; border: 1px solid var(--slate-200); border-left: 4px solid #f97316; border-radius: .7rem; background: #fff; text-decoration: none; color: inherit; }
.derby-card:hover { border-color: #f97316; }
@media (max-width: 560px) { .ch-top { flex-direction: column; text-align: center; } .ch-info, .ch-foot { justify-content: center; } }

/* Spielerkopf */
.player-hero { border-radius: 1.1rem; margin-bottom: 1rem; color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden;
  background: linear-gradient(115deg, var(--c1) 0%, var(--c1) 55%, var(--c2) 100%); }
.player-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.4)); }
.ph-main { position: relative; display: flex; align-items: center; gap: 1.1rem; padding: 1.2rem 1.3rem; flex-wrap: wrap; }
.ph-jersey { font-family: var(--display); font-size: 3.2rem; font-weight: 800; line-height: 1; opacity: .85; min-width: 4.5rem; text-align: center; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.ph-title { flex: 1 1 14rem; min-width: 0; }
.ph-title h1 { margin: 0; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.ph-title p { margin: .3rem 0 0; opacity: .95; }
.ph-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.ph-chip { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: .15rem .7rem; font-size: .76rem; }
.ph-bad { background: #dc2626; border-color: #fca5a5; }
.ph-ovr { text-align: center; background: rgba(255,255,255,.95); color: #0f172a; border-radius: 1rem; padding: .6rem 1rem; min-width: 7.5rem; }
.ph-ovr b { display: block; font-family: var(--display); font-size: 2.8rem; line-height: 1; color: var(--c1); }
.ph-ovr span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500); }
.ph-ovr small { display: block; margin-top: .25rem; font-size: .72rem; color: var(--slate-700); }
.meter-avg { position: relative; overflow: visible; }
.meter-avg u { position: absolute; top: -.2rem; bottom: -.2rem; width: 3px; margin-left: -1px; background: #0f172a; border-radius: 2px; text-decoration: none; opacity: .65; }
.devchart { display: flex; align-items: flex-end; gap: .7rem; padding-top: .5rem; }
.dc-col { flex: 1 1 0; max-width: 4.5rem; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .2rem; position: relative; }
.dc-col b { font-size: .8rem; font-variant-numeric: tabular-nums; }
.dc-col i { display: block; width: 100%; background: linear-gradient(180deg, #38bdf8, #0284c7); border-radius: .4rem .4rem 0 0; }
.dc-now i { background: linear-gradient(180deg, #5bb5f0, #0b78c9); }
.dc-col span { font-size: .7rem; font-weight: 700; color: var(--slate-700); text-align: center; line-height: 1.1; }
.dc-col small { display: block; font-weight: 500; color: var(--slate-500); }

@media (max-width: 640px) { .hide-sm { display: none; } }
.standings .form-dots .fd { width: 1.15rem; height: 1.15rem; font-size: .58rem; }

.gc-head-r { justify-content: flex-end; }
.gc-head-r > span:first-child:empty { display: none; }

/* Spielkarten: lange Namen nicht mitten im Wort trennen */
.gc-name { overflow-wrap: break-word; word-break: normal; hyphens: auto; line-height: 1.2; }
.gc-grid { grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr)); }
.gc-team { font-size: .88rem; }
.gc-own { overflow-wrap: break-word; }
@media (max-width: 700px) { .gameday { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .gc-grid { grid-template-columns: 1fr; } }

/* Spielkarten: Namen nie mitten im Wort trennen, bei schmalen Karten Wappen über den Namen */
.gc { container-type: inline-size; }
.gc-name, .gc-own { hyphens: none; overflow-wrap: normal; word-break: normal; }
.gc-body { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
@container (max-width: 32rem) {
  .gc-team { flex-direction: column; text-align: center; gap: .25rem; font-size: .85rem; justify-content: flex-start; }
  .gc-a { flex-direction: column-reverse; }
  .gc-body { align-items: start; }
  .gc-score { align-self: center; }
}

.stars { color: #1b8be0; letter-spacing: .05em; white-space: nowrap; }
.stars i { font-style: normal; color: var(--slate-300); }





/* AL und ONL (Förderlizenz) farblich getrennt */
.tag-al { background: #ffedd5; border-color: #fdba74; color: #9a3412; }
.tag-onl, .tag-u21 { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
.tag-fl { background: #ccfbf1; border-color: #5eead4; color: #0f766e; }
/* Form: eckig mit runden Ecken, in der Tabelle erst beim Überfahren des Teamnamens */
.fd { border-radius: .35rem; }
.tn-form { display: none; margin-left: .6rem; vertical-align: middle; }
.namecell:hover .tn-form, .namecell:focus-within .tn-form { display: inline-flex; }
.tn-form .fd { width: 1.2rem; height: 1.2rem; font-size: .6rem; }

.tag-al { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.stars-big .stars { font-size: 1.05rem; }
.pcard strong .stars{ font-size: .8rem; margin-left: .3rem; }

/* Kennzahlen-Kacheln der Übersicht */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .8rem; margin: 0 0 1rem; }
.kpi { display: flex; flex-direction: column; gap: .15rem; padding: .8rem 1rem; background: #fff; border: 1px solid var(--slate-200); border-left: 4px solid var(--ice, #0284c7); border-radius: .9rem; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.kpi:hover { transform: translateY(-2px); border-color: var(--mint); }
.kpi-l { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500); }
.kpi b { font-family: var(--display); font-size: 1.55rem; font-weight: 800; line-height: 1.15; }
.kpi b span { font-size: .8rem; font-weight: 500; color: var(--slate-500); }
.kpi small { color: var(--slate-500); font-size: .78rem; }
.kpi-strong { border-left-color: #0b78c9; background: linear-gradient(90deg, #eef6fe, #fff 70%); }

/* Aufstellung im Eisflächen-Stil */
.lineup-cols { display: grid; grid-template-columns: 1fr; gap: 0 1rem; align-items: start; }
@media (min-width: 62rem) { .lineup-cols { grid-template-columns: 1.5fr 1fr; } .slots-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.line { position: relative; overflow: hidden; background:
    radial-gradient(circle at 50% 50%, transparent 0 2.2rem, rgba(2,132,199,.07) 2.25rem 2.4rem, transparent 2.45rem),
    linear-gradient(180deg, #f4fbff, #e6f4fb); border: 1px solid #bfe3f5; border-left: 5px solid var(--ice); }
.line::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(225, 29, 72, .14); pointer-events: none; }
.line > * { position: relative; z-index: 1; }
.line-goal { background: linear-gradient(180deg, #fff5f6, #fde8ec); border-color: #fbcfd8; }
.line-goal::after { display: none; }
.slot-card { border-radius: .9rem; box-shadow: 0 6px 14px -8px rgba(15,23,42,.35); }
.slot-ovr.ovr-top { color: #15803d; }
.slot-ovr.ovr-good { color: #0369a1; }
.slot-ovr.ovr-mid { color: #b45309; }
.slot-ovr.ovr-low { color: #b91c1c; }

/* Kader als Karten */
.kcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.kcard { background: #fff; border: 1px solid var(--slate-200); border-radius: 1rem; padding: .8rem .9rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .55rem; }
.kcard-hurt { border-color: #fecaca; background: linear-gradient(180deg, #fff, #fff5f5); }
.kcard header { display: flex; align-items: center; gap: .6rem; }
.pc-name { flex: 1; min-width: 0; font-weight: 700; display: flex; flex-direction: column; }
.pc-name a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-name small { font-weight: 500; color: var(--slate-500); font-size: .78rem; }
.pc-ovr { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1; text-align: right; }
.pc-ovr small { display: block; font-size: .7rem; font-weight: 600; }
.pc-ovr.ovr-top { color: #15803d; } .pc-ovr.ovr-good { color: #0369a1; } .pc-ovr.ovr-mid { color: #b45309; } .pc-ovr.ovr-low { color: #b91c1c; }
.pc-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.pc-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .8rem; }
.pc-attrs div { display: grid; grid-template-columns: 3.6rem 1fr 1.5rem; align-items: center; gap: .3rem; font-size: .74rem; color: var(--slate-500); }
.pc-attrs i { height: .35rem; background: var(--slate-200); border-radius: 9px; overflow: hidden; }
.pc-attrs u { display: block; height: 100%; background: var(--ice, #0284c7); }
.pc-attrs b { color: var(--slate-900, #0f172a); text-align: right; }
.kcard footer { display: flex; justify-content: space-between; gap: .5rem; font-size: .78rem; color: var(--slate-500); border-top: 1px solid var(--slate-200); padding-top: .45rem; }

.kcard-lead { border-color: #86efac; box-shadow: 0 0 0 2px rgba(34,197,94,.18), var(--shadow); }
.kcards-market { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.kc-bid { flex-direction: column; gap: .1rem !important; }
.kc-price { display: flex; justify-content: space-between; align-items: flex-end; gap: .6rem; flex-wrap: wrap; }
.kc-price b { display: block; font-family: var(--display); font-size: 1.15rem; }
.kc-price .bidform input[type=number] { width: 7rem; }

/* Kopfzeile am Handy: nichts darf die Seite verbreitern */
html, body { overflow-x: clip; }
@media (max-width: 36rem) {
  .top-in { gap: .5rem; padding: .45rem .7rem; }
  
  .brand-name { font-size: 1.2rem; }
  .top-in { flex-wrap: wrap; }
  .top-right { gap: .35rem; min-width: 0; flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-end; }
  .who-text strong { display: none; }
  .who { margin-right: auto; }
  .who-text span { color: var(--slate-700, #334155); font-weight: 700; font-size: .85rem; }
  .mailink, .adminlink, .logout .btn { padding: .35rem .55rem; font-size: .66rem; }
}
@media (max-width: 36rem) {
  .who { flex: none; }
  .brand { min-width: 0; flex: 0 1 auto; }
   .who > :last-child { width: 28px; height: 28px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .kpi { padding: .6rem .7rem; }
  .kpi b { font-size: 1.2rem; }
  .kpi small { font-size: .7rem; }
}

/* Startseite */
.land-right { display: grid; gap: 1rem; align-content: start; }
.land-hero { display: grid; grid-template-columns: minmax(0, 11rem) 1fr; gap: 1.2rem; align-items: center; padding: 1.2rem 1.4rem; }
.land-hero-logo img { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 20px rgba(15, 23, 42, .25)); }
.land-hero h2 { margin: .5rem 0 .3rem; font-size: 1.5rem; }
.land-hero p { margin: 0; }
.showcase-head-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .22rem .7rem; border-radius: 999px; background: var(--slate-100); border: 1px solid var(--slate-200); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--slate-700); }
.showcase-head-pill .dot { background: var(--mint); animation: none; }

@media (max-width: 36rem) {   }

.land-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.land-feats .tile { padding: .8rem .5rem; }
.land-feats .tile:nth-child(3n+1) .icon { color: var(--mint); }
.land-feats .tile:nth-child(3n+2) .icon { color: var(--ice); }
.land-feats .tile:nth-child(3n) .icon { color: var(--crimson); }
@media (max-width: 36rem) { .land-hero { grid-template-columns: 6.5rem 1fr; gap: .8rem; padding: 1rem; } .land-hero h2 { font-size: 1.15rem; } .land-feats { grid-template-columns: repeat(2, 1fr); } }
.input-icon { position: relative; }
.pw-eye { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: .35rem; cursor: pointer; color: var(--slate-400); border-radius: .5rem; display: grid; place-items: center; }
.pw-eye:hover, .pw-eye.on { color: var(--sapphire); }
.input-icon input[data-pw1], .input-icon input[type=password], .input-icon input[data-eyed] { padding-right: 2.6rem; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; margin-top: .35rem; }
.pw-meter i { height: .3rem; border-radius: 9px; background: var(--slate-200); transition: background .2s; }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: #ef4444; }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: #f59e0b; }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: #84cc16; }
.pw-meter[data-s="4"] i { background: #16a34a; }
.pw-match { display: block; min-height: 1.1rem; margin-top: .3rem; text-transform: none; letter-spacing: 0; font-weight: 600; }
.pw-match.ok { color: #15803d; } .pw-match.bad { color: #b91c1c; }
label .muted.small { text-transform: none; letter-spacing: 0; font-weight: 500; }

/* Ergebnis-Ticker (Laufband) */
.ticker-bar { display: flex; align-items: stretch; background: linear-gradient(90deg, #0b1b3a, #12305f); color: #e2e8f0; overflow: hidden; }
.tk-label { flex: none; display: flex; align-items: center; gap: .5rem; padding: 0 1rem; background: var(--crimson, #e11d48); color: #fff; font-family: var(--display); font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; position: relative; z-index: 2; box-shadow: 6px 0 14px -4px rgba(0,0,0,.4); }
.tk-label .dot { background: #fff; }
.tk-window { flex: 1; min-width: 0; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent); }
.tk-track { display: flex; width: max-content; animation: tk-run calc(var(--tk-n, 8) * 6s) linear infinite; }
.tk-window:hover .tk-track, .tk-window:focus-within .tk-track { animation-play-state: paused; }
.tk-set { display: flex; flex: none; }
.tk-item { display: flex; align-items: center; gap: .5rem; padding: .6rem 1.4rem; color: #e2e8f0; text-decoration: none; white-space: nowrap; font-size: .8rem; border-right: 1px solid rgba(148, 163, 184, .25); }
.tk-item:hover { background: rgba(255, 255, 255, .06); }
.tk-item b { font-weight: 600; }
.tk-item em { font-style: normal; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #fbbf24; border: 1px solid rgba(251, 191, 36, .5); border-radius: .4rem; padding: .05rem .35rem; }
.tk-item small { font-size: .62rem; font-weight: 800; color: #fbbf24; }
.tk-sc { font-family: var(--mono); font-weight: 800; padding: .1rem .55rem; background: #020617; color: var(--mint-400, #5eead4); border-radius: .45rem; letter-spacing: .05em; }
.tk-sc i { font-style: normal; opacity: .6; margin: 0 .1rem; }
.tk-empty { display: block; padding: .6rem 1rem; font-size: .8rem; color: #94a3b8; }
@keyframes tk-run { to { transform: translateX(var(--tk-shift, -50%)); } }
@media (prefers-reduced-motion: reduce) { .tk-window { overflow-x: auto; } .tk-track { animation: none !important; } .tk-set[aria-hidden] { display: none; } }
.foot-in { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem 1rem; padding: .5rem 1rem; }
.foot-by { color: var(--slate-400); font-size: .72rem; letter-spacing: .02em; }
.ticker-bar { max-width: 70rem; width: calc(100% - 2rem); margin: .7rem auto 0; border-radius: 1rem; }
.foot-in { padding-top: .4rem; }

/* Strafarten, Sperren */
.tl-double { background: #ffedd5; color: #9a3412; }
.tl-major { background: #fee2e2; color: #991b1b; }
.tl-sev-major .tl-l, .tl-sev-major .tl-r { background: linear-gradient(90deg, rgba(220, 38, 38, .08), transparent 80%); }
.tl-sev-major.tl-h .tl-l { background: linear-gradient(270deg, rgba(220, 38, 38, .1), transparent 85%); border-right: 4px solid #dc2626; }
.tl-sev-major.tl-a .tl-r { border-left: 4px solid #dc2626; }
.tl-sev-double.tl-h .tl-l { border-right: 4px solid #f97316; }
.tl-sev-double.tl-a .tl-r { border-left: 4px solid #f97316; }
.tag-sus { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
.ph-sus { background: #ede9fe; color: #5b21b6; }

td.yact { display: table-cell; white-space: nowrap; text-align: right; }
.yact form { display: inline-block; margin: 0 0 0 .4rem; vertical-align: middle; }
.yact form:first-child { margin-left: 0; }
@media (max-width: 36rem) { td.yact { white-space: normal; } .yact form { display: block; margin: .25rem 0 0; } }

/* Weltmeisterschaft */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-bottom: .8rem; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.wm-flag { display: inline-flex; align-items: center; }
.standings tr.q-ok td:first-child { box-shadow: inset 5px 0 0 #16a34a; }
details.card > summary { cursor: pointer; padding: .2rem 0; }
.sb2 .wm-flag svg, .sb2 .wm-flag img { border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.35); }

.page-head-logo { display: flex; align-items: center; gap: 1rem; }
.page-head-logo img { width: auto; flex: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.page-head-logo h1 { margin: 0; }
.page-head-logo { margin-bottom: .9rem; }

/* Manager-Foto */
.avatar { border-radius: 24%; object-fit: cover; vertical-align: middle; flex: none; background: #e2e8f0; }
.avatar-ini { display: inline-flex; align-items: center; justify-content: center; border-radius: 24%; color: #fff; font-weight: 700; font-family: var(--display); vertical-align: middle; flex: none; background: #475569; }
.mailink .avatar, .mailink .avatar-ini { margin: -2px 4px -2px 0; }
.photo-row { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .8rem; margin: .6rem 0; }
.award { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .9rem; border-radius: 14px; background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #f59e0b; box-shadow: 0 2px 8px rgba(15,23,42,.05); }
.award-mine { border-left-color: #0b78c9; background: #eef6fe; }
.award-icon { color: #f59e0b; }
.award-mine .award-icon { color: #0b78c9; }
.award-label { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.award b { font-size: 1.05rem; }
.award-list { list-style: none; margin: .3rem 0; padding: 0; display: grid; gap: .35rem; }
.award-list li { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }

/* Manager-Profil: großes, blasses Vereinswappen (nur bei eigenem Logo) */
.has-bg-logo{position:relative;overflow:hidden;border-radius:1rem}
.has-bg-logo>*{position:relative}
.has-bg-logo>.bg-logo{position:absolute;right:-10px;top:50%;transform:translateY(-50%);opacity:.13;pointer-events:none}
@media (max-width:640px){.has-bg-logo>.bg-logo{display:none}}

/* Rekorde: Zellen dürfen umbrechen (Handy) */
.rec-table td,.rec-table th{white-space:normal}
.rec-table td:first-child{width:42%}

/* Kapitän (C) und Assistant Captains (A) */
.cap{display:inline-block;min-width:1.15rem;text-align:center;font-size:.66rem;font-weight:800;line-height:1.2;padding:.02rem .28rem;border-radius:.35rem;margin-left:.3rem;vertical-align:middle}
.cap-c{background:#fbbf24;color:#451a03;border:1px solid #f59e0b}
.cap-a{background:#e2e8f0;color:#334155;border:1px solid #cbd5e1}

/* Turnierbaum (EHL, WM, Liga-Playoffs) */
.bk-wrap { overflow-x: auto; padding: .2rem 0 .8rem; -webkit-overflow-scrolling: touch; }
.bk { --gap: 56px; --line: #cbd5e1; --win: #38a1e8; display: grid; grid-template-columns: repeat(var(--cols), minmax(250px, 1fr)); column-gap: var(--gap); grid-template-rows: 54px; grid-auto-rows: minmax(122px, auto); min-width: calc(var(--cols) * 250px + (var(--cols) - 1) * var(--gap)); }
.bk-h { grid-row: 1; align-self: start; text-align: center; }
.bk-h b { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #334155; background: rgba(148,163,184,.16); border-radius: 999px; padding: .28rem .8rem; }
.bk-h small { display: block; margin-top: .22rem; font-size: .7rem; color: var(--slate-500); }
.bk-h.fin b { background: linear-gradient(135deg, #f5e7c1, #e6c779); color: #6b4e10; }
.bk-slot { position: relative; display: flex; align-items: center; padding: 6px 0; }
.bk-tie { width: 100%; position: relative; overflow: hidden; border-radius: 1rem; background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.9)); border: 1px solid #e2e8f0; box-shadow: 0 2px 10px rgba(15,23,42,.06); padding: .35rem .5rem .4rem; }
.bk-tie.mine { border-color: #93c5fd; box-shadow: 0 0 0 2px rgba(59,130,246,.18), 0 4px 14px rgba(59,130,246,.15); }
.bk-tie.mine::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #3b82f6; }
.bk-t { display: flex; align-items: center; gap: .55rem; padding: .2rem .1rem; font-size: .93rem; }
.bk-bd { width: 26px; height: 26px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; }
.bk-bd .badge { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; font-size: .62rem; }
.bk-bd svg, .bk-bd img.flag { width: 32px; height: auto; }
.bk-bd.q { background: #e2e8f0; color: #94a3b8; font-size: .7rem; font-weight: 800; }
.bk-t .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.bk-t .fl { font-size: .68rem; color: var(--slate-500); font-weight: 700; }
.bk-sc { min-width: 1.9rem; height: 1.7rem; border-radius: .5rem; display: grid; place-items: center; font-weight: 800; font-size: .95rem; background: #f1f5f9; color: #64748b; }
.bk-sc:empty { background: transparent; }
.bk-t.win .nm, .bk-t.win .nm a { color: #0f172a; }
.bk-t.win .bk-sc { background: var(--win); color: #fff; }
.bk-t.out { opacity: .55; }
.bk-t.out .nm { font-weight: 500; }
.bk-t.tbd .nm { font-style: italic; color: var(--slate-500); font-weight: 500; }
.bk-legs { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .28rem; padding-top: .3rem; border-top: 1px dashed #e2e8f0; }
.bk-legs > span, .bk-legs > a { font-size: .7rem; color: #475569; background: #f1f5f9; border-radius: .4rem; padding: .08rem .45rem; text-decoration: none; }
.bk-legs > span.up { background: transparent; color: var(--slate-500); padding-left: 0; }
.bk-slot.fed::before { content: ""; position: absolute; left: calc(var(--gap) / -1); width: calc(var(--gap) / 2); top: 25%; bottom: 25%; border: 2px solid var(--line); border-left: 0; border-radius: 0 .9rem .9rem 0; }
.bk-slot.fed::after { content: ""; position: absolute; left: calc(var(--gap) / -2); width: calc(var(--gap) / 2); top: 50%; border-top: 2px solid var(--line); }
.bk-slot.fed.hot::before, .bk-slot.fed.hot::after { border-color: var(--win); }
.bk-slot.pend .bk-tie { background: rgba(248,250,252,.6); border-style: dashed; }
.bk-tie.final { border: 1.5px solid #e6c779; background: linear-gradient(180deg, #fffdf6, #fff8e5); box-shadow: 0 4px 18px rgba(202,160,60,.22); }
.bk-top { display: flex; flex-direction: column; align-items: center; gap: .1rem; margin-bottom: .4rem; text-align: center; }
.bk-top img { height: 92px; width: auto; }
.bk-top img.dim { height: 78px; opacity: .9; }
.bk-top b { font-size: 1.02rem; }
.bk-xt { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-500); margin-bottom: .2rem; }
.bk-extra { width: 100%; }

/* Rinkside (Zeitung) */
.np{--np-ink:#0f172a;--np-mut:#64748b;--np-rule:#cbd5e1;--np-acc:#1d4ed8}
.np-mast{text-align:center;padding:.3rem 0 .6rem;border-bottom:3px double var(--np-ink);margin-bottom:.5rem}
.np-mast .meta{display:flex;justify-content:space-between;gap:.5rem;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--np-mut);font-weight:700}
.np-mast h1{font-family:Georgia,'Times New Roman',serif;font-size:2.6rem;letter-spacing:.01em;margin:.15rem 0;line-height:1.05;color:var(--np-ink)}
.np-mast h1 span{color:var(--np-acc)}
.np-logo{margin:.9rem auto .2rem!important;line-height:0}
.np-logo img{display:block;margin:0 auto;width:min(460px,88%);height:auto}
.np-mast p{margin:0;font-size:.8rem;color:var(--np-mut);font-style:italic}
.np-tabs{display:flex;flex-wrap:wrap;gap:1rem;border-bottom:1px solid var(--np-rule);margin-bottom:1rem;font-size:.84rem;font-weight:700}
.np-tabs a{padding:.4rem .1rem;color:var(--np-mut);text-decoration:none}
.np-tabs a.on{color:var(--np-ink);border-bottom:2px solid var(--np-acc);margin-bottom:-1px}
.np-filter{display:flex;flex-wrap:wrap;gap:.4rem 1rem;font-size:.82rem;margin-bottom:.8rem;color:var(--np-mut)}
.np-filter a{margin-right:.5rem}
.np-grid{display:grid;grid-template-columns:2fr 1fr;gap:1.4rem}
.np-lead .kick{font-size:.72rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--np-acc)}
.np-lead h2{font-family:Georgia,'Times New Roman',serif;font-size:2.1rem;line-height:1.12;margin:.2rem 0 .5rem;text-transform:none;letter-spacing:0;color:var(--np-ink)}
.np-fig{display:flex;align-items:center;gap:1rem;background:linear-gradient(135deg,#0f172a,#1e3a8a);border-radius:.9rem;padding:1rem 1.2rem;color:#fff;margin:.2rem 0 .7rem;text-decoration:none}
.np-fig .sc{font-size:2.3rem;font-weight:800;letter-spacing:.04em;white-space:nowrap}
.np-fig small{display:block;opacity:.75;font-size:.74rem}
.np-lead p{font-family:Georgia,serif;font-size:1.02rem;line-height:1.55;margin:.4rem 0;color:#1e293b}
.np-by{font-size:.74rem;color:var(--np-mut);margin-top:.4rem}
.np-side h3{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--np-mut);border-bottom:1px solid var(--np-rule);padding-bottom:.25rem;margin:0 0 .5rem}
.np-item{padding:.55rem 0;border-bottom:1px solid #e2e8f0}
.np-item b{display:block;font-family:Georgia,serif;font-size:1rem;line-height:1.25;color:var(--np-ink)}
.np-item span.sub{font-size:.76rem;color:var(--np-mut)}
.np-item .tag{display:inline-block;font-size:.62rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#fff;background:var(--np-acc);border-radius:.25rem;padding:.05rem .35rem;margin-right:.35rem;font-family:var(--sans)}
.np-item .tag.ehl{background:#b45309}.np-item .tag.wm{background:#0f766e}.np-item .tag.n4{background:#7c3aed}
.np-item a{color:inherit;text-decoration:none}.np-item a:hover b{text-decoration:underline}
.np-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1.1rem;padding-top:.9rem;border-top:3px double var(--np-ink)}
.np-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:.8rem;padding:.7rem .8rem;font-size:.85rem}
.np-box h4{margin:0 0 .35rem;font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:var(--np-mut)}
.np-box ol{margin:0;padding-left:1.1rem}.np-box li{padding:.08rem 0}
.np-day{font-size:.74rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--np-mut);border-bottom:1px solid var(--np-rule);margin:1rem 0 .3rem;padding-bottom:.2rem}
.np-list .np-item p{margin:.2rem 0 0;font-size:.85rem;color:#334155}
@media(max-width:760px){.np-grid,.np-strip{grid-template-columns:1fr}.np-mast h1{font-size:1.9rem}.np-lead h2{font-size:1.6rem}.np-mast .meta{font-size:.62rem}}

.arena-plan { display: block; max-width: 880px; margin: .2rem auto 0; }
.arena-plan .plan-blk { cursor: default; }
.arena-plan .plan-blk:hover polygon { filter: brightness(1.08); }
.arena-plan text { pointer-events: none; font-family: inherit; }
.plan-legend { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; font-size: .8rem; color: var(--muted, #64748b); margin: .5rem 0; }
.plan-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.yname { display: flex; align-items: center; gap: .5rem .7rem; flex-wrap: wrap; padding-top: .8rem; padding-bottom: .8rem; }
.yname input { width: 14rem; max-width: 100%; }
.ynotes { margin-top: .6rem; }
.ynotes summary { cursor: pointer; color: var(--slate-500, #64748b); font-size: .85rem; }

.bg-logo { position: absolute; inset: 0; background-repeat: no-repeat; background-position: right 6% bottom 8%; background-size: min(560px, 60vw); opacity: .07; }
@media (max-width: 700px) { .bg-logo { background-position: center 55%; background-size: 85vw; } }
@media (max-width: 700px) {
  .arena-plan text[font-size="12.5"] { font-size: 16px; }
  .arena-plan text[font-size="10.5"] { font-size: 12.5px; }
  .arena-plan text[font-size="11.5"] { font-size: 13px; }
  .arena-plan text[font-size="9.5"] { font-size: 13px; }
  .arena-plan text[font-size="11"] { font-size: 14px; }
  .arena-plan text[font-size="9"] { font-size: 12px; }
  .arena-plan text[font-size="12"] { font-size: 15px; }
}

.foot-legal { font-size: .72rem; text-align: center; }
.foot-legal a { color: var(--slate-400); text-decoration: none; }
.foot-legal a:hover { text-decoration: underline; }
.legal h2 { font-size: 1rem; margin: 1rem 0 .2rem; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0; }
@media (max-width: 700px) { .foot-legal { order: 3; width: 100%; } }
.legal-note { border-left: 4px solid var(--slate-300, #cbd5e1); background: rgba(100,116,139,.08); padding: .7rem .9rem; margin: 0 0 1rem; border-radius: 4px; }
.legal-todo { background: #fef08a; color: #1e293b; padding: 0 .15rem; }
.legal ul { padding-left: 1.2rem; margin: .3rem 0; }
.legal li { margin: .35rem 0; }
.legal code { font-size: .85em; }
.legal-host { font-weight: 700; margin: .4rem 0 .6rem !important; padding-left: .8rem; border-left: 3px solid var(--slate-300, #cbd5e1); }
.legal p { line-height: 1.5; }
.legal .legal-addr, .legal .legal-host { line-height: 1.3; }

.kpi { position: relative; }
.kpi-gold { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); width: auto; filter: drop-shadow(0 2px 5px rgba(0,0,0,.25)); }
.kpi:has(.kpi-gold) { padding-right: 4.6rem; }
.kpi-gold { height: 52px; }
.kpi:has(.kpi-gold) { padding-right: 3.8rem; }
@media (max-width: 560px) {
  .kpi-gold { height: 42px; right: .5rem; top: .6rem; transform: none; }
  .kpi:has(.kpi-gold) { padding-right: 3rem; }
}
/* Tabelle auf dem Handy: engere Zellen, damit auch die Punkte-Spalte ohne Wischen sichtbar bleibt */
@media (max-width: 480px) {
  .standings th, .standings td { padding-left: .35rem; padding-right: .35rem; }
  .standings .namecell { gap: .35rem; }
}

.land-left { display: grid; gap: 1.4rem; align-content: start; }
.land-studio { display: flex; flex-direction: column; align-items: center; gap: .4rem; margin-top: .4rem; color: var(--slate-400); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.land-studio img { width: auto; max-width: 70%; height: auto; max-height: 150px; }
@media (max-width: 959px) { .land-studio img { max-height: 120px; } }

.legal-logos { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem 2rem; margin: 0 0 .9rem; }
.legal-logos img { width: auto; height: 110px; }
@media (max-width: 480px) { .legal-logos img { height: 84px; } }

/* Kopfzeile: ausgeschriebener Name, das Logo zeigt schon OEM */
.brand-name { font-size: .84rem; font-weight: 500; letter-spacing: .02em; line-height: 1.15; color: var(--slate-700); }
@media (max-width: 480px) { .brand-name { font-size: .72rem; max-width: 10rem; white-space: normal; } }

/* Hilfe-Seite */
.help-hero p { margin: 0 0 .6rem; line-height: 1.55; }
.help-hero p:last-child { margin-bottom: 0; }
.help-steps { padding-left: 1.3rem; margin: .4rem 0; }
.help-steps li { margin: .55rem 0; line-height: 1.5; }
.help-list { padding-left: 1.2rem; margin: .4rem 0; }
.help-list li { margin: .5rem 0; line-height: 1.5; }
.panel > p { line-height: 1.55; }
.help-q { border-top: 1px solid var(--slate-200); padding: .55rem 0; }
.help-q summary { cursor: pointer; font-weight: 600; }
.help-q p { margin: .5rem 0 0; line-height: 1.5; color: var(--slate-700); }

/* Kontaktformular */
.contact-form { display: grid; gap: .85rem; }
.contact-form label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form select, .contact-form textarea { width: 100%; font: inherit; font-weight: 400; padding: .6rem .7rem; border: 1px solid var(--slate-200, #e2e8f0); border-radius: 10px; background: #fff; }
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.contact-form .check input { margin-top: .25rem; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .check span { font-weight: 400; }

.land-feats-3 { grid-template-columns: repeat(3, 1fr); }
.land-feats-3 .tile { padding: 1rem .9rem; }
.land-feats-3 .tile span { font-size: .78rem; line-height: 1.35; }
@media (max-width: 480px) { .land-feats-3 { grid-template-columns: 1fr; } }

.land-steps h2 { margin: 0 0 .8rem; }
.land-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.land-steps li { display: flex; gap: .85rem; align-items: flex-start; }
.land-steps .step-n { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #38a1e8, #0b78c9); }
.land-steps b { display: block; }
.land-steps small { display: block; color: var(--slate-500, #64748b); line-height: 1.4; margin-top: .1rem; }

.modal-logo { flex: 0 0 auto; width: 64px; height: 40px; object-fit: contain; }

.modal-legend { margin: .6rem 0 0; }
#league-dialog td.left { white-space: normal; }
@media (max-width: 640px) { #league-dialog th, #league-dialog td { padding: .5rem .4rem; } #league-dialog .namecell { gap: .4rem; } }

/* Ticketseite */
.tix-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: .2rem 0 1rem; }
.tix-sum div { background: var(--slate-50, #f8fafc); border: 1px solid var(--slate-100); border-radius: .8rem; padding: .6rem .8rem; }
.tix-sum span { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500, #64748b); }
.tix-sum b { font-family: var(--display); font-size: 1.25rem; }
.tix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tix-card { border: 1px solid var(--slate-100); border-radius: 1rem; padding: 1rem; background: #fff; display: grid; gap: .55rem; align-content: start; }
.tix-head { display: flex; justify-content: space-between; align-items: baseline; }
.tix-head h3 { margin: 0; }
.tix-input { display: flex; align-items: center; gap: .4rem; }
.tix-input input { width: 6.5rem; font-size: 1.3rem; font-weight: 700; text-align: center; }
.tix-input span { font-weight: 700; font-size: 1.2rem; }
.tix-range { width: 100%; accent-color: #0b78c9; }
.tix-bar { height: .5rem; background: var(--slate-100); border-radius: 99px; overflow: hidden; }
.tix-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #38a1e8, #0b78c9); border-radius: 99px; transition: width .15s; }
.tix-card.is-full .tix-bar i { background: linear-gradient(90deg, #f59e0b, #d97706); }
.tix-line { margin: 0; font-size: .85rem; }
.tix-chart { width: 100%; height: auto; display: block; }
.tix-chart .c-area { fill: rgba(56, 161, 232, .14); }
.tix-chart .c-line { fill: none; stroke: #0b78c9; stroke-width: 2; }
.tix-chart .c-axis { stroke: var(--slate-200, #cbd5e1); }
.tix-chart .c-tick { font-size: 9px; fill: #64748b; }
.tix-chart .c-best { stroke: #16a34a; stroke-width: 1.5; stroke-dasharray: 3 3; }
.tix-chart .c-saved { stroke: #94a3b8; stroke-width: 1.5; stroke-dasharray: 2 3; }
.tix-chart .c-now { stroke: #0b78c9; stroke-width: 1.5; }
.tix-chart .c-dot { fill: #0b78c9; stroke: #fff; stroke-width: 2; }
.tix-legend { margin: 0; display: flex; gap: .9rem; flex-wrap: wrap; }
.tix-legend span { padding-left: .6rem; border-left: 3px solid; }
.lg-now { border-color: #0b78c9 !important; } .lg-saved { border-color: #94a3b8 !important; } .lg-best { border-color: #16a34a !important; }
.tix-save { margin-top: 1rem; }
.tix-tables { margin-top: 1rem; }
.tix-tables summary { cursor: pointer; font-weight: 700; }
@media (max-width: 760px) { .tix-sum { grid-template-columns: 1fr 1fr; } .tix-grid { grid-template-columns: 1fr; } }

/* Arena-Überblick */
.arena-hint { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: .9rem; border: 1px solid var(--slate-100); border-left-width: 5px; background: #fff; }
.arena-hint-good { border-left-color: #16a34a; }
.arena-hint-mid { border-left-color: #f5c518; }
.arena-hint-low { border-left-color: #e11d48; }
.arena-ov { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.arena-ov .panel { margin: 0; }
.cap-label { margin: 0 0 .4rem; }
.meter.cap i.a { background: #14b8a6; }
.meter.cap i.b { background: #0b78c9; }
.key-a { background: #14b8a6; }
.arena-rename { margin-top: 1rem; }
.arena-rename summary { cursor: pointer; font-weight: 700; margin-bottom: .6rem; }
@media (max-width: 900px) { .arena-ov { grid-template-columns: 1fr; } }

/* Arena: Ausbau und Einrichtungen */
.bstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 0 0 1rem; }
.bstrip div { background: #fff; border: 1px solid var(--slate-100); border-radius: .9rem; padding: .6rem .9rem; }
.bstrip span { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500, #64748b); }
.bstrip b { font-family: var(--display); font-size: 1.15rem; }
.bstrip small { display: block; color: var(--slate-500, #64748b); }
.seat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.seat-col { border: 1px solid var(--slate-100); border-radius: 1rem; padding: 1rem; background: #fff; }
.seat-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.seat-head h3 { margin: 0; }
.seat-verdict { margin: .5rem 0; padding: .45rem .7rem; border-radius: .6rem; border-left: 4px solid; font-size: .85rem; background: var(--slate-50, #f8fafc); }
.seat-good { border-color: #16a34a; } .seat-mid { border-color: #f5c518; } .seat-low { border-color: #e11d48; }
.seat-opts { display: grid; gap: .5rem; }
.seat-opt { display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; text-align: left; padding: .6rem .8rem; border: 1px solid var(--slate-200, #cbd5e1); border-radius: .8rem; background: #fff; cursor: pointer; font: inherit; color: inherit; text-transform: none; letter-spacing: 0; }
.seat-opt:hover:not(:disabled) { border-color: #0b78c9; box-shadow: 0 0 0 3px rgba(11, 120, 201, .12); }
.seat-opt b { font-size: 1rem; }
.seat-opt .seat-price { font-weight: 700; color: #0b78c9; text-align: right; }
.seat-opt small { grid-column: 1 / -1; color: var(--slate-500, #64748b); font-weight: 400; }
.seat-opt .seat-why { color: #be123c; font-weight: 600; }
.seat-opt:disabled { opacity: .7; cursor: not-allowed; background: var(--slate-50, #f8fafc); }
.facility { display: flex; flex-direction: column; gap: .4rem; }
.fac-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.fac-head h3 { margin: 0; }
.lvl { display: inline-flex; align-items: center; gap: .25rem; }
.lvl i { width: 1.4rem; height: .5rem; border-radius: 99px; background: var(--slate-200, #cbd5e1); }
.lvl i.on { background: linear-gradient(90deg, #38a1e8, #0b78c9); }
.lvl em { font-style: normal; font-size: .72rem; color: var(--slate-500, #64748b); margin-left: .3rem; }
.fac-cur { margin: 0; }
.fac-hint { margin: 0; }
.fac-next { margin-top: .2rem; padding: .7rem .8rem; border-radius: .8rem; background: var(--slate-50, #f8fafc); border: 1px solid var(--slate-100); }
.fac-tag { display: block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #0b78c9; }
.fac-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 .5rem; }
.fac-meta li { font-size: .75rem; border: 1px solid var(--slate-200, #cbd5e1); border-radius: 99px; padding: .1rem .55rem; background: #fff; }
.fac-req { margin: 0 0 .5rem; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: .5rem; padding: .3rem .55rem; }
.fac-build { width: 100%; }
.fac-why { margin: .35rem 0 0; color: #be123c; font-weight: 600; }
.fac-done { margin: .3rem 0 0; font-weight: 700; color: #15803d; }
@media (max-width: 760px) { .bstrip { grid-template-columns: 1fr; } .seat-grid { grid-template-columns: 1fr; } }

/* Training */
.train-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.train-grid .choices { margin: 0; }
.scale-note { margin: .2rem 0 .8rem; }
.scale-note summary { cursor: pointer; }
.scale-note p { margin: .4rem 0 0; }
.train-tab td, .train-tab th { text-align: center; }
.train-tab .left { text-align: left; }
@media (max-width: 860px) { .train-grid { grid-template-columns: 1fr; } }

/* Finanzen */
.fin-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: .4rem 0 1.2rem; }
.fin-result > div { border: 1px solid var(--slate-100); border-radius: .9rem; padding: .6rem .9rem; background: var(--slate-50, #f8fafc); }
.fin-result span { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500, #64748b); }
.fin-result b { font-family: var(--display); font-size: 1.3rem; }
.fin-result small { display: block; color: var(--slate-500, #64748b); }
.fin-result.is-pos > div:first-child { border-left: 5px solid #16a34a; }
.fin-result.is-neg > div:first-child { border-left: 5px solid #e11d48; }
.fin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.fin-cols h3 { display: flex; justify-content: space-between; margin: 0 0 .5rem; }
.fin-row { position: relative; display: flex; justify-content: space-between; gap: .6rem; padding: .45rem 0 .6rem; border-bottom: 1px solid var(--slate-100); }
.fin-row i { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 3px; background: #38a1e8; }
.fin-row.out i { background: #f87171; }
@media (max-width: 860px) { .fin-result { grid-template-columns: 1fr; } .fin-cols { grid-template-columns: 1fr; } }

/* Personal / Sponsoren (1.85.9) */
.pgrid .pact { margin-top: auto; }
.pgrid .pchange { margin-top: .2rem; }
.pstate { margin-left: auto; align-self: flex-start; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .55rem; border-radius: 99px; background: var(--slate-100); color: var(--slate-500); white-space: nowrap; }
.pstate.on { background: var(--mint-50); color: #0f766e; border: 1px solid #99f6e4; }
.pnone { margin: 0; font-size: .86rem; color: var(--slate-500); }
.pnone b { color: #0f766e; }
.pips i { height: .6rem; }
.spo-kpis { margin-bottom: .8rem; }
.spo-info { margin: .2rem 0 1rem; }
.spo-info summary { cursor: pointer; }
.spo-info p { margin: .4rem 0 0; }
@media (max-width: 36rem) { .pgrid { grid-template-columns: 1fr; } }
.pgrid.pg4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pgrid .phead { min-height: 3.4rem; }
@media (max-width: 36rem) { .pgrid.pg4 { grid-template-columns: 1fr; } }

/* Transfermarkt (1.86.0) */
.mk-kpis { margin-bottom: .8rem; }
.mk-bar { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; margin: 0 0 .4rem; }
.mk-bar .chipbar { margin: 0; }
.mk-sel { display: flex; gap: .5rem; flex-wrap: wrap; }
.mk-sel select { max-width: 13rem; }
.mk-count { margin: 0 0 .8rem; }
@media (max-width: 36rem) { .mk-sel { width: 100%; } .mk-sel select { flex: 1; min-width: 0; max-width: none; } }

/* Jugend (1.86.0) */
.yo-kpis { margin-bottom: .8rem; }
.yo-filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 .8rem; }
.yo-filter select { max-width: 14rem; }
.yo-np { font-size: .85rem; display: flex; gap: .35rem; align-items: center; }
.yo-group { border: 1px solid var(--slate-200); border-radius: .9rem; background: rgba(255,255,255,.6); margin: 0 0 .6rem; padding: 0 .9rem; }
.yo-group > summary, .yo-empty { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .65rem 0; cursor: pointer; list-style: none; }
.yo-group > summary::-webkit-details-marker { display: none; }
.yo-group > summary::before { content: '▸'; margin-right: .4rem; color: var(--slate-500); }
.yo-group[open] > summary::before { content: '▾'; }
.yo-group > summary > span:first-child { flex: 1; }
.yo-n { font-size: .78rem; font-weight: 700; color: var(--slate-500); }
.yo-empty { cursor: default; opacity: .7; }
.yo-group[open] > summary { border-bottom: 1px solid var(--slate-100); margin-bottom: .5rem; }
.yo-group .table-wrap { margin-bottom: .6rem; }
@media (max-width: 36rem) { .yo-filter select { flex: 1 1 45%; max-width: none; min-width: 0; } }
.mk-sel { flex: 0 0 auto; flex-wrap: nowrap; }
.mk-sel select { width: auto; min-width: 9rem; padding-top: .4rem; padding-bottom: .4rem; font-size: .88rem; }
@media (max-width: 36rem) { .mk-sel { flex: 1 1 100%; } }

/* TV-Rechte (1.87.0) */
.tv-kpis { margin-bottom: .8rem; }
.tv-offer { gap: .45rem; }
.tv-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; border-top: 1px solid var(--slate-100); padding-top: .45rem; }
.tv-amt { font-size: .95rem; }
.tv-row .btn { white-space: nowrap; padding: .35rem .8rem; font-size: .8rem; }
.tv-active { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.tv-name { font-size: 1.15rem; }
.tv-line { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: .5rem; font-size: 1.05rem; font-weight: 700; }

@media (max-width: 62rem) { .hide-md { display: none; } }

/* Finanzen: Buchungsfilter (1.87.11) */
.fin-filter { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.fin-filter .subtabs { margin: 0; }
.fin-filter select { width: auto; min-width: 12rem; padding-top: .4rem; padding-bottom: .4rem; font-size: .88rem; }
@media (max-width: 36rem) { .fin-filter form, .fin-filter select { width: 100%; } }

.np-iv{margin-top:1rem;padding:.7rem .9rem;border-left:3px solid var(--np-acc,#1f6feb);background:rgba(127,127,127,.08);border-radius:4px}
.np-iv h4{margin:0 0 .4rem;font-size:.95rem}
.np-iv p{margin:.25rem 0;font-size:.88rem}
.np-iv .iv-intro{color:var(--np-mut);font-style:italic}
.np-iv .iv-q{font-weight:600;margin-top:.5rem}

.iv-q{font-size:1.02rem;font-style:italic;margin:.2rem 0 .8rem}
.iv-opts{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem}
.iv-opt{text-align:left;display:flex;flex-direction:column;gap:.35rem;padding:.8rem;border:1px solid var(--sapphire-100,#d0d7de);border-radius:8px;background:transparent;color:inherit;cursor:pointer;font:inherit}
.iv-opt:hover{border-color:var(--ice,#0284c7);background:var(--mint-50,#eef6fe)}
.iv-opt span{font-size:.88rem}
.iv-opt small{color:#64748b;margin-top:auto}
@media(max-width:760px){.iv-opts{grid-template-columns:1fr}}

.np-promo{margin-top:.9rem;padding:.6rem .7rem;border:1px dashed var(--np-rule,#94a3b8);background:rgba(250,204,21,.09);font-family:Georgia,serif;position:relative}
.np-promo b{display:block;font-size:.95rem;color:var(--np-ink)}
.np-promo i{display:block;font-size:.82rem;margin:.1rem 0 .25rem}
.np-promo p{margin:0;font-size:.78rem;color:#334155}
.np-promo-tag{position:absolute;top:.25rem;right:.4rem;font:700 .58rem var(--sans,sans-serif);letter-spacing:.1em;text-transform:uppercase;color:var(--np-mut)}
.np-promo.wide{margin:1rem 0;text-align:center}

.setup h1{margin:0 0 .3rem}
.setup fieldset{border:1px solid var(--sapphire-100,#d0d7de);border-radius:8px;margin:1rem 0;padding:.8rem 1rem}
.setup legend{font-weight:700;padding:0 .4rem}
.setup .opt{display:flex;gap:.7rem;align-items:flex-start;padding:.45rem .2rem;cursor:pointer}
.setup .opt small{display:block;color:#64748b}
.setup .opt input{margin-top:.3rem}
.setup-sum{font-weight:600}

.setup-leagues{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin:.6rem 0}
.setup-league{border:1px solid var(--sapphire-100,#d0d7de);border-radius:8px;padding:.5rem .6rem}
.setup-league h4{margin:0 0 .4rem}
.setup-club{display:flex;justify-content:space-between;align-items:center;gap:.4rem;padding:.15rem 0;font-size:.88rem}
.setup-club select{font-size:.8rem;max-width:7.5rem}
.setup-me{display:flex;gap:1rem;flex-wrap:wrap;margin-top:.8rem}
.setup-me label{display:flex;flex-direction:column;gap:.2rem;font-weight:600}
@media(max-width:820px){.setup-leagues{grid-template-columns:1fr}}

/* Kopfzeile am Tablet: nichts umbrechen, nichts abschneiden */
.pill { white-space: nowrap; flex: none; }
.top-right { flex: 0 1 auto; min-width: 0; }
.brand-name { white-space: nowrap; }
@media (min-width: 36.01rem) and (max-width: 70rem) {
  .brand-name { font-size: 1.05rem; }
  
  .top-in { gap: .6rem; }
  .pill { margin-left: 0; padding: .3rem .7rem; font-size: .7rem; }
  .who strong { max-width: 7rem; }
  .top-right { gap: .4rem; }
  .top-right .mailink, .top-right .adminlink, .top-right .logout .btn { padding: .35rem .6rem; font-size: .68rem; }
}
@media (min-width: 36.01rem) and (max-width: 56rem) {
  .brand-text { display: none; }
}

/* Finanzen: Spieltage am Handy als Karten (Datum und Spiel oben, drei Beträge darunter) */
@media (max-width: 560px) {
  .ledger.days thead { display: none; }
  .ledger.days, .ledger.days tbody, .ledger.days tfoot { display: block; }
  .ledger.days tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .1rem .4rem; padding: .5rem .2rem; border-bottom: 1px solid var(--slate-200, #e2e8f0); }
  .ledger.days td, .ledger.days th { padding: 0; border: 0; text-align: right; white-space: nowrap; font-size: .8rem; }
  .ledger.days td:nth-child(1) { grid-column: 1; text-align: left; color: var(--slate-500, #64748b); font-size: .72rem; }
  .ledger.days td:nth-child(2) { grid-column: 2 / 4; text-align: left; font-weight: 600; white-space: normal; }
  .ledger.days td:nth-child(3)::before { content: 'Einnahmen '; display: block; font-size: .62rem; color: var(--slate-500, #64748b); font-weight: 400; }
  .ledger.days td:nth-child(4)::before { content: 'Ausgaben '; display: block; font-size: .62rem; color: var(--slate-500, #64748b); font-weight: 400; }
  .ledger.days td:nth-child(5)::before { content: 'Ergebnis '; display: block; font-size: .62rem; color: var(--slate-500, #64748b); font-weight: 400; }
  .ledger.days td:nth-child(n+3) { text-align: left; }
  .ledger.days tfoot tr { grid-template-columns: 1fr 1fr 1fr; }
  .ledger.days tfoot th:first-child { grid-column: 1 / 4; text-align: left; }
}

/* Kopfzeile am Handy kompakter: Kontostand und alle Links in einer Zeile */
@media (max-width: 36rem) {
   .who > :last-child { display: none; }
  .top-right { flex-wrap: nowrap; gap: .25rem; }
  .who-text span { font-size: .78rem; white-space: nowrap; }
  .mailink, .adminlink, .logout .btn { padding: .3rem .42rem; font-size: .6rem; letter-spacing: 0; }
}
@media (max-width: 24rem) { .top-right { flex-wrap: wrap; } }

/* Admin: Europa-Clubs */
.eu-row { display: grid; gap: .6rem .8rem; grid-template-columns: 52px 1fr; align-items: end; padding: .8rem 0; border-top: 1px solid var(--slate-200, #e2e8f0); }
.eu-row:first-of-type { border-top: 0; }
.eu-badge { grid-row: span 2; align-self: center; }
.eu-f { display: grid; gap: .2rem; font-size: .7rem; font-weight: 700; color: var(--slate-500, #64748b); text-transform: uppercase; letter-spacing: .04em; }
.eu-f input, .eu-f select { font-size: .9rem; text-transform: none; letter-spacing: 0; font-weight: 400; }
.eu-act { grid-column: 1 / -1; display: flex; gap: .4rem; flex-wrap: wrap; }
@media (min-width: 900px) {
  .eu-row { grid-template-columns: 52px minmax(10rem, 1.6fr) 5.5rem 5rem minmax(10rem, 1.2fr); }
  .eu-badge { grid-row: auto; }
  .eu-act { grid-column: 2 / -1; }
}

/* Admin-Bereich: eigener Look, damit man sofort sieht, dass man in der Spielleitung ist */
.subtabs.admin-tabs { background: #0b1220; border-color: #0b1220; align-items: center; gap: .25rem; padding: .35rem; box-shadow: 0 6px 18px rgba(11, 18, 32, .18); }
.admin-tabs-tag { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; margin-right: .3rem; border-radius: .6rem; background: #1e293b; color: #38bdf8; font: 800 .68rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.subtabs.admin-tabs a { color: #cbd5e1; }
.subtabs.admin-tabs a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.subtabs.admin-tabs a[aria-current="page"] { background: #38bdf8; color: #0b1220; }
.is-admin h1 { font-size: 1.6rem; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.adm-head h1 { margin: 0; }
.adm-kpis { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 1rem; }
@media (min-width: 700px) { .adm-kpis { grid-template-columns: repeat(5, 1fr); } }
.adm-kpi { background: rgba(255, 255, 255, .88); border: 1px solid var(--slate-200); border-left: 4px solid #38bdf8; border-radius: .9rem; padding: .7rem .9rem; display: grid; gap: .1rem; }
.adm-kpi b { font: 800 1.35rem/1.1 var(--display); color: var(--sapphire); }
.adm-kpi span { font-size: .72rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.adm-tabs { margin-bottom: 1rem; }
.adm-quick { margin-bottom: 1rem; }
.adm-quick a { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; }
.adm-quick a svg { grid-row: span 2; width: 34px; height: 34px; padding: 8px; border-radius: .7rem; background: #e0f2fe; color: #0369a1; box-sizing: border-box; }
.adm-quick a span { margin-top: 0; }
.adm-people { margin-top: 1rem; }
@media (max-width: 36rem) { .admin-tabs-tag { display: none; } }
.subtabs.admin-tabs a { background: transparent; border-color: transparent; box-shadow: none; }
.subtabs.admin-tabs a[aria-current="page"] { background: #38bdf8; }

/* Admin-Knopf: Eisblau wie die aktive Admin-Leiste */
.adminlink { color: #0b1220; background: #38bdf8; border: 1px solid #38bdf8; }
.adminlink:hover { background: #0ea5e9; border-color: #0ea5e9; color: #0b1220; }

/* Admin: Filterleiste, Tabellen, Kopfbereiche der Unterseiten */
.is-admin .filterbar { background: rgba(255, 255, 255, .9); border: 1px solid var(--slate-200); border-radius: 1rem; padding: .8rem 1rem; margin-bottom: .8rem; align-items: end; }
.adm-table table { background: rgba(255, 255, 255, .9); }
.adm-table thead th { background: #0f1a2e; color: #cbd5e1; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 0; }
.adm-table thead th a { color: inherit; text-decoration: none; }
.adm-table thead th:first-child { border-top-left-radius: .7rem; }
.adm-table thead th:last-child { border-top-right-radius: .7rem; }
.adm-table tbody tr:hover td { background: #f0f9ff; }
tr.adm-human td:first-child { box-shadow: inset 3px 0 0 #38bdf8; }
.adm-back { margin: 0 0 .5rem; font-size: .85rem; }
.adm-teamhead { align-items: center; flex-wrap: wrap; }
.adm-teamid { display: flex; align-items: center; gap: .9rem; }
.adm-teamid h1 { margin: 0; }
.chipbar.adm-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chipbar.adm-tabs a { padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--slate-200); background: rgba(255, 255, 255, .9); font-size: .8rem; font-weight: 700; color: var(--slate-700); text-decoration: none; }
.chipbar.adm-tabs a[aria-current] { background: #0f1a2e; border-color: #0f1a2e; color: #38bdf8; }
.adm-kpi-bad { border-left-color: var(--crimson); }
.adm-kpi-bad b { color: var(--crimson); }
ul.diag li.bad { background: #fff1f2; border-radius: .6rem; }

/* Erfolge */
.ach-toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: grid; gap: .5rem; width: min(22rem, calc(100vw - 2rem)); pointer-events: none; }
.ach-toast { pointer-events: auto; display: flex; gap: .75rem; align-items: center; padding: .7rem .9rem; border-radius: .7rem; background: #101c2c; color: #e8eef6; text-decoration: none; box-shadow: 0 10px 28px rgba(0,0,0,.35); border: 1px solid #2b4466; opacity: 0; transform: translateX(120%); animation: ach-in .5s ease forwards, ach-out .5s ease 6s forwards; animation-delay: var(--d, 0s), calc(var(--d, 0s) + 6s); }
.ach-toast:hover { background: #162740; }
.ach-ic { flex: none; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: .55rem; background: linear-gradient(145deg, #f5b942, #d97706); color: #fff; }
.ach-tx { display: grid; gap: .05rem; min-width: 0; }
.ach-tx small { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #8fb4dc; }
.ach-tx b { font-size: 1rem; color: #fff; }
.ach-tx em { font-style: normal; font-size: .8rem; color: #b8c7da; }
@keyframes ach-in { from { opacity: 0; transform: translateX(120%); } to { opacity: 1; transform: none; } }
@keyframes ach-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(120%); visibility: hidden; } }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .7rem; }
.ach-card { display: flex; gap: .75rem; align-items: center; padding: .7rem .85rem; border-radius: .7rem; border: 1px solid var(--line, #e2e8f0); background: #fff; }
.ach-card .ach-ic { width: 2.6rem; height: 2.6rem; }
.ach-card b { display: block; }
.ach-card.locked { opacity: .55; background: #f5f7fa; }
.ach-card.locked .ach-ic { background: #cbd5e1; }
.ach-bar { height: .5rem; border-radius: 1rem; background: #e2e8f0; overflow: hidden; max-width: 22rem; margin: .4rem 0 1rem; }
.ach-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f5b942, #d97706); }
