/* =========================================================
   A&M Elektrobau GmbH – Stylesheet
   Farben & Typo nach dem bisherigen Auftritt (Nunito Sans,
   Limettengrün, Logo-Blau, Orange-Akzent), kontrastoptimiert.
   ========================================================= */

:root {
  --c-text: #404040;
  --c-heading: #3a3a3a;
  --c-muted: #6b6b73;
  --c-bg: #fbfbff;
  --c-white: #ffffff;
  --c-line: #e4e4ea;
  --c-green: #a7d200;
  --c-green-logo: #a5c838;
  --c-green-dark: #6f8c00;
  --c-blue: #4671ba;
  --c-violet: #5f62c2;
  --c-violet-soft: #f4f4f8;
  --c-orange: #fc9246;
  --c-orange-h: #fca15f;
  --c-grey-band: #d5d5d5;
  --c-grey-page: #e8e8e8;
  --c-footer: #6e6e6e;
  --c-contact: #dcecf2;
  --c-dark: #2f2f33;

  --ff: 'Nunito Sans', 'Nunito Sans Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgb(20 20 40 / 6%), 0 8px 24px rgb(20 20 40 / 7%);
  --shadow-lg: 0 2px 4px rgb(20 20 40 / 6%), 0 18px 48px rgb(20 20 40 / 12%);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 96px;
  --topbar-h: 39px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: .015em;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--c-violet); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--c-blue); }
h1, h2, h3, h4 { color: var(--c-heading); line-height: 1.2; margin: 0 0 .6em; font-weight: 400; letter-spacing: .01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
address { font-style: normal; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--c-violet); outline-offset: 2px; border-radius: 3px; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.center { text-align: center; }
.muted { color: var(--c-muted); font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--c-dark); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(860px + 2 * var(--gutter)); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section--flush-top { padding-top: 0; }
.section--light { background: var(--c-white); }
.eyebrow { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-green-dark); margin-bottom: .4rem; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--c-orange); --fg: #262626;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .72em 1.5em; min-height: 44px;
  border: 2px solid var(--bg); border-radius: var(--radius);
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; line-height: 1.2;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { --bg: var(--c-orange-h); color: var(--fg); transform: translateY(-1px); box-shadow: 0 6px 18px rgb(252 146 70 / 30%); }
.btn:active { transform: none; }
.btn--sm { font-size: .78rem; padding: .55em 1.1em; min-height: 38px; }
.btn--lg { font-size: .95rem; padding: .95em 1.9em; }
.btn--block { width: 100%; }
.btn--grey { --bg: #404040; --fg: #fff; }
.btn--grey:hover { --bg: #2b2b2b; color: #fff; box-shadow: 0 6px 18px rgb(0 0 0 / 20%); }
.btn--outline { --bg: transparent; --fg: var(--c-heading); border-color: currentColor; }
.btn--outline:hover { --bg: var(--c-heading); color: #fff; border-color: var(--c-heading); box-shadow: none; }
.btn .icon { width: 1.1em; height: 1.1em; }

/* ---------- Trenner ---------- */
.sep { width: 140px; height: 2px; background: var(--c-green); margin: 1.1rem auto 1.6rem; border-radius: 2px; }
.sep--left { margin-left: 0; width: 120px; }
.sep--dark { background: var(--c-text); width: 150px; }
.sep--grey { background: #c9c9d2; width: min(330px, 60%); height: 1px; }
.sep--bolt { display: flex; align-items: center; gap: .6rem; width: 170px; height: auto; background: none; color: var(--c-green); }
.sep--bolt span { flex: 1; height: 2px; background: currentColor; border-radius: 2px; opacity: .8; }
.sep--bolt .icon { width: 22px; height: 22px; fill: currentColor; stroke: none; }

/* ---------- Topbar & Header ---------- */
/* Topbar + Header sind gemeinsam fixiert: Beim Scrollen fährt die Topbar nach oben weg und der Header
   schrumpft, ohne den Seitenfluss zu verändern – sonst springt die Seite an der Schwelle hin und her.
   Kein backdrop-filter/transform/filter hier: das macht .site-head zum Bezugsrahmen für das
   position:fixed-Mobilmenü (.nav) – das Menü wäre dann nur so hoch wie der Kopfbereich. */
body { padding-top: calc(var(--topbar-h) + var(--header-h)); }
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--c-bg); transition: top .3s var(--ease), box-shadow .25s; }
.site-head.is-scrolled { top: calc(-1 * var(--topbar-h)); box-shadow: 0 1px 0 var(--c-line), 0 8px 30px rgb(20 20 40 / 7%); }
.site-head.is-scrolled:has(.topbar :focus-visible) { top: 0; }
.topbar { height: var(--topbar-h); font-size: .85rem; border-bottom: 1px solid var(--c-line); }
.topbar__in { display: flex; justify-content: flex-end; align-items: center; gap: 1.75rem; height: 100%; }
.topbar__claim { margin-right: auto; color: var(--c-muted); }
.topbar a { color: var(--c-text); text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: var(--c-violet); }
.topbar .icon { width: 1em; height: 1em; color: var(--c-green-dark); }

.header__in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: var(--header-h); transition: height .3s var(--ease); }
.is-scrolled .header__in { height: 72px; }
.logo { display: block; flex: none; }
.logo img { height: 74px; width: auto; transition: height .3s var(--ease); }
.is-scrolled .logo img { height: 56px; }

.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list > li > a {
  display: block; padding: .6rem .85rem; font-size: .88rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--c-text); text-decoration: none; border-radius: var(--radius); position: relative;
}
.nav__list > li > a::after {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px; background: var(--c-green);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__list > li > a:hover::after, .nav__list > li > a.is-active::after, .nav__list > li:focus-within > a::after { transform: scaleX(1); }
.nav__list > li > a.is-active { color: var(--c-heading); }
.nav__list > li:last-child > a { background: var(--c-orange); color: #262626; margin-left: 1.75rem; }
.nav__list > li:last-child > a::after { display: none; }
.nav__list > li:last-child > a:hover { background: var(--c-orange-h); }
.sub-toggle { display: none; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 270px; list-style: none; margin: 0; padding: .5rem;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border-top: 3px solid var(--c-green);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: .5rem .8rem; border-radius: 4px; color: var(--c-text); text-decoration: none; font-size: .92rem; }
.sub a:hover, .sub a.is-active { background: var(--c-violet-soft); color: var(--c-violet); }
.nav__mobile-contact { display: none; }

.burger { display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 11px 9px; border-radius: var(--radius); }
.burger span { display: block; height: 4px; background: var(--c-green); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 1080px) {
  :root { --header-h: 80px; }
  .topbar__claim { display: none; }
  .topbar__in { justify-content: center; }
  .logo img { height: 60px; }
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--nav-top, var(--header-h)); right: 0; bottom: 0; left: 0; background: var(--c-bg); overflow-y: auto; overscroll-behavior: contain; padding: 1rem var(--gutter) 2rem;
    /* kein translateX: fixierte Elemente außerhalb des Viewports erzeugen sonst horizontales Scrollen */
    opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--c-line); display: flex; flex-wrap: wrap; align-items: center; }
  .nav__list > li > a { flex: 1; padding: 1rem .25rem; font-size: 1rem; }
  .nav__list > li > a::after { display: none; }
  .nav__list > li:last-child { border: 0; margin-top: 1rem; }
  .nav__list > li:last-child > a { margin: 0; text-align: center; }
  .sub-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: none; color: var(--c-text); cursor: pointer; }
  .sub-toggle .icon { transition: transform .25s; }
  .sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .sub { position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 .75rem .5rem; opacity: 1; visibility: visible; transform: none; display: none; background: none; }
  .sub.is-open { display: block; }
  .has-sub:hover > .sub { display: none; }
  .has-sub:hover > .sub.is-open, .has-sub > .sub.is-open { display: block; }
  .nav__mobile-contact { display: grid; gap: .75rem; margin-top: 1.5rem; text-align: center; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
  .topbar a:last-child { display: none; }
}

/* ---------- Seitentitel ---------- */
.page-title { padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 6vw, 64px); text-align: center; }
.page-title__h { hyphens: auto; -webkit-hyphens: auto; font-size: clamp(2rem, 7vw, 3.5rem); font-weight: 300; text-transform: uppercase; letter-spacing: .03em; margin: 0; }
.page-title__sub { max-width: 720px; margin: 0 auto; font-size: 1.1rem; color: var(--c-muted); }

/* ---------- Seitentitel mit Hintergrundbild ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; text-align: center; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero__in { position: relative; padding-block: clamp(48px, 7vw, 96px); }
.page-hero__h { margin: 0; font-weight: 300; text-transform: uppercase; letter-spacing: .03em; hyphens: auto; -webkit-hyphens: auto; }
.page-hero__sub { margin: 0 auto; max-width: 900px; }
.page-hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(28px, 5vw, 72px); display: block; }

/* light – Leistungen */
.page-hero--light { min-height: clamp(340px, 42vw, 600px); background: #e9e9ec; }
.page-hero--light .page-hero__in { padding-bottom: clamp(72px, 10vw, 130px); }
.page-hero--light .page-hero__h { font-size: clamp(2.4rem, 6vw, 4.25rem); color: var(--c-text); }
.page-hero--light .sep { width: 190px; margin-block: 1.4rem 2.2rem; }
.page-hero--light .page-hero__sub { font-size: clamp(1.4rem, 3.2vw, 2.5rem); font-weight: 300; line-height: 1.2; color: var(--c-green); }

/* photo – Referenzen */
.page-hero--photo { min-height: clamp(260px, 29vw, 410px); margin: 0 clamp(0px, 2vw, 30px); border-radius: var(--radius-lg); background: #5d7a99; }
.page-hero--photo .page-hero__h { font-size: clamp(2.6rem, 8.5vw, 6.25rem); color: var(--c-bg); text-shadow: 0 2px 24px rgb(0 0 0 / 35%); }
.page-hero--photo .page-hero__sub { color: #fff; font-size: clamp(1.1rem, 2.4vw, 1.5rem); margin-top: .6rem; text-shadow: 0 1px 12px rgb(0 0 0 / 50%); }

/* banner – News */
.page-hero--banner { min-height: clamp(280px, 30vw, 424px); background: #2c3b40; }
.page-hero--banner .page-hero__in { display: grid; justify-items: center; gap: .9rem; }
.page-hero--banner .page-hero__h, .page-hero--banner .page-hero__sub { background: rgb(251 251 255 / 55%); color: var(--c-text); padding: .1em .4em; }
.page-hero--banner .page-hero__h { font-size: clamp(1.8rem, 4.4vw, 3rem); }
.page-hero--banner .page-hero__sub { font-size: clamp(1.05rem, 2vw, 1.5rem); line-height: 1.3; }
.page-hero--banner .sep { display: none; }

/* ---------- Abschnittsköpfe ---------- */
.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head__h { font-size: clamp(1.9rem, 4.5vw, 2.75rem); font-weight: 300; text-transform: uppercase; letter-spacing: .03em; margin: 0; }
.section-head__intro { margin: 0 auto; max-width: 640px; }

/* ---------- Hero-Slider ---------- */
.hero { padding-top: clamp(12px, 2vw, 16px); }
.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #ddd; aspect-ratio: 2 / 1; }
.slider__track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img, .slide a { width: 100%; height: 100%; object-fit: cover; }
.slider__nav {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%; width: 52px; height: 52px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgb(255 255 255 / 80%); color: var(--c-text); cursor: pointer; transition: background .2s, transform .2s;
}
.slider__nav:hover { background: #fff; transform: scale(1.06); }
.slider__nav .icon { width: 26px; height: 26px; }
.slider__nav--prev { left: 16px; }
.slider__nav--next { right: 16px; }
.slider__dots { position: absolute; z-index: 2; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.slider__dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 0; background: rgb(255 255 255 / 60%); cursor: pointer; transition: background .2s, width .2s; }
.slider__dots button[aria-current="true"] { background: #fff; width: 28px; border-radius: 6px; }
@media (max-width: 640px) {
  .slider__nav { width: 38px; height: 38px; }
  .slider__nav--prev { left: 8px; } .slider__nav--next { right: 8px; }
}

/* ---------- Intro ---------- */
.intro__h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 300; margin: 0; }
.intro__h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 300; margin: .4rem 0 0; }
.intro__text { font-size: 1.05rem; }
.intro__text p { margin-bottom: .9em; }

/* ---------- Vertrauens-Leiste ---------- */
/* Eine durchgehende Leiste mit Trennlinien statt vier loser Karten; Icons als Siegel mit Doppelring */
.trust { padding-bottom: clamp(40px, 6vw, 72px); }
.trust__list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border-top: 3px solid var(--c-green); }
.trust__item + .trust__item { border-left: 1px solid var(--c-line); }
.trust__box { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 2rem 1.25rem 1.8rem; text-align: center; color: var(--c-text); text-decoration: none; }
.trust__seal {
  display: grid; place-items: center; flex: none; width: 66px; height: 66px; margin-bottom: 1.1rem; border-radius: 50%;
  border: 1.5px solid var(--c-green); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgb(167 210 0 / 45%);
  color: var(--c-green-dark); transition: background-color .25s, color .25s;
}
.trust__seal .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.trust__txt { display: block; }
.trust__t { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1.45; color: var(--c-heading); text-wrap: balance; transition: color .2s; }
.trust__s { display: block; margin-top: .4rem; font-size: .88rem; line-height: 1.5; color: var(--c-muted); text-wrap: balance; }
a.trust__box:hover { color: var(--c-text); }
a.trust__box:hover .trust__seal { background: var(--c-green); color: #fff; box-shadow: inset 0 0 0 4px #fff; }
a.trust__box:hover .trust__t { color: var(--c-violet); }
@media (max-width: 980px) {
  .trust__list { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(odd) { border-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--c-line); }
}
@media (max-width: 520px) {
  .trust__list { grid-template-columns: 1fr; }
  .trust__item + .trust__item { border-left: 0; border-top: 1px solid var(--c-line); }
  .trust__box { flex-direction: row; gap: 1rem; padding: 1.1rem 1.2rem; text-align: left; }
  .trust__seal { width: 54px; height: 54px; margin: 0; }
  .trust__seal .icon { width: 24px; height: 24px; }
  .trust__s { margin-top: .15rem; }
}

/* ---------- Info-Leiste (Büro / Mail / Zeiten) ---------- */
.infobar { background: var(--c-bg); padding-block: clamp(28px, 4vw, 40px); border-top: 1px solid var(--c-line); }
.infobar__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.infobar__item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: .5rem 1rem; }
.infobar__item + .infobar__item { border-left: 1px solid currentColor; border-color: rgb(64 64 64 / 55%); }
.infobar__label { display: inline-flex; align-items: center; gap: .45em; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.infobar__label .icon { width: 1em; height: 1em; color: var(--c-green-dark); }
.infobar__value { font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: var(--c-heading); text-decoration: none; letter-spacing: .02em; overflow-wrap: anywhere; }
a.infobar__value:hover { color: var(--c-violet); }
.infobar--grey { background: var(--c-grey-band); border: 0; }
.infobar--dark { background: var(--c-footer); color: #fff; border: 0; }
.infobar--dark .infobar__value, .infobar--dark .infobar__label .icon { color: #fff; }
.infobar--dark .infobar__item + .infobar__item { border-color: rgb(255 255 255 / 45%); }
@media (max-width: 760px) {
  .infobar__grid { grid-template-columns: 1fr; gap: .75rem; }
  .infobar__item + .infobar__item { border-left: 0; border-top: 1px solid rgb(64 64 64 / 25%); padding-top: 1rem; }
}

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--c-grey-band); padding-block: clamp(32px, 5vw, 48px); }
.cta-band__in { display: flex; align-items: center; justify-content: center; gap: clamp(1.25rem, 5vw, 3.5rem); flex-wrap: wrap; text-align: center; }
.cta-band__text { margin: 0; font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 300; color: var(--c-heading); line-height: 1.25; }

/* ---------- Leistungs-Karten ---------- */
.services { background: var(--c-bg); }
.services--alt { background: var(--c-white); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.svc-card__link {
  height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2.4rem 1.6rem 2rem;
  background: transparent; border-radius: var(--radius-lg); color: var(--c-text); text-decoration: none;
  transition: background .25s, box-shadow .25s, transform .25s var(--ease);
}
.svc-card__link:hover { background: #fff; box-shadow: var(--shadow-lg); transform: translateY(-4px); color: var(--c-text); }
.services--alt .svc-card__link { background: var(--c-bg); }
.svc-card__icon {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; border: 1.5px solid var(--c-orange); color: var(--c-green);
  margin-bottom: 1.3rem; transition: background .25s, color .25s, border-color .25s;
}
.svc-card__icon .icon { width: 32px; height: 32px; stroke-width: 1.6; }
.svc-card__link:hover .svc-card__icon { background: var(--c-orange); border-color: var(--c-orange); color: #fff; }
.svc-card__title { font-size: 1.45rem; font-weight: 400; margin-bottom: .5rem; }
.svc-card__text { flex: 1; margin-bottom: 1.4rem; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }

.tesla-banner {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; overflow: hidden; border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow); color: var(--c-text); text-decoration: none; transition: box-shadow .25s, transform .25s var(--ease);
}
.tesla-banner:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: var(--c-text); }
.tesla-banner img { width: 100%; height: 100%; object-fit: cover; }
.tesla-banner__body { display: grid; gap: .8rem; justify-items: start; padding: clamp(24px, 4vw, 48px); }
.tesla-banner__h { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 400; color: var(--c-heading); line-height: 1.2; }
@media (max-width: 820px) { .tesla-banner { grid-template-columns: 1fr; } }

/* ---------- Kontaktbereich & Formulare ---------- */
.contact { background: var(--c-contact); padding-block: clamp(56px, 8vw, 104px); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.55fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact__h { font-size: clamp(1.6rem, 3.4vw, 2rem); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; margin: 0; }
.contact__facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .55rem; }
.contact__facts li { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.contact__facts .icon { color: var(--c-green-dark); stroke-width: 2.5; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

.form { position: relative; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .95rem; margin-bottom: .35rem; font-weight: 600; }
.field abbr { text-decoration: none; color: #b3261e; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--c-text); letter-spacing: normal;
  padding: .8rem .95rem; min-height: 48px; border: 1.5px solid #c3c9cc; border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--c-violet); box-shadow: 0 0 0 3px rgb(95 98 194 / 22%); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: .85rem; min-height: 0; }
.field__error:empty { display: none; }
.form__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-top: 1.4rem; flex-wrap: wrap; }
.form__captcha:not(:empty) { margin-top: 1.2rem; }
.form__note { font-size: .82rem; color: var(--c-muted); margin: 0; flex: 1 1 280px; line-height: 1.55; }
.form button[type="submit"][disabled] { opacity: .65; cursor: progress; }
.form__msg { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1.25rem; padding: 1rem 1.2rem; border-radius: var(--radius); line-height: 1.55; }
.form__msg p { margin: 0; }
.form__msg .icon { width: 1.5em; height: 1.5em; margin-top: .05em; }
.form__msg--ok { background: rgb(167 210 0 / 18%); border: 1px solid rgb(111 140 0 / 45%); }
.form__msg--ok .icon { color: var(--c-green-dark); }
.form__msg--err { background: #fdecea; border: 1px solid #f1b0aa; }
.form__msg--err .icon { color: #b3261e; }
.form.is-sent .form__grid, .form.is-sent .form__foot { display: none; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--c-footer); color: #fff; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(48px, 7vw, 80px); }
.footer__h { color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: 1.2rem; letter-spacing: .02em; }
.footer address, .footer p { line-height: 1.8; }
.footer__hours { opacity: .9; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer__links a { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.footer__brand { display: flex; justify-content: center; align-items: flex-start; }
.footer__brand img { width: 170px; background: #fff; border-radius: var(--radius-lg); padding: 14px 16px; }
.copyright { background: #fff; color: var(--c-text); font-size: .85rem; text-align: center; padding-block: 1.25rem; }
.copyright a, .copyright a:hover { color: #111; }
@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; justify-content: flex-start; order: -1; }
}
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; display: grid; place-items: center;
  background: #404040; color: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-dark); color: #fff; }
.call-fab { display: none; }
@media (max-width: 760px) {
  .call-fab {
    position: fixed; left: 16px; bottom: 16px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: var(--c-orange); color: #262626; box-shadow: 0 8px 24px rgb(252 146 70 / 45%);
  }
  .call-fab .icon { width: 26px; height: 26px; }
}

/* ---------- Leistungsseite ---------- */
.svc-page { background: var(--c-grey-page); }
.svc-hero { padding-top: clamp(16px, 3vw, 32px); }
.svc-hero__box { background: var(--c-bg); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 56px) clamp(40px, 6vw, 72px); text-align: center; }
.svc-hero__h { font-size: clamp(1.6rem, 7vw, 3.5rem); font-weight: 300; text-transform: uppercase; letter-spacing: .03em; margin: .8rem 0 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.svc-hero__sub { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 300; margin-bottom: 1.6rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); text-align: center; }
.feature { background: var(--c-violet-soft); border: 2px solid var(--c-violet); border-radius: var(--radius); padding: 1.8rem 1.4rem 1.6rem; color: var(--c-violet); }
.feature p { margin: 0; }
.feature__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto .9rem; border-radius: 50%; background: var(--c-orange); color: #fff; }
.feature__icon .icon { width: 26px; height: 26px; }
.feature__title { color: #c55a12; font-size: 1.3rem; font-weight: 600; margin-bottom: .5rem; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

.crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .5rem; list-style: none; padding: 0; margin: 0; font-size: .85rem; color: var(--c-muted); }
.crumbs li + li::before { content: '›'; margin-right: .5rem; color: #aaa; }
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-violet); text-decoration: underline; }

.wave-cta { --above: var(--c-grey-page); position: relative; margin-top: -1px; }
.section--light + .wave-cta { --above: var(--c-white); }
.wave-cta__curve { width: 100%; height: clamp(30px, 5vw, 70px); display: block; fill: var(--c-orange); background: var(--above); }
.wave-cta__body { background: var(--c-orange); padding-block: clamp(16px, 3vw, 28px) clamp(28px, 4vw, 44px); margin-top: -1px; }
.wave-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.wave-cta__text { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.3; color: #262626; max-width: 720px; }
.wave-cta__actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.wave-cta__phone { display: inline-flex; align-items: center; gap: .5rem; color: #262626; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.wave-cta__phone:hover { color: #000; text-decoration: underline; }

.svc-body { padding-top: clamp(32px, 5vw, 56px); }
.svc-body__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(20px, 3vw, 36px); align-items: start; }
.svc-aside { position: sticky; top: calc(72px + 20px); display: grid; gap: 1.25rem; }
@media (max-width: 1000px) {
  .svc-body__grid { grid-template-columns: 1fr; }
  .svc-aside { position: static; order: -1; }
  .svc-aside .toc { display: none; }
}

.card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 52px); }
.aside-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.5rem; }
.aside-card__h { font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: grid; gap: .1rem; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 1.6rem 1fr; padding: .35rem .5rem; border-radius: 4px; color: var(--c-text); text-decoration: none; font-size: .88rem; line-height: 1.4; border-left: 2px solid transparent; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--c-muted); font-size: .78rem; padding-top: .1em; }
.toc a:hover { background: var(--c-violet-soft); color: var(--c-violet); }
.toc a.is-current { border-left-color: var(--c-green); background: rgb(167 210 0 / 10%); color: var(--c-heading); }
.aside-contact p { font-size: .95rem; }
.aside-contact__line { display: flex; align-items: flex-start; gap: .6rem; color: var(--c-text); text-decoration: none; margin-bottom: .7rem; font-weight: 600; overflow-wrap: anywhere; line-height: 1.5; }
.aside-contact__line .icon { color: var(--c-green-dark); margin-top: .1em; }
a.aside-contact__line:hover { color: var(--c-violet); }
.aside-contact .btn { margin-top: .5rem; }

/* ---------- Fließtext (Prose) ---------- */
.prose { font-size: 1.02rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); font-weight: 400; margin: 2.4em 0 .9em; padding-bottom: .55em; position: relative; }
.prose h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 180px; max-width: 50%; height: 2px; background: var(--c-green); border-radius: 2px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; font-weight: 600; margin: 1.8em 0 .6em; }
.prose ul { list-style: none; padding: 0; display: grid; gap: .35rem; }
.prose ul li { position: relative; padding-left: 1.8rem; }
.prose ul.cols { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); column-gap: 1.5rem; }
.prose ul li::before {
  content: ''; position: absolute; left: .15rem; top: .45em; width: 1rem; height: 1rem; border-radius: 50%;
  background: rgb(167 210 0 / 22%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f8c00' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.prose ol { padding-left: 1.4rem; display: grid; gap: .35rem; }
.prose ol li::marker { color: var(--c-green-dark); font-weight: 700; }
.prose img { border-radius: var(--radius); margin: 2rem 0; width: 100%; }
.prose figure { margin: 2rem 0; }
.prose figure img { margin: 0; }
.prose figcaption { font-size: .88rem; color: var(--c-muted); margin-top: .6rem; }
.prose .figure--portrait { float: right; width: min(260px, 42%); margin: .4rem 0 1.4rem 2rem; }
.prose .figure--portrait + h2 { clear: both; }
.prose h2 { clear: both; }
@media (max-width: 560px) { .prose .figure--portrait { float: none; width: 70%; margin: 1.5rem auto; } }
.prose--plain h2::after { left: 0; }
.figure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.figure-grid--2 { grid-template-columns: 1fr 1fr; }
.figure-grid figure { margin: 0; }
.figure-grid img { aspect-ratio: 4 / 3; object-fit: cover; }
.figure-grid--2 img { aspect-ratio: auto; object-fit: contain; background: #1c1c26; max-height: 520px; }
@media (max-width: 700px) { .figure-grid, .figure-grid--2 { grid-template-columns: 1fr; } }
.prose-cta { margin-top: 3rem; padding: 1.8rem; border-radius: var(--radius-lg); background: var(--c-contact); text-align: center; clear: both; }
.prose-cta p { font-size: clamp(1.2rem, 2.4vw, 1.45rem); color: var(--c-heading); }
.prose-cta__actions { display: flex; justify-content: center; gap: .9rem; flex-wrap: wrap; }
.legal { overflow-wrap: anywhere; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal h3 { font-size: 1.2rem; }
.legal h4 { font-size: 1.05rem; font-weight: 700; margin-top: 1.4em; }

/* ---------- Referenzen ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: clamp(24px, 4vw, 40px); }
.filter { border: 1.5px solid #cfd0d8; background: #fff; color: var(--c-text); border-radius: 999px; padding: .5rem 1.1rem; min-height: 42px; cursor: pointer; font-weight: 600; transition: all .2s; }
.filter span { display: inline-block; min-width: 1.5em; margin-left: .35em; padding: 0 .4em; border-radius: 999px; background: var(--c-violet-soft); font-size: .8rem; }
.filter:hover { border-color: var(--c-violet); color: var(--c-violet); }
.filter.is-active { background: var(--c-heading); border-color: var(--c-heading); color: #fff; }
.filter.is-active span { background: rgb(255 255 255 / 20%); }
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); margin-bottom: 2.5rem; }
.ref-card[hidden] { display: none; }
/* Karte zeigt nur Bild + „Projekt ansehen“. Bei Hover/Fokus rutscht das Bild etwas hoch und
   die Projektinfos fahren von unten über das Bild (Höhe per grid-template-rows 0fr → 1fr). */
.ref-card__link { position: relative; display: block; height: 100%; padding-bottom: 3.3rem; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); color: var(--c-text); text-decoration: none; transition: box-shadow .3s, transform .3s var(--ease); }
.ref-card__link:hover, .ref-card__link:focus-visible { box-shadow: var(--shadow-lg); transform: translateY(-4px); color: var(--c-text); }
.ref-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.ref-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ref-card__link:hover .ref-card__media img, .ref-card__link:focus-visible .ref-card__media img { transform: translateY(-6%) scale(1.1); }
.ref-card__body { position: absolute; left: 0; right: 0; bottom: 0; display: block; background: #fff; }
.ref-card__info { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease) .1s; }
.ref-card__info-in { display: flex; flex-direction: column; gap: .45rem; min-height: 0; overflow: hidden; padding-inline: 1.4rem; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .45s var(--ease); }
.ref-card__info-in::before { content: ''; flex: none; height: .6rem; }
.ref-card__link:hover .ref-card__info, .ref-card__link:focus-visible .ref-card__info { grid-template-rows: 1fr; }
.ref-card__link:hover .ref-card__info-in, .ref-card__link:focus-visible .ref-card__info-in { opacity: 1; transform: none; transition-delay: .2s; }
.ref-card__tags { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #4f6400; }
.ref-card__tags .tag { all: unset; }
.ref-card__tags .tag + .tag::before { content: '·'; margin-inline: .45em; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 4px; background: rgb(167 210 0 / 18%); color: #4f6400; }
.ref-card__title { font-size: 1.15rem; font-weight: 600; margin: 0; line-height: 1.35; }
.ref-card__fact { font-size: .88rem; line-height: 1.5; color: var(--c-muted); }
.ref-card__more { display: flex; align-items: center; gap: .4rem; height: 3.3rem; padding-inline: 1.4rem; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-violet); }
.ref-card__more .icon { transition: transform .2s; }
.ref-card__link:hover .ref-card__more .icon, .ref-card__link:focus-visible .ref-card__more .icon { transform: translateX(4px); }
/* Touchgeräte haben kein Hover: Titel immer zeigen, Kategorien und Eckdaten weglassen */
@media (hover: none) {
  .ref-card__info { grid-template-rows: 1fr; }
  .ref-card__info-in { opacity: 1; transform: none; }
  .ref-card__tags, .ref-card__fact { display: none; }
}
@media (max-width: 960px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ref-grid { grid-template-columns: 1fr; } }
.refs-teaser { background: #fff; }

.ref-hero { padding-block: clamp(28px, 5vw, 56px) clamp(40px, 6vw, 72px); }
.ref-hero .crumbs ol { justify-content: flex-start; margin-bottom: 1.5rem; }
.ref-hero__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.ref-hero__h { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 300; margin: .9rem 0 0; }
.ref-hero__cover { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.ref-hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.facts-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.5rem 1.6rem; }
.facts-card__h { font-size: 1.05rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.facts-card__more { margin: 1rem 0 0; font-weight: 600; }
.facts-card__more a { display: inline-flex; gap: .4rem; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; line-height: 1.55; }
.checklist .icon { color: var(--c-green-dark); stroke-width: 2.6; margin-top: .15em; }
@media (max-width: 860px) { .ref-hero__grid { grid-template-columns: 1fr; } .ref-hero__cover { order: -1; } }

.gallery__h { font-size: 1.6rem; font-weight: 300; text-transform: uppercase; letter-spacing: .04em; }
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery__item { break-inside: avoid; margin: 0 0 16px; }
.gallery__item a { display: block; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: #ddd; }
.gallery__item img { width: 100%; transition: transform .5s var(--ease), opacity .2s; }
.gallery__item a:hover img { transform: scale(1.03); }
.gallery__item figcaption { font-size: .85rem; color: var(--c-muted); padding: .4rem .1rem 0; }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--c-line); }
.pager__link { display: flex; align-items: center; gap: .8rem; color: var(--c-text); text-decoration: none; font-weight: 600; line-height: 1.35; }
.pager__link small { display: block; font-weight: 400; color: var(--c-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.pager__link--next { justify-content: flex-end; text-align: right; }
.pager__link:hover { color: var(--c-violet); }
.pager__all { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
@media (max-width: 700px) { .pager { grid-template-columns: 1fr; text-align: center; } .pager__link, .pager__link--next { justify-content: center; text-align: center; } }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgb(12 12 16 / 92%); display: grid; place-items: center; padding: 56px 16px; opacity: 0; transition: opacity .25s; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 140px); width: auto; border-radius: 4px; box-shadow: 0 20px 60px rgb(0 0 0 / 50%); }
.lightbox__cap { color: #ddd; text-align: center; margin-top: .8rem; font-size: .95rem; }
.lightbox button { position: absolute; border: 0; background: rgb(255 255 255 / 12%); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: rgb(255 255 255 / 25%); }
.lightbox .icon { width: 26px; height: 26px; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 14px; top: 50%; translate: 0 -50%; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.news-card__link { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); color: var(--c-text); text-decoration: none; transition: box-shadow .25s, transform .25s var(--ease); }
.news-card__link:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); color: var(--c-text); }
.news-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card__link:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { display: flex; flex-direction: column; gap: .55rem; padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.news-card__date { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--c-muted); }
.news-card__date .icon { width: 1em; height: 1em; }
.news-card__title { font-size: 1.2rem; font-weight: 600; margin: 0; line-height: 1.35; }
.news-card__text { font-size: .93rem; flex: 1; }
.news-card__more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-violet); }
.news-card--featured { margin-bottom: clamp(16px, 2.4vw, 28px); }
.news-card--featured .news-card__link { display: grid; grid-template-columns: 1.3fr 1fr; }
.news-card--featured .news-card__media { aspect-ratio: auto; min-height: 320px; }
.news-card--featured .news-card__body { padding: clamp(24px, 4vw, 48px); justify-content: center; }
.news-card--featured .news-card__title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 400; }
.news-card--featured .news-card__text { flex: 0; }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .news-card--featured .news-card__link { grid-template-columns: 1fr; } .news-card--featured .news-card__media { min-height: 0; aspect-ratio: 16 / 10; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

.post__head { padding-block: clamp(28px, 5vw, 56px) clamp(20px, 3vw, 32px); }
.post__head .crumbs ol { justify-content: flex-start; margin-bottom: 1.5rem; }
.post__date { display: inline-flex; align-items: center; gap: .45rem; color: var(--c-muted); font-size: .9rem; margin-bottom: .6rem; }
.post__date .icon { width: 1em; height: 1em; }
.post__h { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 300; }
.post__cover { margin: 0 0 clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.post__cover img { width: 100%; height: 100%; object-fit: cover; }
.post .prose { padding-bottom: 1rem; }
.post__ref { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; padding: .9rem; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); text-decoration: none; color: var(--c-text); font-weight: 600; }
.post__ref img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius); }
.post__ref span { flex: 1; line-height: 1.4; }
.post__ref small { display: block; color: var(--c-muted); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.post__ref:hover { color: var(--c-violet); box-shadow: var(--shadow-lg); }
.post__back { margin: 2rem 0 clamp(48px, 7vw, 80px); }
.post__back a { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; text-decoration: none; }

/* ---------- Team ---------- */
.team-hero { margin: 0 0 clamp(32px, 5vw, 56px); }
.team-hero img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.team-hero figcaption { text-align: center; color: var(--c-muted); font-size: .9rem; margin-top: .8rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.two-col > div { padding-inline: clamp(0px, 2.5vw, 32px); }
.two-col > div + div { border-left: 2px solid var(--c-green); }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } .two-col > div + div { border-left: 0; } .two-col > div { padding: 0; } }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: clamp(24px, 5vw, 64px); }
.person { text-align: center; }
.person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.person__name { font-size: 1.35rem; font-weight: 600; margin: 0; }
.person__role { color: var(--c-green-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; margin-bottom: .8rem; }
@media (max-width: 560px) { .people { grid-template-columns: minmax(0, 320px); } }
.facts { background: var(--c-footer); color: #fff; padding-block: clamp(36px, 5vw, 56px); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.facts strong { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 300; line-height: 1.2; hyphens: manual; }
.facts span { font-size: .9rem; opacity: .9; }
@media (max-width: 860px) { .facts__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Karriere ---------- */
.job-intro { margin-bottom: clamp(32px, 5vw, 48px); }
.job-intro p { max-width: 860px; }
/* Desktop: eine Zeile über die volle Breite; schmaler: Umbruch nur nach dem Gedankenstrich */
.job-intro__h { font-size: clamp(1.5rem, 3.6vw, 2.8rem); font-weight: 300; text-transform: uppercase; letter-spacing: .02em; margin: 0; text-wrap: balance; }
@media (min-width: 420px) { .job-intro__h span { white-space: nowrap; } }
.job-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); }
.job-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 3.5vw, 40px); border-top: 4px solid var(--c-green); }
.job-card__h { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1.3rem; }
.job-card__h .icon { color: var(--c-orange); width: 1.5em; height: 1.5em; }
@media (max-width: 860px) { .job-cards { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px); counter-reset: s; }
.steps li { position: relative; text-align: center; padding: 1.5rem 1rem; }
.steps li strong { display: block; font-size: 1.2rem; color: var(--c-heading); }
.steps li > span:last-child { color: var(--c-muted); }
.steps__n { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--c-orange); color: #262626; font-size: 1.6rem; font-weight: 700; }
.steps li + li::before { content: ''; position: absolute; top: calc(1.5rem + 32px); right: calc(50% + 48px); width: calc(100% - 96px + clamp(16px, 3vw, 32px)); height: 2px; background: repeating-linear-gradient(90deg, var(--c-green) 0 8px, transparent 8px 14px); }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } .steps li + li::before { display: none; } }
.apply { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.apply__aside { display: grid; gap: 1.25rem; position: sticky; top: 92px; }
.apply__person { width: 110px; height: 110px; object-fit: cover; object-position: center 18%; border-radius: 50%; margin-bottom: .8rem; }
.job-facts { margin: 0; }
.job-facts dt { font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-heading); }
.job-facts dd { margin: 0 0 .9rem; font-size: .95rem; }
@media (max-width: 960px) { .apply { grid-template-columns: 1fr; } .apply__aside { position: static; } }

/* ---------- Kontaktseite ---------- */
.contact-page { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.contact-page__intro .aside-card { margin-top: 1.8rem; }
.contact-page__intro .btn { margin-top: .6rem; }
@media (max-width: 900px) { .contact-page { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound__code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 200; line-height: 1; color: var(--c-green); margin: 0 0 .5rem; }
.notfound__links { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* Seitenwechsel weich überblenden statt hart neu aufbauen (Chrome/Edge/Safari, sonst ohne Wirkung) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* ---------- Scroll-Animationen (nur mit JS, respektiert reduzierte Bewegung) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-head, .footer, .to-top, .call-fab, .contact, .wave-cta, .svc-aside, .slider__nav, .slider__dots { display: none !important; }
  body { background: #fff; padding-top: 0; }
  .card { box-shadow: none; padding: 0; }
}
