/* ==========================================================================
   DEK & Partner GmbH - Stylesheet
   Aufbau: 1 Tokens · 2 Reset · 3 Typografie · 4 Layout · 5 Buttons
           6 Header + Vollbild-Menü · 7 Hero · 8 Dienstleistungen
           9 Referenzen · 10 Über uns + Kennzahlen · 11 Regionen
           12 Ansprechpartner · 13 Kontakt + Formular · 14 Footer
           15 Mobile-Leiste · 16 Reveal · 17 Unterseiten · 18 Rechtsseiten

   Signatur: die schräge Kante aus dem Logo (der hellblaue Strich im K)
   taucht als abgeschrägte Button-Kante und als Akzentlinie wieder auf.
   ========================================================================== */

@import url('../fonts/fonts.css');

/* 1 - Tokens ============================================================== */

:root {
  /* Aus dem Logo: Grau #58595b, Hellblau #97c6e8 */
  --ink:      #1c2128;
  --ink-70:   #4a535e;   /* 7.4:1 auf Weiss */
  --ink-50:   #5f6975;   /* 5.4:1 auf Weiss, 5.0:1 auf --tint */
  --grey:     #58595b;
  --sky:      #97c6e8;   /* nur dekorativ, nie als Textfarbe */
  --sky-100:  #e4f0fa;
  --tint:     #f3f7fb;
  --white:    #ffffff;

  /* Eine Akzentfarbe auf der ganzen Seite */
  --blue:      #1a5fc8;  /* 5.9:1 auf Weiss */
  --blue-dark: #154da3;
  --blue-text: #2b7fd6;  /* Hero-Italic, nur in Display-Grösse (>= 3:1) */

  --line:        rgba(28, 33, 40, 0.12);
  --line-strong: rgba(28, 33, 40, 0.24);
  --shadow:      0 18px 44px -20px rgba(26, 95, 200, 0.28);

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-display: clamp(2.35rem, 1.45rem + 3.8vw, 4.1rem);
  --fs-h2:      clamp(1.85rem, 1.35rem + 2vw, 2.85rem);
  --fs-h3:      clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --fs-h4:      1.0625rem;
  --fs-lead:    clamp(1.08rem, 1.02rem + 0.3vw, 1.28rem);
  --fs-body:    1rem;
  --fs-small:   0.9rem;
  --fs-eyebrow: 0.78rem;

  --section-y: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --gutter:    clamp(1.25rem, 0.6rem + 2.6vw, 3rem);
  --container: 1200px;

  --radius:    6px;   /* Buttons, Inputs */
  --radius-lg: 10px;  /* Kacheln, Bilder */

  --header-h: 76px;
  --skew: 0px;        /* Schräge Kante der Buttons, nur auf Mobil (siehe unten) */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 720px) {
  :root { --header-h: 64px; --skew: 14px; }
}

/* 2 - Reset =============================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--blue); text-decoration: none; }
a, button, input, select, textarea, summary, label { touch-action: manipulation; -webkit-tap-highlight-color: rgba(26, 95, 200, 0.12); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
summary { cursor: pointer; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--white);
  border-radius: var(--radius); transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* 3 - Typografie ========================================================== */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead { font-size: var(--fs-lead); color: var(--ink-70); line-height: 1.55; max-width: 34em; }
.muted { color: var(--ink-50); }
.small { font-size: var(--fs-small); }

.em-blue { color: var(--blue-text); font-style: italic; font-weight: 600; }

/* Kicker: kurze Linie plus gesperrte Versalien, wie im Mockup */
.kicker {
  display: inline-flex; align-items: center; gap: 0.85rem;
  margin: 0 0 1rem;
  font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue);
}
.kicker::before {
  content: ""; width: 2.4rem; height: 2px; background: var(--sky);
  transform: skewX(-30deg);
}
.kicker--plain::before { display: none; }
.kicker--after::before { display: none; }
.kicker--after::after { content: ""; width: 2.4rem; height: 2px; background: var(--sky); transform: skewX(-30deg); }
.section-head--kicker { text-align: center; margin-inline: auto; margin-bottom: 1.5rem; }
.kicker--center { justify-content: center; }
.kicker--center::after {
  content: ""; width: 2.4rem; height: 2px; background: var(--sky);
  transform: skewX(-30deg);
}

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.section-head p { color: var(--ink-70); font-size: 1.05rem; margin-top: 0.9rem; }
.section-head--row {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}

/* 4 - Layout ============================================================== */

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--tint); }
.section--line { border-top: 1px solid var(--line); }

/* 5 - Buttons ============================================================= */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.1rem; padding: 0.8rem 1.6rem 0.8rem 1.45rem;
  font-weight: 600; font-size: 0.98rem; line-height: 1.2; white-space: nowrap;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.18s var(--ease), background-color 0.18s, color 0.18s, box-shadow 0.18s;
  /* Signatur: rechte Kante schräg wie der K-Strich im Logo */
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--skew)) 100%, 0 100%);
  padding-right: calc(1.6rem + var(--skew) * 0.5);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); }

.btn--ghost {
  background: var(--white); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

.btn--tint { background: var(--sky-100); color: var(--ink); }
.btn--tint:hover { background: #d4e7f6; }

.btn--sm { min-height: 2.7rem; padding-block: 0.55rem; font-size: 0.92rem; }
.btn--block { width: 100%; }

/* Textlink mit Pfeil */
.arrow-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; color: var(--blue);
}
.arrow-link svg { width: 1em; height: 1em; transition: transform 0.2s var(--ease); }
.arrow-link:hover svg { transform: translateX(3px); }

/* 6 - Header + Vollbild-Menü ============================================== */

.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }

.header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: auto; height: 38px; }
@media (max-width: 720px) { .brand img { height: 32px; } }

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 0.5rem + 1.4vw, 2rem); }
.nav__link {
  font-weight: 500; font-size: 0.96rem; color: var(--ink);
  padding: 0.35rem 0; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.nav__link:hover { text-decoration: none; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 1rem; flex: none; }
.header__cta { display: inline-flex; }

/* Hamburger */
.nav-toggle {
  position: relative; z-index: 70;
  width: 44px; height: 44px; margin-right: -8px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 26px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s, width 0.2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

/* Vollbild-Menü: nummerierte Liste wie im Mockup */
.menu {
  position: fixed; inset: 0; z-index: 45; /* unter dem Header: Logo und X bleiben sichtbar */
  background: var(--white);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}
.menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

.menu__list { max-width: 42rem; margin-inline: auto; }
.menu__item {
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.menu.is-open .menu__item { opacity: 1; transform: none; }
.menu.is-open .menu__item:nth-child(1) { transition-delay: 0.05s; }
.menu.is-open .menu__item:nth-child(2) { transition-delay: 0.1s; }
.menu.is-open .menu__item:nth-child(3) { transition-delay: 0.15s; }
.menu.is-open .menu__item:nth-child(4) { transition-delay: 0.2s; }
.menu.is-open .menu__item:nth-child(5) { transition-delay: 0.25s; }
.menu.is-open .menu__item:nth-child(6) { transition-delay: 0.3s; }

.menu__link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: clamp(1.1rem, 0.6rem + 2vw, 1.6rem) 0;
  font-size: clamp(1.9rem, 1.3rem + 3vw, 3rem); font-weight: 700; letter-spacing: -0.025em;
  color: var(--ink);
}
.menu__link:hover { text-decoration: none; color: var(--blue); }
.menu__num {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.22em; color: var(--ink-50);
}
.menu__contact {
  max-width: 42rem; margin: 2.5rem auto 0;
  display: flex; flex-direction: column; gap: 0.6rem;
  font-size: 1.15rem; font-weight: 600;
}
.menu__contact a { color: var(--ink-70); overflow-wrap: anywhere; }

/* 7 - Hero ================================================================ */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfdff 0%, var(--white) 100%);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 48%) 1fr;
  align-items: center; gap: 2rem;
  min-height: min(680px, calc(100dvh - var(--header-h)));
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}
.hero__copy { position: relative; z-index: 2; max-width: 36rem; }
.hero__copy .kicker { margin-bottom: 1.4rem; }
.hero__copy h1 { margin-bottom: 1.25rem; }
.hero__copy .lead { margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__media {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 1;
  width: 58%;
  /* weicher Übergang ins Weiss, wie im Mockup */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 55%; }

/* Ladeanimation: Text und Bild kommen leicht versetzt */
.js .hero__copy > * { opacity: 0; transform: translateY(16px); animation: rise 0.7s var(--ease) forwards; }
.js .hero__copy > :nth-child(1) { animation-delay: 0.05s; }
.js .hero__copy > :nth-child(2) { animation-delay: 0.15s; }
.js .hero__copy > :nth-child(3) { animation-delay: 0.25s; }
.js .hero__copy > :nth-child(4) { animation-delay: 0.35s; }
.js .hero__media { opacity: 0; transform: translateX(28px); animation: slide 1s var(--ease) 0.15s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes slide { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: clamp(3rem, 2rem + 5vw, 5rem);
    padding-bottom: 3rem;
  }
  .hero__media {
    position: absolute; top: auto; left: 0; right: 0; bottom: 0; z-index: 0;
    width: 100%; max-width: none; height: 64%;
    opacity: 0.42;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
  }
  .hero__media img { object-position: 78% 60%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: space-between; padding-inline: 1.5rem 2.4rem; }
  .hero__actions .btn--ghost { align-self: flex-end; width: 88%; }
}

/* 8 - Dienstleistungen ==================================================== */

.services__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.service {
  position: relative;
  padding: 2.2rem 1.4rem 2.4rem;
  border-right: 1px solid var(--line-strong);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  text-align: center;
  color: var(--ink); text-decoration: none;
  transition: transform 0.25s var(--ease);
}
.service:last-child { border-right: 0; }
.service:hover { text-decoration: none; transform: translateY(-4px); }
.service__icon {
  width: 64px; height: 64px; color: var(--blue); margin-bottom: 0.5rem;
  transition: transform 0.25s var(--ease);
}
.service__icon svg { width: 100%; height: 100%; }
.service h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.3; }
.service__link { color: inherit; }
.service__link::after { content: ""; position: absolute; inset: 0; }
.service__link:hover { text-decoration: none; }
.service:has(.service__link:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.service__link:focus-visible { outline: none; }
.service p { color: var(--ink-70); font-size: 0.93rem; line-height: 1.6; max-width: 14.5rem; text-wrap: pretty; }

@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(2n) { border-right: 0; }
  .service:nth-child(-n+2) { border-bottom: 1px solid var(--line-strong); }
}
@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
  .service { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 1.4rem 0 1.5rem; flex-direction: row; flex-wrap: wrap; align-items: flex-start; text-align: left; }
  .service:last-child { border-bottom: 0; }
  .service__icon { width: 44px; height: 44px; margin-right: 0.4rem; }
  .service h3 { flex: 1; align-self: center; }
  .service p { flex-basis: 100%; max-width: none; }
}

/* 9 - Referenzen ========================================================== */

.logos {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.logo-tile {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 5 / 3;
  padding: 1.6rem 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.25s var(--ease);
}
.logo-tile img {
  max-height: 58px; width: auto; max-width: 100%; object-fit: contain;
  filter: grayscale(1); opacity: 0.72;
  transition: filter 0.25s, opacity 0.25s;
}
.logo-tile:hover { border-color: var(--sky); box-shadow: var(--shadow); }
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-tile--text {
  flex-direction: column;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--grey);
  text-align: center; line-height: 1.25;
}
.logo-tile--more[hidden] { display: none; }
.logo-tile--text small { display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-50); margin-top: 0.3rem; }

@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
  .logos { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .logo-tile { padding: 1.2rem; }
  .logo-tile img { max-height: 44px; }
}

/* 10 - Über uns + Kennzahlen ============================================== */

.about {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center;
}
.about__media {
  overflow: hidden; align-self: stretch; min-height: 420px;
  /* bis zum linken Bildschirmrand und ueber die ganze Sektionshoehe, wie im Mockup */
  margin-left: calc(-1 * max(var(--gutter), (100vw - var(--container)) / 2));
  margin-block: calc(-1 * var(--section-y));
}
.about__copy h2 { text-wrap: pretty; max-width: 11ch; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__copy h2 { margin-bottom: 1.1rem; }
.about__copy p { color: var(--ink-70); }
.about__founded {
  display: inline-block; margin-top: 1.2rem; padding: 0.45rem 0.9rem;
  background: var(--sky-100); color: var(--ink); font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  padding-right: 1.3rem;
}

.stats { display: flex; flex-direction: column; gap: 1.8rem; }
.stat { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; }
.stat__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: var(--radius); background: var(--sky-100); color: var(--blue);
}
.stat__icon svg { width: 28px; height: 28px; }
.stat__value {
  font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--ink-50); font-size: 0.93rem; margin-top: 0.15rem; }
.stat { grid-template-columns: 44px 1fr; gap: 0.9rem; }
.stat__icon { width: 44px; height: 44px; }
.stat__icon svg { width: 24px; height: 24px; }
.stats { gap: 1.5rem; }

@media (max-width: 980px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about__media { grid-row: span 2; aspect-ratio: 3 / 4; min-height: 0; margin: 0; border-radius: var(--radius-lg); }
  .about__copy h2 { max-width: none; }
  .stats { flex-direction: row; flex-wrap: wrap; gap: 1.4rem 2rem; }
}
@media (max-width: 640px) {
  .about { grid-template-columns: 1fr; }
  .about__media { grid-row: auto; aspect-ratio: 16 / 10; margin: 0; }
  .stats { flex-direction: column; gap: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
}

/* 10b - Warum DEK ======================================================== */

.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.reason { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.reason h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.reason p { color: var(--ink-70); font-size: 0.97rem; }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; gap: 1.4rem; } }

/* 11 - Regionen =========================================================== */

.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.region {
  position: relative;
  padding: 1.8rem 1.6rem 1.7rem;
  background: var(--white);
  border: 1px solid var(--line); border-top: 3px solid var(--blue);
  border-radius: var(--radius-lg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.region:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.region svg { width: 30px; height: 30px; color: var(--blue); margin-bottom: 0.9rem; }
.region h3 { margin: 0 0 0.9rem; font-size: 1.35rem; }
.region p { color: var(--ink-70); font-size: 0.97rem; line-height: 1.55; }
.region .lbl {
  display: block; margin-bottom: 0.3rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-50);
}
@media (max-width: 860px) {
  .regions { grid-template-columns: 1fr; gap: 1rem; }
  .region { padding: 1.4rem 1.3rem; }
}

/* 12 - Ansprechpartner ==================================================== */

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.person {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--white);
}
.person__avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sky-100); color: var(--blue);
  font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em;
  overflow: hidden;
}
.person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.person > div { min-width: 0; }
.person .name { display: block; font-size: 1.05rem; font-weight: 700; }
.person span { display: block; color: var(--ink-50); font-size: 0.93rem; }
.person a { display: block; margin-top: 0.3rem; font-size: 0.93rem; font-weight: 600; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }

/* 13 - Kontakt + Formular ================================================= */

.contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.contact__info { display: flex; flex-direction: column; gap: 1.6rem; }
.contact__info h2 { margin-bottom: 0.5rem; }
.contact__list { display: flex; flex-direction: column; gap: 1.1rem; }
.contact__row { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact__row svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 0.2rem; }
.contact__row .lbl { display: block; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-50); margin-bottom: 0.15rem; }
.contact__row > div { min-width: 0; }
.contact__row a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.contact__row span { color: var(--ink-70); }

.form {
  padding: clamp(1.4rem, 1rem + 2vw, 2.4rem);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.form__switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem;
  padding: 0.3rem; background: var(--tint); border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.form__switch label {
  position: relative; text-align: center; padding: 0.6rem 0.8rem;
  border-radius: 4px; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  color: var(--ink-70); transition: background-color 0.18s, color 0.18s;
}
.form__switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.form__switch input:checked + span { color: var(--white); }
.form__switch label:has(input:checked) { background: var(--blue); color: var(--white); }
.form__switch label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }

.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field label small { font-weight: 400; color: var(--ink-50); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder, .field textarea::placeholder { color: #7d8894; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 95, 200, 0.18);
}
.field [aria-invalid="true"] { border-color: #c0392b; }
.field textarea { min-height: 8rem; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a535e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.6rem;
}
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.4rem; }
.form__hint { font-size: 0.85rem; color: var(--ink-50); max-width: 26rem; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status {
  grid-column: 1 / -1; margin: 0; padding: 0.9rem 1rem; border-radius: var(--radius);
  font-size: 0.95rem; line-height: 1.5;
}
.form__status--ok { background: #e7f5ec; color: #14532d; border: 1px solid #b7e2c5; }
.form__status--error { background: #fdecea; color: #7f1d1d; border: 1px solid #f5c2bd; }
.form__status a { font-weight: 600; }

.form.is-sending .btn { opacity: 0.7; pointer-events: none; }
.form.is-sending .btn svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form.is-sent .form__switch, .form.is-sent .form__grid > .field, .form.is-sent .form__foot { display: none; }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact__info { order: 2; }
}
@media (max-width: 600px) {
  .form__grid { grid-template-columns: 1fr; }
  .form__switch label { font-size: 0.88rem; padding-inline: 0.4rem; }
}

/* 14 - Footer ============================================================= */

.footer { border-top: 1px solid var(--line); background: var(--white); }
.footer__top {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem 3rem; align-items: start;
  padding-block: 2.8rem 2.2rem;
}
.footer__brand img { height: 40px; width: auto; margin-bottom: 1.1rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.9rem; padding-top: 0.4rem; }
.footer__row { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0; font-size: 0.96rem; color: var(--ink-70); }
.footer__row svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 0.1rem; }
.footer__row a { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.footer__row--links { flex-direction: column; gap: 0.35rem; padding-left: 1.85rem; }
.footer__row--links a { font-weight: 400; color: var(--ink-50); font-size: 0.9rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem;
  padding-block: 1.2rem; border-top: 1px solid var(--line);
  font-size: 0.86rem; color: var(--ink-50);
}
.footer__bottom a { color: var(--ink-50); margin-left: 1.4rem; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; gap: 1.2rem; padding-block: 2.2rem 1.6rem; }
  .footer__col { padding-top: 0; }
  .footer__bottom { padding-bottom: 5.6rem; } /* Platz für Mobile-Leiste */
  .footer__bottom a { margin-left: 0; margin-right: 1.2rem; }
}

/* 15 - Mobile-Leiste ====================================================== */

.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  gap: 0.6rem;
}
.mobile-bar .btn { flex: 1; min-height: 2.9rem; padding-inline: 1rem; }
@media (max-width: 720px) {
  .mobile-bar { display: flex; }
  .header__cta { display: none; }
  body { padding-bottom: 0; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
}


/* 16 - Reveal ============================================================= */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-visible > :nth-child(1) { transition-delay: 0.06s; }
.js .reveal-stagger.is-visible > :nth-child(2) { transition-delay: 0.12s; }
.js .reveal-stagger.is-visible > :nth-child(3) { transition-delay: 0.18s; }
.js .reveal-stagger.is-visible > :nth-child(4) { transition-delay: 0.24s; }
.js .reveal-stagger.is-visible > :nth-child(5) { transition-delay: 0.30s; }
.js .reveal-stagger.is-visible > :nth-child(6) { transition-delay: 0.36s; }
.js .reveal-stagger.is-visible > :nth-child(7) { transition-delay: 0.42s; }
.js .reveal-stagger.is-visible > :nth-child(8) { transition-delay: 0.48s; }
.js .reveal-stagger.is-visible > :nth-child(9) { transition-delay: 0.54s; }
.js .reveal-stagger.is-visible > :nth-child(10) { transition-delay: 0.60s; }
.js .reveal-stagger.is-visible > :nth-child(11) { transition-delay: 0.66s; }
.js .reveal-stagger.is-visible > :nth-child(12) { transition-delay: 0.72s; }
.js .reveal-stagger.is-visible > :nth-child(13) { transition-delay: 0.78s; }
.js .reveal-stagger.is-visible > :nth-child(14) { transition-delay: 0.84s; }
.js .reveal-stagger.is-visible > :nth-child(15) { transition-delay: 0.90s; }
.js .reveal-stagger.is-visible > :nth-child(16) { transition-delay: 0.96s; }
.js .reveal-stagger.is-visible > :nth-child(17) { transition-delay: 1.02s; }
.js .reveal-stagger.is-visible > :nth-child(18) { transition-delay: 1.08s; }
.js .reveal-stagger.is-visible > :nth-child(19) { transition-delay: 1.14s; }
.js .reveal-stagger.is-visible > :nth-child(20) { transition-delay: 1.20s; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
.js .reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .hero__copy > *, .js .hero__media, .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}

/* 17 - Unterseiten ======================================================== */

.page-hero { background: var(--tint); border-bottom: 1px solid var(--line); }
.page-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); margin-bottom: 1rem; }
.page-hero .lead { margin-bottom: 1.8rem; }
.page-hero__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.88rem; color: var(--ink-50); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--ink-50); }
.breadcrumb span::before { content: "/"; margin-right: 0.4rem; }

.prose { max-width: 44rem; }
.prose p { color: var(--ink-70); font-size: 1.04rem; }
.prose h2 { margin: 2.2rem 0 0.8rem; }
.prose h2:first-child { margin-top: 0; }

.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 0.15rem; }
.checklist strong { display: block; margin-bottom: 0.15rem; }
.checklist span { color: var(--ink-70); font-size: 0.96rem; }
@media (max-width: 640px) { .checklist { grid-template-columns: 1fr; } }

.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.audience li {
  padding: 1.3rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.audience strong { display: block; margin-bottom: 0.3rem; }
.audience span { color: var(--ink-70); font-size: 0.93rem; }
@media (max-width: 900px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .audience { grid-template-columns: 1fr; } }

.faq { max-width: 48rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; font-weight: 600; font-size: 1.05rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg); transition: transform 0.2s var(--ease); margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 0 1.2rem; color: var(--ink-70); max-width: 42rem; }

.cta-band {
  background: var(--ink); color: var(--white);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { color: var(--white); max-width: 26em; }
.cta-band p { color: rgba(255, 255, 255, 0.72); margin-top: 0.6rem; max-width: 34em; }
.cta-band .btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.cta-band .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--white); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.related a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-lg);
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.related a:hover { text-decoration: none; border-color: var(--sky); box-shadow: var(--shadow); }
.related svg { width: 26px; height: 26px; color: var(--blue); flex: none; }
@media (max-width: 900px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .related { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--tint); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { padding: 0.6rem 0.2rem 0; font-size: 0.9rem; color: var(--ink-50); }
.gallery figure { aspect-ratio: auto; }
.gallery figure > div { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 860px) {
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__media { aspect-ratio: 16 / 9; }
}

/* 18 - Rechtsseiten ======================================================= */

.legal { max-width: 46rem; padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 0.7rem; }
.legal p, .legal li { color: var(--ink-70); }
.legal ul { list-style: disc; padding-left: 1.3rem; }
.legal li { margin-bottom: 0.3rem; }
