/* ==========================================================================
   Einlass · Designsystem aus KB Booking übernommen (Solvik-Stil)
   Frosted Glass, Pill-Navigation, Urbanist, 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; }

/* ---------- Avatar-Menü ---------- */
.ibtn.is-active { background: var(--pill); color: var(--on-pill); border-color: transparent; }
.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); } }
.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); }

/* ---------- 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; }

.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; }

/* ---------- 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; }

/* ---------- 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); }
}


/* ==========================================================================
   Ergänzungen für den Einlass-Scanner
   ========================================================================== */
input[type=time] {
  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);
}
/* Kein Dock: Inhalt und Leiste beginnen am linken Rand */
.appbar { padding-left: var(--gutter); }
.main { padding-left: var(--gutter); max-width: 1480px; }
.crumbs { font-size: 12.5px; font-weight: 600; color: var(--faint); margin-bottom: 6px; }
.crumbs a:hover { color: var(--accent-text); }
.head-titlewrap { display: flex; flex-direction: column; }
.head-sub { color: var(--muted); font-size: 13.5px; margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.head-title.long { max-width: 14em; }

.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.cols-side { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr); gap: var(--gap); align-items: start; }
.kpi .kpi-value { margin-top: 10px; }
.kpi.hero-kpi { background: color-mix(in srgb, var(--accent) 32%, var(--glass)); }
.kpi.hero-kpi .kpi-sub { color: var(--text); opacity: .75; }
.kpi.warn-kpi { background: color-mix(in srgb, var(--amber) 18%, var(--glass)); }
.kpi.bad-kpi { background: color-mix(in srgb, var(--coral) 18%, var(--glass)); }
.meter > span { background: var(--accent); }
.meter.lg { height: 10px; }

/* Datumskachel wie die Countdown-Kachel der Übersicht */
.date-tile { display: grid; place-items: center; align-content: center; width: 62px; height: 62px; flex: none; border-radius: 18px;
  background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 12px 24px -14px var(--accent); }
.date-tile b { font-size: 24px; line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.date-tile small { font-size: 11px; font-weight: 600; opacity: .9; text-transform: uppercase; }
.date-tile.muted-tile { background: var(--pill); color: var(--on-pill); box-shadow: none; }
.event-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.event-row .grow { min-width: 0; flex: 1; }
.event-row strong { display: block; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.event-card { display: block; transition: transform .5s var(--ease), box-shadow .4s ease; }
a.event-card:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow), var(--shadow-pop); }
.list-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }

.live { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--st-confirmed-bg); color: var(--st-confirmed); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; 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; } }
.dot.on { --c: var(--st-confirmed); box-shadow: 0 0 0 3px var(--st-confirmed-bg); }

.secret { padding: 12px 14px; border-radius: 14px; background: var(--well); font: 600 13.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.qr-box { display: inline-block; padding: 14px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-pop); }
pre.code { margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; background: var(--pill); color: var(--on-pill); font-size: 12.5px; line-height: 1.55; overflow-x: auto; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
form.inline { display: inline; }
.danger-card { border-color: color-mix(in srgb, var(--coral) 45%, var(--rim)); }
.empty .icon { width: 34px; height: 34px; margin-bottom: 8px; color: var(--faint); }
.pagination { display: flex; gap: 8px; align-items: center; padding: 14px 18px; }
.chart-box { height: 300px; }
.dir-in { background: var(--st-negotiation-bg); color: var(--st-negotiation); }
.dir-out { background: var(--st-requested-bg); color: var(--st-requested); }
.alert-info { background: var(--accent-soft); color: var(--accent-text); }
ul.hints { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); }

@media (max-width: 1180px) { .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cols-side { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .main { padding-left: 16px; } .appbar { padding-left: 16px; } }
@media (max-width: 520px) { .grid-6 { grid-template-columns: 1fr 1fr; } }

/* Auswahl der Ticketprüfung (Event-Formular) */
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-opt { position: relative; cursor: pointer; }
.mode-opt input { position: absolute; opacity: 0; pointer-events: none; }
.mode-card { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 14px; border-radius: 18px;
  background: var(--well); border: 1.5px solid transparent; transition: border-color .2s ease, background-color .2s ease, transform .1s ease-out; }
.mode-card strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.mode-card small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.mode-ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--glass-2); color: var(--muted); }
.mode-opt:hover .mode-card { background: var(--glass-2); }
.mode-opt:active .mode-card { transform: scale(.99); }
.mode-opt input:checked + .mode-card { border-color: var(--accent); background: var(--accent-soft); }
.mode-opt input:checked + .mode-card .mode-ico { background: var(--accent); color: #fff; }
.mode-opt input:focus-visible + .mode-card { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 700px) { .mode-pick { grid-template-columns: 1fr; } }

/* ==========================================================================
   Übersicht im Bento-Stil (aus KB Booking übernommen)
   ========================================================================== */
/* ---------- Ü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; }
.mixbar { display: flex; gap: 3px; height: 12px; margin-top: 14px; border-radius: 99px; overflow: hidden; }
.mixbar 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); }
.mix-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.mix-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mix-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) .mixbar 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; }

@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; }
}


/* Übersicht: Ergänzungen für den Einlass */
.is-dash .bento { margin-top: 0; }
.hero-live { position: relative; display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.hero-live .big { font-size: clamp(64px, 7vw, 104px); line-height: .9; font-weight: 600; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.hero-live .big-label { display: flex; flex-direction: column; gap: 4px; padding-bottom: 8px; }
.hero-live .big-label strong { font-size: 17px; font-weight: 600; }
.hero-mini { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; padding-bottom: 8px; }
.hero-mini div { display: flex; flex-direction: column; }
.hero-mini b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-mini span { font-size: 12.5px; color: var(--muted); }
.countdown.is-live { background: var(--accent); }
.countdown.is-live b { font-size: 18px; }
.spark { position: relative; height: 74px; margin: 12px -4px 0; }
.tempo-value { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.tempo-value .kpi-value { margin-top: 0; }
.tempo-value small { font-size: 15px; color: var(--muted); font-weight: 600; }
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; }
.feed-ico .icon { width: 17px; height: 17px; }
.feed-ico.in { background: var(--st-confirmed-bg); color: var(--st-confirmed); }
.feed-ico.out { background: var(--st-negotiation-bg); color: var(--st-negotiation); }
.feed-ico.bad { background: var(--st-declined-bg); color: var(--st-declined); }
.feed-ico.warn { background: var(--st-requested-bg); color: var(--st-requested); }
.feed-body { flex: 1; min-width: 0; }
.feed-body .mono { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-body .small { color: var(--muted); }
.feed-time { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed-item.is-new { animation: feed-new 1.2s var(--ease); }
@keyframes feed-new { from { background: var(--accent-soft); } }
.device-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.device-row:last-child { border-bottom: 0; }
.device-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--well); color: var(--muted); flex: none; position: relative; }
.device-ico .icon { width: 17px; height: 17px; }
.device-ico.on { background: var(--accent-soft); color: var(--accent-text); }
.device-ico.on::after { content: ""; position: absolute; right: -2px; top: -2px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--st-confirmed); box-shadow: 0 0 0 2px var(--solid); animation: live 2.4s ease-out infinite; }
.event-line { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.event-line:last-child { border-bottom: 0; }
.event-line:hover { color: var(--text); }
.event-line:hover .spot-go { transform: translateX(3px); }
.event-line .grow { flex: 1; min-width: 0; }
.event-line strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.event-line .spot-go { width: 34px; height: 34px; }
.mini-tile { display: grid; place-items: center; align-content: center; width: 52px; height: 52px; flex: none; border-radius: 15px; background: var(--pill); color: var(--on-pill); }
.mini-tile b { font-size: 19px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.mini-tile small { font-size: 10.5px; font-weight: 600; opacity: .8; text-transform: uppercase; }
.rate { min-width: 92px; text-align: right; }
.rate b { font-size: 16px; font-variant-numeric: tabular-nums; }
.rate .meter { margin-top: 6px; height: 6px; }
@media (max-width: 640px) { .hero-mini { margin-left: 0; } }

/* Scan-Bereiche */
.area-card.is-main { border-color: color-mix(in srgb, var(--accent) 45%, var(--rim)); }
.area-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.area-ico .icon { width: 16px; height: 16px; }
.area-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.area-stats div { display: flex; flex-direction: column; }
.area-stats b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.area-stats span { font-size: 12.5px; color: var(--muted); }
.area-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.area-edit { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.area-edit summary { font-size: 13px; color: var(--muted); }
.area-tabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.area-table td .meter { margin: 0; }
.table tr.is-active td { background: var(--accent-soft); }
@media (max-width: 700px) { .area-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mode-pick-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .mode-pick-3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Neues Booking-Design (KB Booking 1.11–1.12): Waldgrün-Dunkelschema,
   flache Begrüßungskarte, Designsystem des VVK-Tools. Ohne Dock.
   ========================================================================== */
/* ---------- 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: #392f15;
    --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: #392f15;
    --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; }
/* 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; }
.head-titlewrap { flex-basis: 100%; }
.head-title.long { max-width: none; }

/* Ü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 { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* 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 { 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.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%); }
