/* Zymberi Gipsergeschäft + Gerüstbau GmbH – Stylesheet */

:root {
  --akzent: #2c2f34;
  --akzent-dunkel: #222428;
  --rot: #b3472f;
  --rot-dunkel: #953a25;
  --rot-leuchtend: #e5806a;
  --grau-hell: #eceef0;
  --silber: #c4c8cd;
  --silber-dunkel: #8e949b;
  --anthrazit: #2c2f34;
  --tinte: #2a2c31;
  --text: #3a3c3f;
  --text-leise: #66696e;
  --gips: #f2f3f4;
  --weiss: #ffffff;
  --linie: #dcdee1;
  --radius: 10px;
  --schatten: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .06);
  --max: 1160px;
  --font-titel: "Space Grotesk", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  /* Bewegung: kurze ease-out-Kurven (nach Emil Kowalski) */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --skizze-akzent: var(--rot);
}

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

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

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--gips);
  overflow-x: hidden;
}

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

a { color: var(--akzent); text-underline-offset: 3px; }
a:hover { color: var(--akzent-dunkel); }

h1, h2, h3, h4 {
  font-family: var(--font-titel);
  color: var(--tinte);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--akzent); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-titel);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--rot);
  margin-bottom: .8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-titel); font-weight: 700; font-size: 1rem;
  padding: .85em 1.4em;
  border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform .2s var(--ease-out); }
.btn:active { transform: scale(.97); }
@media (hover: hover) { .btn:hover svg { transform: translateX(3px); } }
.btn-primaer { background: var(--rot); color: #fff; }
.btn-primaer:hover { background: var(--rot-dunkel); color: #fff; }
.btn-dunkel { background: var(--akzent); color: #fff; }
.btn-dunkel:hover { background: var(--akzent-dunkel); color: #fff; }
.btn-rahmen { border-color: currentColor; color: #fff; background: transparent; }
.btn-rahmen:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tinte); min-width: 0; }
.brand img { width: 44px; height: 44px; flex: none; }

/* Logo-Monogramm «Z»: Diagonale = Gerüst-Strebe */
.brand-logo { width: 40px; height: 40px; flex: none; overflow: visible; }
.brand-logo path {
  fill: none; stroke-width: 3.6; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.lz-balken { stroke: var(--anthrazit); }
.lz-diagonale { stroke: var(--rot); }
@keyframes lz-zeichnen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* Einmal pro Besuch: das Z zieht sich auf (Klasse setzt das Inline-Skript im <head>) */
.logo-intro .brand-logo .lz-1 { animation: lz-zeichnen .38s var(--ease-out) .15s both; }
.logo-intro .brand-logo .lz-2 { animation: lz-zeichnen .42s var(--ease-in-out) .45s both; }
.logo-intro .brand-logo .lz-3 { animation: lz-zeichnen .38s var(--ease-out) .8s both; }
/* Beim Darüberfahren: die Strebe wird neu gesetzt, die Balken rücken kurz zusammen */
.brand-logo .lz-1, .brand-logo .lz-3 { transition: transform .3s var(--ease-out); }
@media (hover: hover) {
  .brand:hover .lz-2 { animation: lz-zeichnen .45s var(--ease-out); }
  .brand:hover .lz-1 { transform: translateY(1.5px); }
  .brand:hover .lz-3 { transform: translateY(-1.5px); }
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--font-titel); font-weight: 600; font-size: 1.3rem; letter-spacing: .12em; color: var(--akzent); }
@media (max-width: 420px) { .brand-sub.brand-sub { font-size: .55rem; letter-spacing: .05em; } }
.brand-sub { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; color: var(--text-leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border: 1px solid var(--linie); border-radius: 8px; background: #fff; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--tinte); position: relative; transition: .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.main-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--linie);
  box-shadow: var(--schatten);
  /* Handy-Menü: kurz von oben einblenden statt aufploppen */
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .15s var(--ease-out), transform .15s var(--ease-out), visibility 0s .15s;
}
.nav-open .main-nav {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s;
}
.main-nav ul { list-style: none; margin: 0; padding: 8px 16px 16px; }
.main-nav a {
  display: block; padding: 12px 4px;
  text-decoration: none; color: var(--tinte); font-weight: 600;
  border-bottom: 1px solid var(--linie);
}
.main-nav a[aria-current="page"] { color: var(--akzent); box-shadow: inset 3px 0 0 var(--akzent); padding-left: 12px; }
.main-nav .nav-cta { margin-top: 12px; border: 0; justify-content: center; display: flex; color: #fff; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .main-nav { position: static; background: none; border: 0; box-shadow: none; visibility: visible; opacity: 1; transform: none; transition: none; }
  .main-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
  .main-nav a { border: 0; padding: 8px 14px; border-radius: 6px; font-size: .97rem; }
  .main-nav a:hover { background: var(--grau-hell); }
  .main-nav a[aria-current="page"] { background: var(--grau-hell); box-shadow: none; padding-left: 14px; }
  .main-nav .nav-cta { margin: 0 0 0 10px; padding: .65em 1.2em; }
  .main-nav .nav-cta:hover { background: var(--rot-dunkel); color: #fff; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: #1b549a;
  color: #eef3f9;
  padding: 72px 0 88px;
}
.hero::before {
  /* Gerüst-Linienmuster + feines Korn */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E"),
    linear-gradient(90deg, rgba(255,255,255,.07) 2px, transparent 2px),
    linear-gradient(0deg, rgba(255,255,255,.07) 2px, transparent 2px),
    linear-gradient(35deg, transparent 49.4%, rgba(255,255,255,.05) 49.4%, rgba(255,255,255,.05) 50.6%, transparent 50.6%);
  background-size: 180px 180px, 120px 90px, 120px 90px, 120px 90px;
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.35) 20%, #000 85%);
          mask-image: linear-gradient(100deg, rgba(0,0,0,.35) 20%, #000 85%);
}
.hero::after {
  /* Weicher Farbschimmer (ersetzt den WebGL-Verlauf): nur transform wird animiert */
  content: ""; position: absolute; inset: -35%; z-index: 0;
  background:
    radial-gradient(38% 34% at 72% 30%, rgba(120, 180, 240, .30), transparent 70%),
    radial-gradient(34% 40% at 22% 78%, rgba(255, 255, 255, .12), transparent 70%),
    radial-gradient(26% 28% at 88% 82%, rgba(70, 140, 220, .30), transparent 70%),
    radial-gradient(30% 30% at 40% 20%, rgba(255, 255, 255, .05), transparent 70%);
  animation: hero-schimmer 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes hero-schimmer {
  from { transform: translate3d(-5%, -3%, 0) rotate(-4deg) scale(1); }
  to   { transform: translate3d(5%, 4%, 0) rotate(6deg) scale(1.08); }
}
.page-hero::after { animation-duration: 30s; }

/* Baustellen-Szene auf der Startseite (assets/js/baustelle.js)
   Blauer Himmel, der sich mit den Jahreszeiten ändert. Standard = Sommer. */
.hero-start {
  --himmel-oben: #1b5db3;
  --himmel-unten: #6db2ee;
  padding-bottom: 0;
  background: linear-gradient(180deg, var(--himmel-oben) 0%, var(--himmel-oben) 30%, var(--himmel-unten) 100%);
}
.hero-start::before {
  /* Leichter Schatten links, damit der weisse Text auf jedem Himmel gut lesbar bleibt */
  background: linear-gradient(90deg, rgba(8, 28, 58, .45) 0%, rgba(8, 28, 58, .22) 42%, transparent 70%);
  -webkit-mask-image: none; mask-image: none;
  opacity: 1;
}
.hero-start::after { display: none; }
.hero-start .eyebrow { color: #ffd9a8; }
.hero-start .hero-facts svg { color: #ffd9a8; }
.baustelle { position: relative; margin: 28px -16px 0; aspect-ratio: 580 / 440; }
/* Auf dem Handy zeigt der Ausschnitt nur Haus, Bus und Kran (rechter Teil der Szene) */
.baustelle-svg { display: block; width: 100%; height: 100%; }
.jahreszeit {
  position: absolute; top: 12px; right: 16px;
  font: 600 .78rem/1 var(--font-titel); letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px; padding: 7px 12px;
  backdrop-filter: blur(4px);
}
/* Fallendes Laub und Schnee (nur sichtbar in Herbst bzw. Winter) */
.bs-blatt { animation: bs-laub 4s linear infinite; transform-box: fill-box; transform-origin: center; }
.bs-flocke { animation: bs-schnee 5s linear infinite; }
@keyframes bs-laub {
  from { translate: -10px -40px; rotate: 0deg; opacity: 0; }
  15% { opacity: 1; }
  to { translate: -40px 70px; rotate: 300deg; opacity: 0; }
}
@keyframes bs-schnee {
  from { translate: 0 -40px; opacity: 0; }
  15% { opacity: 1; }
  to { translate: 10px 60px; opacity: 0; }
}
.szene-pausiert .bs-blatt, .szene-pausiert .bs-flocke { animation-play-state: paused; }
@media (min-width: 720px) { .baustelle { margin: 32px -32px 0; aspect-ratio: auto; height: clamp(340px, 52vw, 460px); } }
@media (min-width: 1180px) {
  .hero-start { min-height: clamp(640px, 82vh, 820px); }
  .hero-start .container { padding-bottom: 170px; }
  .hero-start .container > :not(.baustelle) { max-width: 520px; }
  .hero-start .hero-lead { max-width: 46ch; }
  .baustelle {
    position: absolute; z-index: -1; margin: 0;
    left: calc(-1 * (100vw - 100%) / 2); right: calc(-1 * (100vw - 100%) / 2);
    bottom: 0; height: clamp(420px, 36vw, 560px);
  }
  .jahreszeit { top: 20px; right: max(32px, calc((100vw - 1160px) / 2 + 32px)); }
}
@media (prefers-reduced-motion: reduce) {
  .bs-blatt, .bs-flocke { animation: none; }
  .jahreszeit { display: none; }
}
/* Vanta-Nebel (assets/js/hintergrund.js): blendet weich ein, der CSS-Schimmer weicht */
.hero .vanta-canvas { animation: vanta-ein 1.2s var(--ease-out) both; }
@keyframes vanta-ein { from { opacity: 0; } to { opacity: 1; } }
.hero::after { transition: opacity 1.2s var(--ease-out); }
.hero.vanta-aktiv::after { opacity: 0; }
.hero.vanta-aktiv::before { opacity: .55; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: #fff; }
.hero .eyebrow { color: var(--rot-leuchtend); }
.hero-lead { font-size: 1.15rem; max-width: 56ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin: 2.5rem 0 0; padding: 0; list-style: none; font-size: .95rem;
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 20px; height: 20px; color: var(--rot-leuchtend); flex: none; }

.page-hero { padding: 56px 0 60px; }
.page-hero h1 { max-width: 22ch; font-size: clamp(2rem, 4.5vw, 3rem); }

/* ---------- Sektionen ---------- */
.section { padding: 72px 0; }
.section-weiss { background: #fff; }
.section-kopf { max-width: 680px; margin-bottom: 40px; }
.section-kopf p { color: var(--text-leise); font-size: 1.08rem; }

/* Putz-Struktur als Fläche */
.putz {
  background-color: var(--gips);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.38 0 0 0 0 0.33 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Karten ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.karte {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--schatten);
  display: flex; flex-direction: column;
}
.karte p { color: var(--text-leise); margin-bottom: 0; }
/* Skizzen-Feld: Millimeterpapier-Raster, darauf die technische Zeichnung */
.karte .icon, .leistung .icon {
  width: 84px; height: 84px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--anthrazit);
  background-color: #f6f7f8;
  background-image:
    linear-gradient(rgba(44, 47, 52, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 47, 52, .07) 1px, transparent 1px);
  background-size: 7px 7px;
  background-position: -1px -1px;
  border: 1px solid var(--linie);
  margin-bottom: 20px;
}
.karte .icon svg, .leistung .icon svg { width: 58px; height: 58px; }
/* Selbst-Zeichnen: Strichlänge 1 (pathLength) – Offset 1 = unsichtbar, 0 = fertig */
.js-anim .skizze { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js-anim .skizze.gezeichnet { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-out); }
.karte ul.liste { margin-top: 14px; }
.karte-link { margin-top: auto; padding-top: 18px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.karte-link svg { width: 18px; height: 18px; transition: transform .2s; }
.karte-link:hover svg { transform: translateX(3px); }

ul.liste { list-style: none; padding: 0; margin: 0; }
ul.liste li { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; color: var(--text); }
ul.liste svg { width: 20px; height: 20px; color: var(--rot); flex: none; margin-top: 3px; }

/* Band «Gross bis klein» */
.band {
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 860px) { .band { grid-template-columns: 1fr 1fr; gap: 56px; } }
.skala {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--schatten);
}
.skala-zeile { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--linie); }
.skala-zeile:last-child { border-bottom: 0; }
.skala-zeile span:last-child { color: var(--text-leise); text-align: right; font-size: .95rem; }
.skala-zeile strong { color: var(--tinte); font-family: var(--font-titel); }
.skala-balken { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--rot), var(--silber)); margin-bottom: 8px; }
.skala-legende { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-leise); margin-bottom: 8px; }

.hinweis {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--grau-hell); border-left: 4px solid var(--rot);
  padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 28px;
}
.hinweis svg { width: 24px; height: 24px; color: var(--akzent); flex: none; margin-top: 2px; }
.hinweis p { margin: 0; color: var(--tinte); }

/* Ablauf */
.schritte { counter-reset: schritt; display: grid; gap: 20px; }
@media (min-width: 760px) { .schritte { grid-template-columns: repeat(4, 1fr); } }
.schritt { position: relative; padding-top: 56px; }
.schritt::before {
  counter-increment: schritt; content: counter(schritt);
  position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-titel); font-weight: 700;
  background: var(--akzent); color: #fff;
}
.schritt p { color: var(--text-leise); margin: 0; }

/* Regionen */
.regionen { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.regionen li {
  background: #fff; border: 1px solid var(--linie); border-radius: 999px;
  padding: 6px 14px; font-size: .93rem; color: var(--tinte);
}
.regionen li.haupt { background: var(--rot); color: #fff; border-color: var(--rot); font-weight: 600; }

/* Kantone (Einsatzgebiet) */
.kantone { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.kantone li {
  position: relative;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 18px 18px 16px; box-shadow: var(--schatten);
}
.kantone .kuerzel {
  display: block; font-family: var(--font-titel); font-weight: 700;
  font-size: 2rem; line-height: 1; letter-spacing: .02em; color: var(--anthrazit);
  margin-bottom: 8px;
}
.kantone strong { display: block; color: var(--tinte); font-family: var(--font-titel); font-weight: 600; }
.kantone small { color: var(--text-leise); font-size: .85rem; }
.kantone li.sitz { border-color: rgba(179, 71, 47, .5); }
.kantone li.sitz .kuerzel { color: var(--rot); }

/* Kennzahlen */
.zahlen { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin: 28px 0 0; padding: 0; list-style: none; }
.zahlen li { border-top: 2px solid var(--anthrazit); padding-top: 12px; }
.zahlen .zahl { display: block; font-family: var(--font-titel); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1; color: var(--tinte); font-variant-numeric: tabular-nums; }
.zahlen .zahl em { font-style: normal; color: var(--rot); }
.zahlen small { display: block; margin-top: 6px; color: var(--text-leise); font-size: .88rem; line-height: 1.35; }

/* Team */
.team-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.team-karte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--schatten); margin: 0;
}
.team-foto {
  aspect-ratio: 4 / 5; display: grid; place-items: center;
  color: var(--silber-dunkel);
  background-color: #f6f7f8;
  background-image:
    linear-gradient(rgba(44, 47, 52, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 47, 52, .06) 1px, transparent 1px);
  background-size: 10px 10px;
}
.team-foto svg { width: 46%; height: auto; }
.team-foto img { width: 100%; height: 100%; object-fit: cover; }
.team-karte figcaption { padding: 16px 18px 18px; }
.team-karte strong { display: block; font-family: var(--font-titel); color: var(--tinte); font-size: 1.1rem; }
.team-karte span { color: var(--text-leise); font-size: .93rem; }
.team-karte.platzhalter strong { color: var(--text-leise); }

/* CTA-Box */
.cta {
  background: var(--anthrazit); color: #d4d6d9;
  border-radius: 14px; padding: 44px 28px;
  display: grid; gap: 24px; align-items: center;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  border: 22px solid rgba(255,255,255,.08);
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; }
.cta .btn { justify-self: start; position: relative; z-index: 1; }
@media (min-width: 860px) { .cta { grid-template-columns: 1fr auto; padding: 52px 56px; } }

/* Leistungen-Detail */
.leistung {
  display: grid; gap: 20px;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 32px 26px; box-shadow: var(--schatten);
  scroll-margin-top: 16px;
}
.leistung + .leistung { margin-top: 20px; }
@media (min-width: 860px) { .leistung { grid-template-columns: 96px 1.2fr 1fr; gap: 32px; padding: 40px; } }
.leistung .icon { width: 96px; height: 96px; margin: 0; }
.leistung .icon svg { width: 66px; height: 66px; }
.leistung p { color: var(--text-leise); }
.leistung p:last-child { margin-bottom: 0; }

.sprung { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.sprung a {
  color: #fff; text-decoration: none; font-size: .93rem;
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 14px;
}
.sprung a:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Über uns */
.zitat {
  font-family: var(--font-titel); font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 600; line-height: 1.4; color: var(--tinte);
  border-left: 4px solid var(--rot); padding-left: 22px; margin: 0 0 1rem;
}
.zitat-name { color: var(--text-leise); padding-left: 26px; }
.zeitleiste { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--linie); }
.zeitleiste li { position: relative; padding: 0 0 26px 26px; }
.zeitleiste li::before {
  content: ""; position: absolute; left: -8px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--akzent); border: 3px solid var(--gips);
}
.zeitleiste strong { display: block; font-family: var(--font-titel); color: var(--tinte); }

/* ---------- Kontakt / Formular ---------- */
.kontakt-layout { display: grid; gap: 28px; }
@media (min-width: 960px) { .kontakt-layout { grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; } }

.formular { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--schatten); }
@media (min-width: 640px) { .formular { padding: 36px; } }
.feld-reihe { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .feld-reihe { grid-template-columns: 1fr 1fr; } }
.feld { margin-bottom: 18px; }
.feld label { display: block; font-weight: 600; color: var(--tinte); margin-bottom: 6px; font-size: .95rem; }
.feld label .opt { font-weight: 400; color: var(--text-leise); }
.feld input, .feld select, .feld textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--tinte);
  padding: 12px 14px; border: 1.5px solid #c9ccd0; border-radius: 8px; background: #fff;
}
.feld textarea { min-height: 150px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--rot); box-shadow: 0 0 0 3px rgba(179, 71, 47, .18); }
.feld.fehler input, .feld.fehler select, .feld.fehler textarea { border-color: #c0392b; }
.feld-fehler { display: none; color: #b03a2e; font-size: .88rem; margin-top: 5px; }
.feld.fehler .feld-fehler { display: block; }
.feld-check { display: flex; gap: 10px; align-items: flex-start; }
.feld-check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--akzent); }
.feld-check label { font-weight: 400; color: var(--text); margin: 0; }
.honig { position: absolute; left: -9999px; }
.formular-status { margin-top: 16px; padding: 14px 16px; border-radius: 8px; display: none; }
.formular-status.ok { display: block; background: #e6f4ea; color: #1e5631; }
.formular-status.fehler { display: block; background: #fdecea; color: #8a2a20; }

.infobox { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 26px; box-shadow: var(--schatten); }
.infobox + .infobox { margin-top: 20px; }
.info-zeile { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.info-zeile svg { width: 22px; height: 22px; color: var(--akzent); flex: none; margin-top: 3px; }
.info-zeile a { word-break: break-word; }

/* Rechtstexte */
.rechtstext { max-width: 760px; }
.rechtstext h2 { font-size: 1.35rem; margin-top: 2em; }
.rechtstext .platzhalter { background: #fff4d6; padding: 0 4px; border-radius: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--tinte); color: #b2b5b9; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #e8e9eb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand strong { color: #fff; font-family: var(--font-titel); font-size: 1.05rem; line-height: 1.25; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.footer-unten {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .87rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   Animationen & Micro-Interaktionen (gehört zu assets/js/animationen.js)
   Grundsätze: kurz (0.15–0.5 s), ease-out, nur transform/opacity,
   keine Bewegung bei Dingen, die man oft benutzt.
   ========================================================= */

html { scroll-padding-top: 88px; }
html.lenis { scroll-behavior: auto; }

/* Hero-Inhalt erst zeigen, wenn die Einstiegs-Animation bereit ist */
.js-anim:not(.anim-bereit) .hero .container { visibility: hidden; }

/* «Fuge» unter dem hervorgehobenen Wort */
.hero h1 em { position: relative; --fuge: 1; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em;
  height: .07em; border-radius: .05em;
  background: var(--rot-leuchtend);
  transform: scaleX(var(--fuge)); transform-origin: left center;
}
.hero h1 .zeile { padding-bottom: .04em; }

/* ---------- Header beim Scrollen ---------- */
.site-header { transition: box-shadow .3s var(--ease-out); }
.site-header.ist-gescrollt { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.scroll-fortschritt {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--rot);
  transform: scaleX(0); transform-origin: left center;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn-primaer:hover { box-shadow: 0 8px 20px -10px rgba(149, 58, 37, .55); }

/* ---------- Karten: ruhiges Anheben, nur mit Maus ---------- */
.karte, .leistung, .infobox, .skala, .kantone li, .team-karte {
  transition: border-color .2s var(--ease-out), box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
@media (hover: hover) {
  .karte:hover, .team-karte:hover {
    transform: translateY(-3px);
    border-color: rgba(179, 71, 47, .35);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 16px 32px -14px rgba(0, 0, 0, .2);
  }
  .leistung:hover, .infobox:hover, .kantone li:hover { border-color: rgba(179, 71, 47, .35); }
  .karte .icon, .leistung .icon { transition: border-color .2s var(--ease-out); }
  .karte:hover .icon, .leistung:hover .icon { border-color: rgba(179, 71, 47, .4); }
  .karte-link:hover svg { transform: translateX(3px); }
  .schritt:hover::before { background: var(--rot); }
}
.karte-link svg { transition: transform .2s var(--ease-out); }

/* ---------- Ablauf: Linie zwischen den Schritten ---------- */
.schritte { position: relative; }
.schritt::before { z-index: 1; transition: background .2s var(--ease-out); }
.schritte-linie { display: none; }
@media (min-width: 760px) {
  .schritte-linie {
    display: block; position: absolute; z-index: 0;
    top: 20px; height: 2px;
    left: 21px; right: calc((100% - 60px) / 4 - 21px);
    background: linear-gradient(90deg, var(--akzent), var(--rot));
    transform-origin: left center;
  }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  .js-anim:not(.anim-bereit) .hero .container { visibility: visible; }
  .hero::after { animation: none; }
  .js-anim .skizze { stroke-dashoffset: 0; }
  .logo-intro .brand-logo path, .brand:hover .lz-2 { animation: none; }
  .brand:hover .lz-1, .brand:hover .lz-3, .karte:hover, .team-karte:hover, .btn:active { transform: none; }
}

/* Wortgruppen, die im Titel nicht getrennt werden sollen (z. B. Ortsnamen) */
.zusammen { white-space: nowrap; }
