/* ==========================================================================
   Kinderherz Hannover e.V. – Stylesheet
   Warme, vertrauensvolle Farbwelt (Rot/Rosa) für einen gemeinnützigen Verein
   ========================================================================== */

:root {
  --color-primary: #c94a5a;
  --color-primary-dark: #9c2f42;
  --color-primary-light: #f4d3d8;
  --color-accent: #f2a154;
  --color-bg: #fffaf7;
  --color-bg-alt: #fbeeec;
  --color-text: #3a2c2c;
  --color-text-light: #6b5b5b;
  --color-white: #ffffff;
  --radius-lg: 24px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 30px rgba(156, 47, 66, 0.12);
  --max-width: 1120px;
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--color-primary-dark);
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

.section-alt { background: var(--color-bg-alt); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-header .eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: .5em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}
.btn-outline:hover { background: var(--color-primary-light); }

.btn-light {
  background: var(--color-white);
  color: var(--color-primary-dark);
}

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 247, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-primary-light);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
}
.logo:hover { text-decoration: none; }
.logo .heart-icon { width: 34px; height: 34px; }
.logo .logo-img {
  height: 50px;
  width: auto;
  border-radius: 8px;
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: .95rem;
}
.main-nav a.active,
.main-nav a:hover { color: var(--color-primary); }

/* ---------- Dropdown-Untermenü ---------- */
.main-nav li.has-dropdown { position: relative; }
.main-nav li.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.main-nav li.has-dropdown > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .6;
  margin-top: -3px;
}
.main-nav .dropdown {
  list-style: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  margin: 10px 0 0;
  padding: 8px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 30;
}
.main-nav li.has-dropdown:hover > .dropdown,
.main-nav li.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .dropdown li { margin: 0; }
.main-nav .dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--color-text);
  white-space: nowrap;
}
.main-nav .dropdown a:hover,
.main-nav .dropdown a.active { background: var(--color-bg-alt); color: var(--color-primary-dark); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--color-primary-dark);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
  background: linear-gradient(160deg, var(--color-bg) 0%, var(--color-primary-light) 140%);
}

.hero-banner {
  position: relative;
  padding: 120px 0 110px;
  overflow: hidden;
  background-image: url('../images/banner-hero.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(90deg, rgba(255,250,247,0.97) 0%, rgba(255,250,247,0.88) 32%, rgba(255,250,247,0.35) 58%, rgba(255,250,247,0.05) 78%);
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-animated-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-animated-bg .hero-scene { width: 100%; height: 100%; display: block; }
.pulse-heart {
  transform-box: fill-box;
  transform-origin: center;
  animation: heartPulse 4.2s ease-in-out infinite;
}
@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: sparkFloat 9s ease-in-out infinite;
  opacity: 0;
}
.spark-1 { animation-delay: 0s; }
.spark-2 { animation-delay: 2.2s; }
.spark-3 { animation-delay: 4.4s; }
.spark-4 { animation-delay: 6.6s; }
@keyframes sparkFloat {
  0%   { transform: translateY(0);     opacity: 0; }
  20%  { opacity: .85; }
  80%  { opacity: .3; }
  100% { transform: translateY(-36px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-heart, .spark { animation: none; opacity: .5; }
}
.hero-banner > .container { position: relative; z-index: 2; }
.hero-banner .hero-text { max-width: 620px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-text .eyebrow {
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .8rem;
}
.hero-text p.lead {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 46ch;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary-dark);
}
.hero-stats .stat span {
  font-size: .85rem;
  color: var(--color-text-light);
}

.hero-art { position: relative; }
.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.card .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon-circle svg { width: 28px; height: 28px; }

/* ---------- News ---------- */
.news-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.news-card:hover,
.news-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(58, 44, 44, .16);
}
.news-card .news-media {
  height: 160px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card .news-media svg { width: 48px; height: 48px; color: var(--color-white); }
.news-card .news-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-date {
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.news-card .read-more { margin-top: auto; font-weight: 700; color: var(--color-primary-dark); }

/* ---------- Fotos, direkt in den Fließtext eingebunden ---------- */
.text-photo {
  max-width: 100%;
  width: 100%;
  margin: 4px 0 24px;
}
.text-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md, 10px);
  display: block;
}
.text-photo figcaption {
  margin-top: 8px;
  font-size: .85rem;
  color: var(--color-text-light);
  text-align: center;
}
.text-photo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  margin: 4px 0 24px;
}
@media (max-width: 480px) {
  .text-photo-row { grid-template-columns: 1fr; }
}
.text-photo-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md, 10px);
  display: block;
}
.text-photo-row figcaption {
  margin-top: 8px;
  font-size: .85rem;
  color: var(--color-text-light);
  text-align: center;
}

/* ---------- Video-Einbindung (Vimeo) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 8px 0 24px;
}
.video-item figcaption {
  margin-top: 10px;
  font-size: .88rem;
  color: var(--color-text-light);
  text-align: center;
}
.video-placeholder,
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.video-placeholder {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-bg-alt));
  border: 1.5px dashed var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder svg { width: 46px; height: 46px; opacity: .55; }
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Testimonial / Quote ---------- */
.quote-block {
  background: var(--color-primary-dark);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.quote-block p {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  max-width: 46ch;
  margin: 0 auto 16px;
}
.quote-block span { opacity: .85; font-size: .9rem; }

/* ---------- Donation blocks ---------- */
.donation-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.donation-amount {
  background: var(--color-white);
  border: 2px solid var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-primary-dark);
}
.donation-amount span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .85rem;
  color: var(--color-text-light);
  margin-top: 6px;
}

.info-box {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

/* ---------- Forms ---------- */
form.contact-form, form.join-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 20px;
}
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--color-text);
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e3cfd0;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-bg);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
}
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: auto; margin-top: 4px; }
.form-note { font-size: .85rem; color: var(--color-text-light); }

/* ---------- Project cards ---------- */
.project-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(58, 44, 44, .16);
}
.project-photo-banner {
  width: 100%;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-photo-banner.is-placeholder svg { width: 48px; height: 48px; opacity: .5; }
.project-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-card-body h3 { margin: 0; }
.project-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.project-more {
  margin-top: auto;
  padding-top: 4px;
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: .92rem;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge-done {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  border: 1.5px solid var(--color-primary-light);
}
.badge-ongoing {
  background: var(--color-accent);
  color: var(--color-white);
}
.project-amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-primary-dark);
}
.project-amount span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .82rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* ---------- Mitglieder-Logowand ---------- */
.member-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 16px;
}
.member-logos img {
  height: 48px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .7;
  transition: filter .2s ease, opacity .2s ease;
}
.member-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---------- Timeline (Über uns) ---------- */
.timeline {
  border-left: 3px solid var(--color-primary-light);
  padding-left: 32px;
  display: grid;
  gap: 36px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 3px solid var(--color-bg);
}
.timeline-year {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.team-card { text-align: center; }
.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.team-card h4 { margin-bottom: 2px; }
.team-role { color: var(--color-text-light); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #f4dfe1;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: #f4dfe1; }
.footer-grid a:hover { color: var(--color-white); }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--color-white); margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
}
.footer-bottom a { color: #f4dfe1; }

/* ---------- Page header (interior pages) ---------- */
.page-hero {
  padding: 56px 0 40px;
  background: var(--color-primary-light);
  text-align: center;
}
.page-hero .eyebrow {
  color: var(--color-primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .8rem;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
.two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-banner {
    padding: 90px 0 70px;
    background-position: top center;
  }
  .hero-banner::before {
    background-image: linear-gradient(180deg, rgba(255,250,247,0.96) 0%, rgba(255,250,247,0.9) 45%, rgba(255,250,247,0.55) 100%);
  }
  .hero-banner .hero-text { max-width: 100%; }
  /* Video-/Animations-Hintergrund auf kleinen Bildschirmen deaktiviert: schnellerer
     Seitenaufbau, weniger Datenverbrauch. Es wird stattdessen das Bannerbild oben gezeigt. */
  .hero-video, .hero-animated-bg { display: none; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 72px; left: 0; right: 0; background: var(--color-bg); box-shadow: var(--shadow-soft); padding: 20px 24px; transform: translateY(-130%); transition: transform .25s ease; }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 18px; }
  .nav-toggle { display: block; }
  .nav-actions .btn-primary-desktop { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  form.contact-form, form.join-form { padding: 24px; }
  /* Dropdown auf dem Handy: immer ausgeklappt statt per Hover, da es kein
     Hover auf Touch-Geräten gibt. */
  .main-nav li.has-dropdown > a::after { transform: rotate(135deg); margin-top: 3px; }
  .main-nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 4px 0 0 16px;
    margin: 10px 0 0;
  }
}

/* Highlights: kleine Bildergalerie (Mosaik) */
.highlight-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
@media (max-width: 640px) {
  .highlight-gallery { grid-template-columns: repeat(3, 1fr); }
}
.highlight-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-primary-light);
}
.highlight-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.highlight-tile .highlight-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fffaf7;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.highlight-tile.is-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.highlight-tile.is-placeholder svg {
  width: 22px;
  height: 22px;
}
.highlight-tile.is-placeholder .highlight-caption {
  position: static;
  background: none;
  color: var(--color-primary-dark);
  text-align: center;
  padding: 0;
  font-size: 0.75rem;
  white-space: normal;
}

/* Highlights: Lightbox für Fotos */
.highlight-tile[data-lightbox] { cursor: pointer; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 12, 0.82);
}
.lightbox-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  max-height: 88vh;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}
.lightbox-content img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-caption {
  margin: 14px 0 0;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Highlights: Lightbox Vor-/Zurück-Navigation */
.lightbox-nav {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 12px;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
@media (max-width: 640px) {
  .lightbox-nav { width: 38px; height: 38px; font-size: 22px; margin: 0 4px; }
}

/* Startseite: Hinweis-Pop-up "Seite im Aufbau" */
.site-notice {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.site-notice.is-open { display: flex; }
.site-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 12, 0.6);
}
.site-notice-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.site-notice-icon { margin-bottom: 12px; }
.site-notice-content h3 { margin: 0 0 10px; color: var(--color-primary-dark); }
.site-notice-content p { margin: 0 0 20px; color: var(--color-text-light); }
.site-notice-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Foto mit Bildunterschrift (z. B. Kinderherzchirurgie-Seite) */
.photo-figure { max-width: 860px; margin: 0 auto; }
.photo-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.photo-figure figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: .95rem;
  color: var(--color-text-light);
}

/* Kinderherzchirurgie: Bannerbild im Seitenkopf */
.page-hero-banner {
  position: relative;
  padding: 110px 0 90px;
  background-image: url('../images/kinderherzchirurgie-instrumente.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}
.page-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 38, 56, .55), rgba(12, 38, 56, .70));
}
.page-hero-banner > .container { position: relative; z-index: 1; }
.page-hero-banner h1,
.page-hero-banner p,
.page-hero-banner .eyebrow { color: #fff; }
@media (max-width: 640px) {
  .page-hero-banner { padding: 80px 0 64px; }
}

/* Kleines Foto neben dem Einleitungstext */
.intro-with-photo {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: center;
  margin-bottom: 8px;
}
.photo-figure-small { max-width: 260px; margin: 0; }
.photo-figure-small figcaption { font-size: .85rem; }
@media (max-width: 720px) {
  .intro-with-photo { grid-template-columns: 1fr; }
  .photo-figure-small { margin: 0 auto; }
}

/* ---------- Startseite: kompakte Kästen "Was wir tun" ---------- */
.help-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.help-card { cursor: pointer; }
.help-card .project-photo-banner { position: relative; height: auto; aspect-ratio: 4 / 3; }
.help-card .project-photo-banner img { transition: transform .4s ease; }
.help-card:hover .project-photo-banner img,
.help-card:focus-visible .project-photo-banner img { transform: scale(1.05); }
.help-card:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }
.photo-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(58, 44, 44, .62);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}
.help-card .project-card-body { padding: 14px 14px 16px; gap: 6px; flex: 1; }
.help-card .project-top .badge { padding: 3px 10px; font-size: .7rem; }
.help-card .project-card-body h3 { font-size: .95rem; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.help-card .project-card-body p { font-size: .82rem; line-height: 1.5; margin: 0; color: var(--color-text-light); }
.help-card .project-more { margin-top: auto; padding-top: 4px; font-size: .85rem; }
.badge-new { background: var(--color-primary); color: var(--color-white); }
@media (max-width: 1000px) { .help-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .help-card .project-card-body { padding: 10px 10px 12px; }
  .help-card .project-card-body p { display: none; } }
.help-card .project-photo-banner img[hidden] { display: none; }

/* Projekt-Galerie mit Text (z. B. Bewegliche Wiege) */
.lightbox-media { display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 100%; }
.lightbox-content.has-text {
  max-width: 1040px;
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
  padding: 24px;
}
.lightbox-content.has-text .lightbox-media { flex: 0 0 52%; }
.lightbox-content.has-text img { width: 100%; max-height: 70vh; object-fit: cover; }
.lightbox-text {
  flex: 1;
  min-width: 0;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 6px;
}
.lightbox-text[hidden] { display: none; }
.lightbox-text h3 { font-size: 1.25rem; margin-bottom: .6em; }
.lightbox-text p { font-size: .95rem; line-height: 1.65; color: var(--color-text); margin: 0 0 .9em; }
.lightbox-caption[hidden] { display: none; }
@media (max-width: 760px) {
  .lightbox-content.has-text { flex-direction: column; gap: 16px; padding: 16px; overflow-y: auto; }
  .lightbox-content.has-text .lightbox-media { flex: none; width: 100%; }
  .lightbox-content.has-text img { max-height: 34vh; }
  .lightbox-text { max-height: none; overflow: visible; }
}
@media (max-width: 760px) {
  .lightbox-content.has-text .lightbox-close { position: sticky; top: 0; right: 0; align-self: flex-end; margin: -6px -6px -30px 0; z-index: 2; flex: none; }
}

/* ---------- Projekt-Unterseiten: Fotogalerie ---------- */
.project-hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin-bottom: 32px;
  box-shadow: var(--shadow-soft);
}
.project-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin: 12px 0 8px;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}
.photo-grid img:hover,
.photo-grid img:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-soft); outline: none; }
.photo-grid-hint { font-size: .85rem; color: var(--color-text-light); margin: 0 0 24px; }

/* Startseite: die zwei aktuellsten Neuigkeiten */
.news-latest { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-latest .news-card .news-media { height: 200px; }
@media (max-width: 980px) { .news-latest { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .news-latest { grid-template-columns: minmax(0, 1fr); } .news-latest .news-card .news-media { height: 200px; } }

/* Highlights: Bildunterschriften vollständig (bis zu 3 Zeilen) */
.highlight-tile .highlight-caption {
  white-space: normal;
  text-overflow: clip;
  padding: 22px 8px 7px;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 55%, rgba(0,0,0,0));
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
@media (min-width: 641px) and (max-width: 1000px) {
  .highlight-gallery { grid-template-columns: repeat(4, 1fr); }
}

/* Presse: drei kompakte Kästen */
.press-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.press-grid .news-card .news-media { height: 160px; }
.press-grid .news-card .news-body { padding: 18px 20px 20px; }
.press-grid .news-card h3 { font-size: 1.05rem; }
.press-grid .news-card p { font-size: .9rem; }
@media (max-width: 1050px) { .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .press-grid { grid-template-columns: minmax(0, 1fr); } }

/* Pop-up: Geschenk-Icon mit Herz */
.site-notice-icon.gift-icon {
  width: 108px; height: 108px; margin: -4px auto 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff 0, var(--color-primary-light) 70%);
  box-shadow: 0 8px 22px rgba(201, 74, 90, .25);
  display: flex; align-items: center; justify-content: center;
}
.gift-icon svg { overflow: visible; }
.gift-heart { transform-origin: 32px 18px; animation: giftHeart 2.4s ease-in-out infinite; }
.gift-spark { animation: giftSpark 2.4s ease-in-out infinite; }
.gift-spark.s2 { animation-delay: .6s; } .gift-spark.s3 { animation-delay: 1.2s; }
@keyframes giftHeart {
  0%, 100% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-4px) scale(1.12); }
  60% { transform: translateY(-3px) scale(1.04); }
}
@keyframes giftSpark { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gift-heart, .gift-spark { animation: none; } }
