/* ==========================================================================
   Forstservice von Heeren – Basis-Stylesheet
   ========================================================================== */

/* --- Schriften (lokal eingebunden) ---------------------------------------
   Als TTF eingebunden statt WOFF2: WOFF2-Konvertierung war in der
   Entwicklungsumgebung technisch nicht möglich (fehlendes Kompressions-Tool).
   TTF wird von allen gängigen Browsern als Webfont unterstützt, ist nur
   etwas größer in der Dateigröße als WOFF2. Bei Gelegenheit (z. B. mit
   einem Font-Konverter-Tool oder auf google-webfonts-helper.com) können die
   vier Dateien hier gegen echte .woff2-Dateien getauscht werden – dann auch
   die vier url()-Zeilen unten von .ttf auf .woff2 und 'truetype' auf 'woff2'
   ändern. Für den Start ist TTF eine funktionierende Lösung. */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo Black';
  src: url('../fonts/archivo-black.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Grundwerte ------------------------------------------------------------ */
:root {
  --tanne: #223B26;
  --orange: #E8702A;
  --hellgrau: #F4F2EC;
  --weiss: #FFFFFF;
  --text-dunkel: #23281F;
  --text-hell: #E9E9E4;

  --font-headline: 'Archivo Black', sans-serif;
  --font-body: 'Archivo', sans-serif;

  --max-width: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dunkel);
  background: var(--weiss);
  line-height: 1.55;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typografie ------------------------------------------------------------ */
h1, h2, h3 {
  font-family: var(--font-headline);
  font-weight: 400; /* Archivo Black hat nur einen Schnitt */
  line-height: 1.08;
  margin: 0 0 20px;
}

h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-size: 20px; }

p { margin: 0 0 16px; }

.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.byline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--tanne);
  margin: -8px 0 20px;
}

/* --- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--weiss);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }

.btn-outline {
  background: transparent;
  color: var(--tanne);
  border: 2px solid var(--tanne);
}
.btn-outline:hover { background: var(--tanne); color: var(--weiss); }

/* --- Header / Navigation ----------------------------------------------------- */
.site-header {
  background: var(--weiss);
  border-bottom: 1px solid #E4E1D8;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-header .logo img { height: 48px; }
.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  color: var(--text-dunkel);
}
.site-nav a:hover { color: var(--orange); }

/* --- Kacheln / Karten --------------------------------------------------------- */
.tiles {
  display: grid;
  gap: 20px;
}
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tiles-4 { grid-template-columns: repeat(4, 1fr); }

.tile {
  background: var(--hellgrau);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.tile h3 { margin-bottom: 8px; }
.tile p { margin: 0; font-size: 15px; color: #4A4A42; }

/* Praxis-Karten (größer, mehr Text) auf Digitalisierung-im-Forst-Unterseite */
.praxis-karte {
  background: var(--hellgrau);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 28px 26px;
}

/* Forstify-Kasten: optisch abgeschwächt */
.forstify-kasten {
  border-top: 4px solid var(--orange);
  border-left: 1px dashed #C9C6BC;
  border-right: 1px dashed #C9C6BC;
  border-bottom: 1px dashed #C9C6BC;
  border-radius: var(--radius);
  padding: 22px 22px;
  color: #6B6B62;
  font-size: 14px;
}
.forstify-kasten .label {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8A8A80;
  margin-bottom: 8px;
}

/* --- Hero -------------------------------------------------------------------- */
.hero {
  background: var(--tanne);
  color: var(--weiss);
  padding: 64px 0;
}
.hero .kern { max-width: 620px; color: var(--text-hell); }
.hero h1 { color: var(--weiss); }

/* --- CTA-Banner --------------------------------------------------------------- */
.cta-banner {
  background: var(--tanne);
  color: var(--weiss);
  text-align: center;
  padding: 56px 0;
}
.cta-banner h2 { color: var(--weiss); margin-bottom: 24px; }

/* --- Footer -------------------------------------------------------------------- */
.site-footer {
  background: var(--hellgrau);
  padding: 32px 0;
  font-size: 14px;
  color: #6B6B62;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }

/* --- Formulare ------------------------------------------------------------------ */
form { max-width: 560px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #C9C6BC;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--weiss);
}
.field textarea { min-height: 120px; resize: vertical; }

/* --- Rundes Portrait (Über mich) -------------------------------------------------- */
.portrait-rund {
  border-radius: 50%;
  width: 340px;
  height: 340px;
  object-fit: cover;
}

/* --- Bildergalerie (Forstservice-Übersicht): statische Kachel-Galerie, kein Slider --- */
.galerie-bild {
  margin: 0;
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  overflow: hidden;
}
.galerie-bild img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* --- Referenzabschnitt (Digitalisierung im Forst): 3 Praxis-Karten + Forstify-Kasten --- */
.praxis-referenz-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.praxis-karten-reihe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* --- Responsive -------------------------------------------------------------------- */
@media (max-width: 860px) {
  .tiles-3, .tiles-4 { grid-template-columns: repeat(2, 1fr); }
  .site-nav ul { gap: 16px; }
  .praxis-referenz-grid { grid-template-columns: 1fr; }
  .praxis-karten-reihe { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tiles-3, .tiles-4 { grid-template-columns: 1fr; }
  .praxis-karten-reihe { grid-template-columns: 1fr; }
  .site-header .wrap { flex-direction: column; gap: 12px; }
}
