/* ============================================================
   Pflegeberatung Herznest – Stylesheet
   ============================================================ */

:root {
  --navy-900: #081828;   /* Footer / dunkle CTA (gemessen) */
  --navy-800: #0d1f31;
  --navy-700: #14304b;
  --blue-700: #1c4f8c;
  --blue-600: #2160a8;   /* Primaerblau Buttons (gemessen) */
  --blue-500: #3d7ec0;
  --blue-hero: #4a8fd0;  /* "Herznest"-Akzent im Hero (gemessen) */
  --blue-100: #d8e6f2;   /* Icon-Kacheln (gemessen #d0e0f0) */
  --blue-50:  #e8f0f8;   /* Badges (gemessen) */
  --cream:    #f8f4ee;   /* Creme-Sektionen (gemessen #f8f6f0) */
  --light:    #f8f8f8;   /* Helle Sektionen (gemessen) */
  --white:    #ffffff;
  --heading:  #14304b;
  --text:     #4a6076;
  --text-light: #a8bdd2;
  --red-600:  #d9432f;
  --red-50:   #fdf1ec;
  --beige:    #e9e1d7;   /* Feature/Step beige (gemessen #e8e0d8) */
  --sage:     #cbdad1;   /* Feature/Step gruen (gemessen #c8d8d0) */
  --sage-2:   #d9e1da;   /* Step 03 (gemessen #d8e0d8) */
  --bluegray: #d3e0e3;   /* Step 04 (gemessen #d0e0e0) */
  --radius:   16px;
  --radius-lg: 24px;
  --shadow:      0 10px 30px rgba(20, 48, 75, .08);
  --shadow-hover: 0 16px 40px rgba(20, 48, 75, .14);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: var(--heading); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: .6rem;
}
.section-sub {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Badges (Eyebrow-Pills) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--blue-50);
  color: var(--blue-600);
}
.badge-hero {
  background: rgba(255, 255, 255, .08);
  color: #cfe0f2;
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(4px);
}
.badge-center { display: table; margin: 0 auto 1.2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #3f77b2, #1e5594);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(30, 85, 148, .35);
}
.btn-primary:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(30, 85, 148, .45); }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .35);
}
.btn-outline-light:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-outline {
  background: var(--white);
  color: var(--blue-600);
  border: 1px solid #c7d7e8;
}
.btn-outline:hover { background: var(--blue-50); }
.btn-sm { padding: 9px 20px; font-size: .85rem; }

/* ---------- Scroll-Effekte ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled .brand-logo { width: 56px; height: 56px; }
.site-header.scrolled {
  background: rgba(8, 24, 40, .98);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  padding: 10px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Hero-Inhalt beim Laden sanft einblenden */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.hero-inner > * { animation: heroFadeUp .8s cubic-bezier(.22,.61,.36,1) backwards; }
.hero-inner > *:nth-child(1) { animation-delay: .1s; }

/* Startseite: Badge "Pflichtberatung nach § 37.3 SGB XI" groesser,
   gleitet von links herein */
@keyframes heroSlideLeft {
  from { opacity: 0; transform: translateX(-90px); }
  to   { opacity: 1; transform: none; }
}
.hero--home .badge-hero {
  font-size: 1rem;
  padding: 13px 30px;
  letter-spacing: .12em;
  border-width: 1.5px;
  animation: heroSlideLeft 1s cubic-bezier(.22,.61,.36,1) .15s backwards;
}
@media (max-width: 720px) {
  .hero--home .badge-hero { font-size: .82rem; padding: 11px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--home .badge-hero { animation: none; }
}
.hero-inner > *:nth-child(2) { animation-delay: .25s; }
.hero-inner > *:nth-child(3) { animation-delay: .4s; }
.hero-inner > *:nth-child(4) { animation-delay: .55s; }

/* ---------- Header ---------- */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 76px; height: 76px;
  transition: width .3s ease, height .3s ease, transform .3s ease;
  border-radius: 16px;
  background: transparent;
  color: #a9c8e8;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 14px rgba(120, 175, 230, .45)) drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
}
.brand:hover .brand-logo { transform: scale(1.06); }
.brand-logo svg { width: 26px; height: 26px; }
.brand-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-top {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.brand-bottom {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  color: #c3d4e6;
  font-size: .92rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s;
}
.nav-link:hover { color: var(--white); }
.nav-link.is-active { color: var(--white); border-bottom-color: var(--blue-500); }
.nav-cta { margin-left: 8px; padding: 11px 22px; font-size: .88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (Vollbild auf allen Seiten) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1000px 500px at 70% 0%, rgba(59, 124, 192, .18), transparent 60%),
    linear-gradient(180deg, #0b1c2f 0%, var(--navy-900) 100%);
  color: var(--white);
  padding: 120px 0 110px;
  text-align: center;
  overflow: hidden;
}
.hero::after { /* dunkles Overlay ueber Video/Foto, damit Text lesbar bleibt */
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 24, 40, .8) 0%, rgba(8, 24, 40, .6) 50%, rgba(8, 24, 40, .94) 100%);
  pointer-events: none;
}
.hero-media {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;        /* fuer <video> */
  background-size: cover;   /* fuer <div> mit Hintergrundbild */
  background-position: center;
  z-index: 0;
  filter: blur(8px);
  transform: scale(1.04);
}
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  margin: 1.4rem 0 1.2rem;
  line-height: 1.12;
  letter-spacing: .01em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.hero-title .accent {
  color: var(--blue-hero);
  text-shadow: 0 0 24px rgba(74, 143, 208, .55), 0 0 48px rgba(74, 143, 208, .3);
}
.hero--home .hero-title { font-size: clamp(3.2rem, 8.5vw, 6rem); line-height: 1.08; }
.hero-text {
  max-width: 640px;
  margin: 0 auto;
  color: #c6d5e6;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.75;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.6rem;
}
.hero--home { min-height: 100vh; min-height: 100svh; }


/* Kompakter Hero (z.B. Kontaktseite): keine volle Bildschirmhoehe */
.hero--compact {
  min-height: 0;
  min-height: 0;
  padding: 170px 0 90px;
}
.hero--compact .hero-scroll { display: none; }
.hero--compact .hero-title { font-size: clamp(2.4rem, 5vw, 3.6rem); }

/* Google-Maps-Streifen (volle Breite, horizontal) */
.map-section { line-height: 0; }
.map-section iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}
@media (max-width: 720px) {
  .map-section iframe { height: 320px; }
  .hero--compact { padding: 140px 0 70px; }
}

/* Scroll-Indikator unten im Hero */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #c6d5e6;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s, border-color .25s;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.hero-scroll:hover { background: rgba(255, 255, 255, .1); color: var(--white); border-color: rgba(255, 255, 255, .5); }
.hero-scroll svg { width: 20px; height: 20px; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; transform: translateX(-50%); }
}

/* ---------- Sektionen ---------- */
.section { padding: 90px 0; }
.section-light { background: var(--light); }
.section-cream { background: var(--cream); }
.section-dark {
  background: var(--navy-900);
  color: var(--text-light);
}
.section-dark .section-title { color: var(--white); }

/* ---------- Startseite: Ueber-uns-Teaser ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 70px;
  align-items: center;
}
.intro-photo { position: relative; }
.intro-photo .photo {
  border-radius: var(--radius-lg);
  min-height: 460px;
  aspect-ratio: 4 / 4.6;
  background: linear-gradient(160deg, #e8eef5, #c9d8e8);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
.experience-chip {
  position: absolute;
  left: 24px; bottom: -22px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-hover);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
}
.experience-chip .chip-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy-800);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.experience-chip .chip-icon svg { width: 20px; height: 20px; }
.experience-chip strong { display: block; font-size: 1.2rem; color: var(--heading); line-height: 1.1; }
.experience-chip small { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }

.intro-content .badge { margin-bottom: 1.2rem; }
.intro-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.check-list { list-style: none; margin: 1.6rem 0 2rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0;
  color: var(--heading);
  font-weight: 500;
  font-size: .95rem;
}
.check-list .check {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.check-list .check svg { width: 12px; height: 12px; }

/* ---------- Karten (Leistungen) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-image {
  position: relative;
  min-height: 210px;
  aspect-ratio: 16 / 9.5;
  background: linear-gradient(140deg, #d9e5f0, #b8cde2);
  background-size: cover;
  background-position: center;
}
.card-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255, 255, 255, .92);
  color: var(--heading);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.card-fab {
  position: absolute;
  right: 16px; bottom: -20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-600);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.card-fab svg { width: 20px; height: 20px; }
.card-body { padding: 30px 28px 28px; flex: 1; }
.card-body h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.card-body p { font-size: .92rem; }
.card-list { list-style: none; margin-top: 1rem; }
.card-list li {
  position: relative;
  padding: 4px 0 4px 18px;
  font-size: .9rem;
  color: var(--blue-700);
}
.card-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}



/* ---------- Generischer 3D-Flip (Startseite, Beratung, Ueber uns) ---------- */
.flip {
  perspective: 1500px;
  outline: none;
  cursor: pointer;
}
.flip .flip-in {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
  transform-style: preserve-3d;
}
.flip:hover .flip-in,
.flip:focus-visible .flip-in { transform: rotateY(180deg); }

.flip .flip-f, .flip .flip-b {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 28px;
}
.flip .flip-b {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #12304e 0%, var(--navy-900) 100%);
  color: #dce7f2;
  box-shadow: var(--shadow);
}
.flip .flip-b h3 { color: #fff; margin-bottom: 10px; font-size: 1.1rem; }
.flip-b .step-number { position: absolute; top: -14px; right: 18px; }
.flip .flip-b p { color: #c6d5e6; font-size: .9rem; margin-bottom: 20px; }
.flip .flip-b .btn { flex-shrink: 0; }

/* Vorderseiten behalten ihr Karten-Aussehen, fuellen aber die Flip-Flaeche */
.flip .feature-card,
.flip .step-card,
.flip .value-card,
.flip .card {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flip:hover .feature-card,
.flip:hover .step-card,
.flip:hover .value-card,
.flip:hover .card { box-shadow: var(--shadow-hover); }

/* Mindesthoehen je Kartentyp, damit Vorder- und Rueckseite gleich gross sind */
.feature-grid .flip .flip-in { min-height: 280px; }
.steps-grid .flip .flip-in   { min-height: 300px; }
.values-grid .flip .flip-in  { min-height: 260px; }
.cards-grid-3 .flip .flip-in { min-height: 340px; }

@media (hover: none) {
  /* Touch: Flip per .flipped-Klasse (Scroll-Automatik oder Antippen) */
  .flip .flip-in { transform: none; }
  .flip.flipped .flip-in { transform: rotateY(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  .flip .flip-in { transition: none; }
}

/* ---------- Leistungen: Flip-Karten ---------- */
.flip-card {
  background: transparent;
  perspective: 1600px;
  min-height: 480px;
  outline: none;
  cursor: pointer;
}
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-inner,
.flip-card:focus-visible .flip-inner { transform: rotateY(180deg); }

.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.flip-front { display: flex; flex-direction: column; }
.flip-card:hover .flip-front,
.flip-card:focus-visible .flip-front { box-shadow: var(--shadow-hover); }

/* Vorderseite */
.flip-front .card-body { padding: 28px 26px; flex: 1; display: flex; flex-direction: column; }
.flip-front .card-body h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.flip-front .card-body p { font-size: .92rem; }
.flip-hint {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue-600);
}
.flip-hint svg { width: 15px; height: 15px; }

/* Rueckseite */
.flip-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #12304e 0%, var(--navy-900) 100%);
  color: #dce7f2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 32px;
  text-align: left;
}
.flip-back-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(122, 170, 224, .18);
  color: #9cc4ec;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.flip-back-icon svg { width: 26px; height: 26px; }
.flip-back h3 { color: #fff; font-size: 1.25rem; margin-bottom: 18px; }
.flip-list { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; width: 100%; }
.flip-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .92rem; color: #c6d5e6;
}
.flip-list li svg {
  width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px;
  color: #6aa8e0;
}
.flip-cta { align-self: flex-start; }

@media (hover: none) {
  /* Touch: Flip per .flipped-Klasse (Scroll-Automatik oder Antippen) */
  .flip-card .flip-inner { transform: none; }
  .flip-card.flipped .flip-inner { transform: rotateY(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
}

.cards-cta { text-align: center; margin-top: 3rem; }
.cards-cta .hint { margin-bottom: 1.2rem; font-size: .95rem; }
.cards-cta .btn + .btn { margin-left: 14px; }

/* ---------- Vertrauen / Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 36px 20px;
}
.stat-icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-card strong { display: block; font-size: 1.7rem; color: var(--heading); }
.stat-card span { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Google Bewertung ---------- */
.rating-strip { text-align: center; padding: 60px 0; }
.rating-strip p { margin-bottom: 1rem; font-size: .95rem; }
.rating-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid #e3ecf4;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 26px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.rating-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stars { color: #f5b301; letter-spacing: 2px; font-size: 1.1rem; }
.rating-box strong { color: var(--heading); font-size: 1.05rem; }
.rating-box small { color: var(--text); }

/* ---------- CTA dunkel ---------- */
.cta-dark { text-align: center; }
.cta-dark .section-title { margin-bottom: 1rem; }
.cta-dark p { max-width: 520px; margin: 0 auto 2rem; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Beratung: Feature-Karten (farbig) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  border-radius: var(--radius-lg);
  padding: 44px 30px;
  text-align: center;
}
.feature-beige { background: var(--beige); }
.feature-sage  { background: var(--sage); }
.feature-blue  { background: var(--bluegray); }
.feature-sage2 { background: var(--sage-2); }
.feature-icon {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(20, 48, 75, .12);
  color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.feature-card p { font-size: .9rem; color: #45596b; }

/* ---------- Ablauf-Schritte ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.step-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 34px 26px;
}
.step-1 { background: var(--beige); }
.step-2 { background: var(--sage); }
.step-3 { background: var(--sage-2); }
.step-4 { background: var(--bluegray); }
.step-number {
  position: absolute;
  top: -14px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(33, 96, 168, .35);
}
.step-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(20, 48, 75, .12);
  color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step-icon svg { width: 22px; height: 22px; }
.step-card h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.step-card p { font-size: .86rem; color: #4d6070; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
}
.faq-item h3 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: .5rem;
}
.faq-item h3 .icon { color: var(--blue-600); margin-top: 3px; }
.faq-item p { font-size: .92rem; padding-left: 28px; }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.faq-grid .faq-item p { padding-left: 26px; }

/* ---------- Ueber uns ---------- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-grid .text-block { max-width: none; }
.split-photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  width: 100%;
  min-height: 320px;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}
.infographic-wrap { text-align: center; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-grid img:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.infographic {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: inline-block;
}

.text-block { max-width: 800px; }
.text-block .badge { margin-bottom: 1.4rem; }
.text-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  margin-bottom: 1.4rem;
}
.text-block h2 + .lead { font-weight: 700; color: var(--blue-700); margin: -1rem 0 1.4rem; }
.text-block p { margin-bottom: 1.2rem; }
.text-block .strong-line { font-weight: 700; color: var(--heading); margin-top: 1.6rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 36px 22px;
}
.value-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.value-icon svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.value-card p { font-size: .85rem; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  align-items: start;
}
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 42px 40px;
}
.contact-form-card h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.contact-form-card > p { font-size: .92rem; margin-bottom: 1.8rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.form-row .form-group { margin-bottom: 0; }
.form-group label { font-size: .88rem; font-weight: 600; color: var(--heading); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--heading);
  background: #f2f6fa;
  border: 1px solid #e1eaf2;
  border-radius: 10px;
  padding: 13px 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 124, 192, .15);
  background: var(--white);
}
.form-group .error-msg { color: var(--red-600); font-size: .8rem; display: none; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: var(--red-600); }
.form-group.has-error .error-msg { display: block; }
.btn-block { width: 100%; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

.form-alert {
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 22px;
  font-size: .92rem;
}
.form-alert.success { background: #e8f6ec; color: #1c6b36; border: 1px solid #bfe5cb; }
.form-alert.error { background: var(--red-50); color: var(--red-600); border: 1px solid #f3cfc5; }

.contact-side { display: grid; gap: 24px; }
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 30px;
}
.info-card h3 { font-size: 1.1rem; margin-bottom: 1.2rem; }
.info-list { list-style: none; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.info-icon svg { width: 19px; height: 19px; }
.info-list small { display: block; font-size: .75rem; color: var(--text); }
.info-list strong { font-size: .92rem; color: var(--heading); font-weight: 600; }
.info-list a { color: var(--heading); }
.info-list a:hover { color: var(--blue-600); }

.call-card {
  background: var(--blue-100);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  text-align: left;
}
.call-card h3 { margin-bottom: .4rem; }
.call-card p { font-size: .9rem; margin-bottom: 1.4rem; }
.call-card .btn { width: 100%; }

.emergency-card {
  background: linear-gradient(135deg, #fdf1ec, #fcebe4);
  border: 1px solid #f5d5c8;
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.emergency-card h3 {
  display: flex; align-items: center; gap: 8px;
  color: var(--red-600);
  font-size: 1rem;
  margin-bottom: .4rem;
}
.emergency-card p { color: #b3462f; font-size: .85rem; margin-bottom: .8rem; }
.emergency-card a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red-600);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--text-light);
  padding: 80px 0 0;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.brand-footer { margin-bottom: 1.2rem; }
.footer-brand-name { font-weight: 700; color: var(--white); line-height: 1.3; }
.footer-about p { font-size: .88rem; }
.footer-social { display: flex; gap: 12px; margin-top: 1.4rem; }
.social {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: transform .2s;
}
.social:hover { transform: translateY(-3px); color: var(--white); }
.social svg { width: 18px; height: 18px; }
.social-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366); }
.social-facebook { background: #1877f2; }
.social-google { background: #4285f4; }
.footer-col h4 {
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-light); }
.footer-col a:hover { color: var(--white); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact .icon { color: var(--blue-500); margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--text-light); }
.footer-legal a:hover { color: var(--white); }

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(10, 26, 43, .35);
  padding: 26px 30px;
  z-index: 100;
}
.cookie-inner { display: flex; gap: 18px; align-items: flex-start; }
.cookie-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.cookie-icon svg { width: 22px; height: 22px; }
.cookie-text strong { color: var(--heading); display: block; margin-bottom: .3rem; }
.cookie-text p { font-size: .85rem; margin-bottom: 1rem; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
}
.cookie-close:hover { color: var(--heading); }


/* Fokus-Rahmen der Header-Links dezenter (kein harter Kasten) */
.main-nav .nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(122, 170, 224, .55);
  border-radius: 6px;
}

/* ---------- Fokus-Sichtbarkeit ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(59, 124, 192, .5);
  outline-offset: 2px;
}

/* ---------- Responsiv ---------- */
@media (max-width: 1024px) {
  .cards-grid-3, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid, .stats-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .intro-grid { grid-template-columns: 1fr; gap: 56px; }
  .intro-photo { max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 110px 0 90px; }
  .cards-grid-3, .feature-grid, .steps-grid, .stats-grid,
  .values-grid, .faq-grid, .form-row, .split-grid, .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-form-card { padding: 30px 22px; }
  .cards-cta .btn + .btn { margin-left: 0; margin-top: 12px; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100vh;
    height: 100svh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    background: #081828;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 60;
    overflow-y: auto;
    padding: 90px 24px 40px;
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-link { font-size: 1.2rem; }
  .nav-toggle { position: relative; z-index: 80; }
  .site-header.menu-open,
  .site-header.menu-open.scrolled {
    background: transparent;
    box-shadow: none;
    padding: 16px 0;
  }
}
