/* PrimeStay Bottrop – Website
   Tokens, Typografie, Layout, Bewegung. Keine Abhängigkeiten, kein Build-Schritt.
   Schriften liegen lokal in /fonts (kein Aufruf fremder Server). */

/* ---------- Schriften ---------- */
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --espresso: #1c1715;
  --rauch: #2b2522;
  --rauch-2: #3a322d;
  --gold: #c4a265;
  --gold-hell: #e6d3a6;
  --gold-tief: #8a6d3a;
  --papier: #faf8f4;
  --putz: #efeae2;
  --elfenbein: #f2ece3;

  --bg: var(--papier);
  --surface: #ffffff;
  --text: var(--espresso);
  --text-2: #3f3833;
  --muted: #6e655d;
  --line: rgba(28, 23, 21, 0.14);
  --line-strong: rgba(28, 23, 21, 0.3);
  --accent-text: var(--gold-tief);
  --shadow: 0 26px 60px -30px rgba(28, 23, 21, 0.45);
  --media-bg: var(--putz);

  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1320px;
  --nav-h: 76px;
  --radius: 16px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: var(--espresso);
  --surface: var(--rauch);
  --text: var(--elfenbein);
  --text-2: #d8d0c5;
  --muted: #a79d92;
  --line: rgba(242, 236, 227, 0.14);
  --line-strong: rgba(242, 236, 227, 0.32);
  --accent-text: var(--gold-hell);
  --shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.75);
  --media-bg: var(--rauch-2);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--espresso);
    --surface: var(--rauch);
    --text: var(--elfenbein);
    --text-2: #d8d0c5;
    --muted: #a79d92;
    --line: rgba(242, 236, 227, 0.14);
    --line-strong: rgba(242, 236, 227, 0.32);
    --accent-text: var(--gold-hell);
    --shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.75);
    --media-bg: var(--rauch-2);
    color-scheme: dark;
  }
}

/* Dunkle Bühnen (Hero, Buchen) bleiben in beiden Designs dunkel. */
.is-dark {
  --bg: var(--espresso);
  --surface: var(--rauch);
  --text: var(--elfenbein);
  --text-2: #d8d0c5;
  --muted: #a79d92;
  --line: rgba(242, 236, 227, 0.14);
  --line-strong: rgba(242, 236, 227, 0.32);
  --accent-text: var(--gold-hell);
  --shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.75);
  --media-bg: var(--rauch-2);
  background: var(--bg);
  color: var(--text);
}

/* ---------- Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s, color 0.4s;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--gold);
  color: var(--espresso);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--espresso);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
.wrap {
  width: min(100%, var(--max));
  margin-inline: auto;
}

/* ---------- Typografie ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: miter;
}
.display {
  margin: 18px 0 22px;
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.display em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: -0.01em;
}
.lead {
  margin: 0 0 24px;
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--solid {
  background: var(--gold);
  color: var(--espresso);
}
.btn--solid:hover {
  background: var(--gold-hell);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: inherit;
}
.btn--ghost:hover {
  border-color: currentColor;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}
.icon-btn:hover {
  border-color: currentColor;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--gutter);
  color: var(--elfenbein);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.nav.is-scrolled,
.nav--solid {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  color: var(--text);
  border-bottom-color: var(--line);
}
.nav.is-menu-open {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--elfenbein);
  border-bottom-color: transparent;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.mark {
  width: 30px;
  height: 30px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: miter;
}
.mark rect {
  fill: var(--gold);
  stroke: none;
}
.nav__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav__name small {
  display: block;
  margin-top: 5px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav__links {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after {
  transform: scaleX(1);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav .btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}
.theme-toggle .pane {
  fill: none;
  transition: fill 0.3s;
}
:root[data-theme="dark"] .theme-toggle .pane {
  fill: var(--gold);
  stroke: var(--gold);
}
.burger {
  display: none;
}
.burger path {
  transition: transform 0.35s var(--ease);
  transform-origin: center;
}
.burger[aria-expanded="true"] .l1 {
  transform: translateY(4px) rotate(45deg);
}
.burger[aria-expanded="true"] .l2 {
  transform: translateY(-4px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: calc(var(--nav-h) + 16px) var(--gutter) 40px;
  background: var(--espresso);
  color: var(--elfenbein);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.55s var(--ease), opacity 0.4s, visibility 0s 0.55s;
}
.menu.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: transform 0.55s var(--ease), opacity 0.3s;
}
.menu a {
  text-decoration: none;
}
.menu__links {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu__links a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(242, 236, 227, 0.12);
  font-family: var(--font-display);
  font-size: clamp(2rem, 8.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
}
.menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 45% at 50% 42%, rgba(196, 162, 101, 0.17), transparent 70%),
    radial-gradient(40% 28% at 50% 100%, rgba(196, 162, 101, 0.08), transparent 70%);
}
.hero__stage {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  padding: calc(var(--nav-h) + 12px) var(--gutter) 10px;
}
.logo {
  width: min(880px, 94vw);
  height: auto;
  max-height: min(560px, 56svh);
  overflow: visible;
}
.logo .roof,
.logo .wall {
  fill: none;
  stroke: var(--elfenbein);
  stroke-width: 5;
  stroke-linejoin: miter;
  stroke-linecap: butt;
}
.logo .pane {
  fill: var(--gold);
}
.logo .word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 190px;
  fill: var(--elfenbein);
}
.logo .city {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 44px;
  letter-spacing: 0.62em;
  fill: var(--elfenbein);
}
.logo .rule {
  stroke: var(--gold);
  stroke-width: 4;
}
.logo .tag {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 41px;
  letter-spacing: 0.1em;
  fill: var(--elfenbein);
}
.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.hero__scroll i {
  display: block;
  width: 1px;
  height: 34px;
  background: currentColor;
}
.hero__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 40px;
  padding: 26px var(--gutter) 32px;
  border-top: 1px solid var(--line);
}
.hero__claim {
  margin: 0;
  max-width: 50ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
.hero__portals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Startsequenz: nur mit JS und ohne Wunsch nach reduzierter Bewegung. */
@media (prefers-reduced-motion: no-preference) {
  html.js .logo .roof {
    stroke-dasharray: 412;
    stroke-dashoffset: 412;
  }
  html.js .logo .wall {
    stroke-dasharray: 132;
    stroke-dashoffset: 132;
  }
  html.js .logo .pane {
    opacity: 0;
    transform: scale(0.5);
    transform-box: fill-box;
    transform-origin: center;
  }
  html.js .logo .word-group,
  html.js .logo .tag-group {
    opacity: 0;
    transform: translateY(18px);
  }
  html.js .logo .city {
    opacity: 0;
    transform: scaleX(0.86);
    transform-box: fill-box;
    transform-origin: center;
  }
  html.js .logo .rule {
    transform: scaleX(0);
    transform-box: fill-box;
  }
  html.js .logo .rule--l {
    transform-origin: right center;
  }
  html.js .logo .rule--r {
    transform-origin: left center;
  }
  html.js .hero__scroll,
  html.js .hero__bar,
  html.js .nav:not(.nav--solid) {
    opacity: 0;
  }

  .hero.is-ready .roof {
    animation: draw 0.95s var(--ease) forwards;
  }
  .hero.is-ready .wall {
    animation: draw 0.5s 0.8s ease-out forwards;
  }
  .hero.is-ready .pane {
    animation: pane 0.5s var(--ease) forwards;
  }
  .hero.is-ready .pane:nth-of-type(1) { animation-delay: 1.15s; }
  .hero.is-ready .pane:nth-of-type(2) { animation-delay: 1.27s; }
  .hero.is-ready .pane:nth-of-type(3) { animation-delay: 1.39s; }
  .hero.is-ready .pane:nth-of-type(4) { animation-delay: 1.51s; }
  .hero.is-ready .word-group {
    animation: rise 0.9s 1.4s var(--ease) forwards;
  }
  .hero.is-ready .city {
    animation: widen 0.9s 1.8s var(--ease) forwards;
  }
  .hero.is-ready .rule {
    animation: grow 0.8s 1.95s var(--ease) forwards;
  }
  .hero.is-ready .tag-group {
    animation: rise 0.8s 2.15s var(--ease) forwards;
  }
  .hero.is-ready .hero__scroll,
  .hero.is-ready .hero__bar,
  .nav.is-ready {
    animation: fade 0.9s 2.45s ease forwards;
  }
  .hero.is-ready .hero__scroll i {
    animation: scrollhint 2.4s 3.4s var(--ease) infinite;
  }
  /* Wer die Seite bereits gescrollt öffnet (z. B. #lage), bekommt alles sofort. */
  html.is-instant .hero *,
  html.is-instant .hero__scroll,
  html.is-instant .hero__bar,
  html.is-instant .nav {
    animation-duration: 0.01s !important;
    animation-delay: 0s !important;
  }
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@keyframes pane {
  to { opacity: 1; transform: scale(1); }
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes widen {
  to { opacity: 1; transform: scaleX(1); }
}
@keyframes grow {
  to { transform: scaleX(1); }
}
@keyframes fade {
  to { opacity: 1; }
}
@keyframes scrollhint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Scroll-Enthüllung ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  html.js [data-reveal].in {
    opacity: 1;
    transform: none;
  }
  html.js [data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  html.js [data-reveal-stagger].in > * {
    opacity: 1;
    transform: none;
  }
  html.js [data-reveal-stagger].in > :nth-child(2) { transition-delay: 0.07s; }
  html.js [data-reveal-stagger].in > :nth-child(3) { transition-delay: 0.14s; }
  html.js [data-reveal-stagger].in > :nth-child(4) { transition-delay: 0.21s; }
  html.js [data-reveal-stagger].in > :nth-child(5) { transition-delay: 0.28s; }
  html.js [data-reveal-stagger].in > :nth-child(6) { transition-delay: 0.35s; }
  html.js [data-reveal-stagger].in > :nth-child(7) { transition-delay: 0.42s; }
  html.js [data-reveal-stagger].in > :nth-child(8) { transition-delay: 0.49s; }
  html.js .radar .poi {
    opacity: 0;
    transition: opacity 0.6s ease;
    transition-delay: calc(var(--i, 0) * 70ms + 0.3s);
  }
  html.js .location__radar.in .radar .poi {
    opacity: 1;
  }
}

/* ---------- Abschnitte ---------- */
.section {
  padding: clamp(88px, 11vw, 150px) var(--gutter);
}
.section__head {
  max-width: 820px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

/* Apartments */
.apartments .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.apartments__intro {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}
.audience {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.audience dt {
  grid-row: 1 / span 3;
  padding-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.audience dd {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: var(--text-2);
}
.audience dd::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: translateY(-1px);
}
.apartments__list {
  display: grid;
  gap: clamp(48px, 7vw, 88px);
}
.apt {
  display: grid;
  gap: 24px;
}
.apt__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--media-bg);
  box-shadow: var(--shadow);
}
.apt__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.apt:hover .apt__media img {
  transform: scale(1.035);
}
.apt__media.is-empty img {
  display: none;
}
.apt__placeholder {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.apt__media.is-empty .apt__placeholder {
  display: block;
}
.apt__placeholder .house {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linejoin: miter;
  opacity: 0.32;
}
.apt__placeholder .pane {
  fill: var(--gold);
}
.apt__note {
  display: none;
  position: absolute;
  left: 18px;
  bottom: 16px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.apt__media.is-empty .apt__note {
  display: block;
}
/* Fotogalerie: zwei Hochformat-Fotos nebeneinander, auf dem Handy eins, mit Scroll-Snap */
.apt__media.gallery {
  aspect-ratio: 3 / 2;
  background: var(--bg);
}
.gallery__track {
  display: flex;
  gap: 3px;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery__track::-webkit-scrollbar {
  display: none;
}
.gallery__track:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.gallery__track img {
  flex: 0 0 calc(50% - 1.5px);
  width: auto;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  background: var(--media-bg);
}
.apt:hover .gallery__track img {
  transform: none;
}
.gallery__bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: rgba(28, 23, 21, 0.74);
  color: var(--elfenbein);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
}
.gallery__caption {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery__nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
}
.gallery__btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0 0 2px;
  border-radius: 999px;
  border: 1px solid rgba(242, 236, 227, 0.3);
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.gallery__btn:hover {
  background: rgba(242, 236, 227, 0.14);
  border-color: rgba(242, 236, 227, 0.6);
}
.gallery__btn:focus-visible {
  outline-color: var(--gold-hell);
}
.gallery__count {
  min-width: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.gallery__count b {
  font-weight: 700;
}

.apt__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.apt__code {
  padding: 7px 11px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--accent-text);
}
.apt__title {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.apt__guests {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}
.apt__text {
  margin: 0;
  max-width: 60ch;
  color: var(--text-2);
}
.apt__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}
.apt__facts li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.apt__facts li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold);
}
.apt__book {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

/* Portal-Knöpfe (Booking.com / Airbnb) */
.portal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s, background-color 0.25s;
}
.portal:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.portal--ghost {
  background: transparent;
}
.portal__icon {
  width: 22px;
  height: 22px;
  flex: none;
}
.portal--airbnb .portal__icon {
  color: #ff5a5f;
}
.portal__sub {
  font-weight: 500;
  color: var(--muted);
}
.portal.is-pending,
.listing.is-pending {
  border-style: dashed;
  color: var(--muted);
  cursor: not-allowed;
}
.portal.is-pending:hover,
.listing.is-pending:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line-strong);
}
.portal.is-pending::after {
  content: "Link folgt";
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent-text);
}

/* Marken-Lockups in den Buchungskarten */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-lockup__icon {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand-lockup--booking {
  color: #0c3b7c;
}
.is-dark .brand-lockup--booking,
:root[data-theme="dark"] .brand-lockup--booking {
  color: var(--elfenbein);
}
.brand-lockup--airbnb svg {
  height: 30px;
  width: auto;
  color: #ff5a5f;
}

/* Ausstattung */
.amenities__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.amenity {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 30px 26px 32px;
  background: var(--surface);
}
.amenity svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.amenity svg .dot {
  fill: var(--gold);
  stroke: none;
}
.amenity h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.amenity p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}
.amenities__note {
  margin: 18px 0 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Lage */
.location .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.location address {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.25;
}
.location__text p {
  max-width: 52ch;
  color: var(--text-2);
}
.location__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}
.distances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
}
.distances li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: color 0.2s;
}
.distances li:hover,
.distances li.is-active {
  color: var(--accent-text);
}
.distances .km {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--muted);
}
.distances__note {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.radar {
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--font-sans);
}
.radar .ring {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}
.radar .ring-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  fill: var(--muted);
}
.radar .compass {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  fill: var(--muted);
}
.radar .home {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.7;
  stroke-linejoin: miter;
}
.radar .home-pane {
  fill: var(--gold);
}
.radar .home-bg {
  fill: var(--bg);
}
.radar .poi {
  cursor: default;
}
.radar .spoke {
  stroke: var(--gold);
  stroke-width: 1;
  opacity: 0;
  transition: opacity 0.3s;
}
.radar .spot {
  fill: var(--gold);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.radar .halo {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  opacity: 0.4;
}
.radar .label {
  font-size: 12.5px;
  font-weight: 600;
  fill: var(--text);
  transition: fill 0.2s;
}
.radar .km {
  font-weight: 500;
  fill: var(--muted);
}
.radar .poi:hover .spoke,
.radar .poi.is-active .spoke {
  opacity: 0.85;
}
.radar .poi:hover .spot,
.radar .poi.is-active .spot {
  transform: scale(1.6);
}
.radar .poi:hover .label,
.radar .poi.is-active .label {
  fill: var(--accent-text);
}

/* Buchen / Kontakt */
.booking__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.card h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-2);
}
.card__actions {
  display: grid;
  gap: 10px;
}
.card--direct {
  background: var(--gold);
  color: var(--espresso);
  border-color: transparent;
  --text-2: #3f3222;
  --muted: #5a4a2c;
}
.card--direct .btn--solid {
  background: var(--espresso);
  color: var(--elfenbein);
}
.card--direct .btn--solid:hover {
  background: var(--rauch-2);
}
.card--direct .btn--ghost {
  border-color: rgba(28, 23, 21, 0.4);
}
.card--direct .btn--ghost:hover {
  border-color: var(--espresso);
}
.listing-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.listing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.listing:hover {
  border-color: var(--gold);
  transform: translateX(3px);
}
.listing__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.listing__cta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.listing.is-pending .listing__cta span,
.listing.is-pending .listing__cta svg {
  display: none;
}
.listing.is-pending .listing__cta::after {
  content: "Link folgt";
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent-text);
}

/* ---------- Fußzeile ---------- */
.footer {
  padding: 44px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px 56px;
  align-items: start;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.footer address {
  font-style: normal;
  line-height: 1.6;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__nav a {
  text-decoration: none;
  color: var(--text);
}
.footer__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--gold);
}
.footer__copy {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.made-by {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2px;
  padding: 0.35rem 0;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.made-by .mb-logo {
  flex: none;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(10, 186, 181, 0.28);
}
.made-by strong {
  color: var(--text);
  font-weight: 600;
}
.made-by .mb-sep {
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin: 0 0.55em -0.12em;
  background: var(--line-strong);
}
.made-by .mb-brand {
  color: #0abab5;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.made-by:hover {
  color: #0abab5;
}
.made-by:hover .mb-brand {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Rechtliche Seiten ---------- */
.legal {
  max-width: 760px;
  margin-inline: auto;
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) var(--gutter) clamp(72px, 10vw, 120px);
}
.legal h1 {
  margin: 12px 0 28px;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.legal h2 {
  margin: 2.4em 0 0.6em;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.legal h3 {
  margin: 1.6em 0 0.4em;
  font-size: 1.05rem;
  font-weight: 600;
}
.legal p,
.legal li {
  line-height: 1.65;
  color: var(--text-2);
}
.legal p {
  margin: 0 0 1em;
}
.legal ul {
  padding-left: 1.2em;
}
.legal address {
  margin: 0 0 1em;
  font-style: normal;
  line-height: 1.65;
  color: var(--text-2);
}
.legal a {
  color: var(--text);
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.legal__meta {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.todo {
  padding: 0 0.25em;
  background: color-mix(in srgb, var(--gold) 22%, transparent);
  border-bottom: 1px dashed var(--gold-tief);
}

/* ---------- Responsiv ---------- */
@media (max-width: 1000px) {
  .nav__links,
  .nav .btn {
    display: none;
  }
  .burger {
    display: inline-grid;
  }
  .apartments .wrap,
  .location .wrap {
    grid-template-columns: 1fr;
  }
  .apartments__intro {
    position: static;
  }
  .booking__grid {
    grid-template-columns: 1fr;
  }
  .footer .wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 640px) {
  :root {
    --nav-h: 64px;
  }
  .hero__bar {
    grid-template-columns: 1fr;
    padding-bottom: 28px;
  }
  .distances {
    grid-template-columns: 1fr;
  }
  .nav__name small {
    display: none;
  }
  .apt__guests {
    margin-left: 0;
    width: 100%;
  }
  .apt__media.gallery {
    aspect-ratio: 3 / 4;
  }
  .gallery__track img {
    flex-basis: 100%;
  }
  .gallery__bar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding-left: 12px;
  }
}
