/* Helga Röhrl - Stylesheet
   Fonts self-hosted (keine Übertragung an Google). */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f1f2ee;
  --surface: #fafbf8;
  --surface-2: #e6e9e2;
  --ink: #16201b;
  --ink-soft: #4a554f;
  --ink-mute: #6b746f;
  --line: rgb(22 32 27 / 0.12);
  --accent: #d8c19b;
  --accent-ink: #16201b;
  --accent-text: #7a5c34;
  --accent-soft: rgb(216 193 155 / 0.28);
  --danger: #a3343f;
  --forest: #1d3a2e;
  --forest-ink: #eef1ea;
  --paper: #fdfdfb;
  --shadow: 0 1px 2px rgb(29 58 46 / 0.06), 0 12px 32px -12px rgb(29 58 46 / 0.18);
  --shadow-lg: 0 30px 80px -20px rgb(29 58 46 / 0.35);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 20px;
  --r-lg: 28px;
  --pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  /* Ebenen */
  --z-nav: 20;
  --z-consent: 40;
  --z-dialog: 50;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1612;
    --surface: #16201b;
    --surface-2: #1e2a24;
    --ink: #e8ece5;
    --ink-soft: #b5beb7;
    --ink-mute: #8f9993;
    --line: rgb(232 236 229 / 0.12);
    --accent: #dcc7a3;
    --accent-ink: #16201b;
    --accent-text: #dcc7a3;
    --accent-soft: rgb(220 199 163 / 0.14);
    --danger: #f08f8f;
    --forest: #1a2c23;
    --forest-ink: #e8ece5;
    --paper: #ecebe6;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -12px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 30px 80px -20px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1612;
  --surface: #16201b;
  --surface-2: #1e2a24;
  --ink: #e8ece5;
  --ink-soft: #b5beb7;
  --ink-mute: #8f9993;
  --line: rgb(232 236 229 / 0.12);
  --accent: #dcc7a3;
  --accent-ink: #16201b;
  --accent-text: #dcc7a3;
  --accent-soft: rgb(220 199 163 / 0.14);
  --danger: #f08f8f;
  --forest: #1a2c23;
  --forest-ink: #e8ece5;
  --paper: #ecebe6;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -12px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 30px 80px -20px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -100px;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: var(--pill); z-index: 100;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

.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;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: var(--pill); border: 1px solid transparent;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.35s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -12px rgb(122 92 52 / 0.45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgb(122 92 52 / 0.55); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.btn .icon { transition: transform 0.35s var(--ease); }
.btn:hover .icon-shift { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; padding: 8px 14px; border-radius: var(--pill);
  font-size: 0.93rem; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links .nav-cta { background: var(--ink); color: var(--bg); margin-left: 8px; }
.nav-links .nav-cta:hover { background: var(--ink); color: var(--bg); opacity: 0.88; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 12px; right: 12px; top: 72px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
  }
  .nav.is-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-links .nav-cta { margin: 6px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(56px, 8vw, 112px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center;
  min-height: min(calc(100dvh - 68px - 120px), 720px);
}
.hero-title { font-size: clamp(3.2rem, 7.4vw, 6.4rem); line-height: 1; letter-spacing: -0.025em; }
.hero-title em { font-style: italic; color: var(--accent-text); display: inline-block; padding-bottom: 0.08em; }
.hero-role { margin-top: 20px; font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-style: italic; color: var(--ink-soft); }
.hero-lead { margin-top: 18px; max-width: 42ch; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-visual { position: relative; }
.hero-portrait {
  border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.4;
  box-shadow: var(--shadow-lg); background: var(--surface-2);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.hero-rose {
  position: absolute; left: -48px; bottom: -40px; width: clamp(120px, 14vw, 176px); aspect-ratio: 1;
  border-radius: 50%; background: var(--paper); padding: 18px;
  box-shadow: var(--shadow); border: 6px solid var(--bg);
}
.hero-rose img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-rose { left: auto; right: -8px; bottom: -28px; width: 112px; padding: 12px; }
}

/* ---------- Sektionen ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section-title { font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
.section-lead { margin-top: 16px; max-width: 60ch; color: var(--ink-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text);
}

/* ---------- Pressestimmen (Marquee) ---------- */
.voices { padding: 8px 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.voices-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.voices-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.voices-nav { display: flex; gap: 8px; }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 0.2s, border-color 0.2s, transform 0.3s var(--ease);
}
.round-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.round-btn:active { transform: scale(0.94); }
.marquee {
  position: relative; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  cursor: grab; user-select: none; -webkit-user-select: none;
  padding-inline: var(--gutter);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-dragging { cursor: grabbing; }
.marquee:focus-visible { outline-offset: -2px; }
.marquee-track { display: flex; gap: 20px; width: max-content; }

.quote {
  flex: none; width: min(420px, 80vw); padding: 28px 30px; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  display: flex; flex-direction: column; gap: 10px;
}
.quote-head { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.2; }
.quote blockquote { margin: 0; font-size: 1.02rem; color: var(--ink-soft); }
.quote figcaption { margin-top: auto; padding-top: 8px; font-size: 0.85rem; font-weight: 600; color: var(--accent-text); }

/* ---------- Über ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-media { position: sticky; top: 100px; }
.about-media figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow); }
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.about-sub { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--ink-soft); }
.about-body { margin-top: 32px; max-width: 62ch; font-size: 1.08rem; }
.about-body p:first-child::first-letter {
  font-family: var(--serif); font-weight: 600; float: left;
  font-size: 4.2em; line-height: 0.85; padding: 0.06em 0.1em 0 0; color: var(--accent-text);
}
.about-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.fact { padding: 20px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.fact strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.fact span { font-size: 0.92rem; color: var(--ink-mute); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { position: static; max-width: 520px; }
  .about-media figure { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) { .about-facts { grid-template-columns: 1fr; } }

/* ---------- Hörbuch ---------- */
.listen {
  position: relative; overflow: hidden;
  background: var(--forest); color: var(--forest-ink);
  border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: center;
}
.listen .eyebrow { color: var(--accent); }
.listen-title { margin-top: 14px; font-size: clamp(2.1rem, 4vw, 3.3rem); }
.listen-credit { margin-top: 18px; color: color-mix(in srgb, var(--forest-ink) 72%, transparent); }
.listen-art { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--paper); aspect-ratio: 2 / 1; }
.listen-art img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.player {
  margin-top: 32px; padding: 14px 18px 14px 14px;
  background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--pill);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
}
.player-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--forest-ink); color: var(--forest);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease);
}
.player-btn:hover { transform: scale(1.06); }
.player-btn:active { transform: scale(0.96); }
.player-btn .icon { width: 22px; height: 22px; }
.player-meta { min-width: 0; }
.player-track { font-weight: 600; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-range {
  --p: 0%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 20px; margin: 4px 0 0; background: transparent; cursor: pointer;
}
.player-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--forest-ink) var(--p), rgb(255 255 255 / 0.22) var(--p)); }
.player-range::-moz-range-track { height: 4px; border-radius: 4px; background: rgb(255 255 255 / 0.22); }
.player-range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--forest-ink); }
.player-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--forest-ink); border: 0; }
.player-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--forest-ink); border: 0; }
.player-time { font-variant-numeric: tabular-nums; font-size: 0.86rem; color: color-mix(in srgb, var(--forest-ink) 75%, transparent); white-space: nowrap; }

@media (max-width: 860px) {
  .listen { grid-template-columns: 1fr; }
  .listen-art { order: -1; }
}
@media (max-width: 420px) {
  .player { border-radius: var(--r); grid-template-columns: auto 1fr; }
  .player-time { grid-column: 2; margin-top: -10px; }
}

/* ---------- Werke (Bento) ---------- */
.works-head { margin-bottom: clamp(32px, 4vw, 52px); }
.works-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  min-height: 40px; padding: 0 18px; border-radius: var(--pill);
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(240px, 24vw, 320px); gap: 16px; }
.bento.is-filtered { grid-auto-flow: dense; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: var(--surface-2); isolation: isolate;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.tile.wide { grid-column: span 2; }
.tile[hidden] { display: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.tile-btn {
  all: unset; position: absolute; inset: 0; cursor: pointer; display: block;
  border-radius: inherit;
}
.tile-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.tile-cap {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: 64px 22px 20px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  color: #f7f8f5;
  background: linear-gradient(180deg, transparent, rgb(12 20 16 / 0.78));
}
.tile-title { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 600; line-height: 1.1; }
.tile-kind { display: block; margin-top: 4px; font-family: var(--sans); font-size: 0.8rem; font-weight: 600; opacity: 0.82; }
.tile-arrow {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgb(255 255 255 / 0.16); border: 1px solid rgb(255 255 255 / 0.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.45s var(--ease), background-color 0.3s;
}
.tile:hover img { transform: scale(1.045); }
.tile:hover .tile-arrow { transform: rotate(-45deg); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tile.art { background: var(--paper); }
.tile.art img { object-fit: contain; padding: 18px; mix-blend-mode: multiply; }
.tile.art:hover img { transform: none; }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; grid-auto-rows: clamp(220px, 36vw, 300px); }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile, .tile.wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .tile.art { aspect-ratio: 2 / 1; }
}

/* ---------- Dialog (Werk-Details) ---------- */
.work-dialog {
  width: min(1040px, calc(100vw - 24px)); max-height: min(88dvh, 820px);
  padding: 0; border: 0; border-radius: var(--r-lg);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.work-dialog::backdrop { background: rgb(10 16 13 / 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.work-dialog[open] { animation: dialog-in 0.5s var(--ease); }
.work-dialog[open]::backdrop { animation: fade-in 0.4s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
@keyframes fade-in { from { opacity: 0; } }
.dialog-inner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); max-height: inherit; }
.dialog-media { background: var(--surface-2); display: flex; align-items: center; justify-content: center; padding: clamp(20px, 3vw, 40px); min-height: 0; }
.dialog-media img { max-height: calc(min(88dvh, 820px) - 80px); width: auto; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); }
.dialog-body { padding: clamp(28px, 4vw, 56px); overflow-y: auto; overscroll-behavior: contain; }
.dialog-kind { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.dialog-title { margin-top: 10px; font-size: clamp(2.1rem, 4vw, 3.1rem); }
.dialog-sub { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--ink-soft); }
.dialog-text { margin-top: 28px; color: var(--ink-soft); max-width: 60ch; }
.dialog-text .verse { font-family: var(--serif); font-size: 1.45rem; font-style: italic; line-height: 1.4; color: var(--ink); }
.dialog-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 85%, transparent); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease);
}
.dialog-close:hover { transform: rotate(90deg); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.dialog-inner.is-video { grid-template-columns: 1fr; overflow-y: auto; }
.dialog-inner.is-video .dialog-body { padding-top: 24px; overflow: visible; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #0c120f; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-gate {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 24px; text-align: center; color: #eef1ea;
  background-size: cover; background-position: center;
}
.video-gate::before { content: ""; position: absolute; inset: 0; background: rgb(10 16 13 / 0.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.video-gate > * { position: relative; }
.video-gate p { max-width: 52ch; font-size: 0.92rem; color: rgb(238 241 234 / 0.85); }
.video-gate a { color: inherit; }

@media (max-width: 760px) {
  .work-dialog { max-height: 92dvh; }
  .dialog-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .dialog-media { padding: 28px 24px 8px; }
  .dialog-media img { max-height: 46dvh; }
  .dialog-body { overflow: visible; }
}

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-aside .rose-mark { width: 148px; margin-top: 36px; mix-blend-mode: multiply; }
.contact-direct { margin-top: 28px; display: grid; gap: 6px; color: var(--ink-soft); }
.contact-direct a { text-decoration: none; font-weight: 600; color: var(--ink); }
.contact-direct a:hover { color: var(--accent-text); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.92rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: var(--r-sm); padding: 13px 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.field-error { font-size: 0.86rem; color: var(--danger); min-height: 0; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 0.95rem; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent-text); }
.check a { color: var(--ink); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r-sm); font-size: 0.95rem; font-weight: 500; }
.form-status.is-success { display: flex; background: color-mix(in srgb, var(--forest) 12%, transparent); color: var(--ink); }
.form-status.is-error { display: flex; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--ink); }
.form .btn[disabled] { opacity: 0.7; cursor: progress; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: 0.92rem; color: var(--ink-mute); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-links button { color: var(--ink-soft); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.footer-links a:hover, .footer-links button:hover { color: var(--ink); }
.footer .brand { font-size: 1.3rem; color: var(--ink); }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(48px, 7vw, 96px) 0 0; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin-bottom: 40px; }
.legal h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 56px 0 16px; }
.legal h3 { font-family: var(--sans); font-size: 1.12rem; font-weight: 700; letter-spacing: 0; margin: 32px 0 10px; }
.legal h4 { font-size: 1rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.6em; }
.legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 30px; margin-bottom: 20px; }
.legal-card h2 { margin-top: 0; font-size: 1.6rem; }
.legal a { color: var(--accent-text); }

/* ---------- Cookie-Consent ---------- */
.consent {
  position: fixed; left: 20px; bottom: 20px; z-index: var(--z-consent);
  width: min(440px, calc(100vw - 32px));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgb(255 255 255 / 0.25);
  padding: 24px;
  transform: translateY(calc(100% + 40px)); opacity: 0; visibility: hidden;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease), visibility 0s linear 0.6s;
}
.consent.is-visible { transform: none; opacity: 1; visibility: visible; transition: transform 0.6s var(--ease), opacity 0.4s var(--ease), visibility 0s; }
.consent-head { display: flex; align-items: center; gap: 12px; }
.consent-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.consent-icon .icon { width: 22px; height: 22px; }
.consent-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.consent-text { margin-top: 12px; font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); }
.consent-text a { color: var(--ink); font-weight: 600; }
.consent-prefs { display: grid; gap: 10px; margin-top: 16px; }
.consent-prefs[hidden] { display: none; }
.pref { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); }
.pref-name { font-weight: 700; font-size: 0.93rem; }
.pref-desc { grid-column: 1; font-size: 0.83rem; color: var(--ink-mute); line-height: 1.45; }
.switch { grid-row: 1 / span 2; grid-column: 2; position: relative; width: 46px; height: 28px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch input:disabled { cursor: not-allowed; }
.switch span { position: absolute; inset: 0; border-radius: var(--pill); background: color-mix(in srgb, var(--ink) 22%, transparent); transition: background-color 0.25s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); transition: transform 0.35s var(--ease); }
.switch input:checked + span { background: var(--accent-text); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled + span { opacity: 0.55; }
.switch input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.consent-actions .btn { min-height: 44px; padding: 0 1em; font-size: 0.9rem; }
.consent-more { grid-column: 1 / -1; justify-self: center; margin-top: 4px; background: none; border: 0; padding: 8px; cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.consent-more:hover { color: var(--ink); }
.consent-links { display: flex; gap: 16px; justify-content: center; margin-top: 10px; font-size: 0.8rem; }
.consent-links a { color: var(--ink-mute); }

@media (max-width: 520px) {
  .consent { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 20px; border-radius: var(--r); }
}
@media (max-width: 420px) {
  .consent-actions { grid-template-columns: 1fr; }
  .consent-actions [data-consent-all] { order: -1; }
}

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav, .consent { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
