/* Losruf Designsystem „Studio“
   Warmweiß für die Fläche, Waldgrün für Aktionen, Salbei für aktive Elemente, Rot nur für den Live-Status.
   Eine Schrift für alles: Inter (400/500/600), Überschriften in 600 mit enger Laufweite. */
/* Inter, selbst ausgeliefert (keine Anfrage an Google). Quelle: @fontsource/inter 5.3.0, Lizenz: SIL OFL 1.1 (public/fonts/LICENSE-Inter.txt) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/inter-latin-ext-400-normal.woff2) format('woff2');
  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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/inter-latin-400-normal.woff2) format('woff2');
  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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/inter-latin-ext-500-normal.woff2) format('woff2');
  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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/inter-latin-500-normal.woff2) format('woff2');
  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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/inter-latin-ext-600-normal.woff2) format('woff2');
  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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/inter-latin-600-normal.woff2) format('woff2');
  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;
}

/* 800 nur für den Schriftzug „Losruf“ (Logo) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/fonts/inter-latin-ext-800-normal.woff2) format('woff2');
  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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/fonts/inter-latin-800-normal.woff2) format('woff2');
  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;
}

:root {
  color-scheme: light;
  /* Studio-Farben */
  --green: #23473c;       /* Waldgrün: Aktionen, Jetzt-Karte */
  --green-hi: #2d5a4d;
  --green-press: #1b382f;
  --sage: #e9f1ea;        /* Salbei: aktive Elemente, „Als Nächstes“ */
  --sage-line: #d3e2d6;
  --warm: #f7f6f1;        /* Warmweiß: Fläche */
  /* Flächen */
  --canvas: #f7f6f1;
  --bg: #f7f6f1;
  --surface: #fdfdfb;     /* Karten, Panels, Eingabefelder */
  --elevated: #efeee8;    /* Eingabe-Hintergrund, Chips */
  --card-hover: #f3f6f2;
  --hover: #23473c0d;
  /* Linien */
  --line: #1b26221a;
  --line-strong: #1b26222b;
  --line-faint: #1b262212;
  /* Text */
  --ink: #1b2622;
  --ink-2: #45504b;
  --ink-3: #6b7570;
  --ink-4: #98a09b;
  --mut: var(--ink-3);
  /* Akzent */
  --accent: var(--green);
  --accent-hi: var(--green-hi);
  --accent-press: var(--green-press);
  --accent-fg: #ffffff;
  --accent-dim: #23473c24;
  --accent-line: #23473c8c;
  --accent-bg: var(--sage);
  /* Messing nur noch sehr sparsam (Kategorie Gold) */
  --brass: #b8862b;
  --brass-text: #8a5d12;
  --brass-bg: #b8862b14;
  /* Kategorie-Farben */
  --cat-gold: #9a6a12;
  --cat-silver: #5f6d7a;
  --cat-watch: #2f6b66;
  --cat-coin: #9a5230;
  --cat-tech: #4f55a0;
  --cat-other: #7a746e;
  --serif: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; /* früher Serife; jetzt überall Inter */
  /* Auszeichnungen */
  --gold: #8f6500;
  --gold-bg: #8f650014;
  --live: #923d3b;        /* Live-Status */
  --live-bg: #f6e5e3;
  --warn: #923d3b;
  --warn-bg: #923d3b1a;
  --ok: #23473c;
  --ok-bg: var(--sage);
  /* Form */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px #1b262214, 0 0 0 1px #1b262214;
  --shadow-card: 0 1px 2px #1b26220a, 0 4px 14px -6px #1b262214;
  --shadow-pop: 0 14px 40px -10px #1b26223d, 0 0 0 1px #1b262214;
  --card: var(--surface);
  --soft: var(--elevated);
}

* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink-3); }
b, strong { font-weight: 600; }
h1, h2, h3 { font-weight: 400; line-height: 1.2; text-wrap: balance; margin: 0 0 .35em; letter-spacing: -0.014em; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4.4vw, 38px); letter-spacing: -0.025em; line-height: 1.1; }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.006em; }
h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 .8em; }
.mut { color: var(--ink-3); }
.small { font-size: 12.5px; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tabular { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 max(4vw, 16px); }
[hidden] { display: none !important; }

/* ---------- Knöpfe ---------- */
button, .btn {
  font: inherit; font-size: 14px; font-weight: 600; min-height: 38px; padding: 0 14px; border-radius: 10px;
  border: 0; background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, box-shadow .15s, color .15s;
}
button:hover, .btn:hover { background: var(--card-hover); }
button:active, .btn:active { background: var(--elevated); }
.btn-primary { background: var(--accent); color: var(--accent-fg); box-shadow: none; }
.btn-primary:hover { background: var(--accent-hi); }
.btn-primary:active { background: var(--accent-press); }
.btn-danger { color: var(--warn); }
.btn-danger-fill { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn-danger-fill:hover { filter: brightness(.94); }
.btn-ghost { background: transparent; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { background: var(--hover); }
button:disabled { opacity: .45; cursor: default; }

/* ---------- Eingaben ---------- */
input, select, textarea {
  font: inherit; font-size: 16px; padding: 0 12px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); width: 100%; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:focus, select:focus, textarea:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-dim); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--accent); padding: 0; box-shadow: none; }
input[type=color] { padding: 4px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
/* Container für Felder mit eigenem Wähler (ersetzt <label>) */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }

/* ---------- Flächen ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-card); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }

/* Pillen-Filter */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips button { flex: none; font-size: 12.5px; min-height: 30px; padding: 0 11px; border-radius: 999px; box-shadow: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.chips button[aria-pressed=true] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

/* Segmente (Umschalter) */

/* Kennzeichen */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--elevated); color: var(--ink-2); white-space: nowrap; }
.badge.live { background: var(--live-bg); color: var(--live); }
.badge.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.badge.published, .badge.sold { background: var(--ok-bg); color: var(--ok); }
.badge.withdrawn, .badge.unsold { background: var(--warn-bg); color: var(--warn); }
.dot-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px var(--live-bg); }
@media (prefers-reduced-motion: no-preference) { .dot-live { animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; } @keyframes pulse { 50% { opacity: .45; } } }

/* Marke */
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; letter-spacing: -0.03em; color: var(--green) !important; text-decoration: none; color: var(--ink); }
.brand-mark { width: 22px; height: 22px; flex: none; color: var(--green); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; background: var(--ink); color: var(--canvas);
  padding: 10px 16px; border-radius: var(--radius); max-width: calc(100vw - 28px); box-shadow: var(--shadow-pop); font-size: 13.5px; }
.toast.err { background: var(--warn); color: #fff; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Datums- und Zeitwähler (js/datepicker.js) ---------- */
.dp { position: relative; }
.dp-field { width: 100%; height: 44px; justify-content: flex-start; gap: 10px; padding: 0 12px; font-size: 15px; font-weight: 400; border-radius: var(--radius);
  box-shadow: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.dp-field svg { color: var(--ink-3); flex: none; }
.dp-field { min-width: 0; overflow: hidden; }
.dp-field span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-field:hover { background: var(--surface); border-color: var(--ink-4); }
.dp-field[aria-expanded=true] { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-dim); }
.dp-ph { color: var(--ink-4); }
.dp-pop { position: fixed; z-index: 30; top: 0; left: 0; width: 300px; max-width: calc(100vw - 32px); background: var(--surface);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: 14px; display: grid; gap: 12px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; }
.dp-title { font-size: 14px; font-weight: 500; }
.dp-nav { min-height: 30px; min-width: 30px; padding: 0; box-shadow: none; background: transparent; color: var(--ink-2); font-size: 18px; border-radius: 6px; }
.dp-nav:hover { background: var(--hover); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { font-size: 10.5px; font-weight: 500; letter-spacing: .06em; color: var(--ink-4); text-align: center; padding: 2px 0 6px; text-transform: uppercase; }
.dp-day { min-height: 34px; padding: 0; box-shadow: none; background: transparent; font-weight: 400; font-size: 13px; color: var(--ink); border-radius: 6px; font-variant-numeric: tabular-nums; }
.dp-day:hover { background: var(--hover); }
.dp-day.out { color: var(--ink-4); }
.dp-day.today { box-shadow: inset 0 0 0 1px var(--line-strong); }
.dp-day.sel, .dp-day.sel:hover { background: var(--accent); color: var(--accent-fg); box-shadow: none; font-weight: 500; }
.dp-time { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-faint); }
.dp-quick { display: flex; gap: 4px; flex-wrap: wrap; }
.dp-quick button { min-height: 28px; padding: 0 9px; font-size: 12.5px; font-weight: 400; border-radius: 999px; box-shadow: none; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.dp-quick button[aria-pressed=true] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.dp-hm { display: flex; align-items: center; gap: 6px; }
.dp-hm select { width: 68px; height: 34px; font-size: 14px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.dp-foot { display: flex; align-items: center; gap: 6px; }
.dp-foot .btn-primary { margin-left: auto; min-height: 32px; }
.dp-foot .btn-ghost { min-height: 32px; padding: 0 8px; font-size: 12.5px; }
dialog .dp-pop { box-shadow: 0 0 0 1px var(--line), var(--shadow-pop); }

/* ---------- Akzente ---------- */
/* Kategorie-Punkt: <span class="cat-dot" style="--c: var(--cat-gold)"></span> */
.cat-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--cat-other)); flex: none; }
.cat-text { color: var(--c, var(--ink-3)); }
.eyebrow.brass { color: var(--green); }
