/* ==========================================================================
   Sven Engelke Fliesenlegerfachbetrieb – gemeinsames Stylesheet
   ========================================================================== */

/* Lokale Schriften (DSGVO: keine Verbindung zu Google).
   Quelle: assets/fonts/Inter (1) und assets/fonts/Kalam, per fontTools auf Latin + Umlaute reduziert. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/kalam-bold-latin.woff2') format('woff2');
}

:root {
  --c-turquoise: #76BCC5;
  --c-deepblue: #386382;
  --c-black: #000000;
  --c-white: #FFFFFF;
  --c-gray: #706F6F;
  --c-sand: #f7f6f5;
  --c-line: #e6e4e1;
  --c-error: #c0392b;

  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --radius-pill: 999px;

  --content-max: 1200px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --blob: 38% 62% 55% 45% / 48% 42% 58% 52%;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--c-gray);
  line-height: 1.6;
  background: var(--c-white);
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: var(--c-deepblue); text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; border: none; }
input, textarea, select { font-family: inherit; }
:focus-visible { outline: 3px solid var(--c-turquoise); outline-offset: 2px; }

.container { max-width: var(--content-max); margin: 0 auto; }

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

@keyframes img-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background 0.4s var(--ease-out);
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: scale(0.97); }

.btn--turquoise { background: var(--c-turquoise); color: var(--c-white); }
.btn--turquoise:hover { box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22); }
.btn--black { background: var(--c-black); color: var(--c-white); padding: 14px 28px; }
.btn--black:hover { box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2); }
.btn--lg { padding: 16px 32px; }
.btn--md { padding: 14px 26px; }
.btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid var(--c-white);
  color: var(--c-white);
  padding: 14px 26px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.28); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  padding: 20px 24px;
}
.site-header__inner {
  max-width: var(--content-max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.site-header__logo { display: flex; align-items: center; white-space: nowrap; min-width: 0; }
/* Seitenverhältnis immer beibehalten: nur die Höhe steuert die Größe */
.site-header__logo img { height: 56px; width: auto; max-width: none; object-fit: contain; display: block; }

.main-nav { display: flex; align-items: center; gap: 24px; justify-content: center; white-space: nowrap; }
.main-nav a {
  color: var(--c-black); font-weight: 500;
  border-bottom: 2px solid transparent; padding-bottom: 4px; line-height: 1;
  display: inline-block;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.main-nav a:hover { transform: translateY(-2px) scale(1.05); }
.main-nav a[aria-current="page"] { color: var(--c-deepblue); font-weight: 600; border-bottom-color: var(--c-deepblue); }

.site-header__cta { display: flex; align-items: center; justify-self: end; }
.site-header__cta .btn { padding: 12px 22px; }
.site-header__cta .btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }

.burger {
  display: none; grid-column: 3; justify-self: end;
  width: 44px; height: 44px; padding: 0; margin-right: -10px;
  background: none; border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.burger:hover { background: rgba(0, 0, 0, 0.05); }
.burger svg { display: block; }
.burger svg { overflow: visible; }
.burger svg path { fill: none; stroke: var(--c-black); stroke-width: 2; stroke-linecap: round; }
/* Animation Burger → X (Zustand kommt von aria-expanded, gesetzt in js/main.js) */
.burger__line {
  transform-box: view-box; transform-origin: 12px 12px;
  transition: transform 0.35s var(--ease-out), opacity 0.2s ease;
}
.burger[aria-expanded="true"] .burger__line--top { transform: rotate(45deg) translateY(8px); }
.burger[aria-expanded="true"] .burger__line--mid { opacity: 0; transform: scaleX(0.2); }
.burger[aria-expanded="true"] .burger__line--bot { transform: rotate(-45deg) translateY(-8px); }
@media (prefers-reduced-motion: reduce) { .burger__line { transition: none; } }

.mobile-nav {
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px 8px 12px; border-top: 1px solid #eee; margin-top: 14px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { color: var(--c-black); font-weight: 500; transition: color 0.25s ease; }
.mobile-nav a[aria-current="page"] { color: var(--c-deepblue); font-weight: 600; }

/* --------------------------------------------------------------------------
   Wave dividers
   -------------------------------------------------------------------------- */
.wave { height: 90px; line-height: 0; font-size: 0; }
.wave svg { display: block; width: 100%; height: 90px; }

/* --------------------------------------------------------------------------
   Page header (Unterseiten)
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--c-deepblue); position: relative;
  padding: calc(var(--space-6) + 40px) 24px 0; text-align: center;
}
.page-hero__inner { max-width: 760px; margin: 0 auto; }
.eyebrow {
  color: var(--c-turquoise); font-weight: 700; font-size: 17px;
  letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 12px;
}
.page-hero h1 {
  color: var(--c-white); font-size: clamp(30px, 4.4vw, 44px); font-weight: 700;
  line-height: 1.2; margin: 0 0 16px;
}
.page-hero__lead { color: rgba(255, 255, 255, 0.88); font-size: 17px; margin: 0; }
.page-hero .wave { margin: var(--space-5) -24px -1px; background: var(--c-white); }

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.section-title {
  color: var(--c-black); font-size: clamp(24px, 3.4vw, 32px); font-weight: 700;
  margin: 0 0 40px; text-align: center;
}
.section-more { text-align: center; margin-top: 40px; }

/* --------------------------------------------------------------------------
   Media / image zoom
   -------------------------------------------------------------------------- */
.media { display: block; width: 100%; position: relative; overflow: hidden; background: #eeece9; }
.media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  animation: img-fade-in 0.9s ease both;
  transition: transform 0.4s var(--ease-out);
}
.img-zoom-hover { cursor: pointer; }
.img-zoom-hover:hover .media img,
.img-zoom-hover.media:hover img { transform: scale(1.05); }

button.media { padding: 0; border: 0; font: inherit; }

.blob-frame { border-radius: var(--blob); overflow: hidden; }

.icon-blob {
  background: var(--c-turquoise);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-blob svg path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Startseite – Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; width: 100%; }
.hero__stage {
  position: relative; width: 100%; display: flex; align-items: center;
  height: min(92vw, 820px, 88vh); min-height: 420px;
}
.hero__img, .hero__shade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  clip-path: url(#heroWaveClip); -webkit-clip-path: url(#heroWaveClip);
}
.hero__img { object-fit: cover; animation: img-fade-in 0.9s ease both; }
.hero__shade {
  pointer-events: none;
  background:
    radial-gradient(circle 260px at 24% 50%, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 100%),
    radial-gradient(ellipse farthest-corner at 24% 32%, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.55) 42%, rgba(0,0,0,0.1) 78%, rgba(0,0,0,0) 100%);
}
.hero__content {
  position: relative; z-index: 1; width: 100%;
  padding: 36px max(24px, calc((100% - 1200px) / 2 + 24px));
}
.hero__text { max-width: 460px; }
.hero h1 {
  color: var(--c-white); font-size: clamp(24px, 4.6vw, 40px); font-weight: 700;
  line-height: 1.2; margin: 0 0 8px;
}
.hero h1 .script { font-family: 'Kalam', cursive; color: var(--c-turquoise); font-size: 1.25em; }
.hero__sub { color: var(--c-white); font-size: 15px; opacity: 0.92; margin: 0 0 16px; max-width: 400px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero__actions .btn:hover { box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28); }

/* --------------------------------------------------------------------------
   Startseite – Vertrauensleiste
   -------------------------------------------------------------------------- */
.trust { background: var(--c-white); padding: var(--space-3) 24px var(--space-4); }
.trust__grid {
  max-width: var(--content-max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
}
.trust__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.trust__item .icon-blob { width: 84px; height: 84px; }
.trust__item p { color: var(--c-black); font-weight: 600; font-size: 15px; margin: 0; max-width: 180px; }

/* --------------------------------------------------------------------------
   Startseite – Kurzvorstellung
   -------------------------------------------------------------------------- */
.intro { background: var(--c-deepblue); position: relative; padding: 0 24px var(--space-6); }
.intro__grid {
  max-width: var(--content-max); margin: 0 auto;
  display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center;
}
.intro__img { aspect-ratio: 4 / 5; width: 80%; margin: 48px auto 0; }
.intro h2 { color: var(--c-white); font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; margin: 0 0 16px; }
.intro p { color: rgba(255, 255, 255, 0.88); font-size: 17px; margin: 0 0 12px; }
.intro p:last-of-type { margin-bottom: 24px; }

/* --------------------------------------------------------------------------
   Startseite – Leistungen-Teaser
   -------------------------------------------------------------------------- */
.services-teaser { background: var(--c-white); padding: var(--space-6) 24px var(--space-5); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.service-card {
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-lg);
  overflow: hidden; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08); background: var(--c-white);
}
.service-card .media { height: 190px; }
.service-card__body { padding: 20px; position: relative; cursor: default; }
.service-card__body .icon-blob {
  position: absolute; top: -46px; left: 20px; width: 52px; height: 52px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}
.service-card h3 { color: var(--c-black); font-size: 18px; font-weight: 600; margin: 14px 0 6px; }
.service-card p { color: var(--c-gray); font-size: 15px; margin: 0; }

/* --------------------------------------------------------------------------
   Startseite – Referenzen-Teaser
   -------------------------------------------------------------------------- */
.refs-teaser { background: var(--c-sand); padding: var(--space-6) 24px var(--space-5); }
.ref-row { display: flex; flex-wrap: nowrap; justify-content: center; gap: 20px; }
.ref-card {
  flex: 1 1 0; min-width: 0; aspect-ratio: 1; width: 100%;
  border-radius: var(--radius-md); box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
}
@media (max-width: 900px) { .ref-row .ref-card:nth-child(5) { display: none; } }
@media (max-width: 520px) { .ref-row { flex-wrap: wrap; } .ref-row .ref-card { flex: 1 1 140px; } }

/* --------------------------------------------------------------------------
   Startseite – Kundenstimmen (Google-Bewertungen)
   -------------------------------------------------------------------------- */
.reviews { background: var(--c-white); padding: var(--space-6) 24px var(--space-5); }
/* Direkt nach den Leistungen (ebenfalls weiß): kleinerer Abstand oben, sonst entsteht eine große Lücke */
.reviews--nach-leistungen { padding-top: var(--space-4); }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; fill: var(--c-turquoise); display: block; }
.stars--lg svg { width: 26px; height: 26px; }

.reviews__summary {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: -12px auto 40px;
}
.reviews__score { color: var(--c-black); font-size: 56px; font-weight: 700; line-height: 1; margin: 0; letter-spacing: -0.02em; }
.reviews__count { color: var(--c-gray); font-size: 15px; margin: 6px 0 0; }

/* 4 nebeneinander (Desktop) → 2 (Tablet) → 1 (Handy) */
.reviews__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1100px) { .reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .reviews__grid { grid-template-columns: 1fr; } }
.reviews__grid:empty { display: none; }
.review {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--c-sand); padding: 28px 22px 24px;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-lg);
}
.review::before {
  content: "\201C"; position: absolute; top: -18px; right: 24px;
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: var(--c-turquoise); color: #fff; font-size: 44px; font-weight: 700; line-height: 1; padding-top: 16px;
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}
.review:nth-child(3n+2)::before { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
.review:nth-child(3n)::before { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; }
.review__head { display: flex; align-items: center; gap: 10px; }
.review__source { color: var(--c-gray); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.review__text { margin: 0; flex: 1; }
.review__text p { color: var(--c-black); font-size: 15px; line-height: 1.65; margin: 0; }
.review__author { color: var(--c-deepblue); font-weight: 600; font-size: 15px; margin: 0; }
.review__text p + p { margin-top: 8px; }
/* Lange Bewertungen: auf ca. 7 Zeilen kürzen, unten sanft ausblenden (funktioniert auch bei mehreren Absätzen) */
.review__text.is-clamped {
  max-height: calc(15px * 1.65 * 7); overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
}
.review__head { padding-right: 50px; flex-wrap: wrap; row-gap: 4px; } /* Platz für das Anführungszeichen oben rechts */
.review__time { color: var(--c-gray); font-weight: 400; font-size: 13px; }
.review__more { align-self: flex-start; background: none; padding: 0; margin-top: -6px; color: var(--c-deepblue); font-size: 14px; font-weight: 600; text-decoration: underline; }
.review__more[hidden] { display: none; }
.review__author a { color: inherit; }
.review__author a:hover { text-decoration: underline; }
.stars svg.is-empty { fill: #d9d6d2; }
.reviews__stand { white-space: nowrap; }
.reviews__note { color: var(--c-gray); font-size: 13px; text-align: center; max-width: 640px; margin: 28px auto 0; }
.reviews__extern { color: var(--c-gray); font-size: 12px; margin: 12px 0 0; }

@media (max-width: 520px) {
  .reviews__summary { gap: 14px; }
  .reviews__score { font-size: 46px; }
}

/* --------------------------------------------------------------------------
   CTA-Band
   -------------------------------------------------------------------------- */
.cta-band { background: var(--c-deepblue); position: relative; padding: 0 24px var(--space-6); text-align: center; }
.cta-band--home { padding-bottom: calc(var(--space-6) + 35px); }
.cta-band--home .cta-band__inner { padding-top: var(--space-5); }
.cta-band > .wave { background: var(--c-white); margin: 0 -24px var(--space-5); }
/* Welle nahtlos in den blauen Block übergehen lassen (keine helle Kante / Haarlinie) */
.cta-band > .wave svg { height: 92px; margin-bottom: -2px; }
.cta-band > .wave svg path:last-child { opacity: 1; }
.cta-band__inner { max-width: 640px; margin: 0 auto; }
.cta-band h2 { color: var(--c-white); font-size: clamp(22px, 3.2vw, 30px); font-weight: 700; margin: 0 0 24px; }

/* --------------------------------------------------------------------------
   Leistungen
   -------------------------------------------------------------------------- */
.services-list { background: var(--c-white); padding: 0 24px var(--space-6); }
.services-list__inner { max-width: var(--content-max); margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-6); }
.service-row { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
.service-row:nth-child(even) { grid-template-columns: 7fr 5fr; }
.service-row:nth-child(even) .service-row__img { order: 2; }
.service-row__img { aspect-ratio: 4 / 3; }
.service-row .icon-blob { width: 52px; height: 52px; margin-bottom: 18px; }
.service-row h2 { color: var(--c-black); font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; margin: 0 0 12px; }
.service-row p { color: var(--c-gray); font-size: 16px; margin: 0; }

/* --------------------------------------------------------------------------
   Referenzen-Galerie
   -------------------------------------------------------------------------- */
.gallery { background: var(--c-white); padding: 0 24px var(--space-6); }
.gallery__grid {
  max-width: var(--content-max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.gallery__item { border-radius: var(--radius-md); aspect-ratio: 4 / 3; box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07); }

/* --------------------------------------------------------------------------
   Über mich
   -------------------------------------------------------------------------- */
.bio { background: var(--c-white); padding: 0 24px var(--space-6); }
.bio__grid {
  max-width: var(--content-max); margin: 0 auto;
  display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: center;
}
.bio__img { aspect-ratio: 4 / 5; width: 80%; margin: 0 auto; }
.bio h2 { color: var(--c-black); font-size: clamp(22px, 3vw, 28px); font-weight: 700; margin: 0 0 20px; }
.bio p { color: var(--c-gray); font-size: 17px; margin: 0 0 18px; }
.bio p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Rechtstexte (Impressum, Datenschutz)
   -------------------------------------------------------------------------- */
.legal { background: var(--c-white); padding: var(--space-4) 24px var(--space-6); }
.legal__inner { max-width: 760px; margin: 0 auto; overflow-wrap: break-word; hyphens: auto; }
.legal h2 { color: var(--c-black); font-size: clamp(20px, 2.6vw, 24px); font-weight: 700; line-height: 1.3; margin: 48px 0 16px; }
.legal h3 { color: var(--c-black); font-size: 18px; font-weight: 600; line-height: 1.35; margin: 32px 0 10px; }
.legal h4 { color: var(--c-black); font-size: 16px; font-weight: 600; margin: 22px 0 6px; }
.legal__inner > :first-child { margin-top: 0; }
.legal p, .legal li { color: var(--c-gray); font-size: 16px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--c-deepblue); text-decoration: underline; text-underline-offset: 2px; }
.legal__source { margin-top: 40px !important; font-size: 13px !important; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--c-white); border-top: 1px solid var(--c-line); position: relative; padding: 64px 24px 32px; }
.site-footer__grid {
  max-width: var(--content-max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px;
}
.site-footer__logo { height: 44px; width: auto; max-width: none; object-fit: contain; display: block; margin: 0 0 16px; }
.site-footer p, .site-footer a { font-size: 14px; }
.site-footer__blurb { color: var(--c-gray); margin: 0 0 20px; }
.partner-logos { display: flex; gap: 16px; align-items: center; }
.partner-logos img { width: 100px; height: 36px; object-fit: contain; display: block; }
.site-footer p.site-footer__heading { color: var(--c-black); font-weight: 600; margin: 0 0 14px; font-size: 16px; }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; }
.site-footer__links a { color: var(--c-black); transition: color 0.2s ease; }
.site-footer__links a:hover { color: var(--c-turquoise); }
.site-footer__contact p { color: var(--c-gray); margin: 0 0 6px; }
.site-footer__contact a { color: var(--c-gray); }
.site-footer__contact p.gap { margin-bottom: 20px; }
.site-footer__bottom {
  max-width: var(--content-max); margin: 40px auto 0; padding-top: 20px;
  border-top: 1px solid var(--c-line);
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between;
}
.site-footer__bottom div { display: flex; gap: 20px; }
.site-footer__bottom a, .site-footer__bottom p { color: var(--c-gray); font-size: 13px; margin: 0; }

/* --------------------------------------------------------------------------
   Mobile Sticky Bar
   -------------------------------------------------------------------------- */
.sticky-bar-spacer { display: none; height: 76px; }
.sticky-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--c-white); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  padding: 12px 16px; gap: 12px;
}
.sticky-bar a {
  flex: 1; text-align: center; font-weight: 600; padding: 12px;
  border-radius: var(--radius-pill); transition: transform 0.35s var(--ease-out);
}
.sticky-bar a:active { transform: scale(0.95); }
.sticky-bar__call { background: var(--c-white); border: 2px solid var(--c-deepblue); color: var(--c-deepblue); }
.sticky-bar__cta { background: var(--c-turquoise); color: var(--c-white); }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.88);
  display: flex; align-items: center; justify-content: center; padding: 40px;
  animation: img-fade-in 0.25s ease both;
}
.lightbox[hidden] { display: none; }
.lightbox__stage { width: min(90vw, 900px); height: min(85vh, 700px); display: flex; align-items: center; justify-content: center; }
.lightbox--single .lightbox__stage { width: min(90vw, 700px); }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; display: block; animation: img-fade-in 0.35s ease both; }
.lightbox__btn {
  position: absolute; z-index: 2; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__btn svg { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 24px; right: 24px; width: 44px; height: 44px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox--single .lightbox__prev, .lightbox--single .lightbox__next { display: none; }
body.no-scroll { overflow: hidden; }

/* --------------------------------------------------------------------------
   Scroll-Reveal
   Nur aktiv, wenn JS läuft (html.js) – ohne JS ist alles sichtbar.
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  --reveal-y: 36px; --reveal-dur: 0.7s;
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition: opacity var(--reveal-dur) var(--ease-out), transform var(--reveal-dur) var(--ease-out);
}
.js [data-reveal="fade"] { transform: none; opacity: 0; transition: opacity 0.7s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: translateY(0); }
.js [data-reveal="fade"].is-in { transform: none; }

.js [data-reveal] .reveal-child {
  --child-y: 36px; --child-dur: 0.7s; --child-ease: var(--ease-out);
  opacity: 0;
  transform: translateY(var(--child-y));
  transition: opacity var(--child-dur) var(--child-ease) var(--d, 0s), transform var(--child-dur) var(--child-ease) var(--d, 0s);
}
.js [data-reveal].is-in .reveal-child { opacity: 1; transform: translateY(0); }

/* Vertrauensleiste: Items 24px, 0.6s ease */
.js .trust .reveal-child { --child-y: 24px; --child-dur: 0.6s; --child-ease: ease; }
/* Referenzen-Galerie: 28px, 0.6s */
.js .gallery__item[data-reveal] {
  --reveal-y: 28px; --reveal-dur: 0.6s;
  transition-delay: var(--d, 0s);
}
/* Über mich: 32px */
.js .bio[data-reveal] { --reveal-y: 32px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-reveal] .reveal-child { opacity: 1 !important; transform: none !important; transition: none !important; }
  .media img, .hero__img, .lightbox, .lightbox__stage img { animation: none; }
}

@media (max-width: 360px) {
  .site-header { padding: 16px 16px; }
  .site-header__logo img { height: 46px; }
}

/* --------------------------------------------------------------------------
   Responsive (≤ 1080px: mobile Navigation + Sticky-Bar)
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .main-nav, .site-header__cta { display: none; }
  /* Mobil nur Logo + Burger: Logo bekommt den ganzen verfügbaren Platz */
  .site-header__inner { grid-template-columns: 1fr auto; }
  .burger { display: flex; grid-column: 2; }
  .sticky-bar { display: flex; }
  .sticky-bar-spacer { display: block; }

  .hero__stage { height: auto; min-height: 480px; }
  .hero__content { padding: 96px max(24px, calc((100% - 1200px) / 2 + 24px)) 36px; }

  .intro__grid, .bio__grid { grid-template-columns: 1fr; }

  .service-row, .service-row:nth-child(even) { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row__img { order: 0; }
}

/* --------------------------------------------------------------------------
   Kontakt – Infos + Anfrage-Assistent
   -------------------------------------------------------------------------- */
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(220%); } }
@keyframes wave-drift { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.contact { background: var(--c-white); padding: 0 24px var(--space-6); scroll-margin-top: 110px; }
.contact__grid {
  max-width: var(--content-max); margin: 0 auto;
  display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: start;
}
.contact-info h2 { color: var(--c-black); font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.contact-info__intro { color: var(--c-gray); font-size: 15px; margin: 0 0 24px; }
.contact-info__list { display: flex; flex-direction: column; gap: 20px; }
.contact-info__label { color: var(--c-black); font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.contact-info__list a { color: var(--c-deepblue); font-size: 16px; }
.contact-info__list address { color: var(--c-gray); font-size: 16px; font-style: normal; margin: 0; }

.wizard { background: var(--c-sand); border-radius: var(--radius-lg); padding: 32px; position: relative; overflow: hidden; }
.wizard h2 { color: var(--c-black); font-size: 20px; font-weight: 700; margin: 0 0 20px; }
.wizard h2:focus { outline: none; }
.wizard h2.tight { margin-bottom: 4px; }
.wizard__hint { color: var(--c-gray); font-size: 14px; margin: 0 0 20px; }
.wizard__meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.wizard__stepnum { color: var(--c-black); font-weight: 600; font-size: 14px; }
.wizard__eta { color: var(--c-gray); font-size: 13px; }

.progress { height: 10px; background: #e3e1de; border-radius: var(--radius-pill); overflow: hidden; margin-bottom: 28px; position: relative; }
.progress__bar {
  height: 100%; width: 20%;
  background: linear-gradient(90deg, var(--c-turquoise), #9ad3d9);
  border-radius: var(--radius-pill); position: relative; overflow: hidden;
  transition: width 0.5s var(--ease-out);
}
.progress__bar::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: shimmer 2.2s ease-in-out infinite;
}

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.tile {
  background: var(--c-white); border: 2px solid var(--c-line); border-radius: var(--radius-md);
  padding: 18px 12px; text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); }
.tile.is-selected { background: rgba(118, 188, 197, 0.16); border-color: var(--c-turquoise); }
.tile .icon-blob { width: 44px; height: 44px; margin: 0 auto 10px; }
.tile__label { display: block; color: var(--c-black); font-weight: 600; font-size: 14px; }

.link-btn { display: block; margin: 16px auto 0; background: none; color: var(--c-gray); font-size: 13px; text-decoration: underline; }
.link-btn--first { margin-top: 20px; }

.field-title { color: var(--c-black); font-weight: 600; font-size: 15px; margin: 0 0 10px; }
.field-title--upload { margin-bottom: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pills--tight { margin-bottom: 8px; }
.pills--mid { margin-bottom: 22px; }
.pills--form { margin-bottom: 20px; }
.pills--last { margin-bottom: 24px; }
.pill {
  background: #eeece9; color: var(--c-gray); font-weight: 500;
  padding: 10px 18px; border-radius: var(--radius-pill); font-size: 14px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.pill.is-selected { background: var(--c-turquoise); color: #fff; font-weight: 700; }

.wizard__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.wizard__nav--form { margin-top: 20px; }
.btn-back { background: none; color: var(--c-gray); font-weight: 600; padding: 12px 4px; }
.btn-next {
  background: var(--c-black); color: var(--c-white); font-weight: 600;
  padding: 14px 30px; border-radius: var(--radius-pill); transition: transform 0.3s ease;
}
.btn-next:hover { transform: translateY(-2px); }
.btn-submit {
  background: var(--c-turquoise); color: var(--c-white); font-weight: 700;
  padding: 16px 34px; border-radius: var(--radius-pill);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.btn-submit:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18); }
.btn-submit:active { transform: scale(0.97); }
.btn-submit[disabled] { opacity: 0.7; cursor: progress; transform: none; }

.small-hint { color: var(--c-gray); font-size: 13px; margin: 0 0 10px; }
.dropzone {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 2px dashed var(--c-turquoise); border-radius: var(--radius-md);
  padding: 22px; cursor: pointer; background: var(--c-white);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.dropzone.is-over { border-color: var(--c-deepblue); background: rgba(118, 188, 197, 0.14); }
.dropzone svg { opacity: 0.6; }
.dropzone span { color: var(--c-gray); font-size: 13px; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone:focus-within { outline: 3px solid var(--c-turquoise); outline-offset: 2px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thumb { position: relative; width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: #e3e1de center / cover no-repeat; }
.thumb button {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.65); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1; padding: 0;
}

.plz-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-bottom: 6px; }
.form-label { display: block; color: var(--c-black); font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.form-label--question { margin: 0 0 10px; }
.input {
  width: 100%; padding: 14px 16px; min-height: 48px;
  border: 1.5px solid #ddd; border-radius: var(--radius-sm);
  font-size: 15px; color: var(--c-black); background: var(--c-white);
}
textarea.input { resize: vertical; }
.input.has-error { border-color: var(--c-error); }
.field { margin-bottom: 16px; }
.field--gap { margin-bottom: 20px; }
.error { color: var(--c-error); font-size: 13px; margin: 6px 0 0; }
.error--block { margin: 0 0 12px; }
.error[hidden], .note[hidden] { display: none; }
.help { color: var(--c-gray); font-size: 12px; margin: 6px 0 0; }
.help--right { text-align: right; }
.note {
  color: var(--c-deepblue); background: rgba(118, 188, 197, 0.18);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; margin: 12px 0 0;
}

.summary { background: var(--c-white); border-radius: var(--radius-md); padding: 18px 20px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 12px; }
.summary__title { color: var(--c-black); font-weight: 700; font-size: 14px; margin: 0; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-top: 1px solid #eee; padding-top: 10px; }
.summary__label { color: var(--c-gray); font-size: 12px; margin: 0 0 2px; text-transform: uppercase; letter-spacing: 0.04em; }
.summary__value { color: var(--c-black); font-size: 14px; margin: 0; }
.summary__edit { background: none; color: var(--c-deepblue); font-size: 13px; font-weight: 600; text-decoration: underline; padding: 0; white-space: nowrap; }

.consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--c-turquoise); }
.consent span { color: var(--c-gray); font-size: 13px; }
.consent a { color: var(--c-deepblue); text-decoration: underline; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.send-error { color: var(--c-error); font-size: 14px; margin: 16px 0 0; }

.success-wave { position: absolute; inset: 0; opacity: 0.12; overflow: hidden; }
.success-wave svg { display: block; width: 200%; height: 100%; animation: wave-drift 14s linear infinite; }
.success { position: relative; text-align: center; padding: 24px 8px; animation: img-fade-in 0.5s ease both; }
.success__icon {
  width: 64px; height: 64px; margin: 0 auto 20px; background: var(--c-turquoise);
  border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
  display: flex; align-items: center; justify-content: center;
}
.wizard .success h2 { font-size: 22px; margin: 0 0 12px; }
.success p { color: var(--c-gray); font-size: 16px; margin: 0 0 8px; }
.success p.success__call { font-size: 15px; margin: 0 0 24px; }
.success__call a { color: var(--c-deepblue); font-weight: 600; }
.success .btn--black { padding: 12px 26px; }

@media (prefers-reduced-motion: reduce) {
  .progress__bar::after, .success-wave svg { animation: none !important; }
  .progress__bar { transition: none; }
}

@media (max-width: 1080px) {
  .contact__grid { grid-template-columns: 1fr; }
  .plz-grid { grid-template-columns: 1fr; }
  .pill { padding: 14px 20px; min-height: 48px; font-size: 15px; }
  .tile { padding: 22px 14px; min-height: 96px; }
}
