/* ============================================================
   Maiapartments — Award-Level Editorial / Luxury Hotel
   ============================================================ */

:root {
  --bg: #F4F0E8;
  --bg-dark: #121110;
  --ink: #1A1814;
  --ink-soft: #6F675A;
  --cream: #F4F0E8;
  --accent: #B5562F;
  --accent-soft: #D89A7E;
  --line: rgba(26, 24, 20, 0.14);
  --line-dark: rgba(244, 240, 232, 0.16);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.25rem, 4vw, 4.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Fraunces-Charakter: weiche Terminals + charmant „wonkige“ Buchstaben
   in den großen Display-Größen — die Handschrift der Marke. */
.hero__title,
.section-head__title,
.about__statement,
.contact__title,
.card__title,
.detail__title,
.detail__quote blockquote,
.site-footer__big {
  font-variation-settings: "SOFT" 36, "WONK" 1;
}

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 1.5s var(--ease), color 1.5s var(--ease);
}

/* Dunkler Morph (Über uns / Kontakt / Footer im Viewport) */
body.is-dark { background: var(--bg-dark); color: var(--cream); }

::selection { background: var(--accent); color: var(--cream); }

img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; font-family: var(--serif); }

/* Smooth-Scroll: natives Scrollen, Mausrad wird in JS gelerpt */

/* ---------- Nahtlose Seitenübergänge (View Transitions) ----------
   Karte → Unterkunftsseite: das Foto morpht in den Vollbild-Hero.
   Browser ohne Unterstützung navigieren ganz normal. */

@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* Tastatur-Fokus sichtbar und elegant */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Korn-Textur ---------- */

.noise {
  position: fixed;
  inset: -50%;
  z-index: 140;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(8) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -2%); }
}

/* ---------- Preloader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-dark);
  color: var(--cream);
  display: grid;
  place-items: center;
  transition: clip-path 1s var(--ease-out) 0.15s;
  clip-path: inset(0 0 0 0);
}

body.is-loaded .loader {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.loader__word {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 8vw, 6rem);
  letter-spacing: 0.02em;
  display: flex;
  overflow: hidden;
}

.loader__word span {
  display: inline-block;
  transform: translateY(110%);
  animation: loaderLetter 0.9s var(--ease-out) forwards;
}

.loader__word span:nth-child(n)  { animation-delay: calc(0.08s + var(--i, 0) * 1s); }
.loader__word span:nth-child(1)  { animation-delay: 0.05s; }
.loader__word span:nth-child(2)  { animation-delay: 0.09s; }
.loader__word span:nth-child(3)  { animation-delay: 0.13s; }
.loader__word span:nth-child(4)  { animation-delay: 0.17s; }
.loader__word span:nth-child(5)  { animation-delay: 0.21s; }
.loader__word span:nth-child(6)  { animation-delay: 0.25s; }
.loader__word span:nth-child(7)  { animation-delay: 0.29s; }
.loader__word span:nth-child(8)  { animation-delay: 0.33s; }
.loader__word span:nth-child(9)  { animation-delay: 0.37s; }
.loader__word span:nth-child(10) { animation-delay: 0.41s; }
.loader__word span:nth-child(11) { animation-delay: 0.45s; }
.loader__word span:nth-child(12) { animation-delay: 0.49s; }
.loader__word span:nth-child(13) { animation-delay: 0.53s; }

@keyframes loaderLetter { to { transform: translateY(0); } }

/* Wiederbesuch in derselben Sitzung: kein Intro, alles startet sofort */
body.no-intro .loader { display: none; }
body.no-intro .hero__title .line__inner { transition-delay: 0.15s !important; }
body.no-intro .hero__kicker span { transition-delay: 0.1s; }
body.no-intro .hero__meta,
body.no-intro .hero__bar { transition-delay: 0.35s; }
body.no-intro .hero__side,
body.no-intro .hero__badge { transition-delay: 0.5s; }

.loader__count {
  position: absolute;
  bottom: 1.6rem;
  right: var(--pad);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  color: rgba(244, 240, 232, 0.35);
}

.loader__hint {
  position: absolute;
  bottom: 2.4rem;
  left: var(--pad);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.45);
}

/* ---------- Custom Cursor ---------- */

.cursor { display: none; }

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: 190;
    pointer-events: none;
  }

  .cursor__dot {
    position: fixed;
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: var(--accent);
  }

  .cursor__ring {
    position: fixed;
    width: 44px; height: 44px;
    margin: -22px 0 0 -22px;
    border: 1px solid rgba(181, 86, 47, 0.7);
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: width 0.4s var(--ease), height 0.4s var(--ease),
                margin 0.4s var(--ease), background 0.4s, border-color 0.4s;
  }

  .cursor__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
  }

  .cursor.is-link .cursor__ring {
    width: 64px; height: 64px;
    margin: -32px 0 0 -32px;
    background: rgba(181, 86, 47, 0.12);
  }

  .cursor.is-label .cursor__ring {
    width: 96px; height: 96px;
    margin: -48px 0 0 -48px;
    background: var(--accent);
    border-color: var(--accent);
  }

  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-label .cursor__dot { opacity: 0; }
}

/* ---------- Scroll-Fortschritt ---------- */

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 160;
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad);
  mix-blend-mode: difference;
  color: #fff;
  transition: transform 0.6s var(--ease), opacity 0.6s;
}

.site-header.is-hidden {
  transform: translateY(-110%);
  opacity: 0;
}

.brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: clamp(1.1rem, 2.6vw, 2.6rem);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.site-nav a {
  text-decoration: none;
  position: relative;
  padding-bottom: 0.25rem;
}

.site-nav a sup {
  font-size: 0.6rem;
  margin-right: 0.3rem;
  opacity: 0.55;
  font-family: var(--serif);
  font-style: italic;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 38rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

/* Filmischer Hero: Slides mit Crossfade + langsamer Kamerafahrt */
.hero__slides {
  position: absolute;
  top: -5%;
  left: 0;
  width: 100%;
  height: 110%;
  will-change: transform;
}

.hero__slides video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Läuft das Video, bleiben die Foto-Slides unsichtbar dahinter */
.hero__slides.has-video img { display: none; }

.hero__slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}

.hero__slides img.is-active {
  opacity: 1;
  animation: kenburns 16s ease-in-out infinite alternate;
}

/* abwechselnde Fahrtrichtung für lebendigen Rhythmus */
.hero__slides img:nth-child(even).is-active {
  animation-name: kenburnsZurueck;
}

@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.07) translate(-1.2%, 0.8%); }
}

@keyframes kenburnsZurueck {
  from { transform: scale(1.07) translate(1%, -0.6%); }
  to   { transform: scale(1) translate(0, 0); }
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(18, 17, 16, 0.06), rgba(18, 17, 16, 0.06)),
    linear-gradient(180deg, rgba(18, 17, 16, 0.32) 0%, rgba(18, 17, 16, 0) 28%),
    linear-gradient(180deg, rgba(18, 17, 16, 0) 42%, rgba(18, 17, 16, 0.6) 100%);
}

.hero__side {
  position: absolute;
  top: 50%;
  right: calc(var(--pad) * 0.5);
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.65);
  opacity: 0;
  transition: opacity 1s 1.8s;
}

body.is-loaded .hero__side { opacity: 1; }

.hero__content {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(7rem, 18vh, 11rem);
  color: var(--cream);
}

.hero__kicker {
  overflow: hidden;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 12px rgba(18, 17, 16, 0.5);
}

.hero__kicker span {
  display: inline-block;
  transform: translateY(120%);
  transition: transform 0.9s var(--ease-out) 1.15s;
}

body.is-loaded .hero__kicker span { transform: translateY(0); }

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.4rem, 11.5vw, 10.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 28px rgba(18, 17, 16, 0.45), 0 1px 6px rgba(18, 17, 16, 0.25);
}

.hero__title .line { display: block; overflow: hidden; }

.hero__title .line__inner {
  display: block;
  transform: translateY(112%) rotate(2.2deg);
  transform-origin: 0 100%;
  transition: transform 1.2s var(--ease-out);
}

body.is-loaded .hero__title .line:nth-child(1) .line__inner { transform: translateY(0) rotate(0deg); transition-delay: 1.25s; }
body.is-loaded .hero__title .line:nth-child(2) .line__inner { transform: translateY(0) rotate(0deg); transition-delay: 1.38s; }
body.is-loaded .hero__title .line:nth-child(3) .line__inner { transform: translateY(0) rotate(0deg); transition-delay: 1.51s; }

.hero__title em { color: var(--accent-soft); }

/* Kleines Foto als Chip in der Headline */
.hero__chip {
  display: inline-block;
  width: 1.55em;
  height: 0.62em;
  border-radius: 99px;
  overflow: hidden;
  margin-left: 0.14em;
  vertical-align: 0.04em;
  transition: scale 0.5s var(--ease);
}

.hero__chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__title .line:hover .hero__chip { scale: 1.12; }

/* Rotierendes Badge */
.hero__badge {
  position: absolute;
  right: var(--pad);
  bottom: clamp(8rem, 20vh, 12rem);
  width: 7.5rem;
  height: 7.5rem;
  color: var(--cream);
  opacity: 0;
  transition: opacity 1s 2s;
}

body.is-loaded .hero__badge { opacity: 1; }

.hero__badge svg {
  width: 100%;
  height: 100%;
  animation: badgeSpin 18s linear infinite;
  overflow: visible;
}

.hero__badge text {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  fill: rgba(244, 240, 232, 0.85);
}

.hero__badge > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--accent-soft);
}

@keyframes badgeSpin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero__badge { display: none; }
}

.hero__bar {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(244, 240, 232, 0.28);
  color: var(--cream);
  opacity: 0;
  transition: opacity 1s 1.9s;
}

body.is-loaded .hero__bar { opacity: 1; }

.hero__lead {
  max-width: 26rem;
  font-size: 0.92rem;
  color: rgba(244, 240, 232, 0.78);
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.7);
}

.hero__scroll i {
  width: 1px;
  height: 3rem;
  background: rgba(244, 240, 232, 0.5);
  position: relative;
  overflow: hidden;
}

.hero__scroll i::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--cream);
  animation: scrollHint 2.1s var(--ease) infinite;
}

@keyframes scrollHint {
  0% { top: -100%; }
  55% { top: 0; }
  100% { top: 100%; }
}

.hero__index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(244, 240, 232, 0.78);
  white-space: nowrap;
}

/* ---------- Marquee ---------- */

.marquee {
  padding: clamp(1.6rem, 4vh, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  align-items: baseline;
  gap: 3.2rem;
  width: max-content;
  animation: marquee 44s linear infinite;
  white-space: nowrap;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}

.marquee__track span { font-family: var(--serif); font-weight: 300; }

.marquee__track em {
  font-weight: 300;
  color: var(--accent);
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifest ---------- */

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(6rem, 16vh, 11rem) var(--pad);
}

.manifesto__sign {
  margin-top: clamp(1.4rem, 3vh, 2.2rem);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--accent);
}

/* Zwei überlappende Bilder neben dem Leitsatz */
.manifesto__media {
  position: relative;
  padding-bottom: 14%;
}

.manifesto__media figure {
  overflow: hidden;
  margin: 0;
}

.manifesto__media figure:first-child {
  width: 74%;
  aspect-ratio: 3 / 4;
}

.manifesto__media figure:first-child img {
  position: relative;
  top: -5%;
  width: 100%;
  height: 110%;
  object-fit: cover;
  will-change: transform;
}

.manifesto__media figure:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  border: 0.5rem solid var(--bg);
  transition: border-color 1.5s var(--ease);
}

body.is-dark .manifesto__media figure:last-child { border-color: var(--bg-dark); }

.manifesto__media figure:last-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 880px) {
  .manifesto { grid-template-columns: 1fr; }
  .manifesto__media { padding-bottom: 10%; max-width: 30rem; }
}

.manifesto__kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
}

.manifesto__text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 4.2vw, 3.6rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.manifesto__text .w {
  opacity: 0.12;
  transition: opacity 0.3s linear;
}

/* ---------- Section-Kopf ---------- */

.section-head { padding: 0 var(--pad); }

.section-head__kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.section-head__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

/* ---------- Unterkünfte: Kapitel ---------- */

.listings {
  position: relative;
  padding-bottom: clamp(4rem, 10vh, 8rem);
  overflow: clip;
  /* sanfte warme Welle — die Seite vertieft sich Richtung Dunkel */
  background: linear-gradient(180deg,
    rgba(196, 164, 110, 0) 0%,
    rgba(196, 164, 110, 0.08) 50%,
    rgba(196, 164, 110, 0) 100%);
}

/* Riesiges Wasserzeichen-Wort, das mit dem Scroll quer treibt */
.watermark {
  position: absolute;
  top: clamp(10rem, 30vh, 18rem);
  left: 55%;
  z-index: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(10rem, 28vw, 26rem);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(26, 24, 20, 0.1);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

body.is-dark .watermark { -webkit-text-stroke-color: rgba(244, 240, 232, 0.1); }

.listings__list {
  display: flex;
  flex-direction: column;
  gap: clamp(6rem, 16vh, 12rem);
  padding: clamp(4rem, 10vh, 7rem) var(--pad) 0;
}

.card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.card:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.card:nth-child(even) .card__media { order: 2; }
.card:nth-child(even) .card__body { order: 1; }

.card__ghost {
  position: absolute;
  top: -0.6em;
  z-index: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(7rem, 18vw, 17rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(26, 24, 20, 0.16);
  pointer-events: none;
  user-select: none;
}

.card:nth-child(odd) .card__ghost { right: -0.04em; }
.card:nth-child(even) .card__ghost { left: -0.04em; }

body.is-dark .card__ghost { -webkit-text-stroke-color: rgba(244, 240, 232, 0.16); }

.card__media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.card__slides {
  position: absolute;
  inset: 0;
  height: 116%;
  transition: scale 1.2s var(--ease);
  will-change: transform;
}

.card__slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.card__slides img.is-active { opacity: 1; }

.card:hover .card__slides { scale: 1.05; }

.card__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.45rem;
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover .card__dots { opacity: 1; }

.card__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(244, 240, 232, 0.45);
  transition: background 0.3s, scale 0.3s;
}

.card__dots i.is-active { background: var(--cream); scale: 1.15; }

.card__tag {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 2;
  background: rgba(244, 240, 232, 0.92);
  color: var(--ink);
  border-radius: 99px;
  padding: 0.38rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.card__body { position: relative; z-index: 1; }

.card__index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.card__title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  transition: color 0.4s;
}

.card:hover .card__title { color: var(--accent); }

.card__character {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--accent);
}

.card__subtitle {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  max-width: 28rem;
}

body.is-dark .card__subtitle { color: rgba(244, 240, 232, 0.6); }

.card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

body.is-dark .card__facts { border-color: var(--line-dark); }

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.card__more svg { transition: transform 0.45s var(--ease); }
.card:hover .card__more svg { transform: translateX(6px); }

/* ---------- Impressionen (horizontal gepinnt) ---------- */

.gallery {
  position: relative;
  background: linear-gradient(180deg,
    rgba(181, 86, 47, 0) 0%,
    rgba(181, 86, 47, 0.05) 55%,
    rgba(181, 86, 47, 0) 100%);
}

.gallery__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 34rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-head--gallery {
  position: absolute;
  top: clamp(2.5rem, 8vh, 5rem);
  left: 0;
}

.gallery__track {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3rem);
  padding: 0 var(--pad);
  width: max-content;
  will-change: transform;
}

.gallery__item {
  flex: 0 0 auto;
  overflow: hidden;
}

.gallery__item:nth-child(odd)  { width: clamp(16rem, 34vw, 34rem); aspect-ratio: 4 / 3; }
.gallery__item:nth-child(even) { width: clamp(13rem, 26vw, 26rem); aspect-ratio: 3 / 4; margin-top: clamp(2rem, 8vh, 6rem); }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1s var(--ease);
}

.gallery__item:hover img { scale: 1.06; }

.gallery__caption {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.gallery__progress {
  position: absolute;
  bottom: clamp(2rem, 6vh, 3.5rem);
  left: var(--pad);
  right: var(--pad);
  height: 1px;
  background: var(--line);
}

.gallery__progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* Touch: natürliches horizontales Scrollen statt Pin */
@media (hover: none) {
  .gallery__pin { height: auto; padding: clamp(4rem, 10vh, 6rem) 0; display: block; }
  .section-head--gallery { position: static; margin-bottom: 2rem; }
  .gallery__track {
    width: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    transform: none !important;
  }
  .gallery__progress { display: none; }
}

/* ---------- Über uns ---------- */

.about {
  padding: clamp(7rem, 18vh, 12rem) var(--pad);
}

.about__inner { max-width: 68rem; margin: 0 auto; }

.about__statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 4.4vw, 3.6rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.about__statement em { color: var(--accent-soft); }

.about__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: clamp(3rem, 9vh, 5.5rem);
  padding-top: 2.6rem;
  border-top: 1px solid var(--line-dark);
}

.fact__num {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  line-height: 1.1;
}

.fact__label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  opacity: 0.6;
}

/* ---------- Kontakt ---------- */

.contact {
  padding: 0 var(--pad) clamp(6rem, 14vh, 10rem);
  text-align: center;
}

.contact__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 1.04;
}

.contact__title em { color: var(--accent-soft); }

.contact__text {
  max-width: 32rem;
  margin: 1.6rem auto 0;
  opacity: 0.65;
}

.contact__mail {
  display: inline-block;
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 5vw, 4rem);
  letter-spacing: -0.01em;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.3rem;
}

.contact__mail::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.contact__mail:hover::after { transform: scaleX(0.2); }

.contact__actions {
  display: flex;
  justify-content: center;
  margin-top: 2.4rem;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 99px;
  padding: 0.95rem 2.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.45s var(--ease), border-color 0.45s;
}

/* Füll-Sweep von unten beim Hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--cream);
  translate: 0 102%;
  transition: translate 0.5s var(--ease);
}

.btn:hover { color: var(--bg-dark); border-color: var(--cream); }
.btn:hover::after { translate: 0 0; }

.btn--dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.btn--dark::after { background: var(--accent); }
.btn--dark:hover { border-color: var(--accent); color: var(--cream); }

.btn--outline {
  border-color: var(--line);
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--sans);
}

.btn--outline::after { background: var(--ink); }
.btn--outline:hover { border-color: var(--ink); color: var(--cream); }

.btn--wa { gap: 0.55rem; }
.btn--wa::after { background: #1FAF38; }
.btn--wa:hover { border-color: #1FAF38; color: var(--cream); }

.btn--outline.is-copied { border-color: var(--accent); color: var(--accent); }

.overlay__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ---------- Footer ---------- */

.site-footer { overflow: hidden; }

.site-footer__big {
  display: flex;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 12.8vw, 14rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(244, 240, 232, 0.14);
  white-space: nowrap;
  user-select: none;
  padding-top: 2rem;
}

.site-footer__big span {
  display: inline-block;
  transition: transform 0.5s var(--ease), color 0.5s;
}

.site-footer__big span:hover {
  transform: translateY(-0.08em);
  color: var(--accent-soft);
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding: 1.6rem var(--pad) 2rem;
  font-size: 0.85rem;
  opacity: 0.65;
}

.site-footer__nav { display: flex; gap: 1.5rem; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { color: var(--accent-soft); }

/* ---------- Detail-Overlay ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: flex-end;
}

.overlay[hidden] { display: none; }

.overlay__scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 17, 16, 0.72);
  opacity: 0;
  transition: opacity 0.55s;
}

.overlay.is-open .overlay__scrim { opacity: 1; }

.overlay__panel {
  position: relative;
  width: min(62rem, 100%);
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.75s var(--ease-out);
}

.overlay.is-open .overlay__panel { transform: translateX(0); }

.overlay__close {
  position: sticky;
  top: 1.2rem;
  margin-left: calc(100% - 4.4rem);
  margin-right: 1.2rem;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.35s, rotate 0.45s var(--ease);
}

.overlay__close:hover { background: var(--accent); rotate: 90deg; }

.overlay__gallery {
  padding: 0 clamp(1.2rem, 4vw, 3.2rem);
  margin-top: -2rem;
}

.overlay__stage {
  position: relative;
  overflow: hidden;
}

.overlay__stage img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.stage-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: none;
  border-radius: 50%;
  background: rgba(244, 240, 232, 0.92);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s, scale 0.3s var(--ease);
}

.stage-nav:hover { background: var(--cream); scale: 1.08; }
.stage-nav--prev { left: 1.1rem; }
.stage-nav--next { right: 1.1rem; }

.overlay__counter {
  position: absolute;
  bottom: 1rem;
  right: 1.2rem;
  background: rgba(18, 17, 16, 0.65);
  color: var(--cream);
  border-radius: 99px;
  padding: 0.25rem 0.85rem;
  font-size: 0.8rem;
}

.overlay__thumbs {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.overlay__thumbs button {
  flex: 0 0 auto;
  width: 5.6rem;
  aspect-ratio: 4 / 3;
  border: 2px solid transparent;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: none;
  opacity: 0.5;
  transition: opacity 0.3s, border-color 0.3s;
}

.overlay__thumbs button img { width: 100%; height: 100%; object-fit: cover; }

.overlay__thumbs button.is-active,
.overlay__thumbs button:hover { opacity: 1; border-color: var(--accent); }

.overlay__body {
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.2rem, 4vw, 3.2rem) clamp(3rem, 6vw, 4.5rem);
}

.overlay__kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.overlay__title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.06;
  margin-top: 0.6rem;
}

.overlay__subtitle {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.overlay__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.overlay__facts dt {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.overlay__facts dd {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin-top: 0.2rem;
}

.overlay__desc {
  margin-top: 2rem;
  max-width: 44rem;
  color: #423c33;
}

.overlay__h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin-top: 2.4rem;
}

.overlay__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin-top: 1.1rem;
}

.overlay__amenities li {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.42rem 1.05rem;
  font-size: 0.88rem;
}

.overlay__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.overlay__price { font-family: var(--serif); font-size: 1.3rem; }

.overlay__price small {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

body.overlay-open { overflow: hidden; }

/* ============================================================
   Detailseite einer Unterkunft (seebrise.html usw.)
   ============================================================ */

.detail-page { background: var(--bg); }

/* Header schwebt über dem Vollbild-Hero */
.detail-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem var(--pad);
  color: var(--cream);
}

.detail-header .brand { color: var(--cream); }

.detail-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.9rem;
  font-weight: 500;
}

.detail-header__nav a { text-decoration: none; }
.detail-header__nav a:not(.detail-header__cta):hover { color: var(--accent); }

.detail-header__cta {
  border: 1px solid rgba(244, 240, 232, 0.55);
  border-radius: 99px;
  padding: 0.45rem 1.15rem;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s;
}

.detail-header__cta:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }

/* Vollbild-Hero der Detailseite */
.detail__hero {
  position: relative;
  height: min(88svh, 52rem);
  min-height: 28rem;
  overflow: hidden;
}

.detail__hero-media {
  position: absolute;
  inset: 0;
}

.detail__hero-media img {
  width: 100%;
  height: 114%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 1.8s var(--ease-out);
  will-change: transform;
}

body.detail-loaded .detail__hero-media img { transform: scale(1.02); }

.detail__hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(18, 17, 16, 0.18), rgba(18, 17, 16, 0.18)),
    linear-gradient(180deg, rgba(18, 17, 16, 0.5) 0%, rgba(18, 17, 16, 0) 30%),
    linear-gradient(180deg, rgba(18, 17, 16, 0) 35%, rgba(18, 17, 16, 0.74) 100%);
}

.detail__hero-content {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(2.4rem, 8vh, 5rem);
  color: var(--cream);
}

.detail__kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-soft);
  opacity: 0;
  transition: opacity 0.9s 0.5s;
}

body.detail-loaded .detail__kicker { opacity: 1; }

.detail__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9.5vw, 8.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 0.6rem;
}

.detail__title .line { display: block; overflow: hidden; }

.detail__title .line__inner {
  display: block;
  transform: translateY(112%) rotate(2.2deg);
  transform-origin: 0 100%;
  transition: transform 1.1s var(--ease-out) 0.25s;
}

body.detail-loaded .detail__title .line__inner { transform: translateY(0) rotate(0deg); }

.detail__motto {
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  color: rgba(244, 240, 232, 0.85);
  opacity: 0;
  transition: opacity 0.9s 0.7s;
}

body.detail-loaded .detail__motto { opacity: 1; }

.detail__head {
  padding: clamp(2.6rem, 7vh, 4.5rem) var(--pad) clamp(1.5rem, 4vh, 2.5rem);
  max-width: 72rem;
}

.detail__subtitle {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  max-width: 42rem;
}

.detail__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem clamp(2rem, 5vw, 4rem);
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.detail__facts dt {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.detail__facts dd {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin-top: 0.15rem;
}

.detail__body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 8vh, 5rem) var(--pad);
  max-width: 80rem;
}

.detail__body h2,
.detail__gallery h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.detail__gallery h2 span {
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-soft);
}

.detail__desc p {
  color: #423c33;
  max-width: 40rem;
}

/* Ausstattung läuft auf Desktop beim Scrollen mit (Katalog-Gefühl) */
.detail__aside {
  position: sticky;
  top: 5.5rem;
  align-self: start;
}

.detail__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.detail__amenities li {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.42rem 1.05rem;
  font-size: 0.88rem;
}

/* Großes Zitat — die poetische Mitte jeder Unterkunftsseite (Vendôme-Prinzip) */
.detail__quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
  padding: clamp(4rem, 12vh, 8rem) var(--pad);
  max-width: 64rem;
  margin: 0 auto;
}

.detail__quote-caption {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.detail__quote blockquote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.9rem, 5vw, 3.8rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.detail__quote-rule {
  width: 4.5rem;
  height: 1px;
  background: var(--accent);
}

.detail__gallery { padding: 0 var(--pad); }

.detail__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.8rem, 2vw, 1.6rem);
  margin-top: 1.4rem;
}

.detail__item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}

/* Katalog-Nummerierung auf jedem Galerie-Bild */
.detail__item figcaption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.8rem;
  padding: 0.28rem 0.75rem;
  border-radius: 99px;
  background: rgba(18, 17, 16, 0.5);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  pointer-events: none;
}

/* Editorialer Rhythmus: jedes fünfte Bild volle Breite */
.detail__item--wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 10;
}

.detail__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.9s var(--ease);
}

.detail__item:hover img { scale: 1.05; }

.detail__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin: clamp(3rem, 8vh, 5rem) var(--pad) clamp(3rem, 8vh, 5rem);
  padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  max-width: calc(80rem - 2 * var(--pad));
}

.detail__price { font-family: var(--serif); font-size: 1.4rem; }
.detail__price-hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.2rem; }

.detail__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* „Nächste Unterkunft“ — fließender Übergang zur nächsten Seite */
.detail__next {
  position: relative;
  display: block;
  height: clamp(18rem, 55vh, 32rem);
  overflow: hidden;
  text-decoration: none;
  color: var(--cream);
}

.detail__next img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.4s var(--ease);
}

.detail__next:hover img { scale: 1.06; }

.detail__next-shade {
  position: absolute;
  inset: 0;
  background: rgba(18, 17, 16, 0.52);
  transition: background 0.6s;
}

.detail__next:hover .detail__next-shade { background: rgba(18, 17, 16, 0.38); }

.detail__next-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  padding: 0 var(--pad);
}

.detail__next-content p {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.75);
}

.detail__next-content h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.detail__next-content span {
  font-size: 0.92rem;
  color: rgba(244, 240, 232, 0.75);
}

.detail-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding: 1.4rem var(--pad) 1.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Rechtsseiten (Impressum) ---------- */

.detail-header--solid {
  position: static;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.detail-header--solid .brand { color: var(--ink); }

.detail-header--solid .detail-header__cta { border-color: var(--ink); }
.detail-header--solid .detail-header__cta:hover { background: var(--ink); color: var(--cream); }

.legal {
  max-width: 46rem;
  padding: clamp(3rem, 8vh, 5rem) var(--pad) clamp(4rem, 10vh, 6rem);
}

.legal h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 2.2rem 0 0.6rem;
}

.legal p { color: #423c33; }
.legal a { color: var(--accent); }

.detail-footer a { text-decoration: none; }
.detail-footer a:hover { color: var(--accent); }

/* Sanfte Reveals der Detailseite */
.d-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.d-reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(18, 17, 16, 0.92);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.35s;
}

.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox img {
  max-width: min(92vw, 80rem);
  max-height: 86vh;
  object-fit: contain;
}

.lightbox__close,
.lightbox__nav {
  position: fixed;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: rgba(244, 240, 232, 0.12);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.3s;
}

.lightbox__close:hover,
.lightbox__nav:hover { background: var(--accent); }

.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav--prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

.lightbox__counter {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(244, 240, 232, 0.75);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

@media (max-width: 700px) {
  .detail__body { grid-template-columns: 1fr; }
  .detail__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Scroll-Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.3s var(--ease-out);
}

.reveal-img.in-view { clip-path: inset(0 0 0 0); }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .card,
  .card:nth-child(even) { grid-template-columns: 1fr; align-items: start; }
  .card:nth-child(even) .card__media { order: 0; }
  .card:nth-child(even) .card__body { order: 1; }
  .card__ghost { display: none; }

  .about__facts { grid-template-columns: 1fr 1fr; }

  .site-nav sup { display: none; }
  .site-nav { font-size: 0.78rem; gap: 0.9rem; }

  .hero__bar { flex-wrap: wrap; }
  .hero__scroll { display: none; }

  /* Leiste umbricht hier mehrzeilig und ragt höher — Headline darüber halten,
     sonst durchstreicht ihre Trennlinie die letzte Titelzeile */
  .hero__content { bottom: clamp(12.5rem, 26vh, 15rem); }
}

@media (max-width: 520px) {
  .about__facts { grid-template-columns: 1fr; gap: 1.5rem; }
  .overlay__stage img { aspect-ratio: 4 / 3; }
  .site-nav a:not(:last-child) { display: none; }
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-img { opacity: 1; transform: none; clip-path: none; }
  .hero__title .line__inner, .hero__kicker span { transform: none; }
  .hero__bar, .hero__side { opacity: 1; }
  .manifesto__text .w { opacity: 1 !important; }
  .loader { display: none; }
  .noise { animation: none; }
}
