/* Aven Dienstleistung · Startseite (Figma «D · Startseite Desktop 1440 · v3», 221:656) */

:root {
  /* Aven D colours */
  --forest-900: #1a2829;
  --pine-700: #365153;
  --lime-400: #c4ed86;
  --sage-200: #d5e8b4;
  --mint-100: #e4f2cc;
  --white: #fff;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-text: "Inter", system-ui, sans-serif;

  /* 1 design px at 1440 wide, scales down below that */
  --u: min(1px, calc(100vw / 1440));
  --pad: 40px;
  --sec-y: 120px;
  --radius: 16px;
}

*, *::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: none !important; } }
/* elements waiting to slide in from the right must not widen the page on phones */
html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--forest-900);
  color: var(--white);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime-400); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--lime-400); color: var(--forest-900); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- Type (Aven D text styles) ---------- */
.display, .display-l, .display-m, .h1, .h2, .h3, .h4, .number { font-family: var(--font-display); font-weight: 500; }
.display   { font-size: calc(300 * var(--u)); line-height: 1; letter-spacing: -0.02em; color: var(--lime-400); }
.display-l { font-size: calc(150 * var(--u)); line-height: .95; letter-spacing: -0.02em; color: var(--lime-400); }
.display-m { font-size: calc(120 * var(--u)); line-height: .95; letter-spacing: -0.01em; }
.h1     { font-size: clamp(40px, calc(64 * var(--u)), 64px); line-height: 1.02; letter-spacing: -0.01em; color: var(--lime-400); }
.number { font-size: clamp(44px, calc(80 * var(--u)), 80px); line-height: 1; letter-spacing: -0.01em; color: var(--lime-400); }
.h2     { font-size: clamp(30px, calc(44 * var(--u)), 44px); line-height: 1.1; letter-spacing: -0.01em; }
.h3     { font-size: clamp(24px, calc(32 * var(--u)), 32px); line-height: 1.15; }
.h4     { font-size: clamp(20px, calc(24 * var(--u)), 24px); line-height: 1.15; }
.lead   { font-size: clamp(18px, calc(20 * var(--u)), 20px); line-height: 1.5; }
.body   { font-size: 16px; line-height: 1.55; }
.small  { font-size: 14px; line-height: 1.5; }
.caption{ font-size: 13px; line-height: 1.5; }
.label  { font-size: 13px; line-height: 1; font-weight: 500; letter-spacing: .02em; }
.lime { color: var(--lime-400); }
.center { text-align: center; }
.dim50 { opacity: .5; } .dim60 { opacity: .6; } .dim65 { opacity: .65; } .dim70 { opacity: .7; }
.dim75 { opacity: .75; } .dim80 { opacity: .8; } .dim85 { opacity: .85; }
.w320 { max-width: 320px; } .w360 { max-width: 360px; } .w400 { max-width: 400px; } .w620 { max-width: 620px; }
.w640 { max-width: 640px; } .w760 { max-width: 760px; }

/* ---------- Components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 17px 30px; border-radius: 999px;
  font: 600 15px/1 var(--font-text); white-space: nowrap;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn--primary { background: var(--lime-400); color: var(--forest-900); }
.btn--primary:hover { background: var(--sage-200); }
.btn--secondary { border: 1px solid var(--white); padding: 16px 29px; color: var(--white); }
.btn--secondary:hover { background: var(--white); color: var(--forest-900); }
.btn--dark { background: var(--forest-900); color: var(--lime-400); width: 100%; }
.btn--dark:hover { background: var(--pine-700); }
.btn--sm { padding: 10px 20px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.tag { display: inline-flex; gap: 6px; font: 500 13px/1 var(--font-text); letter-spacing: .02em; color: var(--lime-400); }
.tag > span { border: 1px solid var(--lime-400); border-radius: 999px; padding: 6px 14px; }
.tag > span:first-child { padding: 6px 9px; }

.link { font: 600 15px/1 var(--font-text); color: var(--lime-400); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.photo { width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--pine-700); }
.ph { display: inline-block; background: var(--sage-200); color: var(--forest-900); border-radius: 999px; padding: 4px 10px; font: 500 13px/1 var(--font-text); letter-spacing: .02em; white-space: nowrap; }

/* ---------- Layout ---------- */
.sec {
  max-width: 1440px; margin: 0 auto;
  padding: var(--sec-y) var(--pad);
  display: flex; flex-direction: column; align-items: flex-start; gap: 40px;
}
.sec--center { align-items: center; }
.sec--gap48 { gap: 48px; } .sec--gap56 { gap: 56px; } .sec--gap72 { gap: 72px; }
.display--center { width: 100%; text-align: center; }

/* Section head: tag left, title centred, text below on the right (02 pattern) */
.kopf { position: relative; width: 100%; display: grid; grid-template-columns: 1fr; }
.kopf .tag { position: absolute; left: 0; top: 8px; }
.kopf__title { justify-self: center; text-align: center; max-width: 900px; }
.kopf__text { margin-top: 48px; margin-left: calc(720 * var(--u) * 1); max-width: 440px; }
.kopf__text { opacity: .8; }
.kopf__text--fw { opacity: 1; }
.kopf__text--fw .body { opacity: .8; }
.kopf__text--zahlen { margin-left: calc(760 * var(--u)); max-width: 560px; }
.kopf__text--fw { display: flex; flex-direction: column; gap: 20px; }
.kopf__text--warum { margin-top: 40px; }
.kopf--zahlen { min-height: 188px; }

/* ---------- Header ---------- */
.header { position: absolute; inset: 24px 0 auto; z-index: 20; padding: 0 var(--pad); }
.header__bar {
  max-width: 1360px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--pine-700); border-radius: 16px; padding: 16px 24px;
}
.header__logo { font: 500 32px/1.15 var(--font-display); color: var(--lime-400); display: inline-flex; align-items: baseline; gap: .25em; }
/* brand triangle stands on the baseline of AVEN; .9em is a touch taller than the caps (.81em), so it reads as the same height */
.header__zeichen { width: auto; height: .9em; flex: none; }
.header__nav { display: flex; gap: 36px; font: 500 14px/1 var(--font-text); }
.header__nav a:hover, .header__phone:hover { color: var(--lime-400); }
.header__right { display: flex; align-items: center; gap: 24px; }
/* desktop: logo | menu | phone + button, the menu sits in the true centre of the bar */
@media (min-width: 1181px) {
  .header__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .header__nav { gap: 32px; }
  .header__logo { justify-self: start; }
  .header__right { justify-self: end; gap: 0; }
  /* one item on the right: the phone while the hero buttons are on screen, then the button */
  .header__phone { white-space: nowrap; }
  .header:not(.cta-weg) .header__phone { display: none; }
}
/* the header button steps aside while the hero buttons are on screen (main.js sets .cta-weg) */
.header__cta { max-width: 260px; overflow: hidden; transition: visibility 0s, max-width .5s cubic-bezier(.16,1,.3,1), padding .5s cubic-bezier(.16,1,.3,1), margin .5s cubic-bezier(.16,1,.3,1), opacity .3s, background-color .2s, color .2s; }
/* visibility drops it from the Tab order too; it switches only after the slide-out (.5s) */
.header.cta-weg .header__cta { max-width: 0; padding-inline: 0; opacity: 0; pointer-events: none; visibility: hidden; transition-delay: .5s, 0s, 0s, 0s, 0s, 0s, 0s; }

.header__phone { font: 500 14px/1 var(--font-text); }
.header__call, .header__burger { display: none; }

/* ---------- 1 · Hero ---------- */
/* the first screen always shows title and buttons: as tall as the window, at most the Figma 1140 */
.hero { position: relative; max-width: 1440px; margin: 0 auto; height: min(calc(1140 * var(--u)), 100vh); height: min(calc(1140 * var(--u)), 100svh); min-height: 640px; overflow: visible clip; }
.hero__stage { position: absolute; inset: 0; }
.hero__aven, .hero__dl { position: absolute; font-family: var(--font-display); font-weight: 500; color: var(--lime-400); line-height: .8; white-space: nowrap; }
.hero__aven { left: calc(30 * var(--u)); top: calc(136 * var(--u)); font-size: calc(400 * var(--u)); letter-spacing: -0.02em; }
.hero__dl { right: calc(40 * var(--u)); top: calc(148 * var(--u)); font-size: calc(96 * var(--u)); letter-spacing: -0.01em; }
/* the houses run from edge to edge of the window, even wider than 1440 */
.hero__haus { position: absolute; left: calc(50% - 50vw); bottom: 0; width: 100vw; height: 78%; max-width: none; object-fit: cover; object-position: 50% 0; }
/* the house fades out above the text, wherever the bottom of the window is */
.hero__fade { position: absolute; left: calc(50% - 50vw); width: 100vw; bottom: 0; height: max(52%, 300px); background: linear-gradient(to bottom, rgba(26,40,41,0), rgba(26,40,41,.85) 45%, var(--forest-900) 62%); }
.hero__text {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(32px, calc(56 * var(--u)), 56px);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px;
}
.hero__title { font: 500 clamp(30px, calc(44 * var(--u)), 44px)/1.1 var(--font-display); letter-spacing: -0.01em; max-width: 780px; }
.hero__right { display: flex; flex-direction: column; gap: 22px; max-width: 500px; flex: 0 1 500px; }
.hero__right .btns { flex-wrap: nowrap; }
.hero__right .lead { opacity: .85; }

/* ---------- 2 · Zahlen ---------- */
.zahlen { width: 100%; }
.zahl { display: flex; align-items: center; gap: 40px; padding: 30px 0; border-top: 1px solid var(--pine-700); }
.zahl dt { width: calc(720 * var(--u)); flex: none; }
.zahl dd { max-width: 560px; opacity: .75; }
.zahl__short { display: none; }

/* ---------- 3 · Für wen ---------- */
.kopf--fw { min-height: 403px; }
.kopf__kreis { position: absolute; border-radius: 50%; }
.kopf__kreis--rasen { left: 0; top: 218px; width: 184px; height: 184px; }
.kopf__kreis--weg { left: calc(1218 * var(--u)); top: 0; width: 119px; height: 119px; }
.kopf--fw .kopf__text { margin-top: 48px; }
.grid3 { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 16px; }
.card .photo { height: 340px; }

/* ---------- 4 · Leistungen ---------- */
.leist { width: 100%; display: flex; gap: 40px; align-items: flex-start; }
.leist__list { flex: 1; min-width: 0; }
.svc { width: 100%; display: flex; align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--pine-700); text-align: left; }
.svc img { width: 88px; height: 60px; object-fit: cover; border-radius: 10px; flex: none; }
.svc__name { flex: 1; font: 500 32px/1.15 var(--font-display); opacity: .45; transition: opacity .15s, color .15s; }
.svc__arrow { font: 500 24px/1.15 var(--font-display); color: var(--lime-400); visibility: hidden; }
.svc:hover .svc__name { opacity: .8; }
.svc.is-active .svc__name { color: var(--lime-400); opacity: 1; }
.svc.is-active .svc__arrow { visibility: visible; }
.svc__icon, .svc__more { display: none; }
.leist__detail { width: 640px; flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.leist__photo { height: 360px; object-position: center 45%; }

/* ---------- 5 · Objekte ---------- */
.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill { border: 1px solid var(--pine-700); border-radius: 999px; padding: 10px 20px; font: 500 14px/1 var(--font-text); white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.pill:hover { border-color: var(--lime-400); }
.pill.is-active { background: var(--lime-400); border-color: var(--lime-400); color: var(--forest-900); }
.obj { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; row-gap: 40px; }
.obj__item { display: flex; flex-direction: column; gap: 12px; }
.obj__item figcaption { display: flex; flex-direction: column; gap: 12px; }
.obj__item .caption { opacity: .6; }
.obj__item .photo { height: 300px; }
.obj.is-full .obj__item--big { grid-column: 1 / 3; grid-row: 1 / 3; }
.obj.is-full .obj__item--big .photo { height: 620px; }
.obj.is-full .obj__item--s1, .obj.is-full .obj__item--s2 { grid-column: 3; }
.obj.is-full .obj__item--s1 .photo, .obj.is-full .obj__item--s2 .photo { height: 256px; }
.obj.is-full { row-gap: 24px; grid-template-rows: min-content 1fr; }
.obj.is-full .obj__item--s2 { align-self: start; }
.obj.is-full .obj__item:nth-child(n+4) { margin-top: 16px; }
.obj__item[hidden] { display: none; }

/* ---------- 6 · Warum Aven ---------- */
.warum__photo { height: 560px; }
.gruende { width: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.gruende li { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--pine-700); }

/* ---------- 7 · Einsatzgebiet ---------- */
.karte { position: relative; width: calc(1360 * var(--u)); height: calc(520 * var(--u)); }
.karte__map { position: absolute; inset: 0; }
.karte__map > * { position: absolute; }
.karte__kreis { left: calc(440 * var(--u)); top: calc(20 * var(--u)); width: calc(480 * var(--u)); height: calc(480 * var(--u)); }
.karte__ring { left: calc(420 * var(--u)); top: 0; width: calc(520 * var(--u)); height: calc(520 * var(--u)); }
.karte__garbsen-ring { left: calc(575.64 * var(--u)); top: calc(216.66 * var(--u)); width: calc(36 * var(--u)); height: calc(36 * var(--u)); }
.pt { left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(12 * var(--u)); height: calc(12 * var(--u)); border-radius: 50%; background: var(--lime-400); }
.pt--big { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.pt-l { left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); font-size: calc(13 * var(--u)); line-height: 1.5; white-space: nowrap; }
.karte__line { left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: auto; height: 1px; max-width: none; }
.karte__line[width="167"] { width: calc(167 * var(--u)); }
.karte__line[width="125"] { width: calc(125 * var(--u)); }
.kp { position: absolute; top: calc(var(--y) * var(--u)); display: flex; flex-direction: column; gap: 6px; white-space: nowrap; }
.kp--l { left: 0; } .kp--r { right: 0; text-align: right; align-items: flex-end; }

/* ---------- 8 · Fallbeispiele ---------- */
.fall__kopf { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.fall__titel { display: flex; flex-direction: column; gap: 24px; min-height: calc(384 * var(--u)); }
.fall1 { width: 100%; display: flex; gap: 40px; align-items: flex-start; }
.fall1__text { width: 560px; flex: none; display: flex; flex-direction: column; gap: 20px; }
.fall1__photo { flex: 1; min-width: 0; height: 560px; }
.params { width: 100%; }
.params > div { display: flex; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--pine-700); }
.params dt { flex: 1; font-size: 14px; line-height: 1.5; opacity: .6; }
.params dd { font-size: 16px; text-align: right; }
.params dd:has(> .ph) { display: flex; }
.fall2 { width: 100%; display: flex; align-items: center; gap: 40px; padding: 32px 40px; border-radius: 16px; background: var(--pine-700); }
.fall2__text { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.fall2__text .body { max-width: 640px; }
.fall2__ph { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* ---------- 9 · So starten wir ---------- */
.weg { position: relative; width: calc(1360 * var(--u)); height: calc(850 * var(--u)); }
.weg__linie { position: absolute; left: calc(121.43 * var(--u)); top: calc(108.07 * var(--u)); width: calc(1179.69 * var(--u)); height: calc(668.415 * var(--u)); max-width: none; }
.schritt__pill {
  position: absolute; left: calc(var(--px) * var(--u)); top: calc(var(--py) * var(--u));
  background: var(--pine-700); border: 1.2px solid var(--lime-400); border-radius: 999px;
  padding: calc(12 * var(--u)) calc(24 * var(--u));
  font: 500 calc(29 * var(--u))/1.15 var(--font-display); color: var(--lime-400); white-space: nowrap;
}
.schritt p { position: absolute; left: calc(var(--tx) * var(--u)); top: calc(var(--ty) * var(--u)); width: calc(413 * var(--u)); font-size: calc(19.4 * var(--u)); line-height: 1.55; opacity: .8; }
.schritt--r p { text-align: right; }

/* ---------- 10 · Ansprechperson ---------- */
.person { width: 100%; display: flex; gap: 120px; align-items: flex-start; }
.portrait { position: relative; width: 440px; height: 560px; flex: none; overflow: hidden; border-radius: 16px; background: var(--pine-700); }
.portrait__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait__ph { position: absolute; left: 24px; top: 24px; background: var(--lime-400); color: var(--forest-900); border-radius: 999px; padding: 6px 12px; font: 500 13px/1 var(--font-text); letter-spacing: .02em; }
.portrait__name { position: absolute; left: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 2px; background: var(--forest-900); border-radius: 12px; padding: 14px 18px; }
.person__col { flex: 1; min-width: 0; min-height: 560px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.person__titel { display: flex; flex-direction: column; gap: 24px; }
.person__kanaele { display: flex; flex-direction: column; gap: 28px; }
.kanaele { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kanal { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--pine-700); white-space: nowrap; }
.kanal:hover .h2 { color: var(--lime-400); }
.fakten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fakten li { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid var(--pine-700); }
.team { width: 100%; display: flex; gap: 120px; align-items: flex-end; }
.team__text { width: 440px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.team__note { max-width: 340px; }
.rollen { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rollen li { display: flex; flex-direction: column; gap: 6px; }
.rollen .photo { height: 340px; }

/* ---------- 11 · FAQ ---------- */
.faq { width: 100%; display: flex; gap: 80px; align-items: flex-start; }
.faq__titel { width: 400px; flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.faq__list { flex: 1; min-width: 0; }
.acc { border-bottom: 1px solid var(--pine-700); padding: 22px 0; }
.acc summary { display: flex; align-items: center; gap: 24px; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .h3 { flex: 1; }
.acc[open] summary .h3 { color: var(--lime-400); }
.acc > p { margin-top: 14px; padding-right: 64px; }
.acc__icon, .svc__icon { position: relative; width: 40px; height: 40px; flex: none; border-radius: 6px; background: var(--sage-200); }
.acc__icon::before, .acc__icon::after, .svc__icon::before, .svc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--forest-900); transform: translate(-50%, -50%); }
.acc__icon::after, .svc__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .15s; }
.acc[open] .acc__icon::after, .svc.is-active .svc__icon::after { opacity: 0; }

/* ---------- 12 · Kontakt ---------- */
.kontakt { width: 100%; display: flex; gap: 80px; align-items: flex-start; }
.kontakt__daten { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.kontakt__daten a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.form { width: 600px; flex: none; display: flex; flex-direction: column; gap: 4px; padding: 40px; border-radius: 24px; background: var(--mint-100); color: var(--forest-900); }
.field { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; }
.field > span { font-size: 14px; line-height: 1.5; }
.field input, .field textarea {
  font: 400 16px/1.55 var(--font-text); color: var(--forest-900);
  background: transparent; border: 0; border-bottom: 1px solid rgba(26,40,41,.3);
  padding: 0 0 8px; border-radius: 0; resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--forest-900); opacity: .45; }
.field textarea { field-sizing: content; min-height: calc(1lh + 8px); }
@supports not (field-sizing: content) { .field textarea { resize: vertical; min-height: calc(2lh + 8px); } }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--forest-900); }
.field.is-invalid input { border-bottom-color: #b3261e; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px 0; font-size: 14px; line-height: 1.5; }
.consent input { appearance: none; width: 20px; height: 20px; flex: none; margin: 0; border: 1.5px solid var(--forest-900); border-radius: 4px; display: grid; place-content: center; cursor: pointer; }
.consent input:checked { background: var(--forest-900); }
.consent input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--lime-400); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.consent.is-invalid input { border-color: #b3261e; }
.consent a { text-decoration: underline; }
.form__status:empty { display: none; }
.form__status { padding: 8px 0; font-weight: 500; }
.form__falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* spam trap, only bots fill it */

/* ---------- 13 · Footer ---------- */
.footer { max-width: 1440px; margin: 0 auto; padding: 64px var(--pad) 80px; border-top: 1px solid var(--pine-700); display: flex; flex-direction: column; gap: 56px; }
.footer__cols { display: flex; gap: 40px; }
.footer__logo { width: 440px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.footer__col { flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; }
.footer__col > a, .footer__col > span { opacity: .8; }
.footer__col > a:hover { color: var(--lime-400); opacity: 1; }
.footer__col .label { margin-bottom: 0; }
.footer__wordmark { font: 500 calc(163 * var(--u))/.95 var(--font-display); letter-spacing: -0.02em; color: var(--pine-700); text-align: center; white-space: nowrap; }
.footer__orte { display: none; }
.footer__unter { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--pine-700); font-size: 14px; }
.footer__unter nav { display: flex; gap: 24px; }
.footer__unter nav a { opacity: .7; }
.footer__unter nav a:hover { opacity: 1; color: var(--lime-400); }

/* ============ Tablet: keep desktop grid, relax fixed widths ============ */
@media (max-width: 1280px) {
  .person, .team { gap: 60px; }
  .portrait, .team__text { width: 380px; }
  .leist__detail { width: 50%; }
  .form { width: 520px; }
  .footer__logo { width: 320px; }
  .fall1__text { width: 480px; }
}

/* ============ Header below 1180: six menu items no longer fit, use the burger menu ============ */
@media (max-width: 1180px) {
  .header__phone { display: none; }
  .header__burger { display: grid; place-content: center; gap: 4px; width: 40px; height: 40px; border-radius: 8px; background: var(--sage-200); }
  .header__burger span { width: 18px; height: 2px; background: var(--forest-900); transition: transform .2s, opacity .2s; }
  .header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .header__bar { position: relative; }
  .header__nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; gap: 0; padding: 8px 16px; background: var(--pine-700); border-radius: 14px; font-size: 18px; }
  .header__nav.is-open { display: flex; }
  .header__nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .header__nav a:last-child { border-bottom: 0; }
  .footer__cols { flex-wrap: wrap; row-gap: 32px; }
  .footer__logo { width: 100%; }
  .kanal { white-space: normal; }
  .kanal .h2 { overflow-wrap: anywhere; }
}

/* ============ Mobile (Figma «D · Startseite Mobile 390 · v3», 225:760) ============ */
@media (max-width: 900px) {
  :root { --pad: 16px; --sec-y: 64px; }
  .sec { gap: 24px; }
  .sec--gap48, .sec--gap56, .sec--gap72 { gap: 24px; }

  .display { font-size: 80px; line-height: .95; letter-spacing: -0.01em; text-align: left; }
  .display--center { text-align: left; }
  .display-l { font-size: 80px; letter-spacing: -0.01em; }
  .display-m { font-size: 80px; }
  .h1 { font-size: 40px; line-height: 1.05; }
  .h2 { font-size: 30px; }
  .h3 { font-size: 24px; }
  .h4 { font-size: 20px; line-height: 1.2; }
  .number { font-size: 44px; }
  .lead { font-size: 16px; }
  .center { text-align: left; }
  .sec--center { align-items: flex-start; }

  /* Header */
  .header { inset: 12px 0 auto; }
  .header__bar { padding: 12px 16px; border-radius: 14px; }
  .header__logo { font-size: 24px; }
  .header__phone, .header__cta { display: none; }
  .header__call { display: inline-flex; padding: 9px 14px; border-radius: 8px; }
  .header__right { gap: 10px; }
  .header__burger { display: grid; place-content: center; gap: 4px; width: 40px; height: 40px; border-radius: 8px; background: var(--sage-200); }
  .header__burger span { width: 18px; height: 2px; background: var(--forest-900); transition: transform .2s, opacity .2s; }
  .header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .header__nav { display: none; position: absolute; left: var(--pad); right: var(--pad); top: calc(100% + 8px); flex-direction: column; gap: 0; padding: 8px 16px; background: var(--pine-700); border-radius: 14px; font-size: 18px; }
  .header__nav.is-open { display: flex; }
  .header__nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .header__nav a:last-child { border-bottom: 0; }

  /* Hero: EcoPlace mobile — text first, photo card below */
  .hero { height: auto; min-height: 0; overflow: visible; display: flex; flex-direction: column-reverse; gap: 20px; padding: 112px var(--pad) 56px; }
  .hero__stage { position: relative; inset: auto; height: 300px; border-radius: 16px; overflow: hidden; background: var(--pine-700); }
  .hero__aven { left: 50%; transform: translateX(-50%); top: 6px; font-size: 170px; }
  .hero__dl { display: none; }
  .hero__haus { left: 0; bottom: 0; width: 100%; height: 72%; }
  .hero__fade { display: none; }
  .hero__text { position: static; flex-direction: column; gap: 20px; }
  .hero__title { font-size: 40px; line-height: 1.05; }
  .hero__right { max-width: none; gap: 20px; flex: none; }
  .hero__right .lead { font-size: 16px; opacity: .8; }
  .hero .btns { flex-direction: column; }
  .hero .btn { width: 100%; }

  /* Section heads */
  .kopf { display: flex; flex-direction: column; gap: 12px; }
  .kopf .tag { position: static; margin-bottom: 12px; }
  .kopf__title { justify-self: auto; text-align: left; }
  .kopf__text, .kopf__text--zahlen, .kopf--fw .kopf__text, .kopf__text--warum { margin: 0; max-width: none; }
  .kopf--fw, .kopf--zahlen { min-height: 0; }
  .kopf__kreis { display: none; }
  .kopf--fw, .kopf__text--fw { gap: 28px; }
  #einsatzgebiet { align-items: center; }
  #einsatzgebiet > .center { text-align: center; }
  #einsatzgebiet .karte { align-self: stretch; }

  /* Zahlen: circles 2×2 */
  .zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .zahl { aspect-ratio: 1; flex-direction: column; justify-content: center; gap: 4px; padding: 18px; border: 0; border-radius: 50%; background: var(--pine-700); text-align: center; }
  .zahl dt { width: auto; font-size: clamp(30px, 11vw, 44px); }
  .zahl__rest, .zahl__long { display: none; }
  .zahl__short { display: inline; }
  .zahl dd { font-size: 13px; line-height: 1.4; opacity: .8; }

  /* Für wen */
  .grid3 { grid-template-columns: 1fr; gap: 28px; }
  .card { gap: 12px; }
  .card .photo { height: 220px; }
  .card .body { font-size: 14px; }

  /* Leistungen: accordion */
  .leist { flex-direction: column; }
  .leist__list { width: 100%; }
  .leist__detail { display: none; }
  .svc { gap: 12px; padding: 18px 0; border-bottom: 0; }
  .svc img, .svc__arrow { display: none; }
  .svc__name { font-size: 24px; opacity: 1; }
  .svc__icon { display: block; }
  .leist__list li { border-bottom: 1px solid var(--pine-700); }
  .svc.is-active + .svc__more { display: block; padding-bottom: 18px; }
  .svc__more .small { opacity: .8; }
  .svc.is-active + .svc__more { display: flex; flex-direction: column; gap: 14px; }
  .svc__photo { height: 220px; object-position: center 45%; }
  .svc__more .btn { width: 100%; }

  /* Objekte: horizontal carousel */
  .filter, .obj { width: calc(100% + var(--pad)); margin-right: calc(-1 * var(--pad)); }
  .filter { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .obj { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-right: var(--pad); }
  .filter::-webkit-scrollbar, .obj::-webkit-scrollbar { display: none; }
  .obj__item { flex: 0 0 290px; scroll-snap-align: start; gap: 10px; }
  .obj__item .photo, .obj.is-full .obj__item--big .photo, .obj.is-full .obj__item--s1 .photo, .obj.is-full .obj__item--s2 .photo { height: 260px; }
  .obj.is-full .obj__item:nth-child(n+4) { margin-top: 0; }
  #objekte .btn { width: 100%; }

  /* Warum */
  .warum__photo { height: 240px; }
  .gruende { grid-template-columns: 1fr; gap: 0; }
  .gruende li { gap: 6px; padding: 16px 0; }

  /* Karte: circle + list */
  .karte { width: 100%; height: auto; display: flex; flex-direction: column; gap: 24px; }
  .karte__map { position: relative; width: calc(520 * var(--u)); aspect-ratio: 1; overflow: hidden; --u: min(0.625px, calc((100vw - 32px) / 520)); }
  .karte__map { margin: 0 auto; }
  .karte__map > * { translate: calc(-420 * var(--u)) 0; }
  .karte__line, .karte__ring { display: none; }
  .pt-l { font-size: 12px; }
  .pt-l--left { left: calc(var(--ax) * var(--u)); transform: translateX(-100%); }
  .karte__params { display: flex; flex-direction: column; }
  .kp { position: static; flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--pine-700); white-space: normal; }
  .kp--r { text-align: left; align-items: center; }
  .kp dt { font-size: 20px; }
  .kp dd { font-size: 14px; text-align: right; }

  /* Fallbeispiele */
  .fall__kopf, .fall1 { flex-direction: column; align-items: flex-start; gap: 24px; }
  .fall__kopf .display-l { font-size: 40px; line-height: 1.05; }
  .fall__titel { min-height: 0; }
  .fall1__text { width: 100%; }
  .fall1__text { display: contents; }
  .fall1__photo { width: 100%; height: 260px; flex: none; }
  .fall1 .params { order: 1; display: flex; flex-direction: column; }
  .params > div:has(.ph) { order: 1; }
  .fall2__ph { display: none; }
  .params dd { font-size: 14px; }
  .fall2 { flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px 20px; }
  .fall2__ph { flex-direction: row; align-items: flex-start; margin-top: 8px; }

  /* So starten wir: vertical timeline */
  .weg { width: 100%; height: auto; }
  .weg__linie { display: none; }
  .weg__steps { display: flex; flex-direction: column; }
  .schritt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 0 28px 30px; }
  .schritt::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 14px; border-radius: 50%; background: var(--lime-400); }
  .schritt::after { content: ""; position: absolute; left: 6.25px; top: 27px; bottom: -13px; width: 1.5px; background: var(--lime-400); }
  .schritt:last-child::after { display: none; }
  .schritt:last-child { padding-bottom: 0; }
  .schritt__pill, .schritt p { position: static; }
  .schritt__pill { font-size: 20px; padding: 8px 16px; border-width: 1px; }
  .schritt p, .schritt--r p { width: auto; font-size: 16px; text-align: left; }

  /* Ansprechperson */
  .person, .team { flex-direction: column; gap: 24px; }
  .portrait { width: 100%; height: 420px; }
  .portrait__ph { left: 16px; top: 16px; }
  .portrait__name { left: 16px; bottom: 16px; }
  .person__col { min-height: 0; gap: 24px; }
  .kanaele, .fakten { grid-template-columns: 1fr; gap: 0; }
  .kanal { padding: 14px 0; }
  .kanal .h2 { font-size: 26px; white-space: normal; }
  .person .btns { flex-direction: column; }
  .person .btn { width: 100%; }
  .fakten li { padding: 14px 0; }
  .team__text { width: 100%; flex-direction: row; align-items: center; gap: 16px; }
  .team__text .display-l { font-size: 80px; }
  .rollen { width: 100%; grid-template-columns: 1fr 1fr; gap: 12px; }
  .rollen .photo { height: 200px; border-radius: 12px; }

  /* FAQ */
  .faq { flex-direction: column; gap: 20px; }
  .faq__titel { width: 100%; gap: 20px; }
  .faq__titel { display: contents; }
  .faq__list { width: 100%; }
  .faq__titel .btn { order: 1; width: 100%; }
  .acc { padding: 18px 0; }
  .acc summary { gap: 12px; }
  .acc summary .h3 { font-size: 20px; line-height: 1.2; }
  .acc > p { font-size: 14px; padding-right: 0; }

  /* Kontakt */
  .kontakt { flex-direction: column; align-items: stretch; gap: 24px; }
  .kontakt__daten { gap: 20px; }
  .form { width: 100%; padding: 28px 20px; border-radius: 20px; }

  /* Footer */
  .footer { padding: 48px var(--pad); gap: 28px; }
  .footer__cols { flex-wrap: wrap; gap: 28px 16px; }
  .footer__logo { width: 100%; }
  .footer__logo .number { font-size: 80px; }
  .footer__col { flex: 1 1 40%; }
  .footer__wordmark, .footer__col--orte { display: none; }
  .footer__orte { display: block; }
  .footer__unter { border-top: 0; padding-top: 0; }
  .footer__unter { flex-direction: column-reverse; gap: 16px; }
}
