/* Rast – gemeinsames Designsystem (Vermietung.Rast & Immobilien.Rast)
   Hell, ruhig, an den Apple Human Interface Guidelines orientiert.
   Markenfarben: Gold #C8922A, Grün #2A7A55. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #6a6a6f;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;

  --gold: #C8922A;          /* Marke: Flächen, Icons, Akzente */
  --gold-ink: #8A5E12;      /* Gold als Text auf Weiß (AA) */
  --gold-btn: #9A6A18;      /* Buttons mit weißer Schrift (AA) */
  --gold-btn-hover: #85590F;
  --gold-tint: #FBF3E4;
  --gold-tint-2: #F6E7CA;
  --green: #2A7A55;
  --green-ink: #22654A;
  --green-tint: #E7F3EC;
  --red: #B42318;

  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow: 0 2px 6px rgba(0,0,0,.04), 0 18px 48px rgba(0,0,0,.08);
  --shadow-l: 0 30px 80px rgba(0,0,0,.12);
  --ease: cubic-bezier(.25,.1,.25,1);
  --nav-h: 56px;
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
}

/* ── Basis ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  min-width: 320px; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
::selection { background: var(--gold-tint-2); color: var(--text); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--gold-ink); outline-offset: 3px; border-radius: 6px;
}
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--text); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; }
.skip-link:focus { top: 12px; text-decoration: none; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-s { width: 18px; height: 18px; }
.icon-xs { width: 16px; height: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--gold-ink); margin-bottom: 10px; }
.h1 { font-size: clamp(42px, 7.4vw, 80px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.07; letter-spacing: -0.03em; font-weight: 700; }
.h3 { font-size: clamp(21px, 2.4vw, 24px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.lead { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.45; color: var(--text-2); letter-spacing: -0.015em; }
.section-head .lead { margin-top: 16px; }
.muted { color: var(--text-2); }
.gold { color: var(--gold); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
  text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--gold-btn); color: #fff; }
.btn-primary:hover { background: var(--gold-btn-hover); }
.btn-secondary { background: transparent; color: var(--gold-ink); box-shadow: inset 0 0 0 1.5px var(--gold-ink); }
.btn-secondary:hover { background: var(--gold-tint); }
.btn-plain { color: var(--gold-ink); padding: 0 4px; min-height: 44px; }
.btn-plain:hover .icon { transform: translateX(3px); }
.btn-plain .icon { transition: transform .2s var(--ease); }
.btn-s { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: default; }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ── Navigation ── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.scrolled { border-color: rgba(0,0,0,.08); background: rgba(255,255,255,.86); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; min-height: 44px; }
.brand img { width: 40px; height: auto; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.brand-name span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--text); font-size: 14px; padding: 8px 12px; border-radius: 999px; opacity: .82; transition: opacity .2s, background-color .2s; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="true"] { opacity: 1; background: rgba(0,0,0,.04); }
.nav-links .ext { display: inline-flex; align-items: center; gap: 4px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; color: var(--text); }
.nav-toggle:hover { background: rgba(0,0,0,.05); }
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99; background: rgba(255,255,255,.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.mobile-menu a:not(.btn) { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); padding: 10px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; display: flex; align-items: center; justify-content: space-between; }
.mobile-menu .btn { margin-top: 24px; }

/* ── Hero ── */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(48px, 9vw, 112px)) 0 clamp(56px, 8vw, 104px); background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-alt) 55%, var(--bg) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-s); font-size: 14px; margin-bottom: 24px; }
.hero-copy .eyebrow .icon { width: 16px; height: 16px; color: var(--gold); }
.hero-copy .h1 span { color: var(--gold-ink); }
.hero-copy .lead { margin-top: 24px; max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; color: var(--text-2); font-size: 15px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .icon { width: 18px; height: 18px; color: var(--green); }
.hero-visual { position: relative; }
.hero-photo { position: relative; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l); background: var(--line-soft); aspect-ratio: 4 / 5; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 999px; box-shadow: var(--shadow); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip small { display: block; font-size: 12px; font-weight: 400; color: var(--text-2); }
.chip-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-tint); color: var(--gold-ink); }
.chip-icon.green { background: var(--green-tint); color: var(--green); }
.chip-icon .icon { width: 18px; height: 18px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── Kacheln / Karten ── */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow-s); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.section:not(.section-alt) .card { background: var(--bg-alt); box-shadow: none; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin: 20px 0 8px; }
.card p { color: var(--text-2); font-size: 16px; line-height: 1.5; }
.card .link-arrow { margin-top: 18px; font-size: 16px; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-tint); color: var(--gold-ink); }
.icon-tile .icon { width: 26px; height: 26px; }
.icon-tile.green { background: var(--green-tint); color: var(--green); }
.icon-tile.dark { background: var(--text); color: #fff; }
.icon-tile.s { width: 40px; height: 40px; border-radius: 11px; }
.icon-tile.s .icon { width: 20px; height: 20px; }

/* Leistungs-Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(16px, 2vw, 24px); }
.bento > .card { grid-column: span 3; display: flex; flex-direction: column; }
.bento > .card.wide { grid-column: span 4; }
.bento > .card.narrow { grid-column: span 2; }
.bento .card .list-check { margin-top: 18px; }
.bento .card .link-arrow { margin-top: auto; padding-top: 22px; }

/* Checkliste */
.list-check { display: grid; gap: 10px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--text); line-height: 1.4; }
.list-check .icon { width: 20px; height: 20px; color: var(--green); margin-top: 1px; }
.list-check.cols { grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }

/* Vertrauensleiste */
.trustbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-s); }
.trust-item strong { display: block; font-size: 16px; letter-spacing: -0.01em; }
.trust-item span { display: block; font-size: 14px; color: var(--text-2); line-height: 1.3; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { text-align: center; padding: 28px 16px; border-radius: var(--radius); background: var(--bg-alt); }
.stat b { display: block; font-size: clamp(40px, 5vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--text); }
.stat span { display: block; margin-top: 8px; color: var(--text-2); font-size: 15px; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); counter-reset: step; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-s); }
.section:not(.section-alt) .step { background: var(--bg-alt); box-shadow: none; }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-num { font-size: 14px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.step h3 { margin: 20px 0 6px; font-size: 20px; letter-spacing: -0.02em; }
.step p { color: var(--text-2); font-size: 16px; line-height: 1.5; }

/* Split / Portrait */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.portrait { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--line-soft); box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.portrait-badge { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.portrait-badge strong { display: block; font-size: 17px; }
.portrait-badge span { display: block; font-size: 14px; color: var(--text-2); }
.split .lead { margin-top: 20px; }
.split p + p { margin-top: 16px; }
.quals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; }
.qual { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--bg-alt); }
.section-alt .qual { background: var(--surface); }
.qual strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.qual span { display: block; font-size: 14px; color: var(--text-2); line-height: 1.35; margin-top: 2px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; font-size: clamp(18px, 2vw, 21px); font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; color: var(--text-3); transition: transform .3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--gold); }
.faq .answer { padding: 0 48px 24px 0; color: var(--text-2); font-size: 17px; line-height: 1.55; }

/* Querverweis */
.crosslink { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-l); background: linear-gradient(135deg, var(--gold-tint) 0%, #fff 70%); box-shadow: var(--shadow-s); }
.crosslink img { width: 88px; }
.crosslink h3 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.025em; }
.crosslink p { color: var(--text-2); margin-top: 6px; }

/* ── Kontakt ── */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-info { display: grid; gap: 12px; }
.info-row { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-s); color: var(--text); text-decoration: none !important; }
.info-row small { display: block; font-size: 13px; color: var(--text-2); }
.info-row strong { display: block; font-size: 16px; font-weight: 500; word-break: break-word; }
a.info-row:hover { box-shadow: var(--shadow); }
.map { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--line-soft); box-shadow: var(--shadow-s); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding: 18px; text-align: center; background: center / cover no-repeat; color: var(--text); }
.map-consent::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.94) 78%); }
.map-consent > * { position: relative; }
.map-consent .btn { background: #fff; }
.map-consent small { font-size: 12px; color: var(--text-2); max-width: 46ch; line-height: 1.4; }

.form-card { background: var(--surface); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-card h3 { font-size: 24px; letter-spacing: -0.025em; }
.form-card > p { color: var(--text-2); margin-top: 6px; font-size: 16px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.field label .req { color: var(--gold-ink); }
.input {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: #fff; font-size: 17px; letter-spacing: -0.01em;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
textarea.input { min-height: 132px; resize: vertical; line-height: 1.45; }
select.input { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: #b8b8bf; }
.input:focus { border-color: var(--gold-ink); box-shadow: 0 0 0 4px rgba(200,146,42,.18); }
.input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(180,35,24,.1); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.form-foot .btn { width: 100%; }
.form-note { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.form-error { font-size: 15px; color: var(--red); min-height: 0; }
.form-error:empty { display: none; }
.form-success { display: none; text-align: center; padding: 32px 8px; }
.form-success.show { display: block; }
.form-success .icon-tile { margin: 0 auto 16px; width: 64px; height: 64px; border-radius: 50%; }
.form-success h3 { font-size: 24px; }
.form-success p { color: var(--text-2); margin-top: 8px; }

/* ── Footer ── */
.footer { background: var(--bg-alt); color: var(--text-2); font-size: 13px; line-height: 1.5; padding: 56px 0 28px; border-top: 1px solid var(--line-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer .brand { margin-bottom: 12px; }
.footer h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; letter-spacing: -0.01em; }
.footer li + li { margin-top: 8px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Mobile Sticky-CTA */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90; display: none; transform: translateY(140%); transition: transform .35s var(--ease); }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; box-shadow: var(--shadow-l); }

/* ── Rechtstexte ── */
.legal { padding: calc(var(--nav-h) + 64px) 0 96px; }
.legal .container { max-width: 820px; }
.legal .h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 40px; }
.legal .stand { margin: -24px 0 40px; color: var(--text-2); font-size: 14px; }
.legal .imp-section, .legal .dsg-section { padding: 32px 0; border-top: 1px solid var(--line-soft); }
.legal h2 { font-size: 24px; letter-spacing: -0.025em; margin-bottom: 14px; }
.legal h3 { font-size: 17px; margin: 22px 0 8px; }
.legal p, .legal li { color: #3a3a3c; font-size: 17px; line-height: 1.6; }
.legal p + p { margin-top: 12px; }
.legal ul { display: grid; gap: 6px; margin: 8px 0; }
.legal ul li { position: relative; padding-left: 18px; }
.legal ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.legal .contact-box { background: var(--bg-alt); border-radius: var(--radius); padding: 8px 24px; }
.legal .contact-row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.legal .contact-row:last-child { border-bottom: 0; }
.legal .contact-label { font-size: 14px; color: var(--text-2); }
.legal .contact-val { font-size: 17px; }
.legal .page-eyebrow, .legal .gold-rule { display: none; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; margin-bottom: 20px; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 96px var(--gutter); background: var(--bg-alt); }
.notfound img { width: 120px; margin: 0 auto 24px; }
.notfound .code { font-size: 15px; font-weight: 600; color: var(--gold-ink); }
.notfound h1 { margin: 8px 0 12px; }
.notfound p { color: var(--text-2); margin-bottom: 28px; }

/* ── Bewegung ── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4, .trustbar { grid-template-columns: repeat(2, 1fr); }
  .steps.four { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .bento > .card, .bento > .card.wide, .bento > .card.narrow { grid-column: span 6; }
  .portrait { max-width: 460px; margin: 0 auto; width: 100%; }
  .sticky-cta { display: block; }
  body.has-sticky { padding-bottom: 84px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .steps, .steps.four, .trustbar, .quals, .stats { grid-template-columns: 1fr; }
  .list-check.cols { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .chip { font-size: 13px; padding: 8px 12px 8px 8px; }
  .chip-icon { width: 30px; height: 30px; }
  .crosslink { grid-template-columns: 1fr; text-align: left; }
  .crosslink img { width: 72px; }
  .footer-grid { grid-template-columns: 1fr; }
  .legal .contact-row { grid-template-columns: 1fr; gap: 2px; }
  .faq .answer { padding-right: 0; }
}

/* ── Wohnungen (Vermietung.Rast) ── */
.listings-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.segmented { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(118,118,128,.12); }
.segmented button { min-height: 44px; padding: 0 18px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--text); transition: background-color .2s, box-shadow .2s; }
.segmented button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 1px rgba(0,0,0,.04); font-weight: 600; }
.segmented button span { color: var(--text-3); font-weight: 400; margin-left: 4px; font-variant-numeric: tabular-nums; }
.apt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.apt-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); transition: transform .35s var(--ease), box-shadow .35s var(--ease); text-align: left; width: 100%; color: var(--text); }
.apt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.apt-card[hidden] { display: none; }
.apt-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line-soft); }
.apt-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.apt-card:hover .apt-media img { transform: scale(1.04); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: -0.005em; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--text); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.badge.available::before { background: var(--green); }
.badge.rented::before { background: var(--gold); }
.dialog-body .badge { background: var(--bg-alt); }
.apt-media .badge { position: absolute; top: 14px; left: 14px; }
.apt-count { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: #fff; background: rgba(0,0,0,.68); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.apt-count .icon { width: 14px; height: 14px; }
.apt-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.apt-loc { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }
.apt-loc .icon { width: 15px; height: 15px; }
.apt-body h3 { font-size: 21px; letter-spacing: -0.02em; margin: 6px 0 14px; }
.apt-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.spec { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--bg-alt); font-size: 13px; font-weight: 500; }
.spec .icon { width: 15px; height: 15px; color: var(--gold-ink); }
.apt-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 15px; }
.apt-foot .link-arrow { color: var(--gold-ink); }
.apt-foot .state { color: var(--text-2); }
.notice { display: flex; gap: 16px; align-items: center; padding: 20px 24px; border-radius: var(--radius); background: var(--gold-tint); margin-bottom: 32px; }
.notice p { color: #5b4a2c; font-size: 16px; }
.notice strong { color: var(--text); }
.notice .btn { margin-left: auto; }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--text-2); }

/* Exposé-Dialog */
.dialog { width: min(1080px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: var(--radius-l); background: #fff; color: var(--text); box-shadow: var(--shadow-l); overflow: hidden; }
.dialog::backdrop { background: rgba(0,0,0,.42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dialog[open] { display: grid; grid-template-columns: 1.25fr 1fr; animation: dlg-in .35s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.gallery { position: relative; background: #111; min-height: 0; }
.gallery-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; height: 100%; max-height: calc(100dvh - 32px); object-fit: contain; scroll-snap-align: center; aspect-ratio: 4 / 3; }
.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.88); color: var(--text); box-shadow: var(--shadow-s); transition: background-color .2s, opacity .2s; }
.gallery-btn:hover { background: #fff; }
.gallery-btn[disabled] { opacity: 0; pointer-events: none; }
.gallery-btn.prev { left: 14px; } .gallery-btn.next { right: 14px; }
.gallery-counter { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; color: #fff; background: rgba(0,0,0,.7); font-variant-numeric: tabular-nums; }
.dialog-body { position: relative; padding: 32px; overflow-y: auto; max-height: calc(100dvh - 32px); }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); color: var(--text-2); z-index: 2; }
.dialog-close:hover { background: var(--line-soft); color: var(--text); }
.dialog-close .icon { width: 18px; height: 18px; }
.dialog-body h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.03em; line-height: 1.12; margin: 12px 40px 6px 0; }
.dialog-body .apt-loc { font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 22px 0; }
.fact { padding: 12px 14px; border-radius: 12px; background: var(--bg-alt); }
.fact small { display: block; font-size: 12px; color: var(--text-2); }
.fact strong { display: block; font-size: 16px; font-weight: 600; margin-top: 2px; }
.dialog-body h3 { font-size: 15px; font-weight: 600; margin: 22px 0 8px; }
.dialog-body p { color: #3a3a3c; font-size: 16px; line-height: 1.55; }
.dialog-body .list-check { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.dialog-body .list-check li { font-size: 15px; }
.dialog-cta { margin-top: 28px; display: grid; gap: 8px; }
.dialog-cta .btn { width: 100%; }

@media (max-width: 1024px) { .apt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .dialog[open] { display: block; overflow-y: auto; }
  .dialog { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .gallery-track { height: auto; }
  .gallery-track img { height: auto; max-height: 60vh; }
  .dialog-body { max-height: none; overflow: visible; padding: 24px 20px 40px; }
  .dialog-close { position: fixed; top: 12px; right: 12px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-s); }
}
@media (max-width: 640px) {
  .apt-grid { grid-template-columns: 1fr; }
  .notice { flex-direction: column; align-items: flex-start; }
  .notice .btn { margin-left: 0; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding: 0 10px; }
  .dialog-body .list-check { grid-template-columns: 1fr; }
}
@media (max-width: 340px) {
  .nav-inner { gap: 12px; }
  .nav-inner .brand-name { display: none; }
}
