/* Gala-Forst Löher – Stylesheet
   1:1-Nachbau der bisherigen WordPress-Seite (Stand 25.11.2026) mit eigenem Code.
   Maße, Farben und Schriftgrößen sind an der Originalseite ausgemessen. */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --gruen: #0b4d06;
  --gruen-hell: #14810c;
  --verlauf: linear-gradient(180deg, #0b4d06, #14810c);
  --verlauf-blau: linear-gradient(135deg, #0664aa, #000066);
  --hintergrund: #2b5735;
  --grau: #f5f5f5;
  --linie: #e8e8e8;
  --text: #333333;
  --kopf-oben: 40px;
  --kopf-mitte: 100px;
  --kopf: calc(var(--kopf-oben) + var(--kopf-mitte));
  --abstand: 5vmax;
  /* Abstandshalter wie im Original: klein, mittel, groß (ab 1024 px Breite abwärts kleiner) */
  --klein: 1.5rem;
  --mittel: 3rem;
  --gross: 4.5rem;
  --titel: "Poppins", "Segoe UI", Arial, sans-serif;
  --schrift: "Open Sans", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--kopf);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 25px;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--titel);
  font-weight: 400;
}
p {
  margin: 0 0 1.5rem;
}
p:last-child {
  margin-bottom: 0;
}
ul {
  margin: 0;
  padding: 0;
}
a {
  color: var(--gruen-hell);
  text-decoration: none;
}
a:hover {
  color: var(--gruen);
}
:focus-visible {
  outline: 2px solid var(--gruen-hell);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--gruen);
  color: #fff;
}
.skip:focus {
  top: 0.5rem;
  color: #fff;
}

/* Überschriften mit grünem Verlauf in der Schrift */
.verlauf {
  background: var(--verlauf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- Seite (weißer Kasten auf grünem Grund) ---------- */
.seite {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
}
.innen {
  box-sizing: content-box;
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 2.5rem;
}

/* ---------- Schaltflächen ---------- */
.btn {
  position: relative;
  display: inline-block;
  padding: 0.9em 1.8em;
  border: 0;
  border-radius: 0.3em;
  background: var(--verlauf);
  color: #fff;
  font-family: var(--schrift);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  vertical-align: top;
  cursor: pointer;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--verlauf-blau);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn > span {
  position: relative;
  z-index: 1;
}
.btn:hover {
  color: #fff;
}
.btn:hover::after {
  opacity: 1;
}
.btn--weiss {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.8em;
  background: #fff;
  box-shadow: 0 0 0 3px #fff inset;
  color: var(--text);
  font-size: 19.2px;
  font-weight: 700;
  transition: background-color 0.3s, color 0.3s;
}
.btn--weiss::after {
  display: none;
}
.btn--weiss svg {
  width: 1em;
  height: 1em;
}
.btn--weiss:hover {
  background: transparent;
  color: #fff;
}

/* ---------- Kopfzeile ---------- */
.kopf {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  max-width: 1240px;
  margin: 0 auto;
}
.kopf__oben {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--kopf-oben);
  padding-inline: 24px;
  background: linear-gradient(0deg, #f5f5f5, #fff);
}
.kopf__oben a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}
.kopf__oben a:hover {
  color: var(--gruen-hell);
}
.kopf__oben svg {
  width: 16px;
  height: 16px;
}
.kopf__links {
  display: flex;
  align-items: center;
  gap: 23px;
}
.kopf__linkedin {
  justify-content: center;
  width: 32px;
  height: 32px;
}
.kopf__oben .kopf__linkedin,
.kopf__oben .kopf__linkedin:hover {
  color: #0077b5;
}
.kopf__mitte {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--kopf-mitte);
  padding-inline: 24px;
  background: #fff;
  box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.1), 0 2px 1px -1px rgba(0, 0, 0, 0.05);
}
.kopf__logo {
  display: block;
  flex: 0 0 auto;
}
.kopf__logo img {
  width: auto;
  height: 70px;
}
.nav {
  align-self: stretch;
}
.nav__liste {
  display: flex;
  height: 100%;
  list-style: none;
}
.nav__liste > li {
  position: relative;
}
.nav__liste > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 15px;
  color: var(--text);
  transition: background-color 0.3s, color 0.3s;
}
.nav__liste > li > a svg {
  width: 12px;
  height: 8px;
}
.nav__liste > li > a.ist-aktiv,
.nav__unter a.ist-aktiv {
  background: var(--grau);
  color: var(--gruen);
}
@media (hover: hover) {
  .nav__liste > li:hover > a {
    background: var(--grau);
    color: var(--gruen);
  }
}
.nav__unter {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 120;
  min-width: 12rem;
  list-style: none;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.3s cubic-bezier(0, 1, 0.8, 1);
}
.nav__liste > li:hover .nav__unter,
.nav__liste > li:focus-within .nav__unter {
  transform: scaleY(1);
}
.nav__unter a {
  display: block;
  padding: 0.6em 20px;
  color: var(--text);
  line-height: 24px;
  transition: background-color 0.3s, color 0.3s;
}
.nav__unter a:hover {
  background: var(--grau);
  color: var(--gruen);
}
.nav__knopf {
  display: none;
}

/* ---------- Startbild ----------
   Nachbau des bisherigen Sliders: vier Größenstufen mit je eigener Bühne
   (1240x700, 1024x700, 778x500, 480x500), die mit der Seitenbreite mitwächst.
   Alle Maße unten sind Bühnen-Pixel und werden mit --u multipliziert.
   Ablauf: Foto blendet ein und fährt langsam heran, die vier Zeilen erscheinen
   nacheinander, dann fallen die sieben Figuren von oben ein. Nach 15 Sekunden
   beginnt der Ablauf von vorn – so wie auf der alten Seite. */
.start {
  padding-top: var(--kopf);
  background: #fff;
  container: start / inline-size;
}
.start__rahmen {
  --u: min(1px, 100cqw / 1240);
  --H: 700;
  --k: 1;
  --dy: 50;
  position: relative;
  height: calc(var(--H) * var(--u));
  overflow: hidden;
  background: #fff;
}
.start__bild,
.start__bild img,
.start__handy,
.start__schleier {
  position: absolute;
}
.start__bild {
  inset: 0;
}
.start__bild img {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 0% 50%;
}
/* unteres Bild: Endzustand der Kamerafahrt, damit der Neustart weich überblendet */
.start__bild img:first-child {
  opacity: 0;
  transform: scale(1.15);
  animation: einblenden 0.01s linear 2s both;
}
.start__bild img:last-child {
  animation: bild-blende 15s linear infinite, bild-fahrt 15s linear infinite;
}
/* Handy-Stufe: eigener Bildausschnitt mit leichter Abdunklung (wie im Original) */
.start__handy,
.start__schleier {
  display: none;
}
.start__titel {
  margin: 0;
  color: #fff;
  font-family: var(--titel);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
}
.start__zeile {
  position: absolute;
  left: calc(50% + var(--x, 0) * var(--u));
  top: calc(var(--y) * var(--u));
  transform: translateX(-50%);
  font-size: calc(var(--fs) * var(--u));
  line-height: calc(var(--lh) * var(--u));
  font-weight: var(--fw, 400);
  text-align: center;
  white-space: nowrap;
}
.start__zeile--1 { --y: 61; --fs: 42; --lh: 42; --fw: 600; }
.start__zeile--2 { --y: 135; --fs: 36; --lh: 36; }
.start__zeile--3 { --y: 195; --fs: 112; --lh: 112; --fw: 600; }
.start__zeile--4 { --x: -1; --y: 343; --fs: 36; --lh: 36; }
.start__figur {
  position: absolute;
  left: calc(50% + (var(--x) - var(--w) / 2) * var(--k) * var(--u));
  top: calc(var(--y) * var(--k) * var(--u));
  z-index: var(--z);
  width: calc(var(--w) * var(--k) * var(--u));
  max-width: none;
  height: auto;
}
.start__figur:nth-child(1) { --w: 161; --x: 0; --y: 478; --z: 13; }
.start__figur:nth-child(2) { --w: 126; --x: -127; --y: 511; --z: 12; }
.start__figur:nth-child(3) { --w: 126; --x: 112; --y: 512; --z: 7; }
.start__figur:nth-child(4) { --w: 89; --x: -68; --y: 542; --z: 11; }
.start__figur:nth-child(5) { --w: 89; --x: 51; --y: 545; --z: 10; }
.start__figur:nth-child(6) { --w: 89; --x: 183; --y: 544; --z: 9; }
.start__figur:nth-child(7) { --w: 89; --x: -205; --y: 546; --z: 8; }

/* Stufe 1024: Bühne 1024 x 700 */
@container start (max-width: 1023.98px) {
  .start__rahmen { --u: calc(100cqw / 1024); --k: 0.8258; }
  .start__zeile--1 { --x: 0; --y: 56; --fs: 45; --lh: 45; }
  .start__zeile--2 { --x: 1; --y: 131; --fs: 37; --lh: 37; }
  .start__zeile--3 { --x: 0; --y: 186; --fs: 92.5; --lh: 92.5; }
  .start__zeile--4 { --x: 1; --y: 299; --fs: 29.7; --lh: 29.7; }
}
/* Stufe 778: Bühne 778 x 500 */
@container start (max-width: 777.98px) {
  .start__rahmen { --u: calc(100cqw / 778); --H: 500; --k: 0.6274; }
  .start__zeile--1 { --x: 4; --y: 50; --fs: 29; --lh: 25; }
  .start__zeile--2 { --x: -5; --y: 106; --fs: 29; --lh: 25; }
  .start__zeile--3 { --x: -10; --y: 145; --fs: 60; --lh: 52; }
  .start__zeile--4 { --x: 7; --y: 228; --fs: 28; --lh: 24; }
}
/* Stufe 480 (Handy): Bühne 480 x 500, eigener Bildausschnitt, Figuren neu gesetzt */
@container start (max-width: 479.98px) {
  .start__rahmen { --u: calc(100cqw / 480); --k: 1; --dy: 19; }
  .start__zeile--1 { --x: -3; --y: 38; --fs: 30; --lh: 32; }
  .start__zeile--2 { --x: 0; --y: 95; --fs: 39; --lh: 41; }
  .start__zeile--3 { --x: 0; --y: 156; --fs: 85; --lh: 89; }
  .start__zeile--4 { --x: -3; --y: 273; --fs: 27; --lh: 29; }
  .start__handy {
    display: block;
    left: calc(-432 * var(--u));
    top: calc(-31 * var(--u));
    width: calc(1009 * var(--u));
    max-width: none;
    height: calc(564 * var(--u));
    animation: handy-blende 15s linear infinite;
  }
  .start__schleier {
    display: block;
    inset: 0;
    background: rgba(0, 0, 0, 0.17);
    animation: handy-blende 15s linear infinite;
  }
  .start__figur:nth-child(1) { --w: 105; --x: -2; --y: 378; }
  .start__figur:nth-child(2) { --w: 35; --x: -105; --y: 420; }
  .start__figur:nth-child(3) { --w: 48.8; --x: 54; --y: 416; }
  .start__figur:nth-child(4) { --w: 34.5; --x: -35; --y: 421; }
  .start__figur:nth-child(5) { --w: 34.5; --x: 86; --y: 418; }
  .start__figur:nth-child(6) { --w: 34.5; --x: 28; --y: 419; }
  .start__figur:nth-child(7) { --w: 46; --x: -57; --y: 424; }
}

@keyframes einblenden {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes von-oben {
  from { opacity: 0; transform: translateY(calc(var(--dy) * var(--k) * var(--u) * -1)); }
  to { opacity: 1; transform: none; }
}
@keyframes bild-blende {
  0% { opacity: 0; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  6.6667%, 100% { opacity: 1; }
}
@keyframes bild-fahrt {
  0%, 2% { transform: scale(1); }
  68.6667%, 100% { transform: scale(1.15); }
}
@keyframes handy-blende {
  0% { opacity: 0; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); }
  4%, 100% { opacity: 1; }
}
@keyframes zeile-1 {
  0% { opacity: 1; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  2% { opacity: 0; }
  7.2% { opacity: 0; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); }
  17.2%, 100% { opacity: 1; }
}
.start__zeile--1 {
  animation: einblenden 1.5s cubic-bezier(0.76, 0, 0.24, 1) 1.08s both, zeile-1 15s linear 15s infinite;
}
@keyframes zeile-2 {
  0% { opacity: 1; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  2% { opacity: 0; }
  10% { opacity: 0; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); }
  20%, 100% { opacity: 1; }
}
.start__zeile--2 {
  animation: einblenden 1.5s cubic-bezier(0.76, 0, 0.24, 1) 1.5s both, zeile-2 15s linear 15s infinite;
}
@keyframes zeile-3 {
  0% { opacity: 1; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  2% { opacity: 0; }
  12.7333% { opacity: 0; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); }
  22.7333%, 100% { opacity: 1; }
}
.start__zeile--3 {
  animation: einblenden 1.5s cubic-bezier(0.76, 0, 0.24, 1) 1.91s both, zeile-3 15s linear 15s infinite;
}
@keyframes zeile-4 {
  0% { opacity: 1; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  2% { opacity: 0; }
  17.1333% { opacity: 0; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); }
  27.1333%, 100% { opacity: 1; }
}
.start__zeile--4 {
  animation: einblenden 1.5s cubic-bezier(0.76, 0, 0.24, 1) 2.57s both, zeile-4 15s linear 15s infinite;
}
@keyframes figur-1 {
  0% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  2% { opacity: 0; transform: none; animation-timing-function: step-end; }
  28.4% { opacity: 0; transform: translateY(calc(var(--dy) * var(--k) * var(--u) * -1)); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  32.4%, 100% { opacity: 1; transform: none; }
}
.start__figur:nth-child(1) {
  animation: von-oben 0.6s cubic-bezier(0.65, 0, 0.35, 1) 4.26s both, figur-1 15s linear 15s infinite;
}
@keyframes figur-2 {
  0% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  2% { opacity: 0; transform: none; animation-timing-function: step-end; }
  30.5333% { opacity: 0; transform: translateY(calc(var(--dy) * var(--k) * var(--u) * -1)); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  34.5333%, 100% { opacity: 1; transform: none; }
}
.start__figur:nth-child(2) {
  animation: von-oben 0.6s cubic-bezier(0.65, 0, 0.35, 1) 4.58s both, figur-2 15s linear 15s infinite;
}
@keyframes figur-3 {
  0% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  2% { opacity: 0; transform: none; animation-timing-function: step-end; }
  32.5333% { opacity: 0; transform: translateY(calc(var(--dy) * var(--k) * var(--u) * -1)); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  36.5333%, 100% { opacity: 1; transform: none; }
}
.start__figur:nth-child(3) {
  animation: von-oben 0.6s cubic-bezier(0.65, 0, 0.35, 1) 4.88s both, figur-3 15s linear 15s infinite;
}
@keyframes figur-4 {
  0% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  2% { opacity: 0; transform: none; animation-timing-function: step-end; }
  34.4% { opacity: 0; transform: translateY(calc(var(--dy) * var(--k) * var(--u) * -1)); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  38.4%, 100% { opacity: 1; transform: none; }
}
.start__figur:nth-child(4) {
  animation: von-oben 0.6s cubic-bezier(0.65, 0, 0.35, 1) 5.16s both, figur-4 15s linear 15s infinite;
}
@keyframes figur-5 {
  0% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  2% { opacity: 0; transform: none; animation-timing-function: step-end; }
  36.5333% { opacity: 0; transform: translateY(calc(var(--dy) * var(--k) * var(--u) * -1)); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  40.5333%, 100% { opacity: 1; transform: none; }
}
.start__figur:nth-child(5) {
  animation: von-oben 0.6s cubic-bezier(0.65, 0, 0.35, 1) 5.48s both, figur-5 15s linear 15s infinite;
}
@keyframes figur-6 {
  0% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  2% { opacity: 0; transform: none; animation-timing-function: step-end; }
  38.4% { opacity: 0; transform: translateY(calc(var(--dy) * var(--k) * var(--u) * -1)); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  42.4%, 100% { opacity: 1; transform: none; }
}
.start__figur:nth-child(6) {
  animation: von-oben 0.6s cubic-bezier(0.65, 0, 0.35, 1) 5.76s both, figur-6 15s linear 15s infinite;
}
@keyframes figur-7 {
  0% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  2% { opacity: 0; transform: none; animation-timing-function: step-end; }
  40.5333% { opacity: 0; transform: translateY(calc(var(--dy) * var(--k) * var(--u) * -1)); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  44.5333%, 100% { opacity: 1; transform: none; }
}
.start__figur:nth-child(7) {
  animation: von-oben 0.6s cubic-bezier(0.65, 0, 0.35, 1) 6.08s both, figur-7 15s linear 15s infinite;
}

/* ---------- Abschnitte mit Text in der Mitte ---------- */
.abschnitt {
  padding-block: var(--abstand);
}
.abschnitt__titel {
  margin-bottom: calc(1.5rem + var(--klein));
  font-size: 32px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-align: center;
}
.abschnitt--mitte {
  text-align: center;
}
.abschnitt--mitte p:last-of-type {
  margin-bottom: 0;
}
.abschnitt--mitte .btn {
  margin: calc(var(--mittel) + 0.3rem) 0 0.3rem;
}

/* ---------- Leistungen: Text und Fotoschau je zur Hälfte ---------- */
.kapitel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.kapitel--grau {
  background: var(--grau);
}
.kapitel__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 50px;
}
.kapitel__kopf {
  width: 100%;
  margin-bottom: var(--klein);
}
.kapitel__text > .btn {
  margin: 0.3rem 0;
}
.kapitel__kopf h2 {
  margin-bottom: 1.5rem;
  font-size: 40px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.kapitel__kopf h2:last-child {
  margin-bottom: 0;
}
.kapitel__kopf p {
  margin: 0;
}
.kapitel__listen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  width: 100%;
  margin-bottom: var(--klein);
}
.liste {
  margin-left: 2.5rem;
  list-style: disc;
}
.liste li {
  margin-bottom: 0.5rem;
}
.liste li:last-child {
  margin-bottom: 0;
}
.kapitel--gespiegelt .kapitel__text {
  order: 2;
}

/* Text fährt beim Scrollen von der Seite herein (im Original "afl" / "afr") */
@keyframes von-links {
  from {
    opacity: 0;
    transform: translateX(-5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes von-rechts {
  from {
    opacity: 0;
    transform: translateX(5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fx .anim {
  opacity: 0;
}
.fx .anim.ist-da {
  animation: von-links 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}
.fx .kapitel--gespiegelt .anim.ist-da {
  animation-name: von-rechts;
}
.fx .anim--2.ist-da {
  animation-delay: 0.1s;
}
.fx .anim--3.ist-da {
  animation-delay: 0.2s;
}

/* ---------- Fotoschau ----------
   Wie im Original: wechselt alle 3 Sekunden, das alte Foto blendet in 0,8 s aus.
   Ohne JavaScript bleibt es eine Reihe zum Wischen. */
.karussell {
  position: relative;
  aspect-ratio: 1 / 1;
  min-width: 0;
  background: #fff;
  overflow: hidden;
}
.karussell__bahn {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.dia {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  scroll-snap-align: start;
  overflow: hidden;
}
.js .karussell__bahn {
  position: relative;
  display: block;
  overflow: visible;
  touch-action: pan-y;
  cursor: grab;
}
.js .karussell__bahn.wird-gezogen {
  cursor: grabbing;
}
/* Im Layout stehen nur das sichtbare Foto und seine Nachbarn ("ist-bereit"),
   damit die übrigen Fotos erst geladen werden, wenn sie an der Reihe sind. */
.js .dia {
  position: absolute;
  inset: 0;
  display: none;
  visibility: hidden;
}
.js .dia.ist-bereit {
  display: block;
}
.js .dia.ist-aktiv,
.js .dia.ist-nachbar,
.js .dia.geht {
  display: block;
  visibility: visible;
}
.js .dia.ist-nachbar--vor {
  transform: translateX(100%);
}
.js .dia.ist-nachbar--zurueck {
  transform: translateX(-100%);
}
.js .dia.geht {
  z-index: 1;
  animation: ausblenden 0.8s both;
}
.js .dia.kommt {
  animation: einblenden 0.8s both;
}
@keyframes ausblenden {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.dia a {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: inherit;
}
.dia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}
.dia figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 5rem 44px 37px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(30, 30, 30, 0.8));
  color: #fff;
  font-family: var(--titel);
  font-size: 32px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  pointer-events: none;
}
.karussell__pfeil {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-top: -1.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}
.karussell__pfeil:hover {
  background: rgba(0, 0, 0, 0.5);
}
.karussell__pfeil svg {
  width: 10px;
  height: 16px;
}
.karussell__pfeil--zurueck {
  left: 0;
}
.karussell__pfeil--vor {
  right: 0;
}
html:not(.js) .karussell__pfeil {
  display: none;
}
/* Baumdienste: am Handy zeigt das Original eine leicht andere Bildauswahl */
html:not(.js) .dia[data-nur="mobil"] {
  display: none;
}

/* ---------- Funkgesteuerte Raupen ---------- */
.raupen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: var(--mittel);
  text-align: left;
}
.raupe img {
  width: 100%;
}
.raupe h3 {
  margin-bottom: 1.5rem;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.daten {
  width: 100%;
  border-collapse: collapse;
  line-height: 24px;
}
.daten th,
.daten td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--linie);
  text-align: left;
  font-weight: 400;
}
.daten thead th {
  padding-top: 0;
  font-weight: 700;
}
.daten th:first-child,
.daten td:first-child {
  width: 55.3%;
}

/* ---------- Beratung ---------- */
.beratung {
  padding-block: var(--abstand);
  background: var(--verlauf);
  color: #fff;
  text-align: center;
}
.beratung h2 {
  font-size: 48px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.beratung p {
  margin: 12px 0 0;
}
.beratung__knopf {
  padding-top: 1.5rem;
}
.beratung .btn {
  margin: 8px;
}

/* ---------- Zur Person ---------- */
.person {
  padding-block: var(--abstand);
  background: var(--grau);
}
.person h2 {
  margin-bottom: var(--mittel);
  font-size: 56px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
}
.person__raster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.person h3 {
  margin-bottom: 1.5rem;
  font-size: 32px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.person h4 {
  margin-bottom: 1.5rem;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.person .liste {
  margin-bottom: 1.5rem;
}
.person .liste:last-child {
  margin-bottom: 0;
}
.person h4.mit-abstand {
  padding-top: 1.5rem;
}
.person__bild img {
  width: 100%;
}

/* ---------- Kontakt ---------- */
.kontakt {
  padding-block: 4rem;
  background: #fff;
}
.kontakt__raster {
  display: grid;
  grid-template-columns: 347px 1fr;
  gap: 58px;
  align-items: start;
}
.kontakt__wege {
  padding-top: calc(var(--klein) + var(--gross));
}
.kontakt h2 {
  font-size: 32px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.weg {
  display: flex;
  align-items: center;
  gap: 19.4px;
  margin-bottom: var(--klein);
  color: var(--text);
}
.weg:last-child {
  margin-bottom: 0;
}
.kontakt__wege h2 {
  margin: 0;
}
a.weg:hover {
  color: var(--gruen-hell);
}
.weg__zeichen {
  display: grid;
  place-items: center;
  flex: 0 0 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--verlauf);
  color: #fff;
}
.weg__zeichen svg {
  width: 22px;
  height: 22px;
}
.formular {
  margin-top: var(--klein);
}
.feld {
  display: block;
  margin-bottom: 1rem;
}
.feld > span {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  line-height: 1.4;
}
.feld input,
.feld textarea {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0.3rem;
  background: var(--grau);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.08) inset;
  color: var(--text);
  font: inherit;
  transition: box-shadow 0.3s;
}
.feld input {
  height: 48px;
  padding: 0 1rem;
  line-height: 48px;
}
.feld textarea {
  min-height: 128px;
  padding: 0.8rem 1rem;
  line-height: 1.4;
  resize: vertical;
}
.feld input:focus,
.feld textarea:focus {
  outline: 0;
  box-shadow: 0 0 0 2px var(--gruen-hell) inset;
}
.feld input::placeholder {
  color: #999;
}
.feld.hat-fehler input,
.feld.hat-fehler textarea {
  box-shadow: 0 0 0 1px #c00 inset;
}
.feld__fehler {
  display: block;
  margin-top: 4px;
  color: #c00;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}
.feld--falle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.formular__meldung {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 0.3rem;
  background: var(--grau);
  font-weight: 600;
}
.formular__meldung[hidden] {
  display: none;
}
.formular__meldung--ok {
  background: #e3f3e1;
  color: var(--gruen);
}
.formular__meldung--fehler {
  background: #fbe5e5;
  color: #a40000;
}

/* ---------- Fuß ---------- */
.fuss {
  padding: var(--klein) 0;
  background: #222;
  color: #ccc;
}
.fuss__innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  min-height: var(--mittel);
}
.fuss p {
  margin: 0;
}
.fuss a {
  color: #ccc;
}
.fuss a:hover {
  color: #fff;
}
.fuss__links {
  display: flex;
  gap: 1.5rem;
}

/* ---------- Nach oben ---------- */
.nachoben {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 99;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 15px;
  border-radius: 0.3rem;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  transform: translate3d(0, 150%, 0);
  transition: transform 0.3s, background 0.3s;
}
.nachoben.ist-da {
  transform: none;
}
.nachoben:hover {
  background: var(--verlauf);
  color: #fff;
}
.nachoben svg {
  width: 16px;
  height: 10px;
}

/* ---------- Großansicht der Fotos ---------- */
.gross {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.gross::backdrop {
  background: rgba(0, 0, 0, 0.9);
}
.gross__buehne {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
  padding: 40px clamp(8px, 5vw, 70px) 12px;
}
.gross__bild {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.gross__zeile {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 8px 0 0;
  color: #f3f3f3;
  font-size: 14px;
  line-height: 20px;
}
.gross__knopf {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  opacity: 0.75;
  cursor: pointer;
}
.gross__knopf:hover {
  opacity: 1;
}
.gross__knopf--zu {
  top: 0;
  right: 0;
}
.gross__knopf--zurueck,
.gross__knopf--vor {
  top: 50%;
  width: 60px;
  height: 90px;
  margin-top: -45px;
  font-size: 52px;
}
.gross__knopf--zurueck {
  left: 0;
}
.gross__knopf--vor {
  right: 0;
}

/* ---------- Rechtstexte ---------- */
.recht {
  padding-block: calc(var(--kopf) + var(--abstand)) var(--abstand);
}
.recht h1 {
  margin-bottom: 1.5rem;
  font-size: 40px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.recht h2 {
  margin: 2.5rem 0 1rem;
  font-size: 28px;
  line-height: 1.3;
}
.recht h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 22px;
  line-height: 1.3;
}
.recht h4 {
  margin: 1.25rem 0 0.4rem;
  font-family: var(--schrift);
  font-size: 16px;
  font-weight: 700;
}
.recht ul {
  margin: 0 0 1.5rem 2.5rem;
}
.recht li {
  margin-bottom: 0.5rem;
}
.recht address {
  margin-bottom: 1.5rem;
  font-style: normal;
}
.recht a {
  overflow-wrap: anywhere;
}
.hinweis {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--grau);
}
.fehler {
  text-align: center;
}

/* ---------- Tablet (bis 1024 px): niedrigere Kopfzeile ---------- */
@media (max-width: 1024px) {
  :root {
    --kopf-mitte: 80px;
    --klein: 1rem;
    --mittel: calc(1rem + 2.5vw);
    --gross: calc(1rem + 5vw);
  }
  .kopf__logo img {
    height: 50px;
  }
  .kontakt {
    padding-block: 2.5rem;
  }
}

/* ---------- Bis 900 px: Spalten untereinander, Menü als Aufklappliste ---------- */
@media (max-width: 900px) {
  .kapitel {
    grid-template-columns: 1fr;
  }
  .kapitel__listen {
    grid-template-columns: 1fr;
  }
  .raupen,
  .person__raster,
  .kontakt__raster {
    grid-template-columns: 1fr;
  }
  .kopf__oben,
  .kopf__mitte {
    padding-inline: 16px;
  }

  .js .nav__knopf {
    position: relative;
    display: block;
    width: 54px;
    height: 50px;
    margin-right: -13px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
  }
  .nav__knopf span,
  .nav__knopf span::before,
  .nav__knopf span::after {
    position: absolute;
    left: 50%;
    width: 28px;
    height: 2.8px;
    margin-left: -14px;
    background: currentColor;
    transition: transform 0.2s, top 0.2s, background-color 0.2s;
  }
  .nav__knopf span {
    top: 50%;
    margin-top: -1.4px;
  }
  .nav__knopf span::before,
  .nav__knopf span::after {
    content: "";
    left: 0;
    margin-left: 0;
  }
  .nav__knopf span::before {
    top: -9.33px;
  }
  .nav__knopf span::after {
    top: 9.33px;
  }
  .nav--offen .nav__knopf span {
    background: transparent;
  }
  .nav--offen .nav__knopf span::before {
    top: 0;
    transform: rotate(45deg);
  }
  .nav--offen .nav__knopf span::after {
    top: 0;
    transform: rotate(-45deg);
  }
  .js .nav__liste {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    height: auto;
    max-height: calc(100vh - var(--kopf));
    padding: 0 4.8px;
    overflow: auto;
    background: #fff;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
  }
  .js .nav--offen .nav__liste {
    display: block;
  }
  .nav__liste > li > a {
    justify-content: center;
    padding: 11.2px;
    font-size: 17.6px;
    line-height: 28.16px;
  }
  .js .nav__unter {
    position: static;
    display: none;
    min-width: 0;
    box-shadow: none;
    transform: none;
    transition: none;
  }
  .js .nav__mit-unter.ist-offen .nav__unter {
    display: block;
  }
  .nav__unter a {
    padding: 11.2px;
    font-size: 17.6px;
    line-height: 28.16px;
    text-align: center;
  }
  html:not(.js) .nav {
    display: none;
  }
}

/* ---------- Handy (bis 600 px) ---------- */
@media (max-width: 600px) {
  :root {
    --kopf-mitte: 70px;
  }
  body {
    line-height: 26px;
  }
  p {
    margin-bottom: 1rem;
  }
  .innen {
    padding-inline: 1.5rem;
  }
  .kapitel--gespiegelt .kapitel__text {
    order: 0;
  }

  .abschnitt__titel {
    font-size: 28.8px;
  }
  .kapitel__kopf h2 {
    font-size: 32px;
  }
  .dia figcaption {
    padding: 4rem 26px 22px;
    font-size: 28.8px;
    line-height: 1.4;
  }
  html:not(.js) .dia[data-nur="desktop"] {
    display: none;
  }
  html:not(.js) .dia[data-nur="mobil"] {
    display: block;
  }
  .beratung .btn {
    margin: 4.8px;
  }
  .person h2 {
    font-size: 40px;
  }
  .person h3,
  .kontakt h2 {
    font-size: 28.8px;
  }
  .person h4.mit-abstand {
    padding-top: 1rem;
  }
  .kontakt {
    padding-block: 1.5rem;
  }
  .fuss {
    padding-bottom: calc(var(--klein) + 26px);
    text-align: center;
  }
  .fuss__innen,
  .fuss__links {
    flex-direction: column;
    gap: 24px;
  }
  .nachoben {
    margin: 10px;
  }
}

@media print {
  .kopf,
  .nachoben,
  .karussell__pfeil {
    display: none;
  }
  .start {
    padding-top: 0;
  }
}
