/* ------------------------------------------------------------------
   Hausschriften – Dateien in public/fonts/ ablegen (siehe README).
   Fehlen sie, greifen die Fallbacks.
------------------------------------------------------------------- */
@font-face { font-family: "Adieu"; src: url("fonts/Adieu-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Adieu"; src: url("fonts/Adieu-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "HK Grotesk"; src: url("fonts/HKGrotesk-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "GT America Mono"; src: url("fonts/GT-America-Mono-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }

:root {
  --f-head: "Adieu", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-text: "HK Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "GT America Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* CI Fast Forward (Website): Lime #b8f589, Dunkel #343c3a, Schwarz #222726, Hellgrau #e8e8e8, Weiß #f7f7f7 */
  --brand: #b8f589;
  --on-brand: #222726;
  --green: #b8f589;
  --green-strong: #4a7a1c;
  --green-soft: #ecf8e0;
  --bg: #e8e8e8;
  --surface: #f7f7f7;
  --surface-2: #efefef;
  --line: #d9dbda;
  --line-strong: #bfc3c1;
  --text: #343c3a;
  --muted: #6c7371;
  --nav-bg: #222726;
  --nav-text: #e8e8e8;
  --nav-muted: #9aa09e;
  --warn: #b26a00;
  --warn-soft: #fff3df;
  --danger: #c0392b;
  --danger-soft: #fde8e5;
  --info-soft: #e8eef8;
  --info: #2d5aa0;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --green: #b8f589; --green-strong: #b8f589; --green-soft: #2b3a21;
    --bg: #1a1e1d; --surface: #222726; --surface-2: #2a302e; --line: #343c3a; --line-strong: #4a5350;
    --text: #f7f7f7; --muted: #a3aaa7; --nav-bg: #141716; --nav-text: #e8e8e8; --nav-muted: #8a918e;
    --warn: #f0a83a; --warn-soft: #3a2c14; --danger: #ef6b5b; --danger-soft: #3d1f1b; --info-soft: #1c2638; --info: #86a8e0;
    --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --green: #b8f589; --green-strong: #b8f589; --green-soft: #2b3a21;
    --bg: #1a1e1d; --surface: #222726; --surface-2: #2a302e; --line: #343c3a; --line-strong: #4a5350;
    --text: #f7f7f7; --muted: #a3aaa7; --nav-bg: #141716; --nav-text: #e8e8e8; --nav-muted: #8a918e;
  --warn: #f0a83a; --warn-soft: #3a2c14; --danger: #ef6b5b; --danger-soft: #3d1f1b; --info-soft: #1c2638; --info: #86a8e0;
  --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 300 15px/1.5 var(--f-text); -webkit-font-smoothing: antialiased; }
a { color: var(--green-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 900; letter-spacing: .01em; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.55rem; } h2 { font-size: 1.15rem; } h3 { font-size: .95rem; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; }
.mono, .time, .date { font-family: var(--f-mono); font-weight: 300; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.boot { padding: 40px; color: var(--muted); }
.pre { white-space: pre-wrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* ---------- Layout */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--nav-bg) 236px, transparent 236px); }
.nav { background: var(--nav-bg); color: var(--nav-text); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 8px 18px; color: #fff; }
.brand img { width: 34px; height: 34px; object-fit: contain; flex: none; }
/* Logo auf heller Fläche, damit das dunkle Dreieck in der Seitenleiste sichtbar bleibt (Logo unverändert) */
.nav .brand img { width: 40px; height: 40px; padding: 6px; background: #f7f7f7; border-radius: 9px; }
.brand b { font-family: var(--f-head); font-weight: 900; font-size: .82rem; line-height: 1.15; letter-spacing: .03em; display: block; }
.brand span { font-size: .72rem; color: var(--nav-muted); display: block; }
.nav a { display: flex; align-items: center; gap: 10px; color: var(--nav-text); padding: 8px 10px; border-radius: 8px; font-size: .93rem; }
.nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.nav a.active { background: rgba(184,245,137,.14); color: #fff; box-shadow: inset 3px 0 0 var(--green); }
.nav .sep { height: 1px; background: rgba(255,255,255,.08); margin: 10px 8px; }
.nav .grow { flex: 1; }
.nav .who { font-size: .8rem; color: var(--nav-muted); padding: 8px 10px; }
.nav .who b { color: var(--nav-text); font-weight: 400; display: block; }
.main { min-width: 0; }
.topbar { display: flex; gap: 12px; align-items: center; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar .search { flex: 1; max-width: 520px; position: relative; }
.topbar .search input { width: 100%; padding-left: 34px; }
.topbar .search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.btn.menu-btn { display: none; }
.actions select { width: auto; }
.grid > .card + .card { margin-top: 0; }
.content { padding: 24px; max-width: 1240px; }
.page-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .sub { color: var(--muted); margin-top: -4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; background: none; }
  .nav { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .nav { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 10px 16px; }
  .content { padding: 16px; }
}

/* ---------- Controls */
input, select, textarea, button { font: inherit; color: inherit; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], select, textarea {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-strong); outline-offset: -1px; border-color: transparent; }
textarea { min-height: 90px; resize: vertical; }
input[type=time], input[type=date] { font-family: var(--f-mono); }
label.field { display: block; font-size: .82rem; color: var(--muted); }
label.field > span { display: block; margin-bottom: 4px; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); padding: 7px 13px; border-radius: 8px; cursor: pointer; font-size: .9rem; white-space: nowrap; }
.btn:hover { border-color: var(--muted); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 400; }
.btn.primary:hover { background: #a6e874; border-color: #a6e874; }
.btn.danger { color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 3px 9px; font-size: .82rem; }
.btn.icon { padding: 5px 8px; }
.btn svg { width: 15px; height: 15px; }
.chk { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.chk input { width: 17px; height: 17px; accent-color: var(--green); }

/* ---------- Cards & grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.times { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .g2, .g3 { grid-template-columns: 1fr; } .form-grid.times { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: .85rem; }
.kv dd { margin: 0; }
.empty { color: var(--muted); padding: 18px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---------- Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.s-bestätigt { background: var(--green-soft); color: var(--green-strong); border-color: transparent; }
.badge.s-geplant { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge.s-abgesagt { background: var(--danger-soft); color: var(--danger); border-color: transparent; text-decoration: line-through; }
.badge.s-abgeschlossen { background: var(--surface-2); color: var(--muted); }
.badge.series { background: transparent; border-color: var(--line-strong); color: var(--muted); font-size: .7rem; vertical-align: 2px; }
.badge.ok { background: var(--green-soft); color: var(--green-strong); border-color: transparent; }
.badge.ok.clickable:hover { background: var(--brand); color: var(--on-brand); }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.cat { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
.warnings { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Terminliste */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters select, .filters input[type=search] { width: auto; }
.day { margin-bottom: 18px; }
.day-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; padding-left: 4px; }
.day-head .d { font-family: var(--f-head); font-weight: 900; font-size: 1.05rem; }
.day-head .wd { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.day-head .rel { font-size: .78rem; color: var(--green-strong); }
.concert-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px; color: inherit; box-shadow: var(--shadow); }
.concert-row + .concert-row { margin-top: 8px; }
.concert-row:hover { border-color: var(--green); text-decoration: none; }
.concert-row .time { font-size: 1.1rem; }
.concert-row .title { font-weight: 400; font-size: 1.02rem; }
.concert-row .place { color: var(--muted); font-size: .88rem; }
.concert-row .place b { color: var(--text); font-weight: 400; }
.concert-row .meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.concert-row.cancelled { opacity: .55; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; min-width: 130px; }
.stat b { font-family: var(--f-mono); font-weight: 300; font-size: 1.5rem; display: block; }
.stat span { font-size: .8rem; color: var(--muted); }
@media (max-width: 640px) { .concert-row { grid-template-columns: 56px 1fr; } .concert-row .meta { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---------- Detail */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--text); border-bottom-color: var(--green); }
.tabs a .n { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); margin-left: 4px; }
.timeline-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.timeline-times div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.timeline-times span { display: block; font-size: .75rem; color: var(--muted); }
.timeline-times b { font-family: var(--f-mono); font-weight: 300; font-size: 1.15rem; }
.timeline-times .key { border-color: var(--green); }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.list > li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .row-actions { display: flex; gap: 4px; opacity: .55; }
.list > li:hover .row-actions { opacity: 1; }

.prog-item { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.prog-item:first-child { border-top: 0; }
.prog-item .no { font-family: var(--f-mono); color: var(--muted); padding-top: 2px; }
.prog-item.artist .t { font-weight: 400; }
.prog-item.pause { color: var(--muted); font-style: italic; }
.prog-item .composer { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.prog-item .dur { font-family: var(--f-mono); color: var(--muted); font-size: .9rem; }

.gewerk { display: flex; flex-direction: column; }
.gewerk textarea { min-height: 110px; }
.check-row { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.check-row.done span { text-decoration: line-through; color: var(--muted); }
.check-row .x { margin-left: auto; opacity: 0; }
.check-row:hover .x { opacity: .7; }
.add-inline { display: flex; gap: 6px; margin-top: 8px; }

.comm { border-left: 2px solid var(--line-strong); padding: 0 0 18px 16px; position: relative; }
.comm::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--green); }
.comm.aus::before { background: var(--green); }
.comm .head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.comm .subject { font-weight: 400; }
.comm details summary { cursor: pointer; color: var(--green-strong); font-size: .85rem; margin-top: 4px; }
.comm .body { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-top: 6px; font-size: .88rem; white-space: pre-wrap; max-height: 420px; overflow: auto; }

.doc-group + .doc-group { margin-top: 18px; }
.doc { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.doc:first-of-type { border-top: 0; }
.doc .ico { width: 34px; height: 40px; flex: none; border-radius: 5px; background: var(--green-soft); color: var(--green-strong); font-family: var(--f-mono); font-size: .62rem; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; text-transform: uppercase; }
.doc .versions { margin: 6px 0 0; padding: 0; list-style: none; font-size: .82rem; }
.doc .versions li { padding: 2px 0; color: var(--muted); }

.task { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; }
.task.done .t { text-decoration: line-through; color: var(--muted); }
.task .due.overdue { color: var(--danger); }

/* ---------- Kalender */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.cal .wd { background: var(--surface-2); padding: 6px 8px; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cal .cell { background: var(--surface); min-height: 108px; padding: 6px; }
.cal .cell.out { background: var(--surface-2); }
.cal .cell.out .n { opacity: .4; }
.cal .cell.today .n { background: var(--brand); color: var(--on-brand); border-radius: 99px; padding: 0 6px; }
.cal .n { font-family: var(--f-mono); font-size: .8rem; display: inline-block; margin-bottom: 4px; }
.cal .ev { display: block; font-size: .78rem; padding: 3px 6px; border-radius: 5px; background: var(--green-soft); color: var(--text); margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--green); }
.cal .ev.s-geplant { background: var(--info-soft); border-left-color: var(--info); }
.cal .ev.s-abgesagt { background: var(--danger-soft); border-left-color: var(--danger); text-decoration: line-through; }
.cal .ev:hover { text-decoration: none; filter: brightness(.97); }
.cal .ev .time { color: var(--muted); margin-right: 4px; }
@media (max-width: 700px) { .cal .cell { min-height: 64px; padding: 3px; } .cal .ev { font-size: .66rem; padding: 2px 3px; } .cal .ev .time { display: none; } }

/* ---------- Orte */
.venue-card .rooms { margin-top: 10px; display: grid; gap: 10px; }
.room { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: var(--surface-2); }
.room-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.room ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: .88rem; }
.room ul li { padding: 2px 0; }

/* ---------- Tabellen */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-weight: 400; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:hover td { background: var(--surface-2); }

/* ---------- Modal, Toast, Login */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 12px; width: 100%; max-width: 640px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { max-width: 860px; }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { margin: 0; }
.modal-body { padding: 18px 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.modal-foot .left { margin-right: auto; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--surface); padding: 10px 18px; border-radius: 8px; opacity: 0; transition: .2s; pointer-events: none; z-index: 60; font-size: .9rem; }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.err { background: var(--danger); color: #fff; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--nav-bg); }
.login .box { background: var(--surface); border-radius: 14px; padding: 32px; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login .brand { color: var(--text); padding: 0 0 20px; }
.login .brand span { color: var(--muted); }
.login form { display: grid; gap: 14px; }
.login .err { color: var(--danger); font-size: .88rem; min-height: 1.2em; }

.search-results li a { display: block; }
.search-results .type { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); min-width: 110px; }

/* ---------- Tagesblatt / Druck */
.sheet { background: #fff; color: #111; max-width: 820px; margin: 0 auto; padding: 32px 40px; font-size: 13px; }
.sheet h1 { font-size: 22px; margin-bottom: 2px; }
.sheet .hdr { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid #343c3a; padding-bottom: 10px; margin-bottom: 16px; }
.sheet .hdr img { width: 48px; height: auto; }
.sheet h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 6px; border-bottom: 1px solid #ccc; padding-bottom: 3px; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet td, .sheet th { padding: 4px 6px; border-bottom: 1px solid #e5e5e5; text-align: left; vertical-align: top; }
.sheet .times td:first-child { width: 120px; color: #555; }
.sheet .muted { color: #666; }
.print-bar { max-width: 820px; margin: 16px auto; display: flex; gap: 8px; justify-content: flex-end; padding: 0 16px; }
body.print-mode { background: #e9ebe8; }
@media print {
  body, body.print-mode { background: #fff; }
  .print-bar, .nav, .topbar { display: none !important; }
  .sheet { padding: 0; max-width: none; }
  .sheet h2 { break-after: avoid; }
}

/* ---------- Format-Farben (wie heidelberger-fruehling.de) */
.fdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--fc, var(--muted)); flex: none; }
.badge.series .fdot { width: 8px; height: 8px; margin-right: 2px; }
.concert-row.has-fc { border-left: 5px solid var(--fc); padding-left: 13px; }
.cal .ev.has-fc { border-left-color: var(--fc); background: color-mix(in srgb, var(--fc) 20%, var(--surface)); }
.cal .ev.has-fc.s-abgesagt { opacity: .55; }
.legend { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .82rem; padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.chip:hover { border-color: var(--fc); }
.chip.on { border-color: var(--fc); box-shadow: inset 0 0 0 1px var(--fc); background: color-mix(in srgb, var(--fc) 14%, var(--surface)); }
.chip.static { cursor: default; }

/* klickbare Hinweise */
.badge.clickable { cursor: pointer; font: inherit; font-size: .74rem; text-decoration: none; }
.badge.warn.clickable:hover { background: var(--warn); color: #fff; text-decoration: none; }
.badge.clickable b { font-weight: 400; }

/* Rider-Auswertung */
.rr-block { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: var(--surface-2); }
.rr-block textarea { margin: 6px 0; font-size: .88rem; }
.rr-head { margin-bottom: 2px; }
.rr-check { display: flex; margin: 3px 0; }

.timeline-times .empty { opacity: .55; }
.timeline-times .empty b { font-size: 1rem; }

/* Verstärkung & Disposition */
.badge.amp { background: #ece4f7; color: #6b3fa0; border-color: transparent; }
.badge.unamp { background: transparent; color: var(--muted); }
:root[data-theme="dark"] .badge.amp { background: #2e2440; color: #c3a6ea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.amp { background: #2e2440; color: #c3a6ea; } }
.status-sel { width: auto; padding: 3px 8px; font-size: .82rem; border-radius: 99px; }
.status-sel.st-offen, .badge.st-offen { border-color: var(--warn); color: var(--warn); }
.status-sel.st-angefragt, .badge.st-angefragt { border-color: var(--info); color: var(--info); }
.status-sel.st-bestellt, .status-sel.st-bestätigt, .status-sel.st-geliefert, .badge.st-bestellt, .badge.st-bestätigt, .badge.st-geliefert { border-color: var(--green); color: var(--green-strong); }
.status-sel.st-zurückgegeben { color: var(--muted); }

/* Terminzeile: Hinweise als eigene Zeile unter dem Titel, Status rechts */
.concert-row { grid-template-columns: 70px minmax(0, 1fr) auto; align-items: start; }
.concert-row .time { padding-top: 2px; }
.concert-row .main { min-width: 0; }
.concert-row .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.concert-row .chips .badge { font-size: .72rem; padding: 2px 8px; }
.concert-row .meta { flex-direction: column; align-items: flex-end; gap: 5px; padding-top: 2px; }
.concert-row .meta .counts { font-size: .74rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .concert-row .meta { flex-direction: row; align-items: center; } }

/* Verantwortliche je Gewerk */
.team { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 10px; }
.team .chip { padding: 2px 4px 2px 10px; }
.team .chip .x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 4px; }
.team .chip .x:hover { color: var(--danger); }
.team-add input { width: 130px; padding: 3px 9px; font-size: .82rem; border-radius: 99px; }

/* Freelancer */
.concert-row.not-booked { opacity: .55; box-shadow: none; }
.concert-row.not-booked:hover { border-color: var(--line); }
.concert-row .meta .counts .btn { margin-top: 2px; }

/* Aufzeichnung */
.badge.rec { background: #fde7e7; color: #b42318; border-color: transparent; }
.badge.vid { background: #e4ecfb; color: #2952a3; border-color: transparent; }
:root[data-theme="dark"] .badge.rec { background: #3d1d1d; color: #f19b93; }
:root[data-theme="dark"] .badge.vid { background: #1d2740; color: #9db8ee; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.rec { background: #3d1d1d; color: #f19b93; } :root:not([data-theme="light"]) .badge.vid { background: #1d2740; color: #9db8ee; } }
.timeline-times .rec { border-left: 3px solid #d64545; }
.timeline-times .vid { border-left: 3px solid #4a74c9; }

/* Saal auf 0 */
.badge.reset { background: #f3ebfa; color: #6b3fa0; border-color: transparent; }
:root[data-theme="dark"] .badge.reset { background: #2b2140; color: #c6a8ee; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.reset { background: #2b2140; color: #c6a8ee; } }
.reset-box { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.card-head .chk + .chk { margin-left: 10px; }
.reset-box input:not([type=checkbox]), .reset-box select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: inherit; font: inherit; }

/* Ohne Beteiligung Fast Forward */
.concert-row.no-ff, .ev.no-ff { opacity: .45; filter: grayscale(1); }
.concert-row.no-ff:hover, .ev.no-ff:hover { opacity: .75; }
.badge.noff { background: var(--surface-2); color: var(--muted, #888); border: 1px dashed var(--line-strong); }
.btn.noff-on { background: var(--surface-2); border-style: dashed; }
.noff-banner { margin: -6px 0 14px; padding: 10px 14px; border-radius: 8px; border: 1px dashed var(--line-strong); background: var(--surface-2); color: var(--muted, #777); font-size: .9rem; }

/* Bauzeitenplan */
.build-card { margin-bottom: 16px; }
.build-card.compact { padding-top: 12px; padding-bottom: 12px; }
.build-card.compact .card-head { margin-bottom: 4px; }
.bday { border-top: 1px solid var(--line); padding: 8px 0 6px; }
.bday:first-of-type { border-top: 0; }
.bday-head { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.bday.va .bday-head .mono { font-weight: 600; }
.brow { display: grid; grid-template-columns: 110px 150px 1fr auto; gap: 10px; align-items: start; padding: 3px 0 3px 4px; }
.brow.is-va { background: var(--green-soft); border-radius: 6px; }
.brow .badge { justify-self: start; }
.badge.bk-up { background: #e7f0fb; color: #2a5591; border-color: transparent; }
.badge.bk-prep { background: #f3ebfa; color: #6b3fa0; border-color: transparent; }
.badge.bk-down { background: #fdeee2; color: #9a4a12; border-color: transparent; }
.badge.build { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); }
.cal .ev.build { background: transparent; border-left: 3px dashed var(--line-strong); color: var(--muted); font-size: .72rem; }
.cal .ev.build.bk-up { border-left-color: #6b93cf; } .cal .ev.build.bk-down { border-left-color: #d58a52; } .cal .ev.build.bk-prep { border-left-color: #a07ad0; }
:root[data-theme="dark"] .badge.bk-up { background: #1c2a3f; color: #9cbbe8; } :root[data-theme="dark"] .badge.bk-prep { background: #2b2140; color: #c6a8ee; } :root[data-theme="dark"] .badge.bk-down { background: #3a2617; color: #f0b183; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.bk-up { background: #1c2a3f; color: #9cbbe8; } :root:not([data-theme="light"]) .badge.bk-prep { background: #2b2140; color: #c6a8ee; } :root:not([data-theme="light"]) .badge.bk-down { background: #3a2617; color: #f0b183; } }
@media (max-width: 700px) { .brow { grid-template-columns: 1fr auto; } .brow .grow { grid-column: 1 / -1; } }
