/* ==========================================================
   NOWAG AUTOMATION – Haupt-Styles
   Alle Werte als CSS-Variablen – einfach anpassen
   ========================================================== */

/* ----------------------------------------------------------
   1. CSS-VARIABLEN (Design-Tokens)
   ---------------------------------------------------------- */
:root {
  /* Farben */
  --color-bg:          #ffffff;
  --color-bg-2:        #f7f9fc;
  --color-bg-3:        #eef2f8;
  --color-accent:      #2563eb;
  --color-accent-dim:  rgba(37, 99, 235, 0.08);
  --color-accent-glow: rgba(37, 99, 235, 0.18);
  --color-text:        #263a5c;
  --color-text-muted:  #56698c;
  --color-text-faint:  #8a99b8;
  --color-border:      rgba(26, 43, 71, 0.09);
  --color-border-accent: rgba(37, 99, 235, 0.3);
  --color-heading:     #1a2b47;

  /* Typografie */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Schriftgrößen – clamp() für fluid type */
  --fs-xs:   clamp(0.7rem,  1vw,   0.8rem);
  --fs-sm:   clamp(0.85rem, 1.2vw, 0.95rem);
  --fs-base: clamp(1rem,    1.5vw, 1.05rem);
  --fs-md:   clamp(1.1rem,  1.8vw, 1.25rem);
  --fs-lg:   clamp(1.3rem,  2vw,   1.5rem);
  --fs-xl:   clamp(1.6rem,  3vw,   2rem);
  --fs-2xl:  clamp(2rem,    4vw,   3rem);
  --fs-3xl:  clamp(2.2rem,  5vw,   3.8rem);

  /* Schriftgewichte */
  --fw-normal:  400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;
  --fw-black:   800;

  /* Abstände */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  5rem;
  --space-4xl:  9rem;

  /* Container */
  --container-max: 1200px;
  --container-pad: 1.5rem;

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full:9999px;

  /* Übergänge */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Schatten */
  --shadow-sm:   0 1px 3px rgba(26,43,71,0.06);
  --shadow-md:   0 4px 20px rgba(26,43,71,0.08);
  --shadow-lg:   0 16px 48px rgba(26,43,71,0.14);
  --shadow-accent: 0 0 30px var(--color-accent-glow);

  /* Navigation */
  --nav-height: 72px;
}


/* ----------------------------------------------------------
   2. RESET & BASIS
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Vermeidet Sprünge beim Scrollen zu Ankern wegen fixed Nav */
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Hintergrund bewusst clean & weiß – kein Grid-Muster, keine Textur.
   Tiefe entsteht ausschließlich über Karten-Schatten und feine Ränder. */

/* Alle Seiten-Inhalte über dem Grid-Muster */
header, main, footer, .chatbot-widget, .modal {
  position: relative;
  z-index: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

/* Selektion */
::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* Fokus-Stile für Barrierefreiheit */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ----------------------------------------------------------
   3. HILFKLASSEN
   ---------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.accent {
  color: var(--color-accent);
}

.link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition-fast);
}
.link:hover { opacity: 0.8; }

/* Sektion-Header (Label + Titel + Sub) */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-border-accent);
  padding: 0.35em 1em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  line-height: 1.15;
  color: var(--color-heading);
  margin-bottom: var(--space-md);
}

.section-sub {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-inline: auto;
}


/* ----------------------------------------------------------
   4. BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  padding: 0.7em 1.6em;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Ripple-Effekt Vorbereitung */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.07);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

/* Primär: kräftiges Vertrauens-Blau, volle Fläche */
.btn--primary {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: #1d4fd6;
  border-color: #1d4fd6;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
  transform: translateY(-2px);
}

/* Ghost: nur Rahmen, neutral */
.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: rgba(26, 43, 71, 0.18);
}
.btn--ghost:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: none;
}

/* Große Variante */
.btn--large {
  font-size: var(--fs-base);
  padding: 0.85em 2em;
}

.btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}


/* ----------------------------------------------------------
   5. NAVIGATION
   ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition:
    background var(--transition-slow),
    backdrop-filter var(--transition-slow),
    border-color var(--transition-slow),
    box-shadow var(--transition-slow);
  border-bottom: 1px solid transparent;
}

/* Glassmorphism-Effekt sobald gescrollt (via JS .is-scrolled) */
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-md);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--space-xl);
}

/* Logo */
.nav__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-black);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}
.nav__logo:hover { opacity: 0.8; }

/* Desktop-Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-left: auto;
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--color-heading);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.nav__cta {
  flex-shrink: 0;
  margin-left: var(--space-md);
}

/* Hamburger-Button */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
}
/* Hamburger → X-Animation */
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Slide-In Menü */
.nav__mobile {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-bg-2);
  border-bottom: 1px solid var(--color-border);
  transform: translateY(-110%);
  opacity: 0;
  transition:
    transform var(--transition-slow),
    opacity var(--transition-slow);
  z-index: 99;
  pointer-events: none;
}
.nav__mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-md) 0 var(--space-xl);
}

.nav__mobile-link {
  display: block;
  padding: var(--space-md) var(--container-pad);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav__mobile-link:hover {
  color: var(--color-heading);
  background: var(--color-accent-dim);
}

.nav__mobile-cta {
  margin: var(--space-lg) var(--container-pad) 0;
  text-align: center;
}


/* ----------------------------------------------------------
   6. HERO
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Sehr dezenter, atmosphärischer Blau-Schimmer hinter der Headline –
   kein Muster, nur ein Hauch Tiefe auf dem weißen Hintergrund */
.hero::after {
  content: '';
  position: absolute;
  top: 4%;
  left: 12%;
  width: 55%;
  height: 60%;
  background: radial-gradient(ellipse at 40% 40%, rgba(37, 99, 235, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

/* Zweispaltiges Layout: Text links, Foto rechts */
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: var(--space-4xl);
  width: 100%;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Kleines Label oberhalb der Headline */
.hero__label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-border-accent);
  padding: 0.35em 1em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xl);
}

/* Hauptüberschrift: groß, fett, unvergesslich */
.hero__headline {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  line-height: 1.05;
  color: var(--color-heading);
  margin-bottom: var(--space-xl);
  letter-spacing: -0.02em;
}

/* Subtext */
.hero__sub {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 0 var(--space-2xl);
  line-height: 1.75;
}

/* Button-Gruppe */
.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: flex-start;
}

/* Portrait-Foto (rechte Spalte) – leicht hochformatig, damit die
   Spalte etwa die Höhe der Textspalte erreicht und ausbalanciert wirkt */
.hero__media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 440px;
}

.hero__media-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 60px rgba(26, 43, 71, 0.16), 0 8px 24px rgba(26, 43, 71, 0.08);
}

.hero__media-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Kleines Vertrauens-Badge, schwebt über der unteren Ecke */
.hero__media-badge {
  position: absolute;
  bottom: -14px;
  left: -14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.5em 1em;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

/* Kosten-Rechner – eigenständiger Block unter dem Hero */
.rechner {
  padding: var(--space-3xl) 0;
}

.calc {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  text-align: left;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-2xl);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.calc:hover {
  box-shadow: 0 24px 56px rgba(26, 43, 71, 0.13);
  transform: translateY(-3px);
}

.calc__label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.calc__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-heading);
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}

.calc__intro {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.calc__row {
  margin-bottom: var(--space-lg);
}

.calc__slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.calc__slider-name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

.calc__slider-value {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  white-space: nowrap;
}

/* Moderner Blau-Regler */
.calc__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-bg-3);
  outline: none;
  cursor: pointer;
}
.calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.calc__slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
.calc__slider:active::-webkit-slider-thumb {
  transform: scale(1.12);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.14);
}
.calc__slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  cursor: pointer;
}
.calc__slider::-moz-range-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-bg-3);
}
.calc__slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2);
}

/* Ergebnis – hervorgehobenes Panel, die Zahl ist der Fokus der Karte */
.calc__result {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.03) 45%, transparent 80%),
    var(--color-bg);
  border: 1px solid rgba(37, 99, 235, 0.16);
  position: relative;
  overflow: hidden;
}

.calc__result-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.calc__result-value {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: var(--fw-black);
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  /* Sehr dezenter Blau-Glow, damit die Zahl heraussticht */
  text-shadow: 0 6px 26px rgba(37, 99, 235, 0.22);
  margin: 0.15rem 0 0.2rem;
}

.calc__result-note {
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
  line-height: 1.5;
}

/* Scroll-Pfeil */
.hero__scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.hero__scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--color-text-faint);
  border-bottom: 2px solid var(--color-text-faint);
  transform: rotate(45deg);
  animation: scrollArrow 2s ease-in-out infinite;
}


/* ----------------------------------------------------------
   6b. TRUST-STREIFEN
   ---------------------------------------------------------- */
.trust {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.trust__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg) var(--space-2xl);
  padding: var(--space-lg) 0;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  white-space: nowrap;
}

.trust__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ----------------------------------------------------------
   7. LEISTUNGEN
   ---------------------------------------------------------- */
.leistungen {
  padding: 5rem 0;
}

/* 4er-Grid – eine saubere Reihe */
.leistungen__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

/* Karten */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 400ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 400ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Leuchtender Top-Border bei Hover */
.card--service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.card--service:hover::before { opacity: 1; }
.card--service:hover {
  border-color: rgba(37, 99, 235, 0.22);
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.1), 0 6px 18px rgba(26, 43, 71, 0.07);
}

.card__icon {
  width: 44px;
  height: 44px;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}
.card__icon svg { width: 100%; height: 100%; }

.card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* Individuelle Lösung – klar abgegrenzt */
.leistungen__custom {
  margin-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-2xl);
}

.leistungen__custom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  background: var(--color-accent-dim);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
}

.leistungen__custom-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}

.leistungen__custom-sub {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  max-width: 520px;
}


/* ----------------------------------------------------------
   8. ABLAUF
   ---------------------------------------------------------- */
.ablauf {
  padding: 5rem 0;
  background: var(--color-bg);
  position: relative;
}

/* Subtiles Gradient oben/unten damit es sich nicht abrupt trennt */
.ablauf::before,
.ablauf::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
}
.ablauf::before {
  top: 0;
  background: linear-gradient(to bottom, var(--color-bg), transparent);
}
.ablauf::after {
  bottom: 0;
  background: linear-gradient(to top, var(--color-bg), transparent);
}

.ablauf__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  max-width: 900px;
  margin-inline: auto;
}

.ablauf__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-md);
}

.ablauf__step-num {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  color: var(--color-accent);
  background: var(--color-accent-dim);
  border: 2px solid var(--color-border-accent);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: box-shadow var(--transition-base);
}
.ablauf__step:hover .ablauf__step-num {
  box-shadow: var(--shadow-accent);
}

.ablauf__step-title {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.ablauf__step-text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Verbindungslinie zwischen den Schritten */
.ablauf__connector {
  align-self: flex-start;
  margin-top: 36px;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-border-accent), var(--color-border));
  position: relative;
}
/* Pfeil-Spitze */
.ablauf__connector::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 8px solid var(--color-border);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}


/* ----------------------------------------------------------
   9. PROJEKTE
   ---------------------------------------------------------- */
.projekte {
  padding: 5rem 0;
}

.projekte__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

/* Projektkarte */
.card--project {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: default;
}
.card--project:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.1), 0 6px 20px rgba(26, 43, 71, 0.08);
}

.card--project__image-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--color-bg-3);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

/* Platzhalter wenn kein Bild vorhanden */
.card--project__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
}
.card--project__placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.3;
}

/* Echtes Bild */
.card--project__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.card--project:hover .card--project__image-wrap img {
  transform: scale(1.03);
}

/* "Interaktive Demo"-Badge */
.card--project__badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  padding: 0.3em 0.8em;
  border-radius: var(--radius-full);
}

.card--project__body {
  padding: 2rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 1;
}

.card--project__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-heading);
}

.card--project__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  flex: 1;
}

.btn--demo {
  align-self: flex-start;
}

.projekte__more {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-text-faint);
  font-style: italic;
}


/* ----------------------------------------------------------
   10. ÜBER MICH
   ---------------------------------------------------------- */
.ueber-mich {
  padding: 5rem 0;
  background: var(--color-bg);
  position: relative;
}
.ueber-mich::before,
.ueber-mich::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  pointer-events: none;
}
.ueber-mich::before { top: 0;    background: linear-gradient(to bottom, var(--color-bg), transparent); }
.ueber-mich::after  { bottom: 0; background: linear-gradient(to top,    var(--color-bg), transparent); }

.ueber-mich__inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

/* Bild-Block */
.ueber-mich__image-wrap {
  position: relative;
  flex-shrink: 0;
}

/* Portrait – sauber gerahmt, dezenter Schatten, passend zum Hero-Foto */
.ueber-mich__image-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(26, 43, 71, 0.16), 0 8px 24px rgba(26, 43, 71, 0.08);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.ueber-mich__image-wrap:hover img {
  transform: translateY(-4px);
  box-shadow: 0 32px 72px rgba(26, 43, 71, 0.2), 0 10px 28px rgba(26, 43, 71, 0.1);
}

/* Versprechen-Badge */
.ueber-mich__badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

/* Text-Block */
.ueber-mich__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.ueber-mich__text .section-label { align-self: flex-start; }
.ueber-mich__text .section-title { margin-bottom: 0; }
.ueber-mich__text p { color: var(--color-text-muted); line-height: 1.8; }

/* Versprechen-Liste */
.ueber-mich__promise {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.ueber-mich__promise-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.ueber-mich__promise-icon {
  font-size: var(--fs-base);
  flex-shrink: 0;
}


/* ----------------------------------------------------------
   11. KONTAKT
   ---------------------------------------------------------- */
.kontakt {
  padding: 5rem 0;
}

.kontakt__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-3xl);
  align-items: start;
}

/* Formular */
.kontakt__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
}

.form__input {
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: var(--fs-sm);
  color: var(--color-text);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  width: 100%;
  appearance: none;
}

.form__input::placeholder { color: var(--color-text-faint); }

.form__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-dim);
}

/* Rot erst nachdem der Nutzer das Feld berührt/geändert hat –
   :user-invalid greift (anders als :invalid) nicht schon beim Laden,
   und funktioniert korrekt auch für <select> (kein :placeholder-shown). */
.form__input:user-invalid,
.form__input.has-error {
  border-color: #ff4d4f;
}

/* Select-Wrapper für Custom-Arrow */
.form__select-wrap {
  position: relative;
}
.form__select { padding-right: 2.5rem; }
.form__select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-faint);
  pointer-events: none;
  font-size: 0.7em;
}

/* Textarea */
.form__textarea {
  resize: vertical;
  min-height: 130px;
}

/* Checkbox */
.form__checkbox-group { margin-top: var(--space-xs); }
.form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  cursor: pointer;
}
.form__checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  margin-top: 2px;
}

.form__submit { align-self: flex-start; }

.form__note {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
}

.form__feedback {
  padding: 0;
  font-size: var(--fs-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}
.form__feedback.is-success {
  padding: var(--space-md) var(--space-lg);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid var(--color-border-accent);
  color: var(--color-accent);
}
.form__feedback.is-error {
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 77, 79, 0.08);
  border: 1px solid rgba(255, 77, 79, 0.3);
  color: #ff4d4f;
}

/* Rechte Info-Spalte */
.kontakt__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

.kontakt__info-card {
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.kontakt__info-title {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--color-heading);
}

.kontakt__info-email {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
  word-break: break-all;
}

/* Dezenter "E-Mail kopiert!"-Hinweis */
.copy-hint {
  display: inline-block;
  margin-left: var(--space-sm);
  padding: 2px 10px;
  font-size: var(--fs-xs, 0.78rem);
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
  background: rgba(59, 130, 246, 0.12);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.copy-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.kontakt__info-text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.kontakt__info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}


/* ----------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.footer__logo {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-black);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.footer__tagline {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  max-width: 400px;
  line-height: 1.75;
}

.footer__links {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  flex-wrap: wrap;
}

.footer__link {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.footer__link:hover { color: var(--color-heading); }

.footer__bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
}


/* ----------------------------------------------------------
   13. CHATBOT-WIDGET
   ---------------------------------------------------------- */
.chatbot-widget {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 200;
}

/* Toggle-Button */
.chatbot-widget__toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  transition:
    transform var(--transition-spring),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
  position: relative;
}
.chatbot-widget__toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}
.chatbot-widget__toggle:active { transform: scale(0.95); }

.chatbot-widget__icon {
  width: 28px;
  height: 28px;
  position: absolute;
  transition: opacity var(--transition-base), transform var(--transition-base);
}
.chatbot-widget__icon--close {
  opacity: 0;
  transform: rotate(-90deg);
}
.chatbot-widget.is-open .chatbot-widget__icon--open {
  opacity: 0;
  transform: rotate(90deg);
}
.chatbot-widget.is-open .chatbot-widget__icon--close {
  opacity: 1;
  transform: rotate(0deg);
}

/* Notification-Badge */
.chatbot-widget__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #ff4d4f;
  color: white;
  font-size: 11px;
  font-weight: var(--fw-bold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-bg);
  transition: transform var(--transition-spring), opacity var(--transition-base);
}
.chatbot-widget__badge.is-hidden {
  transform: scale(0);
  opacity: 0;
}

/* Chat-Popup – geschlossener Grundzustand (immer im DOM, kein display:none
   damit die Ein-/Ausblend-Animation sauber und ruckelfrei läuft) */
.chatbot-popup {
  position: absolute;
  bottom: calc(100% + var(--space-md));
  right: 0;
  width: 360px;
  max-height: 520px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  /* Dezentes weiches Auf-/Zublenden – kein hartes Zoomen/Springen */
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.24s ease,
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.32s;
  pointer-events: none;
}

/* Offener Zustand (via .is-open auf dem Widget) */
.chatbot-widget.is-open .chatbot-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.chatbot-popup__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-3);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.chatbot-popup__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  border: 1.5px solid rgba(37, 99, 235, 0.4);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-black);
  flex-shrink: 0;
}

.chatbot-popup__name {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
}

.chatbot-popup__status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.chatbot-popup__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

/* Nachrichtenbereich */
.chatbot-popup__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  scroll-behavior: smooth;
}
/* Dünner Scrollbar */
.chatbot-popup__messages::-webkit-scrollbar { width: 4px; }
.chatbot-popup__messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-popup__messages::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-full); }

/* Bot-Nachricht */
.chatbot-msg {
  max-width: 85%;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  line-height: 1.6;
  animation: msgIn var(--transition-slow) ease;
}
.chatbot-msg--bot {
  background: var(--color-bg-3);
  color: var(--color-text);
  align-self: flex-start;
  border-radius: var(--radius-sm) var(--radius-md) var(--radius-md) var(--radius-md);
}
.chatbot-msg--user {
  background: var(--color-accent);
  color: var(--color-bg);
  align-self: flex-end;
  border-radius: var(--radius-md) var(--radius-sm) var(--radius-md) var(--radius-md);
  font-weight: var(--fw-medium);
}

/* Tipp-Indikator */
.chatbot-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-3);
  border-radius: var(--radius-sm) var(--radius-md) var(--radius-md) var(--radius-md);
  align-self: flex-start;
  width: fit-content;
}
.chatbot-typing span {
  width: 7px;
  height: 7px;
  background: var(--color-text-muted);
  border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}
.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

/* Schnellantwort-Buttons */
.chatbot-popup__quick {
  padding: 0 var(--space-md) var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.chatbot-quick-btn {
  font-size: var(--fs-xs);
  padding: 0.4em 0.85em;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-accent);
  background: var(--color-accent-dim);
  color: var(--color-accent);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast);
  font-family: var(--font-body);
}
.chatbot-quick-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

/* Input-Zeile */
.chatbot-popup__input-wrap {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.chatbot-popup__input {
  flex: 1;
  background: var(--color-bg-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: var(--fs-sm);
  color: var(--color-text);
  transition: border-color var(--transition-fast);
}
.chatbot-popup__input:focus {
  outline: none;
  border-color: var(--color-accent);
}
.chatbot-popup__input::placeholder { color: var(--color-text-faint); }

.chatbot-popup__send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.chatbot-popup__send:hover {
  transform: scale(1.08);
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.2);
}
.chatbot-popup__send svg { width: 18px; height: 18px; }


/* ----------------------------------------------------------
   14. DEMO-MODALS
   ---------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.modal[hidden] { display: none; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 43, 71, 0.45);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal__content {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90svh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn var(--transition-slow) var(--transition-spring);
}

.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-3);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  z-index: 2;
}
.modal__close:hover { background: var(--color-border); color: var(--color-heading); }
.modal__close svg { width: 18px; height: 18px; }

.modal__header {
  padding: var(--space-2xl) var(--space-2xl) var(--space-md);
}

.modal__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.modal__sub {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.modal__demo {
  padding: 0 var(--space-2xl) var(--space-2xl);
}


/* ----------------------------------------------------------
   15. RESPONSIVE – Tablet & Mobile
   ---------------------------------------------------------- */

/* Tablet: bis 1024px */
@media (max-width: 1024px) {
  .hero__inner { gap: var(--space-2xl); }
  .hero__media { max-width: 340px; }
  .leistungen__grid { grid-template-columns: repeat(2, 1fr); }
  .ablauf__steps {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  .ablauf__connector {
    width: 2px;
    height: 40px;
    margin: 0 auto;
    background: linear-gradient(to bottom, var(--color-border-accent), var(--color-border));
  }
  .ablauf__connector::after {
    top: auto;
    bottom: -1px;
    right: 50%;
    transform: translateX(50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--color-border);
  }
  .ueber-mich__inner {
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
  }
  .kontakt__inner {
    grid-template-columns: 1fr;
  }
  .kontakt__info {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile: bis 768px */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  /* Nav: Desktop-Elemente ausblenden */
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  /* Kompaktere Sektionsabstände auf Mobil – weniger Scrollen */
  .leistungen,
  .ablauf,
  .projekte,
  .ueber-mich,
  .kontakt { padding: 3rem 0; }
  .section-header { margin-bottom: var(--space-xl); }

  /* Hero: gestapelt, oben ausgerichtet – Text & CTA schnell sichtbar */
  .hero {
    min-height: auto;
    justify-content: flex-start;
    padding-top: calc(var(--nav-height) + var(--space-md));
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
    padding-top: 0;
    padding-bottom: var(--space-xl);
  }
  .hero__text {
    align-items: center;
    text-align: center;
  }
  .hero__label { margin-bottom: var(--space-md); }
  .hero__headline { margin-bottom: var(--space-md); }
  .hero__sub {
    margin-inline: auto;
    margin-bottom: var(--space-lg);
  }
  .hero__buttons { justify-content: center; }
  /* Reihenfolge auf Mobil: Text, dann Foto (Foto NICHT mehr oben) */
  .hero__media {
    order: 0;
    max-width: 260px;
    margin-inline: auto;
    margin-top: var(--space-md);
  }
  .hero__media-badge {
    font-size: 0.68rem;
    padding: 0.4em 0.8em;
  }
  /* Kosten-Rechner-Block kompakter auf Mobil */
  .rechner { padding: var(--space-2xl) 0; }
  .calc {
    padding: var(--space-lg);
    text-align: left;
  }
  .calc__title { font-size: var(--fs-md); }
  .calc__result-value { font-size: var(--fs-xl); }

  /* Scroll-Pfeil auf Mobil ausblenden (spart Platz, ruhiger) */
  .hero__scroll { display: none; }

  /* Trust-Streifen: gestapelt, linksbündig */
  .trust__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-lg) 0;
  }

  /* Karten kompakter */
  .card { padding: 1.75rem; }

  /* Leistungen */
  .leistungen__grid { grid-template-columns: 1fr; }
  .leistungen__custom { padding-top: var(--space-xl); }
  .leistungen__custom-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-lg);
    gap: var(--space-md);
  }

  /* Projekte */
  .projekte__grid { grid-template-columns: 1fr; }

  /* Über mich */
  .ueber-mich__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .ueber-mich__image-wrap {
    max-width: 240px;
    margin-inline: auto;
  }

  /* Kontakt */
  .form__row { grid-template-columns: 1fr; }
  .kontakt__inner { gap: var(--space-xl); }
  .kontakt__info { grid-template-columns: 1fr; }

  /* Footer */
  .footer { padding: var(--space-2xl) 0 var(--space-lg); }
  .footer__inner { flex-direction: column; }
  .footer__links { gap: var(--space-md); }

  /* Chatbot */
  .chatbot-popup {
    width: calc(100vw - 2 * var(--space-lg));
    right: calc(-1 * var(--space-xl) + var(--space-lg));
  }
}

/* Sehr klein: bis 480px */
@media (max-width: 480px) {
  .hero__buttons { flex-direction: column; align-items: stretch; }
  .hero__buttons .btn { text-align: center; }
  .modal__content { border-radius: var(--radius-lg); }
  .modal__header { padding: var(--space-xl) var(--space-lg) var(--space-md); }
  .modal__demo { padding: 0 var(--space-lg) var(--space-xl); }
}


/* ----------------------------------------------------------
   16. KARTEN-VORSCHAU-MOCKUPS
   ---------------------------------------------------------- */

/* Gemeinsame Basis */
.card--project__preview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg-3);
}

/* ---- Messenger-Vorschau ---- */
.prev-messenger {
  width: 100%;
  max-width: 270px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.prev-messenger__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.prev-messenger__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  flex-shrink: 0;
}

.prev-messenger__name {
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.2;
}

.prev-messenger__status {
  font-size: 0.55rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.prev-messenger__status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
}

.prev-messenger__msgs {
  padding: 0.6rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--color-bg-2);
}

.prev-messenger__bubble {
  padding: 0.38rem 0.65rem;
  border-radius: 8px;
  font-size: 0.67rem;
  line-height: 1.4;
  max-width: 82%;
}

.prev-messenger__bubble--in {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  align-self: flex-start;
  border-radius: 3px 8px 8px 8px;
}

.prev-messenger__bubble--out {
  background: var(--color-accent);
  color: #fff;
  align-self: flex-end;
  border-radius: 8px 3px 8px 8px;
}

/* ---- Angebot-Vorschau ---- */
.prev-angebot {
  width: 100%;
  max-width: 280px;
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.prev-angebot__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.prev-angebot__title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-heading);
}

.prev-angebot__num {
  font-size: 0.58rem;
  color: var(--color-text-faint);
}

.prev-angebot__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.36rem 0.75rem;
  font-size: 0.63rem;
  border-bottom: 1px solid rgba(26, 43, 71, 0.05);
}
.prev-angebot__row span:first-child { color: var(--color-text-muted); }
.prev-angebot__row span:last-child { color: var(--color-text); font-weight: 500; }

.prev-angebot__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.05);
}
.prev-angebot__total span:first-child { color: var(--color-heading); }
