/* ==========================================================================
   Brillen vor Ort – Stylesheet
   Hell, freundlich, modern. Schrift „Outfit“ lokal gehostet (DSGVO). Mobile first.
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin.woff2?v=2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-primary: #1e6fd9;
  --c-primary-600: #1859b0;
  --c-primary-100: #d9e8fc;
  --c-primary-50: #eef5ff;
  --c-sky: #38bdf8;
  --c-accent: #ff9f43;
  --c-accent-600: #f0801a;
  --c-accent-soft: #fff3e6;
  /* Dunkle Markenfarbe + hellere Abstufungen für Verläufe */
  --c-dark: #608686;
  --c-dark-700: #4e7272;
  --c-dark-400: #7fa1a1;
  --c-dark-300: #9dbaba;
  --c-dark-200: #c2d6d5;
  --c-dark-50: #f0f6f6;
  --c-heading: #608686;
  --c-text: #334848;
  --c-muted: #667b7b;
  --c-border: #e3ebf4;
  --c-bg: #ffffff;
  --c-tint: #f5f9ff;
  --c-success: #16a34a;
  --c-error: #dc2626;

  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-sm: 0.9rem;
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-lg: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  --fs-h3: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.6rem);
  --fs-h1: clamp(2.3rem, 1.6rem + 3vw, 4rem);

  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgb(15 42 74 / 5%), 0 4px 12px rgb(15 42 74 / 5%);
  --shadow: 0 12px 32px -12px rgb(30 111 217 / 25%);
  --shadow-lg: 0 30px 60px -24px rgb(15 42 74 / 30%);

  --container: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --roof-h: clamp(64px, 8.5vw, 124px);   /* Footer-Dachsilhouette 1440×140 → Breite = Höhe × 10.2857 */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: 1.65;
  color: var(--c-text); background: var(--c-bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.55em; color: var(--c-heading); }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-600); }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--c-muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--c-primary); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.icon-sm { width: 1em; height: 1em; }
.icon-md { width: 1.5rem; height: 1.5rem; }
.icon-lg { width: 2rem; height: 2rem; }

.eyebrow {
  display: inline-block; margin-bottom: 0.8rem; padding: 0.3rem 0.85rem; border-radius: 999px;
  background: var(--c-primary-50); color: var(--c-primary);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.lead { font-size: var(--fs-lg); color: var(--c-muted); max-width: 60ch; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--c-primary), #3b8cf0); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { color: #fff; box-shadow: 0 18px 36px -12px rgb(30 111 217 / 45%); }
.btn-ghost { background: #fff; color: var(--c-heading); border-color: var(--c-border); }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-light { background: #fff; color: var(--c-primary); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--c-primary-600); }
.btn-outline-light { color: #fff; border-color: rgb(255 255 255 / 60%); }
.btn-outline-light:hover { color: #fff; border-color: #fff; background: rgb(255 255 255 / 12%); }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.95rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn-row-center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; text-decoration: none; }

/* ---------- Header ---------- */
/* Oben transparent über dem Hero, beim Scrollen weiß */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.site-header.is-scrolled, .site-header.is-menu-open {
  background: rgb(255 255 255 / 92%);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-color: var(--c-border); box-shadow: var(--shadow-sm);
}

/* Variante über dunklem Hero (Startseite): helle Schrift, solange nicht gescrollt */
.site-header--on-dark:not(.is-scrolled):not(.is-menu-open) .brand,
.site-header--on-dark:not(.is-scrolled):not(.is-menu-open) .brand strong { color: #fff; }
.site-header--on-dark:not(.is-scrolled):not(.is-menu-open) .brand img { filter: brightness(0) invert(1); }
.site-header--on-dark:not(.is-scrolled):not(.is-menu-open) .nav-toggle { background: rgb(255 255 255 / 18%); }
.site-header--on-dark:not(.is-scrolled):not(.is-menu-open) .nav-toggle-bar,
.site-header--on-dark:not(.is-scrolled):not(.is-menu-open) .nav-toggle-bar::before,
.site-header--on-dark:not(.is-scrolled):not(.is-menu-open) .nav-toggle-bar::after { background: #fff; }
.site-header--on-dark:not(.is-scrolled):not(.is-menu-open) .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.brand, .brand strong, .brand img, .main-nav a { transition: color 0.3s, background-color 0.2s, filter 0.3s; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-size: 1.2rem; color: var(--c-heading); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: var(--c-heading); }
.brand img { width: 40px; height: auto; }
.brand strong { font-weight: 800; color: var(--c-primary); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--c-primary-50); cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 20px; height: 2px; background: var(--c-heading); border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav {
  position: absolute; inset: var(--header-h) 0 auto 0;
  background: #fff; border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow);
  padding: 1rem var(--gutter) 1.5rem; display: none; flex-direction: column; gap: 1rem;
}
.main-nav.is-open { display: flex; }
.main-nav > ul { display: flex; flex-direction: column; }

/* ---------- Dropdown „Leistungen“ – mobil: aufklappbar im Menü ---------- */
.nav-sub-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 0.35rem; width: 100%;
  padding: 0.75rem 0.25rem; border: 0; border-bottom: 1px solid var(--c-tint); background: none;
  font: inherit; font-weight: 600; color: var(--c-text); cursor: pointer; text-align: left;
}
.nav-sub-toggle.is-active { color: var(--c-primary); }
.nav-chevron { transition: transform 0.25s var(--ease); }
.has-sub.is-open .nav-chevron { transform: rotate(180deg); }
.sub-menu { display: none; gap: 0.15rem; padding: 0.4rem 0 0.6rem; }
.has-sub.is-open .sub-menu { display: grid; }
.main-nav .sub-menu a {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.6rem;
  border: 0; border-radius: var(--radius-sm); color: var(--c-text); text-decoration: none;
}
.main-nav .sub-menu a:hover, .main-nav .sub-menu a[aria-current="page"] { background: var(--c-dark-50); color: var(--c-heading); }
.sub-menu strong { display: block; font-size: 0.95rem; font-weight: 600; color: var(--c-heading); line-height: 1.25; }
.sub-menu small { display: block; font-size: 0.8rem; color: var(--c-muted); font-weight: 400; }
.sub-icon {
  display: grid; place-items: center; flex-shrink: 0; width: 2.2rem; height: 2.2rem; border-radius: 10px;
  background: var(--c-dark-50); color: var(--c-heading);
}
.sub-icon .icon { width: 1.1rem; height: 1.1rem; }
.main-nav > ul > li > a {
  display: block; padding: 0.75rem 0.25rem; font-weight: 600; color: var(--c-text); text-decoration: none;
  border-bottom: 1px solid var(--c-tint);
}
.main-nav > ul > li > a[aria-current="page"] { color: var(--c-primary); }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 1.5rem; background: none; border: 0; box-shadow: none; padding: 0; }
  .main-nav > ul { flex-direction: row; align-items: center; gap: 0.25rem; }
  .main-nav > ul > li > a, .nav-sub-toggle {
    padding: 0.5rem 0.9rem; border: 0; border-radius: 999px; font-size: 0.97rem; width: auto;
    transition: background-color 0.2s, color 0.2s;
  }
  .main-nav > ul > li > a:hover, .nav-sub-toggle:hover, .has-sub.is-open .nav-sub-toggle { background: var(--c-primary-50); color: var(--c-primary); }
  .main-nav > ul > li > a[aria-current="page"], .nav-sub-toggle.is-active { background: var(--c-primary-50); }

  /* Dropdown als schwebende Karte; öffnet bei Hover, Tastaturfokus oder Klick */
  .has-sub { position: relative; }
  .sub-menu {
    display: grid; position: absolute; top: calc(100% + 0.6rem); left: 50%; width: 320px; padding: 0.5rem;
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .sub-menu::before { /* unsichtbare Brücke, damit Hover beim Runterfahren nicht abreißt */
    content: ""; position: absolute; left: 0; right: 0; top: -0.7rem; height: 0.7rem;
  }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
  }
  .has-sub:hover .nav-chevron { transform: rotate(180deg); }

  /* Heller Header über dem Hero */
  .site-header--on-dark:not(.is-scrolled) .main-nav > ul > li > a,
  .site-header--on-dark:not(.is-scrolled) .nav-sub-toggle { color: #fff; }
  .site-header--on-dark:not(.is-scrolled) .main-nav > ul > li > a:hover,
  .site-header--on-dark:not(.is-scrolled) .main-nav > ul > li > a[aria-current="page"],
  .site-header--on-dark:not(.is-scrolled) .nav-sub-toggle:hover,
  .site-header--on-dark:not(.is-scrolled) .has-sub.is-open .nav-sub-toggle { background: rgb(255 255 255 / 16%); color: #fff; }
  .site-header--on-dark:not(.is-scrolled) .main-nav .btn { background: #fff; color: var(--c-primary); box-shadow: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-sm { padding-block: clamp(2rem, 5vw, 3rem); }
.section-tint { background: var(--c-tint); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3rem); }

/* ==========================================================================
   HERO – Foto in voller Breite, Farbverlauf von links nach rechts
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: min(100svh, 860px);
  padding-block: 16rem clamp(3rem, 7vw, 4.5rem);
  background: var(--c-dark); color: #fff;
}
.hero > .container { width: 100%; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 70% 30%; }

/* Bilder-Slideshow wie ein Video: weiches Überblenden + langsamer Zoom (Ken Burns).
   3 Bilder × 6 s = 18 s pro Durchlauf. Negative Verzögerung beim ersten Bild →
   es ist sofort sichtbar (kein leerer Hero beim Laden). */
.hero-slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; }
.hero-slide img { animation: hero-kenburns 18s linear infinite; transform-origin: 70% 40%; }
.hero-slide { animation: hero-fade 18s linear infinite; }
.hero-slide:nth-child(1), .hero-slide:nth-child(1) img { animation-delay: -1.5s; }
.hero-slide:nth-child(2), .hero-slide:nth-child(2) img { animation-delay: 4.5s; }
.hero-slide:nth-child(3), .hero-slide:nth-child(3) img { animation-delay: 10.5s; }
@keyframes hero-fade {
  0%      { opacity: 0; }
  8.33%   { opacity: 1; }   /* 1,5 s einblenden */
  33.33%  { opacity: 1; }   /* stehen bis 6 s   */
  41.67%  { opacity: 0; }   /* 1,5 s ausblenden (überlappt mit dem nächsten Bild) */
  100%    { opacity: 0; }
}
@keyframes hero-kenburns {
  0%      { transform: scale(1.12); }
  41.67%  { transform: scale(1); }
  100%    { transform: scale(1); }
}
/* Mobil: Bildausschnitt pro Motiv, damit das Gesicht vollständig sichtbar ist */
@media (max-width: 759px) {
  .hero-slide:nth-child(2) img { object-position: 48% 30%; transform-origin: 48% 40%; }
}
/* Reduzierte Bewegung: nur das erste Bild, statisch */
@media (prefers-reduced-motion: reduce) {
  .hero-slide:nth-child(1) { opacity: 1; }
  .hero-slide:nth-child(n+2) { display: none; }
}

/* Verlauf: Mobil von unten nach oben (Text unten lesbar) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgb(96 134 134 / 96%) 0%, rgb(127 161 161 / 88%) 36%, rgb(157 186 186 / 40%) 56%, rgb(194 214 213 / 0) 72%),
    linear-gradient(180deg, rgb(62 91 91 / 35%) 0%, transparent 18%);
}
/* Ab Tablet: von links (kräftig) nach rechts (transparent) */
@media (min-width: 760px) {
  .hero { padding-top: 7rem; }
  .hero { background: linear-gradient(90deg, var(--c-dark) 0%, var(--c-dark-400) 40%, var(--c-dark-200) 100%); }
  .hero-media { left: auto; width: 70%; }
  .hero::before {
    background:
      linear-gradient(90deg,
        #608686 0%,
        #779b9b 26%,
        #85a7a6 31%,
        rgb(146 178 177 / 78%) 39%,
        rgb(172 199 198 / 42%) 49%,
        rgb(200 221 220 / 12%) 58%,
        rgb(200 221 220 / 0) 66%),
      linear-gradient(0deg, rgb(96 134 134 / 20%) 0%, transparent 30%),
      linear-gradient(180deg, rgb(62 91 91 / 35%) 0%, rgb(62 91 91 / 10%) 14%, transparent 26%);
  }
}

.hero-content { max-width: 30rem; animation: rise 0.9s 0.2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.hero-eyebrow {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(255 255 255 / 85%);
}
.hero-eyebrow::before { content: ""; width: 2rem; height: 1px; background: rgb(255 255 255 / 70%); }

.hero-title {
  color: #fff; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 0.45em;
}
.hero-title-accent {
  background: linear-gradient(90deg, #ffffff 0%, #f3fbfa 55%, #ffe9d2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 1.05rem; color: rgb(255 255 255 / 92%); margin-bottom: 1.6rem; }
.hero-content { text-shadow: 0 1px 14px rgb(62 91 91 / 45%); }
.hero-content .btn { text-shadow: none; }
.hero :focus-visible { outline-color: #fff; }

/* ---------- Unterseiten-Hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) clamp(2rem, 5vw, 3rem);
  background: linear-gradient(90deg, #e6f0ef 0%, #f1f7f6 45%, #f8f6fb 75%, #fff7f0 100%);
}
.page-hero-sm { padding-block: calc(var(--header-h) + clamp(2.5rem, 5vw, 3.5rem)) 1rem; }

/* ---------- Foto-Schritte ---------- */
.photo-steps { display: grid; gap: 1.5rem; }
.photo-step h3 { margin: 1rem 0 0.25rem; }
.photo-step p { margin: 0; color: var(--c-muted); font-size: 0.95rem; }
.photo-step-img { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.photo-step-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease); }
.photo-step:hover .photo-step-img img { transform: scale(1.05); }
.photo-step-num {
  position: absolute; left: 0.85rem; top: 0.85rem; display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: #fff; color: var(--c-primary); font-weight: 800; box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .photo-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .photo-steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Leistungen (Bildkarten) ---------- */
.service-grid { display: grid; gap: 1.25rem; }
.service-card {
  position: relative; overflow: hidden; border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card-body { padding: 0 1.25rem 1.25rem; } /* bewusst nicht positioniert → Klickfläche = ganze Karte */
.service-card-body h3 { margin-bottom: 0.2em; }
.service-card-body p { margin: 0; color: var(--c-muted); font-size: 0.93rem; }
.service-icon {
  position: relative; z-index: 2; margin: -1.5rem 0 0.75rem; display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--c-primary), var(--c-sky)); box-shadow: var(--shadow);
}
/* Ganze Karte klickbar: Link im Titel spannt sich über die Karte (zugänglich, ein Tab-Stopp) */
.service-link { color: inherit; text-decoration: none; }
.service-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.service-card { cursor: pointer; }
.service-card:focus-within { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.service-link:focus-visible { outline: none; }
.service-card img { transition: transform 0.6s var(--ease); }
.service-card:hover img { transform: scale(1.05); }
.service-card:hover .service-link { color: var(--c-primary); }
.service-more {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.75rem;
  font-size: 0.88rem; font-weight: 700; color: var(--c-primary);
}
.service-more .icon { transition: transform 0.2s var(--ease); }
.service-card:hover .service-more .icon { transform: translateX(4px); }

@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(4, 1fr); } .service-grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Leistungs-Unterseite ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.88rem; color: var(--c-muted); margin-bottom: 1.75rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; color: var(--c-muted); }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb [aria-current] { color: var(--c-heading); font-weight: 600; }
.service-hero { display: grid; gap: 2rem; align-items: center; }
.service-hero-icon {
  display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1rem; border-radius: 16px;
  color: #fff; background: linear-gradient(135deg, var(--c-primary), var(--c-sky)); box-shadow: var(--shadow);
}
.service-hero .lead { margin-bottom: 1.75rem; }
.service-hero-media picture { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.service-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 960px) { .service-hero { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; } }
.check-list-lg { display: grid; gap: 0.85rem; margin: 1.25rem 0 1.75rem; }
.check-list-lg li { display: flex; align-items: center; gap: 0.85rem; font-weight: 600; color: var(--c-heading); }
.check-list-lg li > span { display: grid; place-items: center; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; background: #dcfce7; color: var(--c-success); }

/* ---------- Split (Bild + Text) ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-media { position: relative; }
.split-media picture { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 960px) { .split { grid-template-columns: 1.1fr 0.9fr; } }

.icon-list { display: grid; gap: 0.85rem; margin: 1.5rem 0 2rem; }
.icon-list li { display: flex; align-items: center; gap: 0.85rem; font-weight: 600; font-size: 1.05rem; color: var(--c-heading); }
.icon-list li > span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--c-primary-50); color: var(--c-primary); }

/* ---------- Gutschein im Ticket-Look ---------- */
.ticket {
  --stub: 6.5rem; --notch: 11px;
  position: relative; display: flex; align-items: stretch; margin: 0 0 1.5rem;
  border-radius: 16px; background: linear-gradient(120deg, #fff6ea 0%, #ffe9d2 100%);
  box-shadow: 0 10px 24px -14px rgb(240 128 26 / 45%);
  /* halbrunde Einkerbungen oben/unten an der Abrisslinie */
  -webkit-mask:
    radial-gradient(circle at var(--stub) 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at var(--stub) 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
          mask:
    radial-gradient(circle at var(--stub) 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at var(--stub) 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
}
.ticket-stub {
  flex: 0 0 var(--stub); display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem 0.5rem; color: #fff; border-right: 2px dashed rgb(255 255 255 / 75%);
  background: linear-gradient(150deg, #ffb25e, #f0801a); border-radius: 16px 0 0 16px;
}
.ticket-amount { font-size: 1.75rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.ticket-label { margin-top: 0.3rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.95; }
.ticket-body { padding: 1rem 1.25rem; align-self: center; }
.ticket-body strong { display: flex; align-items: center; gap: 0.4rem; color: #8a4510; font-size: 1.02rem; }
.ticket-body strong .icon { color: var(--c-accent-600); }
.ticket-body p { margin: 0.3rem 0 0; font-size: 0.92rem; color: #7a5532; line-height: 1.5; }

/* ---------- Karten (Text) ---------- */
.cards { display: grid; gap: 1rem; margin-top: 1.5rem; }
.card { padding: 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-border); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--c-muted); margin: 0; font-size: 0.95rem; }
.card h3 { margin-bottom: 0.3em; }
.card-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1rem; border-radius: 14px; background: var(--c-primary-50); color: var(--c-primary); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Garantien ---------- */
.guarantees { display: grid; gap: 1rem; }
.guarantee { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.guarantee p { margin: 0; font-weight: 600; color: var(--c-heading); }
.guarantee-value {
  font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; white-space: nowrap;
  background: linear-gradient(135deg, var(--c-primary), var(--c-sky)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.guarantee-value small { font-size: 0.95rem; font-weight: 700; }
@media (min-width: 800px) { .guarantees { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Karte / Einsatzgebiet ---------- */
.map-section { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .map-section { grid-template-columns: 0.75fr 1.25fr; gap: 3rem; } }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.chips li { padding: 0.4rem 0.9rem; border-radius: 999px; background: #fff; border: 1px solid var(--c-border); font-size: 0.88rem; font-weight: 600; color: var(--c-heading); }
.chips .chip-strong { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.map { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; background: #e9f1fb; }
.map img { width: 100%; }
.map-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-area { animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -360; } }
.map-pin text, .map-center text {
  font-family: var(--font); font-size: 22px; font-weight: 700; fill: var(--c-heading);
  paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round;
}
.map-center text { font-size: 24px; fill: var(--c-primary); }
.map-credit {
  position: absolute; right: 0; bottom: 0; padding: 0.15rem 0.5rem; border-top-left-radius: 8px;
  background: rgb(255 255 255 / 85%); font-size: 0.7rem; color: var(--c-muted);
}
.map-credit a { color: inherit; }
@media (max-width: 640px) { .map-pin text { font-size: 30px; } .map-center text { font-size: 32px; } }

/* ---------- Team-Teaser ---------- */
.team-teaser { display: grid; gap: 1.5rem; align-items: center; justify-items: start; }
.team-teaser h2 { margin-bottom: 0.25em; }
.team-teaser p { margin: 0; }
.avatars { display: flex; }
.avatars picture, .avatar-initials { width: 88px; height: 88px; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.avatars img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.avatar-initials { display: grid; place-items: center; margin-left: -18px; background: linear-gradient(135deg, var(--c-primary), var(--c-sky)); color: #fff; font-weight: 800; font-size: 1.5rem; }
@media (min-width: 900px) { .team-teaser { grid-template-columns: auto 1fr auto; gap: 2rem; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq details { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); transition: box-shadow 0.2s, border-color 0.2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--c-primary-100); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.4rem; font-weight: 700; color: var(--c-heading); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--c-primary-50); color: var(--c-primary); font-size: 1.2rem; font-weight: 600; transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.2rem; margin: 0; color: var(--c-muted); }

/* ---------- Timeline (Ablauf) ---------- */
.timeline { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.timeline-item { display: grid; gap: 1.5rem; align-items: center; }
.timeline-media picture { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.timeline-media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.timeline-body h2 { display: flex; align-items: center; gap: 0.6rem; font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem); }
.timeline-body h2 .icon { color: var(--c-primary); }
.timeline-body p { color: var(--c-muted); font-size: var(--fs-lg); max-width: 40ch; }
.timeline-num {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 1rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-sky)); color: #fff; font-size: 1.4rem; font-weight: 800; box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .timeline-item { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
  .timeline-item:nth-child(even) { grid-template-columns: 0.9fr 1.1fr; }
  .timeline-item:nth-child(even) .timeline-media { order: 2; }
}

/* ---------- Team ---------- */
.team { display: grid; gap: 2rem; }
.team-card { display: grid; overflow: hidden; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); }
.team-photo img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 25%; }
.team-photo-placeholder { display: grid; place-items: center; aspect-ratio: 1 / 1; background: linear-gradient(135deg, var(--c-primary), var(--c-sky)); }
.team-photo-placeholder span { font-size: 4.5rem; font-weight: 800; color: rgb(255 255 255 / 90%); }
.team-body { padding: clamp(1.5rem, 4vw, 2.5rem); align-self: center; }
.team-body p { color: var(--c-muted); }
.team-body h2 { margin-bottom: 0.2em; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); }
.team-role { display: inline-block; padding: 0.3rem 0.85rem; border-radius: 999px; margin-bottom: 1rem; background: var(--c-accent-soft); color: #a3520a !important; font-weight: 700; font-size: var(--fs-sm); }
@media (min-width: 760px) {
  .team-card { grid-template-columns: 300px 1fr; }
  .team-photo-placeholder { aspect-ratio: auto; height: 100%; min-height: 300px; }
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.5fr 1fr; gap: 3rem; } }
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--c-border); box-shadow: var(--shadow); }
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--c-heading); }
.optional { font-weight: 400; color: var(--c-muted); }
.field input, .field textarea {
  width: 100%; padding: 0.8rem 1rem; font: inherit; color: var(--c-text);
  background: var(--c-tint); border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgb(30 111 217 / 15%); }
.field [aria-invalid="true"] { border-color: var(--c-error); background: #fff7f7; }
.field-error { margin: 0; font-size: var(--fs-sm); color: var(--c-error); font-weight: 600; }
.field-check { grid-template-columns: auto 1fr; align-items: start; column-gap: 0.75rem; }
.field-check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--c-primary); }
.field-check label { font-weight: 400; font-size: 0.92rem; color: var(--c-muted); }
.field-check .field-error { grid-column: 1 / -1; }
.form-note { margin: 0; font-size: var(--fs-sm); color: var(--c-muted); text-align: center; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: 0.9rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; }
.alert p { margin: 0.2rem 0 0; }
.alert-success { background: #ecfdf3; color: #15803d; border: 1px solid #bbf7d0; }
.alert-success strong { color: #14532d; }
.alert-error { background: #fef2f2; color: var(--c-error); border: 1px solid #fecaca; font-weight: 600; }

.contact-list { display: grid; gap: 0.75rem; margin-bottom: 1.25rem; }
.contact-list a {
  display: flex; align-items: center; gap: 1rem; padding: 0.95rem 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--c-border); background: #fff; color: var(--c-heading); text-decoration: none; font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
.contact-list a:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); border-color: var(--c-primary); }
.contact-list small { display: block; font-weight: 500; color: var(--c-muted); font-size: 0.8rem; }
.contact-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--c-primary-50); color: var(--c-primary); }
.info-box { padding: 1.1rem 1.3rem; border-radius: var(--radius); background: var(--c-accent-soft); margin-bottom: 1rem; }
.info-box h3 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.2em; font-size: 1.05rem; }
.info-box h3 .icon { color: var(--c-accent-600); }
.info-box p { margin: 0; color: #7a4a17; font-size: 0.95rem; }

/* ---------- Rechtstexte ---------- */
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose p { color: var(--c-text); }
.prose-list { list-style: disc; padding-left: 1.25rem; margin: 0 0 1em; color: var(--c-text); }
.prose-list li { margin-bottom: 0.3rem; }
.prose code { font-size: 0.9em; padding: 0.1rem 0.35rem; border-radius: 6px; background: var(--c-dark-50); }
.field-hint { margin: 0; font-size: 0.82rem; color: var(--c-muted); }

/* ---------- Footer (inkl. CTA) mit München-Foto als Hintergrund ---------- */
/* Letzte Section bekommt unten zusätzlich Platz in Dachhöhe, damit der hochgezogene Footer nichts verdeckt */
main > :last-child { padding-bottom: calc(clamp(3.5rem, 8vw, 6rem) + var(--roof-h)); }
.site-footer {
  /* Obere Kante als Münchner Dachlandschaft (Maske). Der Footer rückt um die
     Dachhöhe nach oben, damit die vorherige Section zwischen den Dächern durchscheint. */
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(var(--roof-h) * -1);
  background: var(--c-dark-700); color: rgb(255 255 255 / 80%);
  padding-top: calc(var(--roof-h) + clamp(2.5rem, 6vw, 4rem)); font-size: 0.96rem;
  -webkit-mask:
    url("/assets/img/footer-daecher.svg?v=3") center top / max(100%, calc(var(--roof-h) * 10.2857)) var(--roof-h) no-repeat,
    linear-gradient(#000, #000) center bottom / 100% calc(100% - var(--roof-h) + 1px) no-repeat;
          mask:
    url("/assets/img/footer-daecher.svg?v=3") center top / max(100%, calc(var(--roof-h) * 10.2857)) var(--roof-h) no-repeat,
    linear-gradient(#000, #000) center bottom / 100% calc(100% - var(--roof-h) + 1px) no-repeat;
}
.footer-bg { position: absolute; inset: 0; z-index: -1; }
.footer-bg picture, .footer-bg img { width: 100%; height: 100%; }
.footer-bg img { object-fit: cover; object-position: center 40%; }
.footer-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(96 134 134 / 92%) 0%, rgb(111 148 148 / 78%) 50%, rgb(143 176 175 / 55%) 100%),
    linear-gradient(180deg, rgb(62 91 91 / 15%) 0%, rgb(62 91 91 / 70%) 100%);
}

.footer-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-bottom: clamp(2.5rem, 6vw, 3.5rem); margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
  border-bottom: 1px solid rgb(255 255 255 / 22%);
}
.footer-cta h2 { color: #fff; margin-bottom: 0.25em; }
.footer-cta p { margin: 0; color: rgb(255 255 255 / 90%); }

.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .btn:hover { text-decoration: none; }
.site-footer .btn-light { color: var(--c-heading); }
.site-footer .btn-light:hover { color: var(--c-dark-700); }
.site-footer .brand, .site-footer .brand strong { color: #fff; }
.site-footer .brand img { filter: brightness(0) invert(1); }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand p { margin-top: 1rem; max-width: 30ch; }
.social-icons { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.social-icons a {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  color: #fff; box-shadow: 0 4px 12px -6px rgb(0 0 0 / 22%), inset 0 0 0 2px rgb(255 255 255 / 30%);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s;
}
.social-icons a:hover { transform: translateY(-3px); filter: brightness(1.05); text-decoration: none; box-shadow: 0 8px 18px -8px rgb(0 0 0 / 30%), inset 0 0 0 2px rgb(255 255 255 / 45%); }
.social-icons .icon { width: 1.25rem; height: 1.25rem; }

/* Markenfarben (Footer-Icons und Kontaktseite) */
/* bewusst weicher/heller als die Original-Markenfarben, damit sie nicht „schreien“ */
.brand-whatsapp  { background: linear-gradient(145deg, #7fe0a6, #4cc983); }
.brand-instagram { background: radial-gradient(circle at 30% 110%, #fde9a6 0%, #fbb08e 30%, #f08bb8 58%, #a99cf0 95%); }
.brand-facebook  { background: linear-gradient(145deg, #7eb4f7, #4f91ec); }
.brand-tiktok    { background: linear-gradient(145deg, #5b6167, #3a3f45); }
.brand-tiktok .icon { filter: drop-shadow(1px 0.8px 0 rgb(254 44 85 / 70%)) drop-shadow(-1px -0.8px 0 rgb(37 244 238 / 70%)); }
.contact-icon.brand-whatsapp, .contact-icon.brand-instagram,
.contact-icon.brand-facebook, .contact-icon.brand-tiktok { color: #fff; }
.footer-title { color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-list { display: grid; gap: 0.5rem; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 22%); padding-block: 1.25rem; font-size: var(--fs-sm); }
.footer-bottom p { margin: 0; }
.site-footer :focus-visible { outline-color: #fff; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- Scroll-Reveal (nur mit JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; } }
