/* ==========================================================================
   Humer Landtechnik — Stylesheet
   Markenfarben: Limettengrün #94c11f  ·  Dunkles Petrol #072e2d
   ========================================================================== */

/* --- Design Tokens ------------------------------------------------------- */
:root {
  --green:        #94c11f;
  --green-dark:   #7aa316;
  --green-light:  #b7dc4d;
  --green-tint:   #f2f8e4;

  --teal:         #072e2d;
  --teal-800:     #0d403e;
  --teal-700:     #14524f;
  --teal-600:     #1d6b67;

  --ink:          #17211f;
  --body:         #4a5551;
  --muted:        #7b8783;
  --line:         #e2e7e4;
  --surface:      #ffffff;
  --surface-alt:  #f6f8f6;

  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    22px;

  --shadow-sm:    0 1px 2px rgba(7, 46, 45, .06), 0 2px 8px rgba(7, 46, 45, .05);
  --shadow:       0 4px 12px rgba(7, 46, 45, .07), 0 12px 32px rgba(7, 46, 45, .07);
  --shadow-lg:    0 8px 24px rgba(7, 46, 45, .10), 0 24px 64px rgba(7, 46, 45, .12);

  --font:         "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head:    "Barlow Condensed", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap:         1180px;
  --gap:          clamp(1.5rem, 4vw, 3rem);
  --section-y:    clamp(4rem, 9vw, 7.5rem);

  --header-h:     84px;
}

/* --- Reset --------------------------------------------------------------- */
*, *::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);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.005em;
  margin: 0 0 .5em;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.5rem); text-transform: uppercase; letter-spacing: .002em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); text-transform: uppercase; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.125rem; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--green); color: var(--teal); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Layout Helpers ------------------------------------------------------ */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.section { padding-block: var(--section-y); }
.section--alt { background: var(--surface-alt); }
.section--tint { background: var(--green-tint); }

.section--dark {
  background: var(--teal);
  color: rgba(255, 255, 255, .78);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--green); color: var(--teal);
  padding: .7rem 1.2rem; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* --- Eyebrow / Section Head ---------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px;
  background: var(--green); border-radius: 2px;
}
.section--dark .eyebrow { color: var(--green-light); }

.section-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.125rem; }

.lead { font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.6; color: var(--body); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.9rem;
  font: inherit; font-weight: 700; font-size: .98rem;
  letter-spacing: .02em;
  border: 2px solid transparent; border-radius: 999px;
  cursor: pointer; text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, color .18s ease,
              border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--primary { background: var(--green); color: var(--teal); box-shadow: 0 4px 14px rgba(148, 193, 31, .35); }
.btn--primary:hover { background: var(--green-light); color: var(--teal); box-shadow: 0 8px 22px rgba(148, 193, 31, .45); }

.btn--dark { background: var(--teal); color: #fff; }
.btn--dark:hover { background: var(--teal-700); color: #fff; }

.btn--ghost { border-color: currentColor; color: var(--teal); background: transparent; }
.btn--ghost:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Auf dunklem Grund (Hero, CTA-Band, Seitenkopf, dunkle Sektionen) invertieren. */
.section--dark .btn--ghost,
.hero .btn--ghost,
.cta-band .btn--ghost,
.pagehead .btn--ghost { color: #fff; }
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.cta-band .btn--ghost:hover,
.pagehead .btn--ghost:hover { background: #fff; color: var(--teal); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
/* Der Blur liegt bewusst auf einem Pseudo-Element und NICHT auf .site-header:
   backdrop-filter würde den Header sonst zum Containing Block für
   position:fixed-Kinder machen – das mobile Menü (.nav) würde dann auf
   Headerhöhe zusammenfallen statt bis zum Viewport-Boden zu reichen. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

/* Der Header darf breiter laufen als der Textinhalt der Seite – Logo, sieben
   Menüpunkte, Telefonnummer und CTA passen sonst nicht in 1180 px. */
.header-inner {
  width: min(100% - 2.5rem, 1320px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; min-height: var(--header-h);
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 0; }
.nav a {
  position: relative;
  padding: .5rem .7rem;
  font-size: .93rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}
.nav a::after {
  content: ""; position: absolute;
  left: .7rem; right: .7rem; bottom: .28rem; height: 2px;
  background: var(--green); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav a:hover { color: var(--green-dark); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--green-dark); }

.header-cta { display: flex; align-items: center; gap: .75rem; flex: none; }
.header-phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; color: var(--ink); text-decoration: none;
  font-size: .95rem;
}
.header-phone svg { width: 18px; height: 18px; color: var(--green-dark); }
.header-phone:hover { color: var(--green-dark); }

.nav-toggle {
  display: none;
  position: relative;
  width: 46px; height: 46px; padding: 0;
  background: var(--teal); border: 0; border-radius: var(--radius-sm);
  cursor: pointer;
}
/* Balken absolut positioniert: nur so ist der Abstand deterministisch (6 px) und
   die beiden Balken treffen sich im geöffneten Zustand exakt in der Mitte zum X.
   Bei Auto-Layout richtet sich der Abstand nach der Buttonhöhe – dann kreuzen
   sich die Balken nicht. */
.nav-toggle span {
  position: absolute; left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, -50%); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid; align-items: center;
  min-height: clamp(560px, 82vh, 820px);
  padding-block: clamp(4rem, 10vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% center;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(7, 46, 45, .93) 0%, rgba(7, 46, 45, .82) 34%,
                    rgba(7, 46, 45, .45) 60%, rgba(7, 46, 45, .25) 100%);
}
.hero__inner { max-width: 46rem; color: rgba(255, 255, 255, .85); }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em {
  font-style: normal; color: var(--green); display: block;
}
.hero__lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6; max-width: 34rem; margin-bottom: 0;
}
.hero .eyebrow { color: var(--green-light); }

.hero__badges {
  display: flex; flex-wrap: wrap; gap: 1.75rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__badge { display: flex; align-items: center; gap: .7rem; color: #fff; }
.hero__badge svg { width: 22px; height: 22px; color: var(--green); flex: none; }
.hero__badge strong { font-weight: 700; font-size: .98rem; }

/* Kleiner Hero für Unterseiten */
.pagehead {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--teal);
  color: rgba(255, 255, 255, .8);
  overflow: hidden;
  isolation: isolate;
}
.pagehead::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60rem 30rem at 88% -10%, rgba(148, 193, 31, .22), transparent 70%),
    radial-gradient(40rem 24rem at 8% 110%, rgba(29, 107, 103, .55), transparent 70%);
}
.pagehead h1 { color: #fff; margin-bottom: .3em; }
.pagehead .eyebrow { color: var(--green-light); }
.pagehead p { max-width: 44rem; font-size: 1.15rem; }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .45rem;
  margin: 1.75rem 0 0; padding: 0; list-style: none;
  font-size: .875rem; color: rgba(255, 255, 255, .6);
}
.breadcrumb a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-light); }
.breadcrumb li + li::before { content: "/"; margin-right: .45rem; color: rgba(255, 255, 255, .35); }

/* --- Notice Bar ---------------------------------------------------------- */
.notice {
  background: var(--teal-800); color: #fff;
  font-size: .92rem;
}
.notice__inner {
  display: flex; align-items: center; gap: .8rem;
  padding-block: .7rem;
}
.notice svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.notice p { margin: 0; }
.notice a { color: var(--green-light); }

/* --- Cards / Grids ------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0a8; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .98rem; }

.card__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 1.3rem;
  background: var(--green-tint); color: var(--green-dark);
  border-radius: var(--radius-sm);
}
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon { background: var(--green); color: var(--teal); }

.card__link {
  margin-top: auto; padding-top: 1.2rem;
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; font-size: .95rem; color: var(--green-dark);
  text-decoration: none;
}
.card__link svg { width: 1em; height: 1em; transition: transform .2s ease; }
.card:hover .card__link svg { transform: translateX(4px); }

/* Karte, die komplett klickbar ist */
.card--link::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
}

/* --- Split (Text + Bild) ------------------------------------------------- */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  align-items: center;
}
.split--reverse .split__media { order: -1; }
@media (max-width: 900px) {
  .split--reverse .split__media { order: 0; }
}
.split__media img,
.split__media .ph {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
}
.split__media figcaption {
  margin-top: .9rem; font-size: .875rem; color: var(--muted); text-align: center;
}

/* --- Feature-Liste ------------------------------------------------------- */
.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .85rem; }
.ticks li { display: flex; gap: .8rem; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: .17em;
  border-radius: 50%; background: var(--green-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237aa316' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.section--dark .ticks li::before { background-color: rgba(148, 193, 31, .18); }

/* --- Stats --------------------------------------------------------------- */
.stats {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2.6rem, 5.5vw, 3.8rem); line-height: 1;
  color: var(--green); display: block;
}
.stat__label { font-size: .95rem; margin-top: .55rem; }

/* --- Werte (Verlässlich / Kompetent / Freundlich) ------------------------ */
.values { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.value { text-align: center; padding: 1rem; }
.value__icon {
  display: grid; place-items: center;
  width: 72px; height: 72px; margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: rgba(148, 193, 31, .14); color: var(--green);
  border: 2px solid rgba(148, 193, 31, .3);
}
.value__icon svg { width: 34px; height: 34px; }

/* --- Partner-Bänder ------------------------------------------------------ */
.partner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.partner__media {
  display: block; width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 2px solid var(--green);
  background: var(--green-tint);
}
/* Motiv sitzt im unteren Bilddrittel – Ausschnitt entsprechend verschieben. */
.partner__media--low { object-position: 50% 78%; }

.partner__body { padding: clamp(1.8rem, 4vw, 3rem); }
.partner__tag {
  display: inline-block; margin-bottom: 1rem;
  padding: .35rem .85rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  border-radius: 999px;
  background: var(--green-tint); color: var(--green-dark);
}
.partner__logo {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink); margin: 0 0 .35rem;
}
.partner__claim { font-style: italic; color: var(--green-dark); font-weight: 600; margin-bottom: 1.2rem; }

/* --- Modell-Tabelle ------------------------------------------------------ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--surface); min-width: 34rem; }
caption { caption-side: bottom; padding-top: .9rem; font-size: .85rem; color: var(--muted); text-align: left; }
th, td { padding: .95rem 1.15rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th {
  background: var(--teal); color: #fff;
  font-family: var(--font-head); font-size: 1.02rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 0;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--green-tint); }
td strong { color: var(--ink); }

/* --- Kontakt / Formular -------------------------------------------------- */
.contact-grid {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  align-items: start;
}

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: .28em; }
.info-list strong { display: block; color: var(--ink); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .15rem; }
.section--dark .info-list strong { color: #fff; }
.info-list a { color: inherit; text-decoration: none; }
.info-list a:hover { color: var(--green-dark); text-decoration: underline; }
.section--dark .info-list a:hover { color: var(--green-light); }

.form {
  display: grid; gap: 1.1rem;
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.form__row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.field .req { color: var(--green-dark); }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .95rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface-alt);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(148, 193, 31, .16);
}
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
.field--check input { width: 1.15rem; height: 1.15rem; margin-top: .28em; accent-color: var(--green-dark); }
.field--check label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .9rem; color: var(--body); }
.form__note { font-size: .85rem; color: var(--muted); margin: 0; }

.form-status {
  margin: 0; padding: .9rem 1.1rem;
  border-radius: var(--radius-sm); font-size: .95rem; font-weight: 600;
}
.form-status--ok  { background: var(--green-tint); color: var(--green-dark); border: 1px solid #cfe0a8; }
.form-status[hidden] { display: none; }

/* Honeypot – für Menschen unsichtbar, für Bots sichtbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- CTA-Band ------------------------------------------------------------ */
.cta-band {
  position: relative; isolation: isolate;
  background: var(--teal); color: rgba(255, 255, 255, .8);
  padding-block: clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(45rem 24rem at 78% 20%, rgba(148, 193, 31, .2), transparent 70%);
}
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 34rem; }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--teal); color: rgba(255, 255, 255, .68);
  font-size: .95rem;
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
/* Drei gleich breite Spalten; der Markenblock läuft als eigene Zeile darüber.
   Hinweis: repeat(auto-fit, …) darf laut Grid-Spec NICHT mit fr-Tracks in
   derselben Deklaration stehen – der Parser verwirft sonst die ganze Regel und
   der Footer fällt auf eine Spalte zurück. */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 2.5rem) clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}
.footer-grid > :first-child {
  grid-column: 1 / -1;
  max-width: 40rem;
}
.site-footer h4 {
  color: #fff; font-size: .82rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 1.2rem; font-family: var(--font);
}
.footer-logo {
  height: 54px; width: auto; margin-bottom: 1.2rem;
  background: #fff; padding: .5rem .7rem; border-radius: var(--radius-sm);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--green-light); }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer address a { color: inherit; text-decoration: none; }
.site-footer address a:hover { color: var(--green-light); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .875rem; color: rgba(255, 255, 255, .5);
}
.footer-bottom a { color: rgba(255, 255, 255, .68); text-decoration: none; }
.footer-bottom a:hover { color: var(--green-light); }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; }

/* --- Bild-Platzhalter ---------------------------------------------------- */
.ph {
  position: relative;
  display: grid; place-items: center; gap: .5rem;
  aspect-ratio: 4 / 3;
  padding: 1.5rem; text-align: center;
  background:
    repeating-linear-gradient(135deg, var(--green-tint) 0 12px, #eef4de 12px 24px);
  border: 2px dashed #c3d99a;
  border-radius: var(--radius-lg);
  color: var(--green-dark);
}
.ph svg { width: 40px; height: 40px; opacity: .65; }
.ph span { font-size: .85rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ph small { font-size: .78rem; font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1; }

/* --- Scroll-Animationen -------------------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1300px) {
  .header-phone span { display: none; }
}

@media (max-width: 1160px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }

  .nav {
    position: fixed; inset: var(--header-h) 0 0 auto;
    width: min(88vw, 22rem);
    flex-direction: column; align-items: stretch; gap: .25rem;
    padding: 1.5rem 1.25rem 2.5rem;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.22,.61,.36,1), visibility .3s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: .85rem 1rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { background: var(--green-tint); }
  .nav .btn { margin-top: 1.25rem; border-bottom: 0; }

  .nav-backdrop {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
    background: rgba(7, 46, 45, .45);
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }

  body.nav-open { overflow: hidden; }

  .hero__media img { object-position: 68% center; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(7, 46, 45, .88) 0%, rgba(7, 46, 45, .8) 55%, rgba(7, 46, 45, .6) 100%);
  }
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand img { height: 42px; }
  .hero__badges { gap: 1rem 1.5rem; margin-top: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { padding: .85rem 1.5rem; }
  .btn-row .btn { flex: 1 1 100%; }
}

/* --- Druck --------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .notice, .form { display: none; }
  body { color: #000; font-size: 11pt; }
  .hero { min-height: auto; }
}
