/* ==========================================================
   Velickovic Haustechnik – Blau-weißes Theme
   ========================================================== */

/* Schrift lokal eingebunden (kein Abruf bei Google, DSGVO) – Archivo, SIL Open Font License */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --white: #FFFFFF;
  --mist: #F0F5FB;
  --line: #D5E1EF;
  --ink: #0F2340;
  --steel: #4A5D78;
  --blue: #1557B0;
  --blue-dark: #0E4590;
  --blue-deep: #0D2F5E;
  --sky: #8EC3F0;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.6rem;
  --fs-xl: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  --fs-hero: clamp(2.5rem, 1.5rem + 4.2vw, 4.8rem);

  --gutter: 16px;
  --container: 1200px;
  --header-h: 72px;
  --radius-s: 6px;
  --radius-m: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 80px; }
}

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

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

/* Fußzeile sitzt auch auf kurzen Seiten (Impressum, 404) am unteren Rand */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
}

main { flex: 1 0 auto; min-width: 0; }
.site-footer { flex-shrink: 0; }

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

h1, h2, h3 {
  margin: 0;
  line-height: 1.05;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--blue); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-s);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }

.btn-ghost { border-color: var(--blue); color: var(--blue); background: var(--white); }
.btn-ghost:hover { background: var(--mist); }

.btn-white { background: var(--white); color: var(--blue-deep); }
.btn-white:hover { background: var(--mist); }

.btn-large { min-height: 60px; padding: 16px 28px; font-size: var(--fs-md); }

.text-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 650;
  text-decoration-thickness: 2px;
}
.text-link:hover { color: var(--blue-dark); }

/* ---------- Header: schwebende Kapsel ---------- */
.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 50;
  width: min(1120px, calc(100% - 24px));
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(213, 225, 239, .9);
  border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(13, 47, 94, .35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding-inline: 10px 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.brand-logo { width: 40px; height: 40px; flex: none; object-fit: contain; border-radius: 50%; }
.brand-text { display: grid; line-height: 1.15; min-width: 0; }
.brand-name { font-size: 1.15rem; font-weight: 800; font-stretch: 75%; }
.brand-sub { display: none; }

.site-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav ul a {
  display: block;
  padding: 10px 12px;
  color: var(--steel);
  text-decoration: none;
  font-weight: 550;
  font-size: .95rem;
  border-radius: 999px;
}
.site-nav ul a:hover { background: var(--mist); color: var(--blue); }

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(21, 87, 176, .35);
}
.header-cta:hover { background: var(--blue-dark); }

.nav-toggle {
  display: none;
  flex: none;
  width: 48px; height: 48px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px; height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform .2s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1080px) {
  .site-nav { display: flex; align-items: center; gap: 12px; }
}

@media (max-width: 1079px) {
  .header-inner { padding-inline: 10px 4px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    display: none;
    padding: 8px 16px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 16px 32px rgba(15, 35, 64, .18);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 14px 8px; font-size: var(--fs-md); color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
  .header-cta { margin-top: 16px; width: 100%; justify-content: center; }
}

/* Kleines Schild über Überschriften */
.hero-kicker {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--blue);
  font-weight: 650;
  font-size: var(--fs-sm);
}

/* ---------- Hero: Foto wird beim Scrollen zum Bauplan ---------- */
.hero-x {
  --wipe: 100%;
  --text-o: 1;
  --line-o: 0;
  --cap-o: 0;
  position: relative;
  height: 260vh;
  background: #0A1B33;
}

.hx-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hx-stage { position: absolute; inset: 0; }
.hx-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hx-plan { clip-path: inset(0 0 0 var(--wipe)); }

.hx-line {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--wipe);
  width: 2px;
  margin-left: -1px;
  background: #CFE6FF;
  box-shadow: 0 0 18px 5px rgba(142, 195, 240, .75);
  opacity: var(--line-o);
}

.hx-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(8, 22, 44, .72) 0%, rgba(8, 22, 44, .35) 75%),
    linear-gradient(180deg, rgba(8, 22, 44, .55) 0%, rgba(8, 22, 44, 0) 30%);
  opacity: calc(.35 + var(--text-o) * .65);
}

.hx-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  padding-top: 72px;
  text-align: center;
  color: #fff;
  opacity: var(--text-o);
  transform: translateY(calc((1 - var(--text-o)) * -40px));
  visibility: visible;
}
.hero-x.is-hidden-text .hx-content { visibility: hidden; }

.hx-pill {
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .02em;
}

.hero-x h1 {
  margin-top: 24px;
  font-size: clamp(2.6rem, 1.2rem + 5.6vw, 6.4rem);
  font-stretch: 72%;
  font-weight: 850;
  line-height: .95;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.hero-x h1 span { display: block; color: #8EC3F0; }

.hx-lead {
  margin-top: 24px;
  max-width: 36em;
  font-size: var(--fs-md);
  line-height: 1.5;
  color: #DCE7F4;
}

.hx-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.btn-pill { border-radius: 999px; }
.btn-glass {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .18); }

.hx-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: #C9D8EA;
}
.hx-facts li { position: relative; padding-left: 14px; }
.hx-facts li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #8EC3F0;
}
.hx-facts a { color: inherit; }

.hx-caption {
  position: absolute;
  left: 24px; bottom: 24px;
  z-index: 2;
  padding: 8px 14px;
  border: 1px solid rgba(207, 230, 255, .35);
  border-radius: 999px;
  background: rgba(10, 27, 51, .6);
  color: #CFE6FF;
  font-size: var(--fs-sm);
  font-weight: 600;
  opacity: var(--cap-o);
}

@media (max-width: 767px) {
  .hero-x { height: 210vh; }
  .hx-content { padding-top: 84px; padding-bottom: 24px; }
  .hx-actions .btn { width: 100%; }
  .hx-facts { flex-direction: column; align-items: center; }
}

/* Niedrige Bildschirme (z. B. iPhone SE): Startbereich kompakter */
@media (max-width: 767px) and (max-height: 760px) {
  .hero-x h1 { margin-top: 16px; font-size: 2.4rem; }
  .hx-lead { margin-top: 14px; font-size: 1rem; }
  .hx-actions { margin-top: 20px; gap: 10px; }
  .hx-actions .btn { min-height: 46px; padding-block: 10px; }
  .hx-facts { display: none; }
}

/* Ohne Bewegung: nur Foto und Text */
@media (prefers-reduced-motion: reduce) {
  .hero-x { height: auto; }
  .hx-sticky { position: relative; min-height: 100svh; }
  .hx-plan, .hx-line, .hx-caption { display: none; }
}

/* ---------- Gemeinsame Bausteine ---------- */
.lead {
  margin-top: 24px;
  max-width: 34em;
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--steel);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.trust li { position: relative; padding-left: 22px; }
.trust li::before {
  content: "";
  position: absolute;
  left: 0; top: .3em;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}

/* ---------- Unterseiten ---------- */
.sub-hero {
  padding-block: 128px 72px;
  background: linear-gradient(180deg, var(--mist) 0%, var(--white) 100%);
}
.sub-hero-grid { display: grid; gap: 40px; align-items: center; }
.sub-hero h1 {
  font-size: clamp(2.6rem, 1.5rem + 4.4vw, 5rem);
  font-stretch: 70%;
  font-weight: 850;
  line-height: .98;
}
.sub-hero-media { margin: 0; }
.sub-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(13, 47, 94, .5);
}

@media (min-width: 960px) {
  .sub-hero { padding-block: 152px 104px; }
  .sub-hero-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: var(--fs-sm);
  color: var(--steel);
}
.breadcrumb a { color: var(--blue); }

@media (min-width: 1000px) {
  .diff-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.type-grid { display: grid; gap: 20px; }
.type-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 16px;
  background: var(--white);
}
.type-card h3 { font-size: 1.5rem; font-stretch: 80%; font-weight: 850; color: var(--blue-deep); }
.type-card p { margin-top: 10px; color: var(--steel); }
@media (min-width: 860px) { .type-grid { grid-template-columns: repeat(3, 1fr); } }

/* Ablauf in Kurzform – echte Reihenfolge, daher nummeriert */
.mini-steps {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mini;
}
.mini-steps li { position: relative; padding-left: 64px; counter-increment: mini; }
.mini-steps li::before {
  content: counter(mini, decimal-leading-zero);
  position: absolute;
  left: 0; top: -4px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}
.mini-steps h3 { font-size: 1.35rem; font-stretch: 80%; font-weight: 850; }
.mini-steps p { margin-top: 6px; color: var(--steel); max-width: 24em; }
@media (min-width: 900px) { .mini-steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

/* ---------- Sektionen ---------- */
.section { padding-block: 72px; }
.section-tint { background: var(--mist); }

@media (min-width: 960px) {
  .section { padding-block: 104px; }
}

.section-head { max-width: 46rem; margin-bottom: 48px; }
.section-head h2 { font-size: var(--fs-xl); }
.section-head p { margin-top: 16px; font-size: var(--fs-md); line-height: 1.5; color: var(--steel); }

/* Leistungen – Kachel-Raster */
.split-head { display: grid; gap: 20px; margin-bottom: 48px; }
.split-head h2 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4rem); max-width: 14ch; }
.split-head p { font-size: var(--fs-md); line-height: 1.5; color: var(--steel); max-width: 30em; }
.accent { color: var(--blue); }

@media (min-width: 960px) {
  .split-head { grid-template-columns: 1.5fr 1fr; align-items: end; gap: 64px; }
  .split-head h2 { max-width: none; }
}

.bento { display: grid; gap: 16px; }

.b-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background: var(--blue-deep);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 24px 48px -32px rgba(13, 47, 94, .6);
}
.b-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.b-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(9, 24, 46, .94) 8%, rgba(9, 24, 46, .55) 50%, rgba(9, 24, 46, .1) 100%);
}

.b-body { padding: 24px 76px 24px 24px; }

.b-icon {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(160deg, #3D86E0, var(--blue));
  box-shadow: 0 8px 18px rgba(21, 87, 176, .45);
}
.b-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.b-card h3 { font-size: 1.7rem; font-stretch: 75%; font-weight: 850; }
.b-card p { margin-top: 8px; max-width: 34em; font-size: var(--fs-sm); line-height: 1.5; color: rgba(255, 255, 255, .82); }

.b-arrow {
  position: absolute;
  right: 20px; bottom: 22px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.b-arrow svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.b-card:hover img { transform: scale(1.04); }
.b-card:hover .b-arrow { background: var(--blue); border-color: var(--blue); }
.b-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

@media (min-width: 700px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .b-big { grid-column: span 2; min-height: 420px; }
}

@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 250px; gap: 20px; }
  .b-card { min-height: 0; }
  .b-big { grid-column: 1 / 4; grid-row: span 2; min-height: 0; }
  .b-card:nth-child(2), .b-card:nth-child(3) { grid-column: 4 / 7; }
  .b-card:nth-child(n+4) { grid-column: span 2; }
  .b-big .b-body { padding: 32px 88px 32px 32px; }
  .b-big h3 { font-size: clamp(2.4rem, 1.6rem + 1.6vw, 3.4rem); }
  .b-big p { font-size: var(--fs-base); }
}

.region { margin-top: 32px; color: var(--steel); max-width: 46em; }
.region strong { color: var(--ink); }

/* Notdienst-Band */
.service-call {
  padding-block: 56px;
  background: var(--blue-deep);
  color: #fff;
}
.service-call-inner { display: grid; gap: 28px; align-items: center; }
.service-call h2 { font-size: var(--fs-xl); }
.service-call p { margin-top: 12px; max-width: 36em; color: #D3E2F4; font-size: var(--fs-md); line-height: 1.5; }
.service-call .footnote { font-size: var(--fs-sm); color: #A9C3E3; }
.service-call-actions { display: grid; gap: 12px; justify-items: start; }
.mobile-link { color: #fff; font-weight: 600; padding-block: 8px; }

@media (min-width: 768px) {
  .service-call-inner { grid-template-columns: 1fr auto; gap: 48px; }
  .service-call-actions { justify-items: center; }
}

/* Förderung */
.funding { display: grid; gap: 40px; align-items: center; }
.funding-copy h2 { font-size: var(--fs-xl); max-width: 16ch; }
.funding-lead { margin-top: 20px; font-size: var(--fs-md); line-height: 1.5; color: var(--steel); max-width: 36em; }
.funding-points { display: grid; gap: 16px; margin: 28px 0 32px; padding: 0; list-style: none; }
.funding-points li {
  position: relative;
  padding-left: 40px;
  max-width: 36em;
}
.funding-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27white%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 12l5 5L20 7%27/%3E%3C/svg%3E") center / 14px no-repeat;
}
.funding-media { margin: 0; }
.funding-media img { width: 100%; border-radius: var(--radius-m); box-shadow: 0 24px 48px -28px rgba(13, 47, 94, .45); }
.funding-media figcaption { margin-top: 12px; font-size: var(--fs-sm); color: var(--steel); }

@media (min-width: 960px) {
  .funding { grid-template-columns: 1.1fr 1fr; gap: 72px; }
}

/* Partner */
.partner-grid { display: grid; gap: 20px; }

.p-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 24px 48px -36px rgba(13, 47, 94, .45);
}

.p-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist); }
.p-media img { width: 100%; height: 100%; object-fit: cover; }

.p-body { padding: 22px 24px 26px; }
.p-body h3 { font-size: 1.6rem; font-stretch: 80%; font-weight: 850; color: var(--blue-deep); }
.p-body p { margin-top: 8px; color: var(--steel); max-width: 34em; }

.partner-note { margin-top: 24px; color: var(--steel); }

/* Vierter Partner als breite Kachel unter dem Raster */
@media (min-width: 700px) {
  .p-wide { grid-column: 1 / -1; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto; }
  .p-wide .p-media { aspect-ratio: auto; min-height: 260px; }
  .p-wide .p-body { align-self: center; padding: 28px 32px; }
}

@media (min-width: 700px) {
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .p-big { grid-column: span 2; }
}

@media (min-width: 1000px) {
  .partner-grid { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; }
  .p-big { grid-column: 1; grid-row: span 2; }
  .p-big .p-media { aspect-ratio: auto; height: 100%; min-height: 420px; }
  .p-big .p-body { padding: 28px 32px 32px; }
  .p-big h3 { font-size: 1.9rem; }
}

/* Bad-Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(160px, 22vw);
  grid-auto-flow: dense;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery .tall { grid-row: span 2; }

@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 16px; }
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--line);
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.gallery-item span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px 14px 12px;
  background: linear-gradient(transparent, rgba(13, 47, 94, .85));
  color: #fff;
  font-size: var(--fs-sm);
  line-height: 1.35;
}
.gallery-item:hover img { transform: scale(1.03); }

@media (max-width: 599px) {
  .gallery-item span { display: none; }
}

.lightbox {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--white);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(13, 47, 94, .8); }
.lightbox img { width: 100%; max-height: calc(100vh - 140px); object-fit: contain; background: var(--mist); }
.lightbox-caption { padding: 14px 20px 18px; }
.lightbox form { position: absolute; top: 8px; right: 8px; }
.lightbox-close {
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

/* So arbeiten wir – Zeitleiste */
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .hero-kicker { margin-bottom: 16px; }
.section-head-center p:last-child { margin-inline: auto; max-width: 36em; }

.timeline {
  --node: 56px;
  position: relative;
  display: grid;
  gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Mittellinie (mobil links) */
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--node) / 2 - 1px);
  width: 2px;
  background: var(--line);
}

.tl-step {
  position: relative;
  display: grid;
  gap: 20px;
  padding-left: calc(var(--node) + 20px);
}

.tl-node {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: var(--node); height: var(--node);
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 0 0 8px var(--white), 0 10px 24px rgba(21, 87, 176, .35);
}

.tl-icon {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(160deg, #3D86E0, var(--blue));
  box-shadow: 0 8px 18px rgba(21, 87, 176, .3);
}
.tl-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tl-text h3 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-stretch: 70%; font-weight: 850; }
.tl-text p { margin-top: 12px; color: var(--steel); font-size: var(--fs-md); line-height: 1.5; max-width: 28em; }

.tl-media { margin: 0; order: -1; }
.tl-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-m);
  box-shadow: 0 30px 60px -30px rgba(13, 47, 94, .5);
}

@media (min-width: 900px) {
  .timeline { gap: 96px; }
  .timeline::before { left: 50%; }

  .tl-step {
    grid-template-columns: 1fr var(--node) 1fr;
    align-items: center;
    gap: 0 56px;
    padding-left: 0;
  }
  .tl-node { position: static; grid-column: 2; grid-row: 1; }
  .tl-text { grid-row: 1; }
  .tl-media { grid-row: 1; order: 0; }

  /* Ungerade Schritte: Text links, Bild rechts */
  .tl-step:nth-child(odd) .tl-text { grid-column: 1; text-align: right; justify-self: end; }
  .tl-step:nth-child(odd) .tl-text p { margin-left: auto; }
  .tl-step:nth-child(odd) .tl-media { grid-column: 3; }

  /* Gerade Schritte: Bild links, Text rechts */
  .tl-step:nth-child(even) .tl-media { grid-column: 1; }
  .tl-step:nth-child(even) .tl-text { grid-column: 3; }
}

/* Über uns – Erleben Sie den Unterschied */
.diff { display: grid; gap: 48px; align-items: center; }
.diff-copy h2 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4rem); }
.diff-lead { margin-top: 20px; max-width: 34em; font-size: var(--fs-md); line-height: 1.55; color: var(--steel); }

.diff-grid {
  display: grid;
  gap: 28px 32px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.diff-grid li { position: relative; padding-left: 60px; }
.diff-grid li::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(160deg, #3D86E0, var(--blue)) ;
  box-shadow: 0 8px 18px rgba(21, 87, 176, .35);
}
.diff-grid li::after {
  content: "";
  position: absolute;
  left: 13px; top: 13px;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.diff-grid h3 { font-size: 1.2rem; font-stretch: 85%; font-weight: 800; padding-top: 2px; }
.diff-grid p { margin-top: 6px; font-size: var(--fs-sm); line-height: 1.55; color: var(--steel); }

.diff-media { margin: 0; }
.diff-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(13, 47, 94, .5);
}

@media (min-width: 600px) {
  .diff-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .diff { grid-template-columns: 1.05fr 1fr; gap: 72px; }
}

/* Bewertungen */
.reviews-inner { display: grid; gap: 40px; align-items: center; }
.score {
  padding: 32px;
  border-radius: var(--radius-m);
  background: var(--blue);
  color: #fff;
  text-align: center;
}
.score-number { font-size: clamp(4rem, 3rem + 4vw, 6rem); font-weight: 850; font-stretch: 70%; line-height: 1; }
.score-stars { margin-top: 8px; font-size: 1.6rem; color: #FFC94A; letter-spacing: 3px; }
.score-text { margin-top: 8px; color: #D3E2F4; }
.reviews-copy h2 { font-size: var(--fs-xl); }
.reviews-copy p { margin-top: 16px; font-size: var(--fs-md); line-height: 1.5; color: var(--steel); max-width: 34em; }

@media (min-width: 768px) {
  .reviews-inner { grid-template-columns: minmax(260px, 4fr) 8fr; gap: 64px; }
}

/* FAQ */
.faq { display: grid; gap: 32px; }
.faq h2 { font-size: var(--fs-xl); }
.faq-list { border-top: 2px solid var(--blue); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 20px 48px 20px 0;
  font-size: var(--fs-md);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: translateY(-75%) rotate(45deg);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding-bottom: 20px; color: var(--steel); max-width: 40em; }

@media (min-width: 960px) {
  .faq { grid-template-columns: 4fr 8fr; gap: 64px; }
}

/* Kontakt */
.contact-grid { display: grid; gap: 48px; }
.contact-info h2 { font-size: var(--fs-xl); }
.contact-info > p { margin-top: 16px; font-size: var(--fs-md); line-height: 1.5; color: var(--steel); max-width: 28em; }

.contact-list { display: grid; gap: 16px 32px; margin: 32px 0 0; }
.contact-list div { padding-top: 12px; border-top: 1px solid var(--line); }
.contact-list dt { font-size: var(--fs-sm); color: var(--steel); }
.contact-list dd { margin: 2px 0 0; font-weight: 600; }
.contact-list a { color: var(--ink); }
.contact-list .small-link { color: var(--blue); font-weight: 500; font-size: var(--fs-sm); }

@media (min-width: 600px) {
  .contact-list { grid-template-columns: 1fr 1fr; }
  /* E-Mail und Öffnungszeiten über die volle Breite, damit nichts mitten im Wort umbricht */
  .contact-list div:nth-child(3), .contact-list div:nth-child(6) { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 72px; }
}

.contact-form {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 24px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
@media (min-width: 768px) { .contact-form { padding: 36px; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label { font-weight: 600; font-size: var(--fs-sm); }
.optional { font-weight: 400; color: var(--steel); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid #98AAC2;
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 87, 176, .25);
}
.field [aria-invalid="true"] { border-color: #C0262D; }
.field-error { color: #C0262D; font-size: var(--fs-sm); font-weight: 600; }

.form-note { font-size: var(--fs-sm); color: var(--steel); }
.contact-form .btn { justify-self: start; }

/* ---------- Rechtstexte ---------- */
.legal { padding-block: 128px 96px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: var(--fs-xl); margin-bottom: 32px; }
.legal h2 { font-size: var(--fs-md); font-stretch: 100%; font-weight: 700; margin: 32px 0 8px; }
.legal p { color: var(--steel); }
.legal p + p { margin-top: 12px; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 48px 104px;
  background: var(--blue-deep);
  color: #D3E2F4;
  font-size: var(--fs-sm);
}
@media (min-width: 768px) { .site-footer { padding-bottom: 48px; } }

.footer-inner { display: grid; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-logo { border-radius: 50%; background: #fff; }
.footer-name { color: #fff; font-weight: 700; font-size: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #fff; display: inline-block; padding-block: 8px; }
.copyright { color: #A9C3E3; }

@media (min-width: 960px) {
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; gap: 24px 48px; }
  .footer-links { justify-content: flex-end; }
  .footer-brand { white-space: nowrap; }
  .copyright { grid-column: 1 / -1; }
}

/* ---------- Mobile Anrufleiste ---------- */
.call-bar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: var(--radius-s);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(13, 47, 94, .3);
}
.call-bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.call-bar { transition: transform .25s var(--ease), opacity .25s var(--ease); }
.call-bar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (min-width: 768px) { .call-bar { display: none; } }

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