/* Messeplan · Klickdummy · vayno-CD
   Tokens: Markenrot #D7263D, Dunkelblau #0A122A, Off-White #FBFAF8, Sand #E6DECD, Schrift Inter. */

@font-face { font-family: "Inter"; font-weight: 300; font-display: swap; src: url(../assets/fonts/inter-v18-latin-300.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../assets/fonts/inter-v18-latin-regular.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../assets/fonts/inter-latin-600.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(../assets/fonts/inter-v18-latin-700.woff2) format("woff2"); }

:root {
  --red-50: #fdf0f2; --red-100: #fbdde2; --red-200: #f6b6c0; --red-300: #ee8596; --red-400: #e4526a; --red-500: #d7263d; --red-600: #b81c32; --red-700: #93172a; --red-800: #6f1321; --red-900: #4c0e17;
  --navy-50: #eef0f6; --navy-100: #d9dded; --navy-200: #b3bbd6; --navy-300: #8792b8; --navy-400: #5d6994; --navy-500: #3d4870; --navy-600: #283156; --navy-700: #1a2242; --navy-800: #111934; --navy-900: #0a122a; --navy-950: #060b1c;
  --sand-50: #fbf9f5; --sand-100: #f4f0e7; --sand-200: #ece5d8; --sand-300: #e6decd; --sand-400: #d3c6ab; --sand-500: #b9a780;

  --bg: #fbfaf8; --surface: #ffffff; --surface-2: #f6f3ee; --ink: #0a122a; --ink-2: #3d4870; --muted: #6e7894; --faint: #9aa1b6;
  --line: #ebe6dc; --line-2: #ddd6c8; --accent: var(--red-500); --accent-ink: #ffffff; --accent-soft: var(--red-50);
  --ok: #1f8a5b; --ok-soft: #e6f4ed; --warn: #b7791f; --warn-soft: #fbf1df; --err: #b81c32; --err-soft: #fbe8eb; --info: #3d5aa8; --info-soft: #e9eef9;
  --nav: var(--navy-900); --nav-ink: #e9ecf5; --nav-muted: #8792b8;
  --r-sm: 6px; --r: 10px; --r-lg: 16px; --r-xl: 22px;
  --sh-1: 0 1px 2px rgba(10, 18, 42, .06); --sh-2: 0 4px 16px rgba(10, 18, 42, .08), 0 1px 2px rgba(10, 18, 42, .05); --sh-3: 0 18px 48px rgba(10, 18, 42, .18), 0 2px 6px rgba(10, 18, 42, .08);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #070d20; --surface: #0e1630; --surface-2: #131c3a; --ink: #f2f0ec; --ink-2: #c9cde0; --muted: #8b93b0; --faint: #5d6684;
  --line: #1d2747; --line-2: #2a3558; --accent: #e4364c; --accent-soft: rgba(215, 38, 61, .14);
  --ok: #3fbf86; --ok-soft: rgba(63, 191, 134, .13); --warn: #e0a548; --warn-soft: rgba(224, 165, 72, .13); --err: #f0607a; --err-soft: rgba(240, 96, 122, .13); --info: #8aa4ec; --info-soft: rgba(138, 164, 236, .13);
  --nav: #050a19; --sh-1: 0 1px 2px rgba(0, 0, 0, .4); --sh-2: 0 4px 16px rgba(0, 0, 0, .35); --sh-3: 0 18px 48px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.hide { display: none !important; }
svg { flex: none; }
mark { background: var(--red-100); color: inherit; border-radius: 3px; padding: 0 1px; }
:root[data-theme="dark"] mark { background: rgba(215, 38, 61, .35); }

h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -.025em; }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }
h3 { font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; color: var(--muted); }

/* ───────── Buttons und Steuerelemente ───────── */
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); font-weight: 500; font-size: 13.5px; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; }
.btn:hover { border-color: var(--navy-200); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 2px 8px rgba(215, 38, 61, .25); }
.btn.primary:hover { background: var(--red-600); border-color: var(--red-600); }
.btn.dark { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
:root[data-theme="dark"] .btn.dark { background: #f2f0ec; border-color: #f2f0ec; color: var(--navy-900); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.lg { height: 48px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.btn.icon { width: 36px; padding: 0; }
.btn.sm.icon { width: 30px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--err); }
.btn.block { width: 100%; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 12px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.seg.full { display: flex; } .seg.full button { flex: 1; }

.sw { position: relative; width: 38px; height: 22px; border-radius: 99px; border: 0; background: var(--line-2); transition: background .2s var(--ease); flex: none; padding: 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.sw.on { background: var(--accent); }
.sw.on::after { transform: translateX(16px); }

.pickbtn { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 150px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 13.5px; text-align: left; }
.pickbtn:hover { border-color: var(--navy-200); }
.pickbtn svg { width: 15px; height: 15px; color: var(--muted); }
.pickbtn.sm { height: 30px; min-width: 0; font-size: 12.5px; border-radius: 8px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); height: 36px; overflow: hidden; }
.stepper button { width: 32px; height: 100%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.stepper button:hover { background: var(--surface-2); color: var(--ink); }
.stepper button svg { width: 14px; height: 14px; }
.stepper span { white-space: nowrap; padding: 0 4px; min-width: 44px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 16px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; border: 1px solid transparent; }
.chip svg { width: 12px; height: 12px; }
.chip.red { background: var(--accent-soft); color: var(--accent); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.err { background: var(--err-soft); color: var(--err); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.navy { background: var(--navy-900); color: #fff; }
.chip.line { background: transparent; border-color: var(--line-2); color: var(--muted); }
.chip.sand { background: var(--sand-200); color: #6b5a35; }
:root[data-theme="dark"] .chip.sand { background: rgba(230, 222, 205, .14); color: var(--sand-300); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.stars { color: var(--sand-500); letter-spacing: 1px; font-size: 11px; }

.info-i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 0; background: transparent; color: var(--faint); padding: 0; vertical-align: -3px; }
.info-i:hover { color: var(--ink); background: var(--surface-2); }
.info-i svg { width: 15px; height: 15px; }

/* ───────── Admin-Shell ───────── */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--nav); color: var(--nav-ink); display: flex; flex-direction: column; padding: 18px 12px; gap: 4px; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.side .brand .logo { height: 13px; width: auto; color: var(--red-500); }
.side .brand .app { font-weight: 300; font-size: 19px; letter-spacing: -.02em; color: #fff; }
.side .ev { margin: 0 4px 14px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
.side .ev b { display: block; font-weight: 600; font-size: 13px; color: #fff; }
.side .ev span { font-size: 12px; color: var(--nav-muted); }
.side .navlbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--nav-muted); padding: 14px 12px 6px; font-weight: 600; }
.side a.nav { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--nav-ink); font-size: 13.5px; opacity: .78; transition: background .15s, opacity .15s; }
.side a.nav svg { width: 17px; height: 17px; opacity: .85; }
.side a.nav:hover { background: rgba(255, 255, 255, .06); opacity: 1; }
.side a.nav.on { background: rgba(255, 255, 255, .09); opacity: 1; box-shadow: inset 2px 0 0 var(--red-500); }
.side a.nav .cnt { margin-left: auto; font-size: 11px; font-weight: 600; background: var(--red-500); color: #fff; border-radius: 99px; padding: 1px 7px; }
.side .foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid rgba(255, 255, 255, .07); display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; background: var(--sand-300); color: var(--navy-900); flex: none; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.avatar.red { background: var(--red-500); color: #fff; }
.avatar.navy { background: var(--navy-700); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13.5px; text-align: left; }
.top .search:hover { border-color: var(--line-2); }
.top .search svg { width: 16px; height: 16px; }
.top .search kbd { margin-left: auto; }
kbd { font-family: var(--font); font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); }
.top .sp { flex: 1; }
.clock { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.clock b { font-variant-numeric: tabular-nums; font-weight: 600; }
.clock .live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(215, 38, 61, .5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(215, 38, 61, .45); } 70% { box-shadow: 0 0 0 7px rgba(215, 38, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(215, 38, 61, 0); } }
.page { padding: 28px 28px 80px; max-width: 1360px; width: 100%; }
.ph { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ph .t { flex: 1; min-width: 240px; }
.ph .t p { margin: 6px 0 0; color: var(--muted); }
.ph .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.subnav { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: -6px 0 22px; overflow-x: auto; }
.subnav a { padding: 10px 14px; font-size: 13.5px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subnav a.on { color: var(--ink); border-color: var(--accent); font-weight: 500; }

/* ───────── Karten, KPIs, Raster ───────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card .hd { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.card .hd h3 { flex: 1; }
.card .bd { padding: 16px 18px 18px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.kpi { padding: 16px 18px; }
.kpi .l { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 30px; font-weight: 300; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.hero { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.kpi.hero .l, .kpi.hero .s { color: var(--navy-200); }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.bar.navy i { background: var(--navy-700); }
:root[data-theme="dark"] .bar.navy i { background: var(--navy-300); }
.bar.ok i { background: var(--ok); }
.row { display: flex; align-items: center; gap: 10px; }
.row.sb { justify-content: space-between; }
.stack { display: grid; gap: 10px; align-content: start; }
.sep { height: 1px; background: var(--line); margin: 14px 0; }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty svg { width: 28px; height: 28px; color: var(--faint); margin-bottom: 8px; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--info-soft); color: var(--ink-2); font-size: 13px; }
.note svg { width: 17px; height: 17px; color: var(--info); margin-top: 1px; }
.note.warn { background: var(--warn-soft); } .note.warn svg { color: var(--warn); }
.note.ok { background: var(--ok-soft); } .note.ok svg { color: var(--ok); }
.note.red { background: var(--accent-soft); } .note.red svg { color: var(--accent); }

/* Tabellen */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 60px; z-index: 2; white-space: nowrap; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--surface-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .nm { font-weight: 500; }
.tbl .sub { font-size: 12px; color: var(--muted); }
.toolbar { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar .q { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); flex: 1; min-width: 180px; max-width: 320px; }
.toolbar .q input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 14px; min-width: 0; }
.toolbar .q svg { width: 15px; height: 15px; color: var(--muted); }
.toolbar .cnt { margin-left: auto; font-size: 12.5px; color: var(--muted); }

/* Planungsmatrix */
.matrix-wrap { overflow: auto; max-height: 640px; border-top: 1px solid var(--line); }
.matrix { border-collapse: separate; border-spacing: 2px; font-size: 11px; }
.matrix th { position: sticky; top: 0; background: var(--surface); z-index: 3; font-weight: 600; color: var(--muted); padding: 4px 2px; font-variant-numeric: tabular-nums; }
.matrix th.h { position: sticky; left: 0; z-index: 4; text-align: left; padding: 0 10px 0 4px; white-space: nowrap; font-weight: 500; color: var(--ink); max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.matrix th.h .st { display: inline-block; width: 22px; color: var(--muted); font-variant-numeric: tabular-nums; }
.matrix td { width: 15px; min-width: 15px; height: 20px; border-radius: 3px; background: var(--surface-2); cursor: pointer; transition: transform .1s; }
.matrix td:hover { transform: scale(1.35); box-shadow: var(--sh-2); position: relative; z-index: 1; }
.matrix td.pre { background: var(--red-500); }
.matrix td.std { background: var(--navy-600); }
.matrix td.c { background: var(--navy-300); }
:root[data-theme="dark"] .matrix td.std { background: var(--navy-400); }
.matrix td.past { opacity: .45; }
.matrix td.noshow { background-image: repeating-linear-gradient(45deg, transparent 0 3px, rgba(255, 255, 255, .55) 3px 5px); }
.matrix td.wx { background: transparent; cursor: default; }
.matrix td.wx:hover { transform: none; box-shadow: none; }
.matrix td.cur { outline: 2px solid var(--accent); outline-offset: 1px; }
.matrix th.nowc { color: var(--accent); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* Segment-Matrix */
.catmx { width: 100%; border-collapse: separate; border-spacing: 0; }
.catmx th, .catmx td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.catmx th:first-child, .catmx td:first-child { text-align: left; }
.catmx th { font-size: 12px; font-weight: 600; color: var(--muted); }
.catmx td .tg { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); display: inline-grid; place-items: center; color: transparent; transition: all .15s; }
.catmx td .tg.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.catmx td .tg svg { width: 16px; height: 16px; }

/* Balkendiagramm (CSS) */
.hbars { display: grid; gap: 7px; }
.hbars .hb { display: grid; grid-template-columns: 190px 1fr 64px; gap: 10px; align-items: center; font-size: 12.5px; }
.hbars .hb .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbars .hb .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.hbars .tr { height: 10px; background: var(--surface-2); border-radius: 3px; overflow: hidden; display: flex; }
.hbars .tr i { display: block; height: 100%; }
.cols { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 10px; }
.cols .c { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; height: 100%; position: relative; }
.cols .c i { display: block; border-radius: 2px 2px 0 0; background: var(--navy-600); }
:root[data-theme="dark"] .cols .c i { background: var(--navy-300); }
.cols .c i.r { background: var(--accent); border-radius: 0; }
.cols .c.cur i { background: var(--accent); }
.axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ───────── Overlays ───────── */
.scrim { position: fixed; inset: 0; background: rgba(6, 11, 28, .38); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; }
.scrim.on { opacity: 1; pointer-events: auto; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface); box-shadow: var(--sh-3); z-index: 70; transform: translateX(104%); transition: transform .28s var(--ease); display: flex; flex-direction: column; }
.panel.on { transform: none; }
.panel .phd { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.panel .phd .t { flex: 1; min-width: 0; }
.panel .phd h2 { font-size: 22px; }
.panel .pbd { flex: 1; overflow: auto; padding: 18px 22px 28px; }
.panel .pft { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.modal { position: fixed; left: 50%; top: 50%; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 64px); overflow: auto; transform: translate(-50%, -46%) scale(.98); opacity: 0; pointer-events: none; transition: all .2s var(--ease); background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-3); z-index: 80; }
.modal.on { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
.modal .mbd { padding: 24px; }
.modal .mft { padding: 0 24px 22px; display: flex; gap: 8px; justify-content: flex-end; }
.pop { position: fixed; z-index: 90; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-3); min-width: 220px; max-width: 340px; display: none; overflow: hidden; }
.pop.on { display: block; }
.pop .pq { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pop .pq input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 14px; }
.pop .pq svg { width: 15px; height: 15px; color: var(--muted); }
.pop .pl { max-height: 300px; overflow: auto; padding: 5px; }
.pop .po { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: transparent; border-radius: 8px; text-align: left; font-size: 13.5px; }
.pop .po:hover, .pop .po.act { background: var(--surface-2); }
.pop .po .ck { margin-left: auto; color: var(--accent); width: 15px; height: 15px; }
.pop .po small { display: block; color: var(--muted); font-size: 12px; }
.pop .pg { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px 4px; }
.tip { position: fixed; z-index: 95; max-width: 300px; padding: 10px 12px; background: var(--navy-900); color: #fff; font-size: 12.5px; line-height: 1.45; border-radius: 10px; box-shadow: var(--sh-3); pointer-events: none; opacity: 0; transition: opacity .12s; }
.tip.on { opacity: 1; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 100; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--navy-900); color: #fff; box-shadow: var(--sh-3); font-size: 13.5px; transition: all .25s var(--ease); max-width: calc(100vw - 32px); }
:root[data-theme="dark"] .toast { background: #f2f0ec; color: var(--navy-900); }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast svg { width: 17px; height: 17px; color: var(--red-300); }
.toast button { border: 0; background: rgba(255, 255, 255, .12); color: inherit; height: 30px; padding: 0 12px; border-radius: 9px; font-weight: 600; font-size: 12.5px; }
:root[data-theme="dark"] .toast button { background: rgba(10, 18, 42, .08); }

/* ⌘K */
.palette { position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); width: min(640px, calc(100vw - 24px)); background: var(--surface); border-radius: 18px; box-shadow: var(--sh-3); z-index: 85; display: none; overflow: hidden; border: 1px solid var(--line); }
.palette.on { display: block; }
.palette .pin { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 58px; border-bottom: 1px solid var(--line); }
.palette .pin svg { width: 19px; height: 19px; color: var(--muted); }
.palette .pin input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 17px; }
.palette .res { max-height: 56vh; overflow: auto; padding: 6px; }
.palette .grp { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 4px; }
.palette .it { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.palette .it.act { background: var(--surface-2); }
.palette .it .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }
.palette .it.act .ic { background: var(--surface); }
.palette .it .ic svg { width: 16px; height: 16px; }
.palette .it .tx { flex: 1; min-width: 0; }
.palette .it .tx small { display: block; color: var(--muted); font-size: 12px; }
.palette .ft { display: flex; gap: 14px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }

/* Ansicht-als-Banner und Demo-Dock */
.asbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; justify-content: center; padding: 8px 14px; background: var(--accent); color: #fff; font-size: 13px; }
.asbar button { border: 0; background: rgba(255, 255, 255, .2); color: #fff; height: 26px; padding: 0 10px; border-radius: 7px; font-weight: 600; font-size: 12px; }
.dock { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 14px; background: var(--navy-900); color: #fff; box-shadow: var(--sh-3); font-size: 12.5px; }
.dock .lbl { padding: 0 8px; color: var(--navy-200); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.dock button { border: 0; background: transparent; color: #fff; height: 30px; min-width: 30px; padding: 0 8px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px; }
.dock button:hover { background: rgba(255, 255, 255, .1); }
.dock button svg { width: 15px; height: 15px; }
.dock b { font-variant-numeric: tabular-nums; font-weight: 600; padding: 0 2px; }
.dock .sepv { width: 1px; height: 18px; background: rgba(255, 255, 255, .15); margin: 0 3px; }

body.mobview .dock { bottom: 84px; right: 50%; transform: translateX(50%); }
@media (min-width: 900px) { body.mobview .dock { right: 24px; transform: none; bottom: 24px; } }

/* ───────── Mobile Ansichten (Reisebüro, Hotel) ───────── */
.mob { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: 96px; }
@media (min-width: 560px) { body.mobview { background: var(--surface-2); } .mob { border-left: 1px solid var(--line); border-right: 1px solid var(--line); box-shadow: var(--sh-2); } }
.mhd { padding: 18px 20px 6px; display: flex; align-items: center; gap: 12px; }
.mhd .logo { height: 11px; color: var(--accent); }
.mhd .sp { flex: 1; }
.mhero { padding: 6px 20px 18px; }
.mhero h1 { font-size: 27px; }
.mhero p { margin: 4px 0 0; color: var(--muted); }
.now { margin: 0 16px; border-radius: 22px; padding: 18px 18px 16px; background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.now::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(215, 38, 61, .55), transparent 70%); }
.now .k { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red-300); display: flex; align-items: center; gap: 8px; }
.now .k .live { width: 7px; height: 7px; border-radius: 50%; background: var(--red-400); animation: pulse 2s infinite; }
.now .stand { font-size: 52px; font-weight: 300; letter-spacing: -.04em; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.now .stand small { font-size: 15px; letter-spacing: 0; color: var(--navy-200); margin-right: 6px; font-weight: 400; }
.now .who { font-size: 16px; font-weight: 500; margin-top: 8px; position: relative; z-index: 1; }
.now .meta { font-size: 13px; color: var(--navy-200); margin-top: 2px; position: relative; z-index: 1; }
.now .cd { position: relative; z-index: 1; margin-top: 14px; }
.now .cd .bar { background: rgba(255, 255, 255, .12); }
.now .cd .bar i { background: var(--red-400); }
.now .cd .row { font-size: 12px; color: var(--navy-200); margin-top: 6px; }
.now .acts { display: flex; gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.now .acts .btn { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); color: #fff; }
.now .acts .btn.primary { background: var(--accent); border-color: var(--accent); }
.now.calm { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.now.calm::after { display: none; }
.now.calm .k { color: var(--muted); }
.now.calm .meta { color: var(--muted); }
.msec { padding: 22px 20px 8px; display: flex; align-items: baseline; gap: 10px; }
.msec h2 { flex: 1; font-size: 18px; }
.tl { padding: 0 16px; display: grid; gap: 6px; }
.ti { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: left; width: 100%; }
.ti .tm { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; line-height: 1.15; }
.ti .tm small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.ti .tx { min-width: 0; }
.ti .tx b { display: block; font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti .tx span { font-size: 12.5px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti .badge { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 600; font-size: 15px; background: var(--surface-2); font-variant-numeric: tabular-nums; }
.ti.talk { background: var(--sand-100); border-color: var(--sand-300); }
:root[data-theme="dark"] .ti.talk { background: rgba(230, 222, 205, .07); border-color: rgba(230, 222, 205, .16); }
.ti.talk .badge { background: var(--sand-300); color: #6b5a35; }
.ti.past { opacity: .55; }
.ti.cur { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ti.free { background: transparent; border-style: dashed; padding: 8px 14px; }
.ti.free .tx b { font-weight: 400; color: var(--muted); font-size: 13px; }
.ti .st svg { width: 18px; height: 18px; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(480px, 100vw); display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); z-index: 40; }
.tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 0; font-size: 11px; color: var(--muted); text-decoration: none; border-radius: 10px; }
.tabbar a svg { width: 21px; height: 21px; }
.tabbar a.on { color: var(--accent); font-weight: 600; }
.mcard { margin: 0 16px; }
.lst { display: grid; gap: 8px; padding: 0 16px; }
.lcard { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.lcard .tx { flex: 1; min-width: 0; }
.lcard .tx b { display: block; font-weight: 500; }
.lcard .tx span { font-size: 12.5px; color: var(--muted); }
.qr { background: #fff; padding: 14px; border-radius: 18px; display: inline-block; box-shadow: var(--sh-2); }
.qr svg { display: block; width: 210px; height: 210px; }
.stamp { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); position: relative; z-index: 1; }
.stamp:first-of-type { border-top: 0; }
.stamp .nm { font-weight: 500; font-size: 14px; }
.stamp .nm small { display: block; color: var(--navy-200); font-weight: 400; font-size: 12px; }
.sbtn { height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.sbtn svg { width: 16px; height: 16px; }
.sbtn.on.da { background: var(--ok); border-color: var(--ok); }
.sbtn.on.weg { background: var(--accent); border-color: var(--accent); }
.calm .sbtn { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.scanbox { position: relative; width: 240px; height: 240px; margin: 10px auto; border-radius: 22px; background: radial-gradient(circle at 50% 40%, #1a2242, #060b1c); overflow: hidden; }
.scanbox::before { content: ""; position: absolute; inset: 34px; border: 3px solid rgba(255, 255, 255, .85); border-radius: 18px; clip-path: polygon(0 0, 30% 0, 30% 4%, 4% 4%, 4% 30%, 0 30%, 0 70%, 4% 70%, 4% 96%, 30% 96%, 30% 100%, 70% 100%, 70% 96%, 96% 96%, 96% 70%, 100% 70%, 100% 30%, 96% 30%, 96% 4%, 70% 4%, 70% 0, 100% 0, 100% 100%, 0 100%); }
.scanbox .ln { position: absolute; left: 40px; right: 40px; height: 2px; background: var(--red-400); box-shadow: 0 0 12px var(--red-400); top: 40px; animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { to { top: 198px; } }

/* ───────── Login ───────── */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); background: var(--navy-900); }
.login .scene { position: relative; overflow: hidden; }
.login canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.login .claim { position: absolute; left: 48px; bottom: 44px; color: #fff; max-width: 460px; }
.login .claim .logo { height: 14px; color: var(--red-500); }
.login .claim h1 { font-size: 40px; margin-top: 18px; }
.login .claim p { color: var(--navy-200); margin: 10px 0 0; font-size: 15px; }
.login .form { background: var(--bg); display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(28px, 6vw, 72px); gap: 18px; }
.login .form h2 { font-size: 28px; }
.login .demo { display: grid; gap: 8px; }
.login .demo button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: left; transition: border-color .15s, transform .15s, box-shadow .15s; }
.login .demo button:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--sh-2); }
.login .demo button b { display: block; font-weight: 500; }
.login .demo button span { font-size: 12.5px; color: var(--muted); }
.login .demo button svg { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }

/* Powered by */
.powered { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.powered a { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.powered a:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.powered a svg { height: 22px; width: auto; align-self: flex-start; }
.powered a span { font-size: 13px; color: var(--muted); }
.powered .vy { color: var(--red-500); }
.powered .mo { color: var(--ink); }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-2-1, .g3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 75; width: 260px; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .side.open { transform: none; }
  .top { padding: 0 14px; } .page { padding: 20px 16px 90px; }
  .g2 { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; } .login .scene { min-height: 300px; } .login .claim { left: 24px; bottom: 24px; } .login .claim h1 { font-size: 30px; }
  .hbars .hb { grid-template-columns: 120px 1fr 52px; }
  .powered { grid-template-columns: 1fr; }
  .tbl .hide-m { display: none; }
}
@media (min-width: 861px) { .only-m { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Icon-Größen in Containern ohne eigene Regel */
.row > svg, .lcard > svg, .tx > svg { width: 17px; height: 17px; color: var(--muted); }
.badge svg { width: 18px; height: 18px; }
.now .k svg { width: 14px; height: 14px; }
.mbd h2 + p svg, .eyebrow svg { width: 14px; height: 14px; }
.lst, .tl { grid-template-columns: minmax(0, 1fr); }
.dock .lbl { white-space: nowrap; }
@media (max-width: 560px) { .dock .rnd { display: none; } }

/* ───────── Feedback-Button und -Panel (Baustein _claude/bausteine/feedback, vanilla) ───────── */
.fb-btn { position: fixed; right: 20px; bottom: 16px; z-index: 52; display: flex; align-items: center; height: 44px; padding: 0 12px; border: 0; border-radius: 99px; background: var(--navy-900); color: #fff; font-weight: 600; font-size: 13px; box-shadow: var(--sh-3); outline: 1px solid rgba(255,255,255,.1); transition: gap .3s var(--ease), background .2s; gap: 0; }
.fb-btn svg { width: 20px; height: 20px; color: var(--red-400); }
.fb-btn .lbl { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s var(--ease); }
.fb-btn:hover, .fb-btn:focus-visible { gap: 8px; background: var(--navy-700); }
.fb-btn:hover .lbl, .fb-btn:focus-visible .lbl, .fb-btn:disabled .lbl { max-width: 140px; }
.fb-btn:disabled { gap: 8px; opacity: .9; }
.fb-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--red-400); animation: fbspin .8s linear infinite; }
@keyframes fbspin { to { transform: rotate(360deg); } }
.dock { right: 76px; }
body.mobview .dock { right: auto; left: 16px; transform: none; }
body.mobview .fb-btn { bottom: 84px; right: 16px; }
@media (min-width: 900px) { body.mobview .dock { left: auto; right: 80px; bottom: 24px; } body.mobview .fb-btn { bottom: 24px; right: 24px; } }

.fb-root { position: fixed; inset: 0; z-index: 110; background: rgba(6, 11, 28, .45); backdrop-filter: blur(3px); }
.fb-root.fb-with-shot { background: var(--navy-950); backdrop-filter: none; }
.fb-root.fb-hidden { visibility: hidden; }
.fb-stage { position: absolute; inset: 0 calc(min(440px, 100vw - 20px) + 20px) 0 0; display: flex; flex-direction: column; }
.fb-tools { height: 64px; flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; }
.fb-group { display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.fb-tool { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: rgba(255,255,255,.7); display: grid; place-items: center; }
.fb-tool svg { width: 18px; height: 18px; }
.fb-tool:hover { background: rgba(255,255,255,.1); color: #fff; }
.fb-tool.on { background: var(--red-500); color: #fff; }
.fb-tool:disabled { opacity: .35; pointer-events: none; }
.fb-canvaswrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 24px 24px; }
.fb-canvaswrap canvas { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 24px 70px -10px rgba(0,0,0,.6); outline: 1px solid rgba(255,255,255,.1); touch-action: none; }
.fb-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--surface); box-shadow: var(--sh-3); display: flex; flex-direction: column; color: var(--ink); }
.fb-hd { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.fb-hd h2 { font-size: 19px; }
.fb-hd p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.fb-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.fb-ic svg { width: 20px; height: 20px; }
.fb-bd { flex: 1; overflow: auto; padding: 18px 20px; display: grid; gap: 22px; align-content: start; }
.fb-bd section { display: grid; gap: 10px; }
.fb-bd section > .seg { justify-self: start; }
.fb-ta { height: 140px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.fb-small { margin: 0; font-size: 13px; }
.fb-pins { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fb-pins li { display: flex; align-items: center; gap: 10px; }
.fb-pins .input { height: 36px; font-size: 13.5px; }
.fb-pin { width: 24px; height: 24px; border-radius: 50%; background: #ef4444; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.fb-link { border: 0; background: transparent; padding: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); justify-self: start; }
.fb-link:hover { color: var(--ink); }
.fb-link svg { width: 15px; height: 15px; }
.fb-ft { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
.fb-ok { width: 44px; height: 44px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.fb-ok svg { width: 22px; height: 22px; }
.fb-big { font-size: 16px; font-weight: 600; margin: 0; }
.fb-key { justify-self: start; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); }
.fb-bd p { margin: 0; }
@media (max-width: 860px) {
  .fb-stage { inset: 0 0 auto 0; height: 46vh; }
  .fb-tools { height: 56px; }
  .fb-canvaswrap { padding: 0 12px 12px; }
  .fb-root.fb-with-shot .fb-panel { top: 46vh; border-radius: 18px 18px 0 0; }
  .fb-panel { width: 100vw; }
  .fb-pins .input, .fb-bd .input { font-size: 16px; }
}
