/* ============================================================
   tanneundhedde.de – Editorial-Design „Deichkante“
   Palette: Leinen-Papier, Deichgrün, Backstein, Messing
   ============================================================ */

:root {
  --paper: #F6F1E7;
  --paper-2: #EDE6D6;
  --ink: #20302B;
  --ink-soft: #47554F;
  --pine: #28463D;
  --pine-deep: #1C332C;
  --brick: #B4552D;
  --brick-soft: #C96F45;
  --brass: #A8823C;
  --sea: #93A8AE;
  --line: rgba(32, 48, 43, .16);
  --line-light: rgba(246, 241, 231, .22);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Instrument Sans', -apple-system, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(1rem, .95rem + .2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Körnung über allem – Atmosphäre */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--brick); color: var(--paper); }

h1, h2, h3, .lede blockquote { text-wrap: balance; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  letter-spacing: .02em; padding: .8em 1.5em; border-radius: var(--radius); cursor: pointer;
  text-decoration: none; border: 1.5px solid transparent; transition: all .25s ease; text-align: center;
}
.btn-lg { font-size: 1rem; padding: .95em 1.9em; }
.btn-solid { background: var(--pine); color: var(--paper); border-color: var(--pine); }
.btn-solid:hover { background: var(--brick); border-color: var(--brick); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .85; }
.btn-ghost:hover { opacity: 1; background: rgba(32,48,43,.06); }
.btn-light { background: var(--paper); color: var(--pine-deep); border-color: var(--paper); }
.btn-light:hover { background: var(--brick); color: var(--paper); border-color: var(--brick); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: var(--paper); border-color: rgba(246,241,231,.55); }
.btn-outline-light:hover { border-color: var(--paper); background: rgba(246,241,231,.1); }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem);
  padding: .9rem clamp(1.25rem, 3vw, 3rem);
  color: var(--paper);
  transition: background .35s ease, color .35s ease, box-shadow .35s ease, padding .35s ease;
}
.topbar.scrolled {
  background: rgba(246, 241, 231, .92); color: var(--ink);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line); padding: .6rem var(--pad);
}
.wordmark {
  display: flex; align-items: center; gap: .6rem; text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: .01em;
}
.wordmark em { font-style: italic; color: var(--brick-soft); }
.topbar.scrolled .wordmark em { color: var(--brick); }
.wm-dike { width: 40px; color: var(--brick-soft); }
.topbar.scrolled .wm-dike { color: var(--brick); }
.topnav { display: flex; gap: clamp(.8rem, 1.3vw, 1.6rem); margin-left: auto; }
.topnav a {
  text-decoration: none; font-size: .88rem; font-weight: 500; letter-spacing: .03em; opacity: .85;
  padding-bottom: 2px; border-bottom: 1.5px solid transparent; transition: all .2s; white-space: nowrap;
}
.topnav a:hover { opacity: 1; border-bottom-color: var(--brick); }
.topbar-actions { display: flex; gap: .7rem; }
.nav-burger { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--pine-deep); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  padding: calc(4.5rem + env(safe-area-inset-top)) clamp(1.5rem, 6vw, 3rem) calc(2rem + env(safe-area-inset-bottom));
  opacity: 0; pointer-events: none; transition: opacity .3s;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mm-links { display: flex; flex-direction: column; }
.mm-links a {
  display: flex; align-items: baseline; gap: 1rem; text-decoration: none;
  font-family: var(--font-display); font-size: clamp(1.45rem, 5.6vw, 1.8rem); font-weight: 300;
  padding: .55rem 0; border-bottom: 1px solid var(--line-light);
}
.mm-links a:last-child { border-bottom: 0; }
.mm-links i {
  font-style: normal; font-family: var(--font-body); font-size: .7rem; font-weight: 600;
  letter-spacing: .18em; color: var(--brick-soft); min-width: 1.9em;
}
.mm-actions { display: flex; flex-direction: column; gap: .8rem; }
body.menu-open { overflow: hidden; }
body.menu-open .topbar, body.menu-open .topbar.scrolled {
  background: transparent; box-shadow: none; color: var(--paper);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.menu-open .topbar .wordmark em, body.menu-open .topbar .wm-dike { color: var(--brick-soft); }

@media (max-width: 1080px) {
  .topnav, .topbar-actions { display: none; }
  .nav-burger {
    display: block; margin-left: auto; background: none; border: 0; cursor: pointer; padding: .5rem; z-index: 101;
    color: inherit;
  }
  .nav-burger span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: transform .3s, opacity .3s; }
  .nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-burger[aria-expanded="true"] { color: var(--paper); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--paper); isolation: isolate; }
.hero-media { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-1%, -1.5%); } }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,51,44,.42) 0%, rgba(28,51,44,.08) 40%, rgba(20,36,31,.78) 100%);
}
.hero-inner { padding: 0 var(--pad) clamp(4rem, 9vh, 7rem); max-width: 1200px; }
.overline {
  font-size: .8rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--sea);
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 300; line-height: 1.02;
  font-size: clamp(2.6rem, 7.2vw, 6rem); letter-spacing: -.01em;
}
.hero h1 em { font-style: italic; font-weight: 400; color: #E8D9BC; }
.hero-sub { max-width: 34rem; margin-top: 1.6rem; font-size: clamp(1rem, 1.1vw, 1.15rem); opacity: .94; }
.hero-badges {
  display: flex; align-items: center; gap: .9rem; margin-top: 1.8rem; font-size: .92rem; font-weight: 500;
}
.badge-star {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--pine-deep);
  background: #E8D9BC; padding: .25em .7em; border-radius: 3px; white-space: nowrap;
}
.badge-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.hero-ctas { display: flex; gap: .9rem; margin-top: 2.2rem; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 1.6rem; right: var(--pad); width: 30px; height: 52px;
  border: 1.5px solid rgba(246,241,231,.6); border-radius: 20px; display: flex; justify-content: center;
}
.scroll-cue span { width: 3px; height: 10px; background: var(--paper); border-radius: 2px; margin-top: 9px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(16px); opacity: .1; } }
@media (max-width: 640px) {
  .hero-badges { flex-wrap: wrap; row-gap: .5rem; }
  .badge-sep { display: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .scroll-cue { display: none; }
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--pine-deep); color: #D9CBA8; overflow: hidden; white-space: nowrap;
  border-top: 1px solid rgba(233,217,188,.15); border-bottom: 1px solid rgba(233,217,188,.15);
}
.ticker-track { display: inline-flex; align-items: center; gap: 2.2rem; padding: .65rem 0; animation: ticker 42s linear infinite; }
.ticker-track span { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.ticker-track i { font-style: normal; font-size: .55rem; color: var(--brick-soft); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Kapitel-Gerüst ---------- */
.chapter { padding: clamp(4.5rem, 9vw, 8.5rem) var(--pad); max-width: 1440px; margin: 0 auto; }
.chapter-head { display: flex; align-items: baseline; gap: 1.4rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.chapter-no {
  font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: var(--brick);
  letter-spacing: .1em;
}
.chapter-head h2 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 4.5vw, 3.6rem); line-height: 1;
  letter-spacing: -.01em;
}
.chapter-rule { flex: 1; height: 1px; background: var(--line); align-self: center; margin-top: .8rem; }
.chapter-intro { max-width: 46rem; font-size: clamp(1.05rem, 1.3vw, 1.25rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); color: var(--ink-soft); }
.chapter-intro strong { color: var(--ink); }
.lede { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.5; font-weight: 400; }
.lede em { font-family: var(--font-display); font-style: italic; }

.dike-divider { display: block; width: 100%; height: clamp(30px, 4vw, 60px); color: var(--line); }

/* ---------- 01 Das Haus ---------- */
.haus-grid {
  display: grid; gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-areas: "copy photo" "pull photo2";
  align-items: start;
}
.haus-copy { grid-area: copy; display: flex; flex-direction: column; gap: 1.2rem; max-width: 36rem; }
.haus-photo { grid-area: photo; }
.haus-photo-2 { grid-area: photo2; margin-top: -14%; width: 78%; justify-self: end; box-shadow: -18px 18px 0 var(--paper-2); }
.haus-pull { grid-area: pull; align-self: end; }
.haus-grid figure { position: relative; overflow: hidden; }
.haus-grid figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.haus-grid figcaption, .lage-photo figcaption {
  font-size: .78rem; letter-spacing: .04em; color: var(--ink-soft); padding-top: .6rem;
  border-top: 1px solid var(--line); margin-top: .6rem;
}
.haus-facts {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.5rem; margin-top: 1.4rem;
  border-top: 1px solid var(--line); padding-top: 1.6rem;
}
.haus-facts strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; color: var(--pine); line-height: 1.1; }
.haus-facts span { font-size: .84rem; color: var(--ink-soft); letter-spacing: .02em; }
.haus-pull {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.2;
  color: var(--pine); border-left: 3px solid var(--brick); padding-left: 1.4rem; max-width: 26ch;
}
.haus-pull em { font-style: italic; color: var(--brick); }
@media (max-width: 900px) {
  .haus-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "photo" "photo2" "pull"; }
  .haus-photo-2 { margin-top: -8%; }
}
@media (max-width: 640px) {
  .haus-photo-2 { width: 100%; margin-top: 0; box-shadow: none; }
}

/* ---------- 02 Wohnungen ---------- */
.apartment { margin-bottom: clamp(4.5rem, 8vw, 8rem); }
.apt-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.apt-title-row h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: .95; letter-spacing: -.01em; }
.apt-index {
  display: block; font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--brick); margin-bottom: .7rem;
}
.apt-rating { display: flex; align-items: center; gap: .9rem; padding-bottom: .5rem; }
.apt-rating a { font-size: .88rem; color: var(--ink-soft); text-decoration-color: var(--line); text-underline-offset: 3px; }
.apt-rating a:hover { color: var(--brick); }

.gallery-scroller {
  display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem;
  margin: 0 calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: var(--pad);
  scrollbar-width: thin; scrollbar-color: var(--pine) transparent; cursor: grab;
}
.gallery-scroller figure {
  flex: 0 0 auto; scroll-snap-align: start; position: relative; overflow: hidden; background: var(--paper-2);
}
.gallery-scroller figure:nth-child(5n+1) { width: min(560px, 78vw); }
.gallery-scroller figure { width: min(400px, 64vw); }
.gallery-scroller img {
  height: clamp(260px, 38vw, 420px); width: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1); cursor: zoom-in;
}
.gallery-scroller figure:hover img { transform: scale(1.045); }
.gallery-scroller figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .7rem; color: var(--paper);
  font-size: .78rem; letter-spacing: .03em; background: linear-gradient(transparent, rgba(28,51,44,.75));
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.gallery-scroller figure:hover figcaption { opacity: 1; }
.gallery-more {
  flex: 0 0 auto; width: 180px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1rem; color: var(--pine); border: 1.5px solid var(--line);
  cursor: pointer; background: transparent; scroll-snap-align: start; transition: all .25s;
}
.gallery-more:hover { background: var(--pine); color: var(--paper); }

.apt-body {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: 1.8rem; align-items: start;
}
.apt-copy { display: flex; flex-direction: column; gap: 1.1rem; max-width: 40rem; }
.apt-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--paper-2);
}
.apt-facts > div { padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); }
.apt-facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
.apt-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.apt-facts dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .25rem; }
.apt-facts dd { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--pine-deep); }

.amenities { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.amenities span {
  font-size: .8rem; font-weight: 500; padding: .32em .8em; border: 1px solid var(--line); border-radius: 100px;
  color: var(--ink-soft); background: rgba(255,255,255,.35);
}
.amenities button {
  font-size: .8rem; font-weight: 600; padding: .32em .8em; border: 1px solid var(--pine); border-radius: 100px;
  background: transparent; color: var(--pine); cursor: pointer; transition: all .2s;
}
.amenities button:hover { background: var(--pine); color: var(--paper); }

@media (max-width: 700px) {
  .apt-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .airbnb-cta { flex-direction: column; align-items: stretch; }
  .airbnb-cta .btn { width: 100%; }
}

.airbnb-cta {
  margin-top: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  border: 1px solid var(--line); border-left: 3px solid #FF5A5F; padding: 1.2rem 1.6rem; background: rgba(255,255,255,.35);
}
.airbnb-cta strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; color: var(--pine-deep); }
.airbnb-cta p { font-size: .86rem; color: var(--ink-soft); margin-top: .2rem; }

/* ---------- 03 Gästestimmen (dunkel) ---------- */
.chapter-dark { max-width: none; background: var(--pine-deep); color: var(--paper); }
.chapter-dark .chapter-rule { background: var(--line-light); }
.chapter-dark .chapter-no { color: var(--brick-soft); }
.chapter-dark > * { max-width: 1440px; margin-left: auto; margin-right: auto; }
.stimmen-hero {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.big-star { display: flex; flex-direction: column; }
.big-star-value { font-family: var(--font-display); font-weight: 300; font-size: clamp(5rem, 12vw, 10rem); line-height: .95; color: #E8D9BC; }
.big-star-stars { color: var(--brass); font-size: clamp(1.2rem, 2.4vw, 2rem); letter-spacing: .18em; margin-top: .4rem; }
.big-star-label { font-size: .85rem; opacity: .75; margin-top: .7rem; letter-spacing: .03em; }
.stimmen-stats { display: flex; flex-direction: column; gap: 1.4rem; border-left: 1px solid var(--line-light); padding-left: clamp(1.5rem, 4vw, 4rem); }
.stimmen-stats b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.8rem); display: block; line-height: 1.1; }
.stimmen-stats span { font-size: .88rem; opacity: .75; }
@media (max-width: 800px) { .stimmen-hero { grid-template-columns: 1fr; } .stimmen-stats { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-light); padding-top: 1.5rem; } }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.2rem; }
.quote {
  border: 1px solid var(--line-light); padding: 1.8rem 1.7rem 1.4rem; display: flex; flex-direction: column; gap: 1.1rem;
  background: rgba(246,241,231,.03); transition: transform .3s ease, background .3s ease;
}
.quote:hover { transform: translateY(-4px); background: rgba(246,241,231,.06); }
.quote p { font-family: var(--font-display); font-size: 1.12rem; font-weight: 300; line-height: 1.45; flex: 1; }
.quote p::before { content: "„"; color: var(--brick-soft); }
.quote p::after { content: "“"; color: var(--brick-soft); }
.quote footer { font-size: .8rem; opacity: .7; display: flex; justify-content: space-between; gap: 1rem; }
.quote .q-stars { color: var(--brass); letter-spacing: .1em; font-size: .8rem; }
.quote-hidden { display: none; }
.quotes-more-wrap { text-align: center; margin-top: 1.8rem; }
.stimmen-airbnb {
  margin-top: clamp(2.5rem, 5vw, 4rem); border: 1px solid var(--line-light); border-left: 3px solid #FF5A5F;
  padding: 1.8rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: rgba(246,241,231,.04);
}
.stimmen-airbnb p { max-width: 34rem; font-size: .95rem; opacity: .9; }
.stimmen-airbnb strong { color: #E8D9BC; }
.stimmen-airbnb-btns { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn-airbnb { background: #FF5A5F; color: #fff; border-color: #FF5A5F; white-space: nowrap; }
.btn-airbnb:hover { background: #E8484D; border-color: #E8484D; transform: translateY(-2px); color: #fff; }
.stimmen-note { margin-top: 2.4rem; font-size: .82rem; opacity: .65; }
.stimmen-note a { color: #E8D9BC; }
@media (max-width: 640px) {
  .stimmen-airbnb { flex-direction: column; align-items: stretch; }
  .stimmen-airbnb-btns { flex-direction: column; }
  .stimmen-airbnb-btns .btn { width: 100%; }
}

/* ---------- 04 Lage ---------- */
.lage-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.lage-photo { overflow: hidden; }
.lage-photo img { aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.lage-copy { display: flex; flex-direction: column; gap: 1.6rem; }
.distanzen { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.6rem; }
.distanzen b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; color: var(--pine); line-height: 1.15; }
.distanzen span { font-size: .84rem; color: var(--ink-soft); }
.lage-copy .btn { align-self: flex-start; }
.lage-argument {
  margin-top: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid var(--line); padding-top: 2rem;
  font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 300; line-height: 1.4;
  max-width: 52rem; color: var(--pine);
}
.lage-argument em { font-style: italic; color: var(--brick); }
@media (max-width: 900px) { .lage-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .lage-copy .btn { align-self: stretch; } }

/* ---------- 05 Rendite (Pine) ---------- */
.chapter-pine { max-width: none; background: var(--pine); color: var(--paper); }
.chapter-pine .chapter-rule { background: var(--line-light); }
.chapter-pine .chapter-no { color: #E8D9BC; }
.chapter-pine > * { max-width: 1440px; margin-left: auto; margin-right: auto; }
.chapter-pine .chapter-intro { color: rgba(246,241,231,.85); }
.chapter-pine .chapter-intro strong { color: #E8D9BC; }

.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }
.calc-inputs { display: flex; flex-direction: column; gap: 1.6rem; }
.calc-field label {
  display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(246,241,231,.75); margin-bottom: .35rem;
}
.calc-field output { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; color: #E8D9BC; margin-bottom: .4rem; }
.hint { background: none; border: 0; color: var(--brass); cursor: help; font-size: .95em; }
.calc-price-note { font-size: .8rem; opacity: .75; margin-top: .5rem; }
.calc-price-note a { color: #E8D9BC; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: rgba(246,241,231,.3); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #E8D9BC;
  border: 3px solid var(--pine); margin-top: -8.5px; box-shadow: 0 0 0 1.5px #E8D9BC; transition: transform .15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-track { height: 3px; background: rgba(246,241,231,.3); border-radius: 2px; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #E8D9BC; border: 3px solid var(--pine); box-shadow: 0 0 0 1.5px #E8D9BC; }

.calc-fin { border: 1px solid var(--line-light); padding: 1.1rem 1.3rem; }
.calc-fin summary { cursor: pointer; font-size: .88rem; font-weight: 600; letter-spacing: .05em; color: #E8D9BC; }
.calc-fin[open] summary { margin-bottom: 1.2rem; }
.calc-fin .calc-field { margin-bottom: 1.1rem; }

.calc-results { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.6rem; }
.calc-revenue { border: 1px solid var(--line-light); padding: 1.6rem 1.7rem; background: rgba(28,51,44,.5); }
.cr-label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.cr-value { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 5vw, 4rem); color: #E8D9BC; line-height: 1.1; margin: .3rem 0 1rem; }
.cr-bar { display: flex; height: 34px; border-radius: 3px; overflow: hidden; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.cr-bar i { font-style: normal; padding: 0 .7em; align-self: center; white-space: nowrap; overflow: hidden; }
.cr-bar-net { background: var(--brass); color: var(--pine-deep); display: flex; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.cr-bar-cost { background: rgba(246,241,231,.18); display: flex; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.calc-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.kpi { border-left: 2px solid var(--brass); padding-left: 1rem; }
.kpi b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; color: var(--paper); }
.kpi span { font-size: .8rem; opacity: .75; }
.kpi small { display: block; font-size: .7rem; opacity: .8; }
.kpi-fin { opacity: .45; transition: opacity .3s; }
.calc-fin-active .kpi-fin { opacity: 1; }
.calc-note { font-size: .74rem; opacity: .6; line-height: 1.5; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc-results { position: static; } }

/* Live-Ergebnisleiste am unteren Rand (nur mobil, solange die Regler sichtbar sind) */
.calc-sticky { display: none; }
@media (max-width: 900px) {
  .calc-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    background: var(--pine-deep); color: var(--paper);
    padding: .6rem var(--pad) calc(.6rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(233,217,188,.2);
    box-shadow: 0 -10px 30px rgba(20,36,31,.3);
    transform: translateY(105%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
  }
  .calc-sticky.show { transform: none; }
  .calc-sticky span { display: block; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; white-space: nowrap; }
  .calc-sticky b { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: #E8D9BC; white-space: nowrap; }
}

/* ---------- 06 Kaufpreise (Vault) ---------- */
.chapter-vault { max-width: none; background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.chapter-vault::before {
  content: ""; position: absolute; inset: -20% -10%;
  background: radial-gradient(ellipse at 30% 20%, rgba(180,85,45,.16), transparent 55%),
              radial-gradient(ellipse at 75% 85%, rgba(168,130,60,.13), transparent 50%);
  pointer-events: none;
}
.chapter-vault > * { max-width: 1440px; margin-left: auto; margin-right: auto; position: relative; }
.chapter-vault .chapter-rule { background: var(--line-light); }
.chapter-vault .chapter-no { color: var(--brick-soft); }
.chapter-vault .chapter-intro { color: rgba(246,241,231,.8); }
.chapter-vault .chapter-intro strong { color: #E8D9BC; }

.vault-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 1.4rem; max-width: 900px !important; margin-bottom: 2.6rem; }
.vault-card {
  position: relative; border: 1px solid var(--line-light); padding: 2.2rem 2rem 2rem;
  background: rgba(246,241,231,.04); display: flex; flex-direction: column; gap: .5rem;
}
.vc-name { font-family: var(--font-display); font-size: 2rem; font-weight: 400; }
.vc-meta { font-size: .82rem; opacity: .7; letter-spacing: .04em; }
.vc-price {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 5vw, 3.6rem); color: #E8D9BC;
  margin-top: 1rem; line-height: 1.1; transition: filter .8s ease, opacity .8s ease;
}
.vc-price.blurred { filter: blur(14px); opacity: .75; user-select: none; pointer-events: none; }
.vc-lock {
  position: absolute; top: 1.6rem; right: 1.6rem; color: var(--brass); opacity: .9; transition: opacity .4s, transform .4s;
}
.vault-card.unlocked .vc-lock { opacity: 0; transform: translateY(-6px); }
.vc-price-note { font-size: .78rem; opacity: .65; margin-top: .4rem; }
.vault-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.vault-unlocked p { margin-bottom: 1.4rem; max-width: 40rem; opacity: .9; }
.vault-unlocked b { color: #E8D9BC; }
@media (max-width: 640px) {
  .vault-cta { flex-direction: column; }
  .vault-cta .btn, .vault-unlocked .btn { width: 100%; }
}

/* ---------- Kontakt ---------- */
.kontakt-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.kontakt-copy { display: flex; flex-direction: column; gap: 1.2rem; }
.kontakt-direct { font-size: 1.05rem; }
.kontakt-direct a { color: var(--brick); font-weight: 600; text-decoration-color: var(--line); text-underline-offset: 3px; }
.kontakt-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.kontakt-form label, .modal-card label { display: flex; flex-direction: column; gap: .35rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.kontakt-form input, .kontakt-form textarea, .kontakt-form select, .modal-card input {
  font-family: var(--font-body); font-size: 1rem; padding: .75em .9em; border: 1px solid var(--line);
  border-radius: var(--radius); background: rgba(255,255,255,.55); color: var(--ink); transition: border-color .2s, background .2s;
}
.kontakt-form input:focus, .kontakt-form textarea:focus, .kontakt-form select:focus, .modal-card input:focus {
  outline: none; border-color: var(--pine); background: #fff;
}
.kontakt-form textarea { resize: vertical; }
.kontakt-form .btn { align-self: flex-start; }
.form-feedback { font-size: .9rem; font-weight: 500; min-height: 1.4em; text-transform: none; letter-spacing: 0; }
.form-feedback.ok { color: var(--pine); }
.form-feedback.err { color: var(--brick); }
@media (max-width: 800px) { .kontakt-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .kontakt-form .btn { align-self: stretch; } }

/* ---------- Footer ---------- */
.footer { background: var(--paper); padding-bottom: 2.5rem; }
.footer-dike { color: var(--line); }
.footer-inner {
  max-width: 1440px; margin: 0 auto; padding: 2.5rem var(--pad) 2rem;
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.footer-wordmark { font-family: var(--font-display); font-size: 1.5rem; }
.footer-wordmark em { font-style: italic; color: var(--brick); }
.footer-inner p { font-size: .85rem; color: var(--ink-soft); margin-top: .6rem; }
.footer-inner nav { display: flex; gap: 1.6rem; align-items: flex-start; }
.footer-inner nav a { font-size: .85rem; color: var(--ink-soft); text-decoration-color: var(--line); text-underline-offset: 3px; }
.footer-inner nav a:hover { color: var(--brick); }
.footer-note { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); font-size: .72rem; color: var(--ink-soft); opacity: .8; }
@media (max-width: 640px) { .footer-inner nav { flex-direction: column; gap: .7rem; } }

/* ---------- Auth-Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(28,51,44,.68); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card {
  position: relative; background: var(--paper); color: var(--ink); width: min(440px, 100%);
  padding: 2.4rem 2.2rem 2rem; border-top: 4px solid var(--brick); box-shadow: 0 30px 80px rgba(0,0,0,.4);
  max-height: 92vh; overflow-y: auto; animation: modal-in .35s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes modal-in { from { transform: translateY(24px); opacity: 0; } }
.modal-close { position: absolute; top: .7rem; right: .9rem; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--ink-soft); line-height: 1; }
.modal-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.modal-tab { flex: 1; padding: .6em; font-family: var(--font-body); font-size: .88rem; font-weight: 600; background: transparent; border: 0; cursor: pointer; color: var(--ink-soft); transition: all .2s; }
.modal-tab.active { background: var(--pine); color: var(--paper); }
.modal-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin-bottom: .4rem; }
.modal-sub { font-size: .86rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.modal-card form { display: flex; flex-direction: column; gap: .95rem; }
.modal-card .check { flex-direction: row; align-items: flex-start; gap: .6rem; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .8rem; line-height: 1.45; }
.modal-card .check input { margin-top: .2rem; }
.modal-card .check a { color: var(--brick); }
body.modal-open { overflow: hidden; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20,32,28,.96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1300px, 92vw); max-height: 88vh; display: flex; flex-direction: column; gap: .8rem; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; }
.lightbox figcaption { color: rgba(246,241,231,.8); font-size: .85rem; text-align: center; min-height: 1.3em; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: none; border: 0; color: var(--paper); cursor: pointer; font-size: 2.6rem;
  opacity: .7; transition: opacity .2s; line-height: 1; padding: 1rem;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: .6rem; right: 1rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox figure { max-width: 100vw; padding: 0 .8rem; }
  .lightbox img { max-height: 74vh; }
  .lb-prev, .lb-next { top: auto; bottom: calc(.6rem + env(safe-area-inset-bottom)); transform: none; font-size: 2.2rem; padding: .5rem 1.3rem; }
  .lb-prev { left: .6rem; } .lb-next { right: .6rem; }
}

/* ---------- Reveal-Animationen ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; } .reveal.d4 { transition-delay: .48s; }
.parallax img { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img, .hero-media video, .ticker-track, .scroll-cue span { animation: none; }
  * { transition-duration: .01ms !important; }
}
