/* ==========================================================================
   Hilsmann 2.0 – Prototyp Startseite
   Mobile-first. Tokens übernehmen die bestehende Farbwelt (styles.css).
   ========================================================================== */

:root {
  /* Farben – Bestand */
  --green-950: #1e2d1d;   /* alter Footer */
  --green-800: #2f4f3e;   /* alter Text-Grün */
  --green-700: #354e33;   /* Hilsmann-Grün, alte Navbar */
  --sage:      #7c906f;   /* Blätter im Logo */
  --sage-soft: #9fb592;
  --leaf:      #22c55e;   /* alter Button-Akzent – jetzt mit dunkler Schrift */
  --leaf-hover:#3fd878;
  --mist:      #f4f7f4;   /* alter Testimonial-Hintergrund */
  --paper:     #ffffff;
  --ink:       #1f2a1f;
  --ink-soft:  #4d5a4c;
  --line:      #dfe5dc;

  /* Typografie */
  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;  /* = Logo-Schrift */
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-voice: "Lora", Georgia, serif;                            /* poetische Stimme, kursiv */

  /* Maße */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 10vw, 128px);
  --radius: 18px;
  --radius-lg: 24px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 600; color: var(--green-700); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 2000; background: #fff; padding: 8px 14px; border-radius: 8px; }

:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons: Pillen wie bisher ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.6em;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 40px; padding: 0 1.2em; font-size: 0.875rem; }
.btn-leaf { background: var(--leaf); color: var(--green-950); }
.btn-leaf:hover { background: var(--leaf-hover); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--green-700); }
.btn-dark { background: var(--green-700); color: #fff; }
.btn-dark:hover { background: var(--green-950); }

.more {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--green-700); text-decoration: none;
  border-bottom: 2px solid var(--leaf); padding-bottom: 2px;
}
.more::after { content: "→"; transition: transform .2s; }
.more:hover::after { transform: translateX(3px); }

/* ---------- Prototyp-Leiste & Platzhalter ---------- */
.proto-bar {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center;
  padding: 6px 16px; background: #fff7d6; color: #5c4a00; font-size: .85rem;
}
.proto-toggle { font: inherit; border: 1px solid #c9b25a; background: #fff; border-radius: 999px; padding: 2px 12px; cursor: pointer; }
body.show-ph .ph {
  background: #fff3b0; color: #5c4a00; border-radius: 4px; padding: 0 .35em;
  font-family: var(--font-body); font-style: normal; font-size: .85em; white-space: nowrap;
}
body:not(.show-ph) .ph { display: none; }

/* ==========================================================================
   HEADER – solide Hilsmann-Grün-Leiste wie bisher
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--green-700); color: #fff;
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.18); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand img { width: 150px; height: auto; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.header-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 44px; height: 44px; border-radius: 999px;
  color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
}
.header-phone svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.header-phone span { display: none; }
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff;
  font: 600 .9rem var(--font-head); cursor: pointer;
}
.nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s;
}
.nav-toggle-lines { position: relative; }
.nav-toggle-lines::before, .nav-toggle-lines::after { content: ""; position: absolute; left: 0; }
.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile-Menü: vollflächiges Panel in Hilsmann-Grün */
.main-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--green-700);
  padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { border-bottom: 1px solid rgba(255,255,255,.14); }
.main-nav li a {
  display: block; padding: 16px 0;
  font: 600 1.6rem/1.2 var(--font-head); color: #fff; text-decoration: none;
}
.nav-contact { margin-top: 32px; display: grid; gap: 6px; color: rgba(255,255,255,.8); }
.nav-contact a { color: #fff; font: 600 1.1rem var(--font-head); text-decoration: none; }
.nav-contact p { margin: 8px 0 0; font-size: .95rem; }
body.nav-open { overflow: hidden; }

@media (min-width: 640px) {
  .header-phone { width: auto; padding: 0 12px; }
  .header-phone span { display: inline; }
}

@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .brand img { width: 176px; }
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .main-nav {
    position: static; visibility: visible; opacity: 1; transform: none;
    background: none; padding: 0; overflow: visible; flex-direction: row;
    margin-left: 40px;
  }
  .main-nav ul { display: flex; gap: 4px; }
  .main-nav li { border: 0; }
  .main-nav li a {
    font-size: .95rem; font-weight: 500; padding: 10px 14px; border-radius: 999px;
    color: rgba(255,255,255,.92);
  }
  .main-nav li a:hover { color: #fff; background: rgba(255,255,255,.08); }
  .nav-contact { display: none; }
}

/* ==========================================================================
   HERO – großes echtes Foto, dunkle grüne Bildwirkung, weiße Typo
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: min(92svh, 860px);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(30,45,29,.95) 0%, rgba(30,45,29,.82) 45%, rgba(30,45,29,.3) 78%, rgba(30,45,29,.4) 100%);
}
.hero-inner { padding-top: 120px; padding-bottom: 32px; }
.hero h1 {
  font-size: clamp(2.3rem, 8.5vw, 4.75rem); font-weight: 700; letter-spacing: -0.025em;
  max-width: 11ch; text-wrap: balance;
}
.hero-places {
  margin-top: 18px; font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1rem, 2.2vw, 1.25rem); color: #d6e4cf; max-width: 36ch;
}
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 44ch; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero-foot { border-top: 1px solid rgba(255,255,255,.18); }
.hero-foot-inner {
  display: flex; flex-wrap: wrap; gap: 4px 24px; padding-block: 16px;
  font-size: .9rem; color: rgba(255,255,255,.78);
}
.hero-foot a { color: #fff; font-weight: 600; text-decoration: none; }

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}
/* Desktop: ein durchgehendes Banner mit dem Blattwerk der bisherigen Seite (bg.JPG),
   dunkelgrün statt schwarz abgedunkelt. Das Bild wird per <picture> getauscht. */
@media (min-width: 1024px) {
  .hero { justify-content: center; min-height: min(88vh, 840px); background: var(--green-950); }
  .hero-img { object-position: 50% 50%; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(30,45,29,.90) 0%, rgba(30,45,29,.78) 45%, rgba(30,45,29,.55) 100%),
      linear-gradient(to top, rgba(30,45,29,.6), transparent 35%);
  }
  .hero-inner { padding-top: 72px; padding-bottom: 120px; }
  .hero h1 { max-width: 13ch; }
  .hero-foot { position: absolute; bottom: 0; left: 0; right: 0; }
}

/* ==========================================================================
   SECTION HEADS
   ========================================================================== */
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.125rem; }
.section-head-row { max-width: none; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   DREI BEREICHE – Weiterentwicklung der alten Highlight-Karten
   ========================================================================== */
.area-grid { display: grid; gap: 48px; }
.area { display: flex; flex-direction: column; }
.area-media {
  position: relative; margin: 0 0 20px;
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--mist);
}
.area-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.area-media img.pos-bottom { object-position: 50% 100%; }
.area-media img.pos-60 { object-position: 50% 60%; }
.area:hover .area-media img { transform: scale(1.03); }
.area-media figcaption {
  position: absolute; inset: auto 0 0 0; padding: 72px 24px 22px;
  background: linear-gradient(to top, rgba(53,78,51,1), rgba(53,78,51,.85) 45%, rgba(53,78,51,0));
  color: #fff;
}
.area-media h3 { font-size: 1.5rem; }
.area > p { color: var(--ink-soft); }
.area .more { margin-top: auto; align-self: flex-start; }

.ticks { list-style: none; margin: 0 0 24px; padding: 0; }
.ticks li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 17px;
  width: 12px; height: 8px; border-radius: 0 100% 0 100%;   /* kleines Blatt statt Häkchen */
  background: var(--sage);
}

@media (min-width: 720px) {
  .area-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
}
@media (min-width: 1024px) {
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .area-media { aspect-ratio: 3 / 4; }   /* exakt das alte Kartenformat */
  .area:nth-child(2) { margin-top: 56px; } /* versetzte Anordnung statt starrem Raster */
}

/* ==========================================================================
   LEISTUNGEN – typografische Liste statt Karten
   ========================================================================== */
.services { background: var(--mist); }
.services-layout { display: grid; gap: 40px; }
.services-intro p { margin-top: 16px; font-size: 1.125rem; color: var(--ink-soft); max-width: 44ch; }
.services-intro .btn { margin-top: 8px; }

.service-list { list-style: none; margin: 0; padding: 0; counter-reset: svc; }
.service-list li {
  counter-increment: svc;
  display: grid; grid-template-columns: 3.2em 1fr; column-gap: 8px;
  padding: 22px 0; border-top: 1px solid #cfd8cb;
}
.service-list li:last-child { border-bottom: 1px solid #cfd8cb; }
.service-list li::before {
  content: counter(svc, decimal-leading-zero);
  grid-row: span 2; padding-top: 3px;
  font: 600 .85rem var(--font-head); color: var(--sage);
}
.service-list h3 { color: var(--green-700); margin-bottom: 6px; }
.service-list p { margin: 0; color: var(--ink-soft); }

@media (min-width: 1024px) {
  .services-layout { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .services-intro { position: sticky; top: calc(var(--header-h) + 40px); }
  .service-list { columns: 1; }
}

/* ==========================================================================
   PROJEKTE
   ========================================================================== */
.project-meta {
  margin: 0 0 8px; font: 600 .8rem var(--font-head); letter-spacing: .06em; text-transform: uppercase;
  color: var(--sage);
}
.project-feature { display: grid; gap: 28px; margin-bottom: 64px; }
.project-feature-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.project-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.project-feature-body h3 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--green-700); margin-bottom: 16px; }
.project-feature-body > p { color: var(--ink-soft); }
.project-facts { margin: 24px 0 28px; display: grid; gap: 0; }
.project-facts div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); column-gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.project-facts div:last-child { border-bottom: 1px solid var(--line); }
.project-facts dt { font: 600 .85rem var(--font-head); color: var(--ink-soft); }
.project-facts dd { margin: 0; overflow-wrap: anywhere; }

.project-grid { display: grid; gap: 40px; }
.project-link { display: block; text-decoration: none; }
.project-link img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 16px; transition: transform .5s ease, box-shadow .5s;
}
.project-link:hover img { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(30,45,29,.18); }
.project-link h3 { color: var(--ink); }
.project-link:hover h3 { color: var(--green-700); text-decoration: underline; text-decoration-color: var(--leaf); text-underline-offset: 4px; }

/* Schmal: Projekte als Wischreihe. Die Reihe läuft bis an den Bildschirmrand,
   die erste Karte beginnt aber bündig mit dem Seitenrand; die nächste Karte
   lugt rechts hervor und lädt zum Wischen ein. */
@media (max-width: 719px) {
  .project-grid {
    grid-auto-flow: column; grid-auto-columns: min(80%, 340px); gap: 16px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .project-grid::-webkit-scrollbar { display: none; }
  .project-grid::after { content: ""; width: 1px; }   /* rechter Endabstand */
  .project-card { scroll-snap-align: start; }
  .project-link img { transition: none; }
  .project-link:hover img { transform: none; box-shadow: none; }

  .rail-nav:not([hidden]) { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
  .rail-progress { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-right: 8px; }
  .rail-progress span { display: block; height: 100%; width: 33%; background: var(--green-700); border-radius: 3px; transition: transform .15s linear; }
  .rail-btn {
    width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
    font: 600 1.1rem var(--font-head); color: var(--green-700); cursor: pointer;
  }
  .rail-btn:disabled { opacity: .35; cursor: default; }
}
@media (min-width: 720px) { .rail-nav { display: none !important; } }
@media (min-width: 720px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
@media (min-width: 1024px) {
  .project-feature { grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
  .project-feature-media { aspect-ratio: 4 / 4.2; }
}

/* ==========================================================================
   ATEMPAUSE – das alte Hero-Blattwerk als ruhiges Zwischenbild
   ========================================================================== */
.interlude { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.interlude > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.interlude::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(30,45,29,.72); }
.interlude-inner { margin: 0 auto; padding-block: clamp(96px, 16vw, 200px); text-align: center; }
.leaf-mark { width: 56px; height: auto; margin: 0 auto 28px; fill: none; stroke: var(--sage-soft); stroke-width: 12; }
.interlude blockquote {
  margin: 0 auto; max-width: 28ch;
  font: italic 400 clamp(1.5rem, 4vw, 2.6rem)/1.35 var(--font-voice);
  text-wrap: balance;
}

/* ==========================================================================
   ÜBER UNS
   ========================================================================== */
.areas + .about { padding-top: 0; }   /* zwei weiße Abschnitte direkt nacheinander: kein doppelter Abstand */
.about-layout { display: grid; gap: 40px; }
.about-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 58%; }
.about-body h2 { margin-bottom: 20px; }
.about-body > p { color: var(--ink-soft); font-size: 1.1rem; }
.founder-quote { margin: 32px 0; padding-left: 20px; border-left: 3px solid var(--leaf); }
.founder-quote p { font: italic 1.35rem/1.4 var(--font-voice); color: var(--green-700); margin-bottom: 8px; }
.founder-quote cite { font-style: normal; font-size: .95rem; color: var(--ink-soft); }

@media (min-width: 1024px) {
  .about-layout { grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
  .about-media img { aspect-ratio: 16 / 9; object-position: 50% 50%; } /* Querformat-Teamfoto */
}

/* ==========================================================================
   KUNDENSTIMMEN – kursive Zitate, wenige Blatt-Linien als Echo
   ========================================================================== */
.voices { position: relative; background: var(--mist); overflow: hidden; }
.voices-leaves svg {
  position: absolute; width: 44px; height: 44px;
  fill: none; stroke: #4a6e4f; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .28;
}
.voices-leaves svg:nth-child(1) { top: 12%; right: 8%; transform: rotate(-12deg); }
.voices-leaves svg:nth-child(2) { bottom: 10%; left: 5%; transform: rotate(9deg); width: 56px; height: 56px; }
.voices-leaves svg:nth-child(3) { bottom: 22%; right: 30%; transform: rotate(24deg); width: 30px; height: 30px; }
.voices .wrap { position: relative; }

.voice-grid { display: grid; gap: 20px; }
.voice { margin: 0; padding: 28px 28px 24px; background: #fff; border-radius: var(--radius); }
.voice blockquote { margin: 0 0 16px; font: italic 1.12rem/1.55 var(--font-voice); color: var(--ink); }
.voice figcaption { font: 600 .9rem var(--font-head); color: var(--green-800); }
.voice-stars { margin: 0 0 10px; color: #e0a526; letter-spacing: .12em; font-size: 1rem; }
.voices-note { margin: 28px 0 0; max-width: 62ch; font-size: .88rem; color: var(--ink-soft); }
.voices-more { margin-top: 12px; }
.voices-more a { font-weight: 600; color: var(--green-700); text-underline-offset: 4px; }

@media (min-width: 900px) {
  .voice-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .voice:nth-child(2) { transform: translateY(28px); }
}

/* ==========================================================================
   EINSATZGEBIET + KONTAKT
   ========================================================================== */
.contact { background: var(--green-700); color: #fff; }
.contact h2 { color: #fff; margin-bottom: 16px; }
.contact-layout { display: grid; gap: 56px; }
.region p { color: rgba(255,255,255,.82); max-width: 44ch; }
.places { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.places li {
  padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
  font: 500 .95rem var(--font-head);
}
.places li.is-home { background: #fff; color: var(--green-700); border-color: #fff; font-weight: 600; }
.region-note { font-size: .95rem; }

.enquiry {
  background: var(--green-950); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
}
.enquiry > p { color: rgba(255,255,255,.82); }
.enquiry-phone {
  display: block; margin-top: 24px;
  font: 700 clamp(1.8rem, 6vw, 2.6rem)/1.1 var(--font-head); color: #fff; text-decoration: none; letter-spacing: -0.01em;
}
.enquiry-mail { display: block; width: fit-content; margin-top: 8px; font: 600 1.1rem var(--font-head); color: var(--leaf); text-decoration: none; }
.enquiry-wa { display: block; width: fit-content; margin-top: 6px; font: 600 1.1rem var(--font-head); color: #fff; text-decoration: underline; text-decoration-color: var(--leaf); text-underline-offset: 5px; }
.enquiry-tip { margin-top: 12px; font-size: .95rem; }
.enquiry-hours { margin-top: 16px; font-size: .95rem; }
.enquiry .btn { margin-top: 12px; }

@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.8); padding-top: 64px; font-size: .98rem; }
.footer-grid { display: grid; gap: 36px; }
.footer-brand img { width: 190px; }
.footer-quote { margin-top: 16px; }
.footer-title { font: 600 .8rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--sage-soft); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 48px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem;
}
.footer-legal p { margin: 0; }

@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1.2fr 1fr 1fr; } }

/* ==========================================================================
   Bewegung reduzieren
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   UNTERSEITEN: Seitenkopf, Projektübersicht, Projektseite
   ========================================================================== */
.page-head { background: var(--green-700); color: #fff; padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.page-head h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; max-width: 20ch; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
.page-head p { margin-top: 16px; max-width: 56ch; color: rgba(255,255,255,.85); font-size: 1.1rem; }
.page-head .project-meta { color: var(--sage-soft); margin-bottom: 12px; }
.crumbs { margin-bottom: 20px; }
.crumbs a { color: rgba(255,255,255,.85); font: 600 .9rem var(--font-head); text-decoration: none; }
.crumbs a::before { content: "← "; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 12px; }
.notfound-links .btn { background: #fff; color: var(--green-700); }

.project-list { display: grid; gap: 40px 28px; }
@media (min-width: 640px) { .project-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-list { grid-template-columns: repeat(3, 1fr); } }
.empty-note { color: var(--ink-soft); font-size: 1.1rem; }

.project-card-img, .project-link picture img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
.project-feature-media picture, .project-feature-media picture img { width: 100%; height: 100%; object-fit: cover; }

.project-body { display: grid; gap: 40px; padding-block: clamp(40px, 7vw, 88px); }
.project-text > p { font-size: 1.1rem; color: var(--ink); max-width: 62ch; }
.project-text .project-facts { margin-top: 28px; }
ul.plain { list-style: none; margin: 0; padding: 0; }
.project-media { display: grid; gap: 24px; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.before-after figure, .project-gallery figure { position: relative; margin: 0; }
.before-after img, .project-gallery img { width: 100%; border-radius: var(--radius); }
.before-after img { aspect-ratio: 3 / 4; object-fit: cover; }
.before-after figcaption {
  position: absolute; left: 10px; top: 10px; padding: 4px 12px; border-radius: 999px;
  background: rgba(30,45,29,.82); color: #fff; font: 600 .8rem var(--font-head); letter-spacing: .04em;
}
.before-after figure:last-child figcaption { background: var(--leaf); color: var(--green-950); }
.project-gallery { display: grid; gap: 12px; }
@media (min-width: 640px) { .project-gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .project-body { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .project-text { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ==========================================================================
   RECHTSTEXTE (Impressum, Datenschutz)
   ========================================================================== */
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.35rem; margin: 40px 0 12px; hyphens: auto; overflow-wrap: anywhere; }
.legal-body h3 { font-size: 1.1rem; color: var(--green-700); margin: 28px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink); overflow-wrap: anywhere; }
.legal-body a { color: var(--green-700); text-underline-offset: 3px; }
.legal-source { margin-top: 40px; font-size: .9rem; color: var(--ink-soft) !important; }
