/* ==========================================================================
   maler BOTHE raumgestaltung – Stylesheet
   Farbschema: maler Bothe (Grün / Anthrazit), Layout & Bedienung nach e+k
   ========================================================================== */

/* ---------- Schrift: Roboto lokal (assets/fonts, Lizenz siehe LICENSE-Roboto.txt) – keine Verbindung zu Google ---------- */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/roboto-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }

:root {
  --c-dark: #101015;          /* Kontaktzeile */
  --c-text: #454347;          /* Fließtext */
  --c-heading: #1d1c1f;
  --c-green: #6a882c;         /* Primärfarbe */
  --c-green-dark: #56701f;    /* Hover, Footer */
  --c-green-light: #b7c958;   /* Akzent */
  --c-grey: #a6a6a6;
  --c-line: #e3e3e0;
  --c-soft: #f4f4f1;          /* helle Abschnitte */
  --c-white: #ffffff;

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

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 84px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--c-green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-green-dark); }

h1, h2, h3, h4 { color: var(--c-heading); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h1, .h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--c-green); }
h2, .h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); color: var(--c-green); }
h3, .h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--c-heading); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }

.section { padding: var(--section-y) 0; }
.section--soft { background: var(--c-soft); }
.section--tight-top { padding-top: 0; }
.text-center { text-align: center; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--c-heading); }
.subline { font-size: clamp(1.3rem, 2.6vw, 2rem); color: var(--c-heading); font-weight: 500; margin-top: -.2em; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--c-green); margin-bottom: 1rem;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--c-green); color: #fff; padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { top: 16px; color: #fff; }

:focus-visible { outline: 2px solid var(--c-green); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 14px 26px;
  background: var(--c-green); color: #fff;
  border: 2px solid var(--c-green); border-radius: var(--radius);
  font: 700 .85rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: background .25s var(--ease), border-color .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--c-green-dark); border-color: var(--c-green-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--c-green); }
.btn--ghost:hover { background: var(--c-green); color: #fff; }
.btn--light { background: transparent; border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--c-heading); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.text-center .btn-row { justify-content: center; }

/* ---------- Kontaktzeile ---------- */
.topbar { background: var(--c-dark); color: #fff; font-size: .92rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--c-green-light); }
.topbar svg { width: 15px; height: 15px; fill: currentColor; }
.topbar__claim { color: var(--c-grey); font-size: .85rem; letter-spacing: .04em; }
@media (max-width: 720px) {
  .topbar__claim { display: none; }
  .topbar__contact { gap: 4px 18px; font-size: .85rem; }
}
@media (max-width: 400px) { .topbar a span.hide-xs { display: none; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(1.4) blur(6px);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 2px 18px rgba(0, 0, 0, .08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .3s; }
.header.is-scrolled .header__inner { height: 68px; }
.logo { display: flex; align-items: center; gap: 14px; color: var(--c-heading); }
.logo img { height: 62px; width: auto; transition: height .3s; }
.header.is-scrolled .logo img { height: 50px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-size: 1.35rem; font-weight: 300; color: var(--c-heading); }
.logo__name b { font-weight: 700; letter-spacing: .04em; }
.logo__sub { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--c-green); font-weight: 700; }
@media (max-width: 560px) { .logo img { height: 52px; } .logo__name { font-size: 1.15rem; } .logo__sub { font-size: .64rem; } }
@media (max-width: 340px) { .logo__text { display: none; } }

.menu-toggle {
  width: 48px; height: 48px; margin-right: -10px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--c-heading);
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 26px; height: 2px; background: currentColor; position: relative; transition: transform .3s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -8px; }
.menu-toggle span::after { top: 8px; }
.menu-toggle:hover { color: var(--c-green); }

/* Desktop-Navigation: ab 960px sichtbar, darunter Seitenmenü */
.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); list-style: none; margin: 0; padding: 0; }
.main-nav a {
  position: relative; display: block; padding: 8px 0;
  color: var(--c-heading); font-size: .86rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--c-green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover { color: var(--c-green); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--c-green); }
.main-nav a.main-nav__cta { padding: 12px 22px; background: var(--c-green); color: #fff; border-radius: var(--radius); transition: background .25s; }
.main-nav a.main-nav__cta::after { display: none; }
.main-nav a.main-nav__cta:hover, .main-nav a.main-nav__cta[aria-current="page"] { background: var(--c-green-dark); color: #fff; }
@media (min-width: 960px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
}

/* ---------- Seitenmenü (Side Slide wie e+k) ---------- */
.side-menu {
  position: fixed; inset: 0 0 0 auto; z-index: 300;
  width: min(320px, 86vw);
  background: var(--c-green); color: #fff;
  padding: 26px 36px 40px;
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s .45s;
  overflow-y: auto;
}
.side-menu.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.side-menu__close {
  align-self: flex-end; width: 44px; height: 44px; margin-right: -12px;
  background: none; border: 0; color: #fff; cursor: pointer; font-size: 0;
  position: relative;
}
.side-menu__close::before, .side-menu__close::after {
  content: ""; position: absolute; left: 11px; top: 21px; width: 22px; height: 2px; background: currentColor;
}
.side-menu__close::before { transform: rotate(45deg); }
.side-menu__close::after { transform: rotate(-45deg); }
.side-menu nav ul { list-style: none; margin: 28px 0 0; padding: 0; }
.side-menu nav a {
  display: block; padding: 12px 0;
  color: rgba(255, 255, 255, .82);
  font-size: .95rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.side-menu nav a:hover, .side-menu nav a[aria-current="page"] { color: #fff; }
.side-menu nav a[aria-current="page"]::before { content: ""; display: inline-block; width: 14px; height: 2px; background: var(--c-green-light); vertical-align: middle; margin-right: 10px; }
.side-menu__contact { margin-top: auto; padding-top: 40px; font-size: .92rem; line-height: 1.8; }
.side-menu__contact a { color: #fff; }
.side-menu__contact a:hover { color: var(--c-green-light); }

.overlay {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(16, 16, 21, .55);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s;
}
.overlay.is-visible { opacity: 1; visibility: visible; transition: opacity .4s; }

/* ---------- Hero Slider ---------- */
.hero { position: relative; height: clamp(420px, 72vh, 760px); overflow: hidden; background: var(--c-dark); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero__slide.is-active img { transform: scale(1); }
.no-js .hero__slide:first-child { opacity: 1; } /* ohne JavaScript: erstes Bild zeigen */
/* Erstes Bild ist schon im HTML aktiv (schneller sichtbar); der Zoom läuft hier als Animation */
.hero__slide--start img { animation: hero-zoom 7s linear; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero__slide--start img { animation: none; } }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 45%); }
.hero__caption {
  position: absolute; left: 0; right: 0; bottom: clamp(56px, 9vh, 90px); z-index: 2;
  color: #fff; font-size: clamp(1.3rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.hero__caption small { display: block; font-size: .42em; font-weight: 400; letter-spacing: .24em; color: var(--c-green-light); margin-bottom: .4em; }
.hero__dots { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3; display: flex; gap: 6px; }
.hero__dots button {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
}
.hero__dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); transition: background .3s, transform .3s; }
.hero__dots button[aria-current="true"]::before { background: #fff; transform: scale(1.2); }
.hero__arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 52px; height: 52px; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background .25s;
}
.hero__arrow:hover { background: var(--c-green); }
.hero__arrow svg { width: 22px; height: 22px; }
.hero__arrow--prev { left: 0; }
.hero__arrow--next { right: 0; }
@media (max-width: 720px) { .hero__arrow { display: none; } }

/* ---------- Seiten-Banner (Unterseiten) ---------- */
.page-banner { position: relative; height: clamp(293px, 50.67vh, 560px); /* einheitlich für alle Unterseiten */ overflow: hidden; background: var(--c-dark); }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
.page-head { padding: clamp(48px, 7vw, 84px) 0 0; text-align: center; }
.page-head h1 { margin-bottom: .2em; }
.page-head .subline { margin-bottom: 1.2em; }

/* ---------- Intro ---------- */
.intro { text-align: center; }
.intro__title { margin-bottom: .1em; font-weight: 700; color: var(--c-green-dark); }
.intro__title span { font-weight: 300; }
.intro p { text-align: justify; hyphens: auto; text-align-last: center; }
@media (max-width: 720px) { .intro p { text-align: left; text-align-last: auto; } }

/* ---------- Split (Bild + Text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--portrait img { aspect-ratio: 4 / 4.2; object-position: 60% 30%; }
.split__badge {
  position: absolute; right: -18px; bottom: -18px;
  background: var(--c-green); color: #fff; padding: 18px 22px; max-width: 220px;
  font-size: .9rem; line-height: 1.35;
}
.split__badge strong { display: block; color: #fff; font-size: 2.2rem; line-height: 1; margin-bottom: 4px; }
.quote {
  margin: 1.6em 0 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--c-green-light);
  font-size: 1.12rem; font-style: italic; color: var(--c-heading);
}
.quote cite { display: block; margin-top: .5em; font-style: normal; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-green); font-weight: 700; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__badge { right: 12px; bottom: -22px; }
}

/* ---------- Kachel-Raster (wie e+k Leistungen / Projekte) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 30px); margin-top: clamp(32px, 5vw, 56px); }
.tile { display: block; color: var(--c-heading); text-align: center; }
.tile__img { display: block; position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--c-soft); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.tile__img::after {
  content: ""; position: absolute; inset: 0; background: var(--c-green); opacity: 0; mix-blend-mode: multiply; transition: opacity .4s;
}
.tile:hover .tile__img img { transform: scale(1.06); }
.tile:hover .tile__img::after { opacity: .35; }
.tile__label {
  display: block; margin-top: 18px;
  font-size: .85rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; line-height: 1.5;
  transition: color .2s;
}
.tile:hover .tile__label { color: var(--c-green); }
.tile__text { display: block; margin-top: 6px; font-size: .95rem; color: var(--c-text); }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } .tile__img { aspect-ratio: 4 / 3; } }

/* ---------- Materialien-Teaser ---------- */
.materials { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 30px); margin-top: clamp(32px, 5vw, 56px); }
.material { position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; color: #fff; }
.material img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.material::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,16,21,.88) 0%, rgba(16,16,21,.55) 38%, rgba(16,16,21,0) 75%); }
.material:hover img { transform: scale(1.05); }
.material__body { position: relative; z-index: 1; padding: 28px; }
.material__body h3 { color: #fff; margin-bottom: .35em; }
.material__body p { font-size: .98rem; color: rgba(255,255,255,.86); }
.material__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--c-green-light); margin-bottom: 8px; }
@media (max-width: 860px) { .materials { grid-template-columns: 1fr; } .material { min-height: 320px; } }


/* ---------- Video (Bewegtbild) ---------- */
.video-band { position: relative; min-height: clamp(480px, 88vh, 900px); display: grid; place-items: center; overflow: hidden; background: var(--c-dark); color: #fff; text-align: center; }
.video-band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-band::after { content: ""; position: absolute; inset: 0; background: rgba(16, 16, 21, .48); }
.video-band__content { position: relative; z-index: 1; padding: 0 var(--gutter); max-width: 880px; }
.video-band h2 { color: #fff; }
.video-band h2 em { font-style: normal; color: var(--c-green-light); }
.video-band p { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255,255,255,.9); }
.video-toggle {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6);
  background: rgba(16,16,21,.35); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.video-toggle:hover { background: var(--c-green); border-color: var(--c-green); }
.video-toggle svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Kontakt-Abschnitt ---------- */
.contact-cta { text-align: center; }
.contact-cta h2 { margin-bottom: .15em; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(32px, 5vw, 52px); text-align: center; }
.contact-card { background: #fff; border: 1px solid var(--c-line); padding: 34px 22px; transition: border-color .25s, transform .25s var(--ease); }
a.contact-card:hover { border-color: var(--c-green); transform: translateY(-3px); }
.contact-card__icon { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%; background: var(--c-green); display: grid; place-items: center; }
.contact-card__icon svg { width: 22px; height: 22px; fill: #fff; }
.contact-card__label { display: block; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--c-grey); margin-bottom: 6px; }
.contact-card__value { display: block; color: var(--c-heading); font-size: 1.08rem; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Features (Leistungsversprechen) ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(32px, 5vw, 56px); }
.feature { border-top: 3px solid var(--c-green); padding-top: 22px; }
.feature__num { font-size: .8rem; font-weight: 700; letter-spacing: .2em; color: var(--c-green); }
.feature h3 { font-size: 1.15rem; margin: .5em 0 .5em; }
.feature p { font-size: .98rem; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Leistungs-Details ---------- */
.service { scroll-margin-top: 100px; }
.service + .service { margin-top: clamp(56px, 8vw, 110px); }
.service__num { font-size: 4rem; font-weight: 300; line-height: 1; color: var(--c-green-light); margin-bottom: .2em; }
.service h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.checklist { list-style: none; padding: 0; margin: 1.4em 0 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px;
  border-left: 2px solid var(--c-green); border-bottom: 2px solid var(--c-green); transform: rotate(-45deg);
}

/* ---------- Referenzen (Übersicht + Unterseiten wie e+k Projektseite) ---------- */
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
/* Referenzen-Übersicht: Rubrik über dem Bild, im Grün der Überschriften */
.tiles--4 .tile__label { margin: 0 0 12px; font-size: 1rem; color: var(--c-green); }
.tiles--4 .tile:hover .tile__label { color: var(--c-green-dark); }
.tiles--4 .tile__text { margin-top: 12px; }
@media (max-width: 960px) { .tiles--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles--4 { grid-template-columns: 1fr; } }

.page-banner--portrait img { object-position: 50% 40%; }

.ref-head { padding: clamp(40px, 6vw, 72px) 0 0; }
.ref-head .eyebrow { display: block; margin-bottom: .6rem; }
.ref-head h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: .15em; }
.ref-back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 28px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-text);
}
.ref-back svg { width: 16px; height: 16px; }
.ref-back:hover { color: var(--c-green); }
.ref-body { padding-top: clamp(28px, 4vw, 48px); }

.ref-intro { display: grid; grid-template-columns: minmax(240px, 1fr) 1.6fr; gap: clamp(28px, 5vw, 72px); align-items: start; margin-bottom: clamp(40px, 6vw, 80px); }
@media (max-width: 860px) { .ref-intro { grid-template-columns: 1fr; } }
.ref-facts { display: grid; grid-template-columns: auto 1fr; margin: 0; border-top: 1px solid var(--c-line); }
.ref-facts dt, .ref-facts dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--c-line); }
.ref-facts dt { padding-right: 24px; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-green); line-height: 2; }
.ref-facts dd { color: var(--c-heading); }
.ref-text p { font-size: 1.08rem; }

/* Galerie: Bilder einer Zeile sind gleich hoch, Breite folgt dem Seitenverhältnis (--ar) */
.ref-gallery { display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 20px); }
.ref-gallery__row { display: flex; gap: clamp(12px, 1.6vw, 20px); }
.ref-gallery__item { display: block; flex: var(--ar) 1 0; min-width: 0; padding: 0; border: 0; background: var(--c-soft); overflow: hidden; cursor: zoom-in; }
.ref-gallery__item img { width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover; transition: transform .8s var(--ease); }
.ref-gallery__item:hover img { transform: scale(1.03); }
.ref-gallery__row--portrait { justify-content: center; }
.ref-gallery__row--portrait .ref-gallery__item { flex: 0 1 auto; width: min(100%, 560px); }
@media (max-width: 640px) {
  .ref-gallery__row { flex-direction: column; }
  .ref-gallery__item { flex: none; }
}

.ref-pager {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: clamp(48px, 7vw, 90px); padding-top: 28px; border-top: 1px solid var(--c-line);
}
.ref-pager__link { display: flex; align-items: center; gap: 12px; color: var(--c-heading); font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.ref-pager__link small { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-green); }
.ref-pager__link--next { text-align: right; }
.ref-pager__link svg { width: 22px; height: 22px; flex: none; color: var(--c-green); }
.ref-pager__link:hover { color: var(--c-green); }
.ref-pager__all {
  padding: 11px 18px; border: 2px solid var(--c-green); border-radius: var(--radius);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.ref-pager__all:hover { background: var(--c-green); color: #fff; }
@media (max-width: 640px) {
  .ref-pager { flex-wrap: wrap; }
  .ref-pager__all { order: 3; width: 100%; text-align: center; }
}

/* Seitliche Blätter-Pfeile wie bei e+k, nur auf breiten Bildschirmen */
.ref-arrow {
  position: fixed; top: 50%; z-index: 80; display: none; place-items: center;
  width: 46px; height: 64px; background: var(--c-green); color: #fff; transform: translateY(-50%); transition: background .2s;
}
.ref-arrow:hover { background: var(--c-green-dark); color: #fff; }
.ref-arrow svg { width: 22px; height: 22px; }
.ref-arrow--prev { left: 0; }
.ref-arrow--next { right: 0; }
@media (min-width: 1280px) { .ref-arrow { display: grid; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(16,16,21,.94); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: #fff; margin-top: 14px; font-size: .95rem; }
.lightbox figcaption span { color: var(--c-green-light); letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; font-weight: 700; margin-left: 10px; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox__btn:hover { background: var(--c-green); }
.lightbox__btn[hidden] { display: none; }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Formular ---------- */
.form-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form fieldset { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { font-weight: 700; color: var(--c-heading); font-size: 1.05rem; margin-bottom: 12px; padding: 0; }
.form__step { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--c-line); }
.form__step:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form__step span { width: 32px; height: 32px; border-radius: 50%; background: var(--c-green); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.form__step h2 { font-size: 1.25rem; color: var(--c-heading); margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 500; color: var(--c-heading); }
.field label .req { color: var(--c-green); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  font: 400 1rem var(--font); color: var(--c-heading);
  background: #fff; border: 1px solid #cfcfca; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-green); box-shadow: 0 0 0 3px rgba(106,136,44,.18); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #b3261e; }
.field__error { display: none; font-size: .82rem; color: #b3261e; }
.field.is-invalid .field__error { display: block; }
.field__hint { font-size: .82rem; color: var(--c-grey); }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }

.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 760px) { .options { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .options { grid-template-columns: 1fr; } }
.option { position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option label {
  display: flex; align-items: center; gap: 10px; height: 100%;
  padding: 12px 14px; border: 1px solid #cfcfca; cursor: pointer; font-size: .95rem; color: var(--c-heading);
  transition: border-color .2s, background .2s;
}
.option label::before { content: ""; width: 18px; height: 18px; flex: none; border: 2px solid #b9b9b3; border-radius: 3px; transition: background .2s, border-color .2s; }
.option input[type="radio"] + label::before { border-radius: 50%; }
.option input:checked + label { border-color: var(--c-green); background: rgba(106,136,44,.07); }
.option input:checked + label::before { background: var(--c-green); border-color: var(--c-green); box-shadow: inset 0 0 0 3px #fff; }
.option input:focus-visible + label { outline: 2px solid var(--c-green); outline-offset: 2px; }

.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-green); flex: none; }
.check.is-invalid { color: #b3261e; }
.form__submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.form__note { font-size: .85rem; color: var(--c-grey); }
.form__fehler { margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid #b3261e; background: rgba(179,38,30,.06); color: #b3261e; font-size: .95rem; }
.form__fehler[hidden] { display: none; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .6; cursor: wait; }

.form-success { display: none; padding: 40px; border: 2px solid var(--c-green); background: rgba(106,136,44,.06); text-align: center; }
.form-success.is-visible { display: block; }
.form-success h2 { font-size: 1.8rem; }

.aside-card { position: sticky; top: 100px; background: var(--c-soft); padding: 0 0 30px; }
.aside-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 60% 30%; }
.aside-card__body { padding: 26px 30px 0; }
.aside-card h3 { font-size: 1.35rem; margin-bottom: .2em; }
.aside-card__role { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-green); font-weight: 700; margin-bottom: 1.2em; }
.aside-card ul { list-style: none; margin: 1.2em 0 0; padding: 0; }
.aside-card li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--c-line); font-size: .98rem; }
.aside-card li svg { width: 18px; height: 18px; fill: var(--c-green); flex: none; margin-top: 4px; }
.aside-card li a { color: var(--c-heading); }
.aside-card li a:hover { color: var(--c-green); }

/* ---------- Impressum & Datenschutz ---------- */
.legal h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 2.2em 0 .6em; }
.legal h2:first-of-type { margin-top: 0; }
.legal ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.legal li { margin-bottom: .3em; }
.legal a { color: var(--c-green); text-decoration: underline; text-underline-offset: 2px; }
.legal mark { background: #fff3b0; color: inherit; padding: 0 .2em; } /* Platzhalter: vom Kunden zu ergänzen */
.legal__stand { margin-top: 2.4em; font-size: .9rem; color: var(--c-grey); }

/* ---------- Footer (wie e+k: farbige Fläche, 3 Spalten) ---------- */
.footer { background: var(--c-dark); color: rgba(255,255,255,.78); font-size: .95rem; line-height: 1.75; border-top: 4px solid var(--c-green); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.footer h4 { color: var(--c-green-light); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 1em; }
.footer a { color: #fff; }
.footer a:hover { color: var(--c-green-light); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer__logo { display: inline-block; margin-bottom: 18px; }
.footer__logo img { width: 120px; height: auto; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .85rem; color: var(--c-grey); }
.footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border: 0; background: var(--c-green); color: #fff; cursor: pointer;
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility 0s .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s, background .2s; }
.to-top:hover { background: var(--c-green-dark); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Einblend-Animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
