/* ==========================================================================
   Eichholz Turtles · Mitgliederverwaltung
   Look & Feel angelehnt an ehturtles.at: Nachtgrün, Eisflächen-Linien,
   kondensierte Großbuchstaben-Headlines mit kursivem Akzent.
   Keine externen Schriften (Datenschutz), keine Inline-Styles (CSP).
   ========================================================================== */

:root {
  --night: #050b08;
  --deep: #07110c;
  --surface: #0b1712;
  --surface-2: #102019;
  --surface-3: #162a21;
  --line: #1a2e25;
  --line-2: #284437;
  --ice: #e9f2ec;
  --frost: #b6c8bd;
  --mute: #7d9488;
  --turtle: #41d37e;
  --turtle-2: #2bab64;
  --turtle-ink: #03130a;
  --turtle-glow: rgba(65, 211, 126, .14);
  --coral: #ff6b57;
  --sky: #7cc4ff;
  --amber: #f3b641;

  --f-display: "Bahnschrift", "DIN Condensed", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
  --rail: 268px;
  --gutter: clamp(16px, 3.2vw, 44px);
  color-scheme: dark;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--night); color: var(--ice);
  font: 15px/1.55 var(--f-text); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--turtle); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--turtle); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--turtle); color: var(--turtle-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--turtle); color: var(--turtle-ink); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }
.muted { color: var(--mute); }
.fine { color: var(--mute); font-size: 13px; }
.calm { color: var(--mute); padding: 6px 0 4px; }
.opt { color: var(--mute); font-weight: 400; font-size: 12px; margin-left: 4px; }
.req { color: var(--turtle); }
.num, .code { font-variant-numeric: tabular-nums; }
.code { font-family: var(--f-display); letter-spacing: .06em; color: var(--frost); }
.tone-warn { color: var(--amber) !important; }

/* ---------- Typografie ---------- */
.title {
  font-family: var(--f-display); font-stretch: 75%; font-weight: 700;
  text-transform: uppercase; letter-spacing: -.005em; line-height: .92;
  font-size: clamp(2.3rem, 4.6vw, 4rem); color: var(--ice);
  overflow-wrap: anywhere;
}
.title em { font-style: italic; color: var(--turtle); }
.title-xl { font-size: clamp(3rem, 7.5vw, 6.4rem); }
.kicker {
  font-family: var(--f-display); font-stretch: 85%; font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; font-size: 12.5px; color: var(--mute); margin-bottom: 14px;
}
.kicker span { color: var(--turtle); }
.kicker a { color: var(--frost); }
.lede { color: var(--frost); margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 64ch; }
.lede .sep { color: var(--mute); }
.prose { color: var(--frost); max-width: 78ch; margin: 0 0 16px; }
ul.prose { padding-left: 18px; }
h2 { font-family: var(--f-display); font-stretch: 80%; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 21px; line-height: 1.1; }
h3 { font-size: 15px; font-weight: 650; margin-bottom: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ice);
  font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--surface-3); border-color: #3a5d4d; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--turtle); border-color: var(--turtle); color: var(--turtle-ink); }
.btn-primary:hover { background: #5be393; border-color: #5be393; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--frost); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--coral); border-color: var(--coral); color: #210703; }
.btn-danger:hover { background: #ff8574; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn-wide { width: 100%; min-height: 50px; font-size: 15px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--frost); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.link-btn:hover { color: var(--ice); }
.link-danger { color: var(--coral); font-size: 13px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stack { display: grid; gap: 16px; }

/* ---------- App-Rahmen ---------- */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 40;
  display: flex; flex-direction: column; gap: 22px; padding: 26px 18px 22px;
  background: var(--deep); border-right: 1px solid var(--line); overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ice); padding: 0 6px; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; }
.brand-word, .bar-brand span { font-family: var(--f-display); font-stretch: 80%; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; line-height: 1.05; }
.brand-word b, .bar-brand b { display: block; font-weight: 800; font-size: 22px; letter-spacing: .02em; color: var(--turtle); }
.logo-placeholder { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--turtle); color: var(--turtle-ink); font-weight: 800; }

.nav { display: grid; gap: 2px; }
.nav-link {
  display: flex; align-items: baseline; gap: 14px; padding: 11px 12px; border-radius: var(--r-sm);
  color: var(--frost); font-family: var(--f-display); font-stretch: 85%; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; font-size: 16px;
}
.nav-link:hover { background: var(--surface); color: var(--ice); text-decoration: none; }
.nav-num { font-size: 11.5px; color: var(--mute); letter-spacing: .1em; min-width: 18px; }
.nav-link.is-active { color: var(--ice); background: var(--surface-2); box-shadow: inset 3px 0 0 var(--turtle); }
.nav-link.is-active .nav-num { color: var(--turtle); }
.nav-sub { display: grid; margin: 2px 0 8px 44px; border-left: 1px solid var(--line); }
.nav-sub a { padding: 5px 12px; color: var(--mute); font-size: 13.5px; border-left: 2px solid transparent; margin-left: -1px; }
.nav-sub a:hover { color: var(--ice); text-decoration: none; }
.nav-sub a.is-active { color: var(--turtle); border-left-color: var(--turtle); }

.rail-actions { display: grid; gap: 8px; }
.rail-actions .btn { justify-content: flex-start; }
.rail-foot { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.rail-claim { font-family: var(--f-display); font-stretch: 75%; font-weight: 700; text-transform: uppercase; font-size: 26px; line-height: .95; color: var(--line-2); }
.rail-claim em { color: #2d5a43; }
.rail-user { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--mute); }

.shell { margin-left: var(--rail); min-height: 100vh; display: flex; flex-direction: column; }
.bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
  min-height: 60px; padding: 10px var(--gutter); padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(5, 11, 8, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar-brand, .menu-btn { display: none; }
.bar-season { font-family: var(--f-display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; color: var(--mute); margin-right: auto; }
.bar-site { font-size: 13px; color: var(--frost); margin-left: auto; }
.main { flex: 1; width: 100%; max-width: 1640px; padding: 32px var(--gutter) 56px; display: grid; gap: 24px; align-content: start; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--mute); font-size: 12.5px; }
.foot-band { font-family: var(--f-display); font-stretch: 80%; text-transform: uppercase; letter-spacing: .14em; }
.foot-band i, .marquee i { font-style: normal; color: var(--turtle); padding: 0 .5em; }
.nav-check, .scrim { display: none; }

/* ---------- Seitenkopf ---------- */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; }
.head > div:first-child { min-width: 0; flex: 1 1 420px; }

/* ---------- Panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2.2vw, 28px); min-width: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-head + .panel-head, ul + .panel-head { margin-top: 28px; }
.panel-head a { font-size: 13px; color: var(--frost); }
.panel-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; margin-left: 6px; border-radius: 999px; background: var(--turtle-glow); color: var(--turtle); font-size: 14px; vertical-align: 3px; }
.narrow { max-width: 620px; }
.danger-zone { border-color: rgba(255, 107, 87, .35); }
.danger-zone h2 { margin-bottom: 10px; }
.danger-zone p { color: var(--frost); margin-bottom: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }

/* ---------- Kennzahlen (wie „2020 · 2× · 24“ auf der Website) ---------- */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0; }
.figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 4px 22px; border-left: 1px solid var(--line-2); }
.figures > div:first-child { border-left: 0; padding-left: 0; }
.figures dt { color: var(--mute); font-size: 13px; }
.figures dd { margin: 0 0 4px; font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1; color: var(--ice); }
.figures dd small { font-size: .5em; color: var(--mute); font-weight: 600; margin-left: 2px; }
.figures dd.dd-text { font-size: 1.4rem; font-stretch: 85%; padding-top: .55em; }
.figures-inline { padding: 4px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 32px 40px; align-items: end;
  padding: clamp(26px, 4vw, 54px); border-radius: var(--r-lg); border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 85% 0%, #0f2a1d 0%, var(--surface) 55%, var(--deep) 100%);
}
.hero .lede { margin: 18px 0 26px; }
.hero .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
.hero .figures > div:nth-child(3) { border-left: 0; padding-left: 0; }
.rink { position: absolute; z-index: -1; inset: -6% -4% -6% 34%; width: 72%; height: 112%; opacity: .55; }
.rink rect, .rink line, .rink circle { fill: none; stroke: #1c3a2c; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.rink .blue { stroke: #1d3550; stroke-width: 3; }
.rink .red { stroke: #4a2420; }
.rink .dot { fill: #1c3a2c; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 12px 0; margin: -4px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font-family: var(--f-display); font-stretch: 75%; font-weight: 700; text-transform: uppercase; font-size: 22px; letter-spacing: .04em; color: var(--line-2); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.dash-teams { grid-column: span 7; }
.dash-todo { grid-column: span 5; }
.dash-stock { grid-column: span 7; }
.dash-recent { grid-column: span 5; }

.team-list, .todo, .cat-list, .feed, .gear-list, .status-grid { list-style: none; margin: 0; padding: 0; }
.team-list li + li { border-top: 1px solid var(--line); }
.team-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name count" "meter meter" "meta meta"; gap: 6px 12px; padding: 14px 4px; color: var(--ice); }
.team-list a:hover { text-decoration: none; background: linear-gradient(90deg, var(--turtle-glow), transparent 70%); }
.team-name { grid-area: name; font-family: var(--f-display); font-stretch: 80%; font-weight: 700; text-transform: uppercase; font-size: 20px; letter-spacing: .02em; }
.team-count { grid-area: count; font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: 30px; line-height: 1; color: var(--turtle); }
.team-list .meter { grid-area: meter; }
.team-meta { grid-area: meta; color: var(--mute); font-size: 13px; }

.meter { display: block; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--turtle-2), var(--turtle)); }
.p0 { width: 0; } .p5 { width: 5%; } .p10 { width: 10%; } .p15 { width: 15%; } .p20 { width: 20%; } .p25 { width: 25%; } .p30 { width: 30%; }
.p35 { width: 35%; } .p40 { width: 40%; } .p45 { width: 45%; } .p50 { width: 50%; } .p55 { width: 55%; } .p60 { width: 60%; } .p65 { width: 65%; }
.p70 { width: 70%; } .p75 { width: 75%; } .p80 { width: 80%; } .p85 { width: 85%; } .p90 { width: 90%; } .p95 { width: 95%; } .p100 { width: 100%; }

.todo li + li { border-top: 1px solid var(--line); }
.todo a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; color: var(--frost); }
.todo a:hover { color: var(--ice); text-decoration: none; }
.todo b { margin-left: auto; font-family: var(--f-display); font-stretch: 75%; font-size: 26px; line-height: 1; color: var(--ice); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--mute); }
.dot-yes { background: var(--turtle); } .dot-no { background: var(--coral); } .dot-unknown { background: var(--sky); } .dot-warn { background: var(--amber); } .dot-muted { background: var(--line-2); }

.mini-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 20px; }
.mini-figures > div { background: var(--surface-2); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.mini-figures dt { color: var(--mute); font-size: 12.5px; }
.mini-figures dd { margin: 0; font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: 32px; line-height: 1.05; }
.cat-list a { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(80px, 2fr) auto; align-items: center; gap: 14px; padding: 9px 4px; color: var(--frost); font-size: 14px; }
.cat-list a:hover { color: var(--ice); text-decoration: none; }
.cat-list b { font-weight: 600; color: var(--ice); font-size: 13px; min-width: 44px; text-align: right; }

.feed li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 4px; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed-who { color: var(--ice); font-weight: 600; }
.feed-what { grid-column: 1; color: var(--mute); font-size: 13.5px; }
.feed time { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--mute); font-size: 13px; }
.empty-inline { display: grid; gap: 14px; justify-items: start; color: var(--frost); }

/* ---------- Tabs (Mannschaften / Kategorien) ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.tabs a { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--frost); font-size: 14px; font-weight: 600; }
.tabs a small { color: var(--mute); font-weight: 500; margin-left: 4px; }
.tabs a:hover { border-color: #3a5d4d; color: var(--ice); text-decoration: none; }
.tabs a.is-active { background: var(--ice); border-color: var(--ice); color: var(--night); }
.tabs a.is-active small { color: #3d5247; }

/* ---------- Formularfelder ---------- */
.field { display: block; font-size: 13px; font-weight: 600; color: var(--frost); min-width: 0; }
.field > input, .field > select, .field > textarea { display: block; margin-top: 7px; }
.field > .sr + input, .field > .sr + select, .field > .sr + textarea { margin-top: 0; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--deep); color: var(--ice);
  font-size: 15px; font-weight: 400; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
select { -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
select option, select optgroup { background: var(--surface); color: var(--ice); }
input:hover, select:hover, textarea:hover { border-color: #3a5d4d; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--turtle); box-shadow: 0 0 0 3px var(--turtle-glow); }
input::placeholder, textarea::placeholder { color: #587064; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }
input[type="file"] { font-size: 14px; color: var(--frost); max-width: 100%; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ice); font-weight: 600; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--turtle); width: 18px; height: 18px; margin: 0; flex: none; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--frost); cursor: pointer; }
.search input { min-height: 48px; font-size: 16px; }

.filters { display: grid; gap: 16px; padding: 18px; border-radius: var(--r-md); }
.filter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.filter-row-inv { grid-template-columns: minmax(220px, 2.4fr) repeat(auto-fit, minmax(150px, 1fr)); }
.filter-row-inv .check { min-height: 44px; }
.more summary, .history summary { cursor: pointer; color: var(--frost); font-size: 14px; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.more summary::-webkit-details-marker, .history summary::-webkit-details-marker, .return summary::-webkit-details-marker { display: none; }
.more summary::before, .history summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 14px; line-height: 1; }
.more[open] summary::before, .history[open] summary::before { content: "−"; }
.more[open] > .filter-row, .more[open] > ul { margin-top: 14px; }
.filter-foot { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.filter-foot .fine { margin-left: auto; }

/* ---------- Tabellen ---------- */
.table-panel { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.tbl th { text-align: left; padding: 14px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); color: var(--mute); font-family: var(--f-display); font-stretch: 85%; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; white-space: nowrap; }
.tbl th.c, .tbl td.c { text-align: center; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: rgba(233, 242, 236, .025); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.sort { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.sort:hover { color: var(--ice); text-decoration: none; }
.sort::after { content: "↕"; opacity: .4; font-size: 11px; }
.sort.is-asc::after { content: "↑"; opacity: 1; color: var(--turtle); }
.sort.is-desc::after { content: "↓"; opacity: 1; color: var(--turtle); }
.myteam-yes td:first-child { box-shadow: inset 3px 0 0 var(--turtle); }
.myteam-no td:first-child { box-shadow: inset 3px 0 0 var(--coral); }
.myteam-unknown td:first-child { box-shadow: inset 3px 0 0 var(--sky); }
.cell-name { min-width: 170px; }
.player-link { color: var(--ice); font-weight: 600; }
.player-link .ln { text-transform: uppercase; letter-spacing: .02em; }
.player-link:hover { color: var(--turtle); text-decoration: none; }
.cell-name .sub { display: block; color: var(--mute); font-size: 13px; }
.flag-review { display: block; margin-top: 3px; color: var(--amber); font-size: 12px; font-weight: 600; }
.age { color: var(--mute); font-size: 13px; margin-left: 4px; white-space: nowrap; }
.cell-born { white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { padding-left: 20px; }
.pill-q { padding: 3px 9px; }
.cell-gear { min-width: 180px; max-width: 340px; }
.cell-stock { min-width: 150px; }
.cell-stock .meter { margin-top: 6px; height: 4px; }
.stock b { font-size: 16px; }
.cell-holders { color: var(--frost); font-size: 13.5px; max-width: 280px; }
.tbl-items tr.is-out .stock b { color: var(--amber); }
.is-empty td { padding: 32px 20px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--frost); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .fine { margin-left: auto; }

/* Pills, Tags, Chips */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-yes { background: rgba(65, 211, 126, .12); color: var(--turtle); }
.pill-no { background: rgba(255, 107, 87, .12); color: var(--coral); }
.pill-unknown { background: rgba(124, 196, 255, .1); color: var(--sky); }
.pill-warn { background: rgba(243, 182, 65, .12); color: var(--amber); }
.tag { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 9px; border-radius: 6px; background: var(--surface-3); color: var(--frost); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tag-open { color: var(--amber); }
.chip { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ice); font-size: 12.5px; white-space: nowrap; }
.chip-more { color: var(--turtle); border-color: rgba(65, 211, 126, .35); }
.chip-more:hover { text-decoration: none; background: var(--turtle-glow); }

/* ---------- Spieler-Detail ---------- */
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.status { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid transparent; }
.status span { color: var(--mute); font-size: 13px; }
.status b { font-family: var(--f-display); font-stretch: 80%; font-weight: 700; text-transform: uppercase; font-size: 22px; letter-spacing: .02em; }
.status-yes b { color: var(--turtle); } .status-yes { border-color: rgba(65, 211, 126, .22); }
.status-no b { color: var(--coral); } .status-no { border-color: rgba(255, 107, 87, .22); }
.status-unknown b { color: var(--sky); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.facts .full { grid-column: 1 / -1; }
.facts dt { color: var(--mute); font-size: 12.5px; margin-bottom: 3px; }
.facts dd { margin: 0; color: var(--ice); overflow-wrap: anywhere; }

.locker { background: linear-gradient(180deg, var(--surface-2), var(--surface) 240px); }
.gear-list { display: grid; gap: 10px; }
.gear { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--deep); border: 1px solid var(--line); }
.gear-main { display: grid; gap: 2px; min-width: 0; flex: 1 1 220px; }
.gear-cat { color: var(--turtle); font-family: var(--f-display); font-stretch: 85%; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; }
.gear-name { color: var(--ice); font-weight: 650; font-size: 16px; }
.gear-meta { color: var(--mute); font-size: 13px; }
.return { flex: none; }
.return summary { list-style: none; }
.return[open] { flex: 1 1 100%; }
.return[open] summary { display: none; }
.return-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.assign { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.assign-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, .6fr) minmax(0, 1.1fr); gap: 12px; margin-bottom: 14px; align-items: end; }
.assign-grid .assign-note { grid-column: 1 / -1; }
.assign-grid-wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) minmax(0, .5fr) minmax(0, .9fr) auto; margin: 0; }
.history { margin-top: 22px; }
.history ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.history li { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--frost); font-size: 14px; }
.history li .fine { margin-left: auto; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 30px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.form legend { font-family: var(--f-display); font-stretch: 80%; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 21px; padding: 0; margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.span-2 { grid-column: span 2; }
.team-picks, .cond-picks { display: flex; flex-wrap: wrap; gap: 10px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--frost); font-weight: 600; font-size: 14px; transition: all .15s; }
.pick span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--mute); }
.pick:hover span { border-color: #3a5d4d; color: var(--ice); }
.pick input:checked + span { background: var(--turtle-glow); border-color: var(--turtle); color: var(--ice); }
.pick input:checked + span::before { background: var(--turtle); border-color: var(--turtle); box-shadow: inset 0 0 0 3px var(--surface); }
.pick input:focus-visible + span { outline: 2px solid var(--turtle); outline-offset: 3px; }
.pick-no input:checked + span { background: rgba(255, 107, 87, .12); border-color: var(--coral); }
.pick-no input:checked + span::before { background: var(--coral); border-color: var(--coral); }
.pick-warn input:checked + span { background: rgba(243, 182, 65, .12); border-color: var(--amber); }
.pick-warn input:checked + span::before { background: var(--amber); border-color: var(--amber); }
.pick-unknown input:checked + span { background: rgba(124, 196, 255, .1); border-color: var(--sky); }
.pick-unknown input:checked + span::before { background: var(--sky); border-color: var(--sky); }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------- Ausrüstungs-Spinde ---------- */
.quick-assign h2 { margin-bottom: 16px; }
.lockers { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.locker-card { padding: 20px; display: flex; flex-direction: column; gap: 6px; border-radius: var(--r-md); }
.locker-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.locker-name { color: var(--ice); font-weight: 650; font-size: 16px; }
.locker-name .ln { text-transform: uppercase; letter-spacing: .02em; }
.locker-count { font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: 28px; line-height: 1; color: var(--turtle); }
.locker-teams { color: var(--mute); font-size: 13px; margin-bottom: 8px; }
.locker-card ul { list-style: none; margin: 0; padding: 0; }
.locker-card li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.locker-card li .gear-cat { grid-column: 1 / -1; font-size: 10.5px; }
.locker-card li a { color: var(--ice); }
.locker-card.is-bare { background: transparent; border-style: dashed; }

/* ---------- Import ---------- */
.import-actions { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.dropzone { display: grid; gap: 14px; align-content: space-between; justify-items: start; padding: 20px; border-radius: var(--r-md); border: 1.5px dashed var(--line-2); background: var(--deep); }
.dropzone-alt { border-style: solid; border-color: var(--line); }
.confirm-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 20px; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface-2); }
.tbl-import td { font-size: 13.5px; }

/* ---------- Meldungen ---------- */
.toast { padding: 14px 18px; border-radius: var(--r-md); border: 1px solid; font-weight: 550; transition: opacity .4s, transform .4s; }
.toast-ok { background: rgba(65, 211, 126, .1); border-color: rgba(65, 211, 126, .35); color: #bff0d1; }
.toast-error { background: rgba(255, 107, 87, .1); border-color: rgba(255, 107, 87, .4); color: #ffc9c0; }
.toast-warn { background: rgba(243, 182, 65, .08); border-color: rgba(243, 182, 65, .35); color: #f8dca2; margin-bottom: 12px; }
.toast.is-gone { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.empty-state { display: grid; gap: 16px; justify-items: start; padding: clamp(28px, 5vw, 60px); }
.empty-state p { color: var(--frost); max-width: 60ch; }
.empty-state .title { font-size: clamp(2rem, 4vw, 3.2rem); }

/* ---------- Anmeldung ---------- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(90% 70% at 70% 20%, #0f2a1d 0%, var(--night) 65%); }
.gate-card { width: min(980px, 100%); display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--surface); }
.gate-art { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 420px; background: var(--deep); border-right: 1px solid var(--line); overflow: hidden; }
.gate-art .rink { inset: 0; width: 100%; height: 100%; opacity: .9; }
.gate-logo { width: min(62%, 260px); height: auto; border-radius: 28px; filter: drop-shadow(0 20px 50px rgba(0, 0, 0, .6)); }
.gate-body { padding: clamp(28px, 5vw, 56px); display: grid; gap: 26px; align-content: center; }
.gate-body .kicker { margin: 0; }
.setup { max-width: 620px; display: grid; gap: 16px; }
.gate-info { padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: rgba(65, 211, 126, 0.05); }
.gate-info p { margin: 0; font-size: 14px; color: var(--text); }
.gate-info strong { font-weight: 600; }
.gate-info a { color: var(--turtle); text-decoration: none; transition: color 0.15s; }
.gate-info a:hover { color: var(--turtle-2); }

/* ---------- Menüpunkt Spieleranmeldungen ---------- */
.nav-reg { align-items: center; margin: 0 -8px; border: 1px solid var(--line-2); background: var(--surface); }
.nav-reg-label { flex: 1; line-height: 1.15; }
.badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--amber); color: #1d1300; font-family: var(--f-text); font-size: 12.5px; font-weight: 800; letter-spacing: 0; }

/* ---------- Spieleranmeldungen (Verwaltung) ---------- */
.share { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px 28px; align-items: center; }
.share h2 { margin-bottom: 6px; }
.share-links { display: grid; gap: 10px; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.share-row code { flex: 1 1 240px; min-width: 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--deep); border: 1px solid var(--line-2); color: var(--turtle); font-size: 14px; overflow-wrap: anywhere; user-select: all; }
.share-alt .fine { flex-basis: 100%; }
.share-alt code { color: var(--frost); }
.reg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.reg-card { display: flex; gap: 16px; padding: 14px; border-radius: var(--r-md); color: var(--ice); transition: border-color .15s, transform .15s; }
.reg-card:hover { text-decoration: none; border-color: #3a5d4d; transform: translateY(-1px); }
.reg-new { border-color: rgba(243, 182, 65, .45); }
.reg-thumb { flex: none; width: 84px; height: 104px; border-radius: 10px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; color: var(--turtle); font-size: 28px; }
.reg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.reg-info { display: grid; gap: 3px; align-content: center; justify-items: start; min-width: 0; }
.reg-name { font-weight: 650; font-size: 16px; }
.reg-name .ln { text-transform: uppercase; letter-spacing: .02em; }
.reg-meta { color: var(--mute); font-size: 13px; }
.reg-info .pill { margin-top: 4px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps li { display: flex; gap: 14px; padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.steps li > div { display: grid; gap: 6px; align-content: start; justify-items: start; min-width: 0; }
.steps .step-num { flex: none; }
.steps li.is-current { border-color: var(--turtle); background: linear-gradient(180deg, var(--turtle-glow), var(--surface) 70%); }
.steps li.is-done { opacity: .75; }
.steps li.is-done .step-num { background: var(--turtle); color: var(--turtle-ink); }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--f-display); font-stretch: 80%; font-weight: 700; font-size: 14px; color: var(--turtle); }
.confirm-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; }
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.doc { margin: 0; display: grid; gap: 10px; }
.doc-img { display: block; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; background: var(--deep); border: 1px solid var(--line); }
.doc-img img { width: 100%; height: 100%; object-fit: contain; }
.doc figcaption { display: grid; gap: 8px; }
.danger-inline summary { cursor: pointer; list-style: none; }
.danger-inline summary::-webkit-details-marker { display: none; }
.danger-inline[open] { flex-basis: 100%; }
.danger-inline form { margin-top: 12px; padding: 14px; border-radius: var(--r-md); border: 1px solid rgba(255, 107, 87, .35); justify-items: start; }

/* ---------- Öffentliche Anmeldeseite ---------- */
.is-public { background: radial-gradient(90% 50% at 80% 0%, #0f2a1d 0%, var(--night) 60%); }
.pub-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--gutter); padding-top: max(14px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.pub-brand { display: flex !important; align-items: center; gap: 10px; color: var(--ice); }
.pub-brand .bar-logo { width: 40px; height: 40px; object-fit: cover; border-radius: 9px; }
.pub-bar .bar-season { display: block; margin: 0; }
.pub-main { width: 100%; max-width: 860px; margin: 0 auto; padding: 28px var(--gutter) 48px; display: grid; gap: 18px; }
.pub-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 5vw, 48px) 0 8px; }
.pub-hero .rink { inset: -10% -30% auto 30%; width: 90%; height: 120%; opacity: .5; }
.pub-hero .lede { font-size: 16px; }
.pub-done { padding: clamp(40px, 10vw, 90px) 0; display: grid; gap: 4px; }
.pub-done .row { margin-top: 22px; }
.pub-form { display: grid; gap: 16px; }
.pub-step { display: grid; gap: 16px; }
.pub-step h2 { display: flex; align-items: center; gap: 12px; }
.pub-step .form-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.unit { color: var(--mute); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.photo-drop { position: relative; display: grid; min-height: 230px; border-radius: var(--r-md); border: 1.5px dashed var(--line-2); background: var(--deep); overflow: hidden; cursor: pointer; transition: border-color .15s, background .15s; }
.photo-drop:hover, .photo-drop:focus-within { border-color: var(--turtle); background: #08160f; }
.photo-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.photo-face { display: grid; gap: 6px; justify-items: center; align-content: center; text-align: center; padding: 22px 16px; color: var(--frost); font-size: 13.5px; }
.photo-face svg { width: 52px; height: 52px; fill: none; stroke: var(--turtle); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.photo-face b { color: var(--ice); font-size: 17px; }
.photo-cta { margin-top: 8px; padding: 9px 16px; border-radius: 999px; background: var(--turtle); color: var(--turtle-ink); font-style: normal; font-weight: 700; font-size: 14px; }
.photo-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.photo-ok { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; padding: 8px 12px; border-radius: 999px; background: rgba(3, 19, 10, .85); color: var(--turtle); font-weight: 700; font-size: 13px; text-align: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.photo-drop.has-photo { border-style: solid; border-color: var(--turtle); }
.photo-drop.has-photo .photo-face { visibility: hidden; }
.photo-drop.is-busy .photo-cta { opacity: .5; }
.photo-drop.is-busy .photo-cta::after { content: " …"; }
.consent-text { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--r-md); background: var(--deep); border: 1px solid var(--line); color: var(--frost); font-size: 14px; line-height: 1.55; }
.consent-text b { color: var(--ice); }
.consent-check { align-items: flex-start; font-size: 15px; color: var(--ice); line-height: 1.45; }
.consent-check input { margin-top: 2px; width: 22px; height: 22px; }
.h-captcha-container { margin: 20px 0; display: flex; justify-content: center; }
.h-captcha { transform: scale(0.9); transform-origin: 0 0; }
@media (max-width: 600px) { .h-captcha { transform: scale(0.85); transform-origin: 0 0; } }
.pub-submit { display: grid; gap: 10px; justify-items: center; padding: 8px 0 20px; }
.pub-submit .btn-wide { min-height: 56px; font-size: 16px; }
.pub-submit .btn[disabled] { opacity: .6; cursor: wait; }
.pub-foot a { color: var(--frost); }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
  .dash-teams, .dash-todo, .dash-stock, .dash-recent { grid-column: span 12; }
  .assign-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assign-grid-wide .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .rink { inset: -10% -20% auto 20%; width: 100%; height: 90%; }
}
@media (max-width: 960px) {
  :root { --rail: 300px; }
  .rail { transform: translateX(-102%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s .28s; box-shadow: 30px 0 60px rgba(0, 0, 0, .5); padding-top: max(26px, env(safe-area-inset-top)); }
  .nav-check:checked ~ .rail { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
  .nav-check:checked ~ .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .55); }
  .shell { margin-left: 0; }
  .menu-btn { display: inline-grid; place-content: center; gap: 5px; width: 44px; height: 44px; margin-left: -8px; border-radius: 50%; cursor: pointer; }
  .menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ice); transition: transform .2s; }
  .nav-check:checked ~ .shell .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-check:checked ~ .shell .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .bar-brand { display: flex; align-items: center; gap: 10px; color: var(--ice); }
  .bar-brand:hover { text-decoration: none; }
  .bar-logo { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; }
  .bar-brand span { font-size: 12px; }
  .bar-brand b { font-size: 17px; }
  .bar-season { display: none; }
  .bar-site { margin-left: auto; }
}
@media (max-width: 860px) {
  /* Tabellen werden zu Karten */
  .table-panel { background: transparent; border: 0; overflow: visible; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl tbody { display: grid; gap: 12px; }
  .tbl tr { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 10px; padding: 16px 16px 16px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
  .tbl tbody tr:hover { background: var(--surface); }
  .tbl td, .tbl td:first-child { padding: 0; border: 0; min-width: 0; }
  .tbl td::before { content: attr(data-label); display: block; color: var(--mute); font-size: 11.5px; font-family: var(--f-display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
  .tbl td.c { text-align: left; }
  .tbl td.cell-name { grid-column: 1 / -1; font-size: 17px; }
  .tbl td.cell-name::before, .tbl tr.is-empty td::before { display: none; }
  .tbl td.cell-gear, .tbl td.cell-holders, .tbl td[data-label="Mannschaften"], .tbl td[data-label="Hinweise"] { grid-column: 1 / -1; max-width: none; min-width: 0; }
  .tbl td[data-label="Geboren"], .tbl td[data-label="Bestand"] { grid-column: span 2; }
  .tbl tr.is-empty { display: block; }
  .myteam-yes td:first-child, .myteam-no td:first-child, .myteam-unknown td:first-child { box-shadow: none; }
  .tbl tr.myteam-yes { box-shadow: inset 4px 0 0 var(--turtle); }
  .tbl tr.myteam-no { box-shadow: inset 4px 0 0 var(--coral); }
  .tbl tr.myteam-unknown { box-shadow: inset 4px 0 0 var(--sky); }
  .chip { white-space: normal; }
  .legend { border: 0; padding: 14px 4px 0; }
  .gate-card { grid-template-columns: 1fr; }
  .gate-art { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .gate-logo { width: 150px; }
  .import-actions { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .main { padding-top: 22px; gap: 20px; }
  .head .row { width: 100%; }
  .head .row .btn { flex: 1 1 auto; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .figures > div { padding: 2px 14px; }
  .figures > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .mini-figures { gap: 8px; }
  .mini-figures > div { padding: 12px; }
  .mini-figures dd { font-size: 26px; }
  .assign-grid, .assign-grid-wide { grid-template-columns: 1fr 1fr; }
  .assign-grid .assign-item, .assign-grid-wide .field:not(.field-sm) { grid-column: 1 / -1; }
  .span-2 { grid-column: auto; }
  .filter-row, .filter-row-inv { grid-template-columns: 1fr 1fr; }
  .filter-row .search, .filter-row-inv .search, .filter-row-inv .check, .filter-row-inv .row { grid-column: 1 / -1; }
  .filter-foot .fine { margin-left: 0; flex-basis: 100%; }
  .tbl tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbl td[data-label="Geboren"], .tbl td[data-label="Bestand"] { grid-column: 1 / -1; }
  .cat-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .cat-list .meter { grid-column: 1 / -1; grid-row: 2; }
  .foot { justify-content: center; text-align: center; }
  .marquee span { font-size: 18px; }
}
@media (max-width: 860px) {
  .share { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-drop { min-height: 190px; }
  .doc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .reg-grid { grid-template-columns: 1fr; }
  .pub-step .form-grid { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .pub-step .form-grid .field:not(.half) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .rail, .bar, .foot, .filters, .tabs, .marquee, .row, .assign, .return, .scrim { display: none !important; }
  .shell { margin: 0; }
  body { background: #fff; color: #000; }
  .panel { border-color: #ccc; background: #fff; }
}
