/* =========================================================
   S&S Solutions – Stylesheet
   Farben: Creme / Navy / Terrakotta
   Typo:   Cormorant Garamond (Display) + Manrope (Text)
   ========================================================= */

:root {
  --cream:      #F5F0E7;
  --offwhite:   #FFFCF6;
  --navy:       #14233B;
  --navy-soft:  #1D3050;
  --terracotta: #C96945;
  --terracotta-dark: #B45B39;
  --ink:        #14233B;
  --ink-muted:  rgba(20, 35, 59, 0.68);
  --line:       rgba(20, 35, 59, 0.14);
  --on-dark:         #F5F0E7;
  --on-dark-muted:   rgba(245, 240, 231, 0.72);
  --on-dark-line:    rgba(245, 240, 231, 0.18);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --shell: 1240px;
  --radius: 2px;
  --section-y: clamp(72px, 10vw, 144px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.75rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: var(--cream); padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------- Layout ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

.section { padding-block: var(--section-y); }
.section-cream      { background: var(--cream); }
.section-offwhite   { background: var(--offwhite); }
.section-navy       { background: var(--navy); color: var(--on-dark); }
.section-terracotta { background: var(--terracotta); color: var(--offwhite); }

.section-navy h2,
.section-terracotta h2 { color: inherit; }

.section-head { max-width: 780px; margin-bottom: clamp(48px, 6vw, 84px); }
.section-head .lead { margin-top: 20px; }

.split {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split-main { max-width: 720px; }

/* ---------- Typo-Bausteine ---------- */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 22px;
}
.section-navy .eyebrow { color: #E29273; }
.section-terracotta .eyebrow { color: rgba(255, 252, 246, 0.85); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 62ch;
}
.section-navy .lead { color: var(--on-dark-muted); }

/* ---------- Buttons & Links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 28px;
  border: 1px solid transparent;
  white-space: nowrap;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--terracotta);
  color: var(--offwhite);
}
.btn-primary:hover { background: var(--terracotta-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.btn-outline:hover { background: rgba(201, 105, 69, 0.08); }

.btn-block { width: 100%; }

.arrow { font-size: 1.05em; line-height: 1; transition: transform 0.25s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translate(3px, -3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--terracotta);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  white-space: nowrap;
}
.section-navy .link-arrow { color: #E29273; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 231, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Logo: liegt die Datei vor, ersetzt sie den Schriftzug. Fehlt sie, entfernt
   sich das Bild selbst (onerror) und der Schriftzug bleibt stehen. */
.brand-logo {
  display: block;
  height: 34px;
  width: auto;
}
.brand-logo + .brand-text { display: none; }
.footer-brand .brand-logo { height: 30px; }

.nav-desktop { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); }
.nav-desktop a {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 6px;
}
.nav-desktop a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-desktop a:hover::after,
.nav-desktop a.is-active::after { transform: scaleX(1); }
.nav-desktop a.is-active { color: var(--terracotta); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
}
.nav-toggle-bars { display: block; width: 22px; }
.nav-toggle-bars span {
  display: block; height: 1.5px; background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle-bars span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 12px clamp(20px, 5vw, 56px) 32px;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a {
  padding: 16px 0;
  font-size: 1.15rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 24px; border-bottom: none; }

/* ---------- Hero ---------- */

.hero { background: var(--cream); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  min-height: min(84vh, 820px);
}

/* Der linke Innenabstand richtet den Hero-Text an der Containerkante der übrigen
   Seite aus. Die Textbreite wird über die Kinder begrenzt, nicht über die Box:
   sonst frisst der wachsende Innenabstand auf breiten Bildschirmen die Zeile auf. */
.hero-copy {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 56px);
  padding-left: max(clamp(20px, 5vw, 56px), calc((100vw - var(--shell)) / 2 + clamp(20px, 5vw, 56px)));
  min-width: 0;
}
.hero-copy > * { max-width: 640px; }
.hero-copy h1 { margin-bottom: 28px; }
.hero-copy .lead { max-width: min(52ch, 100%); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero-media {
  align-self: stretch;
  min-height: 380px;
  /* Farbfläche des Markenmotivs – ein Foto überdeckt sie später vollständig. */
  background: var(--offwhite);
  position: relative;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

/* ---------- Markenmotiv im Hero ---------- */

.hero-mark {
  display: block;
  width: 100%;
  height: 100%;
}
.mark-monogram {
  font-family: var(--font-display);
  font-size: 208px;
  font-weight: 500;
  letter-spacing: 0.01em;
  fill: #FFFCF6;
}
.mark-word {
  font-family: var(--font-body);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0.34em;
  fill: var(--navy);
}
.mark-rule { opacity: 0.9; }

.mark-drift-a { animation: mark-driftA 18s ease-in-out infinite; }
.mark-drift-b { animation: mark-driftB 22s ease-in-out infinite; }
@keyframes mark-driftA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes mark-driftB { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(12px, 14px); } }

.mark-rings { animation: mark-turn 120s linear infinite; transform-origin: 470px 400px; }
@keyframes mark-turn { to { transform: rotate(360deg); } }

.mark-breathe { animation: mark-breathe 9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mark-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }

@media (prefers-reduced-motion: reduce) {
  .mark-drift-a, .mark-drift-b, .mark-rings, .mark-breathe { animation: none; }
}

/* ---------- Bildbausteine ---------- */

.figure { margin: 0; }
.figure img { width: 100%; height: auto; }

.intro-layout .figure {
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--offwhite);
  padding: clamp(14px, 2vw, 26px);
}

.figure-chart {
  border: 1px solid var(--line);
  background: var(--offwhite);
  padding: clamp(14px, 2vw, 26px);
  margin-bottom: 40px;
}
.figure-chart figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.legend { display: inline-flex; align-items: center; gap: 9px; }
.legend::before {
  content: "";
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--terracotta);
}
.legend-down::before {
  background: repeating-linear-gradient(90deg, var(--ink-muted) 0 5px, transparent 5px 9px);
}

/* Scroll-Fortschritt im Header */
.scroll-progress {
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--terracotta), #E29273);
  transition: transform 0.1s linear;
}

.hero-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--offwhite);
  overflow: hidden;
}

/* Endlos laufendes Leistungsband */
.marquee {
  display: flex;
  width: max-content;
  padding-block: 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding-right: clamp(28px, 4vw, 56px);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span[aria-hidden] { color: var(--terracotta); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Leistungen ---------- */

.service-list { list-style: none; margin: 0; padding: 0; }

.service {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--on-dark-line);
  transition: background-color 0.3s var(--ease);
}
.service:last-child { border-bottom: 1px solid var(--on-dark-line); }
.service:hover { background: rgba(245, 240, 231, 0.035); }

/* Obere Linie zeichnet sich beim Überfahren in Terrakotta nach */
.service { position: relative; }
.service::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  height: 1px; width: 0;
  background: var(--terracotta);
  transition: width 0.55s var(--ease);
}
.service:hover::before { width: 100%; }

.service-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.service-icon {
  display: block;
  width: 34px; height: 34px;
  color: #E29273;
  opacity: 0.55;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.service-icon svg { width: 100%; height: 100%; display: block; }
.service:hover .service-icon { opacity: 1; transform: translateY(-3px); }

.service-num,
.metric-num,
.step-num {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.service-num { color: #E29273; }

.service-body h3 { margin-bottom: 14px; }
.service-body p { color: var(--on-dark-muted); max-width: 58ch; margin: 0; }
.service .link-arrow { margin-top: 6px; }

/* ---------- Kennzahlen ---------- */

.metric-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.metric {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 26px 0 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease), background-color 0.35s var(--ease);
}
.metric:hover {
  padding-left: 12px;
  background: rgba(201, 105, 69, 0.05);
}
.metric p { margin: 0; font-weight: 500; }

/* ---------- Prozess ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.step {
  background: var(--offwhite);
  padding: clamp(28px, 3vw, 44px);
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.step:hover { background: var(--cream); transform: translateY(-4px); }

.step-num { display: block; margin-bottom: 22px; padding-top: 4px; }
/* Linie unter der Schrittnummer wächst, sobald der Schritt ins Bild kommt */
.step-num::after {
  content: "";
  display: block;
  width: 0; height: 1px;
  margin-top: 14px;
  background: var(--terracotta);
  transition: width 0.9s var(--ease) 0.25s;
}
.step.is-visible .step-num::after { width: 52px; }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--ink-muted); margin: 0; font-size: 0.98rem; }

/* ---------- Über uns ---------- */

.about-grid { align-items: center; }

.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 26px);
  max-width: 560px;
}

.founder-card {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--offwhite);
  padding: clamp(14px, 1.6vw, 20px);
}

/* Fehlt das Foto, entfernt sich der ganze Rahmen (onerror im HTML) –
   es bleibt eine saubere Textkarte ohne Platzhalter. */
.founder-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream);
  margin-bottom: 20px;
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.85) contrast(1.04);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
/* Farbschleier in Markenfarbe, der beim Überfahren zurückweicht */
.founder-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 35, 59, 0) 35%, rgba(20, 35, 59, 0.42));
  opacity: 1;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.founder-card:hover .founder-photo img { transform: scale(1.04); filter: none; }
.founder-card:hover .founder-photo::after { opacity: 0.55; }

.founder-bio {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* Direkter Kontakt in der Über-uns-Sektion */
.direct-line {
  margin: 32px 0;
  padding: 22px 26px;
  border-left: 2px solid var(--terracotta);
  background: rgba(201, 105, 69, 0.06);
}
.direct-line-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.direct-line-value {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  margin-bottom: 8px;
}
.direct-line-value a {
  border-bottom: 1px solid rgba(20, 35, 59, 0.25);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.direct-line-value a:hover { color: var(--terracotta); border-bottom-color: currentColor; }
.direct-line-note { margin: 0; font-size: 0.88rem; color: var(--ink-muted); }

/* ---------- Bildband über volle Breite ---------- */

.section-band { position: relative; }
.section-band[hidden] { display: none; }

.band {
  position: relative;
  margin: 0;
  height: clamp(340px, 52vh, 620px);
  overflow: hidden;
}
.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease);
}
.section-band.is-visible .band img { transform: scale(1); }
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 35, 59, 0.72) 0%, rgba(20, 35, 59, 0.25) 55%, rgba(20, 35, 59, 0) 100%);
  pointer-events: none;
}
.band figcaption {
  position: absolute;
  left: max(clamp(20px, 5vw, 56px), calc((100% - var(--shell)) / 2 + clamp(20px, 5vw, 56px)));
  bottom: clamp(32px, 5vw, 64px);
  z-index: 1;
  max-width: min(560px, 62vw);
  color: var(--on-dark);
}
.band-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #E29273;
  margin-bottom: 14px;
}
.band-text {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.2;
}

/* ---------- Vertrauenselemente ---------- */

.trust-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.trust-card {
  background: var(--offwhite);
  padding: clamp(26px, 2.6vw, 38px);
  transition: background-color 0.35s var(--ease);
}
.trust-card:hover { background: var(--cream); }
.trust-num {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  font-variant-numeric: lining-nums tabular-nums;
  margin-bottom: 18px;
}
.trust-card h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); margin-bottom: 12px; }
.trust-card p { margin: 0; font-size: 0.96rem; color: var(--ink-muted); }
.trust-card a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }

.trust-footnote {
  margin: clamp(32px, 4vw, 48px) 0 0;
  max-width: 70ch;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.45;
  color: var(--navy);
}

/* ---------- Referenzen (Struktur für später) ---------- */

.cases { margin-top: clamp(48px, 6vw, 80px); }
.cases-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 24px;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 2vw, 28px);
}
.case-card {
  border: 1px solid var(--line);
  background: var(--offwhite);
  padding: clamp(24px, 2.4vw, 34px);
}
.case-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.case-card dl { margin: 18px 0 0; font-size: 0.94rem; }
.case-card dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 14px;
}
.case-card dd { margin: 4px 0 0; color: var(--ink-muted); }
.case-quote {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.45;
}
.case-quote span {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.founder-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
}
.founder-role {
  margin: 2px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* ---------- Passt das zu Ihnen ---------- */

.section-terracotta { position: relative; overflow: hidden; }
.section-terracotta::before {
  content: "";
  position: absolute;
  inset: -30px;
  background-image: url("../img/pattern-diagonals.svg");
  background-size: 28px 28px;
  opacity: 0.55;
  animation: pattern-drift 26s linear infinite;
  pointer-events: none;
}
.section-terracotta > * { position: relative; z-index: 1; }
@keyframes pattern-drift { to { background-position: 280px 280px; } }

.fit-list { list-style: none; margin: 0; padding: 0; }
.fit-list li {
  position: relative;
  padding: 22px 0 22px 42px;
  border-bottom: 1px solid rgba(255, 252, 246, 0.28);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}
.fit-list li:first-child { border-top: 1px solid rgba(255, 252, 246, 0.28); }
.fit-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 33px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.7s var(--ease) 0.15s;
}
.fit-list li.is-visible::before { width: 18px; }

/* ---------- FAQ ---------- */

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--terracotta); }

.faq-icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px; height: 16px;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: transform 0.3s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }

.faq-answer {
  padding-bottom: 28px;
  max-width: 62ch;
  color: var(--ink-muted);
}
.faq-item[open] .faq-answer { animation: fade-up 0.35s var(--ease) both; }

/* ---------- Kontakt ---------- */

/* Ohne JavaScript greifen die Zustandsklassen nicht – Endzustand direkt setzen */
html:not(.js) .step-num::after { width: 52px; }
html:not(.js) .fit-list li::before { width: 18px; }

#kontakt { position: relative; overflow: hidden; }
#kontakt::before {
  content: "";
  position: absolute;
  top: -35%; right: -20%;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201, 105, 69, 0.30), transparent 62%);
  animation: aurora 20s ease-in-out infinite alternate;
  pointer-events: none;
}
#kontakt > * { position: relative; z-index: 1; }
@keyframes aurora {
  from { transform: translate(0, 0) scale(1); opacity: 0.75; }
  to   { transform: translate(-90px, 70px) scale(1.18); opacity: 1; }
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.time-card {
  margin-top: 44px;
  border: 1px solid var(--on-dark-line);
  padding: 28px 32px;
  max-width: 420px;
}
.time-value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  margin: 0 0 12px;
}
.time-note { margin: 0; color: var(--on-dark-muted); font-size: 0.96rem; }

.contact-form {
  background: rgba(245, 240, 231, 0.05);
  border: 1px solid var(--on-dark-line);
  padding: clamp(26px, 3.5vw, 44px);
}

.field { margin-bottom: 22px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 10px;
}

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 15px 16px;
  background: transparent;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: rgba(245, 240, 231, 0.04);
}
textarea { resize: vertical; min-height: 110px; }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--on-dark-muted) 50%),
                    linear-gradient(135deg, var(--on-dark-muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 24px, calc(100% - 15px) 24px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
select option { background: var(--navy); color: var(--on-dark); }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--on-dark-muted);
  margin-bottom: 8px;
}
.checkbox input {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  margin-top: 3px;
  accent-color: var(--terracotta);
}
.checkbox a { text-decoration: underline; text-underline-offset: 3px; }

.field-error {
  margin: 8px 0 0;
  min-height: 0;
  font-size: 0.85rem;
  color: #F0A88C;
}
.field-error:empty { display: none; }

.contact-form .btn { margin-top: 22px; }

.form-note {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: rgba(245, 240, 231, 0.5);
  text-align: center;
}
.form-status {
  margin: 14px 0 0;
  font-size: 0.95rem;
  text-align: center;
  color: #9FD3B4;
}
.form-status:empty { display: none; }

.field-invalid input,
.field-invalid select,
.field-invalid textarea { border-color: #F0A88C; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--on-dark);
  padding-top: clamp(56px, 7vw, 88px);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.footer-brand .brand { color: var(--on-dark); display: block; margin-bottom: 16px; }
.footer-brand p { color: var(--on-dark-muted); max-width: 42ch; }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 231, 0.5);
  margin: 0 0 6px;
}
.footer-col a { color: var(--on-dark-muted); font-size: 0.98rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--on-dark); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 26px;
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.88rem;
  color: rgba(245, 240, 231, 0.5);
}
.footer-bottom p { margin: 0; }

/* ---------- Rechtstexte (Unterseiten) ---------- */

.legal { padding-block: clamp(56px, 8vw, 112px); }
.legal .shell { max-width: 820px; }
.legal h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); margin-bottom: 14px; }
.legal h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.legal h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 30px;
  margin-bottom: 10px;
}
.legal p, .legal li { color: var(--ink-muted); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }

.legal-meta {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  margin-bottom: 34px;
}

.legal .placeholder {
  background: rgba(201, 105, 69, 0.08);
  border-left: 2px solid var(--terracotta);
  padding: 16px 20px;
  font-size: 0.92rem;
}

/* Inhaltsverzeichnis langer Rechtstexte */
.legal-toc {
  margin: 40px 0 8px;
  padding: 26px 30px;
  background: var(--offwhite);
  border: 1px solid var(--line);
}
.legal-toc-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 40px;
}
.legal-toc li { margin-bottom: 7px; break-inside: avoid; }
.legal-toc a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.legal-toc a:hover { color: var(--terracotta); border-bottom-color: currentColor; }

@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
}

/* ---------- Feinschliff ---------- */

/* Feines Filmkorn über der ganzen Seite – nimmt den Flächen das Digitale */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}

/* Überschriften blenden von unten auf, statt nur einzufaden */
.js h1.reveal,
.js h2.reveal {
  clip-path: inset(0 0 102% 0);
  transform: none;
  transition: clip-path 1s var(--ease), opacity 0.6s var(--ease);
}
.js h1.reveal.is-visible,
.js h2.reveal.is-visible { clip-path: inset(-12% 0 -12% 0); }

/* Feine Linie über jedem Abschnittskopf, die beim Einblenden aufzieht */
.section-head { position: relative; padding-top: 26px; }
.section-head::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 1px;
  background: var(--terracotta);
  transition: width 1s var(--ease) 0.1s;
}
.section-head.is-visible::before { width: 64px; }
html:not(.js) .section-head::before { width: 64px; }

/* Lichtschein folgt dem Zeiger auf den dunklen Flächen */
@media (hover: hover) and (pointer: fine) {
  .section-navy { position: relative; overflow: hidden; }
  .section-navy > * { position: relative; z-index: 1; }
  .section-navy::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
                rgba(226, 146, 115, 0.13), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s var(--ease);
    pointer-events: none;
  }
  .section-navy.is-hovered::before { opacity: 1; }
}

/* Prozess: durchgehende Linie, die sich beim Scrollen aufbaut */
.steps { position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--terracotta);
  transition: width 1.4s var(--ease) 0.2s;
  z-index: 2;
}
.steps.is-drawn::before { width: 100%; }

/* Buttons bekommen einen weichen Schein statt eines harten Rands */
.btn-primary {
  box-shadow: 0 0 0 rgba(201, 105, 69, 0);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.35s var(--ease);
}
.btn-primary:hover { box-shadow: 0 12px 28px -12px rgba(201, 105, 69, 0.75); }

/* ---------- Animationen ---------- */

/* Ohne JavaScript bleibt alles sichtbar – die Animation ist reine Zugabe. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { grid-template-columns: 60px minmax(0, 1fr); }
  .service .link-arrow { grid-column: 2; }
}

/* Unter dieser Breite bleibt für den Hero-Text neben der Grafik zu wenig Zeile
   übrig – dann besser untereinander. */
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy {
    order: 1;
    padding-inline: clamp(20px, 5vw, 56px);
  }
  .hero-copy > * { max-width: 680px; }
  .hero-media { order: 2; min-height: 320px; max-height: 58vh; }
}

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }

  .split, .split-wide, .contact-grid, .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .founders { max-width: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

  /* Teamkarten waagerecht: Foto links, Text rechts – sonst wird die Spalte zu schmal */
  .founders { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .founder-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
  }
  .founder-photo { margin-bottom: 0; }
  .founder-photo::after { font-size: 1.4rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions .btn { width: 100%; }
  .service { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
