/* ════════════════════════════════════════════════════════════
   MSD Bauunternehmen — Stylesheet
   Palette:  Graphit · Beton · Messing-Gold
   Type:     Big Shoulders (Display) · Instrument Sans (Body)
   ════════════════════════════════════════════════════════════ */

:root {
  /* Farben */
  --graphit:      #16140F;
  --graphit-soft: #1F1C15;
  --beton:        #F0EDE6;
  --beton-deep:   #E5E1D6;
  --gold:         #C29B2E;
  --gold-bright:  #E2C05C;
  --gold-deep:    #9E7D20;
  --ink:          #211E17;
  --muted:        #6F6A5E;
  --muted-dark:   #A79F8D;
  --line-light:   rgba(33, 30, 23, 0.14);
  --line-dark:    rgba(240, 237, 230, 0.14);

  /* Typografie */
  --font-display: 'Big Shoulders', 'Arial Narrow', sans-serif;
  --font-body:    'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --sec-pad: clamp(84px, 12vh, 150px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--beton);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection { background: var(--gold); color: var(--graphit); }

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

/* ── Richtschnur (Scroll-Fortschritt) ──────────────────────── */
.richtschnur {
  position: fixed;
  top: 0; left: 0;
  width: 3px; height: 100vh;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}
.richtschnur-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold-bright), var(--gold));
  transform-origin: top;
  transform: scaleY(var(--scroll-progress, 0));
}

/* ── Typo-Bausteine ────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow-rule {
  display: inline-block;
  width: 36px; height: 1px;
  background: var(--gold);
  flex: none;
}

.sec-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.title-accent { color: var(--gold); }

.sec-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 560px;
}
.sec-head { margin-bottom: clamp(48px, 7vw, 80px); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 34px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold) 55%);
  color: var(--graphit);
}
.btn-gold:hover { background: linear-gradient(120deg, #ecd07a, var(--gold-bright) 60%); }

.btn-ghost {
  border-color: rgba(240, 237, 230, 0.45);
  color: #F3F1EA;
}
.btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

.btn-dark {
  background: var(--graphit);
  color: var(--beton);
  margin-top: 34px;
}
.btn-dark:hover { background: var(--gold-deep); color: #fff; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(22, 20, 15, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}
.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: #F3F1EA;
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.brand-text em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-top: 4px;
}

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: rgba(243, 241, 234, 0.85);
  padding: 6px 0;
  transition: color 0.25s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--graphit);
  background: linear-gradient(120deg, var(--gold-bright), var(--gold) 60%);
  padding: 10px 18px;
  transition: transform 0.3s var(--ease-out), background 0.25s;
}
.header-cta:hover { transform: translateY(-2px); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  z-index: 130;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  margin-inline: auto;
  background: #F3F1EA;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.nav-toggle.open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle.open span:last-child  { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(22, 20, 15, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mobile-nav nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #F3F1EA;
  padding: 8px 20px;
  transition: color 0.25s;
}
.mobile-nav nav a:hover { color: var(--gold-bright); }
.mobile-nav-phone {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-bright);
  text-decoration: none;
  letter-spacing: 0.05em;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh; /* exakt ein Screen – Buttons & Foot bleiben im Viewport */
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #F5F3EC;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(22, 20, 15, 0.93) 0%, rgba(22, 20, 15, 0.52) 38%, rgba(22, 20, 15, 0.34) 65%, rgba(22, 20, 15, 0.55) 100%);
}

.hero-content {
  width: 100%;
  padding-top: 84px; /* Header-Freiraum */
  padding-bottom: clamp(20px, 3.5vh, 48px);
}
.hero-eyebrow {
  color: var(--gold-bright);
  margin-bottom: clamp(12px, 2.4vh, 24px);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  /* vw für Breite, vh-Deckel damit 3 Zeilen + Buttons immer in einen Screen passen */
  font-size: clamp(2.7rem, min(9vw, 12vh), 7.6rem);
  line-height: 0.94;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  margin-bottom: clamp(14px, 2.6vh, 26px);
}
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.line {
  display: inline-block;
  transform: translateY(110%);
}
.line-accent {
  color: transparent;
  background: linear-gradient(115deg, var(--gold-bright) 20%, var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub {
  max-width: 540px;
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  color: rgba(245, 243, 236, 0.88);
  margin-bottom: clamp(16px, 3.2vh, 34px);
  opacity: 0;
  transform: translateY(24px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  transform: translateY(24px);
}

/* Load-Animation (Klasse .loaded wird per JS gesetzt) */
.loaded .line { animation: line-rise 0.9s var(--ease-out) forwards; }
.loaded .line-mask:nth-child(1) .line { animation-delay: 0.15s; }
.loaded .line-mask:nth-child(2) .line { animation-delay: 0.28s; }
.loaded .line-mask:nth-child(3) .line { animation-delay: 0.41s; }
.loaded .hero-sub     { animation: fade-rise 0.9s var(--ease-out) 0.62s forwards; }
.loaded .hero-actions { animation: fade-rise 0.9s var(--ease-out) 0.76s forwards; }
.loaded .hero-eyebrow .eyebrow-rule { animation: rule-grow 0.8s var(--ease-out) 0.1s both; }

@keyframes line-rise { to { transform: translateY(0); } }
@keyframes fade-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes rule-grow { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }

.hero-foot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: none;
  padding-top: clamp(12px, 2vh, 20px);
  padding-bottom: clamp(14px, 2.2vh, 24px);
  border-top: 1px solid rgba(245, 243, 236, 0.18);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 243, 236, 0.65);
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-bright);
}
.hero-scroll-line {
  display: inline-block;
  width: 1px; height: clamp(20px, 3.5vh, 34px);
  background: linear-gradient(to bottom, transparent, var(--gold-bright));
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.35); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1);    transform-origin: top; opacity: 1; }
}

/* ── Sections (Basis) ──────────────────────────────────────── */
.section { padding-block: var(--sec-pad); }
section[id] { scroll-margin-top: 76px; }

.section-light { background: var(--beton); color: var(--ink); }

.section-concrete {
  background:
    linear-gradient(rgba(229, 225, 214, 0.55), rgba(229, 225, 214, 0.55)),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(33, 30, 23, 0.045) 119px 120px),
    var(--beton-deep);
  color: var(--ink);
}

.section-dark {
  background: var(--graphit);
  color: #F3F1EA;
}
.section-dark .sec-lead  { color: var(--muted-dark); }
.section-dark ::selection { background: var(--gold-bright); }

/* ── Leistungen ────────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.service-card {
  background: #FBF9F4;
  border: 1px solid var(--line-light);
  border-top: 3px solid var(--gold);
  padding: clamp(28px, 3.4vw, 44px);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -24px rgba(33, 30, 23, 0.35);
}
.service-icon {
  width: 52px; height: 52px;
  color: var(--gold-deep);
  margin-bottom: 26px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.service-card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 22px; }
.service-list li {
  position: relative;
  padding: 9px 0 9px 24px;
  font-size: 0.92rem;
  font-weight: 500;
  border-top: 1px solid var(--line-light);
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 50%;
  width: 10px; height: 1.5px;
  background: var(--gold);
}

/* ── Bauwerke (Index-Liste) ────────────────────────────────── */
.works-index { border-top: 1px solid var(--line-dark); }
.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr 60px;
  grid-template-areas: "meta title arrow" "meta desc arrow";
  column-gap: clamp(20px, 4vw, 60px);
  align-items: start;
  padding: clamp(28px, 4vw, 44px) clamp(8px, 1.5vw, 20px);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  cursor: default;
}
.work-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(194, 155, 46, 0.12), transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.55s var(--ease-out);
  pointer-events: none;
}
.work-row:hover::before { transform: translateX(0); }

.work-meta {
  grid-area: meta;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dark);
  padding-top: 0.9em;
}
.work-title {
  grid-area: title;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  line-height: 1.05;
  transition: color 0.3s, transform 0.45s var(--ease-out);
}
.work-row:hover .work-title { color: var(--gold-bright); transform: translateX(10px); }
.work-desc {
  grid-area: desc;
  max-width: 620px;
  color: var(--muted-dark);
  font-size: 0.96rem;
  margin-top: 10px;
}
.work-arrow {
  grid-area: arrow;
  align-self: center;
  justify-self: end;
  font-size: 1.7rem;
  color: var(--gold-bright);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.35s, transform 0.45s var(--ease-out);
}
.work-row:hover .work-arrow { opacity: 1; transform: translateX(0); }

/* ── Unternehmen ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.about-grid .sec-head { margin-bottom: 0; }

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3.4vw, 48px) clamp(24px, 3vw, 40px);
}
.value-item { padding-top: 18px; }
.value-rule {
  display: block;
  width: 40px; height: 2px;
  background: var(--gold);
  margin-bottom: 18px;
}
.value-item h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.value-item p { color: var(--muted); font-size: 0.95rem; }

/* ── Ablauf ────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--line-light);
}
.step::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 56px; height: 3px;
  background: var(--gold);
}
.step-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--gold-deep);
  display: block;
  margin-bottom: 18px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.step p { color: var(--muted); font-size: 0.94rem; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--line-light);
}
.faq-item {
  border-bottom: 1px solid var(--line-light);
}
.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 22px 56px 22px 0;
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-deep); }
.faq-icon {
  position: absolute;
  right: 4px; top: 50%;
  width: 18px; height: 18px;
  transform: translateY(-50%);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--gold-deep);
  transition: transform 0.35s var(--ease-out);
}
.faq-icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-icon::after  { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-answer {
  padding: 0 56px 26px 0;
}
.faq-answer p { color: var(--muted); font-size: 0.98rem; max-width: 700px; }

/* ── Kontakt ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}

.contact-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--gold-bright);
  text-decoration: none;
  margin: 34px 0 26px;
  transition: color 0.25s;
}
.contact-phone:hover { color: #ecd07a; }
.contact-address {
  color: var(--muted-dark);
  margin-bottom: 14px;
  line-height: 1.8;
}
.contact-mail {
  color: #F3F1EA;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.25s;
}
.contact-mail:hover { color: var(--gold-bright); }

/* Formular */
.contact-form {
  background: var(--graphit-soft);
  border: 1px solid var(--line-dark);
  padding: clamp(28px, 3.6vw, 48px);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: #F3F1EA;
  background: rgba(240, 237, 230, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: 0;
  padding: 13px 16px;
  transition: border-color 0.25s, background 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A79F8D' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-field select option { color: var(--ink); background: var(--beton); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(167, 159, 141, 0.55); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(240, 237, 230, 0.08);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted-dark);
  margin: 6px 0 24px;
  cursor: pointer;
}
.form-consent input {
  flex: none;
  width: 17px; height: 17px;
  margin-top: 3px;
  accent-color: var(--gold);
  cursor: pointer;
}
.form-consent a { color: var(--gold-bright); }

.btn-submit {
  width: 100%;
  border: none;
  position: relative;
}
.btn-submit .btn-sending { display: none; }
.btn-submit.sending .btn-label { display: none; }
.btn-submit.sending .btn-sending { display: inline; }
.btn-submit[disabled] { opacity: 0.7; cursor: wait; transform: none; }

.form-status {
  min-height: 1.4em;
  margin-top: 16px;
  font-size: 0.92rem;
  text-align: center;
}
.form-status.ok    { color: #9BC98A; }
.form-status.error { color: #E08B7A; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: #100E0A;
  color: rgba(243, 241, 234, 0.8);
  padding-top: clamp(56px, 8vw, 90px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  padding-bottom: clamp(40px, 6vw, 70px);
}
.footer-brand img { width: 72px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; color: var(--muted-dark); }

.footer-head {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-nav, .footer-contact, .footer-legal-col { display: flex; flex-direction: column; }
.footer-nav a, .footer-contact a, .footer-legal-col a {
  font-size: 0.92rem;
  color: rgba(243, 241, 234, 0.75);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.25s;
}
.footer-nav a:hover, .footer-contact a:hover, .footer-legal-col a:hover { color: var(--gold-bright); }
.footer-contact address {
  font-size: 0.92rem;
  color: var(--muted-dark);
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-area {
  border-top: 1px solid rgba(240, 237, 230, 0.1);
  padding-top: 20px;
  padding-bottom: 20px;
}
.footer-area p {
  font-size: 0.82rem;
  color: var(--muted-dark);
  line-height: 1.8;
}
.footer-area strong { color: var(--gold); font-weight: 600; }

.footer-bottom {
  border-top: 1px solid rgba(240, 237, 230, 0.1);
  padding-top: 22px;
  padding-bottom: 26px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(167, 159, 141, 0.7);
}

/* ── Scroll-Reveals ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Legal Pages (Impressum / Datenschutz) ─────────────────── */
.legal-main {
  padding-top: calc(90px + clamp(40px, 8vh, 90px));
  padding-bottom: var(--sec-pad);
}
.legal-main h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 40px;
}
.legal-main h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 44px 0 14px;
}
.legal-main h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 10px;
}
.legal-main p, .legal-main li { color: var(--muted); font-size: 0.98rem; margin-bottom: 12px; }
.legal-main ul { list-style: disc; padding-left: 22px; }
.legal-main a { color: var(--gold-deep); }
.legal-main .legal-block { max-width: 780px; }

/* ── Header auf Unterseiten (fester dunkler Hintergrund) ───── */
.site-header.solid {
  background: var(--graphit);
  border-bottom-color: var(--line-dark);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { margin-left: auto; }
  .brand { margin-right: 0; flex: 1; }
}

@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .work-row {
    grid-template-columns: 1fr 48px;
    grid-template-areas: "meta arrow" "title arrow" "desc arrow";
    row-gap: 6px;
  }
  .work-meta { padding-top: 0; }
  .richtschnur { display: none; }
}

@media (max-width: 560px) {
  .header-cta span { display: none; }
  .header-cta { padding: 12px; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-foot { justify-content: center; }
  .hero-foot-item { display: none; }
}

/* Kompakte Höhen (kleine Laptops, Browser mit DevTools etc.) */
@media (max-height: 760px) {
  .hero-actions { gap: 12px; }
  .hero-actions .btn { padding: 13px 26px; font-size: 0.95rem; }
  .hero-sub { max-width: 480px; }
}

/* ── Reduced Motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .line { transform: none; }
  .hero-sub, .hero-actions, .reveal { opacity: 1; transform: none; }
}
