/* =========================================================================
   Mountain Paradise Apartments – Stylesheet
   Schriften: Arial (System) für UI/Fließtext, DM Serif Display für Headlines
   ========================================================================= */

@font-face {
  font-family: 'DM Serif Display';
  src: url('../fonts/DMSerifDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --white:      #ffffff;
  --paper:      #faf9f7;
  --paper-2:    #f3f1ed;
  --ink:        #14171a;
  --anthracite: #24282c;
  --grey:       #6c7278;
  --grey-light: #9aa0a6;
  --line:       #e5e2dc;
  --moss:       #4a5d4e;
  --moss-dark:  #3a4a3e;

  --font-sans: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;

  --header-h: 84px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1280px;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------------ Base */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Beim Springen zu einem Abschnitt bleibt Platz fuer die fixierte Kopfzeile */
:target, [id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--anthracite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.site-header.is-transparent a:focus-visible,
.site-header.is-transparent button:focus-visible,
.hero a:focus-visible, .lightbox button:focus-visible { outline-color: #fff; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 780px; }
.center { text-align: center; }

.img-placeholder {
  background:
    repeating-linear-gradient(45deg, #ecebe7 0 12px, #e5e3de 12px 24px);
  width: 100%; aspect-ratio: 4 / 3;
}

/* ------------------------------------------------------------ Typography */

.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 1rem;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
}

.h-sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
}
.h-sub:first-child { margin-top: 0; }

.eyebrow {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 .9rem;
  font-weight: bold;
}
.eyebrow-light { color: rgba(255,255,255,.85); }

.section-lead {
  font-size: clamp(1rem, .95rem + .3vw, 1.2rem);
  color: var(--grey);
  max-width: 62ch;
  margin: 0 0 1rem;
}

.prose p { margin: 0 0 1.2rem; }
.prose p:last-child { margin-bottom: 0; }
.prose-lg { font-size: 1.06rem; }
.legal-text { color: #3a3f44; }
.legal-text p { margin-bottom: 1rem; }

.empty-note {
  padding: 3rem 1rem; text-align: center; color: var(--grey);
  border: 1px dashed var(--line); border-radius: var(--radius);
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  /* Gleichmaessige Innenabstaende: oben/unten identisch, links/rechts identisch.
     Bewusst ohne min-height, damit die Hoehe allein aus Schrift und Polsterung
     entsteht und der Text exakt mittig sitzt. */
  padding: 1rem 2.2rem;
  font-family: var(--font-sans);
  font-size: .93rem;
  line-height: 1.15;
  letter-spacing: .04em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
  text-align: center;
  box-sizing: border-box;
}
.btn:active { transform: translateY(1px); }
/* Pseudo-Elemente anderer Regeln duerfen im Button nichts beanspruchen */
.btn::before, .btn::after { content: none !important; }

/* Auf hellem Grund: umrahmt, nicht gefuellt */
.btn-solid, .btn-outline.btn-dark {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn-solid:hover, .btn-outline.btn-dark:hover {
  background: rgba(20,23,26,.06); color: var(--ink); border-color: var(--ink);
}
.btn-solid:active, .btn-outline.btn-dark:active { background: rgba(20,23,26,.12); }

.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-outline:active { background: rgba(255,255,255,.18); }

.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }

.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .92rem; color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: .25rem;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.link-arrow:hover { border-color: var(--moss); gap: .85rem; color: var(--moss); }

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

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,249,247,.94);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
              backdrop-filter .35s var(--ease), transform .35s var(--ease);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: rgba(250,249,247,.82); backdrop-filter: saturate(180%) blur(14px); }
}

.site-header.is-transparent {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
}
.site-header.is-transparent .brand-name,
.site-header.is-transparent .brand-sub,
.site-header.is-transparent .nav-desktop a,
.site-header.is-transparent .nav-toggle-label { color: #fff; }
.site-header.is-transparent .nav-toggle-bar { background: #fff; }
.site-header.is-transparent .nav-cta { border-color: rgba(255,255,255,.65); color: #fff; }

/* Nach dem Scrollen wieder undurchsichtig */
.site-header.is-scrolled {
  background: rgba(250,249,247,.94);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header.is-scrolled { background: rgba(250,249,247,.85); backdrop-filter: saturate(180%) blur(14px); }
}
.site-header.is-scrolled .brand-name,
.site-header.is-scrolled .nav-desktop a,
.site-header.is-scrolled .nav-toggle-label { color: var(--ink); }
.site-header.is-scrolled .brand-sub { color: var(--grey); }
.site-header.is-scrolled .nav-toggle-bar { background: var(--ink); }
.site-header.is-scrolled .nav-cta { border-color: var(--ink); color: var(--ink); }

.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.brand { display: flex; align-items: center; min-width: 0; }
.brand-logo { max-height: 54px; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, .95rem + .5vw, 1.4rem);
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-sub {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--grey);
}

.nav-desktop { display: none; align-items: center; gap: 1.5rem; }
.nav-desktop ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; margin-right: .7rem; }
/* Die Sprachauswahl steht ganz rechts, nach dem Anfrage-Button */
.nav-desktop .lang-dd { order: 3; }
.nav-desktop .nav-cta { order: 2; }
.nav-desktop ul { order: 1; }
/* Wichtig: diese Regeln gelten ausschliesslich fuer die Menuepunkte in der
   Liste – nicht fuer den Button und nicht fuer die Sprachauswahl. Sonst
   erhalten auch diese das Hilfselement und ihr Text verrutscht. */
.nav-desktop ul a {
  font-size: .93rem; color: var(--ink); padding: .3rem 0;
  display: block; text-align: center;
}
/* Der Menuepunkt wird bei Hover fett. Damit dabei nichts verrutscht,
   reserviert dieses unsichtbare Pseudo-Element vorab die fette Breite. */
.nav-desktop ul a::before {
  content: attr(data-label);
  display: block; height: 0; overflow: hidden;
  font-weight: bold; visibility: hidden; pointer-events: none;
}
.nav-desktop ul a:hover,
.nav-desktop ul a:focus-visible { font-weight: bold; }

.nav-cta {
  padding: .72rem 1.7rem;
  font-size: .88rem;
  white-space: nowrap;
}

/* Mobiler Menü-Button: bewusst groß und immer sichtbar */
.nav-toggle {
  display: flex; align-items: center; gap: .55rem;
  background: none; border: 0; cursor: pointer;
  padding: .7rem .4rem; margin-right: -.4rem;
  min-height: 48px;
}
.nav-toggle-bars { display: block; }
.nav-toggle-bar {
  display: block; width: 26px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle-bar + .nav-toggle-bar { margin-top: 7px; }
.nav-toggle-label {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Mobile Navigation als Vollbild-Overlay */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--paper);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mobile-nav.is-open { opacity: 1; transform: none; }
.mobile-nav:not(.is-open) { pointer-events: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li + li { border-top: 1px solid var(--line); }
/* Nur die grossen Navigationslinks – NICHT der Button im Fussbereich.
   Sonst erbt der Button diese Textfarbe und wird schwarz auf schwarz. */
.mobile-nav nav a {
  display: block; padding: 1.05rem 0;
  font-family: var(--font-display);
  font-size: 1.65rem; color: var(--ink);
}
.mobile-nav-foot .btn-solid { color: #fff; }
.mobile-nav-foot .btn-solid:hover { color: #fff; }
.mobile-nav-foot { padding-top: 2rem; }
.mobile-nav-phone {
  display: block; text-align: center; margin-top: 1.1rem;
  font-size: .95rem; color: var(--grey);
}
body.nav-open { overflow: hidden; }

/* Bei geoeffnetem Menue ist der Hintergrund hell – der transparente
   Header muss dann dunkle Schrift zeigen, sonst ist er unsichtbar. */
body.menu-open .site-header.is-transparent .brand-name,
body.menu-open .site-header.is-transparent .brand-sub,
body.menu-open .site-header.is-transparent .nav-toggle-label { color: var(--ink); }
body.menu-open .site-header.is-transparent .nav-toggle-bar { background: var(--ink); }
body.menu-open .site-header { background: var(--paper); border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(10px)) {
  body.menu-open .site-header { backdrop-filter: none; }
}

/* --------------------------------------------------------- Sprachauswahl */

/* Klappmenue auf Basis von details/summary: funktioniert auch ohne
   JavaScript und enthaelt echte Links – gut fuer Suchmaschinen. */
.lang-dd { position: relative; }
.lang-dd summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  /* Exakt dieselbe Höhe wie der Anfrage-Button daneben: gleiche
     Schriftgröße, gleiche Zeilenhöhe, gleiche senkrechte Polsterung. */
  padding: .72rem 1rem;
  font-size: .88rem; line-height: 1.15; letter-spacing: .04em;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); white-space: nowrap; box-sizing: border-box;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd summary:hover { background: rgba(20,23,26,.05); border-color: var(--ink); }
.lang-dd-caret {
  width: 8px; height: 8px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s var(--ease);
}
.lang-dd[open] .lang-dd-caret { transform: rotate(-135deg) translate(-3px, -3px); }

.lang-dd-list {
  position: absolute; top: calc(100% + .5rem); right: 0; z-index: 30;
  min-width: 190px; padding: .35rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px -18px rgba(20,23,26,.4);
  display: flex; flex-direction: column;
}
.lang-dd-list a {
  padding: .7rem .9rem; border-radius: 2px; font-size: .92rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.lang-dd-list a:hover { background: var(--paper-2); }
.lang-dd-list a[aria-current] { font-weight: bold; }
.lang-dd-code { font-size: .72rem; letter-spacing: .1em; color: var(--grey); }

/* Das Klappmenü hat immer einen hellen Hintergrund. Die weiße Schriftfarbe
   des transparenten Headers darf hier deshalb nicht durchschlagen –
   sonst steht weiß auf weiß. */
.site-header .lang-dd-list a,
.site-header.is-transparent .lang-dd-list a,
.site-header.is-scrolled .lang-dd-list a { color: var(--ink); }
.site-header .lang-dd-list .lang-dd-code { color: var(--grey); }

/* Ueber dem Titelbild ist die Kopfzeile transparent */
.site-header.is-transparent .lang-dd summary {
  color: #fff; border-color: rgba(255,255,255,.55);
}
.site-header.is-transparent .lang-dd summary:hover {
  background: rgba(255,255,255,.12); border-color: #fff;
}
.site-header.is-scrolled .lang-dd summary,
body.menu-open .site-header.is-transparent .lang-dd summary {
  color: var(--ink); border-color: var(--line);
}

/* Im Handymenue als flache Liste, dort ist genug Platz */
.lang-switch-mobile {
  display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line);
}
.lang-switch-mobile a {
  font-size: .95rem; padding: .65rem 1.2rem;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
}
.lang-switch-mobile a[aria-current] { border-color: var(--ink); font-weight: bold; }

.lang-switch-footer { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.lang-switch-footer a {
  font-size: .85rem; color: rgba(255,255,255,.6); padding: .35rem .7rem;
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius);
}
.lang-switch-footer a:hover { color: #fff; background: rgba(255,255,255,.1); }
.lang-switch-footer a[aria-current] { color: #fff; border-color: rgba(255,255,255,.5); }

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

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media .img-placeholder {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(10,12,14, calc(var(--overlay, .45) * 1.15)) 0%,
      rgba(10,12,14, calc(var(--overlay, .45) * 0.55)) 38%,
      rgba(10,12,14, calc(var(--overlay, .45) * 1.25)) 100%);
}

.hero-content {
  text-align: center; color: #fff;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 6rem;
  max-width: 900px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.4rem + 5.2vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
  color: #fff;
  text-shadow: 0 2px 32px rgba(0,0,0,.35);
}
.hero-subtitle {
  font-size: clamp(.85rem, .8rem + .35vw, 1.05rem);
  letter-spacing: .24em;
  text-transform: uppercase;
  margin: 0 0 2.4rem;
  color: rgba(255,255,255,.9);
}
.hero-btn { min-width: 220px; }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  color: rgba(255,255,255,.8);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
}
.hero-scroll-line { width: 1px; height: 48px; background: rgba(255,255,255,.55); }

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

.section { padding: clamp(4rem, 8vw, 8rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 62ch; margin: 0 0 clamp(2.5rem, 4vw, 4rem); }
.section-head.center { margin-left: auto; margin-right: auto; }

.page-head {
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(2rem, 4vw, 3.5rem);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.page-head-slim { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-media img, .split-media .img-placeholder {
  width: 100%; border-radius: var(--radius);
}
.media-tall { aspect-ratio: 4 / 5; object-fit: cover; }

.fact-row {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.fact-row li {
  font-size: .82rem; letter-spacing: .05em;
  border: 1px solid var(--line); border-radius: 100px;
  padding: .45rem 1rem; color: var(--grey);
  background: var(--white);
}

/* ----------------------------------------------------------------- Cards */

.card-grid {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(20,23,26,.35); }
.card-media { display: block; overflow: hidden; }
.card-media img, .card-media .img-placeholder {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .8s var(--ease);
}
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: clamp(1.4rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.card-title { font-family: var(--font-display); font-size: 1.5rem; margin: 0; line-height: 1.2; color: var(--ink); }
.card-teaser { margin: 0; color: var(--grey); font-size: .95rem; }
.card-meta {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .4rem .9rem;
  font-size: .84rem; color: var(--grey);
}
.card-meta li { position: relative; }
.card-meta li + li::before {
  content: '·'; position: absolute; left: -.55rem; color: var(--grey-light);
}
.card-price { margin: 0; font-weight: bold; color: var(--ink); font-size: .98rem; }
.card .link-arrow { margin-top: auto; align-self: flex-start; }

/* Gestapelte Liste (Apartment-Übersicht) */
.stack-list { display: flex; flex-direction: column; gap: clamp(3rem, 6vw, 5.5rem); }
.stack-item { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.stack-media img, .stack-media .img-placeholder {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius);
}
.stack-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); margin: 0 0 .7rem; line-height: 1.15; }
.stack-teaser { color: var(--grey); margin: 0 0 1rem; }
.stack-body > .btn { margin-top: 1.4rem; }

.tag-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li {
  font-size: .8rem; padding: .35rem .85rem;
  background: var(--paper-2); border-radius: 100px; color: var(--anthracite);
}

/* -------------------------------------------------------------- Features */

.feature-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  grid-template-columns: 1fr;
}
.feature { background: var(--white); padding: clamp(1.6rem, 3vw, 2.4rem); }
.feature-title { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; margin: 0 0 .5rem; color: var(--ink); }
.feature-text { margin: 0; color: var(--grey); font-size: .93rem; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: 1fr; }
.check-list li { position: relative; padding-left: 1.7rem; font-size: .96rem; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--moss);
}

/* ---------------------------------------------------------- Bilder-Raster */

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 0 6px;
  margin: 0 0 2.5rem;
}
.mosaic-item {
  padding: 0; border: 0; background: none; cursor: zoom-in;
  overflow: hidden; position: relative; display: block;
  border-radius: 2px;
}
.mosaic-item img, .mosaic-item .img-placeholder {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  transition: transform .7s var(--ease), filter .4s var(--ease);
}
.mosaic-item:hover img { transform: scale(1.05); filter: brightness(.92); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; }
.filter-btn {
  border: 1px solid var(--line); background: var(--white);
  padding: .55rem 1.2rem; border-radius: 100px; cursor: pointer;
  font-family: var(--font-sans); font-size: .86rem; color: var(--anthracite);
  min-height: 42px;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery-group.is-hidden { display: none; }

/* ------------------------------------------------------------------ Lage */

.distance-list { margin: 1.8rem 0 1.8rem; }
.distance-row {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: .75rem 0; border-bottom: 1px solid var(--line);
  font-size: .93rem;
}
.distance-row dt { color: var(--grey); margin: 0; }
.distance-row dd { margin: 0; text-align: right; color: var(--ink); }

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

.section-contact-cta {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) 0;
  color: #fff;
}
.cta-media { position: absolute; inset: 0; z-index: -2; }
.cta-media img, .cta-media .img-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.cta-overlay { position: absolute; inset: 0; z-index: -1; background: rgba(16,19,22,.62); }
.cta-inner { text-align: center; max-width: 720px; }
.cta-title { color: #fff; }
.cta-text { color: rgba(255,255,255,.85); margin: 0 0 2rem; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.center-actions { justify-content: center; }

/* -------------------------------------------------------- Detail-Ansicht */

.detail-hero {
  position: relative; isolation: isolate;
  min-height: 62svh; min-height: 62vh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  color: #fff;
}
.detail-hero-media { position: absolute; inset: 0; z-index: -2; }
.detail-hero-media img, .detail-hero-media .img-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.detail-hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(10,12,14,.5), rgba(10,12,14,.72));
}
.detail-title { color: #fff; margin-bottom: .6rem; }
.detail-teaser { color: rgba(255,255,255,.88); max-width: 60ch; margin: 0; font-size: 1.05rem; }
.crumbs { font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin: 0 .35rem; }

.detail-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

.booking-box {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem);
}
.booking-title { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; margin: 0 0 1.2rem; color: var(--ink); }
.booking-facts { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.booking-facts li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .92rem;
}
.booking-facts span { color: var(--grey); }
.booking-price { font-size: 1.1rem; font-weight: bold; margin: 0 0 1.2rem; color: var(--ink); }
.booking-phone { display: block; text-align: center; margin-top: .9rem; font-size: .88rem; color: var(--grey); }
.booking-phone:hover { color: var(--moss); }

/* --------------------------------------------------------------- Formular */

.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

.form { display: flex; flex-direction: column; gap: 1.15rem; }
.field-row { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .86rem; color: var(--anthracite); font-weight: bold; }
.req { color: #b3261e; font-weight: normal; }
.opt { color: var(--grey-light); font-weight: normal; font-size: .8rem; }

.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 16px; /* verhindert Zoom auf iOS */
  color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem .9rem; min-height: 50px; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236c7278' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.6rem;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--moss); box-shadow: 0 0 0 3px rgba(74,93,78,.12); outline: none;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .82rem; margin: 0; }

.field-check .check { display: flex; gap: .75rem; align-items: flex-start; font-weight: normal; }
.field-check input[type="checkbox"] {
  width: 22px; height: 22px; min-height: 22px; margin-top: .15rem; flex: none;
  accent-color: var(--moss);
  -webkit-appearance: auto; appearance: auto;
}
.field-check span { font-size: .88rem; color: var(--grey); line-height: 1.55; }
.field-check a { text-decoration: underline; color: var(--anthracite); }

.form-note { font-size: .8rem; color: var(--grey-light); margin: 0; text-align: center; }

/* Honeypot – für Menschen nicht sichtbar, für Screenreader ausgeblendet */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1.1rem 1.3rem; border-radius: var(--radius); margin-bottom: 1.8rem; font-size: .95rem; }
.alert-ok { background: #e9f2ec; color: #1d5b35; border: 1px solid #c6ded0; }
.alert-error { background: #fbeceb; color: #8a2018; border: 1px solid #f0cfcc; }

.info-box {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem);
}
.info-box + .info-box { margin-top: 1.2rem; }
.info-box-quiet { background: var(--paper-2); }
.info-box address { font-style: normal; line-height: 1.75; margin-bottom: 1rem; }
.info-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; }
.info-list a { border-bottom: 1px solid var(--line); }
.info-list a:hover { border-color: var(--moss); color: var(--moss); }

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

.site-footer {
  background: var(--ink); color: rgba(255,255,255,.7);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  font-size: .92rem;
}
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
.footer-brand { font-family: var(--font-display); font-size: 1.35rem; color: #fff; margin: 0 0 .5rem; }
.footer-muted { margin: 0; color: rgba(255,255,255,.55); max-width: 40ch; }
.footer-head {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin: 0 0 .9rem; font-weight: bold;
  font-family: var(--font-sans);
}
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem; color: rgba(255,255,255,.45);
}
.footer-bottom p { margin: 0; }

.error-page { padding: calc(var(--header-h) + 6rem) 0 8rem; }

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

/* Wichtig: eine display-Angabe im Stylesheet ueberstimmt das HTML-Attribut
   hidden. Ohne die folgende Regel liegen Lightbox und mobiles Menue
   unsichtbar ueber der Seite und fangen saemtliche Klicks ab. */
.lightbox[hidden],
.mobile-nav[hidden] { display: none !important; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10,11,13,.96);
  display: flex; flex-direction: column;
  opacity: 0; transition: opacity .25s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox:not(.is-open) { pointer-events: none; }
.lb-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 3.5rem 1rem 1rem; overflow: hidden; touch-action: pan-y pinch-zoom;
}
.lb-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
  cursor: zoom-in; user-select: none;
}
.lb-img.is-zoomed { transform: scale(2); cursor: zoom-out; }
.lb-img.is-switching { opacity: 0; }

.lb-close, .lb-nav, .lb-zoom {
  position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff;
  cursor: pointer; border-radius: 50%;
  transition: background-color .2s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-close {
  top: .9rem; right: .9rem; width: 48px; height: 48px;
  font-size: 2rem; line-height: 1; z-index: 2;
}
.lb-nav {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; font-size: 2.2rem; line-height: 1; z-index: 2;
}
.lb-prev { left: .8rem; }
.lb-next { right: .8rem; }

.lb-bar {
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
  flex-wrap: wrap;
  padding: 1rem 1.2rem calc(1rem + env(safe-area-inset-bottom));
  color: rgba(255,255,255,.75); font-size: .85rem;
}
.lb-counter { font-variant-numeric: tabular-nums; }
.lb-caption { max-width: 46ch; text-align: center; }
.lb-zoom {
  position: static; border-radius: 100px; padding: .55rem 1.2rem;
  font-family: var(--font-sans); font-size: .82rem; min-height: 42px;
}
.lb-zoom:hover { background: rgba(255,255,255,.22); }

/* ---------------------------------------------------------- Einblendung */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card-media img, .mosaic-item img { transition: none !important; }
}

/* ------------------------------------------------------------ Breakpoints */

@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .check-list { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-reverse .split-text { order: 2; }
  .split-reverse .split-media { order: 1; }
  .stack-item { grid-template-columns: 1.25fr 1fr; }
  .stack-flip .stack-media { order: 2; }
  .stack-flip .stack-body { order: 1; }
  .contact-grid { grid-template-columns: 1.35fr .8fr; }
  .detail-grid { grid-template-columns: 1.5fr .8fr; }
  .detail-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  :root { --header-h: 96px; }
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .mosaic { grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 8px; }
}

/* Sehr kleine Geräte */
@media (max-width: 380px) {
  .nav-toggle-label { display: none; }
  .brand-sub { display: none; }
}

/* Druckansicht */
@media print {
  .site-header, .mobile-nav, .lightbox, .hero-scroll, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: 40vh; }
}

/* ------------------------------------------------- Apartments im Onepager */

.apt-block { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.apt-block + .apt-block { border-top: 1px solid var(--line); }

.apt-grid { display: grid; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }

.apt-main-img {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; overflow: hidden; border-radius: var(--radius);
}
.apt-main-img img, .apt-main-img .img-placeholder {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .7s var(--ease);
}
.apt-main-img:hover img { transform: scale(1.03); }

.apt-thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px;
}
.apt-thumbs .mosaic-item img { aspect-ratio: 1 / 1; }

.apt-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.15; margin: 0 0 .6rem; color: var(--ink);
}
.apt-teaser { color: var(--grey); margin: 0 0 1rem; font-size: 1.02rem; }
.apt-desc { margin-top: 1.4rem; }
.apt-sub {
  font-family: var(--font-display); font-weight: 400; font-size: 1.2rem;
  margin: 1.8rem 0 .8rem; color: var(--ink);
}
.apt-price { font-weight: bold; color: var(--ink); margin: 1.6rem 0 0; font-size: 1.05rem; }
.apt-cta { margin-top: 1.6rem; }

.gallery-group-title { margin-bottom: 1rem; }

@media (min-width: 900px) {
  .apt-grid { grid-template-columns: 1.05fr 1fr; }
  .apt-flip .apt-media { order: 2; }
  .apt-flip .apt-body  { order: 1; }
}
