/* Krempel Cockpit – Stil nach krempel.ch: dunkel, Rot #ff0000, fette Display-Schrift */
@font-face { font-family: "Anton"; src: url("/fonts/anton.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0e0e0e;
  --bg-2: #161616;
  --panel: #191919;
  --panel-2: #222;
  --line: #2c2c2c;
  --line-2: #3a3a3a;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --red: #ff0000;
  --red-dim: #c40000;
  --orange: #ff8a00;
  --green: #2bd46b;
  --grey: #6b6b6b;
  --radius: 4px;
  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --side: 232px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.red { color: var(--red); }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ── Layout ─────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.shell > div { min-width: 0; }                 /* sonst drückt eine breite Tabelle die ganze Seite auf */
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; background: #000; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 0 14px; }
.brand { padding: 0 22px 22px; text-decoration: none; display: block; }
.brand .w { font-family: var(--display); font-size: 34px; line-height: .9; text-transform: uppercase; letter-spacing: .02em; display: block; }
.brand .s { font-family: var(--display); font-size: 15px; color: var(--red); letter-spacing: .28em; text-transform: uppercase; display: block; margin-top: 4px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 22px; text-decoration: none; color: #cfcfcf; font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; border-left: 3px solid transparent; }
.nav a:hover { color: #fff; background: #111; }
.nav a.on { color: #fff; border-left-color: var(--red); background: #141414; }
.nav a .badge { margin-left: auto; }
/* Aufklappbare Menügruppe (Marketing) */
.nav-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 22px; background: none; border: 0; border-left: 3px solid transparent;
  color: #cfcfcf; font: inherit; font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; text-align: left; }
.nav-head:hover { color: #fff; background: #111; }
.nav-group.active > .nav-head { color: #fff; }
.nav-head .chev { margin-left: auto; font-size: 18px; line-height: 1; transition: transform .2s; }
.nav-head .nav-sum + .chev { margin-left: 8px; }
.nav-head .nav-sum { margin-left: auto; }
.nav-group.open .nav-head .nav-sum { display: none; }
.nav-group.open .nav-head .chev { transform: rotate(90deg); margin-left: auto; }
.nav-kids { display: none; }
.nav-group.open .nav-kids { display: block; }
.nav a.sub-link { padding-left: 40px; font-size: 13px; color: #b5b5b5; }
.nav .sep { height: 1px; background: var(--line); margin: 10px 22px; }
.side .me { padding: 12px 22px 0; border-top: 1px solid var(--line); font-size: 13px; }
.side .me b { display: block; }
.side .me .me-id { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 2px; }
.side .me .me-id b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .me button { margin-top: 8px; }
.main { min-width: 0; padding: 32px clamp(16px, 3vw, 44px) 80px; }
.topbar { display: none; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.head .kicker { color: var(--red); font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 6px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }

/* ── Bausteine ──────────────────────────────────────── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card > h2, .card > h3 { margin-bottom: 14px; }
.btn { line-height: 1.25; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel-2); cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #fff; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.btn.primary:hover { background: var(--red-dim); border-color: var(--red-dim); }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; border-color: #5a1a1a; color: #ff6b6b; }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.iconbtn { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px 6px; font-size: 15px; }
.iconbtn:hover { color: #fff; }

label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #bdbdbd; margin: 14px 0 6px; }
label .req { color: var(--red); }
input[type=text], input[type=password], input[type=date], input[type=time], input[type=number], input[type=url], input[type=search], input[type=tel], input[type=email], select, textarea {
  width: 100%; background: #0b0b0b; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 12px; font-size: 15px; }
input:focus, select:focus, textarea:focus { border-color: #fff; outline: none; }
textarea { min-height: 90px; resize: vertical; }
.help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.check { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--text); font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }

.badge { font-family: var(--body); display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--panel-2); color: #ddd; border: 1px solid var(--line-2); }
.badge.red { background: var(--red); border-color: var(--red); color: #fff; }
.badge.entwurf { color: var(--orange); border-color: #5a3a00; background: #1d1300; }
.badge.bestaetigt { color: var(--green); border-color: #134d2a; background: #06190d; }
.badge.abgesagt { color: #ff6b6b; border-color: #5a1a1a; background: #1d0707; text-decoration: line-through; }
.badge.top { background: #fff; color: #000; border-color: #fff; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ampel-rot { background: var(--red); box-shadow: 0 0 0 3px rgba(255,0,0,.18); }
.ampel-orange { background: var(--orange); }
.ampel-grau { background: var(--grey); }
.ampel-gruen { background: var(--green); }
.ampel-aus { background: transparent; border: 1px solid var(--grey); }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-radius: 0; border-bottom: 3px solid transparent; padding: 12px 18px; cursor: pointer; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tabs button.on { color: #fff; border-bottom-color: var(--red); }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.seg button { background: transparent; border: 0; padding: 8px 14px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: #000; }

.empty { color: var(--muted); padding: 26px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ── Countdown-Zahl ─────────────────────────────────── */
.count { font-family: var(--display); line-height: .85; font-size: 54px; }
.count small { display: block; font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.count.soon { color: var(--red); }

/* ── Event-Kacheln wie krempel.ch ───────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tile { position: relative; display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: #fff; transform: translateY(-2px); }
.tile .img { aspect-ratio: 4 / 5; background: #000 center / cover no-repeat; position: relative; }
.tile .img.none { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, #141414 0 12px, #101010 12px 24px); }
.tile .img.none > span { font-family: var(--display); font-size: 42px; color: #262626; text-transform: uppercase; }
.tile .date { position: absolute; left: 0; top: 14px; background: var(--red); color: #fff; padding: 6px 12px 5px; font-family: var(--display); font-size: 20px; line-height: 1; text-transform: uppercase; }
.tile .date small { display: block; font-family: var(--body); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.tile .flags { position: absolute; right: 10px; top: 14px; display: flex; gap: 6px; flex-direction: column; align-items: flex-end; }
.tile .body { padding: 14px 16px 16px; }
.tile .body h3 { font-size: 19px; margin-bottom: 6px; }
.tile .meter { height: 4px; background: #000; margin-top: 12px; border-radius: 2px; overflow: hidden; }
.tile .meter i { display: block; height: 100%; background: var(--green); }
.tile .meter.late i { background: var(--red); }

/* ── Listen ─────────────────────────────────────────── */
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.item:last-child { border-bottom: 0; }
.item .t { font-weight: 600; }
.item .sub { font-size: 13px; color: var(--muted); }
.item .when { margin-left: auto; text-align: right; font-size: 13px; white-space: nowrap; }
a.item:hover .t { color: var(--red); }
.when.late { color: var(--red); font-weight: 700; }
.when.soon { color: var(--orange); font-weight: 700; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.off td { opacity: .45; }
.scroll-x { overflow-x: auto; }

/* ── Countdown-Zeitachse im Event ───────────────────── */
.timeline { position: relative; margin-left: 6px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); }
.tl { position: relative; padding: 0 0 18px 30px; }
.tl .dot { position: absolute; left: 0; top: 6px; width: 12px; height: 12px; }
.tl .tl-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tl .tl-head .t { font-weight: 700; }
.tl.done .t { text-decoration: line-through; color: var(--muted); }
.tl .ctrl { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.tl .ctrl select, .tl .ctrl input { width: auto; padding: 6px 8px; font-size: 13px; }
.tl.event-day .t { color: var(--red); }

/* ── Kalender ───────────────────────────────────────── */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.cal .dow { padding: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #000; }
.cal .day { min-height: 118px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); min-width: 0; }
.cal .day.out { background: var(--bg); }
.cal .day.out .n { color: #444; }
.cal .day.today .n { background: var(--red); color: #fff; }
.cal .n { display: inline-block; min-width: 24px; padding: 1px 6px; border-radius: 3px; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.cal .ev { display: block; text-decoration: none; padding: 3px 6px; margin-bottom: 3px; border-radius: 3px; font-size: 12px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.cal .ev.entwurf { background: transparent !important; border: 1px dashed currentColor; }
.cal .ev.abgesagt { opacity: .4; text-decoration: line-through; }
.cal .tk { display: flex; gap: 5px; align-items: center; font-size: 11.5px; color: #cfcfcf; text-decoration: none; padding: 1px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .tk .dot { width: 7px; height: 7px; }
.cal .ps { display: block; font-size: 11.5px; color: #e9e6e4; text-decoration: none; padding: 1px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .ps.done { color: var(--muted); }
.cal .ps:hover, .cal .tk:hover { color: #fff; }
.cal .tk.done { color: var(--muted); text-decoration: line-through; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 12px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }

/* ── Mediathek ──────────────────────────────────────── */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.mcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.mcard .thumb { aspect-ratio: 1; background: #000 center / contain no-repeat; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 28px; color: #333; text-decoration: none; }
.mcard .info { padding: 10px 12px; font-size: 13px; flex: 1; }
.mcard .info .fn { font-weight: 600; word-break: break-all; }
.mcard .acts { display: flex; gap: 2px; padding: 0 6px 8px; flex-wrap: wrap; }
.drop { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); margin-bottom: 18px; }
.drop.over { border-color: var(--red); color: #fff; background: #140000; }

/* ── Kommentare ─────────────────────────────────────── */
.comment { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment .grow { min-width: 0; }
.comment .who { font-size: 12px; color: var(--muted); }
.comment .who b { color: #fff; }
.comment p { margin: 4px 0 0; white-space: pre-wrap; }

/* Profilbild: rundes Bild oder Initialen-Kreis (K.avatar) */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; position: relative; background: var(--panel-2);
  color: #fff; font-weight: 700; line-height: 1; letter-spacing: .02em; user-select: none; vertical-align: middle; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
/* Rollen-Abzeichen am Profilbild */
.role-mark { position: absolute; right: -2%; top: -2%; width: 1.75em; height: 1.75em; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; line-height: 1; letter-spacing: 0; box-shadow: 0 0 0 2px var(--bg, #111); pointer-events: none; font-family: Inter, sans-serif; }
.role-mark.superuser { background: radial-gradient(circle at 35% 30%, #1d2b4a, #0b1020); box-shadow: 0 0 0 2px var(--bg, #111), 0 0 0 3.5px #7fe3ff; }
.role-mark.admin { background: linear-gradient(135deg, #fff1a8, #e6b422 45%, #a87400); color: #3a2600; }
.role-mark.admin_marketing { background: linear-gradient(135deg, #c77dff, #ff4fa3); color: #fff; }
.role-mark.admin_booking { background: linear-gradient(135deg, #3d8bff, #22d3c5); color: #fff; }
.person { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; min-width: 0; }
.sub .person { gap: 5px; }
.avatar[data-user] { cursor: pointer; }
#me .avatar, .topbar .account .avatar, .avatar-edit .avatar { cursor: inherit; }
.contact-row { display: flex; align-items: center; gap: 16px; padding: 10px 16px; margin-bottom: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.contact-row-label { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: inherit; text-decoration: none; flex: none; }
.contact-row-faces { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; padding: 4px 4px 4px 0; scrollbar-width: none; }
.contact-row-faces::-webkit-scrollbar { display: none; }
.contact-row-more { font-size: 13px; color: var(--muted, #999); text-decoration: none; flex: none; white-space: nowrap; }
.contact-row-more:hover, .contact-row-label:hover { color: #ff0000; }
.contact-group { margin-bottom: 28px; }
.contact-group h3 { margin-bottom: 12px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.contact { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line, #262626);
  border-radius: 10px; color: inherit; text-align: left; cursor: pointer; font: inherit; transition: border-color .15s, transform .15s; }
.contact:hover { border-color: #ff0000; transform: translateY(-1px); }
.contact-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-links { display: flex; gap: 6px; font-size: 13px; margin-top: 2px; }
.contact .avatar { cursor: pointer; }
.profile-contact { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.profile-contact .btn { text-transform: none; letter-spacing: 0; }
.profile-top { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.profile-top p { margin: 0; }
.profile-fn { margin: 8px 0 4px !important; font-weight: 600; }
.profile-about { white-space: pre-line; line-height: 1.55; margin: 0; }
.avatar-edit { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.avatar-edit > div { flex: 1 1 200px; }
.act { font-size: 13px; color: var(--muted); padding: 6px 0; border-bottom: 1px solid #1f1f1f; }
.act b { color: #ddd; font-weight: 600; }

/* ── Formular-Vorlage ───────────────────────────────── */
.form-section { margin-bottom: 26px; }
.form-section > h3 { padding-bottom: 8px; border-bottom: 2px solid var(--red); display: inline-block; margin-bottom: 4px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.fgrid .wide { grid-column: 1 / -1; }
.missing { background: #1d0707; border: 1px solid #5a1a1a; color: #ffb3b3; border-radius: var(--radius); padding: 12px 14px; font-size: 14px; margin-bottom: 18px; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 26px 0 12px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Detail-Kopf ────────────────────────────────────── */
.ev-hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; margin-bottom: 22px; }
.ev-hero .facts { display: flex; gap: 18px; flex-wrap: wrap; color: #cfcfcf; font-size: 14px; margin-top: 10px; }
.ev-hero .facts b { color: #fff; }
.kv { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 0; }
.kv > div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv .k { color: var(--muted); font-size: 13px; padding-right: 14px; }
.kv .v { white-space: pre-wrap; word-break: break-word; }

/* ── Dialog + Toast ─────────────────────────────────── */
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 6px; padding: 24px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); }
dialog::backdrop { background: rgba(0,0,0,.72); }
dialog h2 { margin-bottom: 8px; }
dialog .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; pointer-events: none; }
#toast div { background: #fff; color: #000; padding: 10px 18px; border-radius: var(--radius); font-weight: 600; font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
#toast div.err { background: var(--red); color: #fff; }

/* ── Login ──────────────────────────────────────────── */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: #000; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; border-right: 1px solid var(--line); }
.login-art .big { font-family: var(--display); text-transform: uppercase; font-size: clamp(70px, 11vw, 170px); line-height: .82; }
.login-art .big span { color: var(--red); display: block; }
.login-art .tag { color: var(--muted); margin-top: 18px; letter-spacing: .2em; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.login-form .box { width: 100%; max-width: 380px; }
.login-form .err { color: #ff6b6b; min-height: 22px; margin-top: 12px; font-size: 14px; }
.login-form .qr { display: block; margin: 12px 0; width: 190px; height: 190px; background: #fff; border-radius: 4px; padding: 6px; }
.login-form input.code { font-size: 26px; letter-spacing: 8px; text-align: center; }
.login-form .btn.primary { width: 100%; margin-top: 20px; padding: 13px; }


/* ── Tickets ────────────────────────────────────────── */
.badge.push-rot { background: var(--red); border-color: var(--red); color: #fff; }
.badge.push-orange { color: var(--orange); border-color: #5a3a00; background: #1d1300; }
.badge.push-gruen { color: var(--green); border-color: #134d2a; background: #06190d; }
.badge.push-grau, .badge.push-aus { color: var(--muted); }
.sales-num { font-size: 15px; }
.sales-num b { font-size: 20px; font-family: var(--display); font-weight: 400; letter-spacing: .02em; }
.sales-bar { height: 6px; background: #000; border-radius: 3px; overflow: hidden; margin: 6px 0 4px; }
.sales-bar i { display: block; height: 100%; background: #f2f2f2; border-radius: 0 3px 3px 0; }
.daily { display: flex; align-items: flex-end; gap: 2px; height: 42px; }
.daily span { flex: 1; background: #d9d9d9; border-radius: 2px 2px 0 0; min-width: 2px; }
.daily span.zero { background: #333; }
.daily span:hover, .daily span:focus { background: #fff; outline: none; }
.trow { flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.tdate { flex: 0 0 74px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.fact.internal { background: var(--bg-2); border-style: dashed; }
.fact-t { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact-v { font-family: var(--display); font-size: 40px; line-height: 1; text-transform: uppercase; word-break: break-word; }
.fact-text { margin: 6px 0 4px; font-size: 14px; color: #dcdcdc; flex: 1; }
.fact .btn { align-self: flex-start; }

/* ── Wer macht was (Dashboard, Admin) ──────────────── */
.who-list { display: flex; flex-direction: column; }
.who-row { border-bottom: 1px solid var(--line); }
.who-row:last-child { border-bottom: 0; }
.who-row > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 2px; cursor: pointer; flex-wrap: wrap; }
.who-row > summary::-webkit-details-marker { display: none; }
.who-row .who-name { font-weight: 700; flex: 1 1 160px; display: flex; align-items: center; gap: 10px; }
.who-row.nobody .who-name { color: var(--orange); }
.who-row.nobody .avatar.nobody { background: transparent; border: 1px dashed var(--orange); color: var(--orange); font-size: 12px; }
.who-row .who-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.who-row .chev { color: var(--muted); transition: transform .15s; }
.who-row[open] .chev { transform: rotate(90deg); }
.who-row > .list { padding: 0 0 8px 18px; margin: 0 0 6px; }

/* ── Meetings ───────────────────────────────────────── */
.cal .mt { display: block; font-size: 11.5px; font-weight: 700; color: #fff; text-decoration: none; padding: 2px 5px; margin-bottom: 3px; border-radius: 3px;
  background: #1f3d2c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.meet { min-width: 0; }
.meet th, .meet td { text-align: center; white-space: nowrap; }
.meet th:first-child, .meet td:first-child { text-align: left; position: sticky; left: 0; background: var(--panel); z-index: 1; }
.meet th.best { color: var(--green); }
.meet th.fixed, .meet td.best { background: #0d2417; }
.meet tr.me td { background: #1d1d1d; }
.meet tr.sum td { border-top: 2px solid var(--line-2); }
.ans { display: inline-grid; place-items: center; min-width: 40px; height: 34px; border-radius: 4px; font-weight: 800; font-size: 15px; border: 1px solid var(--line-2); background: #0b0b0b; color: var(--muted); }
button.ans { cursor: pointer; font: inherit; font-weight: 800; }
button.ans:hover { border-color: #fff; }
.ans-ja { background: #0f3a22; border-color: #1f6b41; color: var(--green); }
.ans-maybe { background: #3a2a0a; border-color: #6a4a10; color: var(--orange); }
.ans-no { background: #2a0b0b; border-color: #5a1a1a; color: #ff6b6b; }

/* ── Programm-Liste ─────────────────────────────────── */
.prog { display: flex; flex-direction: column; gap: 10px; }
.prow { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.prow > summary { list-style: none; display: flex; gap: 14px 20px; align-items: center; padding: 14px 18px; cursor: pointer; flex-wrap: wrap; }
.prow > summary::-webkit-details-marker { display: none; }
.prow[open] { border-color: #555; }
.prow[open] > summary { border-bottom: 1px solid var(--line); }
.prow .pdate { flex: 0 0 64px; text-align: center; background: var(--red); color: #fff; padding: 6px 0 5px; font-family: var(--display); line-height: 1; text-transform: uppercase; }
.prow .pdate b { display: block; font-size: 26px; font-weight: 400; }
.prow .pdate small { font-family: var(--body); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.prow.entwurf .pdate { background: transparent; color: var(--orange); border: 1px dashed var(--orange); }
.prow .ptitle { flex: 1 1 240px; min-width: 0; }
.prow .ptitle .t { font-family: var(--display); font-size: 21px; text-transform: uppercase; line-height: 1.1; }
.prow .pstats { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.prow .pstat b { display: block; font-size: 18px; font-family: var(--display); font-weight: 400; }
.prow .chev { color: var(--muted); transition: transform .15s; }
.prow[open] .chev { transform: rotate(90deg); }
.pbody { padding: 16px 18px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.pbody h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ── Handy ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(280px, 85vw); height: 100%; z-index: 50; transform: translateX(-100%); transition: transform .2s;
    -webkit-overflow-scrolling: touch; padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .side .nav { flex: none; }
  .side .me { margin-top: 18px; }
  .shell.menu-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.6); }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: #000; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .topbar .account { margin-left: auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); text-decoration: none; font-size: 17px; overflow: hidden; }
  .shell.menu-open { overflow: hidden; height: 100dvh; }
  .topbar .w { font-family: var(--display); font-size: 22px; text-transform: uppercase; }
  .topbar .w span { color: var(--red); font-size: 13px; letter-spacing: .2em; margin-left: 6px; }
  .main { padding: 22px 16px 80px; }
  .cal .day { min-height: 70px; padding: 3px; }
  .cal .ev { font-size: 10px; padding: 2px 3px; }
  .cal .tk, .cal .ps { display: none; }
  .cal .mt { font-size: 10px; padding: 1px 3px; }
  .cal .day .more { display: block; }
  .ev-hero { grid-template-columns: 1fr; }
  .tile .img { aspect-ratio: 16 / 9; }
  .kv { grid-template-columns: 1fr; }
  .kv .k { border-bottom: 0; padding-bottom: 0; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { padding: 28px 16px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-art .big { font-size: 64px; }
  input, select, textarea { font-size: 16px !important; }
}
@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; }        /* lange Knopftexte umbrechen statt über den Rand */
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
