/* FFA Vereinsapp – Schwarz / Rot / „böse“ */
:root {
  --bg: #0b0b0c;
  --bg2: #111113;
  --card: #161618;
  --card2: #1d1d20;
  --line: #2a2a2e;
  --line2: #38383d;
  --text: #f2f2f3;
  --muted: #9a9aa2;
  --dim: #6d6d75;
  --red: #e10600;
  --red2: #ff2a1f;
  --red-dark: #7a0400;
  --red-glow: rgba(225, 6, 0, .35);
  --ok: #25c26e;
  --warn: #f5b301;
  --bad: #ff3b30;
  --info: #3fa7ff;
  --radius: 10px;
  --radius-sm: 6px;
  --head: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", "sans-serif-condensed", "Helvetica Neue", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sidebar: 248px;
  --top: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  background-image:
    radial-gradient(1200px 500px at 110% -10%, rgba(225, 6, 0, .10), transparent 60%),
    radial-gradient(800px 400px at -20% 110%, rgba(225, 6, 0, .06), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--red2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; margin: 0 0 .6em; }
h1 { font-size: clamp(26px, 5vw, 36px); }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
h4 { font-size: 14px; color: var(--muted); letter-spacing: .1em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.red { color: var(--red2); }
.ok-t { color: var(--ok); } .warn-t { color: var(--warn); } .bad-t { color: var(--bad); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt0 { margin-top: 0 !important; } .mb0 { margin-bottom: 0 !important; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.hidden { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.ic.sm { width: 16px; height: 16px; }
.ic.lg { width: 28px; height: 28px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }

/* ---------------------------------------------------------- Layout */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--top);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: rgba(0, 0, 0, .82); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--red), transparent 70%); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; min-width: 0; }
.brand img { height: 42px; width: auto; filter: drop-shadow(0 0 10px rgba(225, 6, 0, .25)); }
.brand .bt { font-family: var(--head); font-weight: 800; text-transform: uppercase; line-height: 1; }
.brand .bt small { display: block; font-size: 10px; letter-spacing: .22em; color: var(--red2); margin-bottom: 4px; }
.brand .bt span { font-size: 17px; letter-spacing: .05em; white-space: nowrap; }
.topbar .spacer { flex: 1; }
.iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text); background: transparent; border: 1px solid transparent; cursor: pointer; }
.iconbtn:hover { background: var(--card); border-color: var(--line); text-decoration: none; }
.iconbtn .dot { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 700 11px/18px var(--body); text-align: center; box-shadow: 0 0 0 2px #000; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #2a2a2e, #141416); border: 1px solid var(--line2); font: 700 13px var(--head); letter-spacing: .04em; color: var(--text); flex: none; }
.avatar.red { background: linear-gradient(135deg, var(--red), var(--red-dark)); border-color: var(--red); }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }

.shell { display: flex; min-height: calc(100vh - var(--top)); }
.sidebar {
  position: sticky; top: var(--top); height: calc(100vh - var(--top)); width: var(--sidebar); flex: none; overflow-y: auto;
  padding: 18px 12px 30px; border-right: 1px solid var(--line); background: rgba(10, 10, 11, .7);
}
.nav-sec { font: 800 11px var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); padding: 16px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; color: #cfcfd4; font-weight: 500; text-decoration: none; margin-bottom: 2px; position: relative; }
.nav a:hover { background: var(--card); color: #fff; }
.nav a.active { background: linear-gradient(90deg, rgba(225, 6, 0, .22), rgba(225, 6, 0, .04)); color: #fff; }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.nav a .cnt { margin-left: auto; background: var(--red); color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.main { flex: 1; min-width: 0; padding: 26px clamp(14px, 3vw, 36px) 100px; max-width: 1240px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin-top: 6px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.backlink { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.kicker { font: 800 12px var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--red2); margin-bottom: 6px; }

.bottomnav { display: none; }
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; height: 100%; z-index: 60; transform: translateX(-102%); transition: transform .22s ease; background: #0a0a0b; padding-top: 20px; width: 280px; box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; }
  .main { padding-bottom: calc(96px + var(--safe-b)); }
  .bottomnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px 6px calc(6px + var(--safe-b));
    background: rgba(0, 0, 0, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .bottomnav a, .bottomnav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: var(--muted); font: 700 10.5px var(--body); letter-spacing: .03em; text-decoration: none; background: none; border: 0; position: relative; }
  .bottomnav a.active { color: #fff; }
  .bottomnav a.active .ic { color: var(--red2); filter: drop-shadow(0 0 6px var(--red-glow)); }
  .bottomnav .cnt { position: absolute; top: 2px; left: 55%; background: var(--red); color: #fff; border-radius: 9px; font-size: 10px; padding: 0 5px; line-height: 16px; }
  .brand .bt span { font-size: 15px; }
  .hide-m { display: none !important; }
}
@media (min-width: 901px) { .show-m { display: none !important; } }
.scrim { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 50; }

/* ---------------------------------------------------------- Cards & Grids */
.card { background: linear-gradient(180deg, var(--card), #131315); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; position: relative; }
.card.tight { padding: 0; overflow: hidden; }
.card.accent { border-color: rgba(225, 6, 0, .5); box-shadow: 0 0 0 1px rgba(225, 6, 0, .15), 0 10px 40px -20px var(--red-glow); }
.card.accent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: var(--radius) 0 0 var(--radius); background: var(--red); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card.tight .card-head { padding: 16px 18px 0; }
.grid { display: grid; gap: 18px; }
.grid.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.g4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: relative; overflow: hidden; }
.stat .v { font: 800 30px/1 var(--head); letter-spacing: .02em; }
.stat .l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-top: 6px; }
.stat.red .v { color: var(--red2); }
.stat::after { content: ""; position: absolute; right: -20px; bottom: -20px; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, rgba(225, 6, 0, .12), transparent 70%); }
.stat a { position: absolute; inset: 0; }

/* ---------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--radius-sm);
  font: 800 13.5px var(--head); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; text-decoration: none !important;
  border: 1px solid var(--line2); background: var(--card2); color: var(--text); transition: transform .06s, background .15s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { background: #26262a; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, var(--red2), var(--red)); border-color: var(--red); color: #fff; box-shadow: 0 6px 20px -8px var(--red-glow); }
.btn.primary:hover { background: linear-gradient(180deg, #ff4136, #f00800); box-shadow: 0 8px 28px -8px rgba(225, 6, 0, .6); }
.btn.ok { background: #13321f; border-color: #1f6a3e; color: #7cf0aa; }
.btn.ok:hover { background: #184027; }
.btn.danger { background: #2a0d0c; border-color: #5d1512; color: #ff8a80; }
.btn.danger:hover { background: #3a1110; }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 12px; }
.btn.lg { min-height: 52px; padding: 0 26px; font-size: 15px; }
.btn.block { display: flex; width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.linkbtn { background: none; border: 0; color: var(--red2); cursor: pointer; font: inherit; padding: 0; }
.linkbtn:hover { text-decoration: underline; }
form.inline { display: inline; }

/* ---------------------------------------------------------- Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font: 700 11px var(--body); letter-spacing: .06em; text-transform: uppercase; background: #26262a; color: #c9c9cf; border: 1px solid #333338; white-space: nowrap; }
.badge.ok { background: rgba(37, 194, 110, .12); color: #6ee7a0; border-color: rgba(37, 194, 110, .35); }
.badge.warn { background: rgba(245, 179, 1, .12); color: #ffd25e; border-color: rgba(245, 179, 1, .35); }
.badge.bad { background: rgba(255, 59, 48, .12); color: #ff8a80; border-color: rgba(255, 59, 48, .35); }
.badge.red { background: var(--red); color: #fff; border-color: var(--red); }
.badge.info { background: rgba(63, 167, 255, .12); color: #8cc8ff; border-color: rgba(63, 167, 255, .35); }
.rolechip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #1f1f22; border: 1px solid #333338; margin: 2px 4px 2px 0; }
.rolechip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------------------------------------------------------- Alerts */
.flash { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.flash.success { background: rgba(37, 194, 110, .1); border-color: rgba(37, 194, 110, .4); color: #b8f5d0; }
.flash.error { background: rgba(255, 59, 48, .1); border-color: rgba(255, 59, 48, .45); color: #ffc2bd; }
.flash.info { background: rgba(63, 167, 255, .08); border-color: rgba(63, 167, 255, .35); color: #cfe7ff; }
.flash.warn { background: rgba(245, 179, 1, .08); border-color: rgba(245, 179, 1, .35); color: #ffe7a3; }
.notice { padding: 14px 16px; border-radius: var(--radius-sm); background: #121214; border: 1px dashed var(--line2); color: var(--muted); }
.notice.locked { display: flex; gap: 12px; align-items: center; border-style: solid; border-color: #2e2e33; background: repeating-linear-gradient(-45deg, #121214 0 12px, #151517 12px 24px); }
.offline-bar { display: none; position: sticky; top: var(--top); z-index: 25; background: #3a2a00; color: #ffd25e; text-align: center; font-size: 13px; font-weight: 700; padding: 6px; letter-spacing: .04em; }
body.is-offline .offline-bar { display: block; }

/* ---------------------------------------------------------- Forms */
label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field .hint { font-size: 12.5px; color: var(--dim); margin-top: 5px; text-transform: none; letter-spacing: 0; font-weight: 400; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=datetime-local], input[type=time], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line2); background: #0d0d0f; color: var(--text);
  font: 15px var(--body); outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 6, 0, .2); }
input[type=file] { color: var(--muted); font-size: 14px; max-width: 100%; }
input[type=file]::file-selector-button { font: 800 12px var(--head); letter-spacing: .1em; text-transform: uppercase; background: var(--card2); color: var(--text); border: 1px solid var(--line2); padding: 10px 14px; border-radius: 6px; margin-right: 12px; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text); cursor: pointer; margin-bottom: 10px; }
.check input { width: 20px; height: 20px; accent-color: var(--red); flex: none; margin-top: 1px; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.row.r2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 4px; margin: 0 0 18px; }
legend { padding: 0 8px; font: 800 13px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--red2); }
.req::after { content: " *"; color: var(--red2); }

/* Segment-Auswahl (Ja/Nein) */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice button { min-height: 64px; border-radius: var(--radius); border: 2px solid var(--line2); background: var(--card2); color: var(--text); font: 800 17px var(--head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.choice button.yes:hover { border-color: var(--ok); background: #102618; }
.choice button.no:hover { border-color: var(--bad); background: #2a0d0c; }
.answer { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); border: 2px solid; }
.answer.yes { border-color: rgba(37, 194, 110, .5); background: rgba(37, 194, 110, .08); }
.answer.no { border-color: rgba(255, 59, 48, .45); background: rgba(255, 59, 48, .07); }
.answer .big { font: 800 22px var(--head); text-transform: uppercase; letter-spacing: .05em; }
.answer .ic { width: 34px; height: 34px; }

/* ---------------------------------------------------------- Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 800 11.5px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line2); white-space: nowrap; background: #121214; position: sticky; top: 0; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: rgba(255, 255, 255, .015); }
.tbl tr.sel td { background: rgba(225, 6, 0, .06); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td.actions { white-space: nowrap; text-align: right; }
@media (max-width: 720px) {
  table.tbl.stack thead { display: none; }
  table.tbl.stack, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td { display: block; width: 100%; }
  .tbl.stack tr { border-bottom: 1px solid var(--line2); padding: 10px 4px; }
  .tbl.stack td { border: 0; padding: 4px 12px; text-align: left !important; }
  .tbl.stack td[data-l]::before { content: attr(data-l); display: inline-block; min-width: 110px; font: 700 11px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
  .tbl.stack td.actions { text-align: left !important; padding-top: 8px; }
}

/* ---------------------------------------------------------- Listen */
.list { list-style: none; margin: 0; padding: 0; }
.list > li, .list > a { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.list > li:last-child, .list > a:last-child { border-bottom: 0; }
.list > a:hover { background: rgba(255, 255, 255, .02); }
.list .grow { flex: 1; min-width: 0; }
.list .t { font-weight: 700; }
.list .s { color: var(--muted); font-size: 13px; }
.datebox { flex: none; width: 54px; text-align: center; border-radius: 8px; background: #0d0d0f; border: 1px solid var(--line2); overflow: hidden; }
.datebox .m { background: var(--red); color: #fff; font: 800 10px/18px var(--head); letter-spacing: .14em; text-transform: uppercase; }
.datebox .d { font: 800 22px/30px var(--head); }
.datebox .w { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; padding-bottom: 3px; }

/* Event-Karte */
.evcard { display: block; position: relative; padding: 18px; border-radius: var(--radius); background: linear-gradient(135deg, #1a1a1d 0%, #121214 60%); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; overflow: hidden; margin-bottom: 14px; transition: border-color .15s, transform .15s; }
.evcard:hover { border-color: #4a1210; transform: translateY(-1px); }
.evcard.umzug::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; background: url(../img/logo-dark-small.png) center/contain no-repeat; opacity: .06; transform: rotate(12deg); }
.evcard .top { display: flex; gap: 14px; align-items: flex-start; }
.evcard h3 { margin: 2px 0 6px; font-size: 20px; }
.evcard .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13.5px; }
.evcard .meta span { display: inline-flex; align-items: center; gap: 6px; }
.evcard .foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }

/* Info-Kacheln Bus etc. */
.infotiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.infotile { background: #0f0f11; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.infotile .l { display: flex; gap: 6px; align-items: center; font: 800 11px var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.infotile .l .ic { width: 15px; height: 15px; color: var(--red2); }
.infotile .v { font: 800 20px/1.15 var(--head); letter-spacing: .02em; }
.infotile .v small { display: block; font: 500 13px var(--body); color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.infotile.hl { border-color: rgba(225, 6, 0, .5); background: linear-gradient(135deg, rgba(225, 6, 0, .14), #0f0f11); }
.infotile.hl .v { font-size: 28px; }

/* ---------------------------------------------------------- Gespann / Raddienst */
.rig { position: relative; }
.rig svg { width: 100%; height: auto; display: block; }
.rig .wheel-tag { cursor: default; }
.rig .wheel-tag.mine { cursor: pointer; }
.rig-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.rig-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.slotlist { display: grid; gap: 8px; }
.slot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; background: #0f0f11; border: 1px solid var(--line); }
.slot.mine { border-color: var(--red); background: linear-gradient(90deg, rgba(225, 6, 0, .15), #0f0f11); }
.slot .sl { font: 800 11px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); min-width: 140px; }
.slot .sn { font-weight: 700; flex: 1; }
.slot.empty .sn { color: var(--dim); font-style: italic; font-weight: 400; }
.slot select { min-height: 36px; padding: 6px 30px 6px 10px; font-size: 14px; }
.lockbtn { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 4px; }
.lockbtn.on { color: var(--warn); }

/* ---------------------------------------------------------- Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 14px; color: var(--muted); font: 800 13px var(--head); letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; margin-bottom: -1px; }
.tabs a:hover { color: #fff; }
.tabs a.active { color: #fff; border-bottom-color: var(--red); }
.tabs a .cnt { background: var(--red); color: #fff; border-radius: 9px; font-size: 10px; padding: 1px 6px; margin-left: 6px; }

/* ---------------------------------------------------------- Dialog */
dialog { background: #141416; color: var(--text); border: 1px solid var(--line2); border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); }
dialog .dh { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
dialog .dh h3 { margin: 0; }
dialog .db { padding: 18px; overflow-y: auto; max-height: calc(100vh - 180px); }
dialog .df { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.pick-list { max-height: 50vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.pick-list label { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); margin: 0; font: 500 15px var(--body); text-transform: none; letter-spacing: 0; color: var(--text); cursor: pointer; }
.pick-list label:hover { background: rgba(255, 255, 255, .03); }
.pick-list input { accent-color: var(--red); width: 18px; height: 18px; }

/* ---------------------------------------------------------- Auth-Seiten */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-logo img { width: 150px; filter: drop-shadow(0 0 30px rgba(225, 6, 0, .35)); }
.auth-title { text-align: center; margin-bottom: 22px; }
.auth-title h1 { margin: 0; font-size: 30px; }
.auth-title p { color: var(--muted); margin: 6px 0 0; }

/* Öffentliche Formulare */
.public-wrap { max-width: 860px; margin: 0 auto; padding: 0 16px 60px; }
.public-hero { display: flex; gap: 20px; align-items: center; padding: 30px 0 24px; border-bottom: 2px solid var(--red); margin-bottom: 26px; }
.public-hero img { width: 92px; flex: none; }
.public-hero .kicker { margin: 0; }
.public-hero h1 { margin: 4px 0; }
.secno { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 22px; background: var(--red); color: #fff; font: 800 12px var(--head); border-radius: 4px; margin-right: 10px; }
.sigpad { border: 1px dashed var(--line2); border-radius: 8px; background: #fafafa; touch-action: none; width: 100%; height: 180px; display: block; cursor: crosshair; }
.feebox { display: flex; gap: 16px; align-items: center; padding: 14px 16px; background: #000; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 16px; }
.feebox .amt { font: 800 30px var(--head); }
.feebox .amt small { font-size: 11px; color: var(--red2); letter-spacing: .16em; margin-left: 6px; }

/* Songs */
.song { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; background: #0f0f11; border: 1px solid var(--line); margin-bottom: 10px; }
.song img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; flex: none; background: #222; }
.song .ph { width: 56px; height: 56px; border-radius: 6px; flex: none; background: linear-gradient(135deg, #1db954, #0e5c2a); display: flex; align-items: center; justify-content: center; }
.song .grow { flex: 1; min-width: 0; }
.song .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song .s { font-size: 13px; color: var(--muted); }
.mark { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mark.yes { background: rgba(37, 194, 110, .15); color: var(--ok); border: 1px solid rgba(37, 194, 110, .4); }
.mark.no { background: rgba(255, 59, 48, .12); color: var(--bad); border: 1px solid rgba(255, 59, 48, .4); }
.mark.q { background: #1f1f22; color: var(--muted); border: 1px solid var(--line2); }

/* Fortschritt */
.bar { height: 8px; border-radius: 4px; background: #222226; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red2)); border-radius: 4px; }
.bar.ok > i { background: linear-gradient(90deg, #1b8f50, var(--ok)); }
.prob { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.prob .bar { flex: 1; }
.prob span { font-variant-numeric: tabular-nums; font-size: 13px; min-width: 38px; text-align: right; }

/* Phasen-Stepper */
.steps { display: flex; gap: 0; margin: 4px 0 20px; overflow-x: auto; }
.steps .st { flex: 1; min-width: 110px; position: relative; padding: 10px 6px 0; text-align: center; font: 800 11px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.steps .st::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: #2a2a2e; }
.steps .st.done { color: var(--muted); }
.steps .st.done::before { background: #6b1512; }
.steps .st.cur { color: #fff; }
.steps .st.cur::before { background: var(--red); box-shadow: 0 0 12px var(--red-glow); }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ic { width: 44px; height: 44px; color: var(--dim); margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14.5px; }
.kv dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding-top: 2px; }
.kv dd { margin: 0; }
.files { display: grid; gap: 8px; }
.filelink { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; background: #0f0f11; border: 1px solid var(--line); color: var(--text); }
.filelink:hover { border-color: var(--red); text-decoration: none; }
.filelink .ic { color: var(--red2); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.thumbs a { display: block; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a, .chips span.chip { padding: 6px 12px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line2); color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.chips a.active { background: var(--red); border-color: var(--red); color: #fff; }
.search { position: relative; }
.search input { padding-left: 38px; }
.search .ic { position: absolute; left: 11px; top: 12px; color: var(--dim); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .grow { flex: 1; min-width: 200px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px 16px; background: rgba(12, 12, 14, .95); border-top: 1px solid var(--line); }
@media (max-width: 900px) { .sticky-actions { bottom: calc(66px + var(--safe-b)); } }
.drinkrow.done td { opacity: .5; text-decoration: line-through; }
.footer-note { color: var(--dim); font-size: 12px; text-align: center; margin-top: 40px; }
@media print {
  .topbar, .sidebar, .bottomnav, .no-print, .offline-bar { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border-color: #ccc; background: #fff; }
}
@media (max-width: 560px) {
  .slot { flex-wrap: wrap; }
  .slot .sl { min-width: 100%; }
  .slot .sn { min-width: 0; overflow-wrap: anywhere; }
}
