/* ============================================================
   Bauspielplatz Ost — Redesign 2026
   Dunkles Blaugrau-Design mit teal Akzenten und orangem CTA
   ============================================================ */

:root {
  --bg:           #3d5a6b;   /* dunkles Blaugrau Hintergrund */
  --bg-dark:      #2e4452;   /* noch dunkler für Footer/Header */
  --surface:      #334e5e;   /* Karten-Hintergrund */
  --surface-light:#ffffff;   /* helle Karten (Angebote) */
  --teal:         #3ecfcf;   /* Akzentfarbe teal (Badges, Links) */
  --teal-dark:    #2aabab;
  --orange:       #f5a623;   /* CTA-Buttons */
  --orange-dark:  #d4881a;
  --ink:          #ffffff;
  --ink-soft:     rgba(255,255,255,0.75);
  --ink-dark:     #1a2e38;   /* Text auf hellen Flächen */
  --stripe:       #f5a623;   /* orangener Streifen unter Header */
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 2px 8px rgba(0,0,0,0.25);
  --font-hand:    'Caveat', cursive;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

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

body.bsp-redesign {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.6;
}

body.bsp-redesign a {
  color: var(--teal);
  text-decoration: none;
}
body.bsp-redesign a:hover { text-decoration: underline; }

body.bsp-redesign img { max-width: 100%; height: auto; display: block; }

/* ── Header ──────────────────────────────────────────────── */
.bsp-header {
  background: var(--bg-dark);
  padding: 0;
  position: relative;
  z-index: 999;
}

.bsp-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.bsp-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bsp-header__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.bsp-header__title {
  display: block;
  font-family: var(--font-hand);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  white-space: nowrap;
}

.bsp-header__sub {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.bsp-nav {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.bsp-nav__link {
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  opacity: 1 !important;
}
.bsp-nav__link:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

.bsp-header__stripe {
  height: 4px;
  background: var(--stripe);
}

/* ── Hero ────────────────────────────────────────────────── */
.bsp-hero {
  background: var(--bg-dark);
  padding: 40px 24px 0;
}

.bsp-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
}

.bsp-hero__text { flex: 1 1 340px; padding-bottom: 32px; text-align: center; }

.bsp-hero__title {
  font-family: var(--font-hand);
  font-size: clamp(80px, 12vw, 140px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.0;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.bsp-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.bsp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
}

.bsp-badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bsp-badge__dot--gray   { background: #9ca3af; }
.bsp-badge__dot--red    { background: #ef4444; }
.bsp-badge__dot--green  { background: #22c55e; }
.bsp-badge__dot--yellow { background: #eab308; }

.bsp-hero__img {
  flex: 0 0 auto;
  max-width: 360px;
  align-self: flex-end;
}
.bsp-hero__img img {
  max-height: 320px;
  object-fit: contain;
  object-position: bottom;
}

@media (max-width: 700px) {
  .bsp-hero__inner { flex-direction: column; align-items: flex-start; }
  .bsp-hero__img { display: none; }
}

/* ── Haupt-Layout ────────────────────────────────────────── */
.bsp-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .bsp-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Sidebar ─────────────────────────────────────────────── */
.bsp-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 860px) {
  .bsp-sidebar { position: static; }
}

/* ── Karte (Sidebar) ─────────────────────────────────────── */
.bsp-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.bsp-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
}

.bsp-card__mascot {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.bsp-card__title {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--orange);
  margin: 0;
  line-height: 1.2;
}

.bsp-card__title--spenden {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--orange);
  margin: 0 0 10px;
}

.bsp-card__note {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 12px;
  line-height: 1.5;
}

/* Öffnungszeiten Zeile */
.bsp-oeffnung__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-dark);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 12px;
}

.bsp-oeffnung__days {
  font-size: 14px;
  color: var(--ink-soft);
}

.bsp-oeffnung__time {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

/* Button */
.bsp-btn {
  display: inline-block;
  background: var(--orange);
  color: var(--ink-dark) !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.bsp-btn:hover { background: var(--orange-dark); text-decoration: none !important; }

/* ── Termine-Liste ───────────────────────────────────────── */
.bsp-termine {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bsp-termin {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bsp-termin:last-child { border-bottom: none; }

.bsp-termin__badge {
  background: var(--teal);
  color: var(--ink-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 48px;
  text-align: center;
}

.bsp-termin__info {
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}
.bsp-termin__info strong { color: var(--ink); }

.bsp-termin__icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* ── Social Links ────────────────────────────────────────── */
.bsp-social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: white !important;
  text-decoration: none !important;
  margin-bottom: 6px;
  transition: opacity 0.15s;
}
.bsp-social:hover { opacity: 0.88; text-decoration: none !important; }
.bsp-social svg { width: 18px; height: 18px; flex-shrink: 0; }

.bsp-social--fb    { background: #1877f2; }
.bsp-social--ig    { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.bsp-social--yt    { background: #ff0000; }
.bsp-social--maps  { background: #34a853; }

.bsp-kontakt-mini {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.bsp-kontakt-mini__img {
  width: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
.bsp-kontakt-mini p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ── Hauptinhalt Sektionen ───────────────────────────────── */
.bsp-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.bsp-section { min-width: 0; }

.bsp-section__title {
  font-family: var(--font-hand);
  font-size: 32px;
  color: var(--ink);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bsp-section__title--plain {
  font-family: var(--font-hand);
  font-size: 32px;
  color: var(--ink);
  margin: 0 0 16px;
}

.bsp-section__mascot {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* ── News-Poster-Reihe ───────────────────────────────────── */
.bsp-news-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.bsp-news-item {
  flex: 1 1 160px;
  max-width: 200px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 12px;
}

.bsp-news-item__img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.bsp-news-item__label {
  font-size: 12px;
  color: var(--ink-soft);
  display: block;
}

/* ── Angebote-Grid ───────────────────────────────────────── */
.bsp-angebote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .bsp-angebote-grid { grid-template-columns: repeat(2, 1fr); }
}

.bsp-angebot {
  background: var(--surface-light);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}

.bsp-angebot__icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}

.bsp-angebot__title {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--ink-dark);
  margin: 0 0 6px;
}

.bsp-angebot p {
  font-size: 13px;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

/* ── Text-Karte (Über uns, Video) ────────────────────────── */
.bsp-text-card {
  background: var(--surface-light);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  color: var(--ink-dark);
}

.bsp-text-card p {
  color: #374151;
  margin: 0 0 14px;
  line-height: 1.7;
}

.bsp-text-card p:last-child { margin-bottom: 0; }

.bsp-text-card__sub {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin: 24px 0 8px;
}

.bsp-downloads {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bsp-downloads li a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  color: #1d4ed8;
  text-decoration: none;
}
.bsp-downloads li:last-child a { border-bottom: none; }
.bsp-downloads li a:hover { text-decoration: underline; }

/* ── Video ───────────────────────────────────────────────── */
.bsp-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-top: 12px;
}
.bsp-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  border-radius: var(--radius-sm);
}

/* ── Team-Grid ───────────────────────────────────────────── */
.bsp-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 540px) {
  .bsp-team-grid { grid-template-columns: repeat(2, 1fr); }
}

.bsp-team-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 14px;
}

.bsp-team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
}

.bsp-team-card__name {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--ink);
  margin-top: 10px;
  padding: 0 12px;
  text-align: center;
}

.bsp-team-card__role {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  padding: 0 12px;
  margin-top: 4px;
}

/* ── Partner Pills ───────────────────────────────────────── */
.bsp-partner-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.bsp-partner-pill {
  display: inline-block;
  background: var(--surface-light);
  color: var(--ink-dark) !important;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.2);
  text-decoration: none !important;
  transition: background 0.15s;
}
.bsp-partner-pill:hover {
  background: var(--teal);
  color: var(--ink-dark) !important;
  text-decoration: none !important;
}

/* ── Flyer-Archiv ────────────────────────────────────────── */
.bsp-flyer-year {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--teal);
  margin: 20px 0 10px;
}

.bsp-flyer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.bsp-flyer-item {
  flex: 0 1 150px;
  background: #f5f0e0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 8px;
}

.bsp-flyer-item img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 6px;
}

.bsp-flyer-item span {
  font-size: 11px;
  color: #4b5563;
  display: block;
  line-height: 1.4;
}

/* ── Galerie ─────────────────────────────────────────────── */
.bsp-galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-radius: var(--radius);
  overflow: hidden;
}

.bsp-galerie-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
  transition: transform 0.2s;
}
.bsp-galerie-grid img:hover { transform: scale(1.03); }

@media (max-width: 540px) {
  .bsp-galerie-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Footer ──────────────────────────────────────────────── */
.bsp-footer {
  background: var(--bg-dark);
  border-top: 4px solid var(--stripe);
  padding: 40px 24px 32px;
  text-align: center;
}

.bsp-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.bsp-footer__logo {
  width: 44px;
  object-fit: contain;
}

.bsp-footer__name {
  display: block;
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--ink);
}

.bsp-footer__träger {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
}

.bsp-footer__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 20px 0 12px;
}

.bsp-footer__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.bsp-footer__logos img {
  max-height: 50px;
  max-width: 110px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.6);
  opacity: 0.75;
}

.bsp-footer__funder-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.bsp-funder-pill {
  background: rgba(255,255,255,0.1);
  color: var(--ink-soft);
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
}

.bsp-footer__email a {
  color: var(--ink-soft);
  font-size: 14px;
}
.bsp-footer__email a:hover { color: var(--teal); }

/* ── Hero Igel 3D schwebend ──────────────────────────────── */
.bsp-hero__title-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.bsp-hero__igel-3d {
  position: absolute;
  right: -120px;
  top: -60px;
  width: 200px;
  height: 200px;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
  animation: igel-float 3.5s ease-in-out infinite;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.4)) drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

@keyframes igel-float {
  0%   { transform: translateY(0px)   rotateY(0deg)   scale(1);    }
  25%  { transform: translateY(-12px) rotateY(8deg)   scale(1.04); }
  50%  { transform: translateY(-20px) rotateY(0deg)   scale(1.06); }
  75%  { transform: translateY(-10px) rotateY(-8deg)  scale(1.04); }
  100% { transform: translateY(0px)   rotateY(0deg)   scale(1);    }
}

.bsp-hero__title {
  position: relative;
  z-index: 1;
}

/* ── Hero: Igel zentriert hinter Titel ───────────────────── */
.bsp-hero__title-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.bsp-hero__igel-3d {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -60%);
  width: 220px;
  height: 220px;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  animation: igel-float 3.5s ease-in-out infinite;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.35));
}

@keyframes igel-float {
  0%   { transform: translate(-50%, -60%) translateY(0px)   rotateY(0deg)  scale(1);    }
  25%  { transform: translate(-50%, -60%) translateY(-12px) rotateY(8deg)  scale(1.04); }
  50%  { transform: translate(-50%, -60%) translateY(-20px) rotateY(0deg)  scale(1.06); }
  75%  { transform: translate(-50%, -60%) translateY(-10px) rotateY(-8deg) scale(1.04); }
  100% { transform: translate(-50%, -60%) translateY(0px)   rotateY(0deg)  scale(1);    }
}

.bsp-hero__title {
  position: relative;
  z-index: 1;
}

/* ── Galerie klickbar ────────────────────────────────────── */
.bsp-galerie-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.bsp-galerie-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.bsp-galerie-item:hover img,
.bsp-galerie-item:focus img { transform: scale(1.06); }

.bsp-galerie-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.bsp-galerie-item__overlay svg {
  width: 32px; height: 32px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.bsp-galerie-item:hover .bsp-galerie-item__overlay,
.bsp-galerie-item:focus .bsp-galerie-item__overlay { background: rgba(0,0,0,0.4); }
.bsp-galerie-item:hover .bsp-galerie-item__overlay svg,
.bsp-galerie-item:focus .bsp-galerie-item__overlay svg { opacity: 1; }

/* ── Lightbox ────────────────────────────────────────────── */
.bsp-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bsp-lightbox[hidden] { display: none; }

.bsp-lightbox__img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bsp-lightbox__img-wrap img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  display: block;
}

.bsp-lightbox__close {
  position: fixed;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: background 0.15s;
}
.bsp-lightbox__close:hover { background: rgba(255,255,255,0.3); }

.bsp-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  border-radius: 50%;
  width: 52px; height: 52px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: background 0.15s;
}
.bsp-lightbox__nav:hover { background: rgba(255,255,255,0.3); }
.bsp-lightbox__nav--prev { left: 16px; }
.bsp-lightbox__nav--next { right: 16px; }

.bsp-lightbox__counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  background: rgba(0,0,0,0.4);
  padding: 4px 14px;
  border-radius: 999px;
}
