/* ════════════════════════════════════════════════════════════
   WOHNRAUM BAYERN GmbH · Shared Stylesheet
   Design: "Stiller Wert" — Editorial Serif × Warm Ivory × Pine
   Fonts: Fraunces (Display) + Manrope (Text)
═════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ── Tokens ── */
:root {
  --bg:           #f7f5ef;
  --bg2:          #efebe0;
  --surface:      #fffdf8;
  --border:       #e3ddcd;
  --border-soft:  #ece7da;
  --ink:          #122a1f;
  --ink-muted:    #54655b;
  --ink-subtle:   #8a978e;
  --pine:         #16382a;
  --pine-2:       #1d4936;
  --green:        #2d6a4e;
  --green-soft:   #e4ede5;
  --gold:         #c19a52;
  --gold-dark:    #9c7837;
  --gold-pale:    #f4ead3;
  --cream:        #f3efe4;
  --white-warm:   #fbf9f4;
  --ease:         cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --r-sm:         0.375rem;
  --r-md:         0.75rem;
  --r-lg:         1.25rem;
  --r-xl:         2rem;
  --shadow-sm:    0 1px 3px rgba(18,42,31,.07), 0 1px 2px rgba(18,42,31,.04);
  --shadow-md:    0 6px 24px rgba(18,42,31,.09), 0 2px 6px rgba(18,42,31,.05);
  --shadow-lg:    0 20px 60px rgba(18,42,31,.14), 0 6px 18px rgba(18,42,31,.07);
  --serif:        'Fraunces', Georgia, serif;
  --sans:         'Manrope', -apple-system, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }
::selection { background: var(--gold); color: var(--pine); }

/* Subtle paper grain over everything */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Custom cursor (desktop only) ── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 3000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--gold-dark); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(156,120,55,.5);
  transition: width 280ms var(--ease), height 280ms var(--ease),
              border-color 280ms var(--ease), background 280ms var(--ease);
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  background: rgba(193,154,82,.12);
  border-color: rgba(156,120,55,.9);
}
@media (hover: none), (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── Typography ── */
.display {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 7.2vw, 6.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.display em, .headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-dark);
}
.headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 500;
  line-height: 1.25;
}
.overline {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.overline::before {
  content: '';
  width: 2.2rem; height: 1px;
  background: var(--gold);
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-muted);
  line-height: 1.75;
  max-width: 56ch;
}
p { max-width: 65ch; }
.muted { color: var(--ink-muted); }
.small { font-size: .85rem; }

/* ── Layout ── */
.container {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.container-wide { width: min(100%, 1440px); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.section-sm { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section-header { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-header .headline { margin-top: 1rem; }
.section-header .lead { margin-top: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 400ms var(--ease), box-shadow 400ms var(--ease), border-color 400ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247,245,239,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-soft);
  box-shadow: 0 1px 24px rgba(18,42,31,.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 2rem;
}
.nav-logo { display: flex; align-items: center; gap: .75rem; }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.nav-links a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-muted);
  position: relative;
  padding-block: .35rem;
  transition: color 250ms var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--gold-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 350ms var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: flex; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 350ms var(--ease), opacity 250ms var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--pine);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 8vw, 4rem);
  gap: .25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease);
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--cream);
  padding-block: .5rem;
  border-bottom: 1px solid rgba(243,239,228,.12);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 500ms var(--ease), opacity 500ms var(--ease), color 250ms;
}
.mobile-nav.open a { transform: translateY(0); opacity: 1; }
.mobile-nav.open a:nth-child(1) { transition-delay: 60ms; }
.mobile-nav.open a:nth-child(2) { transition-delay: 120ms; }
.mobile-nav.open a:nth-child(3) { transition-delay: 180ms; }
.mobile-nav.open a:nth-child(4) { transition-delay: 240ms; }
.mobile-nav.open a:nth-child(5) { transition-delay: 300ms; }
.mobile-nav.open a:nth-child(6) { transition-delay: 360ms; }
.mobile-nav a:hover { color: var(--gold); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 100px;
  padding: .9rem 1.9rem;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease),
              background 300ms var(--ease), color 300ms var(--ease), border-color 300ms;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--pine);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--pine-2); box-shadow: var(--shadow-md); }
.btn-gold {
  background: var(--gold);
  color: var(--pine);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { background: #cfa75e; box-shadow: var(--shadow-md); }
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { border-color: var(--gold-dark); color: var(--gold-dark); }
.btn-light {
  background: var(--cream);
  color: var(--pine);
}
.btn-light:hover { background: #fff; }
.btn-sm { padding: .6rem 1.3rem; font-size: .85rem; }
.btn-lg { padding: 1.05rem 2.3rem; font-size: 1rem; }
.btn .arrow { transition: transform 300ms var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ── Tags / chips ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem .85rem;
  border-radius: 100px;
  background: var(--green-soft);
  color: var(--pine-2);
}
.tag-gold { background: var(--gold-pale); color: var(--gold-dark); }
.tag-dark { background: rgba(243,239,228,.1); color: var(--cream); border: 1px solid rgba(243,239,228,.18); }
.tag-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .9;
}
.hero-content { position: relative; z-index: 2; }
.hero-fade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(247,245,239,0) 40%, var(--bg) 96%);
  pointer-events: none;
}
.hero .display { max-width: 14ch; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.hero-meta-item .num {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--pine);
  line-height: 1.1;
}
.hero-meta-item .num sup { font-size: .55em; color: var(--gold-dark); }
.hero-meta-item .lbl {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-top: .3rem;
}
.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--ink-subtle);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.scroll-hint .line {
  width: 1px; height: 44px;
  background: linear-gradient(var(--gold-dark), transparent);
  animation: scrollPulse 2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Marquee ticker ── */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--surface);
  padding-block: 1.1rem;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 3.5rem;
  padding-right: 3.5rem;
  will-change: transform;
  animation: marquee 36s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink-muted);
}
.marquee-item::after { content: '✦'; color: var(--gold); font-size: .8rem; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease), border-color 400ms;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--pine-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
}
.card h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: .6rem; }
.card p { font-size: .95rem; color: var(--ink-muted); }

/* ── Step rows (Modell) ── */
.step-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  align-items: start;
}
.step-num {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--gold-dark);
  min-width: 2ch;
}
.step-row h3 { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; margin-bottom: .7rem; }
.step-row p { color: var(--ink-muted); }

/* ── Stats band ── */
.stats-band {
  background: var(--pine);
  color: var(--cream);
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.stats-band::after {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 50%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,154,82,.22), transparent 65%);
  pointer-events: none;
}
.stat .num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
}
.stat .num .suffix { font-size: .5em; vertical-align: super; }
.stat .lbl {
  margin-top: .6rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(243,239,228,.65);
}

/* ── Image blocks / parallax ── */
.img-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  will-change: transform;
}
.img-caption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(18,42,31,.78);
  backdrop-filter: blur(8px);
  color: var(--cream);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: .45rem .9rem;
  border-radius: 100px;
}

/* ── Objekt cards ── */
.objekt-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform 450ms var(--ease), box-shadow 450ms var(--ease);
  display: flex;
  flex-direction: column;
}
.objekt-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.objekt-media {
  position: relative;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
}
.objekt-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}
.objekt-card:hover .objekt-media img { transform: scale(1.07); }
.objekt-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
}
.objekt-status {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem .85rem;
  border-radius: 100px;
  background: rgba(251,249,244,.92);
  color: var(--pine);
}
.objekt-status.green { background: rgba(45,106,78,.92); color: #fff; }
.objekt-body { padding: clamp(1.4rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: 1.1rem; flex: 1; }
.objekt-body h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.objekt-body .loc { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--ink-subtle); font-weight: 600; }
.objekt-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-soft);
  padding-top: 1.1rem;
  gap: .75rem;
  margin-top: auto;
}
.objekt-kpis .k { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--pine); }
.objekt-kpis .k em { font-style: normal; font-size: .7em; color: var(--gold-dark); }
.objekt-kpis .l { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-subtle); margin-top: .2rem; }

/* ── Calculator ── */
.calc {
  background: var(--pine);
  border-radius: var(--r-xl);
  color: var(--cream);
  padding: clamp(2rem, 4.5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.calc::before {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 45%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,106,78,.5), transparent 70%);
}
.calc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); position: relative; z-index: 1; align-items: center; }
.calc input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 4px;
  background: rgba(243,239,228,.22);
  outline: none;
  margin-block: 1.3rem .4rem;
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid var(--pine);
  box-shadow: 0 0 0 1.5px var(--gold);
  cursor: pointer;
  transition: transform 200ms var(--ease);
}
.calc input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--pine);
  box-shadow: 0 0 0 1.5px var(--gold);
  cursor: pointer;
}
.calc-value {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
}
.calc-result {
  background: rgba(243,239,228,.07);
  border: 1px solid rgba(243,239,228,.14);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  backdrop-filter: blur(6px);
}
.calc-result .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: .8rem;
  border-bottom: 1px solid rgba(243,239,228,.12);
  gap: 1rem;
}
.calc-result .row:last-child { border-bottom: none; }
.calc-result .row .lbl { font-size: .85rem; color: rgba(243,239,228,.7); }
.calc-result .row .val { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--gold); white-space: nowrap; }
.calc-note { font-size: .75rem; color: rgba(243,239,228,.55); margin-top: 1.25rem; line-height: 1.6; max-width: none; }

/* ── Accordion (FAQ / Glossar) ── */
.accordion { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.4rem;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: var(--ink);
  transition: color 250ms var(--ease);
}
.acc-head:hover { color: var(--gold-dark); }
.acc-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform 400ms var(--ease), background 300ms, border-color 300ms;
}
.acc-icon svg { transition: transform 400ms var(--ease); }
.acc-item.open .acc-icon { background: var(--pine); border-color: var(--pine); color: var(--cream); transform: rotate(180deg); }
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 500ms var(--ease);
}
.acc-body-inner { padding-bottom: 1.6rem; color: var(--ink-muted); max-width: 62ch; }

/* ── Team ── */
.team-card { text-align: left; }
.team-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
}
.team-card .role { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .35rem; }

/* ── Timeline (Über uns) ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 1.5px;
  background: linear-gradient(var(--gold), var(--border));
}
.tl-item { position: relative; padding-bottom: 2.2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -2rem; top: 7px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 2.5px solid var(--bg);
  box-shadow: 0 0 0 1.5px var(--gold-dark);
}
.tl-item .year { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--pine); }
.tl-item p { font-size: .95rem; color: var(--ink-muted); margin-top: .25rem; }

/* ── Forms ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: .45rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-muted); }
.form-field input, .form-field textarea, .form-field select {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: .9rem 1.1rem;
  color: var(--ink);
  transition: border-color 250ms var(--ease), box-shadow 250ms var(--ease);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(193,154,82,.18);
}
.form-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .82rem; color: var(--ink-muted); }
.form-check input { margin-top: .25rem; accent-color: var(--green); width: 16px; height: 16px; flex-shrink: 0; }

/* ── Risk band ── */
.risk-band {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding-block: clamp(2rem, 4vw, 3rem);
}
.risk-band .inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: start;
  max-width: 70rem;
}
.risk-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold-pale);
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.risk-band h4 { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem; }
.risk-band p { font-size: .8rem; line-height: 1.65; color: var(--ink-muted); max-width: none; }

/* ── Footer ── */
.footer {
  background: var(--pine);
  color: rgba(243,239,228,.75);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: -30%; left: 50%;
  width: 60%; aspect-ratio: 2;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(45,106,78,.4), transparent 70%);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  position: relative;
}
.footer-logo img { height: 64px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.footer h5 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.footer a { transition: color 250ms var(--ease); font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer ul li { margin-bottom: .55rem; }
.footer .small { color: rgba(243,239,228,.45); }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243,239,228,.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: .8rem;
  color: rgba(243,239,228,.45);
  position: relative;
}

/* ── Page hero (subpages) ── */
.page-hero {
  padding-top: calc(80px + clamp(3.5rem, 8vw, 7rem));
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero .display { max-width: 16ch; }
.page-hero .lead { margin-top: 1.5rem; }
.page-hero-bg {
  position: absolute;
  top: -20%; right: -8%;
  width: clamp(300px, 38vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,154,82,.16), transparent 65%);
  pointer-events: none;
}

/* ── Reveal (IntersectionObserver fallback + GSAP) ── */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }
.reveal-delay-4 { transition-delay: 360ms; }

/* Split-line hero animation */
.split-line { display: block; overflow: hidden; }
.split-line > span { display: block; will-change: transform; }

/* ── Misc ── */
.divider-gold { width: 64px; height: 2px; background: var(--gold); border: none; margin-block: 1.5rem; }
.check-list li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding-block: .55rem;
  color: var(--ink-muted);
}
.check-list li svg { flex-shrink: 0; margin-top: .3rem; color: var(--green); }
.check-list li strong { color: var(--ink); }

.dark-section {
  background: var(--pine);
  color: var(--cream);
}
.dark-section .headline, .dark-section .title { color: #fff; }
.dark-section .lead, .dark-section p { color: rgba(243,239,228,.72); }
.dark-section .overline { color: var(--gold); }
.dark-section .overline::before { background: var(--gold); }

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.kpi-strip > div { background: var(--surface); padding: 1.6rem 1.4rem; }
.kpi-strip .k { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--pine); }
.kpi-strip .l { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-subtle); margin-top: .3rem; }

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
table.compare th, table.compare td {
  text-align: left;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
table.compare th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-subtle); }
table.compare td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
table.compare td { color: var(--ink-muted); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .kpi-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .grid-2, .calc-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .step-row { grid-template-columns: 1fr; gap: .75rem; }
  .risk-band .inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: 1fr 1fr; }
  .objekt-kpis { grid-template-columns: repeat(3, 1fr); }
  .nav-logo img { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
