/* Layout: in the style of fd-ww.de: white and light grey sections, gold accent, charcoal text, photo hero with glass fact cards. Light-only look. */
:root {
  --bg: #ffffff;
  --soft: #f8f8f8;
  --surface: #ffffff;
  --ink: #333333;
  --muted: #666977;
  --line: #ebe6dc;
  --accent: #ddb164;
  --accent-strong: #a87b2c;
  --accent-ink: #ffffff;
  --accent-soft: #faf3e6;
  --night: #2c2c2c;
  --font-display: "Manrope", "Segoe UI Variable Display", "SF Pro Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI Variable Text", "SF Pro Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(15, 28, 46, .05), 0 12px 32px rgba(15, 28, 46, .08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-strong); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; color: var(--accent); }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; max-width: 65ch; }
.label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--accent); }
.infobar { background: var(--soft); font-size: 0.85rem; color: var(--muted); }
.infobar .wrap { display: flex; gap: 8px 28px; flex-wrap: wrap; padding-block: 8px; }
.infobar span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: #ffffff; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.brand small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); letter-spacing: 0; }
.top nav { display: flex; gap: 26px; flex-wrap: wrap; font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; }
.top nav a { text-decoration: none; color: var(--ink); }
.top nav a:hover { color: var(--accent-strong); }

/* Hero */
.hero {
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(30, 30, 30, .45) 0%, rgba(30, 30, 30, .72) 100%),
    url("wohnung-1.jpg") center 55% / cover no-repeat,
    var(--night);
}
.hero .wrap { padding-block: clamp(56px, 10vw, 120px) clamp(40px, 7vw, 72px); display: grid; gap: 28px; }
.hero h1 { max-width: 16ch; }
.hero p.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .92); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.facts li { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px; padding: 16px 18px; }
.facts strong { display: block; font-family: var(--font-display); font-size: 1.7rem; font-variant-numeric: tabular-nums; color: var(--accent); line-height: 1.1; letter-spacing: -0.02em; }
.facts span { font-size: 0.95rem; color: rgba(255, 255, 255, .88); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 0.98rem; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sun { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px rgba(221, 177, 100, .35); font-weight: 700; }
.btn-sun:hover { background: #cf9f4c; }
.btn-ghost { color: #ffffff; border: 1.5px solid rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* Sections */
section { padding-block: clamp(56px, 8vw, 96px); }
section:nth-of-type(even) { background: var(--soft); }
.section-head { display: grid; gap: 10px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Apartments */
.flats { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.flat { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow); border: 1px solid var(--line); }
.photo { position: relative; aspect-ratio: 3 / 2; max-width: 100%; background: var(--soft); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo.clickable { cursor: zoom-in; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); gap: 6px; padding: 8px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; aspect-ratio: 1; max-width: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s, opacity .15s; }
.gallery button:hover img { transform: scale(1.06); }
.flat-body { padding: 24px 26px 8px; display: grid; gap: 14px; flex: 1; align-content: start; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 0.97rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; }
.book { margin-top: auto; padding: 18px 26px 26px; display: grid; gap: 10px; }
.book-links { display: flex; flex-wrap: wrap; gap: 8px; }
.book-links a { flex: 1 1 120px; text-align: center; padding: 11px 12px; border-radius: 8px; background: var(--accent-soft); color: #7a5a1f; border: 1px solid var(--accent); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: background .15s, color .15s; }
.book-links a:hover { background: var(--accent); color: var(--accent-ink); }
.note { font-size: 0.92rem; color: var(--muted); }

/* Info grid */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 48px; }
.grid2 > div { min-width: 0; display: grid; gap: 12px; align-content: start; }
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.ticks li { padding-left: 32px; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
ul.cross li::before { background: #fdecec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' fill='none' stroke='%23d64545' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

.times { display: flex; gap: 12px; flex-wrap: wrap; }
.time { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; min-width: 150px; box-shadow: var(--shadow); }
.time strong { display: block; font-family: var(--font-display); font-size: 1.8rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.distances { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.distances td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.distances td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; font-weight: 600; }

.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; box-shadow: var(--shadow); }
.contact a { color: var(--ink); font-size: 1.1rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.placeholder { background: #fff3c4; padding: 0 4px; border-radius: 4px; }

/* Footer */
footer { background: var(--night); color: rgba(255, 255, 255, .8); font-size: 0.92rem; }
footer .wrap { padding-block: 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--accent); }
footer .wrap { border-top: 3px solid var(--accent); }

/* Legal pages */
.legal { padding-block: 48px 72px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.2rem; margin-top: 14px; color: var(--ink); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 96vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 18, 30, .9); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox-caption { color: #f1f5f9; text-align: center; margin: 12px auto 0; font-size: .95rem; }
.lb-btn { position: fixed; background: rgba(255, 255, 255, .16); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .3); }
.lb-prev { left: max(12px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(12px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
.lb-close { right: max(12px, env(safe-area-inset-right, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); }
