/* ==========================================================
   drei-60 · Designsystem (Basis für alle Seiten)
   Kamerablende aus 6 Lamellen à 60°. Signalfarbe Koralle → Amber,
   ruhiges Nachtblau und warmes Papierweiß.
   ========================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/static/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Markenfarben */
  --brand-ink: #12141c;
  --brand-paper: #f6f4ef;
  --brand-coral: #ff3d2e;
  --brand-amber: #ffb43b;
  --brand-gradient: linear-gradient(135deg, var(--brand-coral), var(--brand-amber));

  /* Rollen (hell) */
  --bg: var(--brand-paper);
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --text: var(--brand-ink);
  --muted: #5f6270;
  --line: #e3e0d8;
  --accent: #c9361a;
  --primary: var(--brand-ink);
  --primary-text: var(--brand-paper);
  --danger: #b3261e;
  --ok: #1f7a4d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 20, 28, 0.04), 0 8px 24px rgba(18, 20, 28, 0.06);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-force-light]) {
    --bg: #0e1016;
    --surface: #171a23;
    --surface-2: #1c202b;
    --text: #f1eee8;
    --muted: #9a9daa;
    --line: #272a36;
    --accent: #ff7a57;
    --primary: var(--brand-paper);
    --primary-text: var(--brand-ink);
    --danger: #f2b8b5;
    --ok: #7fd1a5;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

a { color: var(--accent); }
img, video { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.m-0 { margin: 0; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.03em; line-height: 1;
}
.logo img { width: 1.4em; height: 1.4em; flex: none; display: block; }
.logo .hy { color: var(--brand-coral); }
.logo .tag {
  font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: 0.02em;
  color: var(--muted); margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--line);
}

/* ---------- Bedienelemente ---------- */
button, .btn {
  font: inherit; font-weight: 500; cursor: pointer; border-radius: 999px; padding: 8px 16px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
button:hover, .btn:hover { border-color: var(--muted); }
button.primary, .btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
button.primary:hover, .btn.primary:hover { opacity: .88; }
.btn.brand, button.brand { background: var(--brand-gradient); border: 0; color: var(--brand-ink); font-weight: 600; }
.btn.brand:hover, button.brand:hover { filter: saturate(1.15) brightness(1.03); }
button.danger, .btn.danger { color: var(--danger); }
button.ghost, .btn.ghost { background: transparent; border-color: transparent; }
button.ghost:hover, .btn.ghost:hover { background: color-mix(in srgb, var(--text) 6%, transparent); border-color: transparent; }
button.small, .btn.small { padding: 5px 12px; font-size: 13px; }
button:disabled { opacity: 0.5; cursor: default; }

input[type=text], input[type=email], input[type=password], input[type=datetime-local], input[type=number], select, textarea {
  font: inherit; width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
textarea { resize: vertical; min-height: 70px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
.field { display: grid; gap: 0; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text); margin: 0; font-weight: 400; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-coral); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.spread { justify-content: space-between; }
.stack { display: grid; gap: 14px; }
.error { color: var(--danger); font-size: 14px; min-height: 1em; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; padding: 2px 9px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.badge.warn { color: var(--danger); border-color: currentColor; }
.badge.accent { color: var(--accent); border-color: currentColor; }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px;
  z-index: 50; box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}

/* ---------- Lightbox (Fotos & Videos) ---------- */
.lightbox {
  position: fixed; inset: 0; background: #0b0b0c; z-index: 40;
  display: grid; grid-template-rows: auto 1fr; color: #eee;
}
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; }
.lightbox .bar .name { font-size: 14px; color: #bbb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50vw; }
.lightbox button, .lightbox .btn { background: rgba(255,255,255,.08); color: #eee; border-color: transparent; }
.lightbox button:hover, .lightbox .btn:hover { background: rgba(255,255,255,.16); }
.lightbox .stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 64px 18px; }
.lightbox .stage img, .lightbox .stage video { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; background: #000; }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 26px; padding: 10px 15px; }
.lightbox .nav.prev { left: 10px; }
.lightbox .nav.next { right: 10px; }
@media (max-width: 600px) {
  .lightbox .stage { padding: 0 0 12px; }
  .lightbox .nav { background: rgba(0,0,0,.45); }
  .lightbox .bar .name { display: none; }
}
