/* ==========================================================================
   Waldkonzepte — Gestaltung
   Reines CSS, keine fremden Server, kein JavaScript.
   Farben aus dem Firmenlogo: Schwarz und Grün.
   ========================================================================== */

/* --- Schriften. Liegen im Ordner schrift/ auf dem eigenen Server. --------- */
@font-face {
  font-family: "Futura Waldkonzepte";
  src: url("schrift/futura-light.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Futura Waldkonzepte";
  src: url("schrift/futura-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Farben und Maße an einer Stelle ------------------------------------- */
:root {
  --gruen: #2d7a00;          /* Akzent, dunkel genug für lesbaren Text */
  --gruen-hell: #309800;     /* Originalton aus dem Logo, für Flächen */
  --text: #1a1a1a;
  --text-leise: #4a4a4a;
  --linie: #d8d8d8;
  --grund: #ffffff;
  --grund-leise: #f5f5f3;
  --breite: 1120px;
  --luft: clamp(2.5rem, 6vw, 5rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: "Futura Waldkonzepte", "Century Gothic", "Avenir Next",
               "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--gruen); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus-visible { color: var(--text); }

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

/* Sprunglink für Tastatur- und Vorlesenutzung */
.sprung {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.sprung:focus {
  left: 0;
  color: #fff;
}

.huelle {
  width: min(100% - 2.5rem, var(--breite));
  margin-inline: auto;
}

/* --- Kopfbereich mit Logo und Menü --------------------------------------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--linie);
  padding-block: 0.7rem;
}

.kopf-innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

/* Auf der Startseite ist das Logo die Hauptüberschrift (h1); der Text dazu
   steht im alt-Attribut. Deshalb hier die Überschriften-Abstände zurücksetzen. */
.logo {
  margin: 0;
  font-size: 1rem;
  line-height: 0;
}
.logo img { width: clamp(190px, 26vw, 280px); }

.menue ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menue a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.menue a:hover,
.menue a:focus-visible {
  color: var(--gruen);
  border-bottom-color: var(--gruen);
}

/* --- Einstieg ------------------------------------------------------------ */
.einstieg {
  padding-block: var(--luft);
  border-bottom: 1px solid var(--linie);
}

.einstieg p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-leise);
  max-width: 46rem;
  margin: 0;
}

.einstieg-bild {
  margin-top: 2.5rem;
  border-radius: 2px;
}

/* --- Abschnitte ---------------------------------------------------------- */
.abschnitt {
  padding-block: var(--luft);
  border-bottom: 1px solid var(--linie);
}
.abschnitt:nth-of-type(even) { background: var(--grund-leise); }

.abschnitt h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1.6rem;
}

/* Folgt ein Vorspann, rücken beide zusammen */
.abschnitt h2 + .vorspann { margin-top: -1.25rem; }

.vorspann {
  color: var(--text-leise);
  font-size: 1.1rem;
  margin: 0 0 2rem;
}

/* Lesbare Zeilenlänge: lange Absätze nicht über die volle Breite laufen lassen */
.abschnitt > .huelle > p,
.abschnitt > .huelle > .leistungen,
.zweispalt > div > p,
.zweispalt > div > .leistungen {
  max-width: 68ch;
}

/* zweispaltig: Text links, Bild rechts */
.zweispalt {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 800px) {
  .zweispalt { grid-template-columns: 1fr; }
}

/* --- Leistungslisten (früher mit ►) -------------------------------------- */
.leistungen {
  list-style: none;
  margin: 0;
  padding: 0;
}
.leistungen li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
}
.leistungen li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--gruen-hell);
  transform: rotate(45deg);
}

/* --- Bodenprofile -------------------------------------------------------- */
.profile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin-top: 2.5rem;
}
.profile img {
  border-radius: 2px;
  width: 100%;
  aspect-ratio: 2 / 3;      /* alle Profilbilder gleich hoch */
  object-fit: cover;
}
.profile figure { margin: 0; }
.profile figcaption {
  font-size: 0.85rem;
  color: var(--text-leise);
  margin-top: 0.4rem;
}

/* --- Ansprechpartner ----------------------------------------------------- */
.personen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  margin-top: 2rem;
}

/* Diashow: Bilder liegen übereinander und blenden nacheinander ein.
   Wechsel alle 7 Sekunden, wie auf der bisherigen Seite. Ohne JavaScript. */
.diashow {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  margin-bottom: 1rem;
  border-radius: 2px;
  overflow: hidden;
  background: var(--grund-leise);
}

.diashow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

/* Die Verzögerungen sind um 0,6 s vorgezogen. Dadurch ist das erste Bild schon
   beim Laden voll sichtbar, statt erst einzublenden. */

/* zwei Bilder: 14 s Umlauf */
.diashow[data-bilder="2"] img { animation-name: blende2; animation-duration: 14s; }
.diashow[data-bilder="2"] img:nth-child(1) { animation-delay: -0.6s; }
.diashow[data-bilder="2"] img:nth-child(2) { animation-delay: 6.4s; }

/* vier Bilder: 28 s Umlauf */
.diashow[data-bilder="4"] img { animation-name: blende4; animation-duration: 28s; }
.diashow[data-bilder="4"] img:nth-child(1) { animation-delay: -0.6s; }
.diashow[data-bilder="4"] img:nth-child(2) { animation-delay: 6.4s; }
.diashow[data-bilder="4"] img:nth-child(3) { animation-delay: 13.4s; }
.diashow[data-bilder="4"] img:nth-child(4) { animation-delay: 20.4s; }

/* Ein Bild blendet genau dann aus, wenn das nächste einblendet — so bleibt die
   Fläche durchgehend gefüllt (Kreuzblende). */
@keyframes blende2 {
   0%   { opacity: 0; }
   4%   { opacity: 1; }
  50%   { opacity: 1; }
  54%   { opacity: 0; }
 100%   { opacity: 0; }
}
@keyframes blende4 {
   0%   { opacity: 0; }
   2%   { opacity: 1; }
  25%   { opacity: 1; }
  27%   { opacity: 0; }
 100%   { opacity: 0; }
}

/* Wer im Betriebssystem weniger Bewegung eingestellt hat, sieht nur das erste Bild. */
@media (prefers-reduced-motion: reduce) {
  .diashow img { animation: none; opacity: 0; }
  .diashow img:first-child { opacity: 1; }
}

.person img {
  width: 100%;
  max-width: 320px;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.person h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
}
.person .rolle {
  color: var(--text-leise);
  font-size: 0.95rem;
  margin: 0 0 0.9rem;
}
.person address {
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.75;
}
.person .kennzeichen {
  display: inline-block;
  width: 3.1rem;
  color: var(--text-leise);
}

/* --- Förderhinweis: ELER-geförderte forstliche Beratung, am Seitenende ---- */
.foerderung {
  padding-block: clamp(2rem, 4vw, 3rem);
  background: var(--grund-leise);
  border-bottom: 1px solid var(--linie);
}
.foerderung p {
  font-size: 0.92rem;
  color: var(--text-leise);
  max-width: 68ch;
  margin: 0 0 1rem;
}
.foerderung .eler-logo { max-width: 274px; }

/* --- Fußbereich ---------------------------------------------------------- */
.fuss {
  padding-block: 2.5rem;
  font-size: 0.92rem;
  color: var(--text-leise);
}
.fuss-innen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.fuss ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fuss a { color: var(--text-leise); }
.fuss a:hover, .fuss a:focus-visible { color: var(--gruen); }

/* --- Rechtstexte (Impressum, Datenschutz) -------------------------------- */
.rechtstext {
  padding-block: var(--luft);
  max-width: 48rem;
}
.rechtstext h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 400;
  margin: 0 0 2rem;
}
.rechtstext h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
}
.rechtstext h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 1.75rem 0 0.4rem;
}
.rechtstext p { margin: 0 0 1rem; }
.rechtstext address { font-style: normal; margin-bottom: 1.5rem; }
.rechtstext .hinweis {
  border-left: 3px solid var(--gruen-hell);
  padding-left: 1.1rem;
  color: var(--text-leise);
}

/* --- Druckausgabe -------------------------------------------------------- */
@media print {
  .kopf, .menue, .sprung { display: none; }
  body { font-size: 11pt; color: #000; }
  .abschnitt, .einstieg, .foerderung { border: 0; background: none; padding-block: 1rem; }
  a { color: #000; text-decoration: none; }
  .profile { grid-template-columns: repeat(5, 1fr); }
}
