/* ==========================================================================
   BauKompass – Marketing-Seite
   Palette aus der App (tailwind.config.js / brand): ink, moss, clay, stone, fog
   Schrift: Fraunces (Headlines) · Schibsted Grotesk (Lauftext)
   ========================================================================== */

:root {
  /* Marke */
  --ink: #17201b;
  --ink-soft: #1f2b27;
  --moss: #506b55;
  --moss-deep: #2f5145;
  --forest: #29493a;
  --clay: #b86d4b;
  --wood: #a7754f;
  --concrete: #a8a49b;
  --concrete-dark: #8e8a81;
  --stone: #edf0eb;
  --fog: #f7f8f5;
  --white: #ffffff;

  /* Abgeleitet */
  --text: var(--ink-soft);
  --text-muted: #5b675f;
  --line: rgba(23, 32, 27, 0.12);
  --line-strong: rgba(23, 32, 27, 0.22);
  --moss-tint: #e3eae2;
  --shadow-panel: 0 18px 60px rgba(23, 32, 27, 0.08);

  /* Typografie */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  --fs-0: 0.875rem;
  --fs-1: 1.0625rem;
  --fs-2: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-3: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  --fs-4: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
  --fs-5: clamp(2.5rem, 1.6rem + 4.6vw, 5.25rem);

  --measure: 65ch;

  /* Raster */
  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4rem, 9vw, 8rem);
  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset & Grundlagen
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--fog);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-1);
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video,
svg { max-width: 100%; }

img,
video {
  display: block;
  height: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

/* Tabellenziffern nur dort, wo Zahlen stehen – in Schibsted Grotesk
   verbreitert «tnum» sonst auch Komma und Punkt im Lauftext. */
h1, h2, h3, h4,
.step__num,
.chain,
.tel,
.site-footer__legal,
.impressum {
  font-variant-numeric: tabular-nums;
}

h1 { font-size: var(--fs-5); }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-3); }

p {
  margin: 0;
  max-width: var(--measure);
}

p + p { margin-top: 1em; }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--moss-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--ink); }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--moss);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--moss);
  color: var(--fog);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Ankerziele landen nicht unter der fixierten Kopfzeile */
[id] { scroll-margin-top: 90px; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--fog);
  border-radius: 8px;
}

.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Typografische Bausteine
   -------------------------------------------------------------------------- */

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1.1rem;
}

.lead {
  font-size: var(--fs-2);
  line-height: 1.55;
  color: var(--text-muted);
}

.section__head {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section__head h2 + .lead { margin-top: 1.25rem; }

.section__head--split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 860px) {
  .section__head--split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 4rem;
  }
}

/* --------------------------------------------------------------------------
   Knöpfe
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9625rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
  white-space: nowrap;
}

.button svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.button--primary {
  background: var(--forest);
  color: var(--fog);
  border-color: var(--forest);
}

.button--primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--fog);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.button--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.button--light {
  background: var(--fog);
  color: var(--ink);
  border-color: var(--fog);
}

.button--light:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.button--outline-light {
  background: transparent;
  color: var(--fog);
  border-color: rgba(247, 248, 245, 0.4);
}

.button--outline-light:hover {
  border-color: var(--fog);
  color: var(--fog);
}

.button--large {
  padding: 1rem 1.6rem;
  font-size: 1.0625rem;
}

@media (max-width: 480px) {
  .button--large {
    white-space: normal;
    text-align: left;
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   1. Kopfzeile
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 245, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand__logo {
  height: 40px;
  width: auto;
}

.brand__logo--small { height: 32px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__list {
  display: flex;
  gap: 1.75rem;
}

.site-nav__list a {
  font-weight: 500;
  font-size: 0.9625rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 160ms var(--ease);
}

.site-nav__list a:hover { border-bottom-color: var(--moss); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.nav-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
}

.nav-toggle__icon i {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 220ms var(--ease), opacity 160ms var(--ease);
  transform-origin: center;
}

.site-header.is-open .nav-toggle__icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle__icon i:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle__icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 859px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: grid;
    gap: 0.5rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--fog);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-panel);
    transform-origin: top;
  }

  .site-nav:not(.is-visible) { display: none; }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__list a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav__cta {
    justify-content: center;
    margin-top: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   2. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background: var(--fog);
}

.hero__contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--moss);
  opacity: 0.16;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 40%, #000 80%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 40%, #000 80%, rgba(0,0,0,0) 100%);
}

.hero .container { position: relative; }

.hero__copy {
  max-width: 52rem;
}

.hero__title {
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--moss-deep);
}

.hero__lead {
  font-size: var(--fs-2);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 40rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__media {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

@media (min-width: 720px) {
  .hero__media { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.media { margin: 0; }

.media__frame {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--stone);
  box-shadow: var(--shadow-panel);
  isolation: isolate;
}

.media__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--stone);
  background-position: center;
  background-size: cover;
}

#rundflug { background-image: url("media/hero-rundflug.jpg"); }
#rundgang { background-image: url("media/hero-rundgang.jpg"); }

.media figcaption {
  margin-top: 0.75rem;
  font-size: var(--fs-0);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.media figcaption::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
  flex: none;
}

.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-0);
  font-weight: 500;
  color: var(--text-muted);
}

.chain li {
  display: inline-flex;
  align-items: center;
}

.chain li:not(:last-child)::after {
  content: "";
  width: 1.75rem;
  height: 1px;
  margin-inline: 0.75rem;
  background: var(--line-strong);
  position: relative;
}

.chain li:last-child { color: var(--ink); }

/* --------------------------------------------------------------------------
   Sektionen
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section);
  background: var(--fog);
}

.section--stone { background: var(--stone); }

.section--dark {
  background: var(--ink);
  color: rgba(247, 248, 245, 0.82);
}

.section--dark h2,
.section--dark h3 { color: var(--fog); }

.section--dark .eyebrow { color: #9fbba6; }

/* Fokusring auf Ink: Moss erreicht nur ~2.8:1, der Tint hält 3:1 (WCAG 1.4.11) */
.section--dark :focus-visible { outline-color: #9fbba6; }

/* --------------------------------------------------------------------------
   3. So funktioniert es
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: clamp(3rem, 7vw, 6rem);
}

.step {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 760px) {
  .step {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2rem, 6vw, 5rem);
  }
  .step:nth-child(even) .step__media { order: -1; }
}

.step__text { max-width: 30rem; }

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--clay);
  margin-bottom: 0.9rem;
}

.step__text h3 { margin-bottom: 0.85rem; }

.step__text p { color: var(--text-muted); }

/* Bildslots mit Platzhalter (sanfter Farbblock + Schrittname) */

.slot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  background-color: var(--stone);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600' preserveAspectRatio='xMidYMid slice'><g fill='none' stroke='%23506b55' stroke-opacity='0.16' stroke-width='1.2'><path d='M-20 420 C 120 380 220 460 380 410 S 640 300 800 350'/><path d='M-20 470 C 140 430 240 510 400 460 S 660 350 820 400'/><path d='M-20 520 C 160 480 260 560 420 510 S 680 400 840 450'/><path d='M-20 570 C 180 530 280 610 440 560 S 700 450 860 500'/><path d='M-20 370 C 100 330 200 410 360 360 S 620 250 780 300'/><path d='M-20 320 C 80 280 180 360 340 310 S 600 200 760 250'/></g></svg>");
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px var(--line);
}

.slot--1 { background-color: #e6ebe4; }
.slot--2 { background-color: #dfe7e0; }
.slot--3 { background-color: #e9ebe6; }
.slot--4 { background-color: #e3e8e0; }
.slot--5 { background-color: #eceee8; }
.slot--6 { background-color: #ebe7e1; }
.slot--7 { background-color: #e4e9e4; }

.slot__label {
  font-family: var(--font-display);
  font-size: var(--fs-3);
  font-weight: 500;
  font-style: italic;
  color: var(--moss-deep);
  opacity: 0.75;
  padding: 1rem;
  text-align: center;
}

.slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot--loaded {
  background-image: none;
  box-shadow: var(--shadow-panel);
}

/* --------------------------------------------------------------------------
   4. Was du damit machen kannst
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--fog);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.6rem;
  transition: border-color 200ms var(--ease), transform 300ms var(--ease);
}

.card:hover {
  border-color: var(--moss);
}

.card__icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--moss);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.9625rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. Für wen
   -------------------------------------------------------------------------- */

.audience {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 820px) {
  .audience { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.audience__col {
  background: rgba(247, 248, 245, 0.05);
  border: 1px solid rgba(247, 248, 245, 0.12);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.audience__col--soon {
  background: transparent;
  border-style: dashed;
}

.audience__col h3 {
  margin: 1.25rem 0 1rem;
  font-size: var(--fs-3);
}

.audience__col p { color: rgba(247, 248, 245, 0.78); }

.audience__col .button { margin-top: auto; }

.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag--solid {
  background: var(--moss);
  color: var(--fog);
}

.tag--outline {
  border: 1px solid rgba(247, 248, 245, 0.45);
  color: rgba(247, 248, 245, 0.85);
}

.checklist {
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.6rem;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  color: rgba(247, 248, 245, 0.88);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.9rem;
  height: 1px;
  background: #9fbba6;
}

/* --------------------------------------------------------------------------
   6. Katalog und Partner – Bildleiste
   -------------------------------------------------------------------------- */

.strip-wrap {
  width: 100%;
  overflow: hidden;
}

.strip {
  --strip-pad: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  display: flex;
  gap: 0.875rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-inline: var(--strip-pad);
  scroll-padding-inline: var(--strip-pad);
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--concrete) transparent;
  -webkit-overflow-scrolling: touch;
}

.strip__item {
  flex: 0 0 auto;
  width: min(78vw, 360px);
  scroll-snap-align: start;
}

.strip figure { margin: 0; }

.strip picture,
.strip img {
  display: block;
  width: 100%;
}

.strip img {
  aspect-ratio: 7 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--stone);
}

.strip figcaption {
  margin-top: 0.6rem;
  font-size: var(--fs-0);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. Wer dahintersteht
   -------------------------------------------------------------------------- */

.founders {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .founders { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.founder {
  background: var(--fog);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.founder__mono {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--moss-tint);
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.founder h3 {
  font-size: var(--fs-3);
  margin-bottom: 0.5rem;
}

.founder p { color: var(--text-muted); }

.founders__note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  font-size: var(--fs-0);
  color: var(--text-muted);
}

.founders__note svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--moss);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* --------------------------------------------------------------------------
   8. Kontakt
   -------------------------------------------------------------------------- */

.contact {
  background: var(--fog);
  border-top: 1px solid var(--line);
}

.contact__inner {
  max-width: 44rem;
}

.contact h2 { margin-bottom: 1.25rem; }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* --------------------------------------------------------------------------
   Fusszeile
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--stone);
  border-top: 1px solid var(--line);
  padding-block: 3rem 2.5rem;
  font-size: var(--fs-0);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.site-footer__links a:hover { text-decoration: underline; }

.impressum {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
}

.impressum h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.impressum__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .impressum__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
}

.impressum p { max-width: none; }

.impressum a { color: inherit; }

.site-footer__legal {
  margin-top: 2.5rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Motion: sanftes Einblenden beim Scrollen
   -------------------------------------------------------------------------- */

/* Die Klasse «js» wird erst von script.js gesetzt, sobald der Observer steht.
   Die Transition liegt auf .is-visible, damit das nachträgliche Verstecken
   sofort greift und nur das Einblenden animiert. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .card,
  .nav-toggle__icon i,
  .site-nav__list a { transition: none; }
}

/* [Bauherr 03.09.2026] Beide Hero-Filme sind 16:9 (Rundflug 3D→KI, Küchen-Rundgang) – kein Beschnitt mehr. */
.hero__media .media__frame { aspect-ratio: 16 / 9; }
