/* ==========================================================================
   KB Booking · Designsystem im Stil von „Solvik“
   Frosted Glass über unscharfem Hintergrund, Pill-Navigation, Dock,
   Schrift Urbanist, Akzent CI-Grün #019036, Hell/Dunkel
   ========================================================================== */

@font-face {
  font-family: "Urbanist";
  src: url("../fonts/urbanist-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* CI */
  --accent: #019036;
  --accent-hover: #016b29;
  --accent-text: #016b29;
  --on-accent: #ffffff;
  --accent-soft: rgba(1, 144, 54, .14);

  /* Flächen (Werte angelehnt an Solvik) */
  --bg: #e9ece7;
  --glass: #ffffff80;
  --glass-2: #ffffff94;
  --glass-3: #ffffffdb;
  --glass-tile: #ffffff70;
  --plain: #ffffff94;
  --solid: #f4f6f2;
  --well: #1216140f;
  --rim: #ffffffb8;
  --line: #1216141a;
  --line-2: #1216142e;
  --pill: #13171a;
  --on-pill: #f6f7f3;
  --dock: #ffffff8c;

  --text: #13171a;
  --muted: #4b524e;
  --faint: #6b726d;

  --coral: #f27d5f;
  --sky: #5aa6ec;
  --amber: #e9a23b;

  /* Status Planung */
  --st-open-bg: var(--well);
  --st-requested: #d98a1c;
  --st-requested-bg: rgba(233, 162, 59, .26);
  --st-negotiation: #0a87a6;
  --st-negotiation-bg: rgba(0, 196, 230, .2);
  --st-confirmed: #019036;
  --st-confirmed-bg: rgba(1, 144, 54, .2);
  --st-declined: #d2482f;
  --st-declined-bg: rgba(242, 125, 95, .26);
  --st-blocked-bg: rgba(19, 23, 26, .86);
  --st-blocked-text: #f2f4f0;

  --danger: #b8401f;
  --good: #3c7a14;

  --r-card: 22px;
  --r-tile: 18px;
  --r-ctl: 999px;
  --r-input: 14px;
  --gap: 16px;
  --gutter: clamp(16px, 1.6vw, 28px);
  --dock-w: 60px;
  --dock-x: 20px;

  --blur: blur(22px) saturate(150%);
  --shadow: inset 0 1px 0 #fffc, 0 24px 50px -32px #141e1466;
  --shadow-pop: 0 24px 60px -18px #0f191459, 0 2px 6px #0f191414;
  --wash: linear-gradient(180deg, #f0f3eea8, #f0f3ee99 45%, #ecefe9b3);
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Hintergrund-Lichter (eigener „Open Air am Abend“-Look) */
  --b1: #9cc9a3; --b2: #e9d2ae; --b3: #b9cde0; --b4: #d9dfd2; --b5: #f1c9a8;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent-text: #4fd17f; --accent-soft: rgba(79, 209, 127, .16);
    --bg: #111513; --glass: #14171775; --glass-2: #ffffff14; --glass-3: #1e2322f2; --glass-tile: #ffffff10;
    --plain: #ffffff12; --solid: #1a1e1d; --well: #ffffff12; --rim: #ffffff26; --line: #ffffff1a; --line-2: #ffffff2e;
    --pill: #585e5dbd; --on-pill: #f2f4f0; --dock: #16191980;
    --text: #f2f4f0; --muted: #c2c7c1; --faint: #9ca29c;
    --coral: #ff9a7c; --sky: #8cc4ff; --amber: #f3b85b;
    --st-requested: #f3b85b; --st-requested-bg: rgba(243, 184, 91, .2);
    --st-negotiation: #6fd6ee; --st-negotiation-bg: rgba(111, 214, 238, .17);
    --st-confirmed: #4fd17f; --st-confirmed-bg: rgba(79, 209, 127, .18);
    --st-declined: #ff7a6b; --st-declined-bg: rgba(255, 82, 72, .2);
    --st-blocked-bg: rgba(0, 0, 0, .62);
    --danger: #ff9a7c; --good: #b8e65a;
    --shadow: inset 0 1px 0 #ffffff1f, 0 30px 60px -30px #0009;
    --shadow-pop: 0 24px 60px -18px #000000b3, 0 0 0 1px #ffffff1a;
    --wash: linear-gradient(180deg, #080b0a80, #080b0a6b 45%, #080b0a8c);
    --b1: #1a6b3e; --b2: #9a6233; --b3: #2b4a63; --b4: #232a26; --b5: #b5672e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent-text: #4fd17f; --accent-soft: rgba(79, 209, 127, .16);
  --bg: #111513; --glass: #14171775; --glass-2: #ffffff14; --glass-3: #1e2322f2; --glass-tile: #ffffff10;
  --plain: #ffffff12; --solid: #1a1e1d; --well: #ffffff12; --rim: #ffffff26; --line: #ffffff1a; --line-2: #ffffff2e;
  --pill: #585e5dbd; --on-pill: #f2f4f0; --dock: #16191980;
  --text: #f2f4f0; --muted: #c2c7c1; --faint: #9ca29c;
  --coral: #ff9a7c; --sky: #8cc4ff; --amber: #f3b85b;
  --st-requested: #f3b85b; --st-requested-bg: rgba(243, 184, 91, .2);
    --st-negotiation: #6fd6ee; --st-negotiation-bg: rgba(111, 214, 238, .17);
  --st-confirmed: #4fd17f; --st-confirmed-bg: rgba(79, 209, 127, .18);
  --st-declined: #ff7a6b; --st-declined-bg: rgba(255, 82, 72, .2);
  --st-blocked-bg: rgba(0, 0, 0, .62);
  --danger: #ff9a7c; --good: #b8e65a;
  --shadow: inset 0 1px 0 #ffffff1f, 0 30px 60px -30px #0009;
  --shadow-pop: 0 24px 60px -18px #000000b3, 0 0 0 1px #ffffff1a;
  --wash: linear-gradient(180deg, #080b0a80, #080b0a6b 45%, #080b0a8c);
  --b1: #1a6b3e; --b2: #9a6233; --b3: #2b4a63; --b4: #232a26; --b5: #b5672e;
  color-scheme: dark;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font: 500 14px/1.45 var(--font);
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-text); }
p a, dd a, td a:not(.btn), .link { color: var(--accent-text); font-weight: 600; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.005em; }
h2 { font-size: 20px; letter-spacing: -.015em; }
h3 { font-size: 15px; }
p { margin: 0 0 .75em; }
code { font-size: .92em; padding: .1em .35em; border-radius: 6px; background: var(--well); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.num { text-align: right; white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }

/* ---------- Hintergrund: unscharfe Bühnenlichter + Schleier ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.backdrop::before {
  content: ""; position: absolute; inset: -12%;
  background:
    radial-gradient(38% 46% at 14% 18%, var(--b1), transparent 70%),
    radial-gradient(34% 40% at 62% 8%, var(--b2), transparent 72%),
    radial-gradient(40% 50% at 92% 46%, var(--b3), transparent 70%),
    radial-gradient(46% 42% at 40% 78%, var(--b5), transparent 72%),
    radial-gradient(60% 60% at 80% 100%, var(--b1), transparent 70%),
    var(--b4);
  filter: blur(48px) saturate(115%);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--wash);
}

/* ---------- App-Leiste ---------- */
.appbar {
  position: relative; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 20px var(--gutter) 14px calc(var(--dock-x) + 18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; justify-self: start; }
.brand:hover { color: inherit; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 18px -6px rgba(1,144,54,.6);
}
.brand-mark .icon { width: 20px; height: 20px; }
.brand-mark.lg { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 14px; font-size: 22px; font-weight: 700; }

.tabs {
  justify-self: center; max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none;
  background: var(--glass); border: 1px solid var(--rim); border-radius: 999px;
  box-shadow: var(--shadow); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__track { display: flex; gap: 2px; padding: 4px; width: max-content; }
.tab {
  padding: 10px 17px; border-radius: 999px; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .1s ease-out;
}
.tab:hover { background: var(--well); color: var(--text); }
.tab:active { transform: scale(.97); }
.tab.is-active { background: var(--pill); color: var(--on-pill); }

.appbar-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }

.ibtn {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer;
  transition: background-color .15s ease, transform .1s ease-out;
}
.ibtn:hover { background: var(--well); color: var(--text); }
.ibtn:active { transform: scale(.94); }
.ibtn.sm { width: 32px; height: 32px; }
.ibtn.sm .icon { width: 15px; height: 15px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; transition: background-color .15s ease, transform .1s ease-out; }
.icon-btn:hover { background: var(--well); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .icon { width: 15px; height: 15px; }

/* ---------- Dock (schwebende Icon-Leiste) ---------- */
.dock {
  position: fixed; z-index: 30; left: var(--dock-x); top: 0; bottom: 0; margin: auto 0; height: fit-content;
  display: flex; flex-direction: column; gap: 4px; padding: 8px;
  background: var(--dock); border: 1px solid var(--rim); border-radius: 999px;
  box-shadow: var(--shadow); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.dock .ibtn { border-color: transparent; width: 42px; height: 42px; }
.dock .ibtn:hover { background: var(--well); }
.dock-sep { height: 1px; margin: 6px 8px; background: var(--line-2); }

/* Aktiver Icon-Button (z. B. Einstellungen) */
.ibtn.is-active { background: var(--pill); color: var(--on-pill); border-color: transparent; }

/* Schnellaktionen im Dock: kleines Plus zeigt „neu anlegen“ */
.dock .ibtn.is-add { position: relative; }
.dock .ibtn.is-add::after {
  content: "+"; position: absolute; right: 5px; bottom: 5px; width: 14px; height: 14px; border-radius: 50%;
  display: grid; place-items: center; font: 700 11px/1 var(--font);
  background: var(--accent); color: #fff; box-shadow: 0 0 0 2px var(--solid);
}
.dock .ibtn { position: relative; }
.dock .ibtn:hover::before {
  content: attr(title); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; padding: 6px 10px; border-radius: 10px; font: 600 12px/1 var(--font);
  background: var(--pill); color: var(--on-pill); pointer-events: none; box-shadow: var(--shadow-pop);
}

/* Avatar-Menü – öffnet am Auslöser */
.menu-wrap { position: relative; }
button.avatar { border: 0; cursor: pointer; font-family: var(--font); }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 240px; padding: 6px;
  background: var(--glass-3); border: 1px solid var(--rim); border-radius: 18px; box-shadow: var(--shadow-pop);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transform-origin: top right; animation: menu-in .22s var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
/* Jahreswahl in der Planung: frühere Jahre im Archiv-Menü */
.year-switch { display: inline-flex; align-items: center; gap: 6px; position: relative; z-index: 70; }
.year-archive { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; cursor: pointer;
  font: 600 13.5px var(--font); color: var(--muted); background: var(--glass); border: 1px solid var(--rim); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transition: background-color .15s ease, color .15s ease, transform .1s ease-out; }
.year-archive .icon { width: 15px; height: 15px; transform: rotate(180deg); transition: transform .25s var(--ease); }
.year-archive[aria-expanded="true"] .icon { transform: rotate(90deg); }
.year-archive:hover { color: var(--text); background: var(--glass-2); }
.year-archive:active { transform: scale(.97); }
.year-archive.is-active { color: var(--text); border-color: var(--accent); }
.year-menu { left: 0; right: auto; min-width: 190px; transform-origin: top left; }
.year-menu a { font-variant-numeric: tabular-nums; }
.year-menu a.is-current { background: var(--accent-soft); color: var(--accent-text); }
.menu-head { padding: 10px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }
.menu-head span { font-size: 12px; color: var(--muted); }
.menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 600; }
.menu a:hover { background: var(--well); color: var(--text); }

/* Globale Suche */
.search-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(8, 11, 10, .35); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; opacity: 0; transition: opacity .2s ease; }
.search-overlay.is-open { opacity: 1; }
.search-panel {
  width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; overflow: hidden;
  background: var(--glass-3); border: 1px solid var(--rim); border-radius: 22px; box-shadow: var(--shadow-pop);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transform: scale(.97) translateY(-6px); transition: transform .25s var(--ease);
}
.search-overlay.is-open .search-panel { transform: none; }
.search-input { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search-input input { border: 0; background: transparent; box-shadow: none; padding: 6px 0; font-size: 17px; min-height: 0; }
.search-input input:focus { box-shadow: none; background: transparent; }
.search-input kbd { font: 600 11px/1 var(--font); color: var(--faint); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 6px; }
.search-results { overflow-y: auto; padding: 8px; }
.search-results > p { padding: 14px 12px; margin: 0; }
.search-group h4 { margin: 10px 12px 6px; font-size: 11.5px; font-weight: 700; color: var(--faint); letter-spacing: .04em; text-transform: uppercase; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; }
.search-item .grow { min-width: 0; flex: 1; }
.search-item .title { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item .small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item:hover, .search-item.is-active { background: var(--well); color: var(--text); }
.search-ico { --sc: var(--accent); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: color-mix(in srgb, var(--sc) 22%, transparent); color: color-mix(in srgb, var(--sc) 75%, var(--text)); }
.search-ico .icon { width: 16px; height: 16px; }

/* Ansprechpartner-Vorschau im Künstlerformular */
.contact-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--well); }
.pr-card { border-left: 4px solid var(--st-negotiation); }

/* Wiederholbare Zeilen (Venues, Abrechnung) */
.rows { display: grid; gap: 6px; }
.rows .row-head, .rows .row-line { display: grid; grid-template-columns: 1.4fr .7fr 1.4fr 32px; gap: 6px; align-items: center; }
.rows-cost .row-head, .rows-cost .row-line { grid-template-columns: 1.5fr .8fr .9fr 1.2fr 32px; }
.rows .row-head span { font-size: 11.5px; font-weight: 600; color: var(--faint); padding-left: 4px; }
.rows input, .rows select { min-height: 38px; padding: 8px 10px; }
.num-input { text-align: right; }
.contact-rows { display: grid; gap: 10px; }
.contact-row { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: 14px; background: var(--well); }
.contact-row .grid-2 { flex: 1; gap: 6px; }
.contact-row input { min-height: 36px; padding: 7px 10px; }

/* Veranstaltungsabrechnung */
.set-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap); align-items: start; }
.set-summary { position: sticky; top: 16px; display: grid; gap: var(--gap); }
.set-sec > .card-head { padding: 16px 18px 0; }
.set-table { min-width: 760px; }
.set-table th { font-size: 11.5px; font-weight: 600; color: var(--faint); text-align: left; padding: 10px 6px 6px; border-bottom: 1px solid var(--line); }
.set-table th:first-child, .set-table td:first-child { padding-left: 18px; }
.set-table th.num, .set-table td.num { text-align: right; }
.set-table td { padding: 4px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.set-table input, .set-table select { min-height: 36px; padding: 6px 10px; border-radius: 10px; font-size: 13.5px; }
.set-table select { width: auto; padding-right: 30px; background-position: right 10px center; }
.set-table td:first-child input { min-width: 220px; }
.set-table td.out { white-space: nowrap; font-weight: 600; color: var(--muted); }
.set-table tfoot td { border-bottom: 0; padding: 6px; color: var(--muted); font-size: 13px; }
.set-table tfoot td:first-child { padding-left: 18px; }
.set-table tfoot tr.sum td { color: var(--text); font-weight: 700; border-top: 1px solid var(--line); }
.set-table tr.is-internal td { background: color-mix(in srgb, var(--amber) 12%, transparent); }
.int-toggle { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--faint); white-space: nowrap; cursor: pointer; }
.int-toggle input { width: 14px; height: 14px; min-height: 0; accent-color: var(--amber); margin: 0; }
.int-toggle:has(input:checked) { color: var(--amber); }
.qty-cell { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ref-wrap { position: relative; }
.ref-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 300px; max-height: 320px; overflow-y: auto; padding: 8px;
  background: var(--glass-3); border: 1px solid var(--rim); border-radius: 14px; box-shadow: var(--shadow-pop); backdrop-filter: var(--blur); }
.ref-pop label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ref-pop label:hover { background: var(--well); }
.ref-pop input { width: 15px; height: 15px; min-height: 0; accent-color: var(--accent); margin: 0; }
.sum-list { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin: 0; font-size: 13.5px; }
.sum-list dt { color: var(--muted); }
.sum-list dd { margin: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.sum-list .strong { color: var(--text); font-weight: 700; }
.sum-big { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 2px; }
.sum-big span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.sum-big strong { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.sum-big small { color: var(--faint); font-size: 11.5px; }
.sum-big.result { background: color-mix(in srgb, var(--amber) 16%, transparent); }
@media (max-width: 1180px) { .set-layout { grid-template-columns: 1fr; } .set-summary { position: static; } }

/* Freigaben im Benutzer-Panel */
.series-mini { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.series-pick { display: grid; gap: 12px; transition: opacity .2s ease; }
.series-pick.is-disabled { opacity: .4; pointer-events: none; }
.series-pick-group { background: var(--well); border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.series-pick-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; margin-bottom: 2px; }
.series-pick-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 4px 0; cursor: pointer; }
.series-pick-item input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.series-pick-item i { width: 9px; height: 9px; border-radius: 50%; background: var(--sc); flex: none; }

/* Farbauswahl */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches label { position: relative; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--sc); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .12s ease-out; }
.swatches span:hover { transform: scale(1.08); }
.swatches input:checked + span { box-shadow: 0 0 0 2px var(--solid), 0 0 0 4px var(--sc); }
.swatches input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Hauptbereich ---------- */
.main { padding: 8px var(--gutter) 48px calc(var(--dock-x) + var(--dock-w) + var(--gutter) + 8px); max-width: 1840px; margin: 0 auto; }
.head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px clamp(28px, 4vw, 72px); margin: 10px 0 26px; }
.head-title {
  font-size: clamp(30px, 3.1vw, 44px); line-height: 1.02; font-weight: 500; letter-spacing: -.028em;
  max-width: 9.5em; text-wrap: balance;
}
.stat { display: flex; align-items: center; gap: 12px; }
.stat-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); }
.stat-body { display: flex; flex-direction: column; line-height: 1.2; }
.stat-value { font-size: 20px; font-weight: 600; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.stat-label { font-size: 12.5px; color: var(--muted); max-width: 16em; }
.head-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.chip-sm { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); letter-spacing: 0; }
.chip-sm.warn { background: var(--st-requested-bg); color: var(--st-requested); }
.chip-sm.bad { background: var(--st-declined-bg); color: var(--st-declined); }

.content { display: flex; flex-direction: column; gap: var(--gap); }

/* ---------- Karten ---------- */
.glass, .card {
  background: var(--glass); border: 1px solid var(--rim); border-radius: var(--r-card);
  box-shadow: var(--shadow); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.card { padding: 18px; min-width: 0; position: relative; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; min-height: 32px; }
.card-head h3 { font-size: 15px; font-weight: 600; letter-spacing: -.005em; display: flex; align-items: center; gap: 8px; }
.card.flush > .card-head { padding: 16px 18px 0; }
.tile { background: var(--glass-tile); border: 1px solid var(--rim); border-radius: var(--r-tile); padding: 14px 16px; }
.well { background: var(--well); border-radius: 12px; padding: 10px 12px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 15px; font-weight: 600; color: var(--muted); }
.section-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.span-2 { grid-column: span 2; }
.cols-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }

/* ---------- Kennzahl-Kacheln ---------- */
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px; }
.kpi-label { font-size: 15px; font-weight: 600; }
.kpi-value { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin-top: 18px; }
.kpi-value small { font-size: 18px; font-weight: 500; color: var(--muted); letter-spacing: -.01em; }
.kpi-sub { color: var(--muted); font-size: 12.5px; }
.kpi.accent { background: color-mix(in srgb, var(--accent) 32%, var(--glass)); }
.kpi.accent .kpi-sub, .kpi.accent .kpi-value small { color: var(--text); opacity: .75; }
.pos { color: var(--st-confirmed); }
.neg { color: var(--st-declined); }
.meter { height: 8px; border-radius: 99px; background: var(--well); overflow: hidden; display: flex; margin-top: 10px; }
.meter > span { display: block; height: 100%; border-radius: 99px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--glass); color: var(--text);
  font: 600 13.5px/1 var(--font); cursor: pointer; white-space: nowrap;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transition: background-color .15s ease, transform .1s ease-out, box-shadow .15s ease;
}
.btn:hover { background: var(--glass-2); color: var(--text); }
.btn:active { transform: scale(.97); }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 8px 20px -10px rgba(1,144,54,.75); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-dark { background: var(--pill); color: var(--on-pill); border-color: transparent; }
.btn-danger { color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; backdrop-filter: none; }
.btn-ghost:hover { background: var(--well); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], input[type=tel], input[type=search], input[type=file], select, textarea {
  width: 100%; min-height: 42px; padding: 10px 14px;
  font: 500 14px/1.3 var(--font); color: var(--text);
  background: var(--plain); border: 1px solid var(--line-2); border-radius: var(--r-input);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
select option { background: var(--solid); color: var(--text); }
textarea { min-height: 96px; resize: vertical; }

/* Auswahl mit Suche (ersetzt die Anzeige von <select data-searchable>) */
.picker-native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.picker { position: relative; width: 100%; min-height: 42px; padding: 10px 36px 10px 14px; text-align: left; cursor: pointer;
  font: 500 14px/1.3 var(--font); color: var(--text); background: var(--plain); border: 1px solid var(--line-2); border-radius: var(--r-input);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.picker::after { content: ""; position: absolute; right: 14px; top: 50%; width: 12px; height: 12px; margin-top: -6px; transition: transform .25s var(--ease);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center; }
.picker.is-open::after { transform: rotate(180deg); }
.picker:focus-visible, .picker.is-open { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background-color: var(--glass-2); }
.picker:disabled { cursor: default; opacity: .7; }
.picker-value { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker.is-placeholder .picker-value { color: var(--faint); }
.picker-pop { position: fixed; z-index: 300; display: flex; flex-direction: column; max-height: min(340px, 60vh); padding: 6px;
  background: var(--glass-3); border: 1px solid var(--rim); border-radius: 16px; box-shadow: var(--shadow-pop);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  opacity: 0; transform: scale(.97) translateY(-4px); transition: opacity .16s ease, transform .22s var(--ease); }
.picker-pop.is-open { opacity: 1; transform: none; }
.picker-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; margin-bottom: 4px; border-radius: 11px; background: var(--well); }
.picker-search .icon { width: 16px; height: 16px; color: var(--faint); }
.picker-search input[type=search] { min-height: 38px; padding: 8px 0; border: 0; background: transparent; box-shadow: none; }
.picker-search input[type=search]:focus { box-shadow: none; background: transparent; }
.picker-list { overflow-y: auto; overscroll-behavior: contain; }
.picker-opt { padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-opt.is-active { background: var(--well); }
.picker-opt.is-selected { color: var(--accent-text); font-weight: 700; }
.picker-opt.is-selected::after { content: " ✓"; }
.picker-opt.is-empty { color: var(--faint); }
.picker-opt.is-disabled { opacity: .45; cursor: default; }
.picker-opt mark { background: var(--accent-soft); color: inherit; border-radius: 4px; padding: 0 1px; }
.picker-none { margin: 0; padding: 14px 12px; color: var(--faint); font-size: 13.5px; }
.tag.warn { background: var(--st-requested-bg); border-color: transparent; color: var(--st-requested); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background-color: var(--glass-2); }
input[readonly], textarea[readonly] { background: transparent; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 600; font-size: 15px; margin-bottom: 14px; padding: 0; grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; font-weight: 600; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

.search { position: relative; display: inline-flex; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 16px; height: 16px; }
.search input { padding-left: 40px; border-radius: 999px; min-width: 260px; height: 40px; min-height: 40px; background: var(--glass); border-color: var(--rim); backdrop-filter: var(--blur); }

/* Segmented Control / Chips */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--rim); backdrop-filter: var(--blur); }
.card .segmented, .sheet .segmented { background: var(--well); border-color: transparent; backdrop-filter: none; border-radius: 16px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.segmented span:hover { color: var(--text); }
.segmented input:checked + span { background: var(--pill); color: var(--on-pill); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--faint)); flex: none; box-shadow: 0 0 0 1px var(--line-2); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--faint);
  padding: 14px 18px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .12s ease; }
.table tbody tr.row-link { cursor: pointer; }
.table tbody tr:hover { background: var(--well); }
.th-sort { color: inherit; }
.th-sort:hover { color: var(--accent-text); }
.table td.nowrap { white-space: nowrap; }
.table .strong { font-weight: 600; font-size: 14.5px; }
.empty { padding: 44px 18px; text-align: center; color: var(--faint); }

/* ---------- Badges / Chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-open      { background: var(--well); color: var(--faint); }
.s-requested { background: var(--st-requested-bg); color: var(--st-requested); }
.s-negotiation { background: var(--st-negotiation-bg); color: var(--st-negotiation); }
.s-confirmed { background: var(--st-confirmed-bg); color: var(--st-confirmed); }
.s-declined  { background: var(--st-declined-bg); color: var(--st-declined); }
.s-blocked   { background: var(--st-blocked-bg); color: var(--st-blocked-text); }
.tag, .chip { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text); }

/* ---------- Avatare (pastellig, wie Solvik) ---------- */
.avatar {
  --c: var(--accent);
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 30%, var(--solid)); color: color-mix(in srgb, var(--c) 70%, var(--text));
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 0 0 1.5px var(--solid);
}
a.avatar:hover { color: color-mix(in srgb, var(--c) 70%, var(--text)); }
.avatar-lg { width: 40px; height: 40px; font-size: 13px; }
.avatar.sm { width: 22px; height: 22px; font-size: 9px; }
.avatars { display: inline-flex; }
.avatars .avatar + .avatar { margin-left: -7px; }

/* ---------- Toast / Hinweise ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; font-weight: 600;
  background: var(--glass-3); border: 1px solid var(--rim); box-shadow: var(--shadow-pop);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  animation: toast-in .45s var(--ease), toast-out .3s ease-in 3.6s forwards;
}
.toast-ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.toast-error { color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 16px) scale(.96); visibility: hidden; } }
.alert { padding: 12px 16px; border-radius: 14px; margin-bottom: 14px; font-weight: 600; }
.alert-error { background: var(--st-declined-bg); color: var(--st-declined); }
.alert-ok { background: var(--st-confirmed-bg); color: var(--st-confirmed); }
.alert-warn { background: var(--st-requested-bg); color: var(--st-requested); }

/* ---------- Unterreiter (z. B. Künstlerprofil) ---------- */
.subtabs { align-self: flex-start; }

/* ---------- Seitenpanel ---------- */
.sheet-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(8, 11, 10, .3); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.sheet {
  position: fixed; top: 14px; right: 14px; bottom: 14px; z-index: 90;
  width: min(460px, calc(100vw - 28px)); display: flex; flex-direction: column;
  background: var(--glass-3); border: 1px solid var(--rim); border-radius: var(--r-card); box-shadow: var(--shadow-pop);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transform: translateX(calc(100% + 32px)); visibility: hidden;
  transition: transform .42s var(--ease), visibility 0s linear .42s;
}
.sheet.is-open { transform: none; visibility: visible; transition: transform .42s var(--ease), visibility 0s; }
.sheet-scrim.is-open { opacity: 1; pointer-events: auto; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 10px; }
.sheet-head h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.sheet-body { flex: 1; overflow-y: auto; padding: 4px 20px 16px; display: flex; flex-direction: column; gap: 16px; }
.sheet-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: space-between; }

/* ---------- Planungsraster ---------- */
.plan-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plan-toolbar select { width: auto; border-radius: 999px; height: 40px; min-height: 40px; background-color: var(--glass); border-color: var(--rim); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.plan { min-width: 1320px; table-layout: fixed; }
.plan th:first-child { width: 172px; }
.plan th:last-child { width: 52px; }
.plan th {
  position: sticky; top: 0; z-index: 2; text-align: left;
  font-size: 12px; font-weight: 600; color: var(--faint);
  padding: 16px 6px 10px; border-bottom: 1px solid var(--line);
}
.plan th:first-child { padding-left: 20px; }
.plan td { padding: 5px; vertical-align: middle; }
.plan tbody tr:not(.series-row) + tr:not(.series-row) td { border-top: 1px solid var(--line); }
.plan .date-cell { padding: 5px 5px 5px 14px; }
.date-tile {
  /* --sc kommt von der Zelle (Farbe der Reihe) – hier nicht überschreiben */
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1px;
  min-height: 64px; padding: 8px 10px 8px 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--sc) 24%, transparent);
  border: 1px solid color-mix(in srgb, var(--sc) 40%, transparent);
  white-space: nowrap; overflow: hidden;
}
.date-tile::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--sc); }
.date-tile strong { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.date-tile small { color: var(--muted); font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.date-tile small b { color: var(--st-requested); font-weight: 700; }
.plan .row-actions > * { display: flex; align-items: center; justify-content: center; margin-inline: auto; }
.plan .row-actions > * + * { margin-top: 6px; }
.plan .row-actions > [hidden] { display: none; }
.declined-btn { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 32px; height: 22px; padding: 0 7px 0 5px; border-radius: 999px; cursor: pointer;
  font: 700 11px var(--font); color: var(--st-declined); background: var(--st-declined-bg); border: 1px solid color-mix(in srgb, var(--st-declined) 30%, transparent);
  transition: background-color .15s ease, transform .1s ease-out; }
.declined-btn[hidden] { display: none; }
.declined-btn .icon { width: 11px; height: 11px; }
.declined-btn:hover { background: color-mix(in srgb, var(--st-declined) 28%, transparent); }
.declined-btn:active { transform: scale(.94); }
/* Auswahlmodus (Sammel-Löschen) */
.plan .row-select { display: none; }
.select-mode .plan .date-cell { position: relative; padding-left: 44px; }
.select-mode .plan .row-select { display: grid; place-items: center; position: absolute; left: 12px; top: 50%; translate: 0 -50%; cursor: pointer; }
.row-select input { position: absolute; opacity: 0; pointer-events: none; }
.row-select input:checked + .check-box { background: var(--danger); border-color: var(--danger); color: #fff; }
.select-mode .plan tbody tr { cursor: pointer; }
.select-mode .plan tbody tr.is-selected td { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.select-mode .plan .opt, .select-mode .plan .date-tile, .select-mode .plan .row-actions > * { pointer-events: none; }
#select-toggle[aria-pressed="true"] { background: var(--pill); color: var(--on-pill); border-color: transparent; }
.select-bar { position: fixed; left: 50%; bottom: 22px; z-index: 90; translate: -50% 0; display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 18px;
  border-radius: 999px; background: var(--glass-3); border: 1px solid var(--rim); box-shadow: var(--shadow-pop); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  animation: bar-in .3s var(--ease); max-width: calc(100vw - 24px); flex-wrap: wrap; }
.select-bar[hidden] { display: none; }
.select-count { font-weight: 700; font-size: 13.5px; margin-right: 6px; font-variant-numeric: tabular-nums; }
.select-bar .btn-danger:not(:disabled) { background: var(--danger); color: #fff; border-color: transparent; }
@keyframes bar-in { from { opacity: 0; translate: -50% 16px; } }
.declined-list { display: flex; flex-direction: column; gap: 10px; }
.declined-item { display: flex; flex-direction: column; gap: 4px; }
.declined-item .opt { min-height: 58px; }
/* To-do auf der Übersicht */
.todo-item { align-items: flex-start; }
.todo-ring { --p: 0; position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--well) 0); }
.todo-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--solid); }
.todo-ring b { position: relative; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.todo-item .small { display: flex; align-items: center; gap: 6px; }
.todo-missing { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.todo-missing span { padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--st-requested); background: var(--st-requested-bg); }
/* Abschluss-Checkliste */
.opt .opt-check { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  color: var(--st-requested); background: var(--st-requested-bg); white-space: nowrap; }
.opt .opt-check.is-complete { color: #fff; background: var(--st-confirmed); padding: 0 4px; }
.opt .opt-check .icon { width: 12px; height: 12px; }
.booking-count { margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; color: var(--st-requested); background: var(--st-requested-bg); }
.booking-count.is-complete { color: var(--accent-text); background: var(--accent-soft); }
.check-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color .15s ease; }
.check-row:last-child { border-bottom: 0; }
.check-row:hover { background: var(--well); }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1.5px solid var(--line-2); color: transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s var(--ease); }
.check-box .icon { width: 14px; height: 14px; }
.check-row input:checked + .check-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.check-row input:active + .check-box { transform: scale(.9); }
.check-row input:focus-visible + .check-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-row.is-auto { cursor: default; }
.check-row.is-auto input:checked + .check-box { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.check-text { display: flex; flex-direction: column; min-width: 0; }
.check-text b { font-size: 14px; font-weight: 600; }
.check-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-text small:empty { display: none; }
.period { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.period .icon { width: 13px; height: 13px; color: var(--muted); }
.table tr.hidden-note td { padding: 12px 18px; text-align: center; font-size: 13px; }
.table tr.hidden-note a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.table tr.hidden-note a .icon { width: 13px; height: 13px; }
.table tr.hidden-note a:hover { color: var(--text); }
.table tbody tr.hidden-note:hover { background: transparent; }
.venue-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.venue-link .icon { width: 14px; height: 14px; }
.date-venue { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 11.5px; font-weight: 600; color: var(--sc); min-width: 0; }
.date-venue[hidden] { display: none; }
.date-venue .icon { width: 12px; height: 12px; flex: none; }
.date-venue span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.date-series { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: color-mix(in srgb, var(--sc) 70%, var(--text)); overflow: hidden; text-overflow: ellipsis; }
.plan tr.past .date-tile { opacity: .6; }
.date-tile.is-editable { cursor: pointer; transition: transform .12s ease-out, box-shadow .2s ease; }
.date-tile.is-editable:hover { box-shadow: var(--shadow-pop); }
.date-tile.is-editable:active { transform: scale(.98); }
.date-tile.is-saved { animation: pulse .7s var(--ease); }
.move-list { display: flex; flex-direction: column; max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; }
.move-item { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
.move-item:last-child { border-bottom: 0; }
.move-item:hover { background: var(--well); }
.move-date { font-weight: 600; font-variant-numeric: tabular-nums; }
.move-act { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.move-item.is-clash { cursor: default; opacity: .6; }
.move-item.is-clash .move-act { color: var(--st-declined); font-weight: 600; }
.note-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.note-picks .tag { cursor: pointer; font-family: var(--font); transition: background-color .15s ease, color .15s ease, transform .1s ease-out; }
.note-picks .tag:active { transform: scale(.96); }
.note-picks .tag.is-picked { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

.opt-calc, .date-calc { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--well); color: var(--text); }
.opt-calc .icon, .date-calc .icon { width: 12px; height: 12px; }
.date-icons { position: absolute; right: 8px; top: 8px; display: flex; gap: 3px; }
.date-calc { background: color-mix(in srgb, var(--sc) 30%, transparent); }
.date-calc.is-final { background: var(--accent); color: #fff; }

.series-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.series-chip {
  --sc: var(--faint);
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--rim); font-size: 12.5px; font-weight: 600; color: var(--text);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: background-color .15s ease, transform .1s ease-out;
}
.series-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--sc); }
.series-chip span { color: var(--faint); font-weight: 600; }
.series-chip:hover { background: var(--glass-2); color: var(--text); }
.series-chip:active { transform: scale(.97); }
.series-chip.is-active { background: color-mix(in srgb, var(--sc) 30%, var(--glass)); border-color: var(--sc); }
a.series-chip:first-child.is-active { background: var(--pill); color: var(--on-pill); border-color: transparent; }
.plan .row-actions { width: 52px; text-align: center; }

.opt {
  --bar: transparent;
  position: relative; width: 100%; min-height: 64px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  padding: 10px 12px 10px 14px; border-radius: 16px;
  border: 1px solid var(--rim); background: var(--glass-tile);
  font: inherit; text-align: left; color: var(--text); cursor: pointer;
  transition: transform .12s ease-out, box-shadow .2s ease, background-color .2s ease;
}
.opt:hover { box-shadow: var(--shadow-pop); }
.opt:active { transform: scale(.98); }
.opt .opt-name { font-weight: 600; font-size: 14px; line-height: 1.2; letter-spacing: -.01em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.opt .opt-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); min-height: 22px; }
.opt .opt-meta .note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt::after { content: ""; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--bar); }
.opt.is-empty { background: transparent; border-style: dashed; border-color: var(--line-2); }
.opt.is-empty .opt-name { color: var(--faint); font-weight: 500; }
.opt.st-requested { background: var(--st-requested-bg); --bar: var(--st-requested); }
.opt.st-negotiation { background: var(--st-negotiation-bg); --bar: var(--st-negotiation); }
.opt.st-confirmed { background: var(--st-confirmed-bg); --bar: var(--st-confirmed); }
.opt.st-declined  { background: var(--st-declined-bg); --bar: var(--st-declined); }
.opt.st-declined .opt-name { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, var(--st-declined) 55%, transparent); }
.opt.st-blocked   { background: var(--st-blocked-bg); color: var(--st-blocked-text); border-color: transparent; border-style: solid; }
.opt.st-blocked .opt-name, .opt.st-blocked .opt-meta { color: rgba(242, 244, 240, .72); }
.opt.is-saved { animation: pulse .7s var(--ease); }
@keyframes pulse { 40% { box-shadow: 0 0 0 4px var(--accent-soft); } }

/* Line-up: mehrere Acts in einer Option */
.opt.is-lineup .opt-name { display: flex; flex-direction: column; gap: 1px; -webkit-line-clamp: unset; }
.opt .opt-name .act { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt .opt-name .act + .act::before { content: "+ "; color: var(--muted); font-weight: 500; }
.opt .opt-name .act.is-minor { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.opt .opt-acts { padding: 1px 7px; border-radius: 999px; background: var(--well); font-weight: 600; font-size: 10.5px; letter-spacing: .01em; white-space: nowrap; }
.acts { display: flex; flex-direction: column; gap: 8px; }
.act-row { display: grid; grid-template-columns: 1fr 112px 32px; gap: 8px; align-items: center; }
.acts.is-multi .act-row { grid-template-columns: 1fr 132px 112px 32px; }
.act-row .act-role { display: none; }
.acts.is-multi .act-row .act-role { display: block; }
.act-row input, .act-row select { min-width: 0; }
.acts-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
#opt-artist-link { display: flex; flex-wrap: wrap; gap: 4px 14px; }
@media (max-width: 560px) {
  .acts.is-multi .act-row { grid-template-columns: 1fr 1fr 32px; }
  .acts.is-multi .act-row .act-name { grid-column: 1 / -1; }
}

/* Drag & Drop */
.plan.can-drag .opt { cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none !important; }
.opt.is-pressed { scale: .97; transition: scale .15s ease-out; }
.opt.is-placeholder { opacity: .3; border-style: dashed; box-shadow: none; }
.opt.is-drop-target { scale: 1.03; box-shadow: 0 0 0 2px var(--accent), var(--shadow-pop); transition: scale .25s var(--ease), box-shadow .2s ease; }
.opt-ghost {
  position: fixed !important; left: 0; top: 0; z-index: 200; margin: 0; pointer-events: none;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transition: scale .22s var(--ease), rotate .22s var(--ease), box-shadow .22s ease;
  will-change: transform;
}
.opt-ghost.is-lifted { scale: 1.05; rotate: -1.5deg; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45), 0 0 0 1px var(--rim); }
.opt-ghost.is-settling { transition: transform .34s var(--ease), width .34s var(--ease), height .34s var(--ease), scale .34s var(--ease), rotate .34s var(--ease), box-shadow .34s ease; }


/* ---------- Kalkulation ---------- */
.calc-table { min-width: 1440px; }
.calc-table th { font-size: 11.5px; font-weight: 600; color: var(--faint); padding: 14px 4px 8px; text-align: right; white-space: nowrap; }
.calc-table th:first-child { text-align: left; padding-left: 18px; }
.calc-table td { padding: 3px; border-bottom: 1px solid var(--line); }
.calc-table td:first-child { padding-left: 14px; }
.calc-table input { min-height: 36px; padding: 6px 8px; text-align: right; border-radius: 10px; font-size: 13.5px; }
.calc-table input.name { text-align: left; font-weight: 600; min-width: 150px; }
.calc-table .calc-out { padding: 6px 8px; text-align: right; color: var(--muted); white-space: nowrap; font-size: 13.5px; }
.calc-table .calc-out.strong { color: var(--text); font-weight: 700; }
.calc-table th.fee-th { padding: 8px 3px 6px; vertical-align: bottom; }
.fee-head { display: flex; flex-direction: column; gap: 4px; align-items: stretch; width: 80px; margin-left: auto; }
.calc-table .fee-head input.fee-name {
  min-height: 26px; height: 26px; padding: 3px 6px; border-radius: 8px; text-align: right;
  font-size: 11.5px; font-weight: 700; color: var(--text); background: var(--well); border-color: transparent;
}
.calc-table .fee-head input.fee-name:focus { background: var(--plain); border-color: var(--accent); }
.fee-tools { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.fee-net { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--faint); cursor: pointer; }
.fee-net input { width: 12px; height: 12px; accent-color: var(--accent); margin: 0; }
.fee-net:has(input:checked) { color: var(--accent-text); }
.fee-del { border: 0; background: transparent; color: var(--faint); font-size: 14px; line-height: 1; padding: 0 2px; cursor: pointer; border-radius: 6px; }
.fee-del:hover { color: var(--danger); background: var(--well); }
.calc-table input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--st-declined-bg); color: var(--danger); }
.copy-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: color-mix(in srgb, var(--accent) 14%, var(--glass)); }
.copy-note > svg { width: 22px; height: 22px; flex: none; color: var(--accent-text); margin-top: 2px; }
.copy-note > div { display: grid; gap: 2px; }
.split-input { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.unit-input { position: relative; flex: 1 1 140px; display: block; }
.unit-input input { width: 100%; text-align: right; padding-right: 4.4em; }
.unit-input > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--faint); pointer-events: none; }
#split-hint:empty { display: none; }
.bonus-box { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); container-type: inline-size; }
.bonus-box .card-head { margin-bottom: .6rem; }
.bonus-box h4 { margin: 0; font-size: 15px; font-weight: 600; }
#bonus-list { display: grid; gap: 8px; }
.bonus-row { display: grid; grid-template-columns: minmax(120px, 1fr) 110px 145px 120px 30px; gap: 8px; align-items: center; }
.bonus-row input, .bonus-row select { min-height: 38px; padding: 6px 10px; font-size: 14px; }
.bonus-amount, .bonus-value { position: relative; display: block; }
.bonus-amount input, .bonus-value input { width: 100%; text-align: right; padding-right: 2.2em; }
.bonus-value input { padding-right: 4.4em; }
.bonus-amount > span, .bonus-value > span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--faint); pointer-events: none; }
.bonus-value[hidden] { display: block; visibility: hidden; }
.bonus-hint { white-space: nowrap; grid-column: 1 / -1; margin-top: -4px; }
.bonus-row > [data-del-bonus] { grid-column: 5; grid-row: 1; }
@container (max-width: 600px) {
  .bonus-row { grid-template-columns: 1fr 1fr 30px; grid-auto-flow: dense; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .bonus-row > input[data-b="name"] { grid-column: 1 / 3; grid-row: 1; }
  .bonus-row > [data-del-bonus] { grid-column: 3; grid-row: 1; }
  .bonus-amount { grid-column: 1; } .bonus-row > select { grid-column: 2 / 4; }
  .bonus-value[hidden] { display: none; }
  .bonus-hint { grid-column: 1 / -1; }
}
.calc-table tfoot td { font-weight: 700; padding: 12px 8px; border-bottom: 0; }
.scen-table td, .scen-table th { text-align: right; white-space: nowrap; }
.scen-table td:first-child, .scen-table th:first-child { text-align: left; }
.scen-table tr.marker td { background: var(--accent-soft); font-weight: 700; }
.scen-table td .lbl { display: block; font-size: 10.5px; color: var(--accent-text); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.calc-viewbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.calc-viewbar .muted { flex: 1 1 280px; }
.segmented.seg-sm span { padding: 5px 11px; font-size: 12.5px; }
.calc-table input.kep-back { border-style: dashed; background: transparent; }
.calc-table input.kep-back:focus { border-style: solid; background: var(--plain); }
.calc-table input.kep-back.strong { font-weight: 700; }
body.calc-external #kpis .kpi.accent { background: color-mix(in srgb, var(--st-requested) 22%, var(--glass)); }
.scen-input { width: 120px; text-align: right; height: 32px; min-height: 32px; border-radius: 999px; }
.chart { width: 100%; height: 220px; display: block; }
.chart .axis { stroke: var(--line-2); }
.chart text { fill: var(--faint); font-size: 11px; font-family: var(--font); font-weight: 600; }

/* ---------- Listen / Dateien ---------- */
.list { display: flex; flex-direction: column; gap: 8px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--glass-tile); border: 1px solid var(--rim); transition: box-shadow .2s ease; }
a.list-item:hover { box-shadow: var(--shadow-pop); color: inherit; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .grow > .title, .list-item .grow > .small { display: block; }
.list-item .grow > .small { color: var(--muted); }
.file-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); flex: none; }
dl.props { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0; }
dl.props dt { color: var(--faint); font-size: 12.5px; font-weight: 600; }
dl.props dd { margin: 0; font-weight: 600; }
.timeline .when { width: 84px; flex: none; color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* ---------- Login / Installer ---------- */
.login-body { display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); padding: 32px 28px; }
.login-card.wide { width: min(660px, 100%); }
.login-card h1 { font-size: 34px; font-weight: 500; letter-spacing: -.028em; margin-bottom: 4px; }
.login-card .field { margin-bottom: 14px; }

/* ---------- Künstlerliste: Filter + A–Z-Register ---------- */
.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 14px; align-items: end; }
.pipe-filters { margin-bottom: 0; }
.filter-toggles { grid-column: 1 / span 3; display: flex; flex-wrap: wrap; gap: 8px; }
.filter-foot { grid-column: 4 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 34px; }
.toggle-chip input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-chip span { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--muted); background: var(--well); border: 1px solid transparent; transition: background-color .15s ease, color .15s ease, transform .1s ease-out; }
.toggle-chip span .icon { width: 15px; height: 15px; }
.toggle-chip span:active { transform: scale(.97); }
.toggle-chip input:checked + span { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.toggle-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.az-layout { display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: 10px; align-items: start; }
.az-index { position: sticky; top: 16px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--rim); box-shadow: var(--shadow); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  touch-action: none; user-select: none; -webkit-user-select: none; }
.az-index button { width: 26px; height: clamp(15px, 2.6vh, 22px); border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 700 11px/1 var(--font); color: var(--accent-text); transition: background-color .12s ease, color .12s ease, transform .15s var(--ease); }
.az-index button:hover:not(:disabled) { background: var(--well); }
.az-index button.is-current { background: var(--accent); color: #fff; }
.az-index button:disabled { color: var(--faint); opacity: .35; cursor: default; }
.az-index.is-scrubbing button.is-current { transform: scale(1.25); }
.az-bubble { position: fixed; left: 50%; top: 45%; z-index: 120; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 26px; pointer-events: none;
  font-size: 46px; font-weight: 700; color: var(--text); background: var(--glass-3); border: 1px solid var(--rim); box-shadow: var(--shadow-pop);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .18s ease, transform .25s var(--ease); }
.az-bubble.is-on { opacity: 1; transform: translate(-50%, -50%); }
.table tr.letter-row td { padding: 14px 18px 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--accent-text); border-bottom: 1px solid var(--line); background: transparent; }
.table tbody tr.letter-row:hover { background: transparent; }
.table tr.letter-row.is-flash td { animation: az-flash 1s ease; }
@keyframes az-flash { 0%, 30% { background: var(--accent-soft); } }

@media (max-width: 1180px) {
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-toggles { grid-column: 1 / span 2; }
  .filter-foot { grid-column: 3; }
}
@media (max-width: 700px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filter-toggles, .filter-foot { grid-column: 1 / -1; justify-content: flex-start; }
  .az-layout { grid-template-columns: minmax(0, 1fr) 22px; gap: 6px; }
  .az-index { top: 8px; }
  .az-index button { width: 20px; font-size: 10px; }
}

/* ---------- Übersicht: Bento + Bewegung ---------- */
.is-dash .head { display: none; }
.bento { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--gap); margin-top: 6px; }
.bento-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 22px;
  background: var(--glass); border: 1px solid var(--rim); border-radius: 28px; box-shadow: var(--shadow);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transition: transform .5s var(--ease), box-shadow .4s ease; }
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow), var(--shadow-pop); }
/* Lichtfleck folgt dem Zeiger */
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .16), transparent 60%); }
.spot:hover::before { opacity: 1; }

/* Hero mit Polarlicht in CI-Grün */
.hero { min-height: 280px; justify-content: space-between; gap: 18px; padding: 26px 26px 22px; }
.aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; border-radius: inherit; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; will-change: transform; }
.aurora i:nth-child(1) { width: 62%; aspect-ratio: 1; left: -12%; top: -40%; background: #019036; animation: aur1 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 46%; aspect-ratio: 1; right: -8%; top: -30%; background: #e9a23b; opacity: .32; animation: aur2 23s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 50%; aspect-ratio: 1; left: 30%; bottom: -60%; background: #2a8fd6; opacity: .28; animation: aur3 27s ease-in-out infinite alternate; }
@keyframes aur1 { to { transform: translate(30%, 22%) scale(1.15); } }
@keyframes aur2 { to { transform: translate(-28%, 30%) scale(.9); } }
@keyframes aur3 { to { transform: translate(-22%, -26%) scale(1.1); } }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-title { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.02; font-weight: 600; letter-spacing: -.035em; margin-top: 6px; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--glass-2); border: 1px solid var(--rim); white-space: nowrap; }
.hero-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--st-confirmed); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--st-confirmed) 65%, transparent); } 50%, 100% { box-shadow: 0 0 0 8px transparent; } }

.spotlight { display: flex; align-items: center; gap: 18px; padding: 14px 16px 14px 14px; border-radius: 22px; color: var(--text);
  background: color-mix(in srgb, var(--sc) 16%, var(--glass-2)); border: 1px solid color-mix(in srgb, var(--sc) 35%, var(--rim));
  transition: transform .3s var(--ease), background-color .3s ease; }
.spotlight:hover { color: var(--text); transform: scale(1.01); background: color-mix(in srgb, var(--sc) 24%, var(--glass-2)); }
.spotlight:active { transform: scale(.99); }
.countdown { display: grid; place-items: center; align-content: center; width: 86px; height: 86px; flex: none; border-radius: 22px;
  background: var(--sc); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 28px -14px var(--sc); }
.countdown b { font-size: 36px; line-height: 1; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 12px; font-weight: 600; opacity: .85; }
.countdown.is-today b { font-size: 20px; }
.countdown.is-today { animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.05); } }
.spot-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.spot-body strong { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-meta { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); }
.spot-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--glass-2); border: 1px solid var(--rim); transition: transform .3s var(--ease); }
.spotlight:hover .spot-go { transform: translateX(4px); }
.upnext { display: flex; gap: 8px; flex-wrap: wrap; }
.upnext-item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--glass-2); border: 1px solid var(--rim); color: var(--text); max-width: 100%; transition: transform .2s var(--ease), background-color .2s ease; }
.upnext-item:hover { color: var(--text); background: color-mix(in srgb, var(--sc) 18%, var(--glass-2)); transform: translateY(-1px); }
.upnext-date { padding: 3px 8px; border-radius: 999px; background: var(--sc); color: #fff; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.upnext-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Saisonring */
.season { align-items: stretch; }
.ring-wrap { position: relative; width: min(170px, 100%); aspect-ratio: 1; margin: 6px auto 4px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-width: 11; }
.ring-track { stroke: var(--well); }
.ring-fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--off);
  filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--accent) 55%, transparent)); transition: stroke-dashoffset 1.6s cubic-bezier(.22, 1, .36, 1) .2s; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; gap: 2px; }
.ring-label b { font-size: 44px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ring-label small { font-size: 18px; font-weight: 600; color: var(--muted); }

/* Status-Stapel */
.status .kpi-value { margin-top: 10px; font-variant-numeric: tabular-nums; }
.stack { display: flex; gap: 3px; height: 12px; margin-top: 14px; border-radius: 99px; overflow: hidden; }
.stack span { width: var(--w); background: var(--c); border-radius: 3px; transition: width 1.1s cubic-bezier(.22, 1, .36, 1) calc(.25s + var(--k) * .08s); }
.stack-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.stack-legend span { display: inline-flex; align-items: center; gap: 5px; }
.stack-legend b { color: var(--text); }
.mine { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.mine:hover { color: var(--accent-text); }
.meter > span[style*="--w"] { width: var(--w); transition: width 1.1s cubic-bezier(.22, 1, .36, 1) .3s; }

/* Einblenden beim Laden / Scrollen (nur mit JS, sonst sofort sichtbar) */
.js .reveal { opacity: 0; transform: translateY(14px) scale(.985);
  transition: opacity .5s var(--ease), transform .7s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .bento-card.reveal.is-in:hover { transform: translateY(-3px); transition-delay: 0s; }
.js .reveal:not(.is-in) .ring-fill { stroke-dashoffset: var(--len); }
.js .reveal:not(.is-in) .stack span, .js .reveal:not(.is-in) .meter > span[style*="--w"] { width: 0; }
.js .reveal .feed-item, .js .reveal .upnext-item { opacity: 0; transform: translateX(-8px); transition: opacity .5s ease, transform .6s var(--ease); }
.js .reveal.is-in .feed-item, .js .reveal.is-in .upnext-item { opacity: 1; transform: none; }
.js .reveal.is-in .feed-item:nth-child(2), .js .reveal.is-in .upnext-item:nth-child(2) { transition-delay: .08s; }
.js .reveal.is-in .feed-item:nth-child(3), .js .reveal.is-in .upnext-item:nth-child(3) { transition-delay: .16s; }
.js .reveal.is-in .feed-item:nth-child(4) { transition-delay: .24s; }
.js .reveal.is-in .feed-item:nth-child(5) { transition-delay: .32s; }
.js .reveal.is-in .feed-item:nth-child(6) { transition-delay: .4s; }
/* Planungszeilen der Übersicht laufen gestaffelt ein */
.is-dash .plan tbody tr { animation: row-in .6s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(.15s + var(--r, 0) * 25ms); }
@keyframes row-in { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 1180px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .hero { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .countdown { width: 70px; height: 70px; border-radius: 18px; }
  .countdown b { font-size: 28px; }
  .spot-body strong { font-size: 18px; }
  .spot-go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora i, .hero-chip i, .countdown.is-today { animation: none !important; }
  .js .reveal { transform: none; }
  .bento-card:hover, .js .bento-card.reveal.is-in:hover { transform: none; }
}

/* ---------- Anmeldung: Bühne + Liquid Glass ---------- */
.auth {
  --stage: #07110b; --ink: #f3f6f1; --ink-2: #b9c4bc;
  --glass-fill: rgba(255, 255, 255, .07); --glass-edge: rgba(255, 255, 255, .28); --glass-edge-2: rgba(255, 255, 255, .06);
  --field: rgba(255, 255, 255, .06); --field-line: rgba(255, 255, 255, .14);
  min-height: 100dvh; margin: 0; color: var(--ink); background: var(--stage); overflow-x: hidden;
  display: grid; grid-template-rows: 1fr auto;
}
:root[data-theme="light"] .auth {
  --stage: #dfe7df; --ink: #101512; --ink-2: #4a544d;
  --glass-fill: rgba(255, 255, 255, .34); --glass-edge: rgba(255, 255, 255, .9); --glass-edge-2: rgba(255, 255, 255, .3);
  --field: rgba(255, 255, 255, .5); --field-line: rgba(16, 21, 18, .12);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .auth {
    --stage: #dfe7df; --ink: #101512; --ink-2: #4a544d;
    --glass-fill: rgba(255, 255, 255, .34); --glass-edge: rgba(255, 255, 255, .9); --glass-edge-2: rgba(255, 255, 255, .3);
    --field: rgba(255, 255, 255, .5); --field-line: rgba(16, 21, 18, .12);
  }
}

.stage { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .85; will-change: transform; }
.o1 { width: 52vmax; height: 52vmax; left: -14vmax; top: -18vmax; background: radial-gradient(circle, #019036, transparent 68%); animation: drift1 28s ease-in-out infinite alternate; }
.o2 { width: 40vmax; height: 40vmax; right: -10vmax; top: 4vmax; background: radial-gradient(circle, #e9a23b, transparent 66%); opacity: .55; animation: drift2 34s ease-in-out infinite alternate; }
.o3 { width: 46vmax; height: 46vmax; left: 30vw; bottom: -26vmax; background: radial-gradient(circle, #1f7fbf, transparent 66%); opacity: .5; animation: drift3 40s ease-in-out infinite alternate; }
.o4 { width: 26vmax; height: 26vmax; left: 46vw; top: 20vh; background: radial-gradient(circle, #4fd17f, transparent 64%); opacity: .45; animation: drift2 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(14vw, 10vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-12vw, 14vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-16vw, -10vh) scale(1.08); } }
/* Scheinwerferkegel von oben – sehr dezent */
.beam { position: absolute; top: -10vh; width: 34vw; height: 120vh; transform-origin: 50% 0;
  background: conic-gradient(from 180deg at 50% 0, transparent 46%, rgba(255, 255, 255, .09) 50%, transparent 54%);
  mix-blend-mode: screen; animation: sweep 22s ease-in-out infinite alternate; }
.b1 { left: 8vw; --a: -14deg; --b: 10deg; }
.b2 { left: 40vw; --a: 12deg; --b: -12deg; animation-duration: 27s; }
.b3 { left: 70vw; --a: -8deg; --b: 16deg; animation-duration: 31s; }
@keyframes sweep { from { transform: rotate(var(--a)); } to { transform: rotate(var(--b)); } }
.grain { position: absolute; inset: 0; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-theme="light"] .auth .orb { opacity: .5; }
:root[data-theme="light"] .auth .beam { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .auth .orb { opacity: .5; } :root:not([data-theme="dark"]) .auth .beam { display: none; } }

.auth-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 440px); align-items: center; gap: clamp(32px, 7vw, 120px);
  width: min(1180px, 100%); margin: 0 auto; padding: clamp(24px, 6vh, 72px) 24px; }
.auth-intro .brand { color: var(--ink); margin-bottom: clamp(28px, 8vh, 80px); }
.auth-intro h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: .98; letter-spacing: -.04em; font-weight: 600; margin: 0 0 22px; text-wrap: balance; }
.auth-intro h1 span { background: linear-gradient(90deg, #4fd17f, #e9c27a 60%, #8cc4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .auth-intro h1 span { background-image: linear-gradient(90deg, #017a2e, #b7791f 60%, #1f6fb2); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .auth-intro h1 span { background-image: linear-gradient(90deg, #017a2e, #b7791f 60%, #1f6fb2); } }
.auth-intro p { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.auth-intro > * { animation: rise .9s var(--ease) both; }
.auth-intro > :nth-child(2) { animation-delay: .08s; } .auth-intro > :nth-child(3) { animation-delay: .16s; } .auth-intro > :nth-child(4) { animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

/* Status-Fluss als ruhiges Symbol für den Booking-Prozess */
.auth-flow { display: flex; align-items: center; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
.flow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--glass-fill); border: 1px solid var(--field-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); }
.flow-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 var(--c); animation: ping 3.6s ease-out infinite; }
.flow-pill.st-requested { --c: #f3b85b; } .flow-pill.st-negotiation { --c: #6fd6ee; animation-delay: 1.2s; } .flow-pill.st-confirmed { --c: #4fd17f; }
.flow-pill.st-negotiation i { animation-delay: 1.2s; } .flow-pill.st-confirmed i { animation-delay: 2.4s; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 70%, transparent); } 40%, 100% { box-shadow: 0 0 0 9px transparent; } }
.flow-line { width: 34px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--field-line), transparent); position: relative; overflow: hidden; }
.flow-line::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, #4fd17f, transparent); animation: travel 3.6s ease-in-out infinite; }
@keyframes travel { from { transform: translateX(-100%); } 60%, to { transform: translateX(260%); } }

/* Liquid-Glass-Karte: Brechungsebene + Tönung + Glanzkante */
.lg-card { --mx: 30%; --my: 0%; position: relative; isolation: isolate; border-radius: 32px; color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .12);
  animation: materialize 1s var(--ease) both .1s; }
@keyframes materialize { from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(10px); } }
.lg-refract, .lg-shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.lg-refract { z-index: -2; background: var(--glass-fill); backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%); }
.can-refract .lg-refract { backdrop-filter: blur(6px) saturate(170%) url(#liquid); }
.lg-shine { z-index: -1;
  background: radial-gradient(120% 70% at var(--mx) var(--my), rgba(255, 255, 255, .22), transparent 55%);
  box-shadow: inset 1px 1px 0 var(--glass-edge), inset -1px -1px 0 var(--glass-edge-2), inset 0 0 22px rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12); transition: background .2s ease; }
.lg-body { position: relative; padding: 36px 32px 30px; display: flex; flex-direction: column; }
.lg-mark { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 22px; }
.lg-mark .icon { width: 24px; height: 24px; }
.lg-card h2 { font-size: 30px; font-weight: 600; letter-spacing: -.03em; margin: 0 0 4px; }
.lg-sub { color: var(--ink-2); margin: 0 0 24px; font-size: 15px; }
.lg-alert { margin: -6px 0 18px; padding: 11px 14px; border-radius: 14px; font-size: 14px; font-weight: 600;
  background: rgba(255, 82, 72, .16); border: 1px solid rgba(255, 122, 107, .35); color: #ffb3a8; }
:root[data-theme="light"] .lg-alert { color: #a3321c; }
.lg-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.lg-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lg-input { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 16px; border-radius: 16px;
  background: var(--field); border: 1px solid var(--field-line); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12);
  transition: border-color .2s ease, box-shadow .25s var(--ease), background-color .2s ease; }
.lg-input .icon { color: var(--ink-2); width: 18px; height: 18px; transition: color .2s ease; }
.lg-input:focus-within { border-color: #4fd17f; background: color-mix(in srgb, var(--field) 70%, rgba(79, 209, 127, .12)); box-shadow: 0 0 0 4px rgba(79, 209, 127, .18); }
.lg-input:focus-within > .icon { color: #4fd17f; }
.lg-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; padding: 0; box-shadow: none; }
.lg-input input::placeholder { color: color-mix(in srgb, var(--ink-2) 65%, transparent); }
.lg-input input:-webkit-autofill { -webkit-text-fill-color: var(--ink); transition: background-color 9999s; }
.lg-eye { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); cursor: pointer; }
.lg-eye:hover { background: var(--field); color: var(--ink); }
.lg-eye[aria-pressed="true"] { color: #4fd17f; }
.lg-caps { font-size: 12.5px; font-weight: 600; color: #f3b85b; }
.lg-submit { position: relative; overflow: hidden; margin-top: 8px; height: 54px; border: 0; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-size: 16px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #1aa64c, #017a2e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 30px -12px rgba(1, 144, 54, .8);
  transition: transform .12s ease-out, box-shadow .25s ease, filter .2s ease; }
.lg-submit::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.lg-submit:hover::before { transform: translateX(120%); }
.lg-submit:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 18px 36px -12px rgba(1, 144, 54, .95); }
.lg-submit:active { transform: scale(.98); }
.lg-submit .icon { transition: transform .25s var(--ease); }
.lg-submit:hover .icon { transform: translateX(3px); }
.lg-spin { display: none; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.lg-card.is-loading .lg-submit > span, .lg-card.is-loading .lg-submit > .icon { opacity: 0; }
.lg-card.is-loading .lg-spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.lg-card.has-error { animation: materialize 1s var(--ease) both .1s, shake .5s cubic-bezier(.36, .07, .19, .97) .2s; }
@keyframes shake { 15%, 85% { translate: -2px 0; } 30%, 70% { translate: 5px 0; } 45%, 60% { translate: -7px 0; } }
.auth-foot { position: relative; z-index: 1; text-align: center; padding: 18px; font-size: 12.5px; color: var(--ink-2); }

@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; gap: 28px; max-width: 480px; padding-top: 32px; }
  .auth-intro { text-align: left; }
  .auth-intro .brand { margin-bottom: 26px; }
  .auth-intro h1 { font-size: clamp(34px, 9vw, 46px); margin-bottom: 0; }
  .auth-intro p, .auth-flow { display: none; }
  .lg-body { padding: 28px 22px 24px; }
  .lg-mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .orb, .beam, .flow-pill i, .flow-line::after { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .lg-refract, .can-refract .lg-refract { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--stage) 88%, #fff); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-main { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .appbar { grid-template-columns: 1fr auto; padding: 14px 16px 10px; row-gap: 12px; }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .dock { display: none; }
  .main { padding: 4px 16px 40px; }
  .head { gap: 14px 24px; margin-bottom: 18px; }
  .head-actions { margin-left: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .search, .search input { min-width: 0; width: 100%; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 30px; }
  .brand-name { display: none; }
}

/* ---------- Barrierefreiheit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .sheet { transform: none; opacity: 0; transition: opacity .2s ease, visibility 0s linear .2s; }
  .sheet.is-open { opacity: 1; transition: opacity .2s ease; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .card, .tabs, .dock, .sheet, .toast, .btn, .segmented, .search input, .picker-pop { backdrop-filter: none; -webkit-backdrop-filter: none; background-color: var(--solid); }
}
@media (prefers-contrast: more) {
  :root { --rim: var(--line-2); --line: rgba(0,0,0,.35); --line-2: rgba(0,0,0,.55); --faint: var(--muted); }
}

/* ---------- Druck ---------- */
@media print {
  body { background: #fff; color: #000; font-size: 10pt; }
  .backdrop, .appbar, .dock, .no-print, .toast, .sheet, .sheet-scrim { display: none !important; }
  .main { padding: 0; max-width: none; }
  .card, .glass, .opt, .list-item { box-shadow: none; backdrop-filter: none; border-color: #ccc; background: #fff; break-inside: avoid; }
  input { border: 0 !important; padding: 0 !important; min-height: 0 !important; background: none !important; }
}
.tag.off { opacity: .5; }

/* ---------- 1.9: Planung mit Ideen-Board je Festival ---------- */
.plan { min-width: 880px; }
.plan th:nth-child(2) { width: 300px; }
.plan .idea-th span { font-weight: 500; color: var(--faint); opacity: .8; }
.month-chips .series-chip { --sc: var(--accent); }
.compact-toggle[aria-pressed="true"] { background: var(--pill); color: var(--on-pill); border-color: transparent; }

/* Vorschau in der Zeile (Ansicht „Nach Datum“) */
.idea-peek-cell { white-space: nowrap; }
.idea-peek-cell > * { vertical-align: middle; }
.idea-peek { display: inline-flex; align-items: center; gap: 10px; max-width: calc(100% - 52px); min-height: 40px; padding: 6px 14px 6px 8px; border-radius: 14px;
  border: 1px dashed var(--line-2); background: transparent; font: inherit; color: var(--muted); cursor: pointer; text-align: left;
  transition: background-color .15s ease, transform .1s ease-out; }
.idea-peek:hover { background: var(--glass-2); color: var(--text); }
.idea-peek:active { transform: scale(.98); }
.idea-peek:not(.is-empty) { border-style: solid; border-color: var(--line); }
.peek-count { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px 3px 6px; border-radius: 999px; background: var(--well); font-size: 12px; font-weight: 700; color: var(--text); flex: none; }
.peek-count .icon { width: 14px; height: 14px; color: var(--st-negotiation); }
.idea-peek.is-empty .peek-count { opacity: .55; }
.peek-names { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idea-peek-cell .declined-btn { margin-left: 6px; }

/* Festival-Kopf + Board (Ansicht „Nach Festival“) */
.plan tr.fest-head td { padding: 18px 14px 8px; border-top: 0 !important; }
.plan tbody tr.fest-head:not(:first-child) td { padding-top: 26px; }
.fest-head-in { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fest-head-in strong { font-size: 17px; letter-spacing: -.02em; }
.fest-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sc) 22%, transparent); }
.fest-head-in .grow { flex: 1; }
.plan td.idea-cell { vertical-align: top; padding: 5px 8px; border-left: 1px solid var(--line); }
.plan td.idea-cell .idea-board { position: sticky; top: 52px; }
.idea-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; align-content: start; }
.idea-board .opt { min-height: 58px; }
.idea-board.is-drop-target { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: 16px; }
.idea-add { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 58px; border-radius: 16px; border: 1px dashed var(--line-2);
  background: transparent; font: 600 13px var(--font); color: var(--muted); cursor: pointer; transition: background-color .15s ease, color .15s ease, transform .1s ease-out; }
.idea-add:hover { background: var(--glass-2); color: var(--text); }
.idea-add:active { transform: scale(.97); }
.idea-add .icon { width: 16px; height: 16px; }
.idea-empty { margin: 0; padding: 8px 4px; }
.opt.idea { border-style: dashed; }
.opt.idea.st-open { background: var(--glass-tile); }
.opt-wish { padding: 1px 7px; border-radius: 999px; background: var(--well); font-weight: 600; font-size: 10.5px; color: var(--text); white-space: nowrap; }
#sheet-board .idea-board { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.board-wrap[hidden] { display: none; }

/* Kompakte Ansicht */
.plan.is-compact td { padding-top: 2px; padding-bottom: 2px; }
.plan.is-compact .date-tile { min-height: 40px; padding-top: 4px; padding-bottom: 4px; flex-direction: row; align-items: baseline; gap: 8px; }
.plan.is-compact .date-tile strong { font-size: 14.5px; }
.plan.is-compact .date-tile .date-series, .plan.is-compact .date-tile .date-venue { display: none; }
.plan.is-compact .date-tile .date-icons { top: 50%; translate: 0 -50%; }
.plan.is-compact .opt { min-height: 40px; padding: 6px 10px 6px 12px; flex-direction: row; align-items: center; gap: 8px; }
.plan.is-compact .opt .opt-name { -webkit-line-clamp: 1; font-size: 13px; flex: 1; min-width: 0; }
.plan.is-compact .opt.is-lineup .opt-name { flex-direction: row; gap: 4px; overflow: hidden; }
.plan.is-compact .opt .opt-meta { min-height: 0; flex: none; padding-right: 14px; }
.plan.is-compact .opt .opt-meta .note, .plan.is-compact .opt .avatars { display: none; }
.plan.is-compact .opt::after { top: 50%; translate: 0 -50%; }
.plan.is-compact .idea-board { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 5px; }
.plan.is-compact .idea-add { min-height: 40px; }
.plan.is-compact .idea-peek { min-height: 32px; padding-block: 3px; }
.plan.is-compact tr.fest-head td { padding-top: 14px; }

/* Panel im Ideen-Modus: keine Checkliste, keine Kalkulation/Abrechnung, kein Line-up */
#opt-idea { display: none; }
#sheet-opt.is-idea #opt-idea { display: flex; }
#sheet-opt.is-idea #opt-booking, #sheet-opt.is-idea #opt-calcs, #sheet-opt.is-idea #opt-settle, #sheet-opt.is-idea .acts-tools,
#sheet-opt.is-idea [data-st="confirmed"], #sheet-opt.is-idea [data-st="blocked"], #sheet-opt.is-idea .act-role { display: none; }
.idea-plan-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.idea-plan-row select { flex: 1; min-width: 180px; }
.ended-hint { margin: 6px 0 0; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 600; white-space: pre-line;
  color: var(--st-declined); background: var(--st-declined-bg); }
.ended-hint[hidden] { display: none; }

/* Absage-Dialog */
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line-2); cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease; }
.choice:hover { background: var(--glass-2); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice-ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--well); }
.choice-ico.is-danger { color: var(--st-declined); background: var(--st-declined-bg); }
.choice-text { display: flex; flex-direction: column; gap: 2px; }
.choice-text small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.choice-more { display: flex; flex-direction: column; gap: 10px; padding: 2px 4px 8px 50px; }
.choice-more[hidden] { display: none; }

/* Kalkulationen: Versionen gruppiert */
.calc-group:not(.is-open) .old-version { display: none; }
.calc-group .old-version td { background: color-mix(in srgb, var(--well) 60%, transparent); font-size: 13.5px; }
.version-toggle { display: inline-flex; align-items: center; gap: 4px; height: 24px; margin-left: 4px; padding: 0 9px 0 6px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; font: 600 11.5px var(--font); color: var(--muted); cursor: pointer; transition: background-color .15s ease; }
.version-toggle:hover { background: var(--glass-2); color: var(--text); }
.version-toggle .icon { width: 12px; height: 12px; transition: rotate .2s var(--ease); }
.calc-group.is-open .version-toggle .icon { rotate: 90deg; }
.buyout-row { grid-template-columns: minmax(0, 1fr) 150px 32px !important; }
@media (prefers-reduced-motion: reduce) { .version-toggle .icon { transition: none; } }

/* ---------- 1.9: Dashboard – Kalender & Wiedervorlagen ---------- */
.cal-nav { display: inline-flex; align-items: center; gap: 6px; }
.flip { display: inline-grid; rotate: 180deg; }
.cal { padding: 0; overflow: hidden; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head span { padding: 12px 12px 8px; font-size: 12px; font-weight: 600; color: var(--faint); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 118px; padding: 8px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.is-out { background: color-mix(in srgb, var(--well) 50%, transparent); }
.cal-day.is-out .cal-num { color: var(--faint); }
.cal-num { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); padding: 2px 4px; }
.cal-wd { display: none; }
.cal-day.is-today .cal-num { align-self: flex-start; color: var(--on-pill); background: var(--accent); border-radius: 999px; padding: 2px 9px; }
.cal-ev { --c: var(--faint); display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 8px 4px 6px; border-radius: 9px; font-size: 12px; font-weight: 600; color: var(--text);
  background: color-mix(in srgb, var(--c) 20%, transparent); text-decoration: none; transition: transform .1s ease-out, box-shadow .2s ease; }
.cal-ev:hover { box-shadow: var(--shadow-pop); }
.cal-ev:active { transform: scale(.97); }
.cal-ev i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--sc); box-shadow: 0 0 0 1.5px var(--c); }
.cal-ev span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.cal-ev small { display: none; }
.cal-ev.st-requested { --c: var(--st-requested); }
.cal-ev.st-negotiation { --c: var(--st-negotiation); }
.cal-ev.st-confirmed { --c: var(--st-confirmed); }
.cal-ev.st-blocked { background: var(--st-blocked-bg); color: var(--st-blocked-text); }
.cal-ev.st-free, .cal-ev.st-open { background: transparent; border: 1px dashed var(--line-2); color: var(--faint); font-weight: 500; }
@media (max-width: 760px) {
  /* Schmal: Agenda statt Raster – nur Tage mit Terminen */
  .cal-head { display: none; }
  .cal-grid { grid-template-columns: 1fr; }
  .cal-day { min-height: 0; border-right: 0; padding: 10px 14px 12px; }
  .cal-day.is-empty, .cal-day.is-out { display: none; }
  .cal-wd { display: inline; margin-right: 4px; font-weight: 600; color: var(--faint); }
  .cal-ev { padding-block: 6px; }
  .cal-ev small { display: inline; color: var(--muted); font-weight: 500; }
}
.fu-item { align-items: center; transition: opacity .25s ease, translate .25s var(--ease); }
.fu-item.is-gone { opacity: 0; translate: 12px 0; }
.fu-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--well); line-height: 1.05; }
.fu-date b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.fu-date small { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.fu-item.is-due .fu-date { background: var(--st-requested-bg); color: var(--st-requested); }
.fu-due { color: var(--st-requested); }
.fu-item .title a { color: inherit; }
.fu-actions { display: flex; gap: 4px; flex: none; }
.fu-actions .icon-btn { width: 30px; height: 30px; }
@media (prefers-reduced-motion: reduce) { .fu-item { transition: opacity .2s ease; } .fu-item.is-gone { translate: none; } }
/* Künstlerakte: Booking beendet / Wiedervorlagen */
.artist-flags { display: grid; gap: 10px; margin-bottom: var(--gap); }
.ended-card, .fu-flag { display: flex; align-items: flex-start; gap: 14px; }
.ended-card { border-color: color-mix(in srgb, var(--st-declined) 40%, transparent); background: color-mix(in srgb, var(--st-declined-bg) 45%, var(--glass)); }
.ended-card .grow, .fu-flag .grow { flex: 1; min-width: 0; }
.calc-group td:nth-child(2) { white-space: nowrap; }
/* 1.9.1: Planung – Aktionen in der Filterzeile (ohne Status-Legende) */
.plan-toolbar:has(.toolbar-gap) { flex: 1; }
.toolbar-gap { flex: 1; }
#cal-wrap .cal-grid { transition: opacity .15s ease; }
#cal-wrap.is-loading .cal-grid { opacity: .5; }
.plan.is-compact .idea-board { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.plan.is-compact .opt.idea .opt-wish { display: none; }
.plan.is-compact .opt.idea .opt-meta { padding-right: 10px; }
/* 1.9.2: kompakte Datumskachel – linksbündig, feste Spalten statt zentriert */
.plan.is-compact .date-tile { justify-content: flex-start; align-items: center; gap: 10px; padding-left: 16px; }
.plan.is-compact .date-tile strong { flex: none; width: 4.4em; font-variant-numeric: tabular-nums; }
.plan.is-compact .date-tile small { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan.is-compact .date-tile .date-icons { position: static; translate: none; flex: none; }
.date-tile .wd-short { display: none; }
.plan.is-compact .date-tile .wd-long { display: none; }
.plan.is-compact .date-tile .wd-short { display: inline; }
.plan.is-compact th:first-child { width: 196px; }
.plan.is-compact .date-tile { gap: 8px; }
.plan.is-compact .date-tile strong { width: 4.1em; }
/* 1.9.3: Wochentag vor dem Datum (kompakt), Bearbeiter*in auch kompakt sichtbar */
.date-tile .wd-pre { display: none; }
.plan.is-compact .date-tile .wd-pre { display: inline; flex: none; width: 1.6em; font-size: 12px; font-weight: 700; color: var(--muted); }
.plan.is-compact .date-tile .wd-long, .plan.is-compact .date-tile .wd-sep { display: none; }
.plan.is-compact .date-tile small b { font-size: 11.5px; }
.plan.is-compact .opt .avatars { display: inline-flex; }
.plan.is-compact .opt .avatar.sm { width: 20px; height: 20px; font-size: 9px; }
/* 1.9.4: Szenarien-Werkzeugzeile – eine Zeile, gleiche Höhen */
.card-head:has(.scen-tools) { align-items: center; flex-wrap: wrap; gap: 10px; }
.scen-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.scen-tools .segmented { flex-wrap: nowrap; padding: 3px; border-radius: 999px; }
.scen-tools .segmented span { white-space: nowrap; display: flex; align-items: center; height: 28px; padding: 0 12px; }
.scen-tools .scen-input { flex: none; width: 130px; height: 36px; min-height: 36px; padding: 0 14px; border-radius: 999px; text-align: right; -moz-appearance: textfield; }
.scen-tools .scen-input::-webkit-outer-spin-button, .scen-tools .scen-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.scen-tools .btn { height: 36px; }
.bonus-amount input { -moz-appearance: textfield; }
.bonus-amount input::-webkit-outer-spin-button, .bonus-amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* 1.10: Preisprofil-Vorlagen */
.tpl-menu { min-width: 320px; max-width: min(380px, calc(100vw - 32px)); max-height: 60vh; overflow: auto; }
.tpl-item { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 12px; cursor: pointer; transition: background-color .15s ease; }
.tpl-item:hover, .tpl-item:focus-visible { background: var(--well); outline: none; }
.tpl-item .grow { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tpl-item b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-item small { font-size: 11.5px; color: var(--muted); }
.tpl-item .tpl-del { width: 26px; height: 26px; opacity: 0; transition: opacity .15s ease; }
.tpl-item:hover .tpl-del, .tpl-item:focus-within .tpl-del { opacity: 1; }
@media (hover: none) { .tpl-item .tpl-del { opacity: 1; } }
.menu-sep { height: 1px; margin: 6px 4px; background: var(--line); }
.tpl-save { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; text-align: left; font: 600 13px var(--font); color: var(--accent-text, var(--accent)); cursor: pointer; }
.tpl-save:hover { background: var(--well); }
.card:has(.tpl-menu:not([hidden])) { overflow: visible; position: relative; z-index: 30; }
.card-head:has(.tpl-menu:not([hidden])) { position: relative; z-index: 10; }
/* 1.10.1: Letzte Änderungen unter dem Kalender */
.activity-card { margin-top: var(--gap); }
.activity-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); column-gap: 24px; }
.activity-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; min-width: 0; }
.activity-item .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.activity-item time { flex: none; white-space: nowrap; padding-top: 2px; font-variant-numeric: tabular-nums; }
/* 1.10.4: Dashboard-Kalender kompakter */
@media (min-width: 761px) {
  .cal-head span { padding: 8px 10px 6px; font-size: 11.5px; }
  .cal-day { min-height: 76px; padding: 5px 6px 6px; gap: 3px; }
  .cal-num { font-size: 12px; padding: 1px 3px; line-height: 1.3; }
  .cal-day.is-today .cal-num { padding: 1px 7px; }
  .cal-ev { gap: 5px; padding: 2px 6px 2px 5px; border-radius: 7px; font-size: 11.5px; line-height: 1.35; }
  .cal-ev i { width: 6px; height: 6px; }
}

/* ---------- 1.11: Dunkles Farbschema wie VVK-Tool (nur Grüntöne: Fläche #10231c, Karten #163027, Linien #2c4a3f) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent-text: #50c99b; --accent-soft: rgba(80, 201, 155, .14);
    --bg: #10231c; --glass: #163027b8; --glass-2: #1b3a2fcc; --glass-3: #1b3a2ff7; --glass-tile: #1b3a2fa6;
    --plain: #122920; --solid: #163027; --well: #122920; --rim: #2c4a3f; --line: #2c4a3f; --line-2: #3d6253;
    --pill: #f1efe8; --on-pill: #142019; --dock: #163027cc;
    --text: #edf4f1; --muted: #a3b6af; --faint: #84998f;
    --coral: #f27d77; --sky: #68d5aa; --amber: #e2bd5a;
    --st-requested: #e2bd5a; --st-requested-bg: #3a3112;
    --st-negotiation: #7cb6ff; --st-negotiation-bg: #17293a;
    --st-confirmed: #50c99b; --st-confirmed-bg: #113a2c;
    --st-declined: #f27d77; --st-declined-bg: #3c211f;
    --st-blocked-bg: #0a1712; --st-blocked-text: #a3b6af;
    --danger: #f27d77; --good: #68d5aa;
    --shadow: inset 0 1px 0 #ffffff0d, 0 20px 55px rgba(2, 17, 12, .25);
    --shadow-pop: 0 20px 55px rgba(2, 17, 12, .45), 0 0 0 1px #2c4a3f;
    --wash: linear-gradient(180deg, transparent, transparent);
    --b1: #13382a; --b2: #10231c; --b3: #1e3b2e; --b4: #10231c; --b5: #10231c;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .aurora i:nth-child(2) { background: #63b78e; opacity: .16; }
  :root:not([data-theme="light"]) .aurora i:nth-child(3) { background: #1f8a61; opacity: .2; }
}
:root[data-theme="dark"] {
    --accent-text: #50c99b; --accent-soft: rgba(80, 201, 155, .14);
    --bg: #10231c; --glass: #163027b8; --glass-2: #1b3a2fcc; --glass-3: #1b3a2ff7; --glass-tile: #1b3a2fa6;
    --plain: #122920; --solid: #163027; --well: #122920; --rim: #2c4a3f; --line: #2c4a3f; --line-2: #3d6253;
    --pill: #f1efe8; --on-pill: #142019; --dock: #163027cc;
    --text: #edf4f1; --muted: #a3b6af; --faint: #84998f;
    --coral: #f27d77; --sky: #68d5aa; --amber: #e2bd5a;
    --st-requested: #e2bd5a; --st-requested-bg: #3a3112;
    --st-negotiation: #7cb6ff; --st-negotiation-bg: #17293a;
    --st-confirmed: #50c99b; --st-confirmed-bg: #113a2c;
    --st-declined: #f27d77; --st-declined-bg: #3c211f;
    --st-blocked-bg: #0a1712; --st-blocked-text: #a3b6af;
    --danger: #f27d77; --good: #68d5aa;
    --shadow: inset 0 1px 0 #ffffff0d, 0 20px 55px rgba(2, 17, 12, .25);
    --shadow-pop: 0 20px 55px rgba(2, 17, 12, .45), 0 0 0 1px #2c4a3f;
    --wash: linear-gradient(180deg, transparent, transparent);
    --b1: #13382a; --b2: #10231c; --b3: #1e3b2e; --b4: #10231c; --b5: #10231c;
    color-scheme: dark;
}
:root[data-theme="dark"] .aurora i:nth-child(2) { background: #63b78e; opacity: .16; }
:root[data-theme="dark"] .aurora i:nth-child(3) { background: #1f8a61; opacity: .2; }

/* ---------- 1.11.2: Begrüßungskarte einfarbig im Stil des VVK-Tools (flach, feine Linien, grüner Akzent statt Reihenfarben) ---------- */
.hero .aurora, .hero.spot::before { display: none; }
.hero { background: var(--glass); }
.hero .eyebrow { color: var(--accent-text); font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.hero-title { font-weight: 700; letter-spacing: -.05em; }
.hero-chip { background: var(--well); border-color: var(--line); }
.spotlight, .spotlight:hover { background: var(--well); border-color: var(--line); }
.spotlight:hover { border-color: var(--line-2); }
.countdown { background: var(--plain); color: var(--text); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: inset 0 3px var(--accent-text); }
.countdown small { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: 1; margin-top: 3px; }
.spotlight .eyebrow { color: var(--muted); letter-spacing: .14em; }
.spot-meta .dot { --c: var(--accent-text) !important; }
.spot-go { background: var(--plain); border-color: var(--line-2); }
.upnext-item, .upnext-item:hover { background: var(--well); border-color: var(--line); }
.upnext-item:hover { border-color: var(--line-2); }
.upnext-date { background: transparent; color: var(--accent-text); border: 1px solid var(--line-2); font-weight: 700; }

/* ---------- 1.12: Designsystem des VVK-Tools (Schrift, Dock, Seitenkopf, Kennzahlen, Tabellen, Buttons, Segmente, Felder) ---------- */
:root { --font: "Avenir Next", "DIN Alternate", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; --r-input: 12px; }

/* Dock: dunkelgrüne Leiste mit cremefarbenen Icons – in beiden Modi wie im VVK-Tool */
.dock { padding: 10px 7px; gap: 3px; border-radius: 29px; border-color: rgba(255, 255, 255, .08); background: #10291f;
  box-shadow: 0 28px 45px -25px rgba(1, 16, 11, .9); backdrop-filter: none; -webkit-backdrop-filter: none; }
.dock .ibtn { width: 44px; height: 44px; color: #f8f5ee; transition: transform .26s ease, background-color .26s ease; }
.dock .ibtn:hover { background: #367a63; color: #fff; transform: scale(1.07); }
.dock-sep { width: 27px; margin: 6px auto; background: #426254; }
.dock .ibtn.is-add::after { box-shadow: 0 0 0 2px #10291f; }
.dock .ibtn:hover::before { left: calc(100% + 14px); padding: 7px 10px; border-radius: 8px; font-size: 11px; font-weight: 750; background: #10291f; color: #fff; }

/* Seitenkopf: großer, enger Titel, darunter die Kennzahlen als Karten mit Icon-Kreis */
.head { gap: 12px; align-items: stretch; margin: 6px 0 24px; }
.head-title { flex-basis: 100%; max-width: none; margin-bottom: 6px; font-size: clamp(40px, 4.6vw, 72px); font-weight: 700; line-height: .95; letter-spacing: -.055em; }
.stat { flex: 1 1 220px; max-width: 360px; gap: 14px; padding: 14px 18px 14px 14px; border: 1px solid var(--rim); border-radius: 22px;
  background: var(--glass); box-shadow: var(--shadow); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.stat-ico { width: 46px; height: 46px; background: var(--plain); border-color: var(--line); }
.stat-body { flex-direction: column-reverse; gap: 3px; }
.stat-label { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.head-actions { align-self: center; }

/* Überschriften und Labels */
.section-head h2 { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -.035em; }
.card-head h3 { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.eyebrow { color: var(--accent-text); font-size: 10.5px; font-weight: 800; letter-spacing: .14em; }
.kpi-label { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kpi-value { font-weight: 700; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.field > span { font-weight: 700; }

/* Tabellen: Kopf in kleinen Versalien */
.table th, .plan th, .set-table th, .calc-table th:not(.fee-th) { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan .idea-th span { text-transform: none; letter-spacing: 0; font-weight: 600; }

/* Buttons: abgerundete Rechtecke statt Pillen */
.btn { border-radius: 12px; font-weight: 700; font-size: 13px; transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-sm { border-radius: 10px; font-size: 12px; }
.btn-primary { box-shadow: 0 5px 14px color-mix(in srgb, var(--accent) 22%, transparent); }
.icon-btn { border-radius: 10px; }

/* Segmente: aktives Feld als erhabene Kachel (VVK „Tabelle | Karten …“) */
.segmented { padding: 4px; border-radius: 14px; }
.card .segmented, .sheet .segmented { border-radius: 13px; }
.segmented span { border-radius: 10px; }
.segmented input:checked + span { background: var(--solid); color: var(--text); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line); }

/* Felder: Fokus mit feinem grünen Ring */
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px var(--accent-soft); }

/* Status-Badges mit Punkt */
.badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
@media (prefers-reduced-motion: reduce) { .btn:hover, .dock .ibtn:hover { transform: none; } }
@media (max-width: 640px) {
  .stat { flex: 1 1 calc(50% - 6px); min-width: 0; padding: 12px; border-radius: 18px; }
  .stat-ico { display: none; }
  .stat-value { font-size: 22px; }
}
/* 1.12.2: Planungs-Panel – Line-up-Namen in voller Breite, Fußzeile bricht sauber um */
.acts.is-multi .act-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; row-gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.acts.is-multi .act-row:last-child { border-bottom: 0; padding-bottom: 0; }
.acts.is-multi .act-row .act-name { grid-column: 1 / -1; }
.acts.is-multi { display: grid; gap: 10px; }
.sheet-foot { flex-wrap: wrap; row-gap: 8px; }
.sheet-foot > :last-child { margin-left: auto; }


/* ---------- 1.12.4: Anmeldung – bisheriges Layout, Farben und Schrift wie VVK-Tool (nur Grüntöne) ---------- */
.auth { --stage: #10231c; --ink: #edf4f1; --ink-2: #a3b6af; --field-line: #2c4a3f; }
.o1 { background: radial-gradient(circle, #1f8a61, transparent 68%); opacity: .55; }
.o2 { background: radial-gradient(circle, #63b78e, transparent 66%); opacity: .2; }
.o3 { background: radial-gradient(circle, #0f7b56, transparent 66%); opacity: .35; }
.o4 { background: radial-gradient(circle, #50c99b, transparent 64%); opacity: .18; }
.auth-intro h1 { font-weight: 700; letter-spacing: -.055em; }
.auth-intro h1 span { background-image: linear-gradient(90deg, #50c99b, #68d5aa); }
:root[data-theme="light"] .auth-intro h1 span { background-image: linear-gradient(90deg, #0f7b56, #019036); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .auth-intro h1 span { background-image: linear-gradient(90deg, #0f7b56, #019036); } }
.flow-pill.st-requested { --c: #e2bd5a; } .flow-pill.st-negotiation { --c: #7cb6ff; } .flow-pill.st-confirmed { --c: #50c99b; }
.flow-line::after { background: linear-gradient(90deg, transparent, #50c99b, transparent); }
.lg-card h2 { font-weight: 700; letter-spacing: -.045em; }
.lg-input:focus-within { border-color: #50c99b; box-shadow: 0 0 0 4px rgba(80, 201, 155, .18); }
.lg-input:focus-within > .icon, .lg-eye[aria-pressed="true"] { color: #50c99b; }
.lg-caps { color: #e2bd5a; }
.lg-alert { background: rgba(242, 125, 119, .16); border-color: rgba(242, 125, 119, .35); color: #f27d77; }
.lg-submit { border-radius: 14px; }
/* 1.12.5: Glas-Karte klarer – dunkel getönt statt milchig, scharfe Lichtkante, weniger Schleier (dunkler Modus) */
.auth { --glass-fill: rgba(10, 30, 23, .42); --glass-edge: rgba(255, 255, 255, .22); --glass-edge-2: rgba(255, 255, 255, .04);
  --field: rgba(3, 12, 9, .38); --field-line: rgba(160, 220, 190, .14); }
.lg-refract { backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.can-refract .lg-refract { backdrop-filter: blur(4px) saturate(140%) url(#liquid); }
.lg-shine { background: radial-gradient(90% 55% at var(--mx) var(--my), rgba(255, 255, 255, .07), transparent 60%);
  box-shadow: inset 1px 1px 0 var(--glass-edge), inset -1px -1px 0 var(--glass-edge-2); border-color: rgba(255, 255, 255, .09); }
.lg-input { box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.lg-input input:focus { box-shadow: none; background: transparent; }
:root[data-theme="light"] .lg-shine { background: radial-gradient(90% 55% at var(--mx) var(--my), rgba(255, 255, 255, .35), transparent 60%); }
/* 1.13: Beteiligungsstufen */
.tier-row { display: grid; grid-template-columns: auto minmax(80px, 1fr) 120px 110px 30px; gap: 8px; align-items: center; }
.tier-row + .tier-row { margin-top: 8px; }
.tier-row input, .tier-row select { min-height: 38px; padding: 6px 10px; font-size: 14px; }
@container (max-width: 520px) { .tier-row { grid-template-columns: 1fr 1fr 30px; } .tier-row > span:first-child { grid-column: 1 / -1; } }
/* 1.13: Spalte „Option“ und „Termin geblockt“ als Häkchen */
.plan th:nth-child(3) { width: 250px; }
.plan { min-width: 1120px; }
#sheet-opt.is-idea #opt-blocked { display: none; }
.blocked-row { border: 1px solid var(--line); border-radius: 14px; }
.opt.is-blocked-empty { background: var(--st-blocked-bg); color: var(--st-blocked-text); border-color: transparent; border-style: solid; }
.opt.is-blocked-empty .opt-name { color: var(--st-blocked-text); font-weight: 600; }
.opt.is-blocked { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 25%, transparent); }
.opt-lock { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 1px 5px; border-radius: 999px; background: var(--st-blocked-bg); color: var(--st-blocked-text); font-size: 10.5px; font-weight: 700; }
.opt-lock .icon { width: 11px; height: 11px; }
.dup-hint { margin: 6px 0 0; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 700; white-space: pre-line; color: var(--st-requested); background: var(--st-requested-bg); }
.dup-hint[hidden] { display: none; }
/* 1.13: Benachrichtigungen */
.notif-btn { position: relative; }
.notif-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  font: 800 10px/1 var(--font); color: #fff; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); animation: notif-pop .4s var(--ease); }
@keyframes notif-pop { from { transform: scale(.4); } }
.notif-menu { width: min(360px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; }
.notif-item { align-items: flex-start !important; gap: 10px; }
.notif-item .grow { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.notif-item b { font-size: 13px; font-weight: 700; color: var(--text); }
.notif-item small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.notif-item .notif-time { color: var(--faint); font-size: 10.5px; }
.notif-dot { width: 8px; height: 8px; margin-top: 5px; flex: none; border-radius: 50%; background: transparent; }
.notif-item.is-new .notif-dot { background: var(--st-confirmed); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-confirmed) 20%, transparent); }
@media (prefers-reduced-motion: reduce) { .notif-badge { animation: none; } }
/* 1.13: Auswertung Abrechnungen – Monatsbalken (Gewinn über, Verlust unter der Nulllinie) */
.month-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 220px; }
.mc-col { display: grid; grid-template-rows: 1fr 0.45fr auto; min-width: 0; border-radius: 8px; outline: none; cursor: default; }
.mc-col:hover, .mc-col:focus-visible { background: var(--well); }
.mc-pos { display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line-2); }
.mc-neg { display: flex; align-items: flex-start; justify-content: center; }
.mc-pos span, .mc-neg span { width: min(70%, 28px); min-height: 2px; }
.mc-pos span { background: var(--accent); border-radius: 4px 4px 0 0; }
.mc-neg span { background: var(--st-declined); border-radius: 0 0 4px 4px; }
.mc-col small { text-align: center; font-size: 11px; color: var(--muted); padding-top: 4px; }
.mc-tip { position: absolute; z-index: 100; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 8px; pointer-events: none;
  font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--on-pill); background: var(--pill); box-shadow: var(--shadow-pop); }
/* 1.13: Venues – Filterleiste und Export-Menü */
.venue-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto auto; gap: 10px 12px; align-items: end; }
.venue-filters #f-count { align-self: center; white-space: nowrap; }
@media (max-width: 1000px) { .venue-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.export-menu { min-width: 300px; }
@media print { .venue-filters, .export-menu { display: none !important; } }
.tier-row .bonus-amount input { padding-right: 2.2em; }
.appbar-actions { position: relative; z-index: 5; }
/* 1.13.3: Glocke hervorheben, solange Ungelesenes da ist; kurzes Klingeln bei neuer Meldung */
.notif-btn.has-new { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent-text) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.notif-btn.is-ringing .icon { transform-origin: 50% 8%; animation: bell-ring 1.1s var(--ease) 2; }
.notif-btn.is-ringing { animation: bell-glow 1.1s ease-out 2; }
@keyframes bell-ring { 0%, 100% { rotate: 0deg; } 10% { rotate: 16deg; } 22% { rotate: -14deg; } 34% { rotate: 10deg; } 46% { rotate: -7deg; } 58% { rotate: 4deg; } 70% { rotate: -2deg; } }
@keyframes bell-glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
@media (prefers-reduced-motion: reduce) { .notif-btn.is-ringing, .notif-btn.is-ringing .icon { animation: none; } }
/* 1.13.4: Pop-up nach dem Login mit neuen Bestätigungen */
.login-pop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: color-mix(in srgb, #06120e 62%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: pop-fade .25s ease both; }
.login-pop-card { width: min(480px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 28px 26px 22px; border-radius: 26px;
  background: var(--glass-3); border: 1px solid var(--rim); box-shadow: 0 32px 100px rgba(0, 0, 0, .4); animation: pop-in .38s var(--ease) both; }
.login-pop-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 16px; color: #fff; background: var(--accent);
  box-shadow: 0 12px 26px -10px var(--accent); }
.login-pop-icon .icon { width: 26px; height: 26px; stroke-width: 2.4; }
.login-pop .eyebrow { margin-bottom: 6px; }
.login-pop h2 { margin: 0 0 16px; font-size: 28px; font-weight: 700; letter-spacing: -.04em; }
.login-pop-list { display: flex; flex-direction: column; gap: 8px; }
.login-pop-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--well); border: 1px solid var(--line); color: var(--text);
  transition: border-color .15s ease, transform .15s ease; }
.login-pop-item:hover { color: var(--text); border-color: var(--line-2); transform: translateX(2px); }
.login-pop-item .grow { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.login-pop-item b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-pop-item small { color: var(--muted); font-size: 12.5px; }
.login-pop-item > .icon { width: 16px; height: 16px; color: var(--muted); flex: none; }
.login-pop-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.login-pop.is-closing { animation: pop-fade .2s ease reverse both; }
@keyframes pop-fade { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .login-pop, .login-pop-card, .login-pop.is-closing { animation: none; } }
/* 1.13.5: Ideen-Board bestimmt nicht mehr die Zeilenhöhe – es füllt die Höhe der Termine und scrollt darin */
.plan td.idea-cell { position: relative; }
.plan td.idea-cell .idea-board.is-fit { position: absolute; inset: 5px 8px; top: 5px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  align-content: start; padding-bottom: 4px; }
.plan td.idea-cell .idea-board.is-capped { position: static; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.plan td.idea-cell .idea-board.is-scrollable { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); }
.plan td.idea-cell .idea-board.is-scrollable.at-end { -webkit-mask-image: none; mask-image: none; }

/* 1.14.0 – Upgrades im Preisprofil */
.calc-table .cat-name { display: flex; align-items: center; gap: 8px; }
.calc-table .up-toggle { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--faint); white-space: nowrap; cursor: pointer; }
.calc-table .up-toggle input { min-height: 0; width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
.calc-table tr.is-upgrade td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.calc-table tr.is-upgrade .up-toggle { color: var(--accent); }
.calc-table tr.is-upgrade input.name { font-weight: 500; font-style: italic; }
.calc-table tr.is-upgrade [data-o="share"] { color: var(--accent); }
.calc-table tfoot tr.up-foot td { font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 0 18px 12px; text-align: left; }
.calc-table tfoot tr.up-foot td span { font-weight: 400; color: var(--faint); }

/* 1.15.0 – Einstellungen › API */
.api-new { border-color: var(--accent); margin-bottom: 18px; }
.api-copy { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.api-copy code { flex: 1 1 280px; padding: 10px 12px; border-radius: 10px; background: var(--plain); border: 1px solid var(--line); font-size: 13px; word-break: break-all; user-select: all; }
.api-doc code { font-size: 12px; word-break: break-all; }
.api-params { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 10px 0; }
.api-params dt { white-space: nowrap; }
.api-params dd { margin: 0; color: var(--muted); }
tr.is-muted td { opacity: .5; }
.calc-table .cat-grip { flex: none; display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; width: 18px; height: 30px; margin-left: -8px; padding: 0 4px; border: 0; border-radius: 6px; background: none; cursor: grab; touch-action: none; }
.calc-table .cat-grip i { display: block; height: 2px; border-radius: 2px; background: var(--faint); }
.calc-table .cat-grip:hover i, .calc-table .cat-grip:focus-visible i { background: var(--accent); }
.calc-table .cat-grip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
#cat-body.is-sorting, #cat-body.is-sorting * { cursor: grabbing !important; user-select: none; }
#cat-body tr.is-dragging { position: relative; z-index: 3; background: var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
#cat-body tr.is-dragging td { border-bottom-color: transparent; }

/* 1.16.0 – Vertrag direkt am Booking */
.contract-box { border: 1.5px dashed transparent; border-radius: 14px; transition: border-color .15s, background-color .15s; }
.contract-box.is-drop { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.contract-box.is-busy { opacity: .6; pointer-events: none; }
.contract-upload { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.contract-upload select { flex: 1 1 160px; min-width: 0; }
.contract-upload .btn { cursor: pointer; }

/* 1.17.1 – Verrechnung je Gebühr (ersetzt das Häkchen „Netto“) */
.calc-table .fee-head { width: 116px; }
.calc-table select.fee-mode { flex: 1 1 auto; min-width: 0; min-height: 26px; padding: 2px 16px 2px 5px; font-size: 10.5px; font-weight: 700; border-radius: 8px; width: 100%; background-position: right 4px center; color: var(--faint); }
.calc-table select.fee-mode:not([data-mode="none"]) { color: var(--accent-text); }

/* 1.17.2 – Export Preisprofil */
.export-menu { min-width: 240px; right: 0; left: auto; }
.export-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.export-menu button:hover, .export-menu button:focus-visible { background: var(--well); color: var(--text); }
.card:has(.export-menu:not([hidden])) { overflow: visible; position: relative; z-index: 30; }
.card-head:has(.export-menu:not([hidden])) { position: relative; z-index: 10; }

/* 1.18.0 – VÖ-Datum & VVK-Start (1.18.1: Kachel im Überblick, Saison + Optionen in einer Kachel) */
.release-box > .grid-2 { gap: 10px; }
.release-list { display: flex; flex-direction: column; gap: 2px; margin: 4px -8px 0; }
.release-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 14px; color: inherit; text-decoration: none; min-width: 0; transition: background-color .15s ease; }
a.release-item:hover { background: var(--well); color: inherit; }
.release-item .fu-date { width: 40px; height: 40px; border-radius: 12px; }
.release-item .grow { display: flex; flex-direction: column; min-width: 0; }
.release-item .title { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.release-item .small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.release-item.is-past { opacity: .6; }
.release-item.is-today .fu-date { background: var(--st-confirmed-bg); color: var(--st-confirmed); }
.release-types { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.release-types small { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.release-badges { display: flex; gap: 4px; }
.release-type { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; letter-spacing: .02em; }
.release-type.t-vo { background: var(--accent-soft); color: var(--accent-text); }
.release-type.t-vvk { background: var(--st-negotiation-bg); color: var(--st-negotiation); }
.season-row { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.ring-wrap.sm { width: 104px; margin: 0; flex: none; }
.ring-wrap.sm .ring circle { stroke-width: 12; }
.ring-wrap.sm .ring-label b { font-size: 28px; }
.ring-wrap.sm .ring-label small { font-size: 13px; }
.season-kpis { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.season-kpis span { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.season-kpis b { font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.season-kpis small { color: var(--muted); font-size: 12.5px; }
.cal-ev.cal-rel { background: transparent; border: 1px solid var(--line-2); font-weight: 500; color: var(--muted); }
.cal-ev.cal-rel:hover { color: var(--text); }
.rel-key { flex: none; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; padding: 1px 5px; border-radius: 999px; }
.rel-key.t-vo { background: var(--accent-soft); color: var(--accent-text); }
.rel-key.t-vvk { background: var(--st-negotiation-bg); color: var(--st-negotiation); }
.rel-key + .rel-key { margin-left: -3px; }
@media (min-width: 1181px) { .bento { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1.3fr) minmax(0, 1.05fr); } }

/* 1.19.0 – Kalender-Abo (ICS) */
.cal-sub { margin-top: var(--gap); }
.cal-sub .card-head h3 { display: flex; align-items: center; gap: 8px; }
.cal-sub-opts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 10px; }
.cal-sub-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.cal-sub-actions form { margin: 0; }
.cal-sub-help { margin-top: 14px; }
.cal-sub-help summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.cal-sub-help ol { margin: 10px 0 6px; padding-left: 20px; display: grid; gap: 6px; }

/* 1.20.0 – Persönliches Dashboard: Kacheln frei anordnen, Breite/Höhe ziehen, ein- und ausblenden */
.dash-tools { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin: 2px 0 10px; min-height: 34px; }
.dash-tools-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.dash-edit-hint { display: none; flex: 1; min-width: 0; gap: 2px; flex-direction: column; font-size: 13px; }
.dash-edit-hint span { color: var(--muted); font-size: 12.5px; }
.dash-edit-only { display: none; }
.dash-editing .dash-edit-hint { display: flex; }
.dash-editing .dash-edit-only { display: inline-flex; }
.dash-editing .dash-tools { position: sticky; top: 8px; z-index: 40; padding: 10px 12px 10px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--rim);
  box-shadow: var(--shadow); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); }
#dash-edit[aria-pressed="true"] { background: var(--accent); color: var(--on-pill); border-color: transparent; }

.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 8px; column-gap: var(--gap); row-gap: 0; align-items: start; }
.dw { position: relative; grid-column: span 12; grid-row-end: span 30; min-width: 0; }
.dw-body { min-width: 0; }
.dw-body > .card, .dw-body > .bento-card { height: 100%; }
.dw[data-h] .dw-body { overflow: hidden; }
.dw[data-h] .dw-body > .card { overflow: auto; overscroll-behavior: contain; }
.dw[data-h] .dw-body > .bento-card { overflow: auto; overscroll-behavior: contain; }
.dw[data-h] .dw-body > #cal-wrap { height: 100%; overflow: auto; }
.dw .hero { min-height: 0; }
@media (min-width: 1181px) {
  .dw[data-w="3"] { grid-column: span 3; } .dw[data-w="4"] { grid-column: span 4; } .dw[data-w="6"] { grid-column: span 6; }
  .dw[data-w="8"] { grid-column: span 8; } .dw[data-w="9"] { grid-column: span 9; }
}
@media (min-width: 641px) and (max-width: 1180px) {
  .dw[data-w="3"], .dw[data-w="4"], .dw[data-w="6"] { grid-column: span 6; }
}
@media (max-width: 640px) { .dw[data-h] .dw-body { height: auto !important; } .dw[data-h] .dw-body > * { overflow: visible; } }

/* Bearbeiten */
.dw-bar, .dw-resize { display: none; }
.dash-editing .dw { touch-action: none; }
.dash-editing .dw-body { pointer-events: none; user-select: none; }
.dash-editing .dw-body > * { outline: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: -1px; }
.dash-editing .dw-bar { display: flex; position: absolute; z-index: 6; top: 8px; left: 8px; right: 8px; align-items: center; justify-content: space-between; gap: 6px;
  padding: 4px 4px 4px 6px; border-radius: 14px; background: var(--glass); border: 1px solid var(--rim); box-shadow: var(--shadow-pop);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
.dw-grip { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; border: 0; background: none; color: var(--text); font: inherit; font-size: 13px; font-weight: 600;
  padding: 5px 6px; border-radius: 10px; cursor: grab; touch-action: none; text-align: left; }
.dw-grip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-grip .icon { flex: none; color: var(--muted); }
.dw-grip:focus-visible { outline: 2px solid var(--accent); }
.dw-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.dw-tools button { min-width: 28px; height: 28px; padding: 0 7px; border: 0; border-radius: 9px; background: var(--well); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.dw-tools button:hover { background: var(--accent-soft); color: var(--accent-text); }
.dw-tools button[data-dw="auto"] { font-size: 11px; }
.dw:not([data-h]) .dw-tools button[data-dw="auto"] { background: var(--accent-soft); color: var(--accent-text); }
.dw-tools button[data-dw="remove"]:hover { background: var(--st-declined-bg); color: var(--st-declined); }
.dw-tools .icon { width: 14px; height: 14px; }
.dw-size { min-width: 34px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.dash-editing .dw-resize { display: block; position: absolute; z-index: 6; right: 4px; bottom: calc(var(--gap) + 4px); width: 22px; height: 22px; cursor: nwse-resize; touch-action: none; border-radius: 8px;
  background: linear-gradient(135deg, transparent 50%, var(--accent) 50%); opacity: .85; }
.dash-editing .dw-resize:hover { opacity: 1; }
.dw.is-dragging { position: fixed; z-index: 100; pointer-events: none; margin: 0; }
.dw.is-dragging .dw-body > * { box-shadow: 0 24px 60px rgba(0, 0, 0, .35); outline-style: solid; }
.dw.is-dragging, .dw.is-resizing { transition: none; }
.dw-ph { border-radius: var(--r-card, 22px); border: 2px dashed var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); min-width: 0; height: calc(100% - var(--gap)); }
.dw-ph[data-w] { grid-column: span 12; }
@media (min-width: 1181px) {
  .dw-ph[data-w="3"] { grid-column: span 3; } .dw-ph[data-w="4"] { grid-column: span 4; } .dw-ph[data-w="6"] { grid-column: span 6; }
  .dw-ph[data-w="8"] { grid-column: span 8; } .dw-ph[data-w="9"] { grid-column: span 9; }
}
@media (min-width: 641px) and (max-width: 1180px) { .dw-ph[data-w="3"], .dw-ph[data-w="4"], .dw-ph[data-w="6"] { grid-column: span 6; } }
.dw-badge { position: fixed; z-index: 120; pointer-events: none; padding: 5px 10px; border-radius: 999px; background: var(--text); color: var(--bg, #000); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dw.is-new .dw-body > * { animation: dw-in .6s cubic-bezier(.22, 1, .36, 1); }
@keyframes dw-in { from { opacity: 0; transform: scale(.96); } }
.dw.is-leaving { opacity: 0; transform: scale(.96); transition: opacity .2s ease, transform .2s ease; }
@media (prefers-reduced-motion: reduce) { .dw.is-new .dw-body > * { animation: none; } .dw.is-leaving { transform: none; } }
.dw-lib[hidden] { display: none; }
button.choice { width: 100%; text-align: left; background: none; color: inherit; font: inherit; }

/* Inhalte der neuen Kacheln */
.dw-row { padding: 9px 12px; gap: 10px; }
.dw-row .fu-date { width: 40px; height: 40px; border-radius: 12px; }
.dw-row .file-ico { width: 34px; height: 34px; border-radius: 10px; }
.dw-row .file-ico .icon { width: 17px; height: 17px; }
.dw-row.is-new .notif-dot { background: var(--st-confirmed); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-confirmed) 20%, transparent); }
.dw-row .notif-dot { margin-top: 0; }
.dw-when { flex: none; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.dw-row .chip-sm .icon { width: 11px; height: 11px; vertical-align: -1px; }
.dw-bars { display: grid; gap: 4px; }
.dw-bar-row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 10px; color: inherit; }
.dw-bar-row:hover { background: var(--well); color: inherit; }
.dw-bar-row .meter { margin: 0; }
.dw-bar-row .meter > span { background: var(--accent); }
.dw-bar-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-bar-val { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dw-bar-val b { color: var(--text); }
.dw-legend { display: flex; gap: 12px; color: var(--muted); }
.dw-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dw-key { width: 10px; height: 10px; border-radius: 3px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); }
.dw-key.is-conf { background: var(--accent); box-shadow: none; }
.dw-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 190px; align-items: end; }
.dw-col { display: grid; grid-template-rows: 18px 1fr 18px; height: 100%; color: inherit; text-align: center; min-width: 0; border-radius: 8px; }
.dw-col:hover { color: inherit; }
.dw-col:hover .dw-col-track { background: color-mix(in srgb, var(--accent) 14%, var(--well)); }
.dw-col-val { font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; align-self: end; }
.dw-col-track { position: relative; align-self: end; height: var(--t); min-height: 4px; border-radius: 6px 6px 3px 3px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: flex-end; overflow: hidden; transition: background-color .15s ease; }
.dw-col-track > span { display: block; width: 100%; height: var(--f); background: var(--accent); border-radius: 4px 4px 2px 2px; transition: height 1s cubic-bezier(.22, 1, .36, 1) .2s; }
.js .reveal:not(.is-in) .dw-col-track > span { height: 0; }
.dw-col-label { font-size: 11px; color: var(--muted); font-weight: 600; align-self: start; padding-top: 4px; }
.dw-col.is-now .dw-col-label { color: var(--accent-text); }
.dw-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.dw-quick-btn { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 14px; background: var(--glass-tile); border: 1px solid var(--rim); color: var(--text); font-size: 13px; font-weight: 600; transition: box-shadow .2s ease, transform .15s ease; }
.dw-quick-btn:hover { box-shadow: var(--shadow-pop); color: var(--text); }
.dw-quick-btn:active { transform: scale(.97); }
.dw-quick-btn .icon { flex: none; color: var(--accent-text); }
.dw-note { display: flex; flex-direction: column; }
.dw-note textarea { flex: 1; min-height: 140px; width: 100%; resize: none; border-radius: 12px; }
.dw[data-h] .dw-body > * { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.dash-editing .dash-tools { flex-wrap: wrap; }
.dash-edit-hint { flex: 1 1 320px; }
@media (max-width: 640px) {
  .dash-edit-hint { flex-basis: 100%; }
  .dash-edit-hint span { display: none; }
  .dash-editing .dash-tools-btns { width: 100%; justify-content: flex-start; }
  .dw-tools [data-dw="narrow"], .dw-tools [data-dw="wide"], .dw-tools .dw-size, .dash-editing .dw-resize { display: none; }
}

/* Agentur: Bookings */
.agency-bookings { margin-top: 1rem; }
.agency-bookings .card-head { flex-wrap: wrap; gap: .75rem; padding: 1rem 1.1rem .5rem; }
.agency-bk-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.agency-bookings tr.bk-year th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--well); padding-top: 6px; padding-bottom: 6px; }
.agency-bookings .segmented .muted { font-weight: 500; margin-left: 2px; }
.agency-bookings td.strong { min-width: 160px; }

/* Venue: Dateien */
.venue-files .vf-group + .vf-group { margin-top: 14px; }
.venue-files .vf-group h4 { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.venue-files .vf-group h4 .muted { font-weight: 500; }
.venue-files .list-item .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-drop { margin-top: 14px; padding: 12px; border: 1.5px dashed var(--line); border-radius: 14px; transition: border-color .15s ease, background-color .15s ease; }
.vf-drop.is-drop { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.vf-drop.is-busy { opacity: .6; pointer-events: none; }
.vf-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vf-controls select { flex: 0 1 200px; min-width: 0; }
.vf-controls input[type=text] { flex: 1 1 180px; min-width: 0; }
.vf-controls .btn { cursor: pointer; }

/* Kalkulation: Versionen vergleichen */
.cmp-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cmp-title { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.cmp-head .muted { max-width: 62ch; }
.cmp-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cmp-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.cmp-chip { position: relative; }
.cmp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cmp-chip span { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); font-size: 13px; font-weight: 600; color: var(--text-2, var(--muted)); cursor: pointer; transition: background-color .12s ease, color .12s ease; }
.cmp-chip span:hover { color: var(--text); }
.cmp-chip input:checked + span { background: var(--pill); color: var(--on-pill); border-color: transparent; }
.cmp-chip input:focus-visible + span { outline: 2px solid var(--accent); }
.cmp-diffonly { margin: 0; }
.cmp-table { table-layout: fixed; min-width: calc(220px + var(--cmp-cols) * 170px); }
.cmp-table th.cmp-label { width: 220px; text-align: left; font-weight: 500; color: var(--text); }
.cmp-table thead th.cmp-col { vertical-align: top; text-transform: none; letter-spacing: 0; }
.cmp-ver { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.cmp-ver a:first-child { color: inherit; }
.cmp-setbase { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.cmp-setbase:hover { color: var(--accent-text); }
.cmp-meta { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-table td.cmp-col { vertical-align: top; font-variant-numeric: tabular-nums; }
.cmp-table .is-base { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.cmp-table td.is-diff .cmp-val { font-weight: 700; }
.cmp-table td.is-diff { box-shadow: inset 3px 0 0 var(--accent); }
.cmp-val, .cmp-sub, .cmp-delta { display: block; }
.cmp-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cmp-delta { font-size: 12px; font-weight: 600; margin-top: 2px; color: var(--muted); }
.cmp-table tr.is-same td { color: var(--muted); }
.cmp-table tr.cmp-section th { background: var(--well); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 10px; padding-bottom: 10px; text-align: left; }
.cmp-table tbody tr.cmp-section:hover { background: var(--well); }
.cmp-notes { display: grid; grid-template-columns: repeat(var(--cmp-cols), minmax(0, 1fr)); gap: 16px; }
.cmp-notes p { margin-top: 4px; white-space: normal; }
@media (max-width: 720px) { .cmp-notes { grid-template-columns: 1fr; } .cmp-table th.cmp-label { width: 150px; } .cmp-table { min-width: calc(150px + var(--cmp-cols) * 150px); } }
@media print { .cmp-table { min-width: 0; } .cmp-table td.is-diff { box-shadow: none; } }
.cmp-table tbody th.cmp-label { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--text); padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-table tbody th.cmp-label .small { font-weight: 400; }
.cmp-delta.pos { color: var(--st-confirmed); }
.cmp-delta.neg { color: var(--st-declined); }
.cmp-table tbody th.cmp-label { white-space: normal; }
.cmp-table tbody th.cmp-label .small { display: block; font-size: 12px; margin-top: 2px; }
@media (max-width: 720px) { .cmp-table th.cmp-label { position: sticky; left: 0; z-index: 1; background: var(--solid); } }
.cmp-table tr.cmp-marker th, .cmp-table tr.cmp-marker td { border-top: 1px solid var(--line-2); }
.cmp-table tr.cmp-marker th.cmp-label { font-weight: 700; }
.cmp-table td.cmp-col .cmp-val { font-size: 15px; font-weight: 600; }
.cmp-table thead th.cmp-label { vertical-align: bottom; }
.cmp-head { align-items: center; }
.cmp-scen .card-head { flex-wrap: wrap; }
.cmp-scen .card-head h3 { flex-wrap: wrap; font-size: 16px; }
.cmp-scen .card-head h3 a { color: inherit; }
.cmp-deal { font-weight: 500; }
.cmp-scen + .cmp-scen { margin-top: 0; }
@media print { .cmp-scen { break-inside: avoid; } }
/* Checkliste: Medienpartner direkt eintragen */
.check-row .check-text { flex: 1; }
.check-row input.check-input { position: static; opacity: 1; pointer-events: auto; margin-top: 6px; height: 34px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--plain, var(--glass)); color: var(--text); font: inherit; font-size: 13px; width: 100%; max-width: 360px; cursor: text; }
.check-row input.check-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
