/* ==========================================================================
   MaWe Design – Stylesheet (nach Claude-Design-Vorlage)
   BEM, Custom Properties, keine externen Abhängigkeiten
   ========================================================================== */

/* ---------- Schrift (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --mw-bg: #ffffff;
  --mw-surface: #f6f8fa;
  --mw-text: #2a333c;      /* weicher als Schwarz */
  --mw-heading: #1f272f;   /* Überschriften minimal kräftiger */
  --mw-muted: #5b6570;
  --mw-border: #dde2e6;
  --mw-primary: #00b2e0;
  --mw-primary-50: color-mix(in oklch, white 94%, #00b2e0 6%);
  --mw-primary-100: color-mix(in oklch, white 85%, #00b2e0 15%);
  --mw-primary-600: color-mix(in oklch, #00b2e0 85%, black 15%);
  --mw-primary-700: color-mix(in oklch, #00b2e0 48%, black 52%);
  --mw-secondary: #b6137e;
  --mw-secondary-50: color-mix(in oklch, white 94%, #b6137e 6%);
  --mw-secondary-100: color-mix(in oklch, white 85%, #b6137e 15%);
  --mw-secondary-700: color-mix(in oklch, #b6137e 55%, black 45%);
  --mw-star: #f5a623;

  /* Rollen-Tokens (für Hell/Dunkel) */
  --mw-btn-bg: #2a333c;
  --mw-btn-fg: #ffffff;
  --mw-btn-hover: color-mix(in oklch, #00b2e0 48%, black 52%);
  --mw-secondary-hover: color-mix(in oklch, #b6137e 55%, black 45%);
  --mw-contact-from: #2a333c;
  --mw-contact-to: color-mix(in oklch, #2a333c 70%, #00b2e0 30%);
  --mw-shadow: rgb(0 0 0 / 0.15);
  color-scheme: light;

  --ff: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 8vw, 120px);
  --radius: 10px;
  --radius-card: 16px;
  --header-h: 72px;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  background: var(--mw-bg);
  color: var(--mw-text);
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: var(--mw-primary-700); text-decoration: none; }
a:hover { color: var(--mw-primary); }
h1, h2, h3 { font-family: var(--ff); text-wrap: balance; color: var(--mw-heading); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--mw-primary); outline-offset: 2px; border-radius: 4px; }
ul[role="list"] { list-style: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.visually-hidden {
  position: absolute !important;
  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: var(--gutter); top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: var(--radius);
  background: var(--mw-btn-bg); color: var(--mw-btn-fg); font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--mw-btn-fg); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--surface {
  background: var(--mw-surface);
  border-block: 1px solid var(--mw-border);
}
.section--tight-top { padding-top: 0; }

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mw-primary-700);
}
.heading-2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.text-lead {
  margin-top: 20px;
  max-width: 60ch;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--mw-muted);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}
.btn--lg { padding: 15px 28px; font-size: 15.5px; }
.btn--dark { background: var(--mw-btn-bg); color: var(--mw-btn-fg); }
.btn--dark:hover { background: var(--mw-btn-hover); color: var(--mw-btn-fg); }
.btn--outline { background: transparent; color: var(--mw-text); border-color: var(--mw-border); }
.btn--outline:hover { background: var(--mw-surface); color: var(--mw-text); }
.btn--light { background: var(--mw-bg); color: var(--mw-text); border-color: var(--mw-border); }
.btn--light:hover { background: var(--mw-primary-50); border-color: var(--mw-primary-100); color: var(--mw-text); }
.btn--secondary { background: var(--mw-secondary); color: #fff; }
.btn--secondary:hover { background: var(--mw-secondary-hover); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--mw-border);
}
/* Unschärfe auf Pseudo-Element: backdrop-filter direkt am Header würde
   das fixierte Mobile-Menü auf die Header-Höhe begrenzen */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--mw-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.nav-open .header::before { background: var(--mw-bg); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-h);
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--mw-text);
}
.brand:hover { color: var(--mw-text); }
.brand__mark {
  display: grid;
  place-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--mw-primary), var(--mw-secondary));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.brand__name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  padding: 0;
}
.nav__link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--mw-text);
}
.nav__link:hover { color: var(--mw-primary-700); }
.nav__link[aria-current="page"] {
  color: var(--mw-primary-700);
  box-shadow: inset 0 -2px 0 var(--mw-primary);
  padding-bottom: 4px;
}
.nav__cta-item { display: none; }

.header__cta { font-size: 14.5px; padding: 11px 22px; }

/* Burger-Button */
.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -6px;
  padding: 0;
  border: 1px solid var(--mw-border);
  border-radius: var(--radius);
  background: var(--mw-bg);
  cursor: pointer;
}
.nav-toggle__icon { position: relative; width: 18px; height: 12px; }
.nav-toggle__icon::before,
.nav-toggle__icon::after,
.nav-toggle__icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--mw-text);
  transition: transform 0.22s, opacity 0.22s, top 0.22s;
}
.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon span { top: 5px; }
.nav-toggle__icon::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 5px; transform: rotate(-45deg); }

/* Mobile Navigation */
@media (max-width: 880px) {
  .header__inner { gap: 12px; }
  .header__cta { display: none; }
  .nav-toggle { display: grid; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--mw-bg);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s, transform 0.2s, visibility 0s;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--mw-border); }
  .nav__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 2px;
    font-size: 20px;
    font-weight: 700;
  }
  .nav__link::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.45;
  }
  .nav__link[aria-current="page"] { box-shadow: none; padding-bottom: 18px; }
  .nav__cta-item { display: block; border-bottom: 0 !important; padding-top: 24px; }
  .nav__cta-item .btn { width: 100%; padding: 16px; font-size: 16px; }
  .nav__contact {
    margin-top: 28px;
    display: grid;
    gap: 6px;
    font-size: 15px;
    color: var(--mw-muted);
  }
  .nav__contact a { color: var(--mw-text); font-weight: 600; }
}
@media (min-width: 881px) {
  .nav__contact { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(64px, 9vw, 128px) 56px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--mw-primary-50);
  color: var(--mw-primary-700);
  font-size: 13px;
  font-weight: 700;
}
.hero__title {
  margin-top: 24px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hero__title-accent { color: var(--mw-primary-700); }
.hero__text {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.65;
  color: var(--mw-muted);
}
.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 28px;
}
.rating__stars { font-size: 16px; letter-spacing: 1px; color: var(--mw-star); }
.rating__text { font-size: 14px; font-weight: 600; color: var(--mw-muted); }

.hero__media { display: grid; gap: 16px; }
.hero__media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--mw-border);
  border-radius: 14px;
  background: var(--mw-surface);
}
.shot--main { border-radius: 16px; box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.15); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; aspect-ratio: 4 / 3; }
.shot--main img { aspect-ratio: 16 / 10; }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  background: var(--mw-surface);
  border-block: 1px solid var(--mw-border);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  padding-block: 15px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--mw-muted);
  animation: mw-ticker 32s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__dot { color: var(--mw-primary-700); }
@keyframes mw-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; padding-inline: var(--gutter); gap: 12px 24px; }
  .ticker__track [aria-hidden="true"] { display: none; }
}

/* ---------- Split (Über uns / Intro) ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.split--top { align-items: start; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; list-style: none; padding: 0; }
.stat { padding: 24px; border-radius: 14px; background: var(--mw-surface); }
.stat--primary { background: var(--mw-primary-50); }
.stat--secondary { background: var(--mw-secondary-50); }
.stat__value { display: block; font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; line-height: 1.2; }
.stat--primary .stat__value { color: var(--mw-primary-700); }
.stat--secondary .stat__value { color: var(--mw-secondary-700); }
.stat__label { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--mw-muted); }

/* ---------- Leistungs-Karten ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 44px;
  list-style: none;
  padding: 0;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px 26px;
  background: var(--mw-bg);
  border: 1px solid var(--mw-border);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 16px -8px rgb(0 0 0 / 0.06);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 12px 28px -12px rgb(0 0 0 / 0.12); }
.card__num {
  display: grid;
  place-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--mw-primary-50);
  color: var(--mw-primary-700);
  font-size: 14px;
  font-weight: 800;
}
.card__title { font-size: 21px; line-height: 1.2; font-weight: 700; }
.card__text { font-size: 15px; line-height: 1.65; color: var(--mw-muted); }
.card__link { margin-top: auto; font-size: 13.5px; font-weight: 700; color: var(--mw-primary-700); }
.card--alt .card__num { background: var(--mw-secondary-50); color: var(--mw-secondary-700); }
.card--alt .card__link { color: var(--mw-secondary-700); }
.card__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Bewertungen ---------- */
.reviews { columns: 3 300px; column-gap: 20px; margin-top: 40px; }
.review {
  break-inside: avoid;
  margin-bottom: 20px;
  padding: 24px;
  background: var(--mw-bg);
  border: 1px solid var(--mw-border);
  border-radius: 14px;
}
.review__stars { display: block; font-size: 14px; letter-spacing: 1px; color: var(--mw-star); }
.review__text { margin-top: 12px; font-size: 15px; line-height: 1.65; }
.review__author { margin-top: 16px; font-size: 12.5px; font-weight: 700; }
.review__date { font-weight: 500; color: var(--mw-muted); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item {
  overflow: hidden;
  background: var(--mw-bg);
  border: 1px solid var(--mw-border);
  border-radius: 14px;
}
.faq__question {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.15s;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover { background: var(--mw-surface); }
.faq__question-text { flex: 1; }
.faq__icon {
  transition: background-color 0.3s, color 0.3s;
  display: grid;
  place-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--mw-surface);
  font-size: 15px;
  font-weight: 700;
}
.faq__icon { position: relative; }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  margin: -1px 0 0 -5.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }
.faq__item.is-open .faq__icon { background: var(--mw-primary-50); color: var(--mw-primary-700); }
.faq__content { overflow: hidden; }
.faq__answer {
  padding: 0 56px 18px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mw-muted);
}

/* ---------- Kontakt-Karte ---------- */
.contact-card {
  padding: clamp(36px, 5vw, 64px);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--mw-contact-from) 0%, var(--mw-contact-to) 100%);
  color: #fff;
}
.contact-card .eyebrow { color: rgb(255 255 255 / 0.85); }
.contact-card__title {
  max-width: 22ch;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.contact-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin-top: 36px;
  list-style: none;
  padding: 0;
}
.contact-tile {
  padding: 22px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 14px;
}
.contact-tile__label { display: block; font-size: 11.5px; font-weight: 700; color: rgb(255 255 255 / 0.8); }
.contact-tile__value {
  display: inline-block;
  margin-top: 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  overflow-wrap: anywhere;
}
a.contact-tile__value:hover { color: var(--mw-primary-100); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--mw-surface);
  border-top: 1px solid var(--mw-border);
  padding-block: clamp(48px, 6vw, 80px);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 40px;
}
.footer__name { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.footer__claim { margin-top: 12px; max-width: 34ch; font-size: 14.5px; line-height: 1.7; color: var(--mw-muted); }
.footer__badge {
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 12px;
  border: 1px solid var(--mw-border);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--mw-muted);
}
.footer__heading { margin-bottom: 12px; font-size: 14px; font-weight: 800; }
.footer__list { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; list-style: none; padding: 0; }
.footer__list a { color: var(--mw-muted); }
.footer__list a:hover { color: var(--mw-primary-700); }
.footer__copy { margin-top: 44px; font-size: 13px; color: var(--mw-muted); }

/* ---------- Unterseiten: Seitenkopf ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(32px, 4vw, 48px); }
.page-hero__title {
  margin-top: 20px;
  max-width: 20ch;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.06;
  hyphens: auto;
  overflow-wrap: break-word;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.page-hero .text-lead { font-size: 18px; }

/* Leistungen-Detail */
.service {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px 28px;
  padding: 32px;
  background: var(--mw-bg);
  border: 1px solid var(--mw-border);
  border-radius: var(--radius-card);
}
.service + .service { margin-top: 16px; }
.service .card__num { width: 56px; height: 56px; font-size: 16px; border-radius: 14px; }
.service__title { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.service__text { margin-top: 10px; max-width: 62ch; font-size: 16.5px; line-height: 1.7; color: var(--mw-muted); }
.service__link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; }
.service--alt .card__num { background: var(--mw-secondary-50); color: var(--mw-secondary-700); }
.service--alt .service__link { color: var(--mw-secondary-700); }
@media (max-width: 560px) {
  .service { grid-template-columns: 1fr; padding: 24px; }
}

/* Projekte */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
}
.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--mw-bg);
  border: 1px solid var(--mw-border);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 16px -8px rgb(0 0 0 / 0.06);
  transition: box-shadow 0.2s;
}
.project:hover { box-shadow: 0 12px 28px -12px rgb(0 0 0 / 0.14); }
.project__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  background: var(--mw-surface);
  border-bottom: 1px solid var(--mw-border);
}
.project__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 22px 22px 24px; }
.project__title { font-size: 19px; font-weight: 700; line-height: 1.25; }
.project__text { font-size: 15px; line-height: 1.6; color: var(--mw-muted); }
.project__link { margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 700; }
.project--cta {
  justify-content: center;
  gap: 12px;
  padding: 28px;
  background: var(--mw-primary-50);
  border-color: var(--mw-primary-100);
}

/* Über uns: Werte-Karten */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  margin-top: 40px;
  list-style: none;
  padding: 0;
}
.founder {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.founder__mark {
  display: grid;
  place-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--mw-primary), var(--mw-secondary));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.founder__name { font-weight: 800; font-size: 17px; }
.founder__role { font-size: 14px; color: var(--mw-muted); }

/* Kontaktseite */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 12px; list-style: none; padding: 0; }
.contact-list__item {
  padding: 20px 22px;
  background: var(--mw-surface);
  border: 1px solid var(--mw-border);
  border-radius: 14px;
}
.contact-list__label { display: block; font-size: 12px; font-weight: 700; color: var(--mw-primary-700); }
.contact-list__value { display: inline-block; margin-top: 6px; font-size: 17px; font-weight: 700; color: var(--mw-text); overflow-wrap: anywhere; }
a.contact-list__value:hover { color: var(--mw-primary-700); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(22px, 3vw, 36px);
  background: var(--mw-bg);
  border: 1px solid var(--mw-border);
  border-radius: 20px;
  box-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.14);
}
.form__title { grid-column: 1 / -1; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field--full { grid-column: 1 / -1; }
.form__label { font-size: 13.5px; font-weight: 700; }
.form__optional { font-weight: 500; color: var(--mw-muted); }
.form__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--mw-surface);
  border: 1px solid var(--mw-border);
  border-radius: var(--radius);
  font-size: 16px; /* verhindert Zoom auf iOS */
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.form__input:hover { border-color: #b3bbc2; }
.form__input:focus-visible {
  outline: none;
  background: var(--mw-bg);
  border-color: var(--mw-primary-700);
  box-shadow: 0 0 0 3px var(--mw-primary-100);
}
textarea.form__input { min-height: 150px; resize: vertical; }
.form__check {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mw-muted);
}
.form__check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--mw-primary-700); }
.form__check a { text-decoration: underline; text-underline-offset: 3px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form__hint { font-size: 13.5px; color: var(--mw-muted); }
.form__alert {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--mw-secondary-100);
  background: var(--mw-secondary-50);
  color: var(--mw-secondary-700);
  font-weight: 600;
  font-size: 14.5px;
}
.form__alert[hidden] { display: none; }
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .form__footer .btn { width: 100%; }
}

/* Rechtstexte */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: clamp(22px, 2vw, 26px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.prose h3 { margin-top: 1.6em; font-size: 18px; font-weight: 700; }
.prose p, .prose li { color: var(--mw-muted); line-height: 1.75; }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* Danke / 404 */
.notice { min-height: 60vh; display: grid; align-content: center; }

/* ---------- Logo (SVG) ---------- */
.brand__logo {
  display: block;
  height: 32px;
  width: auto;
  flex: none;
}
.footer__brand { margin-right: 0; display: inline-flex; }
.footer__brand .brand__logo { height: 40px; }
.footer__brand:hover .footer__name { color: var(--mw-primary-700); }
@media (max-width: 380px) {
  .brand__logo { height: 28px; }
  .brand__name { font-size: 17px; }
}


/* ---------- Header-Logo ohne Schriftzug ---------- */
.brand__logo--header { height: 38px; }
@media (max-width: 380px) { .brand__logo--header { height: 34px; } }

/* ---------- Dropdown „Leistungen“ ---------- */
.nav__item--dropdown { position: relative; }
.nav__row { display: flex; align-items: center; gap: 2px; }
.nav__sub-toggle {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--mw-text);
  cursor: pointer;
}
.nav__sub-toggle:hover { background: var(--mw-surface); color: var(--mw-primary-700); }
.nav__sub-toggle svg { transition: transform 0.25s ease; }
.nav__item--dropdown.is-open .nav__sub-toggle svg { transform: rotate(180deg); }

.nav__sub-list { list-style: none; padding: 0; margin: 0; }
.nav__sub-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--mw-text);
}
.nav__sub-link:hover { background: var(--mw-surface); color: var(--mw-primary-700); }
.nav__sub-num {
  display: grid;
  place-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--mw-primary-50);
  color: var(--mw-primary-700);
  font-size: 12px;
  font-weight: 800;
}
.nav__sub-num--alt { background: var(--mw-secondary-50); color: var(--mw-secondary-700); }
.nav__sub-all {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 12px 10px 4px;
  border-top: 1px solid var(--mw-border);
  font-size: 14px;
  font-weight: 700;
}

/* Desktop: schwebendes Panel */
@media (min-width: 881px) {
  .nav__sub {
    position: absolute;
    top: 100%;
    left: -18px;
    padding-top: 14px; /* Brücke, damit Hover nicht abreißt */
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .nav__item--dropdown.is-open .nav__sub {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  }
  .nav__sub-inner {
    width: 290px;
    padding: 10px;
    background: var(--mw-bg);
    border: 1px solid var(--mw-border);
    border-radius: 16px;
    box-shadow: 0 24px 48px -20px rgb(0 0 0 / 0.22);
  }
}

/* Mobile: aufklappbarer Bereich im Menü */
@media (max-width: 880px) {
  .nav__row { justify-content: space-between; }
  .nav__link--parent { flex: 1; }
  .nav__link--parent::after { display: none; }
  .nav__sub-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--mw-border);
    border-radius: 10px;
  }
  .nav__sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav__item--dropdown.is-open .nav__sub { grid-template-rows: 1fr; }
  .nav__sub-inner { overflow: hidden; min-height: 0; }
  .nav__sub-list { padding: 0 0 8px; }
  .nav__sub-link { padding: 11px 4px; font-size: 16.5px; }
  .nav__sub-all { margin: 0 0 14px; padding: 12px 4px 0; font-size: 15px; }
}
@media (max-width: 880px) {
  .nav__sub-inner { visibility: hidden; transition: visibility 0s linear 0.35s; }
  .nav__item--dropdown.is-open .nav__sub-inner { visibility: visible; transition: visibility 0s; }
}

/* ---------- Karte (OpenStreetMap, Zwei-Klick) ---------- */
.map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 24px;
}
.map-head__address { margin-top: 10px; font-size: 16px; color: var(--mw-muted); }
.map-head__links { display: flex; flex-wrap: wrap; gap: 12px; }

.map {
  position: relative;
  height: clamp(340px, 42vw, 460px);
  overflow: hidden;
  border: 1px solid var(--mw-border);
  border-radius: 20px;
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--mw-primary-50) 80%, transparent), color-mix(in oklch, var(--mw-secondary-50) 80%, transparent)),
    repeating-linear-gradient(0deg, transparent 0 39px, var(--mw-border) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--mw-border) 39px 40px),
    var(--mw-surface);
  isolation: isolate;
}
.map__consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}
.map__icon {
  display: grid;
  place-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--mw-bg);
  border: 1px solid var(--mw-border);
  box-shadow: 0 10px 24px -14px rgb(0 0 0 / 0.3);
  color: var(--mw-primary-700);
}
.map__title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.map__text { max-width: 46ch; font-size: 14.5px; line-height: 1.6; color: var(--mw-muted); }
.map__text a { text-decoration: underline; text-underline-offset: 3px; }
.map__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--mw-muted);
  cursor: pointer;
}
.map__remember input { width: 18px; height: 18px; accent-color: var(--mw-primary-700); }
.map.is-loading .map__consent { opacity: 0.7; }

.map__canvas { position: absolute; inset: 0; z-index: 0; }
.map.is-active { background: var(--mw-surface); }
.map .leaflet-container { font-family: var(--ff); }
.map .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 16px 32px -16px rgb(0 0 0 / 0.35); }
.map .leaflet-popup-content { margin: 12px 16px; font-size: 14px; line-height: 1.5; }
.map .leaflet-control-zoom a { color: var(--mw-text); }

/* Eigener Marker in Markenfarben */
.map__pin { background: none; border: 0; }
.map__pin-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--mw-primary), var(--mw-secondary));
  transform: rotate(-45deg);
  box-shadow: 0 6px 14px -4px rgb(0 0 0 / 0.45);
}
.map__pin-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
}


/* ==========================================================================
   Dunkles Design
   Greift bei data-theme="dark" oder – ohne eigene Wahl – bei System-Einstellung „dunkel“.
   ========================================================================== */
:root[data-theme="dark"] {
  --mw-bg: #121820;
  --mw-surface: #18212a;
  --mw-text: #d3dae1;
  --mw-heading: #eef2f5;
  --mw-muted: #9ba7b3;
  --mw-border: #2a3541;
  --mw-primary-50: #0e2831;
  --mw-primary-100: #16414e;
  --mw-primary-700: #62d4f2;
  --mw-secondary-50: #2a1323;
  --mw-secondary-100: #4a1d3b;
  --mw-secondary-700: #f18bc9;
  --mw-btn-bg: #e8edf1;
  --mw-btn-fg: #121820;
  --mw-btn-hover: #62d4f2;
  --mw-secondary-hover: #d0268f;
  --mw-contact-from: #0d3644;
  --mw-contact-to: #3a1531;
  --mw-shadow: rgb(0 0 0 / 0.5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mw-bg: #121820;
    --mw-surface: #18212a;
    --mw-text: #d3dae1;
    --mw-heading: #eef2f5;
    --mw-muted: #9ba7b3;
    --mw-border: #2a3541;
    --mw-primary-50: #0e2831;
    --mw-primary-100: #16414e;
    --mw-primary-700: #62d4f2;
    --mw-secondary-50: #2a1323;
    --mw-secondary-100: #4a1d3b;
    --mw-secondary-700: #f18bc9;
    --mw-btn-bg: #e8edf1;
    --mw-btn-fg: #121820;
    --mw-btn-hover: #62d4f2;
    --mw-secondary-hover: #d0268f;
    --mw-contact-from: #0d3644;
    --mw-contact-to: #3a1531;
    --mw-shadow: rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}

/* Schatten im Dunkelmodus tiefer, Bilder minimal abgedunkelt */
:root[data-theme="dark"] .shot--main,
:root[data-theme="dark"] .form { box-shadow: 0 20px 40px -20px var(--mw-shadow); }
:root[data-theme="dark"] .shot img,
:root[data-theme="dark"] .project__img { filter: brightness(0.92); }
:root[data-theme="dark"] .map.is-active .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(0.9) saturate(0.6);
}
:root[data-theme="dark"] .map .leaflet-popup-content-wrapper,
:root[data-theme="dark"] .map .leaflet-popup-tip { background: var(--mw-surface); color: var(--mw-text); }
:root[data-theme="dark"] .map .leaflet-bar a { background: var(--mw-surface); color: var(--mw-text); border-color: var(--mw-border); }
:root[data-theme="dark"] .map .leaflet-control-attribution { background: rgb(18 24 32 / 0.8); color: var(--mw-muted); }
:root[data-theme="dark"] .map .leaflet-control-attribution a { color: var(--mw-primary-700); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot img,
  :root:not([data-theme="light"]) .project__img { filter: brightness(0.92); }
  :root:not([data-theme="light"]) .map.is-active .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(0.9) saturate(0.6);
  }
}

/* ---------- Header-Aktionen & Hell/Dunkel-Schalter ---------- */
.header__actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--mw-border);
  border-radius: var(--radius);
  background: var(--mw-bg);
  color: var(--mw-text);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { background: var(--mw-surface); color: var(--mw-primary-700); }
.theme-toggle svg {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}
/* Hell aktiv: Mond zeigen (Wechsel zu dunkel) */
.theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.theme-toggle__moon { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle__sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle__moon { opacity: 0; transform: rotate(90deg) scale(0.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .theme-toggle__moon { opacity: 0; transform: rotate(90deg) scale(0.6); }
}
@media (max-width: 880px) {
  .header__actions { gap: 8px; }
  .nav-toggle { margin-right: 0; }
}
