/* ============================================================
   K&S Immobilien — style.css
   Design System: "Petrol" (Claude Design, Porsche-inspiriert)
   ============================================================ */

/* Archivo (Variable Font, Achsen: Gewicht + Breite) — selbst gehostet statt
   über Google Fonts geladen (vermeidet IP-Übertragung an Google ohne
   Einwilligung, siehe LG München I, Urt. v. 20.01.2022 – 3 O 17493/20).
   Ersetzt sowohl die vormals separat geladene Google-Familie "Archivo" als
   auch "Archivo Expanded" (= dieselbe Schrift, breiteste Stufe der
   Breiten-Achse, siehe --font-stretch-display in Abschnitt 1). Nur der
   Latin-Subset (deckt auch deutsche Umlaute/ß ab, U+0000–00FF) — Latin-Ext
   und Vietnamesisch werden auf dieser Seite nicht gebraucht. Lizenz: SIL
   Open Font License 1.1 (Copyright The Archivo Project Authors), Selbst-
   Hosting ausdrücklich erlaubt. */
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('../assets/fonts/archivo-variable-latin.woff2') format('woff2-variations');
}

/* ---- 1. Design Tokens ---- */
:root {
  /* Petrol-Skala */
  --petrol-50:  hsl(156 30% 95%);
  --petrol-100: hsl(156 28% 90%);
  --petrol-200: hsl(156 26% 82%);
  --petrol-300: hsl(157 26% 72%);
  --petrol-400: hsl(157 25% 60%);
  --petrol-500: hsl(156 25% 48%);
  --petrol-600: hsl(156 26% 38%);
  --petrol-700: hsl(156 26% 30%);
  --petrol-800: hsl(156 25% 23%);
  --petrol-900: hsl(156 28% 17%);
  --petrol-950: hsl(157 32% 11%);

  /* Stone (neutral) */
  --stone-50:  hsl(30 12% 97%);
  --stone-100: hsl(30 9% 94%);
  --stone-200: hsl(28 8% 88%);
  --stone-300: hsl(28 6% 78%);
  --stone-400: hsl(28 5% 65%);
  --stone-500: hsl(28 5% 52%);
  --stone-600: hsl(28 6% 40%);
  --stone-700: hsl(28 7% 29%);
  --stone-800: hsl(28 9% 19%);
  --stone-900: hsl(28 11% 12%);
  --stone-950: hsl(28 14% 7%);

  /* Sand (Sekundärakzent) */
  --sand-100: hsl(38 46% 92%);
  --sand-300: hsl(38 48% 78%);
  --sand-500: hsl(38 45% 55%);
  --sand-700: hsl(35 42% 38%);

  /* Semantisch */
  --success-500: hsl(142 34% 38%);
  --success-100: hsl(142 30% 92%);
  --warning-500: hsl(38 70% 46%);
  --warning-100: hsl(40 65% 92%);
  --error-500:   hsl(6 55% 45%);
  --error-100:   hsl(6 50% 93%);
  --white: #fff;
  --black: hsl(157 32% 8%);

  --surface-page:    var(--stone-50);
  --surface-card:    var(--white);
  --surface-sunken:  var(--stone-100);
  --surface-inverse: var(--petrol-900);

  --border-subtle: var(--stone-200);
  --border-default: var(--stone-300);
  --border-strong: var(--petrol-800);

  --text-primary:   var(--petrol-950);
  --text-secondary: var(--stone-600);
  --text-tertiary:  var(--stone-500);
  --text-on-petrol: var(--stone-50);
  --text-link:      var(--petrol-700);

  --accent-primary:        var(--petrol-800);
  --accent-primary-hover:  var(--petrol-700);
  --accent-primary-active: var(--petrol-900);
  --accent-secondary:      var(--sand-500);

  /* Typografie */
  --font-display: 'Archivo Variable', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'Archivo Variable', Arial, sans-serif;
  --font-stretch-display: 125%; /* ersetzt die früher separat geladene Google-Fonts-Familie "Archivo Expanded" — dieselbe Schrift, breiteste Stufe der self-hosted Variable-Font-Achse */
  --font-mono:    ui-monospace, Menlo, Consolas, monospace;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.06em;

  --text-xs:   0.8125rem;
  --text-sm:   0.9375rem;
  --text-base: 1.0625rem;
  --text-md:   1.25rem;
  --text-lg:   1.75rem;
  --text-xl:   2.25rem;
  --text-2xl:  3rem;
  --text-3xl:  4rem;
  --text-4xl:  5.5rem;

  /* Spacing */
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 144px;

  --container-max: 1360px;
  --container-pad: clamp(24px, 5vw, 80px);

  /* Effekte */
  --radius-xs:  2px;
  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  8px;
  --radius-xl:  12px;
  --radius-2xl: 16px;
  --radius-3xl: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px hsl(157 32% 8% / .08);
  --shadow-md: 0 8px 24px hsl(157 32% 8% / .10);
  --shadow-lg: 0 24px 56px hsl(157 32% 8% / .16);
  --shadow-inset: inset 0 0 0 1px hsl(157 32% 8% / .08);

  --blur-frosted: blur(24px);

  --duration-sm: 0.2s;
  --duration-md: 0.35s;
  --duration-lg: 0.5s;
  --duration-xl: 0.9s;

  --ease-in:     cubic-bezier(.4, 0, 1, 1);
  --ease-out:    cubic-bezier(0, 0, .2, 1);
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);

  --border-hairline: 1px solid var(--border-subtle);
  --nav-height: 76px;
}

/* ---- 2. Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--text-link);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--accent-primary-hover);
    text-decoration: underline;
  }
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ---- 2b. Fokus & Skip-Link (Tastaturnavigation) ---- */
:focus-visible {
  outline: 3px solid var(--petrol-300);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 1000;
  background: var(--accent-primary);
  color: var(--text-on-petrol);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  transition: top var(--duration-md) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-md);
}

/* ---- 3. Typografie ---- */
.text-display {
  font-family: var(--font-display);
  font-stretch: var(--font-stretch-display);
  font-weight: var(--weight-bold);
  font-size: clamp(2.5rem, 6vw, var(--text-4xl));
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  text-wrap: balance;
}

h1, .text-h1 {
  font-family: var(--font-display);
  font-stretch: var(--font-stretch-display);
  font-weight: var(--weight-bold);
  font-size: clamp(2rem, 4.5vw, var(--text-3xl));
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

h2, .text-h2 {
  font-family: var(--font-display);
  font-stretch: var(--font-stretch-display);
  font-weight: var(--weight-bold);
  font-size: clamp(1.5rem, 3vw, var(--text-xl));
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

h3, .text-h3 {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  text-wrap: balance;
}

.text-body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

/* slop_allcaps_labels: sentence-case statt uppercase+tracking — H2/H1 trägt die Hierarchie */
.text-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
}

.text-muted { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-accent { color: var(--accent-primary); }

/* ---- 4. Layout-Utilities ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: var(--space-4xl); }
.section-alt { background: var(--surface-sunken); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* ---- 5. Header (Navigation) ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: hsl(30 12% 97% / .82);
  backdrop-filter: var(--blur-frosted);
  -webkit-backdrop-filter: var(--blur-frosted);
  border-bottom: var(--border-hairline);
}

.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--black);
  transition: opacity var(--duration-sm) var(--ease-out), transform var(--duration-sm) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nav__logo:hover { opacity: 0.75; transform: scale(1.03); }
}

.nav__logo:active {
  transform: scale(0.96);
  transition-duration: 0.12s;
}

.nav__logo .logo-full svg { height: 34px; width: auto; display: block; }
.nav__logo .logo-icon { display: none; }
.nav__logo .logo-icon svg { height: 34px; width: auto; display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-normal);
  color: var(--text-secondary);
  transition: color var(--duration-sm) var(--ease-out);
  white-space: nowrap;
}

.nav__link.active {
  color: var(--petrol-800);
  font-weight: var(--weight-semibold);
}

@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--text-primary); }
}

.nav__cta {
  height: 40px;
  padding: 0 var(--space-md);
  display: inline-flex;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-on-petrol);
  background: var(--accent-primary);
  border-radius: var(--radius-lg);
  transition: background-color var(--duration-sm) var(--ease-out), transform var(--duration-sm) var(--ease-out);
  white-space: nowrap;
}

.nav__cta:active {
  transform: scale(0.96);
  transition-duration: 0.12s;
}

@media (hover: hover) and (pointer: fine) {
  .nav__cta:hover { background: var(--accent-primary-hover); }
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration-md) var(--ease-out), opacity var(--duration-sm) var(--ease-out);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: hsl(30 12% 97% / .97);
  backdrop-filter: var(--blur-frosted);
  -webkit-backdrop-filter: var(--blur-frosted);
  border-bottom: var(--border-hairline);
  padding: var(--space-lg) var(--container-pad) var(--space-xl);
  z-index: 99;
  flex-direction: column;
  gap: var(--space-2xs);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform var(--duration-md) var(--ease-out), opacity var(--duration-sm) var(--ease-out);
}

.nav__mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.nav__mobile .nav__link {
  font-size: var(--text-md);
  padding: var(--space-sm) 0;
  border-bottom: var(--border-hairline);
}

.nav__mobile .nav__link:last-of-type { border-bottom: none; }

/* ---- 6. Hero ---- */
.hero {
  position: relative;
  height: clamp(420px, 62vh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

@keyframes hero-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-kenburns 9s var(--ease-in-out) forwards;
}

.hero__team-photo {
  position: absolute;
  right: clamp(0px, 4vw, 64px);
  bottom: 0;
  height: 82%;
  width: auto;
  pointer-events: none;
  filter: drop-shadow(0 24px 48px hsl(157 32% 8% / .35));
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, hsl(157 32% 8% / .15) 0%, hsl(157 32% 8% / .4) 40%, hsl(157 32% 8% / .82) 72%, hsl(157 32% 8% / .88) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-bottom: var(--space-3xl);
}

.hero__text {
  max-width: 720px;
  color: var(--white);
}

.hero__logo-mark {
  width: min(150px, 40vw);
  margin-bottom: var(--space-md);
  color: var(--white);
  filter: drop-shadow(0 4px 14px hsl(157 32% 8% / .45));
}

.hero__logo-mark svg { width: 100%; height: auto; display: block; }

.logo-draw__house {
  stroke-dasharray: 1200; /* Platzhalter, wird von playLogoDraw() via getTotalLength() überschrieben */
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset var(--duration-xl) var(--ease-in-out);
}

.logo-draw__mark {
  opacity: 0;
  transform: scale(0.92);
  transform-origin: center;
  transition: opacity var(--duration-md) var(--ease-out) var(--duration-xl),
              transform var(--duration-md) var(--ease-out) var(--duration-xl);
}

.logo-draw__word {
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--duration-lg) var(--ease-in-out) calc(var(--duration-xl) + var(--duration-md));
}

.logo-draw--drawn .logo-draw__mark { opacity: 1; transform: scale(1); }
.logo-draw--drawn .logo-draw__word { clip-path: inset(0 0% 0 0); }

.hero__eyebrow {
  color: var(--stone-100);
  text-shadow: 0 1px 8px hsl(157 32% 4% / .5);
  margin-bottom: var(--space-sm);
}

.hero__title {
  color: var(--white);
  text-shadow: 0 2px 16px hsl(157 32% 4% / .5);
  margin-bottom: var(--space-md);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

/* ---- 7. Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  height: 44px;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-lg);
  transition: transform var(--duration-sm) var(--ease-out), background-color var(--duration-sm) var(--ease-out),
              border-color var(--duration-sm) var(--ease-out), color var(--duration-sm) var(--ease-out);
  white-space: nowrap;
}

.btn-lg { height: 56px; padding: 0 var(--space-xl); font-size: var(--text-base); }

.btn:active {
  transform: scale(0.97);
  transition-duration: 0.12s;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--text-on-petrol);
  border: 1px solid transparent;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--border-default);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid transparent;
}

.btn-on-petrol {
  background: var(--white);
  color: var(--accent-primary);
  border: 1px solid transparent;
}

.btn-on-petrol.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid hsl(0 0% 100% / .4);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-primary-hover); }
  .btn-secondary:hover { background: var(--stone-100); border-color: var(--accent-primary); }
  .btn-ghost:hover { background: var(--stone-100); }
  .btn-on-petrol:hover { background: var(--stone-100); }
  .btn-on-petrol.btn-secondary:hover { background: hsl(0 0% 100% / .12); }
}

/* ---- 8. Badge / Tag ---- */
.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  background: var(--stone-100);
  color: var(--text-secondary);
}

.badge-petrol { background: var(--petrol-800); color: var(--text-on-petrol); }
.badge-success { background: var(--success-100); color: var(--success-500); }
.badge-warning { background: var(--warning-100); color: var(--warning-500); }

/* ---- 9. Banner ---- */
.banner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  background: var(--petrol-50);
  color: var(--petrol-900);
  border-left: 3px solid var(--petrol-200);
}

/* ---- 10. Feature-Card (Leistungen / Team, PropertyCard-Muster) ---- */
.card {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--surface-card);
  border: var(--border-hairline);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-sm) var(--ease-out), transform var(--duration-sm) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--stone-200);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--petrol-50);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-md) var(--space-md) 0;
}

.card__body { padding: var(--space-md); }

.card__body--pad-lg { padding: var(--space-lg); }

.card__title {
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--space-2xs);
}

.card__subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.card__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: var(--border-hairline);
  padding-top: var(--space-sm);
  margin-top: var(--space-sm);
}

.card__foot-meta { font-size: var(--text-xs); color: var(--text-tertiary); }
.card__foot-value {
  font-weight: var(--weight-bold);
  font-family: var(--font-display);
  font-stretch: var(--font-stretch-display);
  color: var(--text-primary);
}

.card-inverse {
  background: var(--surface-inverse);
  border-color: transparent;
  color: var(--text-on-petrol);
}

.card-inverse .card__title,
.card-inverse h3 { color: var(--white); }

.card-inverse .text-muted,
.card-inverse .text-label,
.card-inverse p { color: var(--stone-300); }

.card-inverse .card__icon {
  background: hsl(0 0% 100% / .12);
  color: var(--white);
}

/* ---- 11. Stats-Band ---- */
.stats-band {
  background: var(--surface-inverse);
  color: var(--text-on-petrol);
  padding-block: var(--space-4xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-stretch: var(--font-stretch-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-2xl);
  color: var(--white);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-xs);
}

.stat__label { font-size: var(--text-sm); color: var(--stone-300); }

/* ---- 11b. CTA-Banner ---- */
.cta-banner {
  background: var(--surface-inverse);
  border-radius: var(--radius-3xl);
  padding: clamp(var(--space-2xl), 6vw, var(--space-4xl)) clamp(var(--space-xl), 5vw, var(--space-4xl));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, hsl(0 0% 100% / .06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner .text-label { color: var(--stone-400); margin-bottom: var(--space-sm); }
.cta-banner h2 { color: var(--white); margin-bottom: var(--space-sm); }

.cta-banner p {
  color: var(--stone-300);
  margin-bottom: var(--space-xl);
  max-width: 52ch;
  margin-inline: auto;
  font-size: var(--text-base);
}

/* ---- 12. Abschnitt-Header ---- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.section-header .text-label { margin-bottom: var(--space-sm); }
.section-header h2 { margin-bottom: var(--space-sm); }
.section-header p { color: var(--text-secondary); font-size: var(--text-base); line-height: var(--leading-relaxed); }

.section-header--split {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  text-align: left;
  max-width: none;
  margin-bottom: var(--space-xl);
}

.section-header--split h2 { margin-bottom: 0; }

.section-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--accent-primary);
  white-space: nowrap;
  transition: color var(--duration-sm) var(--ease-out);
}

/* ---- 13. Prozess-Schritte ---- */
.steps {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin-inline: auto;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  position: relative;
}

.step:last-child { padding-bottom: 0; }

.step:not(:last-child) .step__line {
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: var(--border-default);
}

.step__number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--petrol-50);
  color: var(--accent-primary);
  font-family: var(--font-display);
  font-stretch: var(--font-stretch-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step__content { padding-top: var(--space-2xs); }

.step__title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2xs);
}

.step__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ---- 14. Formulare ---- */
.form { display: flex; flex-direction: column; gap: var(--space-lg); max-width: 640px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group { display: flex; flex-direction: column; gap: 6px; width: 100%; }

#suchauftrag-felder:not([hidden]) { display: flex; flex-direction: column; gap: var(--space-md); }

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 0 var(--space-sm);
  height: 48px;
  transition: border-color var(--duration-sm) var(--ease-out), outline-color var(--duration-sm) var(--ease-out);
  outline: 3px solid transparent;
  -webkit-appearance: none;
}

.form-textarea {
  height: auto;
  padding: var(--space-sm);
  resize: vertical;
  min-height: 140px;
  line-height: var(--leading-normal);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-primary);
  outline-color: var(--petrol-100);
}

.form-helper { font-size: var(--text-xs); color: var(--text-tertiary); }

.form-radio-row { display: flex; gap: var(--space-lg); flex-wrap: wrap; }

.form-radio,
.form-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-primary);
  cursor: pointer;
}

.form-radio input,
.form-checkbox input {
  position: absolute;
  z-index: 1;
  opacity: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
}

.form-radio__mark {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--duration-sm) var(--ease-out);
}

.form-radio__mark::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  opacity: 0;
  transition: opacity var(--duration-sm) var(--ease-out);
}

.form-radio input:checked ~ .form-radio__mark {
  border-color: var(--accent-primary);
}

.form-radio input:checked ~ .form-radio__mark::after {
  opacity: 1;
}

.form-checkbox__mark {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-on-petrol);
  transition: background-color var(--duration-sm) var(--ease-out), border-color var(--duration-sm) var(--ease-out);
}

.form-checkbox__mark svg { opacity: 0; transition: opacity var(--duration-sm) var(--ease-out); }

.form-checkbox input:checked ~ .form-checkbox__mark {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.form-checkbox input:checked ~ .form-checkbox__mark svg { opacity: 1; }

.form-radio input:focus-visible ~ .form-radio__mark,
.form-checkbox input:focus-visible ~ .form-checkbox__mark {
  outline: 3px solid var(--petrol-300);
  outline-offset: 2px;
}

.form-message {
  display: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.form-message--success { background: var(--success-100); color: var(--success-500); }
.form-message--error { background: var(--error-100); color: var(--error-500); }

.form-message.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--duration-md) var(--ease-out), transform var(--duration-md) var(--ease-out);
}

@starting-style {
  .form-message.visible { opacity: 0; transform: translateY(-8px); }
}

/* ---- 15. Kontakt-Infokarte ---- */
.contact-card {
  background: var(--surface-sunken);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-item { display: flex; gap: var(--space-md); align-items: flex-start; }

.contact-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--petrol-50);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* slop_allcaps_labels */
.contact-item__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.contact-item__value { font-size: var(--text-base); color: var(--text-primary); line-height: var(--leading-snug); }

.contact-item__value a { color: var(--text-primary); transition: color var(--duration-sm) var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .contact-item__value a:hover { color: var(--accent-primary); }
}

/* ---- 16. Accordion ---- */
.accordion { border-top: var(--border-hairline); }
.accordion-item { border-bottom: var(--border-hairline); }

.accordion-btn {
  width: 100%;
  text-align: left;
  padding: var(--space-md) var(--space-2xs);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  font-family: inherit;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform var(--duration-sm) var(--ease-out);
}

.accordion-item.open .accordion-icon { transform: rotate(180deg); }

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-md) var(--ease-out);
}

.accordion-item.open .accordion-body { grid-template-rows: 1fr; }

.accordion-body__inner { overflow: hidden; }

.accordion-body p {
  padding: 0 var(--space-2xs) var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ---- 17. Divider ---- */
.divider { height: 1px; background: var(--border-subtle); margin-block: var(--space-4xl); border: none; }

/* ---- 18. Footer ---- */
.footer {
  background: var(--petrol-950);
  color: var(--stone-300);
  padding-block: var(--space-3xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__logo { display: block; color: var(--white); }
.footer__logo svg { height: 32px; width: auto; display: block; }

.footer__tagline {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--stone-400);
  max-width: 30ch;
}

/* slop_allcaps_labels */
.footer__heading {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--stone-500);
  margin-bottom: var(--space-sm);
}

.footer__links { display: flex; flex-direction: column; gap: var(--space-xs); }

.footer__link {
  font-size: var(--text-sm);
  color: var(--stone-300);
  transition: color var(--duration-sm) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .footer__link:hover { color: var(--white); }
}

.footer__social { display: flex; gap: var(--space-xs); margin-top: var(--space-xs); }

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid hsl(0 0% 100% / .15);
  color: var(--stone-300);
  transition: color var(--duration-sm) var(--ease-out), background-color var(--duration-sm) var(--ease-out);
}

.footer__social-link:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

@media (hover: hover) and (pointer: fine) {
  .footer__social-link:hover { color: var(--white); background-color: hsl(0 0% 100% / .1); }
}

.footer__bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid hsl(0 0% 100% / .1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer__copy { font-size: var(--text-xs); color: var(--stone-600); }
.footer__legal { display: flex; gap: var(--space-lg); flex-wrap: wrap; }

.footer__legal a,
.footer__legal button {
  font-size: var(--text-xs);
  color: var(--stone-500);
  transition: color var(--duration-sm) var(--ease-out);
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .footer__legal a:hover,
  .footer__legal button:hover { color: var(--stone-200); }
}

/* ---- 19. Scroll-Reveals ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

/* ---- 20. Page-Hero (Unterseiten) ---- */
.page-hero {
  padding-block: var(--space-3xl);
  background: var(--surface-sunken);
}

.page-hero .text-label { margin-bottom: var(--space-sm); }
.page-hero h1 { margin-bottom: var(--space-sm); max-width: 16ch; }

.page-hero p {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 52ch;
  line-height: var(--leading-relaxed);
}

.page-hero--image {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-4xl);
}

.page-hero__bg { position: absolute; inset: 0; z-index: 0; }

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

.page-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, hsl(157 32% 8% / .55) 0%, hsl(157 32% 8% / .78) 100%);
}

.page-hero--image .container { position: relative; z-index: 1; }
.page-hero--image .text-label { color: var(--stone-100); text-shadow: 0 1px 8px hsl(157 32% 4% / .5); }
.page-hero--image h1 { color: var(--white); text-shadow: 0 2px 16px hsl(157 32% 4% / .5); }
.page-hero--image p { color: var(--stone-100); }

/* ---- 21. Prose (Impressum / Datenschutz) ---- */
.prose { max-width: 720px; margin-inline: auto; }

.prose h2 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
}

.prose h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.prose p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.prose a { color: var(--text-link); text-decoration: underline; text-underline-offset: 3px; }

.prose ul { list-style: disc; padding-left: var(--space-lg); margin-bottom: var(--space-md); }

.prose ul li {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

/* ---- 22. Calendly-Wrapper ---- */
.calendly-wrapper {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: var(--border-hairline);
}

/* ---- 23. Main-Content Offset (nicht mehr nötig bei sticky-Nav, hier nur für Legal-Seiten mit main.main-content) ---- */
.main-content { display: block; }

/* ============================================================
   RESPONSIVE — Tablet (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .hero__team-photo { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .form-row { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  .nav__logo .logo-full { display: none; }
  .nav__logo .logo-icon { display: block; }
  .nav__logo .logo-icon svg { height: 30px; width: auto; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
  .contact-card { padding: var(--space-lg); }
  .section-header--split { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
}

/* ============================================================
   COOKIE-/CONSENT-BANNER
   ============================================================ */
.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: hsl(157 32% 8% / .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.consent-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  background: var(--surface-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  overflow: hidden;
}

/* Titel/Beschreibung/Kategorien scrollen unabhängig — die Buttons darunter
   (.consent-modal__actions) bleiben dadurch auf jeder Bildschirmgröße
   vollständig sichtbar, statt bei wenig Platz abgeschnitten zu werden. */
.consent-modal__scroll {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  overflow-y: auto;
  min-height: 0;
}

.consent-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 0;
  background: var(--stone-100);
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .consent-modal__close:hover { background: var(--stone-200); }
}

.consent-modal__title {
  font-size: var(--text-md);
  padding-right: var(--space-2xl);
  margin: 0;
}

.consent-modal__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin: 0;
}

.consent-modal__desc a { color: var(--accent-primary); }

.consent-modal__categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: var(--space-md);
}

.consent-category__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.consent-category__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.consent-category__desc {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin: var(--space-2xs) 0 0;
}

.consent-toggle {
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  border-radius: var(--radius-full);
  border: 0;
  background: var(--stone-300);
  padding: 3px;
  cursor: pointer;
  transition: background var(--duration-sm) var(--ease-out);
}

.consent-toggle__thumb {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px hsl(0 0% 0% / .2);
  transition: transform var(--duration-sm) var(--ease-out);
}

.consent-toggle.is-on { background: var(--accent-primary); }
.consent-toggle.is-on .consent-toggle__thumb { transform: translateX(18px); }

.consent-toggle--locked { cursor: default; opacity: 0.7; }

.consent-modal__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.consent-modal__actions .btn { width: 100%; }

.consent-modal__legal {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
}

.consent-modal__legal a {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

@media (hover: hover) and (pointer: fine) {
  .consent-modal__legal a:hover { color: var(--text-secondary); }
}

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

  .hero__bg-img { animation: none; transform: none; }
  .logo-draw * { transition: none !important; }
}
