/* LeadDesk Designsystem – Tokens (Hell/Dunkel) und Grundelemente. Wird von App, Buchungs- und Newsletter-Seite geteilt. */
:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #f5f6f8;
  --bg-tint: #eef1f4;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eef1f5;
  --line: #e3e7ed;
  --line-strong: #cfd5de;
  --text: #0f1726;
  --text-2: #344054;
  --muted: #5f6b7d;
  --faint: #8a94a6;

  --accent: #0b7a64;
  --accent-hover: #09634f;
  --accent-soft: #e6f4f0;
  --accent-ring: rgba(11, 122, 100, .28);
  --accent-ink: #ffffff;

  --blue: #2457d6; --blue-soft: #e9efff;
  --violet: #6440c5; --violet-soft: #f1ebff;
  --amber: #a94f05; --amber-soft: #fff1d6;
  --red: #c0331b; --red-soft: #fde8e4;
  --green: #0b7a3e; --green-soft: #dff6e8;
  --gray-soft: #eef1f5;

  --radius-s: 8px; --radius: 12px; --radius-l: 18px; --radius-xl: 24px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-2: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 12px rgba(16, 24, 40, .06);
  --shadow-3: 0 12px 32px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .06);
  --ring: 0 0 0 3px var(--accent-ring);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sidebar: 248px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0d12; --bg-tint: #0e1219; --surface: #11161e; --surface-2: #151b24; --surface-3: #1b2330;
    --line: #222b38; --line-strong: #2f3a4a; --text: #eef1f6; --text-2: #c9d1dd; --muted: #95a1b3; --faint: #6c788b;
    --accent: #3cc7a5; --accent-hover: #5fd8ba; --accent-soft: rgba(60, 199, 165, .13); --accent-ring: rgba(60, 199, 165, .35); --accent-ink: #04140f;
    --blue: #7aa2ff; --blue-soft: rgba(122, 162, 255, .14); --violet: #b59cff; --violet-soft: rgba(181, 156, 255, .14);
    --amber: #f2b45a; --amber-soft: rgba(242, 180, 90, .14); --red: #ff8a75; --red-soft: rgba(255, 138, 117, .14);
    --green: #5fd38f; --green-soft: rgba(95, 211, 143, .14); --gray-soft: #1b2330;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 2px 8px rgba(0, 0, 0, .35); --shadow-3: 0 18px 48px rgba(0, 0, 0, .55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0d12; --bg-tint: #0e1219; --surface: #11161e; --surface-2: #151b24; --surface-3: #1b2330;
  --line: #222b38; --line-strong: #2f3a4a; --text: #eef1f6; --text-2: #c9d1dd; --muted: #95a1b3; --faint: #6c788b;
  --accent: #3cc7a5; --accent-hover: #5fd8ba; --accent-soft: rgba(60, 199, 165, .13); --accent-ring: rgba(60, 199, 165, .35); --accent-ink: #04140f;
  --blue: #7aa2ff; --blue-soft: rgba(122, 162, 255, .14); --violet: #b59cff; --violet-soft: rgba(181, 156, 255, .14);
  --amber: #f2b45a; --amber-soft: rgba(242, 180, 90, .14); --red: #ff8a75; --red-soft: rgba(255, 138, 117, .14);
  --green: #5fd38f; --green-soft: rgba(95, 211, 143, .14); --gray-soft: #1b2330;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 2px 8px rgba(0, 0, 0, .35); --shadow-3: 0 18px 48px rgba(0, 0, 0, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss01";
}
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.022em; color: var(--text); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
.num { font-variant-numeric: tabular-nums; }
.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; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 14px; letter-spacing: -.005em; cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: var(--shadow-1); transition: background .15s var(--ease), border-color .15s var(--ease), transform .08s var(--ease), box-shadow .15s;
}
.btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(11, 122, 100, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-quiet { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn-quiet:hover { background: var(--surface-3); }
.btn-danger { color: var(--red); }
.btn-danger.solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn-icon { width: 38px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }

/* Forms */
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.field small { font-weight: 400; color: var(--muted); }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, select.input {
  width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--text); font-size: 14.5px; font-weight: 400; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--gray-soft); color: var(--text-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.violet { background: var(--violet-soft); color: var(--violet); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; font: 600 11px/1 var(--font); color: var(--muted); background: var(--surface); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-1); }
.brandmark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff;
  background: radial-gradient(120% 120% at 20% 10%, #33d1aa 0%, #0b7a64 55%, #075446 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 10px rgba(11, 122, 100, .28);
}
.brandmark svg { width: 18px; height: 18px; }
.toast-region { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 100; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #101828; color: #fff; box-shadow: var(--shadow-3); font-size: 14px; animation: toast-in .25s var(--ease); }
.toast.error { background: #9b2c1a; }
.toast svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
