/* =============================================================
   CONNECTRA Smart Solution – Neumorphism / Soft-UI Stylesheet
   Weiß / Hellgrau. Tiefe durch Licht, Schatten, Radien, Raum.
   Keine externen Ressourcen. System-Schriften.
   ============================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Flächen */
  --bg: #e9ecf1;
  --surface: #e9ecf1;
  --surface-light: #f3f5f8;
  --surface-deep: #dfe3ea;

  /* Text */
  --text-primary: #16181d;
  --text-secondary: #5c626b;
  --text-muted: #878d96;

  /* dezenter Akzent (sparsam) */
  --accent: #2f6df0;
  --accent-ink: #1b56c9;
  --whatsapp: #25d366;

  /* Neumorphism-Licht/Schatten */
  --nm-light: rgba(255, 255, 255, 0.92);
  --nm-dark: rgba(163, 177, 198, 0.5);
  --nm-dark-soft: rgba(163, 177, 198, 0.35);

  /* Radien */
  --r-sm: 16px;
  --r-md: 24px;
  --r-lg: 32px;
  --r-round: 999px;

  /* Abstände */
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  --maxw: 1320px;        /* Haupt-Container (vorher 1180px) – großzügiger */
  --maxw-wide: 1560px;   /* Für breite Bild-/Full-Width-Bereiche */
  --maxw-text: 760px;    /* Lesebreite für längere Textblöcke */
  --header-h: 84px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* wiederverwendbare Schatten */
  --nm-raised: -8px -8px 18px var(--nm-light), 8px 8px 18px var(--nm-dark);
  --nm-raised-sm: -5px -5px 11px var(--nm-light), 5px 5px 11px var(--nm-dark-soft);
  --nm-raised-lg: -12px -12px 28px var(--nm-light), 14px 14px 32px var(--nm-dark);
  --nm-inset: inset -6px -6px 12px var(--nm-light), inset 6px 6px 12px var(--nm-dark-soft);
  --nm-inset-sm: inset -3px -3px 7px var(--nm-light), inset 3px 3px 7px var(--nm-dark-soft);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 0.55em;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.35rem, 6.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--text-primary); color: #fff;
  padding: 0.75rem 1.25rem; z-index: 1000;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3.25rem);
}
.container--wide { max-width: var(--maxw-wide); }
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 650;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-round);
  background: var(--surface);
  box-shadow: var(--nm-inset-sm);
}
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--text-secondary); }

/* ---------- Neumorphism-Bausteine ---------- */
.neu { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--nm-raised); }
.neu-inset { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--nm-inset); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55rem;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 1rem 1.6rem;
  min-height: 52px;
  border: none;
  border-radius: var(--r-round);
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: var(--nm-raised-sm);
  transition: box-shadow 0.22s var(--ease), transform 0.22s var(--ease), color 0.2s var(--ease);
}
.btn:hover { box-shadow: var(--nm-raised); transform: translateY(-1px); }
.btn:active { box-shadow: var(--nm-inset); transform: translateY(0); }

.btn--primary { color: var(--accent-ink); font-weight: 700; }
.btn--primary .btn__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(47,109,240,0.18);
}
.btn--whatsapp { color: #128a3e; }
.btn--sm { padding: 0.7rem 1.1rem; min-height: 44px; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn__icon { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  transition: box-shadow 0.3s var(--ease), height 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 18px rgba(163,177,198,0.28); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1.25rem;
  transition: height 0.3s var(--ease);
}
.site-header.is-scrolled .nav { height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; white-space: nowrap; flex: 0 0 auto; }
.brand__logo { height: 54px; width: auto; display: block; transition: height 0.3s var(--ease); }
.site-header.is-scrolled .brand__logo { height: 44px; }
/* Legacy-Klassen (Icon + Text), falls noch verwendet */
.brand__mark {
  width: 42px; height: 42px; flex: none;
  border-radius: 13px; padding: 7px;
  background: var(--surface); box-shadow: var(--nm-raised-sm);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; }
.brand__sub { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); }

.nav__links { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav__links li { list-style: none; }
.nav__links a {
  display: inline-block; padding: 0.55rem 0.85rem;
  border-radius: var(--r-round); font-size: 0.95rem; font-weight: 550;
  color: var(--text-secondary); white-space: nowrap;
  transition: color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav__links a:hover { color: var(--text-primary); }
.nav__links a.is-active { color: var(--text-primary); box-shadow: var(--nm-inset-sm); }
/* Zweiter „Projekt anfragen“-Button nur im mobilen Menü sichtbar */
.nav__cta-mobile { display: none; }

.nav__actions { display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; }

.nav__toggle {
  display: none; width: 48px; height: 48px;
  border: none; border-radius: var(--r-sm);
  background: var(--surface); box-shadow: var(--nm-raised-sm);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle:active { box-shadow: var(--nm-inset); }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after { transform: translateY(4px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(-1.5px); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
  background: var(--surface); padding: 0.5rem 1rem;
  border-radius: var(--r-round); box-shadow: var(--nm-raised-sm);
  margin-bottom: 1.5rem;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin-bottom: 0.35rem; }
.hero__tagline { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 650; color: var(--accent-ink); margin-bottom: 0.9rem; }
.hero__desc { font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--text-secondary); max-width: 42ch; margin-bottom: 2rem; }

/* Hero-Visual: Smart-Home-Panel */
.panel {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--nm-raised-lg); padding: clamp(1.25rem, 3vw, 2rem);
}
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.panel__title { font-weight: 700; font-size: 1.05rem; }
.panel__status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-muted); }
.panel__status .live { width: 8px; height: 8px; border-radius: 50%; background: var(--whatsapp); box-shadow: 0 0 0 3px rgba(37,211,102,0.2); }
.panel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* interaktive Demo-Kacheln */
.tile {
  background: var(--surface); border-radius: var(--r-md);
  box-shadow: var(--nm-raised-sm); padding: 1.15rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  cursor: pointer; border: none; text-align: left; width: 100%;
  color: var(--text-primary);
  transition: box-shadow 0.22s var(--ease);
}
.tile:hover { box-shadow: var(--nm-raised); }
.tile[aria-pressed="true"] { box-shadow: var(--nm-inset); }
.tile__top { display: flex; align-items: center; justify-content: space-between; }
.tile__icon {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); box-shadow: var(--nm-raised-sm);
}
.tile[aria-pressed="true"] .tile__icon { box-shadow: var(--nm-inset-sm); color: var(--accent-ink); }
.tile__icon svg { width: 22px; height: 22px; stroke: currentColor; }
.tile__label { font-size: 0.82rem; color: var(--text-muted); }
.tile__value { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.tile__value small { font-size: 0.7em; font-weight: 600; color: var(--text-muted); }
.tile__state { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.tile[aria-pressed="true"] .tile__state { color: var(--accent-ink); }
.dot-toggle { width: 34px; height: 20px; border-radius: 999px; box-shadow: var(--nm-inset-sm); position: relative; background: var(--surface); }
.dot-toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--nm-raised-sm);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.tile[aria-pressed="true"] .dot-toggle::after { transform: translateX(14px); background: var(--accent); }

/* ---------- Grid / Karten ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--nm-raised); padding: 2rem;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--nm-raised-lg); }
.card__icon {
  width: 56px; height: 56px; border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); box-shadow: var(--nm-raised-sm);
  margin-bottom: 1.25rem; color: var(--accent-ink);
}
.card__icon svg { width: 26px; height: 26px; stroke: currentColor; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--text-secondary); margin: 0; font-size: 0.99rem; }

/* ---------- Smart Home Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.75rem 1.15rem; border-radius: var(--r-round);
  background: var(--surface); box-shadow: var(--nm-raised-sm);
  font-size: 0.95rem; font-weight: 550; color: var(--text-secondary);
}
.chip svg { width: 18px; height: 18px; stroke: var(--accent-ink); flex: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.note-box {
  margin-top: 1.75rem; padding: 1.15rem 1.35rem;
  background: var(--surface); border-radius: var(--r-md);
  box-shadow: var(--nm-inset); font-size: 0.96rem; color: var(--text-secondary);
}
.note-box strong { color: var(--text-primary); }

/* ---------- Ablauf / Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--nm-raised-sm); padding: 1.6rem 1.4rem; }
.steps .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--nm-inset-sm);
  font-weight: 800; color: var(--accent-ink); margin-bottom: 0.9rem; font-size: 0.95rem;
}
.steps h3 { font-size: 1.08rem; margin-bottom: 0.25rem; }
.steps p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ---------- Warum / Benefits ---------- */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.benefits li { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--nm-raised-sm); padding: 1.75rem; }
.benefits h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 0.65rem; }
.benefits h3 .bi {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); box-shadow: var(--nm-raised-sm); color: var(--accent-ink);
}
.benefits h3 .bi svg { width: 20px; height: 20px; stroke: currentColor; }
.benefits p { margin: 0.6rem 0 0; color: var(--text-secondary); font-size: 0.96rem; }

/* ---------- Walkthrough / CTA-Panel ---------- */
.cta-panel {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--nm-raised-lg); padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center; max-width: 820px; margin-inline: auto;
}
.cta-panel .eyebrow { background: var(--surface); box-shadow: var(--nm-raised-sm); }
.cta-panel p { color: var(--text-secondary); max-width: 60ch; margin-inline: auto; }

/* ---------- WhatsApp-Sektion ---------- */
.wa__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.wa__icon {
  width: 64px; height: 64px; border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); box-shadow: var(--nm-raised-sm); color: #128a3e; margin-bottom: 1.25rem;
}
.wa__icon svg { width: 34px; height: 34px; }
.qr-card {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--nm-raised); padding: 1.75rem; text-align: center;
}
.qr-frame {
  background: var(--surface-light); border-radius: var(--r-md);
  box-shadow: var(--nm-inset); padding: 1.1rem;
  width: 210px; height: 210px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
}
.qr-frame svg, .qr-frame img { width: 100%; height: 100%; }
.qr-card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Kontakt ---------- */
.contact__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
.contact-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding: 1.75rem 1rem; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--nm-raised); color: var(--text-primary);
  font-weight: 650; text-align: center;
  transition: box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
  min-height: 128px; justify-content: center;
}
.contact-btn:hover { transform: translateY(-3px); box-shadow: var(--nm-raised-lg); }
.contact-btn:active { box-shadow: var(--nm-inset); transform: translateY(0); }
.contact-btn__icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); box-shadow: var(--nm-raised-sm); color: var(--accent-ink);
}
.contact-btn--wa .contact-btn__icon { color: #128a3e; }
.contact-btn__icon svg { width: 26px; height: 26px; }
.contact-btn span small { display: block; font-weight: 500; font-size: 0.82rem; color: var(--text-muted); margin-top: 0.15rem; }

.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact__info dl { margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.contact__info dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 0.15rem; }
.contact__info dd { margin: 0; font-weight: 600; }

/* ---------- Formular ---------- */
.form { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--nm-raised); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.2rem; }
.field > label, .field .label {
  display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem;
}
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 0.9rem 1.05rem; color: var(--text-primary);
  background: var(--surface); border: none;
  border-radius: var(--r-sm); box-shadow: var(--nm-inset-sm);
  transition: box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; box-shadow: var(--nm-inset), 0 0 0 2.5px rgba(47,109,240,0.35);
}
.field input[aria-invalid="true"], .field select:invalid[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  box-shadow: var(--nm-inset-sm), 0 0 0 2px rgba(214,69,69,0.5);
}
.field__error { display: none; color: #c23b3b; font-size: 0.82rem; margin-top: 0.4rem; }
.field__error.show { display: block; }
.field__hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.4rem; }

.checkbox { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.9rem; color: var(--text-secondary); }
.checkbox input { width: auto; margin-top: 0.15rem; flex: none; box-shadow: none; }
.checkbox a { color: var(--accent-ink); text-decoration: underline; }
.radio-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.radio-group label {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1rem; border-radius: var(--r-round);
  background: var(--surface); box-shadow: var(--nm-raised-sm);
  font-size: 0.94rem; font-weight: 500; cursor: pointer;
}
.radio-group input { width: auto; box-shadow: none; }
.radio-group input:checked + span { color: var(--accent-ink); font-weight: 650; }
.file-field input[type="file"] { padding: 0.7rem; font-size: 0.9rem; box-shadow: var(--nm-inset-sm); }

.form__status { display: none; margin-top: 1.1rem; padding: 1rem 1.2rem; border-radius: var(--r-sm); font-size: 0.95rem; box-shadow: var(--nm-inset-sm); }
.form__status.show { display: block; }
.form__status.is-info { color: var(--text-secondary); }
.form__status.is-info a { color: var(--accent-ink); text-decoration: underline; }
.form__status.is-error { color: #9a2b2b; }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(2.75rem, 6vw, 4rem) 2rem; }
.footer__inner { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--nm-raised); padding: clamp(2rem, 5vw, 3rem); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(163,177,198,0.25); }
.footer__brand p { max-width: 40ch; margin-top: 1rem; color: var(--text-secondary); }
.site-footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 1rem; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer__links a { color: var(--text-secondary); }
.footer__links a:hover { color: var(--text-primary); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: 0.86rem; color: var(--text-muted); }

/* ---------- Rechtstexte ---------- */
.legal { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.legal .container { max-width: 1120px; }
.legal .paper { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--nm-raised); padding: clamp(1.75rem, 5vw, 3rem); }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 0.5rem; }
.legal h3 { font-size: 1.12rem; margin-top: 1.35rem; }
.legal p, .legal li { line-height: 1.7; }
.legal p, .legal li { color: var(--text-secondary); }
.legal ul, .legal ol { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--accent-ink); text-decoration: underline; }
.todo {
  display: inline-block; background: #fff6e5; color: #8a6100;
  border-radius: 6px; padding: 0.05em 0.45em; font-weight: 700;
  box-shadow: var(--nm-inset-sm);
}
.notice { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--nm-inset); padding: 1.15rem 1.35rem; margin: 1.5rem 0; font-size: 0.95rem; color: var(--text-secondary); }
.notice strong { color: var(--text-primary); }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 2.5rem; color: var(--accent-ink); font-weight: 600; }
.back-link:hover { text-decoration: underline; }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Bildflächen (Media) ---------- */
.media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-light);
  box-shadow: var(--nm-raised);
  isolation: isolate;
}
.media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.media--wide { aspect-ratio: 2 / 1; }
.media--band { aspect-ratio: 2 / 1; }
.media--side { aspect-ratio: 16 / 10; }
.media img { object-position: center; }
/* Sehr helle Integration: dezenter Weiß-Verlauf an den Rändern,
   damit die Bilder mit dem hellen Hintergrund verschmelzen. */
.media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(233,236,241,0.35) 0%, rgba(233,236,241,0) 22%, rgba(233,236,241,0) 78%, rgba(233,236,241,0.5) 100%),
    linear-gradient(90deg, rgba(233,236,241,0.4) 0%, rgba(233,236,241,0) 14%, rgba(233,236,241,0) 86%, rgba(233,236,241,0.4) 100%);
}
/* Variante mit Text über Bild: kräftiges weißes Overlay für Lesbarkeit */
.media--overlay { display: grid; }
.media--overlay img { grid-area: 1 / 1; }
.media--overlay .media__content {
  grid-area: 1 / 1; position: relative; z-index: 2;
  align-self: center; padding: clamp(1.5rem, 4vw, 3rem);
  max-width: var(--maxw-text);
}
.media--overlay::after {
  background: linear-gradient(90deg, rgba(243,245,248,0.96) 0%, rgba(243,245,248,0.85) 45%, rgba(243,245,248,0.35) 100%);
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__desc { max-width: none; }
  .split { grid-template-columns: 1fr; }
  .wa__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .media--side { aspect-ratio: 16 / 9; }
  .media--wide, .media--band { aspect-ratio: 16 / 8; }
}

@media (max-width: 1024px) {
  /* Ab hier wird es auf dem Desktop-Balken eng -> Hamburger-Menü verwenden */
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0.35rem; flex-wrap: nowrap;
    background: var(--bg); box-shadow: 0 14px 30px rgba(163,177,198,0.4);
    padding: 1.25rem clamp(1.15rem, 5vw, 2.5rem) 1.75rem;
    transform: translateY(-150%); transition: transform 0.3s var(--ease);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 0.95rem 1.1rem; font-size: 1.05rem; border-radius: var(--r-sm); }
  .nav__links a.is-active { box-shadow: var(--nm-inset-sm); }
  .nav__cta-desktop { display: none; }
  .nav__cta-mobile { display: block; }
  .nav__links .btn { margin-top: 0.75rem; width: 100%; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand__logo, .site-header.is-scrolled .brand__logo { height: 44px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .contact__actions { grid-template-columns: 1fr; }
  .panel__grid { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .hero__badge { width: auto; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; }
  .site-header, .nav__toggle, .form, .wa__grid, .contact__actions { display: none; }
  .neu, .card, .paper { box-shadow: none; border: 1px solid #ddd; }
}
