/* ============================================================
   Know-How Dachbau GmbH — Stylesheet
   Architecture:
     1. Tokens (CSS variables)
     2. Base & Typography
     3. Layout primitives
     4. Components (Buttons, Cards, Navigation, Forms, FAQ)
     5. Sections (Hero, Trust, Problem, Services, Process,
                  About, Projects, Contact, Footer)
     6. Sub-pages (Impressum / Datenschutz)
     7. Motion & reveals
     8. Responsive (mobile-first → wider breakpoints)
   ============================================================ */

/* 1. Tokens -------------------------------------------------- */
:root {
  /* Brand */
  --brand-blue:        #1E2DAF;        /* Logo-Blau, leicht für Screen optimiert */
  --brand-blue-deep:   #14207A;
  --brand-blue-soft:   #EEF0FB;

  /* Ink & surfaces */
  --ink:               #0A0F1C;        /* near-black, blau-anthrazit */
  --ink-soft:          #1B2230;
  --ink-muted:         #4B5363;
  --muted:             #6B7280;
  --line:              #E5E7EB;
  --line-strong:       #CBD0DA;

  --paper:             #FFFFFF;
  --surface:           #F7F7F4;        /* warmer off-white */
  --surface-2:         #ECECE6;
  --surface-3:         #E1E1DB;

  /* Accent */
  --wood:              #B89368;        /* dezenter Holzton */
  --wood-deep:         #8C6B45;

  /* Functional */
  --success:           #1F7A4D;
  --warning:           #B7791F;
  --danger:            #B91C1C;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

  /* Spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(10,15,28,.05), 0 1px 1px rgba(10,15,28,.03);
  --shadow-md:  0 10px 25px -10px rgba(10,15,28,.15), 0 4px 8px -4px rgba(10,15,28,.06);
  --shadow-lg:  0 30px 60px -20px rgba(10,15,28,.25), 0 10px 20px -10px rgba(10,15,28,.10);

  /* Layout */
  --container:    1240px;
  --container-narrow: 980px;
  --header-h:     72px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base & Typography -------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--brand-blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-blue-deep); }

img, video { max-width: 100%; height: auto; display: block; }

/* Selection */
::selection { background: var(--brand-blue); color: #fff; }

/* 3. Layout primitives -------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}
.section--surface  { background: var(--surface); }
.section--surface-2 { background: var(--surface-2); }
.section--ink {
  background: var(--ink);
  color: #fff;
}
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: rgba(255,255,255,.78); }

.section-head {
  max-width: 760px;
  margin: 0 0 clamp(40px, 6vw, 72px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brand-blue);
}
.section--ink .eyebrow { color: #B6BFF0; }
.section--ink .eyebrow::before { background: #B6BFF0; }

.lead { font-size: 1.12rem; color: var(--ink-muted); max-width: 60ch; }

/* Placeholder marker (kennzeichnet zu ersetzende Inhalte) */
.placeholder-marker {
  display: inline-block;
  background: #FFF8E1;
  border: 1px dashed #B7791F;
  color: #92560C;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* 4. Components --------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(30,45,175,.55);
}
.btn--primary:hover { background: var(--brand-blue-deep); color: #fff; }

.btn--ghost {
  background: rgba(255,255,255,.10);
  color: #fff;
  border-color: rgba(255,255,255,.30);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255,255,255,.18); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn--lg { padding: 16px 28px; font-size: 1.02rem; }
.btn .arrow { width: 16px; height: 16px; stroke-width: 2.2; }

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background .25s var(--ease), border-color .25s var(--ease), backdrop-filter .25s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-transparent { background: linear-gradient(180deg, rgba(10,15,28,.45), rgba(10,15,28,0)); }
.site-header.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0rem;
  letter-spacing: -0.01em;
  color: #fff;
  transition: color .25s var(--ease);
}
.site-header.is-scrolled .nav__brand { color: var(--ink); }
.nav__logo {
  width: 44px; height: 44px;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.nav__logo img { width: 100%; height: 100%; object-fit: contain; }
.nav__brand-text { display: none; line-height: 1.1; }
.nav__brand-text strong { display: block; font-size: 0.95rem; }
.nav__brand-text span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.74rem; opacity: .85; letter-spacing: .02em; }

.nav__menu {
  display: none;
  list-style: none;
  margin: 0; padding: 0;
  gap: 6px;
  align-items: center;
}
.nav__menu a {
  color: rgba(255,255,255,.92);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__menu a:hover { background: rgba(255,255,255,.10); color: #fff; }
.site-header.is-scrolled .nav__menu a { color: var(--ink-soft); }
.site-header.is-scrolled .nav__menu a:hover { background: var(--surface); color: var(--ink); }

.nav__cta { display: none; }

/* Mobile menu button */
.nav__toggle {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.30);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav__toggle svg { width: 20px; height: 20px; }
.site-header.is-scrolled .nav__toggle {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 100;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateY(0); }
.mobile-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.mobile-drawer__close {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.20);
  color: #fff;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  cursor: pointer;
}
.mobile-drawer ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 4px;
}
.mobile-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.mobile-drawer a::after { content: "→"; color: rgba(255,255,255,.5); font-weight: 400; }
.mobile-drawer__cta { margin-top: 32px; display: grid; gap: 12px; }
.mobile-drawer__cta .btn { width: 100%; }

/* 5. Sections ----------------------------------------------- */

/* HERO -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 32px) 0 56px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--ink);
}
.hero__media video,
.hero__media img.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Mobile-first: zentraler 9:16-Crop, Fokus auf Dachfirst/Lattung/Kamin */
  object-position: center center;
}
.hero__media::after {
  /* dunkles Overlay für Lesbarkeit */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,15,28,.55) 0%, rgba(10,15,28,.20) 30%, rgba(10,15,28,.50) 70%, rgba(10,15,28,.85) 100%),
    linear-gradient(90deg, rgba(10,15,28,.45) 0%, rgba(10,15,28,0) 50%);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.hero__pretitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.8vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  max-width: 100%;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .hero__pretitle { letter-spacing: 0.04em; padding: 6px 12px; gap: 8px; }
}
.hero__pretitle::before {
  content: "";
  width: 6px; height: 6px;
  background: #87E8B9;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(135,232,185,.20);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 900;
  margin-bottom: 20px;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,.20);
}
.hero__subline {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: rgba(255,255,255,.92);
  max-width: 62ch;
  margin-bottom: 32px;
  text-wrap: pretty;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 0.92rem; color: rgba(255,255,255,.80);
  font-family: var(--font-mono); font-weight: 400;
  letter-spacing: 0.01em;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before {
  content: "";
  width: 14px; height: 1px; background: rgba(255,255,255,.5);
  display: inline-block;
}

.hero__scrollhint {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  display: none;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  align-items: center;
  gap: 10px;
}
.hero__scrollhint::after {
  content: "";
  width: 1px; height: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0));
  display: inline-block;
  animation: pulse-line 2.2s ease-in-out infinite;
}
@keyframes pulse-line {
  0%, 100% { opacity: .3; transform: scaleY(.6); }
  50%      { opacity: 1;  transform: scaleY(1); }
}

/* TRUST BAR --------------------------------------------- */
.trustbar {
  background: var(--ink);
  color: #fff;
  padding: 24px 0;
  position: relative;
  z-index: 2;
}
.trustbar__grid {
  display: grid;
  gap: 20px 32px;
  grid-template-columns: 1fr;
}
.trustbar__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.trustbar__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #B6BFF0;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  padding-top: 3px;
  min-width: 24px;
}
.trustbar__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  color: #fff;
}
.trustbar__text span {
  font-size: 0.88rem;
  color: rgba(255,255,255,.72);
  line-height: 1.45;
}

/* PROBLEM ----------------------------------------------- */
.problems {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
.problem-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.problem-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
}
.problem-card__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.problem-card__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.problem-card__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  display: grid; place-items: center;
}
.problem-card__icon svg { width: 20px; height: 20px; }
.problem-card h3 { margin: 0 0 8px; }
.problem-card p { margin: 0; color: var(--ink-muted); font-size: 0.98rem; }

/* SERVICES ---------------------------------------------- */
.services {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
.service-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card::before {
  /* dezente Akzentlinie oben */
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 56px;
  background: var(--brand-blue);
  transition: width .4s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.service-card:hover::before { width: 100%; }
.service-card__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  display: block;
}
.service-card h3 { margin: 0 0 12px; }
.service-card p { color: var(--ink-muted); margin: 0 0 18px; font-size: 0.98rem; }
.service-card__points {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 6px;
}
.service-card__points li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.service-card__points li::before {
  content: "";
  width: 16px; height: 1px;
  background: var(--brand-blue);
  margin-top: 11px;
  flex-shrink: 0;
}

.services-note {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--surface);
  border-left: 3px solid var(--wood);
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.services-note strong { color: var(--ink); font-weight: 600; }

/* PROCESS ----------------------------------------------- */
.process {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}
.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  position: relative;
}
.process-step:first-child { border-top: 1px solid rgba(255,255,255,.18); }
.process-step:last-child  { border-bottom: 1px solid rgba(255,255,255,.10); }
.process-step__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.04em;
}
.process-step__num::before {
  content: "0";
  color: rgba(255,255,255,.30);
}
.process-step h3 { color: #fff; margin: 0 0 8px; }
.process-step p { color: rgba(255,255,255,.74); margin: 0; max-width: 56ch; }

/* ABOUT ------------------------------------------------- */
.about-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
}
.about-photo {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 360px;
  margin: 0 auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-photo__badge {
  position: absolute;
  left: 16px; bottom: 16px; right: 16px;
  background: rgba(10,15,28,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.4;
  border: 1px solid rgba(255,255,255,.18);
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { font-size: 1.04rem; }

.about-values {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.about-values li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.about-values li::before {
  content: "";
  margin-top: 10px;
  width: 16px; height: 1px;
  background: var(--brand-blue);
}
.about-values strong { font-weight: 600; color: var(--ink); grid-column: 2; }
.about-values span { display: block; color: var(--ink-muted); font-size: 0.95rem; margin-top: 2px; grid-column: 2; }

/* PROJECTS ---------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.project-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 11;
  isolation: isolate;
}
.project-card img,
.project-card video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}
.project-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,15,28,0) 40%, rgba(10,15,28,.85) 100%);
}
.project-card__caption {
  position: absolute;
  left: 22px; right: 22px; bottom: 18px;
  z-index: 1;
  color: #fff;
}
.project-card__caption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.project-card__caption span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.78);
}

.project-card--placeholder {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}
.project-card--placeholder::after { display: none; }
.project-card--placeholder strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 1.05rem;
}
.project-card--placeholder span {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--muted); letter-spacing: 0.04em;
}

/* CONTACT / FORM ---------------------------------------- */
.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
.contact-aside h3 { margin-top: 0; }
.contact-aside p  { color: var(--ink-muted); }

.contact-info {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; gap: 16px;
}
.contact-info li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}
.contact-info__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  display: grid; place-items: center;
}
.contact-info__icon svg { width: 18px; height: 18px; }
.contact-info dt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-info dd { margin: 0; font-weight: 500; color: var(--ink); }
.contact-info dd a { color: var(--ink); }
.contact-info dd a:hover { color: var(--brand-blue); }

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-md);
}
.form__row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  display: flex; justify-content: space-between; align-items: baseline;
}
.field label .opt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--paper);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(30,45,175,.10);
}
.field input:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

.field--consent {
  margin: 8px 0 18px;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
}
.field--consent input { width: auto; margin-top: 4px; }
.field--consent label { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.5; flex: 1; }

.form__file {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
}
.form__file label {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.form__file label .opt { color: var(--muted); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; }
.form__file input[type=file] { margin-top: 8px; font-size: 0.88rem; }

.form__submit { width: 100%; }
.form__notice {
  margin-top: 16px;
  padding: 14px 16px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  border-radius: var(--r-md);
  display: none;
  font-size: 0.92rem;
}
.form__notice.is-visible { display: block; }

/* FAQ --------------------------------------------------- */
.faq {
  display: grid;
  gap: 0;
}
.faq__item {
  border-top: 1px solid var(--line);
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: transparent;
  border: 0;
  padding: 24px 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.faq__btn:hover { color: var(--brand-blue); }
.faq__sign {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .3s var(--ease);
  position: relative;
}
.faq__sign::before, .faq__sign::after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 1px;
}
.faq__sign::before { width: 10px; height: 2px; }
.faq__sign::after { width: 2px; height: 10px; transition: transform .3s var(--ease); }
.faq__item.is-open .faq__sign { background: var(--brand-blue); border-color: var(--brand-blue); }
.faq__item.is-open .faq__sign::before { background: #fff; }
.faq__item.is-open .faq__sign::after { background: #fff; transform: rotate(90deg); }
.faq__panel {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq__panel-inner { padding: 0 0 24px; max-width: 70ch; color: var(--ink-muted); }
.faq__panel-inner p { margin: 0 0 0.6em; }

/* FOOTER ------------------------------------------------ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand { max-width: 360px; }
.footer-brand__logo {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.footer-brand__logo .nav__logo { background: #fff; }
.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: 1.0rem;
  line-height: 1.2;
}
.footer-brand__name span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: rgba(255,255,255,.6);
  margin-top: 2px;
}
.footer-brand p { color: rgba(255,255,255,.66); font-size: 0.94rem; margin: 0; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B6BFF0;
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
}
.footer-col li { font-size: 0.95rem; color: rgba(255,255,255,.78); }
.footer-col a { color: rgba(255,255,255,.78); }
.footer-col a:hover { color: #fff; }
.footer-col strong { color: #fff; font-weight: 600; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
}
.footer-bottom nav {
  display: flex; gap: 18px; flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: #fff; }

/* 6. Sub-pages ---------------------------------------------- */
.legal {
  padding: calc(var(--header-h) + 56px) 0 96px;
  background: var(--surface);
  min-height: 100vh;
}
.legal__container { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.legal__intro { color: var(--ink-muted); margin-bottom: 40px; }
.legal h2 {
  font-size: 1.4rem; margin: 36px 0 12px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal p, .legal ul { color: var(--ink-soft); font-size: 0.98rem; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--brand-blue); }
.legal__back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.84rem;
  letter-spacing: 0.04em; color: var(--ink-muted);
  margin-bottom: 32px;
}
.legal__back:hover { color: var(--brand-blue); }

/* 7. Motion ------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* 8. Responsive --------------------------------------------- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  /* Slightly smaller nav-brand text width so the brand never crowds the toggle */
  .nav__brand { gap: 10px; font-size: 0.92rem; min-width: 0; }
  .nav__logo { width: 40px; height: 40px; }
  .nav { gap: 12px; }
}

@media (min-width: 560px) {
  .problems   { grid-template-columns: 1fr 1fr; }
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .trustbar__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 820px) {
  .nav__menu { display: flex; }
  .nav__toggle { display: none; }
  .nav__cta { display: inline-flex; }
  .nav__brand-text { display: block; }

  .trustbar__grid { grid-template-columns: repeat(4, 1fr); }
  .services { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 2fr 1fr; }
  .projects-grid > .project-card:nth-child(3) { grid-column: span 1; }

  .about-grid { grid-template-columns: 360px 1fr; gap: 64px; align-items: center; }
  .contact-grid { grid-template-columns: 1fr 1.4fr; gap: 56px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }

  .hero__scrollhint { display: inline-flex; flex-direction: column; }
  .hero__scrollhint::after { width: 1px; height: 60px; }
}

@media (min-width: 1080px) {
  .services { grid-template-columns: 1fr 1fr 1fr; }
  .problems { grid-template-columns: repeat(4, 1fr); }
  .projects-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 280px;
  }
  .projects-grid > .project-card:first-child {
    grid-row: span 2;
    aspect-ratio: auto;
  }
  .projects-grid > .project-card { aspect-ratio: auto; }
}

/* Mobile crop ----------------------------------------------- */
/* object-fit:cover liefert auf 9:16-Container schon den korrekten
   zentralen Crop aus dem 16:9-Video (Dachfirst/Lattung/Kamin in Mitte).
   Ein leichter Scale schärft den Fokus weiter aufs Dach. */
@media (max-width: 768px) {
  .hero__media video {
    transform: scale(1.08);
    transform-origin: center center;
  }
  /* Das Mobile-Poster ist bereits 9:16 zugeschnitten – kein Extra-Zoom. */
}
