/* ===================== Tourmonster Theme v0.9 – „frisch auf Tour“ =====================
   Wird zuletzt geladen und überschreibt Farben, Schrift und Formen.
   Farbe:  Papier #F5F7F6 · Weiß · Nebel #EEF3F0 · Tinte #12201A · Frischgrün #13D47F (Fläche, Tinte darauf) ·
           Waldgrün #07824C (grüner Text) · Sonne #FFC23D (Tupfer)
   Schrift: Geist für Überschriften und Zeiten (klar, modern; Matt: Bricolage war nichts), Instrument Sans für alles andere (ruhig, gut lesbar).
   Prinzip: eine laute Stelle – der Tageskopf mit der Stadt; alles andere leise, flach, mit klarer Hierarchie über Größe statt Rahmen. */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-latin.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Geist", "Instrument Sans", system-ui, sans-serif;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 18px; --radius-xl: 24px;
  --shadow-card: 0 1px 2px rgba(18,32,26,.04);
  --shadow-pop: 0 12px 32px -8px rgba(18,32,26,.18), 0 2px 6px rgba(18,32,26,.06);
}
:root, [data-theme="light"] {
  --c-bg: #F5F7F6; --c-surface: #FFFFFF; --c-surface-2: #EEF3F0; --c-border: #E1E8E4; --c-border-input: #84958B;
  --c-text: #12201A; --c-text-muted: #5B6B63;
  --c-primary: #13D47F; --c-on-primary: #06170F; --c-accent: #13D47F; --c-on-accent: #06170F;
  --c-accent-text: #07824C; --c-accent-soft: #E3FAEE; --c-focus: #0FB86C; --c-pop: #FFC23D;
  --c-success: #07824C; --c-success-soft: #E3FAEE; --c-warning: #A65A00; --c-warning-soft: #FFF3DC; --c-danger: #C2352B; --c-danger-soft: #FDECEA;
  --c-day-show: #13C477; --c-day-travel: #F0A400; --c-day-off: #3B82F6; --c-day-rehearsal: #8B5CF6; --c-day-press: #EC4899; --c-day-other: #94A39B;
  --c-datebar: #FFFFFF; --c-datebar-line: #E1E8E4; --c-chip: #F5F7F6; --c-ink-fill: #12201A;
}
[data-theme="dark"] {
  --c-bg: #0B1210; --c-surface: #121C18; --c-surface-2: #1A2621; --c-border: #24332C; --c-border-input: #5F7369;
  --c-text: #EAF3EE; --c-text-muted: #9BB0A5;
  --c-primary: #2EE59D; --c-on-primary: #05170F; --c-accent: #2EE59D; --c-on-accent: #05170F;
  --c-accent-text: #5CEBB2; --c-accent-soft: #10291F; --c-focus: #2EE59D;
  --c-success: #45D48C; --c-success-soft: #10291F; --c-warning: #F5B544; --c-warning-soft: #2A2010; --c-danger: #FF7A6E; --c-danger-soft: #2C1513;
  --c-day-show: #2EE59D; --c-day-travel: #FBBF24; --c-day-off: #60A5FA; --c-day-rehearsal: #A78BFA; --c-day-press: #F472B6; --c-day-other: #94A39B;
  --c-datebar: #121C18; --c-datebar-line: #24332C; --c-chip: #0B1210; --c-ink-fill: #EAF3EE;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: #0B1210; --c-surface: #121C18; --c-surface-2: #1A2621; --c-border: #24332C; --c-border-input: #5F7369;
    --c-text: #EAF3EE; --c-text-muted: #9BB0A5;
    --c-primary: #2EE59D; --c-on-primary: #05170F; --c-accent: #2EE59D; --c-on-accent: #05170F;
    --c-accent-text: #5CEBB2; --c-accent-soft: #10291F; --c-focus: #2EE59D;
    --c-success: #45D48C; --c-success-soft: #10291F; --c-warning: #F5B544; --c-warning-soft: #2A2010; --c-danger: #FF7A6E; --c-danger-soft: #2C1513;
    --c-day-show: #2EE59D; --c-day-travel: #FBBF24; --c-day-off: #60A5FA; --c-day-rehearsal: #A78BFA; --c-day-press: #F472B6; --c-day-other: #94A39B;
    --c-datebar: #121C18; --c-datebar-line: #24332C; --c-chip: #0B1210; --c-ink-fill: #EAF3EE;
  }
}

/* ---------- Schrift ---------- */
body { font-family: var(--font-sans); letter-spacing: -0.003em; }
h1, h2, .h-lg, .h-xl, .h-display, .page-head h1, .logo-word, .time, .leg-time, .tr-time .time, .dayhead3 h1, .tc-name, .fx-main b {
  font-family: var(--font-display); }
.page-head h1 { font-size: 34px; line-height: 38px; font-weight: 750; letter-spacing: -0.03em; }
.h-lg { font-weight: 700; letter-spacing: -0.015em; }
.time { font-weight: 700; letter-spacing: -0.01em; }
.label { font-weight: 600; }

/* ---------- Kopfleiste ---------- */
.topbar-app { background: color-mix(in srgb, var(--c-surface) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--c-border); box-shadow: none; }
.logo-word { font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
/* Logo: das Tourmonster */
.logo-mark { width: 40px; height: 40px; margin: -4px 0; background: url("../img/monster.png") center / contain no-repeat; border-radius: 0; box-shadow: none; }
.logo-mark::after { content: none; display: none; }
.crumb { background: var(--c-surface-2); border: 0; border-radius: 999px; }
.tabs { gap: 2px; }
.tabs a { position: relative; border: 0; margin: 0; padding: 0 12px; font-weight: 600; color: var(--c-text-muted); }
.tabs a[aria-current="page"] { color: var(--c-text); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--c-primary); }
.avatar-me, .avatar { background: var(--c-ink-fill); color: var(--c-surface); }
.menu-pop { border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); border: 1px solid var(--c-border); padding: 6px; }
.menu-item { border-radius: 10px; }

/* ---------- Datumsleiste: weiß, ruhig, gewählter Tag in Frischgrün ---------- */
.datebar { background: var(--c-datebar); border-bottom: 1px solid var(--c-datebar-line); box-shadow: none; padding-top: 10px; padding-bottom: 10px; }
.datechip { background: var(--c-chip); border: 1px solid transparent; box-shadow: none; border-radius: 14px; padding: 9px 12px 9px; }
.datechip::before { top: auto; bottom: 7px; left: 12px; right: auto; width: 16px; height: 3px; border-radius: 3px; }
.datechip b { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.datechip span { padding-bottom: 6px; }
.datechip:hover { background: var(--c-surface-2); border-color: var(--c-border); }
.datechip.past { background: transparent; }
.datechip[aria-current="date"] { background: var(--c-primary); border-color: var(--c-primary); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--c-primary) 70%, transparent); }
.datechip[aria-current="date"] b, .datechip[aria-current="date"] span { color: var(--c-on-primary); opacity: 1; }
.datechip[aria-current="date"]::before { background: var(--c-on-primary) !important; opacity: .55; }
.datechip.is-today:not([aria-current]) b::after { background: var(--c-pop); box-shadow: none; }
.dategap { background: transparent; border: 1px dashed var(--c-border-input); }
.datebar > .btn-icon, .datebar-tools .btn-ghost, .datebar-tools .btn-secondary { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 999px; }

/* ---------- Knöpfe, Felder, Pillen ---------- */
.btn { border-radius: 999px; font-weight: 650; letter-spacing: -0.005em; }
.btn-icon { border-radius: 999px; }
.btn-primary { background: var(--c-primary); color: var(--c-on-primary); box-shadow: none; }
.btn-primary:hover { background: color-mix(in srgb, var(--c-primary) 88%, var(--c-text)); }
.btn-secondary { border-color: var(--c-border); background: var(--c-surface); }
.btn-secondary:hover { border-color: var(--c-border-input); background: var(--c-surface); }
.input, .select, .textarea { border-radius: 12px; border-color: color-mix(in srgb, var(--c-border-input) 55%, var(--c-border)); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--c-focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-focus) 18%, transparent); }
.switch input:checked + .track { background: var(--c-primary); }
.pill-success, .pill-live { background: var(--c-accent-soft); color: var(--c-accent-text); }
.pill-live::before { background: var(--c-primary) !important; }
.segmented-radio { background: var(--c-surface-2); border-radius: 999px; padding: 3px; }
.segmented-radio label, .segmented-radio .seg { border-radius: 999px; }
.checks label:has(input:checked) { background: var(--c-accent-soft); color: var(--c-text); border-color: var(--c-primary); }
.flash.ok { background: var(--c-accent-soft); color: var(--c-accent-text); }
.subtabs a[aria-current="page"] { border-bottom-color: var(--c-primary); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--c-surface-2); font-size: 12px; font-weight: 700; color: var(--c-text-muted); margin-left: 4px; }

/* ---------- Flächen: weniger Rahmen, klare Hierarchie ---------- */
.card, .panel { border-radius: var(--radius-lg); border-color: var(--c-border); box-shadow: var(--shadow-card); }
.panel-head h2, .panel-head h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Tageskopf: die eine laute Stelle ---------- */
.dayhead3 { margin-bottom: var(--space-5); }
.dayhead3 h1 { font-size: clamp(44px, 6vw, 68px); line-height: 1; font-weight: 750; letter-spacing: -0.04em; margin-top: 6px; }
.dayhead3 .sub { font-weight: 600; font-size: 15px; }
.tag-day { border-radius: 999px; }

/* ---------- Ablauf ---------- */
.sched-card { overflow: hidden; }
.ev { border-radius: 0; }
.ev .time { font-size: 18px; }
.ev.now { background: var(--c-accent-soft); box-shadow: inset 4px 0 0 var(--c-primary); }
.ev.now .time { color: var(--c-accent-text); }
.nowtag { background: var(--c-primary) !important; color: var(--c-on-primary) !important; }
.ev-travel { background: color-mix(in srgb, var(--c-accent-soft) 45%, transparent); }
.nextup { background: var(--c-ink-fill); color: var(--c-surface); border-radius: var(--radius-lg); }
.nextup .big { font-family: var(--font-display); color: var(--c-primary); }

/* ---------- Tabbar unten (Handy) ---------- */
.tabbar { background: color-mix(in srgb, var(--c-surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tabbar a[aria-current="page"] { color: var(--c-text); }
.tabbar a[aria-current="page"] .icon { color: var(--c-on-primary); background: var(--c-primary); border-radius: 999px; padding: 4px 14px; width: 48px; height: 28px; box-sizing: border-box; }

/* ---------- Tourliste / Backend-Start ---------- */
.tours-page { display: grid; gap: var(--space-5); }
.ws-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ws-id { display: flex; align-items: center; gap: 16px; }
.ws-id h1 { margin: 0; font-family: var(--font-display); font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.ws-id p { margin: 6px 0 0; color: var(--c-text-muted); }
.ws-logo { height: 52px; max-width: 140px; object-fit: contain; }
.tours-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--c-border); }
.tours-bar .subtabs { border: 0; margin: 0; }
.search { position: relative; display: flex; align-items: center; margin-bottom: 8px; }
.search .icon { position: absolute; left: 12px; color: var(--c-text-muted); }
.search .input { padding-left: 36px; width: 260px; border-radius: 999px; height: 38px; }
.group-title { margin: 0 0 10px; font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.tour-group { display: grid; }
.tour-list { display: grid; gap: 8px; }
.tour-card { display: flex; align-items: center; gap: 8px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding-right: 10px; }
.tour-card:hover { border-color: var(--c-border-input); }
.tour-card.is-live { border-color: color-mix(in srgb, var(--c-primary) 55%, var(--c-border)); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.tour-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: inherit; }
.tour-card .cover-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--c-ink-fill); color: var(--c-surface); font-family: var(--font-display); font-weight: 800; font-size: 16px; flex: none; }
.tour-card.is-live .cover-tile { background: var(--c-primary); color: var(--c-on-primary); }
.tc-main { display: grid; min-width: 0; flex: 1; }
.tc-artist { font-size: 13px; color: var(--c-text-muted); font-weight: 600; }
.tc-name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-meta { font-size: 13px; color: var(--c-text-muted); }
.tc-side { display: grid; justify-items: end; gap: 4px; font-size: 13px; color: var(--c-text-muted); flex: none; }
.tc-people { display: inline-flex; align-items: center; gap: 4px; }
.tc-tm { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-act { margin: 0; }
@media (max-width: 640px) { .tc-tm, .tc-people { display: none; } .search .input { width: 100%; } .search { width: 100%; } .ws-id h1 { font-size: 32px; } }
.archived-bar { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 8px 16px; background: var(--c-warning-soft); color: var(--c-warning); font-weight: 600; font-size: 14px; }

/* ---------- Team ---------- */
.lead { margin: 0; color: var(--c-text-muted); max-width: 70ch; }
.card-pad-x { padding: 16px 16px 4px; margin: 0; }
.team-list { padding-bottom: 6px; }
.team-row { border-top: 1px solid var(--c-border); }
.team-row:first-of-type { border-top: 0; }
.team-row > summary, .team-row.pending { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
.team-row.pending { cursor: default; }
.team-row > summary::-webkit-details-marker { display: none; }
.team-row .avatar { width: 36px; height: 36px; font-size: 13px; }
.avatar-ghost { background: var(--c-surface-2) !important; color: var(--c-text-muted) !important; border: 1px dashed var(--c-border-input); }
.tm-main { display: grid; flex: 1; min-width: 0; }
.tm-main small { color: var(--c-text-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-tours { color: var(--c-text-muted); font-size: 13px; }
.tm-body { padding: 4px 16px 16px 64px; }
.team-row[open] .cc-chev { transform: rotate(180deg); }
.danger-text { color: var(--c-danger) !important; }
@media (max-width: 560px) { .tm-body { padding-left: 16px; } }

/* ---------- Feinschliff ---------- */
.nextup small { color: color-mix(in srgb, var(--c-surface) 72%, transparent); }
fieldset.field, fieldset.radio-cards, fieldset.pax-edit, fieldset.place-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks label { border-radius: 999px; }
@media (max-width: 860px) {
  .dayhead3 { align-items: stretch; }
  .dayhead3 h1 { font-size: 52px; }
}
@media (max-width: 640px) {
  .tour-link { flex-wrap: wrap; row-gap: 8px; }
  .tc-side { width: 100%; padding-left: 62px; display: flex; justify-content: flex-start; }
  .tc-name { white-space: normal; }
  .ws-head .row { width: 100%; }
}

/* ---------- Glocke, Posteingang, Push ---------- */
.bell { position: relative; }
.bell-count { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--c-primary); color: var(--c-on-primary);
  font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--c-surface); }
.inbox { padding: 4px 0; }
.inbox-row { display: flex; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; border-top: 1px solid var(--c-border); }
.inbox-row:first-child { border-top: 0; }
.inbox-row.unread { background: color-mix(in srgb, var(--c-accent-soft) 60%, transparent); }
.ib-ic { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--c-surface-2); flex: none; }
.ib-schedule_change { background: var(--c-warning-soft); color: var(--c-warning); }
.ib-message { background: var(--c-accent-soft); color: var(--c-accent-text); }
.ib-main { display: grid; gap: 2px; min-width: 0; }
.ib-main span { color: var(--c-text); font-size: 14px; white-space: pre-wrap; }
.ib-main small { color: var(--c-text-muted); font-size: 12.5px; }
.push-box { display: grid; gap: 12px; }
.push-state { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--c-surface-2); }
.push-state.on { background: var(--c-accent-soft); }
.cal-help > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--c-accent-text); }
