/* Lotrecht Digital: gemeinsame Gestaltung
   Farben aus dem Försterwald. Schrift Barlow Condensed liegt lokal im Ordner fonts
   (SIL Open Font License), sonst Systemschriften. Nichts wird von fremden Servern geladen. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --tanne: #1b2a21;      /* dunkles Tannengrün */
  --loden: #25372b;      /* Lodengrün */
  --moos: #3d5634;       /* Moos */
  --flechte: #e4e9db;    /* helle Flechte */
  --farn: #b9c6ac;       /* Farn, leiser Text */
  --forst: #ec7a1c;      /* Orange der Forstmarkierung */
  --forst-hell: #f6a24a;

  --text: var(--flechte);
  --text-leise: var(--farn);
  --schnur: rgba(185, 198, 172, 0.55);
  --fokus: var(--forst-hell);

  --breite: 72rem;
  --schiene: 1.5rem;     /* Abstand der Lotschnur vom Rand */
  --einzug: 5.5rem;      /* Abstand des Inhalts vom Rand */

  --titel: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --text-schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (max-width: 40rem) {
  :root { --schiene: 1.3rem; --einzug: 3.5rem; }
}

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

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

body {
  margin: 0;
  background: var(--tanne);
  color: var(--text);
  font-family: var(--text-schrift);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3, dt {
  font-family: var(--titel);
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

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

a { color: var(--text); text-decoration-color: var(--forst); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--forst-hell); }

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

svg { display: block; }

/* Seitenbreite und Lotschnur mit Maßskala */
.huelle {
  position: relative;
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem clamp(3.5rem, 8vw, 6rem) var(--einzug);
}

.mit-schnur::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--schiene);
  width: 14px;
  background-image:
    linear-gradient(var(--schnur), var(--schnur)),
    repeating-linear-gradient(to bottom, var(--schnur) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(to bottom, var(--schnur) 0 1px, transparent 1px 12px);
  background-size: 1.5px 100%, 14px 100%, 7px 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Sprunglink */
.sprunglink {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--forst);
  color: var(--tanne);
  padding: 0.6rem 1rem;
  font-weight: 600;
  z-index: 10;
}
.sprunglink:focus { top: 1rem; }

/* Kopf */
.kopf { background: var(--tanne); }
.kopf .huelle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  padding-left: calc(var(--schiene) - 9px);
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--titel);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: 0.01em;
  color: var(--text);
}
.marke svg { flex: none; }
.marke:hover { color: var(--text); }
.lot-schnur { stroke: var(--farn); }
.lot-gewicht { fill: var(--forst); }

.nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
}
.nav a {
  font-family: var(--titel);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--text-leise);
  text-decoration: none;
}
.nav a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--forst); }

/* Abschnitte im Wechsel der Waldfarben */
.einstieg   { background: var(--tanne); }
.leistungen { background: var(--loden); }
.zielgruppe { background: var(--moos); }
.arbeitsweise { background: var(--tanne); }
.ablauf {
  background: var(--flechte);
  --text: var(--tanne);
  --text-leise: #3f5139;
  --schnur: rgba(27, 42, 33, 0.45);
  --fokus: var(--tanne);
  color: var(--text);
}
.ueber   { background: var(--loden); }
.kontakt { background: var(--tanne); overflow: hidden; }

/* Abschnittsüberschrift: ein Anriss von der Lotschnur zur Überschrift */
.abschnitt h2 {
  position: relative;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.005em;
  margin-bottom: 2rem;
}
.abschnitt h2::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: calc(var(--schiene) - var(--einzug));
  width: calc(var(--einzug) - var(--schiene) - 0.9rem);
  height: 3px;
  background: var(--forst);
}

/* Einstieg */
.einstieg .huelle {
  padding-top: clamp(4rem, 12vw, 9rem);
  padding-bottom: clamp(4.5rem, 12vw, 9rem);
}
.einstieg h1 {
  font-size: clamp(3.4rem, 11vw, 8.25rem);
  line-height: 0.9;
  letter-spacing: -0.005em;
  max-width: 9ch;
  margin-bottom: 2.25rem;
}
.unterzeile {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
  max-width: 32em;
  color: var(--text-leise);
}

.knopf {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.85rem 1.6rem 0.8rem;
  background: var(--forst);
  color: var(--tanne);
  font-family: var(--titel);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.knopf:hover { background: var(--forst-hell); color: var(--tanne); }

/* Die Schnur im Einstieg wird beim Laden einmal von oben abgerollt */
@media (prefers-reduced-motion: no-preference) {
  .einstieg .mit-schnur::before {
    transform-origin: 50% 0;
    animation: abrollen 1.1s cubic-bezier(.2, .7, .2, 1) both;
  }
}
@keyframes abrollen {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Leistungen */
.leistungsliste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem 3.5rem;
}
@media (min-width: 46rem) {
  .leistungsliste { grid-template-columns: 1fr 1fr; }
}
.leistungsliste li {
  border-top: 1px solid var(--schnur);
  padding-top: 1.25rem;
}
.leistungsliste h3 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.leistungsliste p { color: var(--text-leise); max-width: 34em; }

/* Für wen */
.zielgruppe .huelle > p { max-width: 36em; }
.zielgruppe .betonung {
  margin-top: 2rem;
  font-family: var(--titel);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.2;
  max-width: 24em;
}

/* Arbeitsweise */
.grundsaetze {
  margin: 0;
  display: grid;
  gap: 2.5rem 3.5rem;
}
@media (min-width: 46rem) {
  .grundsaetze { grid-template-columns: 1fr 1fr; }
}
.grundsaetze dt {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--forst-hell);
  margin-bottom: 0.5rem;
}
.grundsaetze dd { margin: 0; color: var(--text-leise); max-width: 30em; }

/* Ablauf: die Schritte sind Markierungen an der Lotschnur */
.schritte {
  list-style: none;
  counter-reset: schritt;
  margin: 0;
  padding: 0;
  max-width: 38em;
}
.schritte li {
  counter-increment: schritt;
  position: relative;
  font-size: 1.15rem;
  padding: 0.3rem 0 2.25rem;
}
.schritte li:last-child { padding-bottom: 0; }
.schritte li::before {
  content: counter(schritt);
  position: absolute;
  top: 0;
  left: calc(var(--schiene) - var(--einzug) - 1.125rem + 0.75px);
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  background: var(--forst);
  color: var(--tanne);
  font-family: var(--titel);
  font-weight: 700;
  font-size: 1.35rem;
}

/* Über mich */
.ueber .huelle > p { max-width: 36em; }

/* Kontakt: hier hängt das Lot und zeigt auf die Adresse */
.kontakt .huelle::before { display: none; }
.kontakt .huelle > p { max-width: 34em; font-size: 1.2rem; }
.mail-zeile { position: relative; margin-top: 2rem; }
.mail-zeile .lot-ende {
  position: absolute;
  left: calc(var(--schiene) - var(--einzug) - 11px);
  bottom: 0.35em;
}
.mail {
  font-family: var(--titel);
  font-weight: 700;
  font-size: clamp(1.75rem, 6vw, 3.4rem);
  line-height: 1.1;
  word-break: break-word;
}

/* Rechtstexte */
.rechtstext { background: var(--loden); }
.rechtstext .huelle > * { max-width: 44rem; }
.rechtstext h1 { font-size: clamp(2.6rem, 7vw, 4.25rem); margin-bottom: 2rem; }
.rechtstext h2 { font-size: 1.7rem; font-weight: 600; margin: 2.25rem 0 0.75rem; }
.rechtstext address { font-style: normal; margin-bottom: 1em; }

/* Fuß */
.fuss { background: #142019; color: var(--farn); font-size: 0.95rem; }
.fuss .huelle {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.75rem;
  padding-bottom: 2rem;
}
.fuss ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.fuss a { color: var(--farn); }
.fuss p { margin: 0; }
