/* ==========================================================================
   ERENDIZ — Helle Variante ("Y.CO-Sprache")
   Zweite Haut über demselben Markup-Vokabular wie die dunkle Fassung, damit
   die gesamte Interaktion (Rail, Buchung, Modal, Reveals, Rotator) unverändert
   aus erendiz.js kommt und hier nichts neu erfunden — und nichts neu kaputt —
   wird. Geändert wird die Erscheinung, nicht das Verhalten.

   Haltung: helles Papier, sans-dominant, viel Luft, 3:2 als Grundmaß,
   horizontale Karussells. Gold bleibt als Mikro-Akzent, damit beide Fassungen
   erkennbar dieselbe Marke sind; die Schaltflächen tragen Tinte statt Gold,
   weil Gold auf Weiß zu wenig Kontrast hätte.
   ========================================================================== */

:root {
  color-scheme: light;

  --paper:        #ffffff;
  --paper-2:      #f5f3ee;
  --paper-3:      #ebe8e1;
  --ink:          #10151a;
  --ink-soft:     rgba(16, 21, 26, 0.66);
  --ink-faint:    rgba(16, 21, 26, 0.42);
  --line:         rgba(16, 21, 26, 0.13);
  --line-strong:  rgba(16, 21, 26, 0.28);
  --gold:         #b3915f;
  --gold-soft:    rgba(179, 145, 95, 0.30);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;

  --gutter:    clamp(20px, 4.6vw, 76px);
  --section-y: clamp(72px, 9vw, 150px);
  --maxw:      1580px;
  --radius:    3px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.02vw, 1.05rem);
  font-weight: 400;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; background: none; border: 0; margin: 0; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Typografie ---------- */
.h-mega {
  font-size: clamp(2.6rem, 6.6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.h-xl { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; }
.h-lg { font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.08; letter-spacing: -0.022em; font-weight: 500; }
.h-md { font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.18; letter-spacing: -0.014em; font-weight: 500; }

/* Kleines Versal-Label — das wiederkehrende Ordnungselement */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.label::before { content: ""; width: 22px; height: 1px; background: var(--gold); flex: none; }
.label--bare::before { display: none; }

.lede { font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.7; color: var(--ink-soft); max-width: 60ch; }
.body { color: var(--ink-soft); max-width: 62ch; }

/* ---------- Layout ---------- */
.shell { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.shell--narrow { max-width: 1020px; }
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .lede, .section--ink .body { color: rgba(255,255,255,0.68); }
.section--ink .label { color: rgba(255,255,255,0.5); }
.stack > * + * { margin-top: 22px; }
.stack-sm > * + * { margin-top: 12px; }

.head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(36px, 4.6vw, 68px);
}
@media (min-width: 900px) {
  .head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: end; gap: 56px; }
}

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--sm { padding: 11px 22px; }

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  transition: gap 0.35s var(--ease), border-color 0.35s var(--ease);
}
.more:hover { gap: 1.1em; border-color: var(--ink); }
.section--ink .more { border-color: rgba(255,255,255,0.3); }

/* ---------- Kopfzeile ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.is-solid { border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-102%); }
.nav.is-top { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }
.nav.is-top .nav__link, .nav.is-top .brand, .nav.is-top .langs a { color: #fff; }
.nav.is-top .brand small { color: rgba(255,255,255,0.65); }
.nav.is-top .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.45); }
.nav.is-top .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.nav.is-top .burger i { background: #fff; }

.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: flex; align-items: baseline; gap: 9px;
  font-size: 1.05rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  white-space: nowrap;
}
.brand small { font-size: 0.52rem; letter-spacing: 0.28em; color: var(--ink-faint); font-weight: 400; }

.nav__links { display: none; align-items: center; gap: clamp(14px, 1.9vw, 30px); }
@media (min-width: 1040px) { .nav__links { display: flex; } }
.nav__link {
  position: relative;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); padding-block: 8px; white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 1px;
  background: currentColor; transition: width 0.4s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }
.nav__link.is-current::after { width: 14px; }
.nav__link--out { padding-right: 12px; }
.nav__link--out::before {
  content: ""; position: absolute; top: 8px; right: 0;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}

.nav__actions { display: flex; align-items: center; gap: 12px; }
.langs { display: flex; gap: 1px; }
.langs a {
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); padding: 6px 6px; transition: color 0.3s var(--ease);
}
.langs a:hover { color: var(--ink); }
.langs a.is-current { color: var(--gold); }
.nav__cta { display: none; }
@media (min-width: 640px) { .nav__cta { display: inline-flex; } }

.burger { width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; }
@media (min-width: 1040px) { .burger { display: none; } }
.burger i { display: block; width: 17px; height: 1px; background: var(--ink); transition: transform 0.4s var(--ease); }
body.menu-open .burger i:first-child { transform: translateY(3px) rotate(45deg); }
body.menu-open .burger i:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 118;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px var(--gutter) 48px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
  pointer-events: none;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu__list { display: grid; gap: 4px; }
.menu__item { overflow: hidden; }
.menu__item a {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(2rem, 8vw, 3.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1;
  transform: translateY(102%); transition: transform 0.7s var(--ease), color 0.3s var(--ease);
}
.menu__item a small { font-size: 0.6rem; letter-spacing: 0.24em; color: var(--ink-faint); font-weight: 400; }
body.menu-open .menu__item a { transform: translateY(0); }
.menu__item:nth-child(1) a { transition-delay: 0.06s; } .menu__item:nth-child(2) a { transition-delay: 0.10s; }
.menu__item:nth-child(3) a { transition-delay: 0.14s; } .menu__item:nth-child(4) a { transition-delay: 0.18s; }
.menu__item:nth-child(5) a { transition-delay: 0.22s; } .menu__item:nth-child(6) a { transition-delay: 0.26s; }
.menu__item:nth-child(7) a { transition-delay: 0.30s; }
.menu__foot { margin-top: clamp(30px, 6vh, 64px); display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1.04); } to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hero__media img, .hero__media video { animation: none; transform: none; } }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,11,14,0.62) 0%, rgba(8,11,14,0.10) 30%, rgba(8,11,14,0.32) 62%, rgba(8,11,14,0.86) 100%);
}
.hero__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--gutter) clamp(28px, 4vh, 54px);
  display: grid; gap: clamp(22px, 3.4vh, 40px);
}
.hero__title { max-width: 17ch; }
.hero__title .h-mega { color: #fff; }
.hero__sub { max-width: 52ch; color: rgba(255,255,255,0.82); font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.62; }
.hero .label { color: rgba(255,255,255,0.7); }

/* Suchleiste im Hero — bei Y.CO die Yacht-Suche, hier die Verfügbarkeit */
.searchbar {
  background: rgba(255,255,255,0.96);
  border-radius: 3px;
  box-shadow: 0 28px 70px -40px rgba(0,0,0,0.6);
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 0;
  overflow: hidden;
}
@media (min-width: 860px) { .searchbar { grid-template-columns: repeat(4, minmax(0,1fr)) auto; align-items: stretch; } }
.searchbar__field { display: grid; gap: 3px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .searchbar__field { border-bottom: 0; border-right: 1px solid var(--line); } }
.searchbar__field label { font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); }
.searchbar__field input, .searchbar__field select {
  font-size: 0.95rem; color: var(--ink); width: 100%; padding: 2px 0; color-scheme: light;
}
.searchbar__go { padding: 6px; display: grid; }
.searchbar__go .btn { border-radius: 2px; height: 100%; }
@media (max-width: 859px) { .searchbar__go { padding: 12px 20px 16px; } }

.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(28px, 4vh, 54px); display: none; flex-direction: column; align-items: center; gap: 12px; z-index: 2; }
@media (min-width: 1100px) { .scroll-cue { display: flex; } }
.scroll-cue span { writing-mode: vertical-rl; font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.scroll-cue i { width: 1px; height: 60px; background: rgba(255,255,255,0.3); position: relative; overflow: hidden; display: block; }
.scroll-cue i::after { content: ""; position: absolute; inset-inline: 0; height: 24px; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(150%); } }

/* ---------- Karussell (nutzt die Rail-Logik aus erendiz.js) ---------- */
.rail { position: relative; }
.rail__viewport { overflow: hidden; cursor: grab; touch-action: pan-y; }
.rail__viewport.is-dragging { cursor: grabbing; }
.rail__track { display: flex; gap: clamp(14px, 1.6vw, 26px); padding-inline: var(--gutter); will-change: transform; }
.rail__track > * { flex: none; }

.rail__controls {
  display: flex; align-items: center; gap: 18px;
  max-width: var(--maxw); margin: clamp(24px, 3vw, 40px) auto 0; padding-inline: var(--gutter);
}
.rail__progress { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.rail__progress span { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.rail__btn {
  width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s;
  flex: none;
}
.rail__btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rail__btn:disabled { opacity: 0.25; cursor: not-allowed; }
.rail__hint { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); display: none; }
@media (min-width: 900px) { .rail__hint { display: block; } }
.section--ink .rail__progress { background: rgba(255,255,255,0.2); }
.section--ink .rail__progress span { background: #fff; }
.section--ink .rail__btn { border-color: rgba(255,255,255,0.3); color: #fff; }
.section--ink .rail__btn:hover:not(:disabled) { background: #fff; color: var(--ink); border-color: #fff; }
.section--ink .rail__hint { color: rgba(255,255,255,0.5); }

/* Karte im Karussell — 3:2 als Grundmaß, wie in der Referenz */
.tile { width: clamp(270px, 30vw, 440px); display: grid; gap: 16px; user-select: none; }
.tile__frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.tile__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile:hover .tile__frame img { transform: scale(1.06); }
.tile__label { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.tile h3 { font-size: clamp(1.15rem, 1.5vw, 1.45rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.16; }
.tile p { color: var(--ink-soft); font-size: 0.92rem; }
.tile:hover h3 { color: var(--gold); }
.section--ink .tile__label { color: rgba(255,255,255,0.5); }
.section--ink .tile p { color: rgba(255,255,255,0.66); }

/* ---------- Alternierender Split — das Rückgrat der Referenz ---------- */
.split { display: grid; grid-template-columns: minmax(0,1fr); gap: clamp(28px, 4vw, 70px); align-items: center; }
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 5vw, 90px); }
  .split--flip .split__media { order: 2; }
}
.split + .split { margin-top: clamp(56px, 8vw, 130px); }
.split__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body { display: grid; gap: 20px; align-content: start; }
.split__points { display: grid; gap: 0; margin-top: 4px; }
.split__points div { display: flex; justify-content: space-between; gap: 20px; padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.split__points dt { color: var(--ink-faint); letter-spacing: 0.04em; }
.split__points dd { color: var(--ink); text-align: right; }

/* ---------- Karten mit dunkler Überblendung (Services-Raster) ---------- */
.overlay-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: clamp(14px, 1.6vw, 24px); }
@media (min-width: 700px)  { .overlay-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1080px) { .overlay-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.ocard {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(300px, 34vw, 420px); padding: clamp(22px, 2.4vw, 34px);
  border-radius: var(--radius); overflow: hidden; isolation: isolate; color: #fff;
}
.ocard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.ocard::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,11,14,0.10) 0%, rgba(8,11,14,0.30) 45%, rgba(8,11,14,0.82) 100%);
  transition: background 0.5s var(--ease);
}
.ocard:hover img { transform: scale(1.06); }
.ocard:hover::after { background: linear-gradient(180deg, rgba(8,11,14,0.18) 0%, rgba(8,11,14,0.42) 45%, rgba(8,11,14,0.9) 100%); }
.ocard__label { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.72); margin-bottom: 10px; }
.ocard h3 { font-size: clamp(1.3rem, 1.9vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
.ocard p { color: rgba(255,255,255,0.78); font-size: 0.9rem; margin-top: 10px; max-width: 40ch; }
.ocard .more { margin-top: 16px; border-color: rgba(255,255,255,0.35); width: fit-content; }
.ocard--tall { grid-row: span 2; }
@media (max-width: 1079px) { .ocard--tall { grid-row: auto; } }

/* ---------- Zitat / Manifest ---------- */
.pull {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1.2; font-weight: 300; letter-spacing: -0.01em;
  max-width: 22ch;
}
.pull em { font-style: italic; color: var(--gold); }

/* ---------- Zahlenreihe ---------- */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(26px, 3vw, 50px); }
@media (min-width: 900px) { .figures { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.figure__n { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.figure__t { margin-top: 8px; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.section--ink .figure__t { color: rgba(255,255,255,0.55); }

/* ---------- Anfrage-Band ---------- */
.enquire { display: grid; gap: 26px; justify-items: start; }
@media (min-width: 900px) { .enquire { grid-template-columns: minmax(0,1fr) auto; align-items: center; } }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Fußzeile ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.72); padding-top: clamp(56px, 7vw, 100px); padding-bottom: 34px; }
.footer__grid { display: grid; grid-template-columns: minmax(0,1fr); gap: clamp(30px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 74px); }
@media (min-width: 760px)  { .footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: minmax(0,1.4fr) repeat(4, minmax(0,0.7fr)); } }
.footer h4 { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.45); font-weight: 500; margin-bottom: 16px; }
.footer li + li { margin-top: 9px; }
.footer a, .footer span { font-size: 0.88rem; color: rgba(255,255,255,0.72); transition: color 0.3s var(--ease); }
.footer a:hover { color: #fff; }
.footer__mark { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.13); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.45);
}

/* ---------- Buchungs-Modal (Klassen aus erendiz.js) ---------- */
.modal { position: fixed; inset: 0; z-index: 170; display: grid; place-items: center; padding: var(--gutter); opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__scrim { position: absolute; inset: 0; background: rgba(10,13,16,0.55); backdrop-filter: blur(6px); }
.modal__panel {
  position: relative; width: min(860px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--paper); border-radius: var(--radius); padding: clamp(26px, 3.4vw, 52px);
  display: grid; gap: 26px; transform: translateY(20px); transition: transform 0.5s var(--ease);
  box-shadow: 0 40px 100px -50px rgba(0,0,0,0.6);
}
.modal.is-open .modal__panel { transform: none; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; }
.modal__grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; }
@media (min-width: 640px) { .modal__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.field { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 2px; padding: 11px 15px; }
.field:focus-within { border-color: var(--ink); }
.field label { font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field select { width: 100%; color-scheme: light; }
.modal__foot { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; }
.modal__perks { display: grid; gap: 7px; font-size: 0.88rem; color: var(--ink-soft); }
.modal__perks li { display: flex; gap: 10px; }
.modal__perks i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin-top: 8px; flex: none; }
.form-note { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); min-height: 1em; }
.close-btn { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.close-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Diverses ---------- */
.skip { position: absolute; left: -9999px; z-index: 300; background: var(--ink); color: var(--paper); padding: 12px 20px; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; }
.skip:focus { left: 12px; top: 12px; }
[data-reveal] { will-change: transform, opacity; }

/* Anna in die helle Fassung geholt */
html #erendiz-voice-anna .eva-fab {
  bottom: 26px; right: var(--gutter);
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  padding: 14px 24px; border-radius: 999px;
  font: 500 0.68rem/1 var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase;
  box-shadow: 0 20px 50px -28px rgba(0,0,0,0.6);
}
html #erendiz-voice-anna .eva-fab:hover { transform: none; background: var(--gold); border-color: var(--gold); color: var(--ink); }
html #erendiz-voice-anna .eva-fab svg { width: 17px; height: 17px; }
html #erendiz-voice-anna .eva-panel { right: var(--gutter); bottom: 26px; border-radius: var(--radius); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Nachträge aus der Browser-Kontrolle ---------- */

/* Die Suchleiste darf die rechte Ecke nicht besetzen: dort sitzen der
   Scroll-Hinweis und Annas Knopf. Die Referenz führt die Suche ebenfalls
   nicht über die volle Breite. */
@media (min-width: 1100px) { .searchbar { max-width: calc(100% - 300px); } }

/* Hero-Inhalt darf nie unter die Kopfzeile wandern */
.hero__inner { padding-top: 110px; }
.hero { align-items: flex-end; }
.hero__title { max-width: 20ch; }
.hero__title .h-mega { max-width: 15ch; }
.hero__title .h-xl { max-width: 20ch; }
.hero__title .h-lg { max-width: 24ch; }

/* Scroll-Hinweis über die Suchleiste heben */
.scroll-cue { bottom: clamp(150px, 20vh, 220px); }
@media (max-width: 1099px) { .scroll-cue { display: none; } }

/* Anna sitzt über der Suchleiste, nicht darauf */
html #erendiz-voice-anna .eva-fab { bottom: 22px; }
@media (max-width: 859px) {
  html #erendiz-voice-anna .eva-fab { bottom: 16px; padding: 11px 16px; }
}

/* ch rechnet gegen die Schriftgröße des Elements selbst. Auf dem Wrapper
   (Fließtextgröße) ergaben 20ch rund 320 px und die Schlagzeile brach nach
   jedem Wort um. Die Begrenzung gehört auf die Überschrift. */
.hero__title { max-width: none; }
.hero__title h1 { max-width: 15ch; }

/* Merkmalsliste mit echtem Beschreibungstext: linksbündig und umlaufend,
   statt rechtsbündig abgeschnitten. */
.split__points--rich div { display: grid; gap: 4px; align-items: start; }
@media (min-width: 620px) { .split__points--rich div { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 20px; } }
.split__points--rich dd { text-align: left; color: var(--ink-soft); }

/* ==========================================================================
   Unterseiten in der hellen Fassung
   ========================================================================== */

/* ---------- Seitenkopf ---------- */
.pagehero {
  position: relative; min-height: clamp(52vh, 62svh, 76vh);
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; color: #fff;
}
.pagehero__media { position: absolute; inset: 0; z-index: -2; }
.pagehero__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehero__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,11,14,0.68) 0%, rgba(8,11,14,0.18) 34%, rgba(8,11,14,0.30) 60%, rgba(8,11,14,0.80) 100%);
}
.pagehero__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: 120px var(--gutter) clamp(30px, 4vh, 56px);
  display: grid; gap: 18px;
}
.pagehero .label { color: rgba(255,255,255,0.72); }
.pagehero h1 { color: #fff; max-width: 20ch; }

/* ---------- Kartenraster ---------- */
.cardgrid { display: grid; grid-template-columns: minmax(0,1fr); gap: clamp(26px, 3vw, 46px); }
@media (min-width: 720px)  { .cardgrid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1120px) { .cardgrid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.cardgrid .tile { width: auto; }

/* ---------- Mosaik + Leuchtkasten ---------- */
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(10px, 1.2vw, 20px); }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.mtile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--paper-3); aspect-ratio: 3 / 2; margin: 0; cursor: zoom-in;
}
@media (min-width: 900px) { .mtile.m-wide { grid-column: span 2; } .mtile.m-tall { grid-row: span 2; aspect-ratio: 3 / 4; } }
.mtile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mtile:hover img { transform: scale(1.05); }
.mtile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: #fff;
  background: linear-gradient(0deg, rgba(8,11,14,0.78), rgba(8,11,14,0));
  opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mtile:hover figcaption, .mtile:focus-visible figcaption { opacity: 1; transform: none; }
.mtile b { color: var(--gold); font-weight: 500; }

.lightbox {
  position: fixed; inset: 0; z-index: 160; background: rgba(250,249,246,0.98);
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter);
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.lightbox__stage { display: grid; place-items: center; padding-inline: var(--gutter); min-height: 0; }
.lightbox__stage img { max-width: min(1180px, 100%); max-height: 74vh; width: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox__nav { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px var(--gutter) 32px; }
.lightbox__nav [data-lb-caption] { min-width: min(40ch, 60vw); text-align: center;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.lightbox__close { width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center; }
.lightbox__close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Textbausteine ---------- */
.prose { display: grid; gap: 18px; max-width: 68ch; }
.prose p { color: var(--ink-soft); }

.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 36px);
  display: grid; gap: 16px; background: var(--paper); align-content: start; }
.panel p { color: var(--ink-soft); }
.ticks { display: grid; gap: 9px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-soft); font-size: 0.92rem; }
.ticks li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin-top: 9px; flex: none; }

.factlist { display: grid; align-content: start; border-top: 1px solid var(--line); }
.factlist > div { padding-block: 16px; border-bottom: 1px solid var(--line); display: grid; gap: 5px; }
.factlist dt { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.factlist dd { color: var(--ink-soft); font-size: 0.92rem; }

.callout { border-left: 2px solid var(--gold); padding: 4px 0 4px 20px; display: grid; gap: 7px; margin-top: 28px; }
.callout p { color: var(--ink-soft); font-size: 0.92rem; }

.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px);
  display: grid; gap: 16px; background: var(--paper-2); }
.aside-box ol { display: grid; gap: 11px; counter-reset: st; }
.aside-box ol li { display: flex; gap: 13px; align-items: baseline; color: var(--ink-soft); font-size: 0.94rem; counter-increment: st; }
.aside-box ol li::before { content: counter(st, decimal-leading-zero); color: var(--gold); font-size: 0.8rem; flex: none; }

.sources { display: grid; gap: 9px; margin-top: 16px; }
.sources a { color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 2px; font-size: 0.92rem; }
.sources a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Fragen ---------- */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding-block: clamp(18px, 2.2vw, 26px); text-align: left;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem); font-weight: 500; letter-spacing: -0.014em; color: var(--ink); }
.faq__q:hover { color: var(--gold); }
.faq__q i { width: 13px; height: 13px; position: relative; flex: none; }
.faq__q i::before, .faq__q i::after { content: ""; position: absolute; background: currentColor; transition: transform 0.4s var(--ease); }
.faq__q i::before { left: 0; right: 0; top: 50%; height: 1px; }
.faq__q i::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.faq__item.is-open .faq__q i::after { transform: scaleY(0); }
.faq__a { overflow: hidden; height: 0; transition: height 0.5s var(--ease); }
.faq__a > div { padding-bottom: 24px; color: var(--ink-soft); max-width: 64ch; }

/* Breite und hohe Kacheln lassen bei normaler Platzierung Löcher im Raster.
   `dense` füllt sie mit den nachfolgenden kleinen Kacheln auf. */
.mosaic { grid-auto-flow: dense; }

/* ==========================================================================
   THEME — dieselbe helle Fassung, umschaltbar auf Dunkel
   --------------------------------------------------------------------------
   Gegenstück zum Block in erendiz.css. Der Grundzustand hier ist hell;
   data-theme="dark" dreht die Flächen. Der Merksatz bleibt derselbe: was auf
   einem Foto liegt, dreht sich nicht mit — im hellen Entwurf ist diese
   Schrift ohnehin schon fest weiß (#fff über dunklem Verlauf) und stimmt
   deshalb in beiden Themen ohne Zutun.
   ========================================================================== */

html[data-theme="dark"] {
  color-scheme: dark;

  --paper:       #0b0b0c;
  --paper-2:     #141417;
  --paper-3:     #1c1c21;
  --ink:         #f4f3f0;
  --ink-soft:    rgba(244, 243, 240, 0.66);
  --ink-faint:   rgba(244, 243, 240, 0.42);
  --line:        rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.30);
  --gold:        #c5a880;
  --gold-soft:   rgba(197, 168, 128, 0.32);
}

/* Die Tintenbahnen tragen im hellen Entwurf var(--ink) als Fläche. Im dunklen
   Thema wäre das Weiß auf Weiß — sie werden hier zu erhabenen dunklen Bahnen,
   damit der Wechsel zwischen ruhig und kräftig erhalten bleibt. */
html[data-theme="dark"] .section--ink { background: #17171b; color: var(--ink); }
html[data-theme="dark"] .footer       { background: #07070a; }
html[data-theme="dark"] .nav          { background: rgba(11, 11, 12, 0.86); }
html[data-theme="dark"] .nav.is-top   { background: transparent; }
html[data-theme="dark"] .searchbar    { background: rgba(18, 18, 21, 0.94); box-shadow: 0 28px 70px -40px rgba(0,0,0,0.9); }
html[data-theme="dark"] .searchbar__field input,
html[data-theme="dark"] .searchbar__field select { color-scheme: dark; }
html[data-theme="dark"] .lightbox     { background: rgba(7, 7, 8, 0.97); }
html[data-theme="dark"] .modal__panel { box-shadow: 0 40px 100px -50px rgba(0,0,0,0.95); }
html[data-theme="dark"] .btn--light   { background: #f4f3f0; color: #0b0b0c; border-color: #f4f3f0; }
html[data-theme="dark"] .btn--light:hover { background: transparent; color: #f4f3f0; border-color: #f4f3f0; }
html[data-theme="dark"] #erendiz-voice-anna .eva-fab { color: var(--paper); }
html[data-theme="dark"] #erendiz-voice-anna .eva-fab:hover { color: var(--paper); }

/* ---------- Der Schalter ---------- */
.themeswitch {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  transition: color 0.32s var(--ease), border-color 0.32s var(--ease);
}
.themeswitch:hover, .themeswitch:focus-visible { color: var(--gold); border-color: var(--gold-soft); }
.nav.is-top .themeswitch { color: #fff; border-color: rgba(255,255,255,0.45); }
.themeswitch svg {
  grid-area: 1 / 1;
  width: 15px; height: 15px;
  transition: opacity 0.32s var(--ease), transform 0.45s var(--ease);
}
.themeswitch__ico--sun  { opacity: 0; transform: rotate(50deg) scale(0.55); }
.themeswitch__ico--moon { opacity: 1; transform: none; }
html[data-theme="dark"] .themeswitch__ico--sun  { opacity: 1; transform: none; }
html[data-theme="dark"] .themeswitch__ico--moon { opacity: 0; transform: rotate(-50deg) scale(0.55); }

html.theme-shifting body,
html.theme-shifting .section,
html.theme-shifting .nav,
html.theme-shifting .footer,
html.theme-shifting .searchbar,
html.theme-shifting .panel,
html.theme-shifting .tile,
html.theme-shifting .split {
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}

/* ==========================================================================
   HANDY — eigener Durchgang für die helle Fassung
   Gleiche Regel wie drüben: Kopfzeile trägt Marke, Themenschalter, Menütaste;
   Sprachen und Anfragen sitzen im Overlay.
   ========================================================================== */

@media (max-width: 760px) {
  .nav__inner { gap: 10px; }
  .brand small { display: none; }
  .brand { font-size: 1rem; letter-spacing: 0.16em; }
  .nav .langs { display: none; }
  .nav__cta { display: none; }
  .nav__actions { gap: 8px; }
  .burger { width: 42px; height: 42px; }
  .themeswitch { width: 34px; height: 34px; }

  .menu__foot { gap: 12px 22px; }
  .menu .langs { display: flex; order: -1; width: 100%; gap: 4px; }
  .menu .langs a { font-size: 0.72rem; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
  .menu .langs a.is-current { color: var(--gold); border-color: var(--gold-soft); }

  .searchbar { box-shadow: 0 18px 40px -30px rgba(0,0,0,0.5); }
  .hero__inner { padding-top: 92px; }

  html #erendiz-voice-anna .eva-fab {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    padding: 12px 18px;
  }
}

@media (max-width: 380px) {
  .brand { font-size: 0.92rem; }
}

@media (hover: none) {
  .themeswitch { width: 40px; height: 40px; }
}
