
:root{--bg:#09090a;--side:#0f0f12;--surface:#131317;--surface2:#1b1b20;--hover:#222228;--line:rgba(255,255,255,.08);--line-soft:rgba(255,255,255,.05);
--red:#c8161d;--red-bright:#ee2a31;--red-dim:rgba(200,22,29,.14);--red-line:rgba(238,42,49,.45);--text:#f3f3f4;--muted:#9b9ba3;--faint:#6b6b73;
--green:#41d27a;--green-bg:rgba(65,210,122,.12);--black:#d9d9de;--black-bg:rgba(217,217,222,.09);--amber:#f5b54a;--amber-bg:rgba(245,181,74,.12);
--radius:22px;--radius-md:16px;--radius-sm:12px;--shadow:0 1px 0 rgba(255,255,255,.04) inset,0 18px 40px -24px rgba(0,0,0,.8);
--surface-grad:linear-gradient(180deg,rgba(30,30,36,.78),rgba(14,14,18,.82));--edge:linear-gradient(160deg,rgba(255,255,255,.18),rgba(255,255,255,.05) 30%,rgba(255,255,255,.02) 65%,rgba(238,42,49,.35));--ease:.16s ease}
*{box-sizing:border-box}
html{color-scheme:dark;background:var(--bg)}
body{margin:0;min-height:100vh;color:var(--text);font:14px/1.6 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased}
/* Hintergrund: rotes Licht von oben, feines Raster, Logo als Wasserzeichen, dunkle Ränder. Fest stehend, scrollt nicht mit. */
body::before,body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none}
body::before{background:radial-gradient(70% 55% at 50% -12%,rgba(200,22,29,.30),transparent 70%),radial-gradient(40% 40% at -5% 30%,rgba(200,22,29,.12),transparent 70%),radial-gradient(45% 45% at 105% 95%,rgba(120,10,16,.22),transparent 70%),linear-gradient(rgba(255,255,255,.028) 1px,transparent 1px) 0 0/48px 48px,linear-gradient(90deg,rgba(255,255,255,.028) 1px,transparent 1px) 0 0/48px 48px,radial-gradient(120% 90% at 50% 40%,transparent 55%,rgba(0,0,0,.75))}
body::after{inset:auto;top:50%;right:-240px;width:820px;height:820px;background:url(/logo.png) no-repeat center/contain;opacity:.07;filter:grayscale(1) contrast(1.6);transform:translateY(-50%) rotate(-16deg);-webkit-mask:linear-gradient(105deg,transparent 20%,#000 75%);mask:linear-gradient(105deg,transparent 20%,#000 75%)}
::selection{background:rgba(238,42,49,.45);color:#fff}
html{scrollbar-color:#2a2a31 transparent}
a{color:var(--red-bright);text-decoration:none}
a:hover{text-decoration:underline}
h1{margin:0;font-size:34px;line-height:1.1;font-weight:900;letter-spacing:.02em;text-transform:uppercase;background:linear-gradient(180deg,#fff 30%,#b9b9c1);-webkit-background-clip:text;background-clip:text;color:transparent}
h2{display:flex;align-items:center;gap:10px;margin:0;font-size:15px;font-weight:700}
h2 .icon{display:grid;place-items:center;width:32px;height:32px;padding:7px;border-radius:10px;background:linear-gradient(160deg,rgba(238,42,49,.32),rgba(200,22,29,.08));color:#ff5a5f;box-shadow:inset 0 0 0 1px rgba(238,42,49,.3),0 6px 16px -8px rgba(238,42,49,.8)}
p{margin:0}
.muted{color:var(--muted)}
.small{font-size:13px}
.icon{flex:none;width:18px;height:18px}
/* Grundgerüst: schwebende Navigation links, Inhalt rechts */
.app{display:grid;grid-template-columns:256px minmax(0,1fr);min-height:100vh}
.side{position:sticky;top:12px;height:calc(100vh - 24px);margin:12px 0 12px 12px;display:flex;flex-direction:column;gap:20px;padding:22px 14px;border-radius:var(--radius);overflow-y:auto}
/* Glasflächen mit Lichtkante: oben hell, unten rechts ein Hauch Rot */
.side,.panel,.stat,.profile,.card{position:relative;background:var(--surface-grad);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(16px) saturate(140%);backdrop-filter:blur(16px) saturate(140%)}
.side::before,.panel::before,.stat::before,.profile::before,.card::before{content:"";position:absolute;inset:0;padding:1px;border-radius:inherit;background:var(--edge);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
.brand{display:flex;align-items:center;gap:12px;padding:0 6px 18px;border-bottom:1px solid var(--line-soft);color:var(--text)}
.brand:hover{text-decoration:none}
.brand img{width:52px;height:52px;padding:5px;border-radius:16px;background:linear-gradient(160deg,#1d1d23,#0c0c0f);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),inset 0 1px 0 rgba(255,255,255,.08)}
.brand strong{display:block;font-size:19px;font-weight:900;letter-spacing:.08em;line-height:1}
.brand small{display:block;margin-top:5px;color:var(--red-bright);font-size:11px;font-weight:700;letter-spacing:.2em}
.side nav{display:flex;flex-direction:column;gap:3px;flex:1}
.nav-title{margin:16px 12px 6px;color:var(--faint);font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.nav-link{position:relative;display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:var(--radius-sm);color:var(--muted);font-weight:600;transition:background var(--ease),color var(--ease)}
.nav-link:hover{background:var(--hover);color:var(--text);text-decoration:none}
.nav-link[aria-current=page]{background:linear-gradient(90deg,rgba(200,22,29,.30),rgba(200,22,29,.04));color:var(--text);box-shadow:inset 0 0 0 1px rgba(238,42,49,.22)}
.nav-link[aria-current=page]::before{content:"";position:absolute;left:-14px;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:var(--red-bright);box-shadow:0 0 12px var(--red-bright)}
.nav-link[aria-current=page] .icon{color:var(--red-bright)}
.main{min-width:0}
.topbar{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:20px 32px 0}
.account{display:flex;align-items:center;gap:10px;padding:5px 14px 5px 5px;border:1px solid var(--line);border-radius:999px;background:rgba(20,20,25,.7);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:var(--text);font-weight:600}
.avatar{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;border:1px solid var(--line);background:var(--surface2);color:var(--muted);font-size:13px;font-weight:700;object-fit:cover}
.avatar.big{width:68px;height:68px;font-size:24px;box-shadow:0 0 0 4px var(--red-dim)}
.person{display:inline-flex;align-items:center;gap:10px;color:var(--text);font-weight:600}
a.person:hover{text-decoration:none;color:var(--red-bright)}
.badge.urlaub{background:var(--amber-bg);color:var(--amber)}
.badge.abmeldung{background:var(--black-bg);color:var(--black)}
.badge.offen{background:var(--red-dim);color:var(--red-bright)}
.badge.bezahlt{background:var(--green-bg);color:var(--green)}
.actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.actions form{display:inline}
.tabs{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--bg)}
.tabs.wrap{flex-wrap:wrap;align-self:flex-start;border-radius:var(--radius-md)}
.tabs a{padding:6px 14px;border-radius:999px;color:var(--muted);font-weight:700;font-size:13px;transition:background var(--ease),color var(--ease)}
.tabs a:hover{text-decoration:none;color:var(--text)}
.tabs a[aria-current=page]{background:var(--red);color:#fff}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;align-items:end}
.profile{display:flex;align-items:center;gap:18px;padding:22px;border-radius:var(--radius)}
.content{display:flex;flex-direction:column;gap:22px;padding:22px 32px 48px;max-width:1200px}
.hero{position:relative;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;padding:10px 4px 24px}
.hero::after{content:"";position:absolute;left:4px;right:0;bottom:0;height:1px;background:linear-gradient(90deg,var(--red-bright),rgba(238,42,49,.25) 30%,transparent 75%)}
.eyebrow{display:inline-block;margin-bottom:12px;padding:4px 12px;border-radius:999px;background:var(--red-dim);box-shadow:inset 0 0 0 1px rgba(238,42,49,.3);color:#ff5a5f;font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase}
.lead{margin-top:8px;color:var(--muted);max-width:640px}
/* Kennzahlen */
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.stat{overflow:hidden;padding:22px 24px;border-radius:var(--radius)}
.stat span{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.stat span::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--faint)}
.stat.gruen span::before{background:var(--green)}
.stat.schwarz span::before{background:var(--black)}
.stat.total span::before{background:var(--red-bright)}
.stat strong{display:block;margin-top:10px;font-size:30px;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:-.01em;background:linear-gradient(180deg,#fff 40%,#c4c4cb);-webkit-background-clip:text;background-clip:text;color:transparent}
.stat small{display:block;margin-top:4px;color:var(--muted);font-size:12px}
/* Flächen */
.panel{display:flex;flex-direction:column;gap:16px;padding:24px;border-radius:var(--radius)}
.panel-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.booking-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.booking-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2fr) auto;gap:12px;align-items:end}
/* Tabellen */
.table-wrap{overflow-x:auto}
table.list{width:100%;border-collapse:separate;border-spacing:0 4px;font-size:13px}
.list th,.list td{padding:10px 12px;text-align:left;vertical-align:middle;white-space:nowrap}
.list tbody td{background:rgba(255,255,255,.022);transition:background var(--ease)}
.list tbody td:first-child{border-radius:var(--radius-sm) 0 0 var(--radius-sm)}
.list tbody td:last-child{border-radius:0 var(--radius-sm) var(--radius-sm) 0}
.list tbody tr:hover td{background:rgba(255,255,255,.045)}
.list thead th{padding-top:0;padding-bottom:4px;color:var(--faint);font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.list td.note{white-space:normal;min-width:180px;color:var(--muted)}
.list td.num,.list th.num{text-align:right;font-variant-numeric:tabular-nums}
.amount{font-weight:750}
.amount.in{color:var(--green)}
.amount.out{color:var(--red-bright)}
.badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700}
.badge.gruen{background:var(--green-bg);color:var(--green)}
.badge.schwarz{background:var(--black-bg);color:var(--black)}
.badge.cat{background:var(--surface2);color:var(--muted)}
.empty{padding:28px;border:1px dashed var(--line);border-radius:var(--radius-md);background:rgba(255,255,255,.015);color:var(--muted);text-align:center}
/* Formulare */
form.stack{display:flex;flex-direction:column;gap:14px}
.field{display:flex;flex-direction:column;gap:6px}
.field>span{color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
input,select{width:100%;height:44px;padding:0 14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:rgba(0,0,0,.35);color:var(--text);font:inherit;transition:border-color var(--ease),box-shadow var(--ease)}
input:hover,select:hover{border-color:rgba(255,255,255,.14)}
input:focus,select:focus{outline:0;border-color:var(--red);box-shadow:0 0 0 4px var(--red-dim)}
.choice{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;border:1px solid var(--line);border-radius:var(--radius-md);background:rgba(0,0,0,.35)}
.choice.three{grid-template-columns:repeat(3,1fr)}
.choice label{position:relative}
.choice input{position:absolute;opacity:0;width:1px;height:1px}
.choice span{display:flex;align-items:center;justify-content:center;gap:8px;padding:9px;border-radius:var(--radius-sm);color:var(--muted);font-weight:700;cursor:pointer;transition:background var(--ease),color var(--ease)}
.choice span:hover{color:var(--text)}
.choice input:checked+span{background:var(--red);color:#fff;box-shadow:0 6px 18px -8px rgba(238,42,49,.7)}
.choice input:focus-visible+span{outline:2px solid var(--red-line);outline-offset:1px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 18px;border:1px solid var(--line);border-radius:999px;background:var(--surface2);color:var(--text);font:inherit;font-weight:700;cursor:pointer;transition:background var(--ease),border-color var(--ease),transform var(--ease)}
.button:hover{background:var(--hover);border-color:rgba(255,255,255,.14);text-decoration:none}
.button:active{transform:translateY(1px)}
.button.primary{border-color:rgba(255,120,120,.35);background:linear-gradient(180deg,#f2373e,#b5121a);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 10px 26px -10px rgba(238,42,49,.9)}
.button.primary:hover{background:linear-gradient(180deg,#ff4a50,#c8161d);box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 12px 30px -8px rgba(238,42,49,1)}
.button.small{padding:6px 12px;font-size:12px}
.button.danger{border-color:var(--red-line);background:transparent;color:var(--red-bright)}
.button.danger:hover{background:var(--red-dim)}
.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.filters .field{flex:1 1 150px}
.chart{margin:0;padding:12px 4px 0}
.chart svg{display:block;width:100%;height:auto}
.chart polyline{fill:none;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.chart .line-gruen{stroke:var(--green)}
.chart .line-schwarz{stroke:var(--black)}
.chart .axis{stroke:var(--line)}
.chart .zero{stroke:var(--red-line);stroke-dasharray:4 4}
.chart text{fill:var(--faint);font-size:10px}
.chart figcaption{display:flex;flex-wrap:wrap;gap:16px;margin-top:10px;font-size:13px}
.key::before{content:"";display:inline-block;width:10px;height:10px;margin-right:6px;border-radius:50%;background:var(--line)}
.key.gruen::before{background:var(--green)}
.key.schwarz::before{background:var(--black)}
.section-title{display:flex;align-items:center;gap:10px;margin:6px 4px -8px;color:var(--muted);font-size:12px;letter-spacing:.14em;text-transform:uppercase}
.section-title::before{content:"";width:18px;height:2px;border-radius:2px;background:var(--red-bright);box-shadow:0 0 8px var(--red-bright)}
a.stat.link{display:block;color:var(--text);text-decoration:none;transition:border-color var(--ease),transform var(--ease)}
a.stat.link:hover{transform:translateY(-2px);box-shadow:var(--shadow),0 0 0 1px var(--red-line),0 18px 40px -20px rgba(238,42,49,.6)}
.pager{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:13px}
details.confirm summary{list-style:none;cursor:pointer}
details.confirm summary::-webkit-details-marker{display:none}
details.confirm[open] summary{display:none}
details.confirm form{display:inline}
details.confirm .inline-form{display:flex;gap:6px}
.inline-form input{min-width:180px;height:32px;padding:0 12px;border-radius:999px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:6px;padding:5px 6px 5px 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface2);font-weight:600}
.chip button{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
.chip button:hover{background:var(--red-dim);color:var(--red-bright)}
.chip .icon{width:14px;height:14px}
.chip form{display:inline}
.assign{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.assign select{width:auto;min-width:180px;height:36px}
.check{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;white-space:nowrap}
.check input{width:16px;height:16px;accent-color:var(--red)}
.list tr.undone td{opacity:.5}
.list tr.undone .amount{text-decoration:line-through}
.alert .button{margin-left:auto;align-self:center}
.chip.person-chip{padding:5px 14px;color:var(--text)}
.chip.person-chip:hover{border-color:var(--red-line);text-decoration:none}
.alert{display:flex;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface)}
.alert.ok{border-color:rgba(65,210,122,.3);background:var(--green-bg)}
.alert.ok .icon{color:var(--green)}
.alert.warn{border-color:var(--red-line);background:var(--red-dim)}
.alert.warn .icon{color:var(--red-bright)}
.alert p{color:var(--muted)}
/* Anmeldung und Fehlerseiten */
.plain{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px) minmax(0,1fr);align-items:center;gap:56px;min-height:100vh;padding:24px}
.plain .card{grid-column:2}
/* Leaderschaft links, Kiezrat rechts: gleiten nacheinander von ihrer Seite herein */
.crew{width:100%;max-width:250px}
.crew.left{grid-column:1;justify-self:end}
.crew.right{grid-column:3;justify-self:start}
.crew h2{gap:12px;margin-bottom:16px;color:#ff5a5f;font-size:11px;font-weight:800;letter-spacing:.22em;text-transform:uppercase}
.crew h2::before,.crew h2::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,rgba(238,42,49,.5))}
.crew h2::after{background:linear-gradient(90deg,rgba(238,42,49,.5),transparent)}
.crew ul{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.crew li{display:flex;align-items:center;gap:10px;padding:6px 14px 6px 6px;border:1px solid var(--line);border-radius:999px;background:rgba(20,20,25,.7);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);font-weight:600}
.crew p{text-align:center}
.crew.left :is(h2,p,li){animation:from-left .6s cubic-bezier(.2,.7,.2,1) both}
.crew.right :is(h2,p,li){animation:from-right .6s cubic-bezier(.2,.7,.2,1) .15s both}
.crew.left li:nth-child(1){animation-delay:0.25s}.crew.right li:nth-child(1){animation-delay:0.40s}
.crew.left li:nth-child(2){animation-delay:0.33s}.crew.right li:nth-child(2){animation-delay:0.48s}
.crew.left li:nth-child(3){animation-delay:0.41s}.crew.right li:nth-child(3){animation-delay:0.56s}
.crew.left li:nth-child(4){animation-delay:0.49s}.crew.right li:nth-child(4){animation-delay:0.64s}
.crew.left li:nth-child(5){animation-delay:0.57s}.crew.right li:nth-child(5){animation-delay:0.72s}
.crew.left li:nth-child(6){animation-delay:0.65s}.crew.right li:nth-child(6){animation-delay:0.80s}
.crew.left li:nth-child(7){animation-delay:0.73s}.crew.right li:nth-child(7){animation-delay:0.88s}
.crew.left li:nth-child(8){animation-delay:0.81s}.crew.right li:nth-child(8){animation-delay:0.96s}
.crew.left li:nth-child(9){animation-delay:0.89s}.crew.right li:nth-child(9){animation-delay:1.04s}
.crew.left li:nth-child(10){animation-delay:0.97s}.crew.right li:nth-child(10){animation-delay:1.12s}
.crew.left li:nth-child(n+11){animation-delay:1.05s}.crew.right li:nth-child(n+11){animation-delay:1.20s}
@keyframes from-left{from{opacity:0;transform:translateX(-40px)}}
@keyframes from-right{from{opacity:0;transform:translateX(40px)}}
@media(prefers-reduced-motion:reduce){.crew *{animation:none!important}}
.card{display:flex;flex-direction:column;align-items:center;gap:16px;width:100%;max-width:420px;padding:40px 30px;border-radius:28px;text-align:center}
.card img{width:180px;height:180px}
@media(max-width:1100px){
  .plain{grid-template-columns:minmax(0,420px);justify-content:center;gap:28px}
  .plain .card{grid-column:1;order:-1}
  .crew.left,.crew.right{grid-column:1;justify-self:stretch;max-width:none}
}
.card h1{font-size:28px;letter-spacing:.12em}
.card .button{width:100%}
@media(max-width:900px){
  .app{grid-template-columns:1fr}
  .nav-link[aria-current=page]::before{display:none}
  .side{position:static;height:auto;margin:12px 12px 0;flex-direction:row;flex-wrap:wrap;align-items:center;padding:14px 16px}
  .side nav{flex-direction:row;flex-wrap:wrap;flex:1 1 100%}
  .nav-title{display:none}
  .topbar,.content{padding-left:12px;padding-right:12px}
  .stats,.booking-choices,.booking-fields{grid-template-columns:1fr}
  .actions{justify-content:flex-start}
}
