/* V2 — Two Keys Appartments / Editorial redesign */
/* Fonts self-hosted (first-party) — no external request, no consent needed. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/inter-300.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/inter-800.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2"); }

:root {
  /* Warm Swiss palette */
  --bg:        #fafaf7;
  --bg-alt:    #f2efe8;
  --ink:       #1a1a1a;
  --ink-2:     #3a3935;
  --muted:     #6b6660;
  --muted-2:   #a09a92;
  --line:      #e5e0d5;
  --line-2:    #d4cebf;
  --stone:     #c9b896;
  --paper:     #ffffff;
  --accent:    #1a1a1a;
  --ok:        #3d6b3f;
  --booked:    #a23b2a;

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale */
  --container: 1440px;
  --pad-x:     clamp(24px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--bg); }

/* ---------------- Layout primitives ---------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.rule { height: 1px; background: var(--ink); width: 100%; }
.rule-thin { height: 1px; background: var(--line-2); width: 100%; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 24px; height: 1px; background: currentColor;
}
.num {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.05em;
}

/* ---------------- Top bar ---------------- */
.topbar {
  border-bottom: 1px solid var(--ink);
  background: var(--bg);
  position: sticky; top: 0; z-index: 100;
}
.topbar-ticker {
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.topbar-ticker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 8px; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.topbar-main {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 22px 0;
}
.topbar-logo {
  display: flex; align-items: center; gap: 14px;
  font-weight: 700; letter-spacing: -0.02em; font-size: 22px;
}
.topbar-logo img { height: 36px; width: auto; }

.topbar-nav {
  position: relative;
  display: flex; justify-content: center; gap: 36px;
  font-size: 14px; font-weight: 500;
}
.topbar-nav a { position: relative; padding: 6px 0; transition: color 0.25s ease; }
.topbar-nav a:hover { color: var(--ink); }

/* Sub-pages: center-out underline on hover (no sliding indicator here). */
.topbar-nav--static a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.topbar-nav--static a:hover::after { transform: scaleX(1); }

.topbar-nav-indicator {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ink);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  border-radius: 1px;
}
.topbar-cta {
  display: flex; justify-content: flex-end; gap: 14px; align-items: center;
}
.lang {
  /* Hidden until EN translation is built — markup preserved */
  display: none;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em;
}
.lang span.on { color: var(--ink); font-weight: 500; }

/* ---------------- Mobile menu button ---------------- */
.topbar-menu-btn {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px;
  padding: 0;
}
.topbar-menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.topbar-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topbar-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: 10px 16px; font-size: 12px; }
.btn-arrow { width: 14px; height: 10px; position: relative; }
.btn-arrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transform: translateY(-50%); }
.btn-arrow::after { content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.btn:hover .btn-arrow { animation: arrow-shift 500ms ease; }
@keyframes arrow-shift { 50% { transform: translateX(4px); opacity: 0.4; } }

/* Circular arrow badge — shared by the capsule CTA and the card actions */
.btn-badge {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; flex: none;
}
.btn-badge svg { display: block; }

/* Capsule CTA (e.g. "Entdecken") — pill with a filled arrow badge */
.btn-capsule { border-radius: 999px; padding: 5px 14px; gap: 8px; }
.btn-capsule .btn-badge {
  width: 22px; height: 22px;
  background: var(--bg); color: var(--ink);
  transition: background 180ms ease, color 180ms ease;
}
.btn-capsule:hover .btn-badge { background: var(--ink); color: var(--bg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 100vh;
  overflow: hidden;
  background: var(--ink);
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.72) contrast(1.08) saturate(0.9);
  transform: scale(1.05);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero.loaded .hero-img { transform: scale(1); }
.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to right, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 55%);
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.2 0'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
}
.hero-inner {
  position: relative; height: 100%;
  display: grid; grid-template-rows: auto 1fr auto;
  color: var(--bg);
}
.hero-top {
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: flex-start;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero-top .coord { font-variant-numeric: tabular-nums; }
.hero-body {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding-top: clamp(24px, 3.5vw, 56px);
  padding-bottom: 60px;
  max-width: 960px;
}
.hero-inner { min-height: 100vh; }
.hero-eyebrow {
  font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.75);
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: clamp(40px, 4.5vw, 64px);
}
.hero-eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.hero-title {
  font-size: clamp(48px, 7.2vw, 112px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--bg);
  margin-bottom: 24px;
}
.hero-title .r2 { font-weight: 300; opacity: 0.9; }
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 520px; line-height: 1.5;
  color: rgba(255,255,255,0.8);
  margin-bottom: clamp(56px, 5vw, 72px);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn { border-color: var(--bg); }
.hero-actions .btn-primary { background: var(--bg); color: var(--ink); }
.hero-actions .btn-primary:hover { background: transparent; color: var(--bg); }
.hero-actions .btn-ghost { color: var(--bg); }
.hero-actions .btn-ghost:hover { background: var(--bg); color: var(--ink); }

.hero-bottom {
  padding-bottom: 28px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px;
}
.hero-meta {
  display: grid; grid-auto-flow: column; gap: 56px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.hero-meta .v {
  font-family: var(--sans); font-size: 28px; font-weight: 300;
  color: var(--bg); letter-spacing: -0.02em; line-height: 1;
  display: block; margin-bottom: 6px; text-transform: none;
}
.hero-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero-scroll .line {
  width: 1px; height: 48px; background: rgba(255,255,255,0.4);
  overflow: hidden; position: relative;
}
.hero-scroll .line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 1px; height: 50%;
  background: var(--bg);
  animation: scroll-line 2.4s ease-in-out infinite;
}
@keyframes scroll-line { 0% { top: -50%; } 100% { top: 100%; } }

/* ---------------- Section chrome ---------------- */
.section {
  padding: clamp(72px, 10vw, 140px) 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid; grid-template-columns: 2fr 3fr; gap: 56px;
  margin-bottom: 64px; align-items: end;
}
.section-head .left,
.showcase-head .left { display: flex; flex-direction: column; gap: 20px; }
.section-head h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700; letter-spacing: -0.035em;
  line-height: 1; max-width: 12ch;
}
.section-head p {
  font-size: 17px; color: var(--muted); max-width: 48ch; line-height: 1.6;
}

/* ---------------- Manifesto ---------------- */
.manifesto {
  padding: clamp(80px, 11vw, 160px) 0;
  border-top: 1px solid var(--line);
}
.manifesto-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; }
.manifesto-grid .label { font-family: var(--mono); font-size: 1px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; padding-top: 10px; }
.manifesto-body { display: flex; flex-direction: column; gap: 28px; }
.manifesto p {
  font-size: clamp(15px, 1.9vw, 26px);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.45;
  color: var(--ink);
}
.manifesto em { font-style: normal; font-weight: 600; }
.manifesto .signoff {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.06em; margin-top: 24px;
  display: flex; gap: 20px; align-items: center;
}
.manifesto .signoff .stripe { width: 40px; height: 1px; background: var(--ink); }

/* ---------------- Flats grid ---------------- */
.flats .section-head { margin-bottom: 48px; }
.flats-filters {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; margin-bottom: 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.flats-filters .chips { display: flex; gap: 4px; }
.flats-filters .chip {
  padding: 6px 12px; border: 1px solid transparent; color: var(--muted);
}
.flats-filters .chip.on { color: var(--ink); border-color: var(--ink); background: var(--paper); }
.flats-filters .chip:hover:not(.on) { color: var(--ink); }

.flats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.flat {
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column;
  background: var(--paper);
  transition: background 240ms ease;
}
.flat:hover { background: var(--bg-alt); }
.flat-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--stone);
}
.flat-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 900ms cubic-bezier(0.22,1,0.36,1);
}
.flat:hover .flat-media img,
.flat:hover .flat-slide.active { transform: scale(1.04); }

/* Carousel slides — smooth crossfade (specificity must beat .flat-media img) */
.flat-media img.flat-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 900ms cubic-bezier(0.22,1,0.36,1);
}
.flat-media img.flat-slide.active { opacity: 1; }

/* Carousel arrows — visible on media hover */
.flat-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; line-height: 1;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
  font-family: inherit;
  padding: 0;
}
.flat-media:hover .flat-arrow { opacity: 1; }
.flat-arrow:hover { background: var(--paper); }
.flat-arrow:active { transform: translateY(-50%) scale(0.94); }
.flat-arrow.flat-prev { left: 12px; }
.flat-arrow.flat-next { right: 12px; }

/* Pagination dots */
.flat-dots {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(4px);
}
.flat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease, border-radius 0.25s ease;
  border: none; padding: 0;
}
.flat-dot.active {
  background: var(--paper);
  width: 18px;
  border-radius: 3px;
}
.flat-dot:hover:not(.active) { background: rgba(255, 255, 255, 0.85); }

/* Keep tag and number above carousel UI */
.flat-tag, .flat-num { z-index: 3; }
.flat-tag {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--bg); color: var(--ink);
  padding: 6px 10px; display: inline-flex; align-items: center; gap: 8px;
}
.flat-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 4px rgba(61, 107, 63, 0.55);
  transition: background 200ms ease, box-shadow 200ms ease;
}
.flat-tag.unavailable .dot {
  background: var(--booked);
  box-shadow: 0 0 4px rgba(162, 59, 42, 0.55);
}
.flat-tag.loading .dot { background: var(--muted-2); box-shadow: none; }
.flat-tag.soon .dot {
  background: var(--stone);
  box-shadow: 0 0 4px rgba(201, 184, 150, 0.55);
}
.flat-num {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--bg); opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.flat-body {
  padding: 28px 28px 32px;
  display: flex; flex-direction: column; gap: 20px; flex: 1;
}
.flat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.flat-region {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.flat-title {
  font-size: 28px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
}
.flat-address { font-size: 14px; color: var(--muted); }
.flat-specs {
  display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 12px 10px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.flat-specs dt { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.flat-specs dd { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.flat-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; }
.flat-price { display: inline-flex; align-items: baseline; gap: 6px; }
.flat-price .from { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.flat-price .amt { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.flat-price .unit { font-size: 13px; color: var(--muted); font-weight: 400; }
.flat-action {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--ink);
}
.flat-action .btn-badge {
  width: 20px; height: 20px;
  border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  transition: background 260ms cubic-bezier(0.4, 0, 0.2, 1), color 260ms ease;
}
.flat:hover .flat-action .btn-badge { background: var(--ink); color: var(--bg); }

/* ---------------- Immersive scroll showcase ---------------- */
.showcase { position: relative; }
.showcase-head {
  padding-top: clamp(80px, 9vw, 120px);
  padding-bottom: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: 2fr 3fr; gap: 56px; align-items: end;
}
.showcase-head h2 { font-size: clamp(40px, 5.5vw, 80px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; max-width: 12ch; }
.showcase-head p { font-size: 17px; color: var(--muted); max-width: 48ch; line-height: 1.6; }

.pinned {
  display: grid; grid-template-columns: 5fr 4fr;
}
.pinned-media {
  position: sticky; top: 0; height: 100vh;
  background: var(--ink);
  overflow: hidden;
}
.pinned-media .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 700ms ease;
  filter: brightness(0.85) contrast(1.05);
}
.pinned-media .slide.active { opacity: 1; }
.pinned-media .meta {
  position: absolute; left: 32px; bottom: 32px; right: 32px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.pinned-media .meta .caption { max-width: 320px; }
.pinned-media .progress {
  position: absolute; top: 32px; left: 32px; right: 32px;
  display: flex; gap: 8px;
}
.pinned-media .progress .bar { flex: 1; height: 1px; background: rgba(255,255,255,0.3); overflow: hidden; }
.pinned-media .progress .bar span { display: block; height: 100%; width: 0; background: rgba(255,255,255,0.95); transition: width 400ms ease; }
.pinned-media .progress .bar.active span { width: 100%; }

.pinned-panels { display: flex; flex-direction: column; }
.panel {
  min-height: 100vh;
  padding: clamp(80px, 10vw, 140px) clamp(32px, 5vw, 72px);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.panel:first-child { border-top: none; }
.panel-num {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.1em; margin-bottom: 24px;
}
.panel h3 {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.02;
  margin-bottom: 24px;
}
.panel h3 .accent { display: block; font-weight: 300; color: var(--muted); }
.panel p {
  font-size: 17px; line-height: 1.65; color: var(--ink-2);
  max-width: 48ch; margin-bottom: 28px;
}
.panel-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--line);
  max-width: 540px;
}
.panel-stats .v { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.panel-stats .k { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------------- Booking ---------------- */
.booking { background: var(--bg-alt); }
.booking .container { padding-top: 0; padding-bottom: 0; }
.booking-inner { padding-block: clamp(72px, 9vw, 120px); }

/* Single-column section head (no right paragraph) */
.head-wide { grid-template-columns: 1fr; }
.head-wide h2 { max-width: none; white-space: nowrap; }
.booking-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.booking-calendar { padding: 40px; border-right: 1px solid var(--line); }
.booking-form { padding: 40px; }

.prop-switch {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0;
  border: 1px solid var(--ink); margin-bottom: 32px;
}
.prop-switch button {
  padding: 12px 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--muted);
  border-right: 1px solid var(--line);
  transition: all 180ms ease;
  text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prop-switch button:last-child { border-right: none; }
.prop-switch button.on { background: var(--ink); color: var(--bg); }
.prop-switch button:hover:not(.on) { color: var(--ink); background: var(--bg); }

.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.cal-head .month { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.cal-head .nav { display: flex; gap: 4px; }
.cal-head .nav button {
  width: 36px; height: 36px; border: 1px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 160ms ease;
}
.cal-head .nav button:hover { background: var(--ink); color: var(--bg); }
.cal-head .nav button svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.5; fill: none; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dh {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-align: center; padding: 8px 0;
}
.cal-day {
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums;
  background: var(--bg); color: var(--ink);
  cursor: pointer; position: relative;
  transition: all 140ms ease;
}
.cal-day.empty { background: transparent; pointer-events: none; }
.cal-day.past { color: var(--muted-2); background: var(--bg); cursor: default; }
.cal-day.booked { background: repeating-linear-gradient(135deg, var(--bg) 0 4px, var(--line-2) 4px 5px); color: var(--muted-2); cursor: default; text-decoration: line-through; }
/* Anreisetag eines anderen Gastes: obere Hälfte frei (Abreise möglich), untere Hälfte belegt */
.cal-day.checkout-only { background: linear-gradient(135deg, var(--bg) 0 50%, transparent 50%), repeating-linear-gradient(135deg, var(--bg) 0 4px, var(--line-2) 4px 5px); color: var(--ink); text-decoration: none; cursor: pointer; }
.cal-day.checkout-only.sel-end { background: var(--ink); color: var(--bg); }
.cal-day.checkout-only.sel-preview { background: var(--line); }
.cal-day.today { outline: 1px solid var(--ink); outline-offset: -1px; font-weight: 700; }
.cal-day.sel-start, .cal-day.sel-end { background: var(--ink); color: var(--bg); }
.cal-day.sel-between { background: var(--stone); color: var(--ink); }
.cal-day.sel-preview { background: var(--line); color: var(--ink); }
.cal-day:hover:not(.past):not(.booked):not(.sel-start):not(.sel-end):not(.sel-between):not(.sel-preview) { background: var(--ink); color: var(--bg); }

.cal-loading {
  grid-column: 1 / -1;
  padding: 40px 0;
  text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}

/* Calendar selection summary */
.cal-summary {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.cal-summary-row {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.cal-summary-item {
  display: flex; flex-direction: column; gap: 4px;
}
.cal-summary-item .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.cal-summary-item .v {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); font-variant-numeric: tabular-nums;
  transition: color 200ms ease;
}
.cal-summary[data-empty="true"] .cal-summary-item .v { color: var(--muted-2); font-weight: 400; }
.cal-summary[data-empty="true"] .cal-summary-arrow { color: var(--muted-2); }
.cal-summary-arrow {
  font-size: 14px; color: var(--ink);
  margin-top: 14px;
  transition: color 200ms ease;
}
.cal-summary-nights { margin-left: auto; }
.cal-summary-item[hidden] { display: none; }
.cal-summary-price .v { font-size: 20px; font-weight: 700; }
.cal-summary-note {
  margin-top: 10px;
  font-size: 12px; line-height: 1.5; color: var(--muted);
}
.cal-summary-price .v .star {
  font-size: 0.6em; font-weight: 400; vertical-align: super;
  color: var(--muted); margin-left: 1px;
}
.cal-summary-price .v .was {
  font-size: 0.7em; font-weight: 400;
  color: var(--muted-2); text-decoration: line-through;
  margin-right: 6px;
}
@keyframes valueDrop {
  0% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cal-summary.dropping .cal-summary-item .v { animation: valueDrop 0.32s ease-out; }
@media (max-width: 600px) {
  .cal-summary-nights { margin-left: 0; }
  .cal-summary-arrow { display: none; }
}

.cal-legend { display: flex; gap: 20px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.cal-legend .sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.cal-legend .sw.sel { background: var(--ink); }
.cal-legend .sw.today { outline: 1px solid var(--ink); outline-offset: -1px; background: var(--bg); }
.cal-legend .sw.booked { background: repeating-linear-gradient(135deg, var(--bg) 0 2px, var(--line-2) 2px 3px); }
.cal-legend .sw.checkout { background: linear-gradient(135deg, var(--bg) 0 50%, transparent 50%), repeating-linear-gradient(135deg, var(--bg) 0 2px, var(--line-2) 2px 3px); outline: 1px solid var(--line-2); outline-offset: -1px; }

.form-label {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.form-label .req { color: var(--booked); }
.form-label-hint {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  transform: translateX(-4px);
  transition: max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease 0.05s,
              transform 0.3s ease 0.05s;
}
.form-label-hint.show {
  max-width: 600px;
  opacity: 1;
  transform: translateX(0);
}
.form-input, .form-select, .form-area {
  width: 100%; padding: 12px 0; font: inherit;
  background: transparent; border: none;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink); transition: border-color 160ms ease;
}
.form-input:focus, .form-select:focus, .form-area:focus { outline: none; border-bottom-color: var(--ink); }
.form-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-position: calc(100% - 14px) center, calc(100% - 8px) center; background-size: 6px 6px; background-repeat: no-repeat; }
.form-area { resize: vertical; min-height: 96px; border: 1px solid var(--line-2); padding: 12px; }
.form-area:focus { border-color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { position: relative; margin-bottom: 22px; }
.form-submit { width: 100%; margin-top: 8px; justify-content: center; padding: 18px; font-size: 14px; }

/* Focus bar — animated underline that grows from center on focus */
.form-focus-bar {
  position: absolute; bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--ink);
  transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              left 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.2s ease;
  pointer-events: none;
}
.form-input:focus ~ .form-focus-bar,
.form-select:focus ~ .form-focus-bar {
  width: 100%; left: 0;
}

/* Email invalid state — only when there's content but missing @ */
.form-field.field-invalid .form-input { border-bottom-color: var(--booked); }
.form-field.field-invalid .form-focus-bar { background: var(--booked); }
.form-field.field-invalid .form-label { color: var(--booked); }

/* Submit button states */
.form-submit { position: relative; overflow: hidden; }
.btn-loader,
.btn-checkmark {
  display: none;
}
.btn-loader {
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
.btn-checkmark path {
  stroke-dasharray: 30; stroke-dashoffset: 30;
}

.form-submit.btn-sending .btn-text,
.form-submit.btn-sending .btn-text-arrow,
.form-submit.btn-success .btn-text,
.form-submit.btn-success .btn-text-arrow,
.form-submit.btn-error .btn-text-arrow {
  display: none;
}
.form-submit.btn-sending .btn-loader { display: inline-block; }

.form-submit.btn-success { background: var(--ok, #3d6b3f); border-color: var(--ok, #3d6b3f); }
.form-submit.btn-success .btn-checkmark { display: inline-block; color: var(--bg); }
.form-submit.btn-success .btn-checkmark path {
  animation: checkDraw 0.45s ease-out 0.05s forwards;
}
@keyframes checkDraw { to { stroke-dashoffset: 0; } }

.form-submit.btn-error {
  background: var(--booked); border-color: var(--booked);
  animation: btnShake 0.42s ease;
}
.form-submit.btn-error .btn-text { display: inline; color: var(--bg); }
@keyframes btnShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.booking-form h3 { font-size: 32px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 8px; }
.booking-form > .eyebrow { margin-bottom: 24px; }
.booking-form .intro { color: var(--muted); margin-bottom: 28px; font-size: 15px; }

/* ---------------- Footer ---------------- */
.footer {
  background: var(--ink); color: var(--bg);
  padding: clamp(80px, 9vw, 120px) 0 40px;
}
.footer .container { display: flex; flex-direction: column; gap: 80px; }
.footer-wordmark {
  font-size: clamp(96px, 18vw, 260px);
  font-weight: 800; letter-spacing: -0.06em; line-height: 0.8;
  color: var(--bg);
  opacity: 0.95;
}
.footer-cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px;
  padding-top: 56px; border-top: 1px solid rgba(255,255,255,0.15);
}
.footer-cols h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 16px; font-weight: 500; }
.footer-cols ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-cols a { color: rgba(255,255,255,0.85); font-size: 15px; transition: color 140ms ease; }
.footer-cols a:hover { color: var(--bg); }
.footer-cols p { color: rgba(255,255,255,0.75); font-size: 15px; line-height: 1.6; max-width: 32ch; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6); text-transform: uppercase;
}

/* ---------------- Entdecken hub (regions list) ---------------- */
.regions-intro {
  padding: clamp(44px, 5.5vw, 80px) 0 clamp(40px, 5vw, 72px);
}
.regions-intro h1 {
  font-size: clamp(27px, 5.4vw, 78px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.05;
  color: var(--ink);
  white-space: nowrap;
}
.regions-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--ink);
  padding-bottom: clamp(80px, 9vw, 120px);
}
.region-row {
  display: grid; grid-template-columns: 7fr 5fr; gap: 0;
  width: 100%;
  border-bottom: 1px solid var(--line);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: background 240ms ease;
}
.region-row:hover { background: var(--bg-alt); }
/* Alternate sides — image right on even rows. Padding stays symmetric. */
.region-row:nth-child(even) { grid-template-columns: 5fr 7fr; }
.region-row:nth-child(even) .region-media { order: 2; }
.region-row:nth-child(even) .region-info { order: 1; }

.region-media {
  position: relative;
  overflow: hidden;
  background: var(--stone);
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
.region-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.22,1,0.36,1);
}
.region-row:hover .region-media img { transform: scale(1.04); }

.region-info {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 5vw, 72px);
  gap: 20px;
  min-width: 0;
}
.region-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.region-name {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.02;
  color: var(--ink);
}
.region-name .accent {
  display: block; font-weight: 300; color: var(--muted);
  margin-top: 6px;
  font-size: 0.6em; letter-spacing: -0.02em;
}
.region-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  padding-top: 16px; border-top: 1px solid var(--line);
}
.region-cta { align-self: flex-start; }
.region-row:hover .region-cta { background: transparent; color: var(--ink); }
.region-row:hover .region-cta .btn-badge { background: var(--ink); color: var(--bg); }

@media (max-width: 800px) {
  .region-row,
  .region-row:nth-child(even) { grid-template-columns: 1fr; }
  .region-row:nth-child(even) .region-media { order: 1; }
  .region-row:nth-child(even) .region-info { order: 2; }
  .region-row .region-info { padding: clamp(32px, 6vw, 48px); }
}

/* ---------------- Region detail pages ---------------- */
/* Compact hero for sub-pages (sits just below the topbar) */
.hero.compact { min-height: 78vh; }
.hero.compact .hero-inner { min-height: 78vh; padding-bottom: clamp(40px, 5vw, 80px); }
.hero.compact .hero-title { font-size: clamp(48px, 7vw, 104px); line-height: 1.05; }

/* Standalone stats strip */
.region-stats-strip {
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.region-stats-strip .stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.region-stats-strip .stat .v {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1;
}
.region-stats-strip .stat .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin-top: 12px;
}
@media (max-width: 800px) {
  .region-stats-strip .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* 3-image gallery */
.gallery-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding: clamp(80px, 9vw, 120px) 0;
}
.gallery-3 .item {
  display: flex; flex-direction: column; gap: 16px;
}
.gallery-3 .item img {
  width: 100%; aspect-ratio: 4 / 5;
  object-fit: cover;
}
.gallery-3 .item .caption {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
@media (max-width: 800px) {
  .gallery-3 { grid-template-columns: 1fr; }
}

/* Final CTA on region pages — dark, full-bleed */
.region-final-cta {
  background: var(--ink); color: var(--bg);
  padding: clamp(80px, 10vw, 160px) 0;
  border-top: 1px solid var(--ink);
}
.region-final-cta .container {
  display: flex; flex-direction: column; gap: 32px;
  align-items: flex-start;
}
.region-final-cta .eyebrow { color: rgba(255, 255, 255, 0.6); }
.region-final-cta .eyebrow::before { background: rgba(255, 255, 255, 0.6); }
.region-final-cta h2 {
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  max-width: 18ch;
}
.region-final-cta p {
  font-size: clamp(17px, 1.4vw, 21px); font-weight: 300;
  color: rgba(255, 255, 255, 0.85); line-height: 1.5;
  max-width: 56ch;
}
.region-final-cta .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.region-final-cta .btn { border-color: var(--bg); }
.region-final-cta .btn-primary { background: var(--bg); color: var(--ink); }
.region-final-cta .btn-primary:hover { background: transparent; color: var(--bg); }
.region-final-cta .btn-ghost { color: var(--bg); }
.region-final-cta .btn-ghost:hover { background: var(--bg); color: var(--ink); }

/* ---------------- Legal pages ---------------- */
.legal {
  padding: clamp(80px, 10vw, 140px) 0 clamp(72px, 9vw, 120px);
}
.legal-head {
  margin-bottom: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--ink);
  display: flex; flex-direction: column; gap: 20px;
}
.legal-head h1 {
  font-size: clamp(48px, 6.5vw, 96px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  color: var(--ink);
}
.legal-content {
  max-width: 64ch;
  font-size: 16px; line-height: 1.7; color: var(--ink-2);
}
.legal-content h2 {
  font-size: 13px; font-weight: 500;
  font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  margin-top: 56px; margin-bottom: 18px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.legal-content h2:first-child {
  margin-top: 0; padding-top: 0; border-top: none;
}
.legal-content h3 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 32px; margin-bottom: 12px;
}
.legal-content p { margin-bottom: 18px; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content ul {
  list-style: none;
  margin: 16px 0 18px;
  padding-left: 0;
}
.legal-content li {
  position: relative; padding-left: 24px;
  margin-bottom: 8px;
}
.legal-content li::before {
  content: "";
  position: absolute; left: 0; top: 13px;
  width: 12px; height: 1px; background: var(--muted);
}
.legal-content a {
  color: var(--ink); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color 160ms ease;
}
.legal-content a:hover { color: var(--muted); }

/* ---------------- Cookie consent banner ---------------- */
.cookie-banner {
  position: fixed; bottom: 24px; left: 24px; right: 24px;
  z-index: 9999;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  max-width: 560px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 320ms ease, transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--sans);
}
.cookie-banner.cookie-visible { opacity: 1; transform: translateY(0); }

.cookie-inner { padding: 28px 32px 24px; }

.cookie-eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  margin-bottom: 8px;
}

.cookie-text h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 10px;
}

.cookie-text p {
  font-size: 14px; line-height: 1.55; color: var(--ink-2);
  margin-bottom: 0;
}
.cookie-text a {
  color: var(--ink); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 2px;
}

.cookie-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 20px;
}
.cookie-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 18px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
  font-family: inherit;
}
.cookie-btn:hover { background: var(--ink); color: var(--bg); }
.cookie-btn-primary { background: var(--ink); color: var(--bg); }
.cookie-btn-primary:hover { background: transparent; color: var(--ink); }
.cookie-btn-link {
  border: none; padding: 11px 8px;
  text-decoration: underline; text-underline-offset: 3px;
  color: var(--muted);
}
.cookie-btn-link:hover { background: transparent; color: var(--ink); }

/* Details (collapsible) */
.cookie-details {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.cookie-details.cookie-details-open { display: block; }

.cookie-category {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cookie-category:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 20px; }

.cookie-category-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.cookie-category-name {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); font-weight: 500;
}
.cookie-category-badge {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  padding: 4px 8px; border: 1px solid var(--line);
}
.cookie-category-desc {
  font-size: 13px; line-height: 1.55; color: var(--muted);
}

/* Toggle switch */
.cookie-toggle {
  position: relative; display: inline-block;
  width: 40px; height: 22px;
  cursor: pointer;
}
.cookie-toggle input {
  opacity: 0; width: 0; height: 0;
}
.cookie-toggle-slider {
  position: absolute; inset: 0;
  background: var(--line-2);
  transition: background 200ms ease;
  border-radius: 22px;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: var(--paper);
  border-radius: 50%;
  transition: transform 200ms ease;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--ink); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(18px); }
.cookie-toggle input:focus-visible + .cookie-toggle-slider { outline: 2px solid var(--ink); outline-offset: 2px; }

.cookie-btn-save { width: 100%; }

@media (max-width: 600px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .cookie-inner { padding: 24px 20px 20px; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .cookie-btn { width: 100%; }
}

/* ---------------- Reveals ---------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 800ms ease, transform 800ms cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------------- Anchor scroll offset ---------------- */
/* Sticky topbar covers ~80px; offset section anchors so headings clear it */
section[id], header[id] {
  scroll-margin-top: 96px;
}

/* ---------------- Focus styles (accessibility) ---------------- */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible {
  outline-offset: 2px;
}
.form-input:focus-visible,
.form-select:focus-visible,
.form-area:focus-visible {
  outline: none;  /* keep the underline-on-focus design */
}
/* Remove default focus on interactive elements that already have a visible state */
.cal-day:focus-visible,
.prop-switch button:focus-visible,
.cal-head .nav button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.hero-actions a:focus-visible,
.topbar-nav a:focus-visible {
  outline-color: var(--bg);
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-img { transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .flat:hover .flat-media img { transform: none; }
  .topbar-ticker .dot { animation: none; }
  .hero-scroll .line::after { animation: none; }
  .pinned-media .slide { transition: none; }
}

/* ---------------- Responsive ---------------- */

/* Tablet (768–960px) — keep flats grid 2-col, footer 2-col */
@media (max-width: 1080px) and (min-width: 769px) {
  .flats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Below 960px — collapse layout, show mobile menu */
@media (max-width: 960px) {
  .topbar-ticker { display: none; }
  .topbar-main { grid-template-columns: 1fr auto; gap: 16px; }

  /* Hide desktop nav, show hamburger */
  .topbar-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--ink);
    padding: 16px var(--pad-x) 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  .topbar-nav.open { display: flex; }
  .topbar-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .topbar-nav a:last-of-type { border-bottom: none; }
  .topbar-nav-indicator { display: none; }

  .topbar-menu-btn { display: flex; }
  .topbar-cta-btn { display: none; }  /* small screens: CTA only in expanded menu */
  .lang { display: none; }

  /* Section layouts */
  .section-head, .showcase-head, .manifesto-grid { grid-template-columns: 1fr; gap: 32px; }
  .flats-grid { grid-template-columns: 1fr; }
  .pinned { grid-template-columns: 1fr; }
  .pinned-media { position: relative; height: 60vh; }
  .booking-grid { grid-template-columns: 1fr; }
  .booking-grid > * { min-width: 0; }  /* Grid-Items dürfen schmaler als ihr Inhalt werden (kein horizontaler Überlauf) */
  .booking-calendar { border-right: none; border-bottom: 1px solid var(--line); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-meta { grid-auto-flow: row; gap: 16px; }
  .hero-scroll { display: none; }
}

/* Allow wide headlines to wrap on narrow screens */
@media (max-width: 700px) {
  .head-wide h2 { white-space: normal; }
}

/* Small mobile (<560px) — single-col footer, tighter hero */
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer { overflow-x: hidden; }
  .footer-wordmark { font-size: 15vw; letter-spacing: -0.03em; }  /* Wortmarke passte nicht in 375px-Screens (horizontaler Überlauf) */
  .booking-calendar, .booking-form { padding: 28px 18px; }
  .cal-head .month { font-size: 17px; }
  .hero-top { flex-direction: column; gap: 8px; }
  .panel-stats { grid-template-columns: 1fr 1fr; }
  /* Property picker: wrap to 2 columns so 4+ buttons stay legible */
  .prop-switch { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; }
  .prop-switch button { padding: 11px 8px; font-size: 11px; letter-spacing: 0.02em; }
  .prop-switch button:nth-child(odd) { border-right: 1px solid var(--line); }
  .prop-switch button:last-child { border-right: none; }
}

/* =========================================================
   Wohnungs-Detailseiten (/wohnungen/<slug>)
   ========================================================= */
.wohnung-hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.wohnung-facts .stats-grid { grid-template-columns: repeat(6, 1fr); }
.wohnung-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(40px, 6vw, 96px); padding: clamp(64px, 8vw, 112px) 0; align-items: start;
}
.wohnung-desc h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 36px 0 12px; }
.wohnung-desc h3:first-child { margin-top: 0; }
.wohnung-desc p { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin-bottom: 16px; max-width: 62ch; }
.wohnung-desc ul { margin: 0 0 18px; padding: 0; list-style: none; }
.wohnung-desc li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.6; color: var(--ink-2); margin-bottom: 6px; }
.wohnung-desc li::before { content: ""; position: absolute; left: 0; top: 12px; width: 10px; height: 1px; background: var(--ink); }
.wohnung-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin: 0 0 36px; padding: 0 0 28px; list-style: none; border-bottom: 1px solid var(--line); }
.wohnung-highlights li { font-size: 14px; font-weight: 500; padding-left: 22px; position: relative; }
.wohnung-highlights li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 700; }
.wohnung-aside { position: sticky; top: 96px; border: 1px solid var(--line); background: var(--paper); padding: 28px; }
.wohnung-aside .aside-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wohnung-aside .flat-price .amt { font-size: 32px; }
.wohnung-aside .flat-tag { position: static; }
.wohnung-aside dl { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 24px 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wohnung-aside dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.wohnung-aside dd { font-size: 15px; line-height: 1.45; }
.wohnung-aside .btn { width: 100%; justify-content: center; }
.wohnung-aside .rating { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 16px; text-align: center; line-height: 1.7; }
.wohnung-aside .rating a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.wohnung-section { padding: 0 0 clamp(64px, 8vw, 112px); }
.wohnung-section .section-head { margin-bottom: 32px; }
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 10px; }
.gal-item { display: block; overflow: hidden; background: var(--bg-alt); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms ease; }
.gal-item:hover img { transform: scale(1.03); }
.gal-item.lead { grid-column: span 2; grid-row: span 2; }
.gal-item.tall { grid-row: span 2; }
.sleep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sleep-card { border: 1px solid var(--line); padding: 22px 24px; background: var(--paper); }
.sleep-card .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sleep-card .v { font-size: 17px; font-weight: 600; }
.amen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; }
.amen-group h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.amen-group ul { list-style: none; margin: 0; padding: 0; }
.amen-group li { font-size: 15px; line-height: 1.5; padding: 5px 0 5px 20px; position: relative; color: var(--ink-2); }
.amen-group li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 1px; background: var(--ink); }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.more-card { display: block; color: inherit; }
.more-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--bg-alt); }
.more-card .r { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.more-card .n { font-size: 17px; font-weight: 600; margin-top: 4px; letter-spacing: -0.01em; }
.more-card:hover .n { text-decoration: underline; text-underline-offset: 3px; }
.wohnungen-overview .more-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Karten auf der Startseite: Details + Anfragen */
.flat-links { display: flex; align-items: center; gap: 18px; }
.flat-details { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.flat-details:hover { color: var(--ink); }
/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(15, 15, 14, 0.96); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.lb.open { opacity: 1; pointer-events: auto; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 30px; line-height: 1; padding: 16px; opacity: 0.8; font-family: var(--sans); }
.lb button:hover { opacity: 1; }
.lb .lb-close { top: 10px; right: 14px; }
.lb .lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; opacity: 0.7; }
@media (max-width: 1100px) {
  .wohnung-layout { grid-template-columns: 1fr; }
  .wohnung-aside { position: static; }
  .wohnung-facts .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .gal-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .amen-grid, .more-grid, .wohnungen-overview .more-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .wohnung-facts .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .sleep-grid, .amen-grid, .wohnung-highlights, .more-grid, .wohnungen-overview .more-grid { grid-template-columns: 1fr; }
  .flat-links { gap: 12px; }
}
