/* =====================================================
   Theme-Overrides & Unterseiten-Styles
   Wird nach main.css geladen und überschreibt gezielt.
===================================================== */

/* ---------- Header-Spacing ---------- */
.site-header .header-grid { margin-top: 10px; align-items: center; }
.site-header .brand       { position: relative; top: 10px; }
.site-header .nav-right   { position: relative; top: 10px; }

/* ---------- Footer-Anpassungen ---------- */
.footer-grid {
  grid-template-columns: 1fr 1fr 1.3fr !important;
}
.footer-about-text {
  font-size: 14px;
  line-height: 1.65;
  color: #fff;
  opacity: 0.9;
  margin: 0 0 18px;
  max-width: 360px;
}
.footer-legal-links {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-legal-links a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .2s ease, border-color .2s ease;
}
.footer-legal-links a:hover {
  background: rgba(254, 181, 93, 0.18);
  border-color: rgba(254, 181, 93, 0.5);
}
.footer-map {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  filter: grayscale(15%) contrast(0.95);
  transition: filter .3s ease;
}
.footer-map:hover { filter: none; }
.footer-map iframe {
  display: block;
  width: 100%;
  border: 0;
}
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-map iframe { height: 220px; }
  .footer-about-text { max-width: none; }
}

/* ---------- Prominenter Kontakt-Button (Header) ---------- */
.nav-link-pill {
  background: #FEB55D;
  color: #00004D !important;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(254, 181, 93, 0.35);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}
.nav-link-pill:hover {
  background: #ffcc85;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 32px rgba(254, 181, 93, 0.5);
}
.site-header.is-hero .nav-link-pill,
.site-header.is-static .nav-link-pill,
.site-header.is-static.is-scrolled .nav-link-pill {
  color: #00004D !important;
}

/* ---------- Hero-CTA in Orange ---------- */
.btn-hero-cta {
  background: linear-gradient(135deg, #FEB55D 0%, #ffc878 100%);
  color: #00004D;
  box-shadow: 0 20px 40px rgba(254, 181, 93, 0.4);
  font-weight: 700;
  font-size: 17px;
}
.btn-hero-cta:hover {
  background: linear-gradient(135deg, #ffc878 0%, #ffd699 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 26px 48px rgba(254, 181, 93, 0.55);
}
.btn-hero-cta__circle {
  background: #00004D;
  color: #ffffff;
}

/* Zusätzlicher Kontakt-Button direkt im Hero (neben CTA) */
.hero-buttons {
  margin-top: 34px;
  display: inline-flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-buttons .btn-hero-cta { margin-top: 0; }

.btn-hero-kontakt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 62px;
  padding: 0 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.25s ease;
}
.btn-hero-kontakt:hover {
  background: rgba(255,255,255,0.22);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-hero-kontakt svg {
  width: 18px; height: 18px;
}

/* Allgemeiner Orange-Button (für Unterseiten-CTAs) */
.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #FEB55D 0%, #ffc878 100%);
  color: #00004D !important;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 10px 28px rgba(254, 181, 93, 0.35);
  transition: all 0.3s ease;
}
.btn-orange:hover {
  background: linear-gradient(135deg, #ffc878 0%, #ffd699 100%);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(254, 181, 93, 0.5);
}
.btn-orange svg { width: 18px; height: 18px; }

/* ---------- Static-Header (Unterseiten) ---------- */
.site-header.is-static {
  background: var(--bg);
  color: var(--dark);
  position: fixed;
  box-shadow: 0 1px 0 rgba(0, 0, 77, .08);
}
.site-header.is-static .brand-logo {
  filter: none;
}
.site-header.is-static .nav-link { color: var(--dark); }

/* ---------- Hero-Hintergrund dynamisch via CSS-Variable ---------- */
.hero .hero-bg[data-bg] {
  background-image: linear-gradient(to right, rgba(0,0,0,0.70), rgba(0,0,0,0.15)), var(--hero-bg);
  background-size: cover;
  background-position: center;
}

/* ---------- Subpage-Hero (allgemein) ---------- */
.subpage-hero {
  position: relative;
  isolation: isolate;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark); /* Fallback-Hintergrund hinter dem Bild */
  padding: 180px 0 90px;
}
/* Layer 1: austauschbares Hintergrundbild aus der Mediathek */
.subpage-hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Layer 2: Dunkel-Tönung für Lesbarkeit (variant-abhängig) */
.subpage-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 77, 0.85) 0%, rgba(0, 0, 77, 0.75) 100%);
}
.subpage-hero.is-about .subpage-hero-bg::after {
  background: linear-gradient(to right, rgba(0, 0, 77, 0.85), rgba(0, 0, 77, 0.6));
}
.subpage-hero.is-kontakt .subpage-hero-bg::after {
  background: linear-gradient(135deg, rgba(0, 0, 77, 0.92) 0%, rgba(0, 0, 77, 0.85) 100%);
}
/* Layer 3: animierter Glow */
.subpage-hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 50%, rgba(254, 181, 93, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(153, 171, 214, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(254, 181, 93, 0.1) 0%, transparent 45%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroGlow {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}
.subpage-hero .hero-decoration {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  z-index: 2;
}
.subpage-hero .subpage-hero-content {
  position: relative; z-index: 3;
}
.floating-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
}
.floating-circle-1 { width: 400px; height: 400px; top: -100px; right: -100px; animation: floatCircle 15s ease-in-out infinite; }
.floating-circle-2 { width: 300px; height: 300px; bottom: -50px; left: -50px; animation: floatCircle 20s ease-in-out infinite reverse; }
.floating-circle-3 { width: 200px; height: 200px; top: 30%; right: 20%; background: rgba(254, 181, 93, 0.05); animation: floatCircle 12s ease-in-out infinite; }
.floating-circle-4 { width: 150px; height: 150px; bottom: 20%; left: 15%; background: rgba(153, 171, 214, 0.05); animation: floatCircle 18s ease-in-out infinite reverse; }
@keyframes floatCircle {
  0%,100% { transform: translate(0, 0) rotate(0deg); }
  25%    { transform: translate(20px, -15px) rotate(5deg); }
  50%    { transform: translate(-10px, 20px) rotate(-3deg); }
  75%    { transform: translate(-25px, -10px) rotate(3deg); }
}
.subpage-hero-content {
  position: relative; z-index: 1;
  text-align: center;
  color: #fff;
}
.subpage-hero-kicker {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: .2em;
  color: #FEB55D;
  margin-bottom: 20px;
}
.subpage-hero-title {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 20px 0;
  line-height: 1.1;
  color: #fff;
}
.subpage-hero-subtitle {
  font-size: 20px;
  opacity: 0.85;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Wir über uns ---------- */
.vision-section { padding: 100px 0; }
.vision-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.vision-card {
  background: var(--card); border-radius: var(--r-lg);
  padding: 48px; position: relative; overflow: hidden;
  transition: all 0.4s ease;
}
.vision-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.vision-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: linear-gradient(180deg, #FEB55D 0%, var(--dark) 100%);
}
.vision-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--dark) 0%, #2a2a8e 100%);
  border-radius: 16px; display: grid; place-items: center;
  color: #fff; margin-bottom: 24px;
}
.vision-icon svg { width: 32px; height: 32px; }
.vision-card-title { font-size: 28px; font-weight: 600; color: var(--dark); margin: 0 0 16px 0; letter-spacing: -0.02em; }
.vision-card-text { font-size: 16px; color: var(--muted); line-height: 1.7; margin: 0; font-weight: 500; }

.history-section { background: var(--dark); padding: 100px 0; color: #fff; }
.history-header { text-align: center; margin-bottom: 72px; }
.history-kicker { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: #FEB55D; margin-bottom: 16px; }
.history-title { font-size: clamp(36px, 4vw, 56px); font-weight: 400; letter-spacing: -0.03em; margin: 0; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.timeline-item { padding: 32px 0; }
.timeline-year { font-size: 64px; font-weight: 700; color: #FEB55D; letter-spacing: -0.03em; line-height: 1; margin-bottom: 20px; }
.timeline-title { font-size: 22px; font-weight: 600; margin: 0 0 12px 0; }
.timeline-text { font-size: 15px; line-height: 1.6; opacity: 0.8; font-weight: 500; margin: 0; }

.values-section { padding: 100px 0; }
.values-header { text-align: center; margin-bottom: 64px; }
.values-kicker { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: #FEB55D; margin-bottom: 16px; }
.values-title { font-size: clamp(36px, 4vw, 56px); font-weight: 400; letter-spacing: -0.03em; margin: 0; color: var(--dark); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.value-card {
  background: var(--card); border-radius: var(--r-md);
  padding: 40px 28px; text-align: center;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #FEB55D 0%, var(--dark) 100%);
  transform: scaleX(0); transition: transform 0.3s ease;
}
.value-card:hover::after { transform: scaleX(1); }
.value-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, rgba(153, 171, 214, 0.2) 0%, rgba(0, 0, 77, 0.1) 100%);
  border-radius: 50%; display: grid; place-items: center;
  color: var(--dark); margin: 0 auto 24px;
}
.value-icon svg { width: 36px; height: 36px; }
.value-title { font-size: 20px; font-weight: 600; color: var(--dark); margin: 0 0 12px 0; }
.value-text { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; font-weight: 500; }

/* ---------- Vision & Mission (Doppelkarte) ---------- */
.vm-section { padding: 80px 0; }
.vm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.vm-card {
  background: #E6EAF5;
  border-radius: var(--r-md);
  padding: 48px 40px;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 77, 0.05);
  border-left: 4px solid var(--dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vm-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 77, 0.12); }
.vm-icon {
  width: 56px; height: 56px;
  background: var(--dark);
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 28px;
}
.vm-icon svg { width: 28px; height: 28px; }
.vm-title { font-size: 24px; font-weight: 700; color: var(--dark); margin: 0 0 16px 0; letter-spacing: -0.02em; }
.vm-text  { font-size: 15px; color: var(--muted); line-height: 1.7; margin: 0; font-weight: 500; }
@media (max-width: 900px) {
  .vm-grid { grid-template-columns: 1fr; gap: 24px; }
  .vm-card { padding: 36px 28px; }
}

.team-section { background: var(--card); padding: 100px 0; }
.team-header { text-align: center; margin-bottom: 64px; }
.team-title { font-size: clamp(36px, 4vw, 56px); font-weight: 400; letter-spacing: -0.03em; margin: 0; color: var(--dark); }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 1000px; margin: 0 auto; }
.team-card {
  background: #fff; border-radius: var(--r-lg);
  padding: 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: var(--shadow); transition: all 0.3s ease;
}
.team-card:hover { transform: translateY(-6px); }
.team-avatar {
  width: 160px; height: 160px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 77, 0.15); margin-bottom: 24px;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-info h3 { font-size: 24px; font-weight: 600; color: var(--dark); margin: 0 0 8px 0; }
.team-role { font-size: 15px; color: #FEB55D; font-weight: 600; margin: 0 0 16px 0; }
.team-bio { font-size: 15px; color: var(--muted); line-height: 1.7; margin: 0; font-weight: 500; }

.cta-section { padding: 100px 0; }
.cta-card {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1a6e 100%);
  border-radius: var(--r-lg); padding: 80px;
  text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(153, 171, 214, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta-title { font-size: clamp(30px, 3.2vw, 46px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 20px 0; position: relative; z-index: 1; }
.cta-text { font-size: 18px; opacity: 0.85; max-width: 520px; margin: 0 auto 36px; line-height: 1.6; position: relative; z-index: 1; }

/* ---------- Projekte ---------- */
.projects-section { padding: 100px 0; background: var(--bg); }
.projects-header { text-align: center; margin-bottom: 64px; }
.projects-intro { max-width: 700px; margin: 0 auto; font-size: 18px; color: var(--muted); line-height: 1.7; }
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.project-card {
  position: relative; border-radius: var(--r-lg);
  overflow: hidden; background: var(--card);
  box-shadow: 0 10px 40px rgba(0, 0, 77, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.project-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 25px 60px rgba(0, 0, 77, 0.15); }
.project-image-wrapper { position: relative; width: 100%; overflow: hidden; }
.project-image { width: 100%; height: auto; display: block; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.project-card:hover .project-image { transform: scale(1.05); }

.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 77, 0.9) 100%);
  opacity: 0; transition: opacity 0.4s ease;
  display: flex; align-items: flex-end; padding: 32px;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay-content { color: #fff; transform: translateY(20px); transition: transform 0.4s ease; }
.project-card:hover .project-overlay-content { transform: translateY(0); }
.project-overlay-title { font-size: 20px; font-weight: 600; margin: 0 0 8px 0; }
.project-overlay-text { font-size: 14px; opacity: 0.85; margin: 0; line-height: 1.5; }
.project-view-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 10px 20px;
  background: #FEB55D; color: var(--dark);
  border-radius: 999px; font-size: 13px; font-weight: 600;
}
.project-view-btn svg { width: 16px; height: 16px; }

.cta-grid-card { background: linear-gradient(135deg, var(--dark) 0%, #1a1a6e 100%); cursor: default; }
.cta-grid-content {
  padding: 48px 32px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; height: 100%; min-height: 400px;
}
.cta-grid-title { font-size: clamp(24px, 2.5vw, 32px); font-weight: 600; color: #fff; letter-spacing: -0.02em; margin: 0 0 16px 0; }
.cta-grid-text { font-size: 15px; color: rgba(255, 255, 255, 0.85); line-height: 1.6; margin: 0 0 28px 0; max-width: 280px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 0, 77, 0.95); z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 40px; opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox-wrapper {
  display: flex; align-items: center; gap: 32px;
  max-width: 95vw; max-height: 90vh;
  animation: lightbox-zoom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes lightbox-zoom { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-image { max-width: 100%; max-height: 85vh; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); }
.lightbox-contact {
  background: rgba(0, 0, 77, 0.85); backdrop-filter: blur(12px);
  padding: 40px; display: flex; flex-direction: column; justify-content: center;
  min-width: 300px; max-width: 350px; border-radius: var(--r-lg); height: fit-content;
}
.lightbox-contact-text { font-size: 18px; font-weight: 500; color: #fff; line-height: 1.6; margin: 0 0 28px 0; }
.lightbox-contact-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #FEB55D; color: var(--dark);
  padding: 16px 32px; border-radius: 999px; font-size: 15px; font-weight: 600;
}
.lightbox-close { position: absolute; top: 24px; right: 24px; background: transparent; border: none; color: #fff; cursor: pointer; padding: 10px; }
.lightbox-close svg { width: 32px; height: 32px; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12); border: none; color: #fff;
  width: 56px; height: 56px; border-radius: 50%;
  cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(10px);
}
.lightbox-nav svg { width: 24px; height: 24px; }
.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

/* ---------- Projekte-Liste (vertikal, große Karten) ---------- */
.projekte-liste-section {
  padding: 80px 0 100px;
  background: var(--bg);
}
.projekte-liste {
  display: grid;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.projekt-listenitem {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: stretch;
  padding: 36px 44px;
  background: var(--card);
  border: 1.5px solid transparent;
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--dark);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.projekt-listenitem::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #FEB55D 0%, var(--dark) 100%);
  opacity: 0;
  transition: opacity .25s ease;
}
.projekt-listenitem:hover {
  transform: translateY(-4px);
  border-color: rgba(254, 181, 93, 0.45);
  box-shadow: 0 22px 52px rgba(0, 0, 77, 0.14);
  background: #fff;
}
.projekt-listenitem:hover::before { opacity: 1; }

.projekt-listenitem__bild {
  width: 100%;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(153, 171, 214, 0.35);
  overflow: hidden;
  display: grid;
  place-items: center;
  align-self: center;
  aspect-ratio: 4 / 3;
}
.projekt-listenitem__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.projekt-listenitem__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  padding: 4px 0;
}
.projekt-listenitem__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.projekt-listenitem__title {
  margin: 0;
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  line-height: 1.15;
}
.projekt-listenitem__text {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 500;
  max-width: 720px;
}

.projekt-listenitem__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: rgba(254, 181, 93, 0.18);
  color: var(--dark);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  align-self: flex-end;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.projekt-listenitem__link svg {
  width: 20px; height: 20px;
  transition: transform .25s ease;
}
.projekt-listenitem:hover .projekt-listenitem__link {
  background: linear-gradient(135deg, #FEB55D 0%, #ffc878 100%);
  box-shadow: 0 12px 28px rgba(254, 181, 93, 0.4);
}
.projekt-listenitem:hover .projekt-listenitem__link svg {
  transform: translateX(5px);
}

@media (max-width: 900px) {
  .projekt-listenitem {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 28px;
    min-height: 0;
  }
  .projekt-listenitem__bild { aspect-ratio: 16 / 10; max-width: 100%; }
  .projekt-listenitem__title { font-size: 26px; }
  .projekt-listenitem__text  { font-size: 15px; }
  .projekt-listenitem__link  { align-self: flex-start; }
}

/* ---------- Projekte-CTA (im Listen-Stil) ---------- */
.projekte-cta-section {
  padding: 0 0 100px;
  background: var(--bg);
}
.projekt-cta-item {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: stretch;
  padding: 36px 44px;
  background: linear-gradient(135deg, var(--dark) 0%, #1a1a6e 100%);
  border: 1.5px solid transparent;
  border-radius: var(--r-lg);
  text-decoration: none;
  color: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
  min-height: 240px;
  max-width: 1200px;
  margin: 0 auto;
}
.projekt-cta-item::after {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 60%; height: 220%;
  background: radial-gradient(ellipse, rgba(254, 181, 93, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.projekt-cta-item:hover {
  transform: translateY(-4px);
  border-color: rgba(254, 181, 93, 0.45);
  box-shadow: 0 28px 60px rgba(0, 0, 77, 0.35);
}

.projekt-cta-item__icon {
  width: 100%;
  border-radius: 22px;
  background: rgba(254, 181, 93, 0.10);
  border: 1.5px dashed rgba(254, 181, 93, 0.45);
  display: grid;
  place-items: center;
  align-self: center;
  aspect-ratio: 4 / 3;
  color: #FEB55D;
  position: relative;
  z-index: 1;
}
.projekt-cta-item__icon svg {
  width: 92px; height: 92px;
}

.projekt-cta-item__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  padding: 4px 0;
  position: relative;
  z-index: 1;
}
.projekt-cta-item__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.projekt-cta-item__kicker {
  display: inline-block;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(254, 181, 93, 0.18);
  color: #FEB55D;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.projekt-cta-item__title {
  margin: 0;
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
}
.projekt-cta-item__text {
  margin: 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  font-weight: 500;
  max-width: 720px;
}

.projekt-cta-item__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FEB55D 0%, #ffc878 100%);
  color: var(--dark);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  align-self: flex-end;
  box-shadow: 0 12px 30px rgba(254, 181, 93, 0.4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.projekt-cta-item__link svg {
  width: 20px; height: 20px;
  transition: transform .25s ease;
}
.projekt-cta-item:hover .projekt-cta-item__link {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(254, 181, 93, 0.55);
}
.projekt-cta-item:hover .projekt-cta-item__link svg {
  transform: translateX(5px);
}

@media (max-width: 900px) {
  .projekt-cta-item {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 28px;
    min-height: 0;
  }
  .projekt-cta-item__icon { aspect-ratio: 16 / 9; }
  .projekt-cta-item__icon svg { width: 64px; height: 64px; }
  .projekt-cta-item__title { font-size: 26px; }
  .projekt-cta-item__text  { font-size: 15px; }
  .projekt-cta-item__link  { align-self: flex-start; }
}

/* ---------- Projekt-Detailseite ---------- */
.projekt-detail {
  max-width: 900px;
  padding: 40px 0 80px;
}
.projekt-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color .2s ease;
}
.projekt-detail__back svg { width: 18px; height: 18px; }
.projekt-detail__back:hover { color: #FEB55D; }
.projekt-detail__bild {
  margin: 0 0 40px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 77, 0.18);
}
.projekt-detail__bild img {
  width: 100%; height: auto; display: block;
}
.projekt-detail__content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--dark);
}
.projekt-detail__content h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  color: var(--dark);
}
.projekt-detail__content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}
.projekt-detail__content p { margin: 0 0 18px; color: var(--muted); }
.projekt-detail__content ul,
.projekt-detail__content ol { margin: 0 0 18px 24px; color: var(--muted); }
.projekt-detail__content li { margin-bottom: 8px; }

.projekt-detail__cta {
  margin-top: 60px;
  padding: 40px;
  background: var(--card);
  border-radius: var(--r-lg);
  text-align: center;
}
.projekt-detail__cta p {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
}
.projekt-detail__flyer {
  margin-top: 36px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(254, 181, 93, 0.12) 0%, rgba(254, 181, 93, 0.04) 100%);
  border: 1px dashed rgba(254, 181, 93, 0.5);
  border-radius: var(--r-md);
  text-align: center;
}
.projekt-detail__flyer .btn-orange svg { width: 20px; height: 20px; }

/* ---------- Kontakt-Info-Block (eigenständiger Block) ---------- */
.kontakt-info-section { padding: 60px 0; background: var(--bg); }
.kontakt-info-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}
.kontakt-info-map {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 77, 0.12);
  min-height: 460px;
  border: 1px solid rgba(153, 171, 214, 0.25);
}
.kontakt-info-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
}
@media (max-width: 900px) {
  .kontakt-info-grid { grid-template-columns: 1fr; gap: 24px; }
  .kontakt-info-map, .kontakt-info-map iframe { min-height: 320px; }
}

/* ---------- Kontakt-Seite: WPForms & Standardblöcke auf Container-Breite ---------- */
.page-template-page-kontakt .wpforms-container,
.page-template-page-kontakt main > .wp-block-heading,
.page-template-page-kontakt main > .wp-block-paragraph,
.page-template-page-kontakt main > p,
.page-template-page-kontakt main > h1,
.page-template-page-kontakt main > h2,
.page-template-page-kontakt main > h3 {
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin-left: auto;
  margin-right: auto;
}
.page-template-page-kontakt .wpforms-container {
  margin-top: 24px;
  margin-bottom: 80px;
}
.page-template-page-kontakt .wpforms-container .wpforms-field-row,
.page-template-page-kontakt .wpforms-container .wpforms-field {
  max-width: 100%;
}

/* ---------- Kontakt-Seite (alte Templates – noch genutzt) ---------- */
.contact-section { padding: 80px 0 100px; background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.contact-info-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(230, 235, 245, 0.9) 100%);
  border-radius: var(--r-lg); padding: 48px; height: fit-content;
  border: 1px solid rgba(153, 171, 214, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 77, 0.08);
  position: relative; overflow: hidden;
}
.contact-info-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #FEB55D, var(--accent), #FEB55D);
  background-size: 200% 100%;
  animation: gradientSlide 3s ease-in-out infinite;
}
@keyframes gradientSlide { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.contact-info-title { font-size: 28px; font-weight: 700; margin: 0 0 32px 0; color: var(--dark); display: flex; align-items: center; gap: 12px; }
.contact-info-title::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--line), transparent); }

.contact-info-item {
  display: flex; align-items: flex-start; gap: 20px;
  margin-bottom: 24px; padding: 20px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.6); border: 1px solid transparent;
  transition: all 0.3s ease;
}
.contact-info-item:hover { background: #fff; border-color: rgba(254, 181, 93, 0.3); transform: translateX(8px); box-shadow: 0 8px 24px rgba(0, 0, 77, 0.08); }
.contact-info-icon-wrapper {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #FEB55D, #ffcc85);
  border-radius: 14px; display: grid; place-items: center;
  flex-shrink: 0; box-shadow: 0 8px 20px rgba(254, 181, 93, 0.3);
}
.contact-info-icon { width: 24px; height: 24px; color: var(--dark); }
.contact-info-content { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.contact-info-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.contact-info-value { font-size: 17px; color: var(--dark); font-weight: 600; }
.contact-info-value a { color: var(--dark); }
.contact-info-value a:hover { color: #FEB55D; }

.hours-section { margin-top: 40px; padding-top: 32px; border-top: 2px solid rgba(153, 171, 214, 0.2); }
.hours-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.hours-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--accent), rgba(153, 171, 214, 0.6)); border-radius: 10px; display: grid; place-items: center; }
.hours-icon svg { width: 20px; height: 20px; color: var(--dark); }
.hours-title { font-size: 18px; font-weight: 700; margin: 0; color: var(--dark); }
.hours-grid { display: grid; gap: 12px; }
.hours-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; padding: 12px 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.5); }
.hours-day { color: var(--dark); font-weight: 600; }
.hours-time { color: var(--dark); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.hours-time::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #4CAF50; }
.hours-time.closed { color: #c62828; }
.hours-time.closed::before { background: #c62828; }

.contact-form-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(230, 235, 245, 0.95) 100%);
  border-radius: var(--r-lg); padding: 56px;
  border: 1px solid rgba(153, 171, 214, 0.2);
  box-shadow: 0 25px 70px rgba(0, 0, 77, 0.1);
  position: relative; overflow: hidden;
}
.form-header { margin-bottom: 40px; }
.form-title { font-size: 32px; font-weight: 700; margin: 0 0 12px 0; color: var(--dark); }
.form-subtitle { font-size: 16px; color: var(--muted); margin: 0; font-weight: 500; line-height: 1.6; }

.is-form p, .wpcf7 p { margin: 0 0 20px; }
.is-form label,
.wpcf7-form label {
  display: block; font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 8px;
}
.is-form input[type="text"],
.is-form input[type="email"],
.is-form input[type="tel"],
.is-form textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 16px 22px;
  border: 2px solid rgba(153, 171, 214, 0.3);
  border-radius: 14px;
  font-size: 16px; font-weight: 500;
  color: var(--dark); background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}
.is-form textarea,
.wpcf7-form textarea { min-height: 160px; resize: vertical; }
.is-form input:focus,
.is-form textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none; border-color: #FEB55D; background: #fff;
  box-shadow: 0 0 0 4px rgba(254, 181, 93, 0.15);
}
.is-form input[type="submit"],
.wpcf7-form input[type="submit"] {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 42px;
  background: linear-gradient(135deg, #FEB55D 0%, #ffcc85 100%);
  color: var(--dark); border: none; border-radius: 14px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; box-shadow: 0 8px 24px rgba(254, 181, 93, 0.35);
  transition: all 0.3s ease;
}
.is-form input[type="submit"]:hover,
.wpcf7-form input[type="submit"]:hover {
  transform: translateY(-3px); box-shadow: 0 16px 40px rgba(254, 181, 93, 0.45);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 20px; }

/* ---------- Impressum / Datenschutz ---------- */
.legal-section { padding: 160px 0 80px; }
.legal-card {
  max-width: 860px; margin: 0 auto;
  background: var(--card); border-radius: var(--r-lg);
  padding: 56px;
}
.legal-title {
  font-size: 42px; font-weight: 400; letter-spacing: -0.02em;
  margin: 0 0 40px 0; color: var(--dark);
}
.legal-card h2 {
  font-size: 18px; font-weight: 600; color: var(--dark);
  margin: 32px 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--line);
}
.legal-card p, .legal-card li {
  font-size: 15px; color: var(--muted); line-height: 1.75; font-weight: 500;
}
.legal-card a { color: var(--dark); text-decoration: underline; }
.legal-card strong { color: var(--dark); font-weight: 700; }

.agb-download-btn {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 8px; padding: 14px 28px;
  background: var(--dark); color: #fff !important;
  border-radius: 999px; font-size: 14px; font-weight: 600;
  text-decoration: none !important;
  transition: all .25s ease;
}
.agb-download-btn:hover { background: #000066; transform: translateY(-2px); }
.agb-download-btn svg { width: 18px; height: 18px; }

/* ---------- Responsive-Ergänzungen ---------- */
@media (max-width: 1100px) {
  .vision-grid, .timeline, .team-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid  { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 700px) {
  .values-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .subpage-hero { padding: 150px 0 70px; }
  .legal-card, .contact-info-card, .contact-form-section { padding: 32px 22px; }
  .legal-title { font-size: 32px; }
  .nav-link-pill { padding: 10px 20px; font-size: 14px; }
  .nav-right { gap: 12px; }
  .hero-buttons { flex-direction: column; align-items: flex-start; width: 100%; }
  .btn-hero-kontakt, .btn-hero-cta { width: 100%; justify-content: space-between; }
  .lightbox-prev { left: 10px; } .lightbox-next { right: 10px; }
}
