/* =========================================================
   Medulin · Istrien — Website
   Schriften lokal eingebunden (kein externer Request, DSGVO)
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/cormorant-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/cormorant-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/cormorant-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --sand-50:  #FCFAF6;
  --sand-100: #F5F1E9;
  --sand-200: #EAE3D6;
  --sand-300: #DBD2C1;

  --ink:      #21252A;
  --ink-soft: #4A5058;
  --muted:    #757C85;

  --deep:     #14323F;
  --deep-700: #1C4353;
  --deep-900: #0C222C;

  --terra:    #B25A38;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1240px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4rem, 7.5vw, 7.5rem);

  --radius: 3px;
  --shadow: 0 18px 50px -22px rgba(12, 34, 44, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.005em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}

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

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 1.1rem;
  line-height: 1.5;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--deep); color: #fff; padding: .8rem 1.2rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--deep);
  border-radius: var(--radius);
  background: var(--deep);
  color: var(--sand-50);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--deep-700); border-color: var(--deep-700); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--deep); }
.btn-ghost:hover { background: var(--deep); color: var(--sand-50); }

.btn-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem var(--pad);
  color: #fff;
  transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease), padding .45s var(--ease);
}
.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,26,34,.55), rgba(10,26,34,0));
  opacity: 1;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
/* Deckende Kopfzeile: beim Scrollen (is-solid) und auf Seiten ohne Titelbild */
.site-header.is-solid,
.page-legal .site-header {
  background: var(--sand-50);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--sand-200), 0 10px 30px -24px rgba(12,34,44,.5);
  padding-block: .75rem;
}
.site-header.is-solid::before,
.page-legal .site-header::before { opacity: 0; }
.page-legal .lang a:hover { background: var(--sand-100); }

/* Offenes Mobilmenue: heller Hintergrund, daher dunkle Kopfzeile */
.site-header.is-nav-open { color: var(--ink); }
.site-header.is-nav-open::before { opacity: 0; }
.site-header.is-nav-open .lang a:hover { background: var(--sand-100); }

.brand {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.05;
  margin-inline-end: auto;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: .05em;
}
.brand-sub {
  font-size: .58rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .75;
  margin-top: .28rem;
  white-space: nowrap;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.1rem);
}
.nav a {
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .3rem 0;
  position: relative;
  white-space: nowrap;
  opacity: .92;
  transition: opacity .25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.lang {
  position: relative;
  display: flex;
  align-items: center;
  gap: .1rem;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
}
.lang a {
  text-decoration: none;
  padding: .3rem .42rem;
  opacity: .6;
  border-radius: 2px;
  transition: opacity .25s var(--ease), background .25s var(--ease);
}
.lang a:hover { opacity: 1; background: rgba(255,255,255,.14); }
.site-header.is-solid .lang a:hover { background: var(--sand-100); }
.lang a[aria-current='true'] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.lang span { opacity: .3; }

.nav-toggle {
  position: relative;
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 9px;
  width: 24px; height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 58%;
  animation: heroZoom 22s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-media img { animation: none; } }

.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(9,26,34,.50) 0%, rgba(9,26,34,.18) 26%, rgba(9,26,34,.42) 58%, rgba(9,26,34,.86) 100%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 6rem var(--pad) clamp(1.75rem, 3.5vw, 2.75rem);
}
.hero .eyebrow { color: rgba(255,255,255,.88); margin-bottom: .9rem; }
.hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  font-weight: 400;
  max-width: 20ch;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 34px rgba(6,20,27,.55);
}
.hero-lede {
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 300;
  color: rgba(255,255,255,.94);
  margin-bottom: 2rem;
  text-shadow: 0 1px 18px rgba(6,20,27,.6);
}

.hero-facts {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(2px);
}
.hero-facts dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.hero-facts dl > div {
  padding: 1.15rem 1.2rem 1.25rem 0;
  border-left: 1px solid rgba(255,255,255,.16);
  padding-left: 1.4rem;
}
.hero-facts dl > div:first-child { border-left: 0; padding-left: 0; }
.hero-facts dt {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.68);
  margin-bottom: .45rem;
}
.hero-facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  line-height: 1.25;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-sand { background: var(--sand-100); }

.section-head { max-width: 62ch; }
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  margin-bottom: 1.5rem;
}
.section-head p { color: var(--ink-soft); font-weight: 300; font-size: 1.05rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

/* ---------- Objekt-Bildraster ---------- */
.object-grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.5rem, 1vw, .9rem);
}
.object-grid a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand-200);
}
.object-grid a:first-child { grid-column: span 2; grid-row: span 2; }
.object-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform .8s var(--ease);
}
.object-grid a:first-child img { aspect-ratio: auto; min-height: 100%; }
.object-grid a:hover img { transform: scale(1.045); }

/* ---------- Wohnungen ---------- */
.unit { padding-block: var(--section-y); }
.unit-alt { background: var(--sand-100); }
/* Zwei Sektionen mit gleichem Hintergrund: doppelten Abstand halbieren */
.section + .unit:not(.unit-alt) { padding-top: calc(var(--section-y) * .45); }

.unit-head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: start;
  padding-bottom: clamp(2.25rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--sand-300);
}
.unit-head h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  margin-bottom: 1.25rem;
}
.unit-price {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--deep);
  border: 1px solid var(--sand-300);
  background: var(--sand-50);
  border-radius: 100px;
  padding: .5rem 1.15rem;
  margin: 0;
}
.unit-alt .unit-price { background: #fff; }
.unit-head-right p { color: var(--ink-soft); }
.unit-head-right p:first-child {
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  font-weight: 300;
  line-height: 1.62;
  color: var(--ink);
}

.specs {
  margin: 0;
  padding: clamp(2rem, 3.5vw, 2.75rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.1rem, 2.2vw, 1.75rem);
}
.specs > div { min-width: 0; }
.specs dt {
  font-size: .62rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.specs dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.24;
  color: var(--ink);
}

/* ---------- Galerien ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.5rem, 1vw, .9rem);
}
.gallery a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand-200);
  cursor: zoom-in;
}
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
/* Fuellt die letzte Rasterreihe, wenn die Bildanzahl nicht aufgeht */
.gallery a.wide { grid-column: span 2; }
.gallery a.wide img { aspect-ratio: 8 / 3; }
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform .8s var(--ease);
}
.gallery a:first-child img { aspect-ratio: auto; min-height: 100%; }
.gallery a:hover img { transform: scale(1.045); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.4rem .9rem .75rem;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(10,26,34,.7), rgba(10,26,34,0));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.gallery a:hover figcaption,
.gallery a:focus-visible figcaption { opacity: 1; }

.unit-actions {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: center;
}

/* ---------- Ausstattung ---------- */
.features {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sand-300);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  overflow: hidden;
}
.features > div {
  background: var(--sand-50);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.features dt {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: .6rem;
}
.features dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.65;
}

/* ---------- Haeufige Fragen ---------- */
.faq {
  margin-top: clamp(2.25rem, 4.5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3rem) clamp(2rem, 5vw, 4.5rem);
}
.faq-item { border-top: 1px solid var(--sand-300); padding-top: 1.35rem; }
.faq-item h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.25;
  margin-bottom: .65rem;
}
.faq-item p {
  color: var(--ink-soft);
  font-weight: 300;
  font-size: .96rem;
  line-height: 1.7;
}

/* ---------- Lage ---------- */
.location { position: relative; background: var(--deep); color: var(--sand-50); }
.location-media { position: relative; height: clamp(300px, 46vh, 520px); overflow: hidden; }
.location-media img { width: 100%; height: 100%; object-fit: cover; }
.location-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,50,63,0) 40%, rgba(20,50,63,.95) 100%);
}
.location-body { padding-block: clamp(3rem, 6vw, 5rem) var(--section-y); }
.location .eyebrow { color: #E3A183; }
.location h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin-bottom: 1.5rem; }
.location p { color: rgba(252,250,246,.82); font-weight: 300; }

.distances {
  margin: clamp(2.5rem, 5vw, 3.75rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.distances > div { border-top: 1px solid rgba(252,250,246,.22); padding-top: 1.15rem; }
.distances dt {
  font-size: .62rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: rgba(252,250,246,.6);
  margin-bottom: .5rem;
}
.distances dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.28;
}

/* ---------- Kontakt ---------- */
.contact { padding-block: var(--section-y); background: var(--sand-100); }
.contact h2 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); margin-bottom: 1.4rem; }
.contact-lede { color: var(--ink-soft); font-weight: 300; font-size: 1.06rem; max-width: 46ch; }

.contact-card {
  background: var(--sand-50);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
}
.contact-card .who {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 0 0 .3rem;
}
.contact-card .role {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.contact-lines { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.contact-lines li { border-top: 1px solid var(--sand-200); }
.contact-lines li:last-child { border-bottom: 1px solid var(--sand-200); }
.contact-lines a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .9rem 0;
  text-decoration: none;
  transition: color .25s var(--ease);
}
.contact-lines a:hover { color: var(--terra); }
.contact-lines .label {
  font-size: .62rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--muted);
  flex: none;
}
.contact-lines .value { font-size: 1.02rem; text-align: right; word-break: break-word; }

.downloads { list-style: none; margin: 2.25rem 0 0; padding: 0; }
.downloads li { border-top: 1px solid var(--sand-300); }
.downloads a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 0;
  text-decoration: none;
  font-size: .95rem;
  transition: color .25s var(--ease), padding-inline-start .25s var(--ease);
}
.downloads a:hover { color: var(--terra); padding-inline-start: .4rem; }
.downloads .meta { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); flex: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep-900);
  color: rgba(252,250,246,.72);
  padding-block: clamp(2.75rem, 5vw, 4rem);
  font-size: .88rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 3rem;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(252,250,246,.14);
}
.site-footer .brand-mark { font-size: 1.5rem; color: var(--sand-50); }
.site-footer .brand-sub { color: rgba(252,250,246,.55); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.1rem 1.9rem; }
.footer-nav a {
  text-decoration: none;
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: color .25s var(--ease);
}
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(252,250,246,.5);
}

/* ---------- Rechtstexte ---------- */
.legal { padding-block: calc(var(--section-y) + 3rem) var(--section-y); }
.legal-inner { max-width: 68ch; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 2rem; }
.legal h2 {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 3rem 0 1rem;
}
.legal p, .legal li { color: var(--ink-soft); font-weight: 300; }
.legal address { font-style: normal; }
.legal a { color: var(--deep); text-underline-offset: 3px; }
.legal ul { padding-inline-start: 1.2rem; }
.legal li { margin-bottom: .4rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 20, 26, .95);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; }
.lightbox figure {
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  align-items: center;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100svh - 9rem);
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
  animation: lbIn .4s var(--ease);
}
@keyframes lbIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lightbox img { animation: none; } }

.lightbox figcaption {
  color: rgba(255,255,255,.75);
  font-size: .74rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-align: center;
}
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.6); }
.lb-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lb-prev { left: clamp(.5rem, 2.5vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(.5rem, 2.5vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-count {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: .74rem;
  letter-spacing: .16em;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .specs { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .distances { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; order: 3; }
  .lang { order: 2; margin-inline-start: auto; }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .35rem;
    padding: 5rem var(--pad) 3rem;
    background: var(--sand-50);
    color: var(--ink);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav a {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    padding: .5rem 0;
  }
  .nav a::after { display: none; }

  .split,
  .faq,
  .unit-head { grid-template-columns: 1fr; }
  .hero-facts dl { grid-template-columns: repeat(2, 1fr); }
  .hero-facts dl > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero-facts dl > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.16); }
  .hero-facts dl > div { padding-block: 1.05rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .brand-mark { font-size: 1.35rem; }
  .brand-sub { font-size: .5rem; letter-spacing: .22em; }
  .lang { font-size: .64rem; }
  .lang a { padding: .3rem .3rem; }

  .hero-inner { padding-top: 5rem; }
  .hero h1 { font-size: 2.05rem; margin-bottom: 1rem; }
  .hero-lede { margin-bottom: 1.6rem; }
  .btn { padding: .85rem 1.4rem; font-size: .74rem; }

  .specs { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .gallery,
  .object-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery a:first-child,
  .object-grid a:first-child { grid-column: span 2; grid-row: auto; }
  .gallery a:first-child img,
  .object-grid a:first-child img { aspect-ratio: 4 / 3; min-height: 0; }
  .contact-lines a { flex-direction: column; gap: .2rem; }
  .contact-lines .value { text-align: left; }
  .lb-prev, .lb-next { top: auto; bottom: clamp(1rem, 3vw, 2rem); transform: none; width: 46px; height: 46px; }
  .lb-count { bottom: calc(clamp(1rem, 3vw, 2rem) + 62px); }
}

@media print {
  .site-header, .nav, .lightbox, .btn-row, .unit-actions { display: none !important; }
  body { background: #fff; }
}
