/* ==========================================================================
   Praxis-Pinnwand – Admin-Oberfläche (UX-Mockup)
   Gemeinsames Stylesheet aller Screens. Mobile first (390 px), Desktop ab 1024 px.
   Schrift: Source Sans 3 (UI, ungestrichene Null für Daten/Telefonnummern) + Source Serif 4 (Überschriften),
   geladen per <link> aus cdn.jsdelivr.net/npm/@fontsource/… in jeder Datei.
   ========================================================================== */

:root {
  /* Praxis-CI */
  --red: #AD2221;          /* Baden-Rot – Hauptaktionen (Weiß darauf 6.9:1) */
  --red-dark: #8A1A1A;     /* Hover, roter Text auf Hell */
  --red-tint: #FBECEB;
  --red-tint-2: #FFF7F6;
  --yellow: #FFE28B;       /* Hellgelb – Hinweise */
  --yellow-tint: #FFF4D1;
  --yellow-line: #EBCB6E;
  --yellow-ink: #4D3A00;   /* Text auf Hellgelb 8.6:1 */
  --gold: #FFD220;         /* Fokus-Halo */
  --salmon-tint: #F7E4DE;
  --salmon-ink: #7C2E1F;

  /* Neutrale, warm */
  --bg: #FBF8F3;           /* warmes Off-White */
  --surface: #FFFFFF;
  --surface-2: #F6F1E9;
  --surface-3: #EFE8DD;
  --ink: #2B2522;          /* Fließtext 14:1 */
  --ink-2: #5C5552;        /* Sekundärtext 6.9:1 */
  --ink-3: #6B625C;
  --line: #E6DDD1;
  --line-2: #D3C7B8;
  --field: #8A7F75;        /* Feldrahmen 3.9:1 (Nicht-Text-Kontrast ≥ 3:1) */

  /* Status & Typen */
  --green: #1E6B3E;
  --green-tint: #E3F1E8;
  --blue: #24506B;
  --blue-tint: #E1ECF2;
  --grey-tint: #EFEAE3;
  --grey-ink: #4A4542;

  --radius: 18px;          /* R2: keine scharfen Ecken – Felder/Optionen 14–20 px */
  --radius-lg: 24px;       /* Karten 24 px */
  --pill: 999px;           /* Buttons, Chips, Segmente pillenförmig */
  --shadow-1: 0 1px 2px rgba(43, 37, 34, .06), 0 3px 10px rgba(43, 37, 34, .05);
  --shadow-2: 0 -4px 16px rgba(43, 37, 34, .10);
  --font: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  font: 400 1.1875rem/1.55 var(--font);   /* 18 px Basis */
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--red-dark); text-underline-offset: .18em; text-decoration-thickness: 2px; }
p { margin: 0 0 12px; }
strong { font-weight: 700; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 20px; height: 20px; }
.icon-lg { width: 32px; height: 32px; }

/* Fokus: dunkler Ring + goldener Halo – sichtbar auf Weiß, Gelb und Rot */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--gold);
}

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus-visible { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------------
   Kopfzeilen
   -------------------------------------------------------------------------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 68px; padding: 8px 12px 8px 16px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 48px; color: inherit; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.3125rem; color: var(--ink); white-space: nowrap; }
.brand-sub { font-size: 1rem; color: var(--ink-2); }

.avatar-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 6px 4px 12px;
  border-radius: 999px; border: 2px solid var(--line-2); background: var(--surface);
  color: var(--ink); font-weight: 700; font-size: 1.0625rem; text-decoration: none;
}
.avatar {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--salmon-tint); color: var(--salmon-ink); font-weight: 700; font-size: 1rem;
}

/* Formular-Kopf: Zurück / Abbrechen + Schrittanzeige */
.formbar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; padding: 8px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.navbtn {
  display: inline-flex; align-items: center; gap: 4px; min-height: 48px; min-width: 48px; padding: 0 12px;
  border-radius: var(--pill); color: var(--ink); font-weight: 700; text-decoration: none; font-size: 1.0625rem;
}
.navbtn:hover { background: var(--surface-2); }
.navbtn.cancel { color: var(--ink-2); }

.stepper { margin: 0 0 14px; }
.stepper-label { font-size: 1.0625rem; font-weight: 700; color: var(--ink-2); margin: 0 0 8px; }
.stepper-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stepper-bar span { height: 6px; border-radius: 3px; background: var(--line-2); }
.stepper-bar .on { background: var(--red); }

/* --------------------------------------------------------------------------
   Seitenrahmen & Typografie
   -------------------------------------------------------------------------- */
.page { width: 100%; max-width: 640px; margin: 0 auto; padding: 20px 16px 40px; }
.page.with-actionbar { padding-bottom: 172px; }

h1, .h1 {
  font-family: var(--serif); font-weight: 600; font-size: 1.875rem; line-height: 1.18;
  letter-spacing: -.005em; margin: 0 0 10px; color: var(--ink);
}
h2, .h2 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; margin: 30px 0 12px; }
h3 { font-size: 1.1875rem; margin: 0 0 6px; }
.lead { color: var(--ink-2); margin: 0 0 22px; }
.muted { color: var(--ink-2); }
.small { font-size: 1.0625rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 12px; }
.section-head h2 { margin: 0; }
.count {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; margin-left: 6px;
  border-radius: 999px; background: var(--surface-3); font-size: 1rem; font-weight: 700; color: var(--ink);
  vertical-align: 2px;
}

/* --------------------------------------------------------------------------
   Buttons (Tap-Ziel ≥ 48 px, Hauptaktion 56–60 px)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: var(--pill);
  border: 2px solid transparent; font: 700 1.1875rem/1.2 var(--font);
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--red); color: #fff; min-height: 58px; }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: var(--surface); color: var(--red-dark); border-color: var(--red); }
.btn-secondary:hover { background: var(--red-tint-2); }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--field); background: var(--surface-2); }
.btn-text { background: transparent; color: var(--red-dark); padding-inline: 10px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.btn-block { width: 100%; }
.btn-lg { min-height: 62px; font-size: 1.1875rem; border-radius: var(--pill); }
.btn-sm { min-height: 48px; padding: 8px 14px; font-size: 1.0625rem; }
.btn .icon { width: 24px; height: 24px; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Karten, Chips, Status
   -------------------------------------------------------------------------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-1);
}
.card + .card { margin-top: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 9px;
  border-radius: 999px; font-size: 1rem; font-weight: 700; line-height: 1.35; white-space: nowrap;
}
.chip .icon { width: 18px; height: 18px; }
.chip-urlaub   { background: var(--salmon-tint); color: var(--salmon-ink); }
.chip-info     { background: var(--grey-tint); color: var(--grey-ink); }
.chip-wichtig  { background: var(--yellow); color: var(--yellow-ink); }
.chip-dringend { background: var(--red); color: #fff; }
.chip-ausnahme { background: var(--blue-tint); color: var(--blue); }
.chip-plain    { background: var(--surface-2); color: var(--ink-2); }
.chip-new      { background: var(--ink); color: #fff; padding: 2px 10px; }

.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 1rem; white-space: nowrap; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.status-online { color: var(--green); }
.status-online::before { box-shadow: 0 0 0 4px var(--green-tint); }
.status-geplant { color: var(--blue); }
.status-geplant::before { background: transparent; border: 2px solid currentColor; }
.status-ende { color: var(--ink-3); }

/* Eintrags-Karte (Übersicht) */
.entry-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.entry-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.entry-title { font-size: 1.3125rem; line-height: 1.28; font-weight: 700; margin: 12px 0 8px; }
.meta { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; color: var(--ink-2); }
.meta li { display: flex; gap: 10px; align-items: flex-start; }
.meta .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--ink-3); }
.changed { display: flex; align-items: center; gap: 8px; font-size: 1.0625rem; color: var(--ink-2); margin: 0 0 12px; }
.changed .icon { width: 18px; height: 18px; }
.entry-actions { display: flex; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.entry-actions .btn { flex: 1; }

/* „Mehr“-Menü ohne JavaScript */
.menu { position: relative; flex: 1; }
.menu > summary { list-style: none; width: 100%; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list {
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 10; min-width: 250px;
  list-style: none; margin: 0; padding: 6px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(43,37,34,.18);
}
.menu-list a {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px;
  border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 700;
}
.menu-list a:hover { background: var(--surface-2); }

/* Kompakte Zeilen (Abgelaufen, Protokoll, Menü) */
.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.rows > li + li { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px; }
.row-main { flex: 1; min-width: 0; }
.row-title { display: block; font-weight: 700; line-height: 1.35; }
.row-sub { display: block; font-size: 1.0625rem; color: var(--ink-2); line-height: 1.4; }
.row-stack { flex-wrap: wrap; }
.row-stack .row-main { flex: 1 1 calc(100% - 56px); }
.row-stack > .btn { margin-left: 52px; }
@media (min-width: 1024px) {
  .row-stack { flex-wrap: nowrap; }
  .row-stack .row-main { flex: 1 1 auto; }
  .row-stack > .btn { margin-left: 0; }
}
.row .icon-tile { width: 40px; height: 40px; }
a.row { color: inherit; text-decoration: none; }
a.row:hover { background: var(--surface-2); }
.row .chev { color: var(--ink-3); }

.icon-tile {
  display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 18px;
}
.icon-tile.t-urlaub   { background: var(--salmon-tint); color: var(--salmon-ink); }
.icon-tile.t-hinweis  { background: var(--yellow); color: var(--yellow-ink); }
.icon-tile.t-ausnahme { background: var(--blue-tint); color: var(--blue); }
.icon-tile.t-plain    { background: var(--surface-2); color: var(--ink-2); }
.icon-tile.t-green    { background: var(--green-tint); color: var(--green); }

/* Hinweis-Boxen innerhalb der Oberfläche */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); font-size: 1.0625rem; }
.note .icon { margin-top: 2px; }
.note p:last-child { margin: 0; }
.note-yellow { background: var(--yellow-tint); border: 1px solid var(--yellow-line); color: var(--ink); }
.note-green  { background: var(--green-tint); color: var(--ink); }
.note-green .icon { color: var(--green); }
.note-blue   { background: var(--blue-tint); color: var(--ink); }
.note-blue .icon { color: var(--blue); }

/* --------------------------------------------------------------------------
   Formulare – Labels immer über dem Feld
   -------------------------------------------------------------------------- */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.field { margin: 0 0 24px; }
.label, legend.label { display: block; font-weight: 700; font-size: 1.1875rem; line-height: 1.35; margin: 0 0 6px; }
.label .opt { font-weight: 400; color: var(--ink-2); }
.hint { display: block; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.45; margin: 0 0 10px; }
.hint-after { display: block; color: var(--ink-2); font-size: 1.0625rem; margin: 8px 0 0; }

.input {
  display: block; width: 100%; min-height: 56px; padding: 12px 14px;
  font: 400 1.1875rem/1.3 var(--font); color: var(--ink);
  background: var(--surface); border: 2px solid var(--field); border-radius: 16px;
  -webkit-appearance: none; appearance: none;
}
select.input {
  padding-right: 48px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2522' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 22px no-repeat;
}
.input:disabled { background: var(--surface-2); border-color: var(--line-2); color: var(--ink-2); }
.input[type="date"], .input[type="time"] { appearance: auto; -webkit-appearance: auto; font-variant-numeric: tabular-nums; }
.input:focus-visible { border-color: var(--ink); }
textarea.input { min-height: 116px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--ink-3); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.grid-2 > * { min-width: 0; }
.grid-2 .input { min-width: 0; padding-inline: 10px 8px; }
.with-btn { position: relative; }
.with-btn .input { padding-right: 116px; }
.with-btn .inbtn {
  position: absolute; right: 4px; top: 4px; bottom: 4px; min-width: 100px; border: 0; border-radius: 12px;
  background: var(--surface-2); color: var(--ink); font: 700 1.0625rem var(--font); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.code-input { font-size: 1.75rem; letter-spacing: .32em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.counter { display: block; text-align: right; font-size: 1.0625rem; color: var(--ink-2); margin-top: 6px; }

/* Fehlermeldungen in Klartext */
.has-error .input, .has-error .editor { border-color: var(--red); box-shadow: inset 4px 0 0 var(--red); }
.error-msg { display: flex; gap: 8px; align-items: flex-start; color: var(--red-dark); font-weight: 700; font-size: 1.0625rem; margin: 0 0 8px; }
.error-msg .icon { width: 22px; height: 22px; margin-top: 1px; }
.error-summary { border: 3px solid var(--red); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); margin: 0 0 22px; }
.error-summary h2 { margin: 0 0 6px; font-size: 1.1875rem; }
.error-summary ul { margin: 0; padding-left: 20px; }

/* Checkbox & Radio – groß, Rahmen 3.9:1 */
.check, .radio {
  -webkit-appearance: none; appearance: none; flex: none; margin: 0;
  width: 30px; height: 30px; border: 2px solid var(--field); background: var(--surface);
  display: inline-grid; place-content: center; cursor: pointer;
}
.check { border-radius: 8px; }
.check:checked {
  border-color: var(--red);
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.radio { border-radius: 50%; }
.radio:checked { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 6px var(--surface); }

.option {
  display: flex; align-items: flex-start; gap: 14px; padding: 15px 16px; min-height: 64px;
  background: var(--surface); border: 2px solid var(--line-2); border-radius: var(--radius); cursor: pointer;
}
.option + .option { margin-top: 10px; }
.option:has(input:checked) { border-color: var(--red); background: var(--red-tint-2); }
.option:hover { border-color: var(--field); }
.option:has(input:checked):hover { border-color: var(--red); }
.option .check, .option .radio { margin-top: 1px; }
.option-body { flex: 1; min-width: 0; }
.option-title { display: flex; align-items: center; gap: 8px; font-weight: 700; line-height: 1.35; }
.option-desc { display: block; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.45; margin-top: 2px; }
.option-extra { display: none; margin-top: 12px; }
.option:has(input:checked) .option-extra { display: block; }
.swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; border: 1px solid rgba(0,0,0,.15); }

.check-row { display: flex; align-items: flex-start; gap: 14px; min-height: 48px; padding: 6px 0; cursor: pointer; }
.check-row .check { margin-top: 0; }
.check-row span { padding-top: 2px; }

/* Schalter (role="switch") – Knopf per Hintergrund, funktioniert in allen Browsern */
.switch {
  -webkit-appearance: none; appearance: none; flex: none; margin: 0; cursor: pointer;
  width: 64px; height: 36px; border-radius: 999px; border: 2px solid var(--field);
  background: radial-gradient(circle at 16px 50%, var(--field) 11px, transparent 12px) var(--surface);
}
.switch:checked {
  border-color: var(--red);
  background: radial-gradient(circle at calc(100% - 16px) 50%, #fff 11px, transparent 12px) var(--red);
}
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; min-height: 72px; background: var(--surface); border: 2px solid var(--line-2);
  border-radius: var(--radius); cursor: pointer;
}
.switch-row:has(.switch:checked) { border-color: var(--red); background: var(--red-tint-2); }
.switch-text { display: flex; gap: 12px; align-items: flex-start; }
.switch-text .icon { margin-top: 2px; color: var(--ink-2); }

/* Vertretungspraxis-Zeile */
.practice { align-items: center; }
.practice-name { font-weight: 700; line-height: 1.3; }
.practice-sub { display: block; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.45; }
.practice-tel { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Berechnete Angaben („Wieder für Sie da am …“) */
.computed { background: var(--surface); border: 2px solid var(--line-2); border-radius: var(--radius); padding: 14px 16px; }
.computed-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.computed-label { display: block; font-weight: 700; }
.computed-value { display: block; font-size: 1.375rem; font-weight: 700; color: var(--ink); line-height: 1.3; margin: 2px 0 2px; }
.computed .auto { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; font-size: 1.0625rem; }
.computed .auto .icon { width: 18px; height: 18px; }
.inline-edit > summary { list-style: none; }
.inline-edit > summary::-webkit-details-marker { display: none; }
.inline-edit[open] > summary { display: none; }
.inline-edit .edit-body { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

.calc-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px;
  border-radius: 999px; background: var(--surface-3); font-weight: 700; font-size: 1.0625rem;
}

/* Kleiner Editor: Fett · Link · Liste */
.editor { border: 2px solid var(--field); border-radius: 18px; background: var(--surface); overflow: hidden; }
.editor:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--gold); }
.toolbar { display: flex; gap: 6px; padding: 6px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tool {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; min-width: 48px; padding: 0 12px;
  border: 2px solid transparent; border-radius: 14px; background: transparent; color: var(--ink);
  font: 700 1.0625rem var(--font); cursor: pointer;
}
.tool:hover { background: var(--surface); }
.tool[aria-pressed="true"] { background: var(--surface); border-color: var(--ink); }
.editor-body { padding: 14px 16px; min-height: 170px; line-height: 1.55; }
.editor-body:focus { outline: none; }
.editor-body ul { margin: 6px 0 10px; padding-left: 24px; }
.editor-body li { margin: 2px 0; }
.editor-body p { margin: 0 0 8px; }

/* Segment-Umschalter */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: var(--pill); margin: 0 0 16px; }
.seg a, .seg span.seg-item {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  border-radius: var(--pill); color: var(--ink); text-decoration: none; font-weight: 700;
}
.seg .is-on { background: var(--surface); box-shadow: 0 1px 3px rgba(43,37,34,.18); }

/* Quick-Pick-Buttons (z. B. Grund) */
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pick {
  min-height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line-2);
  background: var(--surface); font: 700 1.0625rem var(--font); color: var(--ink); cursor: pointer;
}
.pick[aria-pressed="true"] { border-color: var(--red); background: var(--red-tint-2); color: var(--red-dark); }

/* Zusammenfassung */
.summary { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.summary > div { padding: 10px 8px 10px 16px; }
.summary > div + div { border-top: 1px solid var(--line); }
.summary dt { font-size: 1.0625rem; color: var(--ink-2); }
.summary dd { margin: 0; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.summary .edit { flex: none; font-weight: 700; }

/* Fixierte Aktionsleiste unten */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-bottom: 0; box-shadow: var(--shadow-2);
  border-radius: 28px 28px 0 0;
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
}
.actionbar-inner { max-width: 608px; margin: 0 auto; display: grid; gap: 6px; }
.autosave { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 1.0625rem; color: var(--ink-2); margin: 0; }
.autosave .icon { width: 18px; height: 18px; color: var(--green); }

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */
.auth { max-width: 460px; margin: 0 auto; padding: 28px 16px 40px; }
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand img { height: 76px; width: auto; margin: 0 auto 12px; }
.auth-brand .name { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.auth-brand .sub { color: var(--ink-2); margin-top: 4px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--ink-2); font-size: 1.0625rem; font-weight: 700; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.helper-row { display: flex; justify-content: flex-end; margin: -12px 0 14px; }
.badge-circle { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; margin: 6px auto 16px; }

/* --------------------------------------------------------------------------
   Übersicht
   -------------------------------------------------------------------------- */
.greet-date { color: var(--ink-2); margin: 0 0 18px; }
.livecard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-1); margin-bottom: 16px; }
.livecard-label { font-size: 1.0625rem; font-weight: 700; color: var(--ink-2); margin: 0 0 10px; text-transform: none; }
.live-today {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px;
  background: var(--green-tint); color: var(--green); font-weight: 700; font-size: 1.1875rem; line-height: 1.3;
}
.live-today::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 4px rgba(30,107,62,.18); }
.live-closed { background: var(--red-tint); color: var(--red-dark); }
.live-closed::before { background: var(--red); box-shadow: 0 0 0 4px rgba(173,34,33,.18); }
.live-list { list-style: none; margin: 12px 0 12px; padding: 0; display: grid; gap: 6px; }
.live-list li { display: flex; align-items: center; gap: 10px; }
.live-foot { display: flex; gap: 10px; flex-wrap: wrap; }

.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 700; width: 38%; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

.dash-side { margin-top: 28px; }
.dash-side .card + .card, .dash-side > * + * { margin-top: 16px; }
.dash-sidebar { display: none; }
.only-desktop { display: none; }

@media (min-width: 1024px) {
  .dash { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 100vh; }
  .dash > .topbar { display: none; }
  .dash-sidebar {   /* schwebendes, abgerundetes Panel statt randloser Leiste */
    display: flex; flex-direction: column; gap: 6px; position: sticky; top: 12px; height: calc(100vh - 24px);
    margin: 12px 0 12px 12px; background: var(--surface); border: 1px solid var(--line);
    border-radius: 28px; box-shadow: var(--shadow-1); padding: 20px 14px;
  }
  .dash-sidebar .brand { margin: 0 4px 22px; }
  .side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .side-nav a {
    display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: var(--pill);
    color: var(--ink); text-decoration: none; font-weight: 700;
  }
  .side-nav a:hover { background: var(--surface-2); }
  .side-nav a[aria-current="page"] { background: var(--red-tint); color: var(--red-dark); }
  .side-nav .icon { color: currentColor; }
  .side-nav .lock { margin-left: auto; width: 18px; height: 18px; color: var(--ink-3); }
  .side-user { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
  .side-user .who { display: flex; align-items: center; gap: 12px; }
  .dash-main { padding: 28px 40px 48px; max-width: 1180px; width: 100%; }
  .dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
  .dash-head .greet-date { margin: 0; }
  .dash-new-mobile { display: none !important; }
  .only-desktop { display: inline-flex; }
  .dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
  .dash-side { margin-top: 0; }
  .dash-grid .section-head:first-child, .dash-side > .livecard:first-child { margin-top: 0; }
  .mobile-menu { display: none; }
}

/* --------------------------------------------------------------------------
   Auswahl „Was möchten Sie mitteilen?“
   -------------------------------------------------------------------------- */
.choice {
  display: flex; align-items: center; gap: 16px; min-height: 104px; padding: 16px;
  background: var(--surface); border: 2px solid var(--line-2); border-radius: var(--radius-lg);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1);
}
.choice + .choice { margin-top: 12px; }
.choice:hover { border-color: var(--red); background: var(--red-tint-2); }
.choice-title { display: block; font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.choice-desc { display: block; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.4; margin-top: 4px; }
.choice .chev { margin-left: auto; color: var(--red); }

/* --------------------------------------------------------------------------
   Erfolg
   -------------------------------------------------------------------------- */
.success-hero { text-align: center; padding: 18px 0 8px; }
.success-mark { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 0 0 10px var(--green-tint); }
.success-mark .icon { width: 52px; height: 52px; stroke-width: 3; }

/* --------------------------------------------------------------------------
   Vorschau der Website (vereinfachte Nachbildung der künftigen Startseite)
   -------------------------------------------------------------------------- */
.pv-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.pv-desktop { display: none; }
body:has(#computer:target) .pv-mobile { display: none; }
body:has(#computer:target) .pv-desktop { display: block; }
body:has(#computer:target) .seg a[href="#computer"] { background: var(--surface); box-shadow: 0 1px 3px rgba(43,37,34,.18); }
body:has(#computer:target) .seg a[href="#handy"] { background: transparent; box-shadow: none; }
.pv-caption { font-size: 1.0625rem; color: var(--ink-2); margin: 10px 0 0; }

.device {
  width: 100%; max-width: 360px; margin: 0 auto; border: 6px solid #2B2522; border-radius: 32px;
  background: #fff; overflow: hidden; box-shadow: 0 10px 30px rgba(43,37,34,.18);
}
.device-screen { position: relative; max-height: 730px; overflow: hidden; }
.device-screen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, #fff); }
.browser { border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(43,37,34,.14); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; background: var(--surface-3); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.browser-bar b { margin-left: 8px; flex: 1; height: 16px; border-radius: 6px; background: #fff; font: 400 10px/16px var(--font); color: var(--ink-2); padding-left: 8px; }

/* Website-Bausteine (Maße in Website-Pixeln, per zoom verkleinert) */
.site { font-family: var(--font); color: #2B2522; background: #FBF8F3; line-height: 1.5; }
.site-m { width: 390px; zoom: .885; }
.site-d { width: 1280px; zoom: .262; }
.s-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: #fff; border-bottom: 1px solid #E6DDD1; }
.s-brand { display: flex; align-items: center; gap: 10px; }
.s-brand img { height: 40px; width: auto; }
.s-brand b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.1; }
.s-brand small { display: block; font-size: 13px; color: #5C5552; }
.s-call { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #AD2221; color: #fff; }
.s-status { margin: 14px 16px 12px; padding: 12px 16px; border-radius: 18px; background: #E3F1E8; }
.s-status b { display: flex; align-items: center; gap: 8px; color: #1E6B3E; font-size: 18px; }
.s-status b::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: #1E6B3E; }
.s-status span { display: block; font-size: 16px; color: #2B2522; margin-top: 2px; }
.s-card { margin: 0 16px 12px; border-radius: 24px; background: #FFF4D1; border: 1px solid #EBCB6E; padding: 16px; position: relative; overflow: hidden; }
.s-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: #AD2221; }
.s-kicker { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8A1A1A; }
.s-kicker .icon { width: 20px; height: 20px; }
.s-card h3 { font-size: 23px; line-height: 1.25; margin: 6px 0 6px; }
.s-card p { font-size: 17px; margin: 0 0 10px; }
.s-reps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.s-reps li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 10px 10px 12px; }
.s-reps .r { flex: 1; min-width: 0; }
.s-reps b { display: block; font-size: 16px; line-height: 1.3; }
.s-reps small { display: block; font-size: 14.5px; color: #5C5552; line-height: 1.35; }
.s-tel { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 999px; border: 2px solid #AD2221; color: #8A1A1A; font-weight: 700; font-size: 15px; white-space: nowrap; }
.s-tel .icon { width: 18px; height: 18px; }
.s-card.s-wichtig { background: #FFE28B; border-color: #E2BF55; }
.s-card.s-wichtig::before { background: #4D3A00; }
.s-card.s-wichtig .s-kicker { color: #4D3A00; }
.s-more { font-weight: 700; color: #4D3A00; font-size: 16px; text-decoration: underline; }
.s-ghost { margin: 6px 16px; height: 16px; border-radius: 8px; background: #EFE8DD; }

.sd-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 64px; background: #fff; border-bottom: 1px solid #E6DDD1; }
.sd-nav { display: flex; gap: 34px; font-weight: 700; font-size: 18px; }
.sd-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; padding: 48px 64px 56px; }
.sd-hero h2 { font-family: var(--serif); font-size: 52px; line-height: 1.1; margin: 0 0 18px; font-weight: 600; }
.sd-hero .s-status { margin: 0 0 22px; }
.sd-btns { display: flex; gap: 14px; }
.sd-btns span { display: inline-flex; align-items: center; height: 58px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 19px; background: #AD2221; color: #fff; }
.sd-btns span + span { background: #fff; color: #8A1A1A; border: 2px solid #AD2221; }
.sd-hero .s-card { margin: 0 0 14px; }
.sd-hero .s-reps { grid-template-columns: 1fr 1fr; }
.sd-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0 64px 56px; }
.sd-row div { height: 150px; border-radius: 28px; background: #EFE8DD; }

/* ==========================================================================
   Website-Planer (planer.html) · Check hervorheben (check.html) · Stellenanzeige (stelle.html)
   Ziel der Chips „✎ … planen“ aus der Bearbeitungsansicht der Website.
   ========================================================================== */

/* Hub-Tabs Pinnwand | Website-Planer – mobil oben; am Computer übernimmt die Seitenleiste */
.hub-tabs { margin: 0 0 20px; }
.hub-tabs a { min-height: 52px; font-size: 1.125rem; }
.hub-tabs .icon { width: 22px; height: 22px; }
@media (min-width: 1024px) { .hub-tabs { display: none; } }

/* Zeitleiste „Was steht wann auf der Website?“
   Achse: 19.10.2026 bis 17.01.2027 = 91 Tage → 1 Tag = 1,0989 %.
   Monatsgrenzen: 01.11. = 14,29 % · 01.12. = 47,25 % · 01.01. = 81,32 % · heute (23.10., mittags) = 4,9 % */
.tl-card { padding: 18px 16px 16px; }
.tl-card h2 { margin: 0 0 2px; font-size: 1.3125rem; }
.tl-range { margin: 0 0 14px; color: var(--ink-2); font-size: 1.0625rem; }
.tl { --today: 4.9%; --m1: 14.29%; --m2: 47.25%; --m3: 81.32%; }
.tl-axis { position: relative; height: 62px; }
.tl-flag {
  position: absolute; top: 0; left: calc(var(--today) - 2px); z-index: 1;
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--red-dark); color: #fff; font-weight: 700; font-size: 1rem; white-space: nowrap;
}
.tl-flag::after {   /* Zeiger von der Fahne zur ersten Leiste */
  content: ""; position: absolute; left: 0; top: 24px; width: 3px; height: 40px; border-radius: 2px; background: var(--red-dark);
}
.tl-m {
  position: absolute; bottom: 2px; padding-left: 9px; font-size: 1rem; font-weight: 700; color: var(--ink-2); white-space: nowrap;
}
.tl-m::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 2px; background: var(--line-2); }
.tl-rows { list-style: none; margin: 0; padding: 0; }
.tl-rows > li + li { border-top: 1px solid var(--line); }
.tl-row {
  display: grid; gap: 3px; padding: 10px 6px 12px; margin: 0 -6px; min-height: 56px;
  color: inherit; text-decoration: none; border-radius: 18px;
}
.tl-row:hover { background: var(--surface-2); }
.tl-row:hover .tl-title span:last-child { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.tl-title { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.tl-chev { flex: none; margin-left: auto; align-self: center; width: 22px; height: 22px; color: var(--ink-3); }
.tl-row:hover .tl-chev { color: var(--red); }
.tl-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c); transform: translateY(1px); }
.tl-when { display: block; padding-left: 22px; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.4; }
.tl-when .status { font-size: 1.0625rem; }
.tl-when .status::before { display: none; }
.tl-warn { display: inline-flex; align-items: center; gap: 4px; color: var(--yellow-ink); background: var(--yellow); border-radius: 999px; padding: 0 10px; font-weight: 700; font-size: 1rem; white-space: nowrap; }
.tl-warn .icon { width: 16px; height: 16px; }
.tl-track {
  position: relative; height: 18px; margin-top: 6px; border-radius: 999px;
  background: linear-gradient(90deg,
    var(--surface-3) 0 calc(var(--m1) - 1.5px), var(--surface) 0 calc(var(--m1) + 1.5px),
    var(--surface-2) 0 calc(var(--m2) - 1.5px), var(--surface) 0 calc(var(--m2) + 1.5px),
    var(--surface-3) 0 calc(var(--m3) - 1.5px), var(--surface) 0 calc(var(--m3) + 1.5px),
    var(--surface-2) 0);
}
.tl-track::after {   /* Heute-Markierung in jeder Leiste */
  content: ""; position: absolute; z-index: 2; left: var(--today); top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px;
  border-radius: 2px; background: var(--red-dark); box-shadow: 0 0 0 2px var(--surface);
}
.tl-bar {
  position: absolute; top: 0; bottom: 0; left: calc(var(--s) * 1%); width: calc(var(--w) * 1%); min-width: 18px;
  border-radius: 999px; background: var(--c-light); box-shadow: inset 0 0 0 1.5px var(--c-edge, rgba(43,37,34,.14));
}
.tl-bar.solid { background: var(--c); }
.tl-bar i { position: absolute; top: 0; bottom: 0; left: calc(var(--o) * 1%); width: calc(var(--sw) * 1%); border-radius: 999px; background: var(--c); }
.tl-bar.from-before { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34px); mask-image: linear-gradient(90deg, transparent 0, #000 34px); }
.tl-bar.open-end { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 46px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 46px), transparent 100%); }
/* Farben je Art – dieselben wie Chips und Symbol-Kacheln */
.c-zu     { --c: var(--red);  --c-light: #F2C6C1; }
.c-hinweis{ --c: #E5B21C;     --c-light: #F9E7AE; --c-edge: rgba(77,58,0,.42); }
.c-check  { --c: var(--green); --c-light: #BFDFCA; }
.c-stelle { --c: var(--blue); --c-light: #C3D6E2; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 1rem; }
.tl-legend span { display: inline-flex; align-items: center; gap: 8px; }
.tl-legend i { display: inline-block; width: 30px; height: 12px; border-radius: 999px; }
.tl-legend .lg-light { background: #E3D9CC; }
.tl-legend .lg-solid { background: var(--ink-2); }
.tl-legend .lg-today { width: 3px; height: 20px; border-radius: 2px; background: var(--red-dark); }
.tl-foot { display: grid; gap: 10px; margin-top: 16px; }

@media (min-width: 1024px) {
  .tl-card { padding: 24px 28px 22px; }
  .tl-axis { margin-left: calc(340px + 28px); }
  .tl-row { grid-template-columns: 340px minmax(0, 1fr); column-gap: 28px; align-items: center; padding: 10px 10px; margin: 0 -10px; }
  .tl-row > .tl-label { grid-row: 1; }
  .tl-track { margin-top: 0; }
  .tl-foot { display: flex; justify-content: flex-end; }
}

/* Planer-Kopf am Computer */
.planner-head-actions { display: none; }
@media (min-width: 1024px) {
  .planner-head-actions { display: flex; gap: 10px; flex: none; }
  .planner-head-actions .btn { white-space: nowrap; }
  .tl-foot { display: none; }
}

/* Bereiche: Sprungmarken + Karten mit Anker (#aushang, #sprechzeiten, #checks, #stellen, #team) */
.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; }
.jump a {
  display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--surface); border: 2px solid var(--line-2); color: var(--ink); font-weight: 700; font-size: 1.0625rem; text-decoration: none;
}
.jump a:hover { border-color: var(--red); background: var(--red-tint-2); }
.jump .tl-dot { transform: none; }

.areas > .area + .area { margin-top: 18px; }
.area { scroll-margin-top: 16px; padding: 18px 16px 18px; }
.area:target { border-color: var(--ink); box-shadow: 0 0 0 5px var(--gold), var(--shadow-1); }
.area-head { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 14px; }
.area-head h3 { margin: 2px 0 2px; font-size: 1.375rem; line-height: 1.25; }
.area-sub { margin: 0; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.45; }
.area-status { margin: 0 0 16px; padding: 12px 16px; border-radius: 20px; background: var(--surface-2); display: grid; gap: 12px; }
.area-status dt { margin: 0 0 3px; }
.area-status dd { margin: 0; }
.area-status ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.area-status li { position: relative; padding-left: 16px; line-height: 1.4; }
.area-status li::before { content: ""; position: absolute; left: 1px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.area-status li .tl-warn { margin: 4px 0 0; }
.area-actions { display: grid; gap: 10px; }
.area-more { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; margin-top: 6px; font-weight: 700; }
.icon-tile.t-blue { background: var(--blue-tint); color: var(--blue); }
.planner-tile { margin-top: 12px; }
@media (min-width: 1024px) {
  .areas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .areas > .area + .area { margin-top: 0; }
  .area { padding: 22px 24px; }
  .area-wide { grid-column: 1 / -1; }
  .area-actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .area-actions .btn { width: auto; white-space: nowrap; padding-inline: 18px; }
  .job-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .job-layout .job { margin-bottom: 0; }
  .job-side .area-actions { display: grid; }
  .job-side .area-actions .btn { width: 100%; }
}

/* Gesundheits-Checks */
.chks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.chk { border: 2px solid var(--line-2); border-radius: 22px; padding: 14px 16px 16px; background: var(--surface); }
.chk:has(.switch:checked) { border-color: var(--red); background: var(--red-tint-2); }
.chk-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.chk-title { margin: 0; font-size: 1.1875rem; line-height: 1.3; font-weight: 700; }
.chk-desc { display: block; margin-top: 2px; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.4; font-weight: 400; }
.chk-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); cursor: pointer; font-weight: 700; line-height: 1.3;
}
.chk-extra { display: none; margin-top: 4px; }
.chk:has(.switch:checked) .chk-extra { display: block; }
.chk-off-note { display: block; margin-top: 2px; color: var(--ink-2); font-size: 1.0625rem; font-weight: 400; }
.chk:has(.switch:checked) .chk-off-note { display: none; }
.chk .grid-2 { margin-top: 6px; }
.chk .label { font-size: 1.0625rem; }
.chk-row { display: grid; gap: 12px; margin-top: 14px; }
.chk-row .btn { width: 100%; }
.money { position: relative; width: 140px; }
.money .input { padding-right: 40px; font-variant-numeric: tabular-nums; }
.money-full { width: 100%; }
.money::after { content: "€"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-2); }
.chk-dates { font-variant-numeric: tabular-nums; }
.chk .inline-edit > summary { margin-top: 8px; }
@media (min-width: 1024px) {
  .chks { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}

/* Stellenanzeige */
.job { border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; background: var(--surface); margin-bottom: 14px; }
.job-title { margin: 8px 0 8px; font-size: 1.25rem; line-height: 1.3; }
.dot-status { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.vis-bis { display: none; margin-top: 12px; }
.vis:has(.no-end:not(:checked)) .vis-bis { display: block; }
.pick { display: inline-flex; align-items: center; gap: 6px; }
.pick .icon { width: 18px; height: 18px; stroke-width: 2.6; }
.ds-entwurf { background: var(--field); }
.ds-online { background: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.ds-pause { background: #C9960C; }
.ds-besetzt { background: var(--ink); }

/* Team */
.team { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.member { border: 1px solid var(--line); border-radius: 22px; padding: 14px; background: var(--surface); }
.member-top { display: flex; align-items: center; gap: 14px; }
.member-photo, .member-initials { flex: none; width: 64px; height: 64px; border-radius: 50%; }
.member-photo { object-fit: cover; background: var(--surface-3); }
.member-initials { display: grid; place-items: center; background: var(--salmon-tint); color: var(--salmon-ink); font-weight: 700; font-size: 1.25rem; }
.member-name { display: block; font-weight: 700; font-size: 1.1875rem; line-height: 1.3; }
.member-role { display: block; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.4; }
.member-flag { display: inline-flex; margin-top: 4px; }
.member-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.member-actions > * { flex: 1 1 140px; }
.member-actions .btn { width: 100%; }
.member-actions details[open] { flex-basis: 100%; }
.member-edit > summary { list-style: none; }
.member-edit > summary::-webkit-details-marker { display: none; }
.member-edit .edit-body { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.member.is-hidden { background: var(--surface-2); border: 2px dashed var(--line-2); }
.member.is-hidden .member-photo, .member.is-hidden .member-initials { opacity: .6; filter: grayscale(1); }
@media (min-width: 1024px) {
  .team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .member { display: flex; flex-direction: column; }
  .member-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .member-photo, .member-initials { width: 80px; height: 80px; }
  .member-actions { margin-top: auto; padding-top: 12px; flex-direction: column; }
  .member-actions > * { flex: none; }
  .member-actions .btn { white-space: nowrap; }
}

/* Vorschau „So erscheint es auf der Startseite“ (check.html) */
.pv-site { border-radius: 26px; background: #FBF8F3; border: 1px solid var(--line); padding: 14px; }
.pv-url { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 1rem; }
.pv-url .icon { width: 16px; height: 16px; }
.pv-check { border-radius: 24px; background: #fff; border: 1px solid #E6DDD1; padding: 18px; box-shadow: 0 6px 20px rgba(43,37,34,.07); }
.pv-check-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pv-orb { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 20px; background: var(--red-tint); color: var(--red); }
.pv-orb .icon { width: 30px; height: 30px; }
.pv-check h3 { font-family: var(--serif); font-weight: 600; font-size: 1.375rem; line-height: 1.22; margin: 0 0 8px; }
.pv-check p { font-size: 1.0625rem; color: var(--ink); margin: 0 0 12px; }
.pv-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; }
.pv-facts li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.pv-facts .icon { width: 18px; height: 18px; color: var(--ink-2); }
.pv-cta { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; }
.pv-fine { margin: 10px 0 0 !important; font-size: 1rem !important; color: var(--ink-2) !important; }
