/* =============================================
   CSS VARIABLES & RESET
   ============================================= */
:root {
  --blue: #4486bf;
  --blue-dark: #2d6a9f;
  --blue-light: #e8f2fb;
  --coral: #ff8b94;
  --coral-light: #fff0f1;
  --mint: #a8dadc;
  --mint-light: #edf8f9;
  --yellow: #ffd166;
  --yellow-light: #fff9ed;
  --text: #2d3748;
  --text-light: #6b7280;
  --bg: #fafbff;
  --bg-alt: #f5f8ff;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(68, 134, 191, 0.10);
  --shadow-hover: 0 8px 32px rgba(68, 134, 191, 0.18);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: all 0.3s ease;
  --font-body: 'Nunito', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }

/* =============================================
   LAYOUT HELPERS
   ============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; }

.section-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 999px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(68, 134, 191, 0.35);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(68, 134, 191, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-secondary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay {
  transition-delay: 0.2s;
}

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(68, 134, 191, 0.1);
  box-shadow: 0 2px 20px rgba(68, 134, 191, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}

.logo-link { flex-shrink: 0; }
.logo { height: 52px; width: auto; object-fit: contain; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  transition: var(--transition);
}
.main-nav a:hover { color: var(--blue); background: var(--blue-light); }
.main-nav a.active { color: var(--blue); }

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  box-shadow: 0 4px 12px rgba(68, 134, 191, 0.3);
}
.nav-cta:hover {
  background: var(--blue-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f7ff 0%, #fafbff 50%, #fff5f6 100%);
  padding: 80px 0;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}
.shape-1 {
  width: 600px; height: 600px;
  background: var(--blue);
  top: -200px; right: -150px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: var(--coral);
  bottom: -100px; left: -100px;
}
.shape-3 {
  width: 200px; height: 200px;
  background: var(--mint);
  top: 40%; left: 40%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--coral-light);
  color: var(--coral);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-text h1 {
  margin-bottom: 20px;
  color: var(--text);
}

.highlight {
  color: var(--blue);
  position: relative;
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--coral);
  border-radius: 999px;
  opacity: 0.5;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  max-width: 120px;
  line-height: 1.3;
}

.hero-img-frame {
  position: relative;
  border-radius: 32px;
  overflow: visible;
}
.hero-img-frame img {
  width: 100%;
  border-radius: 32px;
  object-fit: cover;
  max-height: 520px;
  box-shadow: 0 16px 48px rgba(68, 134, 191, 0.2);
}

.hero-img-badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  box-shadow: var(--shadow);
  white-space: nowrap;
  border: 2px solid var(--blue-light);
}
.hero-img-badge span { color: var(--coral); }

/* =============================================
   LEISTUNGEN / CARDS
   ============================================= */
.leistungen {
  background: var(--white);
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 5px solid transparent;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card:hover::before { opacity: 1; }

.card-blue { border-top-color: var(--blue); }
.card-blue:hover { background: linear-gradient(160deg, var(--blue-light) 0%, var(--white) 60%); }
.card-coral { border-top-color: var(--coral); }
.card-coral:hover { background: linear-gradient(160deg, var(--coral-light) 0%, var(--white) 60%); }
.card-mint { border-top-color: var(--mint); }
.card-mint:hover { background: linear-gradient(160deg, var(--mint-light) 0%, var(--white) 60%); }
.card-yellow { border-top-color: var(--yellow); }
.card-yellow:hover { background: linear-gradient(160deg, var(--yellow-light) 0%, var(--white) 60%); }

.card-icon {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.card-blue .card-icon svg  { stroke: var(--blue); }
.card-coral .card-icon svg { stroke: var(--coral); }
.card-mint  .card-icon svg { stroke: #5bbfc3; }
.card-yellow .card-icon svg { stroke: #c98a00; }
.card h3 { margin-bottom: 10px; }
.card > p { color: var(--text-light); margin-bottom: 16px; font-size: 0.95rem; }

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-list li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}
.card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.card-coral .card-list li::before { color: var(--coral); }
.card-mint .card-list li::before { color: #5bbfc3; }
.card-yellow .card-list li::before { color: #e6a800; }

/* =============================================
   PRAXIS
   ============================================= */
.praxis-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.praxis-image { position: relative; }
.praxis-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* Steht an dieser Stelle das Logo statt eines Fotos, bekommt es eine
   Fläche im Praxis-Blau – die weisse Fassung wäre auf dem hellen
   Abschnittshintergrund sonst nicht zu sehen. */
.praxis-marke {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  /* Ohne Breitenangabe schrumpft die Fläche auf die Größe des Logos –
     sie soll aber die Spalte füllen wie das Foto zuvor. */
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 480px;
  display: grid;
  place-items: center;
  padding: 12% 14%;
  box-sizing: border-box;
}
.praxis-marke img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.praxis-img-deco {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 180px;
  height: 180px;
  background: var(--blue-light);
  border-radius: 50%;
  z-index: -1;
}

.praxis-text .section-tag { display: inline-block; }
.praxis-text h2 { margin: 14px 0 20px; }
.praxis-text p { color: var(--text-light); margin-bottom: 16px; font-size: 1rem; }

.praxis-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: 0 2px 12px rgba(68, 134, 191, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
}
.feature-icon { flex-shrink: 0; display: flex; align-items: center; color: var(--blue); }

.dbl-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-top: 8px;
}
.dbl-badge img { height: 44px; width: auto; object-fit: contain; }
.dbl-badge span { font-size: 0.85rem; font-weight: 600; color: var(--blue-dark); }

/* =============================================
   TEAM
   ============================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--blue-light);
}
.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.team-card:hover .team-photo-wrap img { transform: scale(1.04); }

.team-info {
  padding: 20px 16px 24px;
}
.team-info h3 { font-size: 1.05rem; margin-bottom: 6px; }
.team-role {
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 4px;
}
.team-extra {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* =============================================
   MEILENSTEINE ACCORDION
   ============================================= */
.meilensteine .section-header { margin-bottom: 48px; }

.accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.3s;
}
.accordion-item:has(.accordion-btn[aria-expanded="true"]) {
  border-color: var(--blue-light);
}

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-align: left;
  transition: var(--transition);
  background: transparent;
}
.accordion-btn:hover { background: var(--blue-light); }
.accordion-btn[aria-expanded="true"] { background: var(--blue-light); color: var(--blue-dark); }

.acc-icon { flex-shrink: 0; display: flex; align-items: center; color: var(--blue); }
.acc-title { flex: 1; }
.acc-arrow {
  color: var(--blue);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.accordion-btn[aria-expanded="true"] .acc-arrow { transform: rotate(90deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-body.open { max-height: 1000px; }

.timeline {
  padding: 20px 24px 28px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 38px;
  top: 20px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-light), transparent);
}

.tl-item {
  position: relative;
  padding-left: 0;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 7px;
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue-light);
}

.tl-month {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.tl-item p { font-size: 0.95rem; color: var(--text-light); }

.meilensteine-cta {
  text-align: center;
  margin-top: 48px;
  padding: 36px;
  background: var(--blue-light);
  border-radius: var(--radius);
}
.meilensteine-cta p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 600;
}

/* =============================================
   GALERIE
   ============================================= */
.galerie { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}

.gallery-item--wide { grid-column: span 2; }

.gallery-item {
  display: block;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--blue-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 106, 159, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.gallery-overlay svg {
  color: var(--white);
  stroke: var(--white);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* =============================================
   JOBS
   ============================================= */
.jobs-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}

.job-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--blue);
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.job-icon { font-size: 2.8rem; flex-shrink: 0; line-height: 1; }

.job-card-header h3 { margin-bottom: 10px; }

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-tag {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.job-desc {
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.7;
}

.job-section { margin-bottom: 24px; }
.job-section h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-bottom: 14px;
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.job-list li {
  font-size: 0.95rem;
  padding-left: 22px;
  position: relative;
  color: var(--text);
}
.job-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
}
.benefit-icon { flex-shrink: 0; display: flex; align-items: center; color: var(--blue); }

.job-apply {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--blue-light);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.job-apply p {
  flex: 1;
  min-width: 180px;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Jobs sidebar */
.jobs-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.jobs-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.jobs-image img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: top center;
}

.jobs-quote {
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  padding: 24px;
  position: relative;
}
.quote-mark {
  font-size: 3rem;
  color: var(--blue);
  opacity: 0.3;
  line-height: 1;
  display: block;
  margin-bottom: -8px;
}
.jobs-quote p {
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 10px;
}
.quote-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.jobs-contact-box {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jobs-contact-box strong { font-size: 1rem; }
.jobs-contact-box p { font-size: 0.9rem; color: var(--text-light); }
.jobs-contact-link {
  display: block;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  padding: 4px 0;
}
.jobs-contact-link:hover { color: var(--blue-dark); }

/* =============================================
   KONTAKT
   ============================================= */
.kontakt { background: var(--white); }

.kontakt-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.info-icon { flex-shrink: 0; display: flex; align-items: center; color: var(--blue); }
.info-card strong { display: block; font-weight: 700; margin-bottom: 4px; }
.info-card p { font-size: 0.95rem; color: var(--text-light); }
.info-card a { color: var(--blue); font-weight: 600; transition: var(--transition); }
.info-card a:hover { color: var(--blue-dark); }

.map-wrap { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }

/* Form */
.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 2px solid #e5eaf0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  outline: none;
  transition: var(--transition);
  resize: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(68, 134, 191, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #b0b8c8; }

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-light);
}
.form-privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--blue);
  cursor: pointer;
}
.form-privacy a { color: var(--blue); text-decoration: underline; }

.form-success {
  display: none;
  background: #e6f9f0;
  color: #1a7a4a;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}
.form-success.show { display: block; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #1a2744;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  opacity: 0.9;
}
/* Nur das normale Logo wird für den dunklen Grund weiß eingefärbt –
   ein eigens hinterlegtes Footer-Logo bleibt, wie es ist. */
.footer-logo img.invertiert { filter: brightness(0) invert(1); }
.footer-logo p { font-size: 0.9rem; line-height: 1.6; opacity: 0.7; }

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 0.95rem;
  opacity: 0.8;
  transition: var(--transition);
}
.footer-links a:hover { opacity: 1; color: var(--mint); }

/* Verbandslogo im Fußbereich.
   Nicht einfärben: das Logo des Bundesverbands gehört nicht uns, seine
   Farben bleiben, wie sie sind. Da die Datei einen weißen Hintergrund
   mitbringt, steht sie auf einem weißen Feld – das wirkt gewollt,
   statt als heller Fleck auf dem dunklen Grund. */
.footer-dbl { margin-top: 20px; }
.footer-dbl img {
  height: 40px;
  width: auto;
  display: block;
  background: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  box-sizing: content-box;
}

.footer-contact h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; opacity: 0.8; }
.footer-contact a { opacity: 0.8; transition: var(--transition); }
.footer-contact a:hover { opacity: 1; color: var(--mint); }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  background: rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 1 !important;
  transition: var(--transition);
}
.social-link:hover { background: rgba(255,255,255,0.2); }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* =============================================
   LUCIDE ICON GLOBALS
   ============================================= */
/* All Lucide SVGs default to currentColor stroke, no fill */
[data-lucide] svg,
.icon-heart-badge svg {
  display: inline-block;
  vertical-align: middle;
}

/* Hero badge heart – soft red */
.hero-img-badge .icon-heart-badge svg {
  stroke: #e07b8a;
  fill: #e07b8a;
}

/* Jobs contact link icons align nicely */
.jobs-contact-link svg {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 5px;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 36, 0.92);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  max-width: 88vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: lbFadeIn 0.25s ease;
}

@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-figure img {
  display: block;
  max-width: 88vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.lightbox-figure figcaption {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-family: var(--font-body);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* Prev / Next */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.22); color: #fff; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* On mobile lightbox is disabled via JS – hide buttons too */
@media (max-width: 860px) {
  .lightbox { display: none !important; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-inner { gap: 48px; }
  .praxis-inner { gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .jobs-inner { gap: 36px; }
  .gallery-grid { grid-auto-rows: 200px; }
}

@media (max-width: 860px) {
  .section { padding: 72px 0; }

  /* Nav */
  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    border-bottom: 1px solid var(--blue-light);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .main-nav a {
    display: block;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
  }

  /* Hero */
  .hero { padding: 60px 0 80px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { order: -1; }
  .hero-img-frame img { max-height: 360px; }

  /* Praxis */
  .praxis-inner { grid-template-columns: 1fr; gap: 48px; }
  .praxis-img-deco { display: none; }

  /* Galerie */
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .gallery-item--wide { grid-column: span 2; }

  /* Jobs */
  .jobs-inner { grid-template-columns: 1fr; }
  .jobs-side { position: static; }

  /* Kontakt */
  .kontakt-inner { grid-template-columns: 1fr; gap: 40px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero-stats { gap: 20px; }
  .stat-number { font-size: 1.6rem; }

  .cards-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .form-row { grid-template-columns: 1fr; }
  .kontakt-form { padding: 24px; }
  .praxis-features { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .job-card { padding: 24px; }
  .job-apply { flex-direction: column; align-items: flex-start; }

  .footer-inner { grid-template-columns: 1fr; }

  .timeline { padding-left: 40px; }
  .timeline::before { left: 18px; }
  .tl-item::before { left: -28px; }
}

@media (max-width: 420px) {
  .team-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}

/* =============================================
   ERGÄNZUNGEN FÜR DAS REDAKTIONSSYSTEM
   ============================================= */

/* Logo-Ersatz, solange kein Bild hinterlegt ist */
.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--blue);
  letter-spacing: -0.5px;
}

/* Inhaltsseiten (Impressum, Datenschutz …) */
.inhaltsseite { padding-top: 64px; }
.container-schmal { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.inhaltsseite h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }

.fliesstext { color: var(--text); line-height: 1.8; }
.fliesstext h2 {
  font-size: 1.4rem;
  margin: 36px 0 12px;
  color: var(--blue-dark);
}
.fliesstext h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.fliesstext p { margin-bottom: 16px; color: var(--text-light); }
.fliesstext ul, .fliesstext ol { margin: 0 0 16px 22px; color: var(--text-light); }
.fliesstext ul { list-style: disc; }
.fliesstext ol { list-style: decimal; }
.fliesstext li { margin-bottom: 6px; }
.fliesstext a { color: var(--blue); text-decoration: underline; }
.fliesstext a:hover { color: var(--blue-dark); }
.fliesstext img { border-radius: var(--radius-sm); margin: 20px 0; }
.fliesstext table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.fliesstext th, .fliesstext td {
  border: 1px solid var(--blue-light);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.95rem;
}
.fliesstext th { background: var(--blue-light); font-weight: 700; }
.mt-4 { margin-top: 32px; }

/* Kontaktbereich ohne Formular: Angaben mittig statt zweispaltig */
.kontakt-inner.ohne-formular { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }

/* Honigtopf gegen Formular-Bots – für Menschen unsichtbar,
   aber nicht per display:none (das übersehen manche Bots absichtlich). */
.hp-feld {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Fehlerhinweise am Formular */
.form-fehler {
  background: #fdecec;
  color: #a32020;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 600;
}
.form-fehler p { margin-bottom: 4px; }
.form-fehler p:last-child { margin-bottom: 0; }

/* Eingebettete Karte responsiv halten */
.map-wrap iframe { display: block; width: 100%; border: 0; border-radius: var(--radius-sm); }

@media (max-width: 600px) {
  .container-schmal { padding: 0 16px; }
  .inhaltsseite { padding-top: 40px; }
}

/* =============================================
   BILDER: SANFTES EINBLENDEN
   Die Regeln greifen nur, wenn JavaScript läuft (Klasse .js am
   <html>). Ohne JavaScript sind alle Bilder sofort sichtbar –
   sonst bliebe die Seite bei einem Skriptfehler leer.
   ============================================= */
.lg-bild { display: block; width: 100%; height: auto; }

.js .lg-bild {
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.7s ease;
  filter: blur(8px);
}
.js .lg-bild.geladen {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Ruhiger Platzhalter, solange das Bild unterwegs ist */
.js .lg-laedt {
  position: relative;
  overflow: hidden;
  background: var(--blue-light);
}
.js .lg-laedt::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 80%);
  transform: translateX(-100%);
  animation: lgSchimmer 1.4s ease-in-out infinite;
}
@keyframes lgSchimmer {
  to { transform: translateX(100%); }
}
.js .lg-fertig::after { animation: none; opacity: 0; }

/* Die Bildrahmen brauchen ihr Seitenverhältnis vorab, sonst
   springt beim Nachladen das Layout. */
.hero-img-frame { aspect-ratio: 16 / 11; }
.hero-img-frame picture { display: block; height: 100%; }
.hero-img-frame img { height: 100%; object-fit: cover; }
.praxis-image picture { display: block; }
.jobs-image picture { display: block; }
.gallery-item picture { display: block; width: 100%; height: 100%; }
.team-photo-wrap picture { display: block; width: 100%; height: 100%; }

/* =============================================
   EINBLENDEN BEIM SCROLLEN – etwas lebendiger
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Karten in einer Reihe nacheinander einblenden */
.cards-grid .card,
.team-grid .team-card,
.gallery-grid .gallery-item,
.benefits-grid .benefit,
.praxis-features .feature {
  --lg-stufe: 0;
}
.js .cards-grid .card,
.js .team-grid .team-card,
.js .gallery-grid .gallery-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--lg-stufe) * 70ms),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--lg-stufe) * 70ms);
}
.js .cards-grid .card.sichtbar,
.js .team-grid .team-card.sichtbar,
.js .gallery-grid .gallery-item.sichtbar {
  opacity: 1;
  transform: none;
}

/* =============================================
   HINTERGRUNDFORMEN: LEICHTE TIEFENWIRKUNG
   ============================================= */
.shape { will-change: transform; transition: transform 0.1s linear; }

/* =============================================
   GALERIE: RUHIGERES ÜBERBLENDEN
   ============================================= */
.gallery-overlay {
  background: linear-gradient(to top,
    rgba(45, 106, 159, 0.72) 0%,
    rgba(45, 106, 159, 0.28) 55%,
    rgba(45, 106, 159, 0.12) 100%);
}
.gallery-item .gallery-overlay svg { transform: scale(0.85); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.gallery-item:hover .gallery-overlay svg { transform: scale(1); }
.gallery-item:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.gallery-item:focus-visible .gallery-overlay { opacity: 1; }

/* =============================================
   TASTATURBEDIENUNG SICHTBAR MACHEN
   ============================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* Sprungmarke für Tastatur- und Screenreader-Nutzung */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

/* =============================================
   WER WENIGER BEWEGUNG MÖCHTE, BEKOMMT WENIGER
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .lg-bild { opacity: 1; transform: none; filter: none; }
  .js .cards-grid .card,
  .js .team-grid .team-card,
  .js .gallery-grid .gallery-item { opacity: 1; transform: none; }
  .shape { transform: none !important; }
}
