/* W&M Wohnbau – Entwurf 11/2026 */

/* Plus Jakarta Sans – SIL Open Font License 1.1 (assets/fonts/OFL-PlusJakartaSans.txt), lokal eingebunden */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plusjakartasans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plusjakartasans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plusjakartasans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #f6f4f0;
  --bg-alt: #ecE8e1;
  --ink: #1f2326;
  --ink-soft: #5b6166;
  --line: #d9d4cb;
  --dark: #1b1e21;
  --orange: #ff4d06;
  --orange-ink: #d63f00;   /* Text-Orange auf hell, besserer Kontrast */
  --white: #fff;
  --font: "Plus Jakarta Sans", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Typo: ruhige Headlines, klein geschrieben, mit Punkt */
h1, h2, h3 { font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 92px); }
h2 { font-size: clamp(30px, 4.2vw, 56px); }
h3 { font-size: 22px; }
.dot { color: var(--orange); }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 18px; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--ink); max-width: 760px; }
.muted { color: var(--ink-soft); }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.header.solid { background: rgba(27, 30, 33, .96); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a { color: var(--white); text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: .02em; }
.nav a:hover { color: var(--orange); }
.nav .btn { padding: 10px 18px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); font: inherit; font-size: 15px; cursor: pointer; padding: 8px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border: 1px solid currentColor; border-radius: var(--radius); text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: .02em; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-ink); border-color: var(--orange-ink); }
.btn-ghost { color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-dark { color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--white); }
.arrow { transition: transform .2s; }
a:hover .arrow { transform: translateX(4px); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero .pic-block, .hero .pic-block img, .hero .slides picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(15,17,19,.72) 0%, rgba(15,17,19,.45) 38%, rgba(15,17,19,0) 68%),
  linear-gradient(180deg, rgba(15,17,19,.5) 0%, rgba(15,17,19,0) 22%, rgba(15,17,19,0) 55%, rgba(15,17,19,.55) 100%); }
.hero h1, .hero p { text-shadow: 0 1px 24px rgba(0,0,0,.25); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 9vh, 110px); }
.hero h1 { max-width: 900px; }
.hero p { font-size: clamp(17px, 1.5vw, 21px); max-width: 560px; margin: 22px 0 34px; opacity: .92; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .caption { position: absolute; right: var(--gutter); bottom: 22px; z-index: 2; font-size: 12px; opacity: .7; letter-spacing: .04em; }

/* Sections */
section { padding: clamp(72px, 10vw, 140px) 0; scroll-margin-top: 130px; }
.tag { white-space: nowrap; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.link-more { text-decoration: none; font-weight: 500; display: inline-flex; gap: 8px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* Intro + Zahlen */
.intro .grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 96px); }
.facts div { padding: 28px 24px 0 0; }
.facts strong { display: block; font-size: clamp(36px, 4.5vw, 60px); font-weight: 500; line-height: 1; }
.facts span { display: block; margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

/* Projektkarten */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { font: inherit; font-size: 14px; padding: 8px 16px; border: 1px solid var(--line); background: transparent; border-radius: 40px; cursor: pointer; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { text-decoration: none; display: block; }
.card .img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.card:hover .img img { transform: scale(1.04); }
.tag { position: absolute; top: 14px; left: 14px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; padding: 6px 10px; background: var(--white); color: var(--ink); border-radius: var(--radius); }
.tag.orange { background: var(--orange); color: var(--white); }
.tag.dark { background: var(--dark); color: var(--white); }
.card .meta { padding: 16px 0 0; }
.card .place { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.card h3 { margin-top: 6px; }
.card p { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; }
.card[hidden] { display: none; }
.card.featured .img { aspect-ratio: 16 / 10; }

/* Baufortschritt */
.progress { background: var(--dark); color: var(--white); }
.progress .eyebrow, .progress .muted { color: #a3a8ad; }
.strip { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 16px; }
.strip figure { margin: 0; }
.strip figure:first-child { grid-row: span 2; }
.strip img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.strip figure:first-child img { aspect-ratio: auto; height: 100%; }
.strip figcaption { font-size: 13px; color: #a3a8ad; margin-top: 8px; }

/* Über uns */
.about .grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about img { aspect-ratio: 1; object-fit: cover; width: 100%; filter: grayscale(.15); }
blockquote { margin: 0; font-size: clamp(24px, 2.8vw, 38px); line-height: 1.25; font-weight: 500; }
.about cite { display: block; margin-top: 22px; font-style: normal; color: var(--ink-soft); font-size: 15px; }

/* Kontakt */
.contact { background: var(--bg-alt); }
.contact .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); }
.contact dl { margin: 0; display: grid; gap: 20px; }
.contact dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.contact dd { margin: 4px 0 0; font-size: 20px; }
.contact dd a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact dd a:hover { border-color: var(--orange); }

/* Footer */
.footer { background: var(--dark); color: #a3a8ad; padding: 56px 0 40px; font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer img { height: 36px; width: auto; }
.footer nav { display: flex; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }

/* Projektseite */
.p-hero { min-height: 82svh; }
.p-hero h1 { font-size: clamp(44px, 7vw, 96px); }
.p-hero .place { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; display: flex; gap: 12px; align-items: center; }
.p-hero .tag { position: static; }
.anchors { position: sticky; top: 84px; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.anchors .wrap { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.anchors a { padding: 18px 0; white-space: nowrap; text-decoration: none; font-size: 15px; color: var(--ink-soft); border-bottom: 2px solid transparent; }
.anchors a:hover { color: var(--ink); border-color: var(--orange); }
.overview .grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.factbox { border-top: 2px solid var(--ink); }
.factbox div { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.factbox dt { color: var(--ink-soft); }
.factbox dd { margin: 0; text-align: right; font-weight: 500; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 6px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }

.tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery[hidden] { display: none; }
.gallery button { padding: 0; border: 0; background: var(--bg-alt); cursor: zoom-in; overflow: hidden; aspect-ratio: 4/3; }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery.plans button { background: var(--white); aspect-ratio: 1; }
.gallery.plans button:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 1; }
.gallery.plans img { object-fit: contain; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--line); }
.timeline li { position: relative; padding: 30px 18px 0 0; }
.timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); }
.timeline li.done::before { background: var(--orange); border-color: var(--orange); }
.timeline li.now::before { background: var(--bg); border-color: var(--orange); box-shadow: 0 0 0 5px rgba(255,77,6,.18); }
.timeline time { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.timeline h3 { font-size: 19px; margin: 6px 0 6px; }
.timeline p { margin: 0; font-size: 15px; color: var(--ink-soft); }

.download { background: var(--dark); color: var(--white); }
.download .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.download p { color: #a3a8ad; margin: 12px 0 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,17,19,.95); display: none; align-items: center; justify-content: center; padding: 40px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; width: auto; max-width: 100%; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); font-size: 34px; cursor: pointer; padding: 12px 18px; line-height: 1; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* Einblenden */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Entwurfs-Hinweise (vor Livegang entfernen) */

/* Responsive */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .intro .grid, .overview .grid, .contact .grid { grid-template-columns: 1fr; }
  .about .grid { grid-template-columns: 1fr; }
  .about img { max-width: 260px; }
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--line); margin-left: 7px; }
  .timeline li { padding: 0 0 30px 26px; }
  .timeline li::before { top: 4px; left: -8px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header .wrap { height: 68px; }
  .logo img { height: 34px; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; background: var(--dark); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--gutter) 24px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 17px; }
  .nav .btn { margin-top: 16px; width: auto; border-bottom: 1px solid var(--orange); }
  .anchors { top: 68px; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div { padding: 22px 0 22px; border-bottom: 1px solid var(--line); }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip figure:first-child { grid-column: span 2; grid-row: auto; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero .caption { display: none; }
}

/* Rechtsseiten */
.legal section { padding-top: clamp(130px, 14vw, 180px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 28px; }
.legal h2 { font-size: 20px; font-weight: 600; margin: 40px 0 10px; }
.legal p { margin: 0 0 12px; }
.legal a { color: var(--orange-ink); }

/* ===== Hero-Slider ===== */
.hero-slider .slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; overflow: hidden; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 9s cubic-bezier(.2,.5,.3,1); will-change: transform; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide.is-active img { transform: scale(1.0); }
.hero-slider::after { z-index: 1; }
.hero-slider .wrap, .hero-slider .caption { z-index: 3; }
.hs-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(36px, 6vh, 64px); flex-wrap: wrap; }
.hs-info { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--white); padding: 14px 18px 14px 14px; background: rgba(15,17,19,.38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); transition: background .3s; min-width: 280px; }
.hs-info:hover { background: rgba(15,17,19,.6); }
.hs-info .tag { position: static; }
.hs-text { display: flex; flex-direction: column; line-height: 1.25; }
.hs-ort { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.hs-name { font-weight: 500; font-size: 19px; }
.hs-go { margin-left: auto; font-size: 20px; transition: transform .25s; }
.hs-info:hover .hs-go { transform: translateX(5px); }
.hs-info.swap .hs-text, .hs-info.swap .tag { animation: hsSwap .7s ease; }
@keyframes hsSwap { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: none; } }
.hs-controls { display: flex; align-items: center; gap: 10px; }
.hs-arrow { background: none; border: 1px solid rgba(255,255,255,.4); color: var(--white); width: 44px; height: 44px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s; }
.hs-arrow:hover { background: var(--orange); border-color: var(--orange); }
.hs-dots { display: flex; gap: 6px; }
.hs-dot { background: none; border: 0; padding: 8px 2px; cursor: pointer; color: rgba(255,255,255,.6); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font: inherit; }
.hs-num { font-size: 11px; letter-spacing: .08em; transition: color .3s; }
.hs-bar { display: block; width: 34px; height: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.hs-bar i { display: block; height: 100%; width: 0; background: var(--orange); }
.hs-dot.is-active { color: var(--white); }
.hs-dot.is-active .hs-bar i { animation: hsProgress var(--hs-dur, 6.5s) linear forwards; }
.hero-slider.paused .hs-dot.is-active .hs-bar i { animation-play-state: paused; }
@keyframes hsProgress { from { width: 0; } to { width: 100%; } }
.hs-cap { transition: opacity .5s; }

/* Hero-Text beim Laden gestaffelt einblenden */
.hero-in { opacity: 0; transform: translateY(28px); animation: heroIn 1s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-in:nth-child(1) { animation-delay: .15s; }
.hero-in:nth-child(2) { animation-delay: .3s; }
.hero-in:nth-child(3) { animation-delay: .5s; }
.hero-in:nth-child(4) { animation-delay: .65s; }
.hero-in:nth-child(5) { animation-delay: .85s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Projektseiten-Hero: langsamer Zoom */
.p-hero picture img { animation: kenburns 14s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }
.p-hero .wrap > * { opacity: 0; animation: heroIn 1s cubic-bezier(.2,.7,.2,1) forwards; }
.p-hero .wrap > *:nth-child(1) { animation-delay: .15s; }
.p-hero .wrap > *:nth-child(2) { animation-delay: .3s; }
.p-hero .wrap > *:nth-child(3) { animation-delay: .45s; }
.p-hero .wrap > *:nth-child(4) { animation-delay: .6s; }

/* Bilder beim Einblenden: Vorhang + Zoom */
.card.reveal .img img, .strip.reveal img, .gallery.reveal img { transform: scale(1.12); transition: transform 1.4s cubic-bezier(.2,.6,.2,1); }
.card.reveal.in .img img, .strip.reveal.in img, .gallery.reveal.in img { transform: scale(1); }
.card.reveal.in:hover .img img { transform: scale(1.04); transition-duration: .8s; }
.card .img::after { content: ""; position: absolute; inset: 0; background: var(--bg); transform-origin: right; transition: transform 1s cubic-bezier(.7,0,.2,1); transition-delay: inherit; z-index: 1; }
.card.reveal.in .img::after { transform: scaleX(0); }
.card .tag { z-index: 2; }

/* Orangener Punkt ploppt auf */
.reveal .dot, .hero-in .dot { display: inline-block; }
.reveal.in .dot { animation: dotPop .6s .5s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes dotPop { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* Zeitleiste: Linie zeichnet sich, Punkte nacheinander */
.timeline { border-top-color: transparent; position: relative; }
.timeline::before { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: var(--tl-ende, 100%); background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.6,0,.2,1); }
.timeline.in::before { transform: scaleX(1); }
.timeline li { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.timeline.in li { opacity: 1; transform: none; }
.timeline.in li:nth-child(1) { transition-delay: .2s; } .timeline.in li:nth-child(2) { transition-delay: .5s; }
.timeline.in li:nth-child(3) { transition-delay: .8s; } .timeline.in li:nth-child(4) { transition-delay: 1.1s; }
.timeline.in li:nth-child(5) { transition-delay: 1.4s; }
.timeline li.now::before { animation: pulse 2.2s 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 5px rgba(255,77,6,.18); } 50% { box-shadow: 0 0 0 11px rgba(255,77,6,0); } }

/* Häkchen-Liste nacheinander */
.checklist li { opacity: 0; transform: translateX(-10px); transition: opacity .5s, transform .5s; }
.reveal.in .checklist li { opacity: 1; transform: none; }
.reveal.in .checklist li:nth-child(2) { transition-delay: .1s; } .reveal.in .checklist li:nth-child(3) { transition-delay: .2s; }
.reveal.in .checklist li:nth-child(4) { transition-delay: .3s; } .reveal.in .checklist li:nth-child(5) { transition-delay: .4s; }

/* Header: beim Runterscrollen ausblenden, beim Hochscrollen zeigen */
.header { transition: background .3s, box-shadow .3s, transform .35s ease; }
.header.hide { transform: translateY(-100%); }

/* Buttons: dezenter Lichtstreif */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .7s; }
.btn-primary:hover::after { left: 130%; }

@media (max-width: 760px) {
  .hs-bottom { flex-direction: column; align-items: stretch; }
  .hs-info { min-width: 0; }
  .hs-controls { justify-content: space-between; }
  .hs-bar { width: 22px; }
  .hs-num { display: none; }
  .hs-arrow { width: 38px; height: 38px; }
  .hero-slider .wrap > p:not(.eyebrow) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .slide img, .hero-in, .p-hero .wrap > *, .p-hero picture img, .card .img img, .card .img::after, .timeline li, .timeline::before, .checklist li, .header { animation: none !important; transition: none !important; opacity: 1; transform: none !important; }
  .slide:not(.is-active) { opacity: 0; }
  .card .img::after { display: none; }
  .timeline::before { transform: none; }
}
@media (max-width: 980px) { .timeline::before { display: none; } }

.anchors { transition: top .35s ease; }
.header-hidden .anchors { top: 0; }

.hero-slider .caption { bottom: auto; top: 104px; }
.strip figure { overflow: hidden; }
html, body { overflow-x: clip; }
@media (max-width: 760px) { .hero-slider .actions { margin-top: 26px; } }

/* ===== Projekt im Detail ===== */
.detail { background: var(--white); }
.detail-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.detail-text p { margin: 0 0 18px; font-size: 18px; line-height: 1.7; }
.detail-text p:first-child { font-size: clamp(19px, 1.6vw, 22px); color: var(--ink); }
.detail-text p:not(:first-child) { color: var(--ink-soft); }

/* ===== Wohnungen ===== */
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.w-card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .3s, box-shadow .3s, transform .3s; }
.w-card:hover { border-color: var(--ink); box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); transform: translateY(-3px); }
.w-card[hidden] { display: none; }
.w-plan { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line); }
.w-plan img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .6s; }
.w-plan:hover img { transform: scale(1.05); }
.w-zoom { position: absolute; right: 10px; bottom: 10px; background: var(--dark); color: var(--white); font-size: 12px; padding: 6px 10px; letter-spacing: .04em; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.w-plan:hover .w-zoom, .w-plan:focus-visible .w-zoom { opacity: 1; transform: none; }
.w-body { padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.w-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.w-meta span { font-size: 12px; padding: 4px 9px; background: var(--bg); border-radius: 30px; color: var(--ink-soft); }
.w-meta span:first-child { background: var(--orange); color: var(--white); font-weight: 600; }
.w-card h3 { font-size: 18px; }
.w-flaeche { font-size: 28px; font-weight: 500; margin: 6px 0 10px; letter-spacing: -.01em; }
.w-raeume { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.w-raeume summary { cursor: pointer; font-size: 14px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.w-raeume summary::-webkit-details-marker { display: none; }
.w-raeume summary::after { content: "+"; font-size: 20px; color: var(--orange); transition: transform .3s; }
.w-raeume[open] summary::after { transform: rotate(45deg); }
.w-raeume table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; animation: hsSwap .4s ease; }
.w-raeume td { padding: 5px 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); }
.w-raeume td:last-child { text-align: right; color: var(--ink); white-space: nowrap; }

/* ===== Rund ums Wohnen ===== */
.umgebung { background: var(--bg-alt); }
.u-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.u-item { background: var(--bg-alt); padding: 30px 28px 32px; transition: background .3s; }
.u-item:hover { background: var(--white); }
.u-nr { display: block; font-size: 13px; color: var(--orange-ink); font-weight: 600; letter-spacing: .08em; margin-bottom: 14px; }
.u-item h3 { font-size: 19px; margin-bottom: 8px; }
.u-item p { margin: 0; color: var(--ink-soft); font-size: 15px; }

@media (max-width: 980px) { .detail-grid { grid-template-columns: 1fr; } .u-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .u-grid { grid-template-columns: 1fr; } .wgrid { grid-template-columns: 1fr; } }

/* ===== UX/A11y-Überarbeitung 11/2026 ===== */
:root { --orange-btn: #d63f00; --orange-btn-hover: #b53500; --orange-ink: #c43a00; }
body { font-synthesis-weight: none; }
picture:not(.pic-block) { display: contents; }
/* Kontrast: weiße Schrift nur auf dunklerem Orange (WCAG AA 4.6:1) */
.btn-primary { background: var(--orange-btn); border-color: var(--orange-btn); }
.btn-primary:hover { background: var(--orange-btn-hover); border-color: var(--orange-btn-hover); }
.tag.orange, .w-meta span:first-child { background: var(--orange-btn); }
.nav .btn-primary { color: #fff; }
/* Sichtbarer Tastaturfokus */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.btn:focus-visible { outline-offset: 4px; }
/* Skip-Link */
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; text-decoration: none; font-weight: 500; transition: top .2s; }
.skip:focus { top: 12px; }
/* Tippflächen ≥ 44 px */
.hs-dot { padding: 13px 4px; min-height: 44px; }
.hs-arrow, .hs-pause { width: 44px; height: 44px; }
.footer nav a { display: inline-block; padding: 12px 0; }
.filters button { min-height: 44px; }
.w-raeume summary { min-height: 40px; }
/* Slider-Pause */
.hs-pause { background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; }
.hs-pause:hover { background: rgba(255,255,255,.15); }
.hs-pause svg { width: 14px; height: 14px; fill: currentColor; }
.hs-pause .i-play { display: none; }
.hero-slider.stopped .hs-pause .i-play { display: block; }
.hero-slider.stopped .hs-pause .i-pause { display: none; }
.hero-slider.stopped .hs-dot.is-active .hs-bar i { animation: none; width: 100%; }
/* Sprungziele: Überschrift landet knapp unter Header/Ankerleiste */
section[id] { scroll-margin-top: calc(100px - clamp(72px, 10vw, 140px)); }
#projekte, #bilder { scroll-margin-top: 100px; }
/* Ankerleiste: aktiver Abschnitt */
.anchors a.active { color: var(--ink); border-color: var(--orange); }
/* Telefon im Header */
.nav .nav-tel { font-variant-numeric: tabular-nums; opacity: .9; display: inline-flex; align-items: center; gap: 8px; }
.nav .nav-tel svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 1100px) and (min-width: 761px) { .nav .nav-tel span { display: none; } }
/* Lightbox: Bildunterschrift + Zähler */
.lb-caption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #c9cdd1; font-size: 14px; padding: 0 70px; }
.lb-caption b { color: #fff; font-weight: 500; margin-right: 10px; }
.lightbox button { min-width: 48px; min-height: 48px; }
.lightbox button:focus-visible { outline-color: #fff; }
/* Anfrage pro Wohnung */
.w-anfrage { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--orange-ink); text-decoration: none; min-height: 40px; }
.w-anfrage:hover { text-decoration: underline; }
/* Mobile Kontaktleiste */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(27,30,33,.97); box-shadow: 0 -6px 20px rgba(0,0,0,.18); transform: translateY(110%); transition: transform .3s ease; }
  .mobile-cta.show { transform: none; }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 2px; }
  .mobile-cta a:first-child { background: var(--orange-btn); color: #fff; }
  .mobile-cta a:last-child { border: 1px solid rgba(255,255,255,.35); color: #fff; }
  .mobile-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
  body { padding-bottom: 72px; }
  .nav .nav-tel { padding: 14px 0; }
}
/* FAQ */
.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-size: 18px; font-weight: 500; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; color: var(--orange); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); max-width: 680px; }
@media (max-width: 980px) { .faq-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }
.link-more { padding: 10px 0; }
.card .meta h3 { min-height: 0; }

/* <source> darf nie Platz einnehmen (Chrome zeigt es sonst als Raster-Zelle an) */
picture source { display: none !important; }

/* ===== Überarbeitung 12.11.2026 ===== */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Galerie: 6er-Raster, lückenlos (Spans kommen aus build.py) */
.gallery, .gallery.plans { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(170px, 19vw, 270px); gap: 12px; }
.gallery button, .gallery button:first-child, .gallery.plans button, .gallery.plans button:first-child { grid-column: span var(--c, 2); grid-row: span var(--r, 1); aspect-ratio: auto; }
.gallery.plans { grid-auto-rows: clamp(200px, 22vw, 320px); }

/* Lage: Fahrzeiten */
.vk { background: var(--white); border: 1px solid var(--line); padding: 28px 28px 22px; }
.vk-titel { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 14px; }
.vk-liste { list-style: none; margin: 0; padding: 0; }
.vk-liste li { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vk-liste li:last-child { border-bottom: 0; }
.vk-mittel { display: flex; gap: 4px; color: var(--orange-ink); }
.vk-mittel .ic { width: 20px; height: 20px; }
.vk-ziel { font-size: 16px; }
.vk-zeit { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vk-hinweis { margin: 12px 0 0; font-size: 12px; color: var(--ink-soft); }

/* Ort in Zahlen */
.ortzahlen { background: var(--dark); color: var(--white); }
.ortzahlen .eyebrow, .ortzahlen .muted { color: #a3a8ad; }
.oz-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.oz-grid.oz-4 { grid-template-columns: repeat(4, 1fr); }
.oz-item { grid-column: span var(--c, 2); background: var(--dark); padding: 30px 28px 32px; }
.oz-4 .oz-item { grid-column: span 1; }
.oz-item .ic { width: 26px; height: 26px; color: var(--orange); margin-bottom: 18px; }
.oz-item strong { display: block; font-size: clamp(30px, 3.2vw, 46px); font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.oz-label { display: block; margin-top: 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #d7dade; }
.oz-item p { margin: 10px 0 0; font-size: 15px; color: #a3a8ad; }

/* Rund ums Wohnen: Icons, lückenloses Raster */
.u-grid { grid-template-columns: repeat(6, 1fr); }
.u-item { grid-column: span var(--c, 2); display: flex; gap: 18px; align-items: flex-start; padding: 30px 28px 32px; }
.u-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--orange-ink); flex: none; transition: background .3s, color .3s; }
.u-ic .ic { width: 24px; height: 24px; }
.u-item:hover .u-ic { background: var(--orange-btn); color: #fff; }
.u-item h3 { margin-bottom: 6px; }

/* Wohnungen Desktop: Raumaufteilung immer offen, Karten oben bündig */
@media (min-width: 761px) {
  .wgrid { align-items: start; }
  .w-raeume summary { cursor: default; pointer-events: none; }
  .w-raeume summary::after { display: none; }
}

@media (max-width: 980px) {
  .oz-grid, .oz-grid.oz-4, .u-grid { grid-template-columns: 1fr 1fr; }
  .oz-item, .oz-4 .oz-item, .u-item { grid-column: span var(--m, 1); }
  .gallery, .gallery.plans { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(140px, 30vw, 240px); }
  .gallery button, .gallery button:first-child, .gallery.plans button, .gallery.plans button:first-child { grid-column: span var(--m, 1); grid-row: span 1; }
}
@media (max-width: 760px) {
  .u-grid { grid-template-columns: 1fr; }
  .u-item { grid-column: span 1; }
  .vk { padding: 22px 18px 16px; }
  .vk-liste li { grid-template-columns: 46px 1fr auto; gap: 8px; }
  .vk-ziel { font-size: 15px; }
  /* Kein grauer Streifen unter dem Footer: Platz für die Kontaktleiste im Footer selbst */
  body { padding-bottom: 0; }
  .footer { padding-bottom: calc(40px + 72px + env(safe-area-inset-bottom)); }
}
/* Lage: Text links, Fahrzeiten rechts */
.lage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 980px) { .lage-grid { grid-template-columns: 1fr; } }
/* Wohnungen: gleich hohe Karten, Anfrage-Link unten */
@media (min-width: 761px) { .wgrid { align-items: stretch; } }
.w-anfrage { margin-top: auto; padding-top: 16px; }
.w-raeume { margin-top: 4px; }
@media (max-width: 980px) {
  .oz-grid, .oz-grid.oz-4, .u-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery, .gallery.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .u-grid { grid-template-columns: minmax(0, 1fr); }
  .oz-item { padding: 22px 16px 24px; }
  .oz-item strong { font-size: 28px; }
  .oz-label { font-size: 11px; letter-spacing: .08em; }
  .oz-item p { font-size: 14px; hyphens: auto; -webkit-hyphens: auto; }
}

/* Saubere Zeilenumbrüche: keine einzelnen Wörter/Ziffern allein in der letzten Zeile */
p, li, dd, dt, figcaption, blockquote, .card .meta p, .w-flaeche, .oz-item p, .u-item p { text-wrap: pretty; }
h1, h2, h3, .card h3, .hs-name, .eyebrow, .oz-label { text-wrap: balance; }

/* Bild-Umschalter: Anzahl + zweite Leiste unter der Galerie */
.tab-n { display: inline-block; min-width: 22px; margin-left: 6px; padding: 1px 6px; border-radius: 20px; font-size: 12px; background: var(--bg-alt); color: var(--ink-soft); }
.tabs button[aria-pressed="true"] .tab-n { background: rgba(255,255,255,.18); color: #fff; }
.gal-unten { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); }
.gal-unten-text { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 760px) { .gal-unten { padding: 16px; } .gal-unten .filters { width: 100%; } }

/* Verkaufte Wohnungen (11/2026) */
.w-meta span.w-sold { background: var(--ink); color: var(--white); font-weight: 600; }
.w-card.is-sold .w-plan, .w-card.is-sold .w-flaeche, .w-card.is-sold h3 { opacity: .55; }

/* Zeitleiste endet am letzten Punkt (Desktop: --tl-ende aus build.py, mobil: Linie je Eintrag) */
@media (max-width: 980px) {
  .timeline { border-left: 0; }
  .timeline li { border-left: 2px solid var(--line); }
  .timeline li:last-child { border-left-color: transparent; }
}

/* Über uns: Zitat-Box oben, darunter beide Geschäftsführer gleich aufgebaut – Foto links, Text rechts, oben bündig (11/2026) */
.about-head { position: relative; background: var(--white, #fff); border-left: 4px solid var(--orange); padding: clamp(32px, 5vw, 64px) clamp(28px, 5vw, 72px); margin-bottom: clamp(56px, 7vw, 96px); box-shadow: 0 24px 60px -36px rgba(31,35,38,.25); }
.about-head .about-q { position: absolute; right: clamp(20px, 4vw, 56px); top: -18px; font-size: clamp(120px, 14vw, 200px); line-height: 1; color: var(--orange); opacity: .14; font-family: Georgia, serif; pointer-events: none; }
.about-head blockquote { margin: 0; max-width: 820px; }
.about-head .lead { margin: 24px 0 0; max-width: 820px; }
.about .gf { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about .gf + .gf { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.about .gf img { aspect-ratio: 4 / 5; width: 100%; max-width: none; object-fit: cover; filter: grayscale(.15); }
.about .gf-text { max-width: 640px; }
.about .gf-name { font-size: 26px; line-height: 1.2; margin: 0 0 20px; }
.about .gf-name span { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); margin-top: 8px; }
.about .gf-text p.muted:first-of-type { margin-top: 0; }
.about-claim { margin: clamp(56px, 7vw, 88px) 0 0; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.about-claim strong { color: var(--ink); }
@media (max-width: 760px) {
  .about .gf { grid-template-columns: 1fr; gap: 24px; }
  .about .gf img { max-width: 280px; }
}
