/* ============================================================
   Bauspielplatz Ost — "Verspielt & bunt" Redesign
   ------------------------------------------------------------
   Idee: Die Seite gehört zu einem Ort, an dem Kinder mit Hammer,
   Säge und Farbe eigene Hütten bauen und Feste mit Wimpelketten
   feiern (Herbstfest, Frühlingsfest, Halloween...). Genau dieses
   Wimpelketten-Motiv ist das wiederkehrende Signature-Element
   zwischen den Abschnitten. Die Foto- und News-Karten sehen aus
   wie an eine Pinnwand gepinnte Polaroids, der Hintergrund hat
   eine dezente Lochwand-Textur wie in einer Werkstatt.
   ============================================================ */

:root {
  /* Farben */
  --paper:      #FDF6E8;   /* warmes Papier/Hintergrund */
  --ink:        #2B2118;   /* Text, sehr dunkles Holzbraun */
  --wood:       #B8703E;   /* Haupt-Markenfarbe: Holz */
  --wood-dark:  #8C5027;
  --leaf:       #5C9A3B;   /* Akzent: Grün */
  --sun:        #F4B41A;   /* Akzent: Gelb */
  --poppy:      #E6543F;   /* Akzent: Rot/Orange */
  --sky:        #3FA9D1;   /* Akzent: Blau */
  --cream-card: #FFFFFB;

  /* Typografie */
  --font-display: 'Baloo 2', 'Comic Sans MS', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', cursive;

  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-card: 0 8px 20px -8px rgba(43, 33, 24, 0.24);
  --content-max: 920px;
}

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

/* ---------- Grundlagen ---------- */

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(184,112,62,0.16) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: var(--poppy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover, a:focus-visible { color: var(--wood-dark); }

*:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

.hintergrund { overflow-x: hidden; }

.container.content {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.container.content > div:first-child {
  text-align: center;
}

.container.content .welcome {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.abschnitt > .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Navigation ---------- */

.sub-menu {
  background: var(--wood);
  border-radius: 999px;
  margin: 14px auto;
  padding: 6px;
  max-width: fit-content;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sub-menu.stick-to-top {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  box-shadow: 0 14px 28px -6px rgba(43,33,24,0.45);
}

#sub-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

#sub-menu li a.scrollLink {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.14);
  padding: 6px 12px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}

#sub-menu li:nth-child(1) a.scrollLink:hover { background: var(--poppy); }
#sub-menu li:nth-child(2) a.scrollLink:hover { background: var(--sky); }
#sub-menu li:nth-child(3) a.scrollLink:hover { background: var(--sun); color: var(--ink); }
#sub-menu li:nth-child(4) a.scrollLink:hover { background: var(--leaf); }
#sub-menu li:nth-child(5) a.scrollLink:hover { background: var(--poppy); }
#sub-menu li:nth-child(6) a.scrollLink:hover { background: var(--sky); }
#sub-menu li:nth-child(7) a.scrollLink:hover { background: var(--sun); color: var(--ink); }
#sub-menu li:nth-child(8) a.scrollLink:hover { background: var(--leaf); }

#sub-menu li a.scrollLink:hover,
#sub-menu li a.scrollLink:focus-visible {
  transform: translateY(-2px) scale(1.05);
}

.menu-icon { font-size: 16px; }

/* ---------- Willkommensbild ---------- */

.welcome {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin: 10px 0 28px;
}

/* ---------- Wimpelketten-Trenner (Signature-Element) ---------- */

.abschnitt {
  position: relative;
  padding-top: 46px;
}

.abschnitt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background-repeat: repeat-x;
  background-position: center top;
  background-size: 160px 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='40' viewBox='0 0 160 40'%3E%3Cline x1='0' y1='3' x2='160' y2='3' stroke='%232B2118' stroke-width='2'/%3E%3Cpolygon points='5,5 25,5 15,30' fill='%23E6543F'/%3E%3Cpolygon points='45,5 65,5 55,30' fill='%23F4B41A'/%3E%3Cpolygon points='85,5 105,5 95,30' fill='%233FA9D1'/%3E%3Cpolygon points='125,5 145,5 135,30' fill='%235C9A3B'/%3E%3C/svg%3E");
  opacity: 0.9;
}

.abschnitt:first-of-type::before { content: none; }

/* ---------- Abschnitts-Karten ---------- */

.abschnitt > .row > div[class*="col-md-10"],
.abschnitt > .row > div[class*="col-md-11"],
.abschnitt > .row > div[class*="col-md-8"],
.abschnitt > .row > div[class*="col-md-7"] {
  background: var(--cream-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  margin: 8px 0 22px;
  float: none;
  margin-left: auto;
  margin-right: auto;
}

.abschnitt:nth-of-type(odd) > .row > div[class*="col-md-10"],
.abschnitt:nth-of-type(odd) > .row > div[class*="col-md-11"] {
  transform: rotate(-0.4deg);
}
.abschnitt:nth-of-type(even) > .row > div[class*="col-md-10"],
.abschnitt:nth-of-type(even) > .row > div[class*="col-md-11"] {
  transform: rotate(0.4deg);
}

.abschnitt > .row > div[class*="col-md-10"] p,
.abschnitt > .row > div[class*="col-md-10"] ul,
.abschnitt > .row > div[class*="col-md-8"] p,
.abschnitt > .row > div[class*="col-md-8"] ul,
.abschnitt > .row > div[class*="col-md-7"] p,
.abschnitt > .row > div[class*="col-md-7"] ul {
  text-align: center;
}

.abschnitt > .row > div[class*="col-md-10"] ul,
.abschnitt > .row > div[class*="col-md-8"] ul {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}

#news .news,
.abschnitt .row > div[class*="col-md-7"] .news {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767px) {
  .abschnitt > .row > div[class*="col-md-10"],
  .abschnitt > .row > div[class*="col-md-11"],
  .abschnitt > .row > div[class*="col-md-8"],
  .abschnitt > .row > div[class*="col-md-7"] {
    transform: none;
    padding: 20px 16px;
  }
}

/* ---------- Überschriften ---------- */

.section-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--wood-dark);
  display: block;
  text-align: center;
  margin: 0 auto 14px;
  position: relative;
  transform: rotate(-0.5deg);
}

.section-heading::after {
  content: "";
  display: block;
  height: 7px;
  margin: 2px auto 0;
  border-radius: 6px;
  background: var(--sun);
  width: 50%;
}

.abschnitt:nth-of-type(3n+2) .section-heading::after { background: var(--leaf); }
.abschnitt:nth-of-type(3n+3) .section-heading::after { background: var(--sky); }

.section-heading--small {
  font-size: 18px;
  transform: none;
}
.section-heading--small::after { height: 5px; width: 35%; }

h3 { font-family: var(--font-display); color: var(--wood-dark); }

/* ---------- Fragen / Kontakt-Box ---------- */

.kontakt {
  background: var(--sun);
  border: 3px dashed var(--ink);
  border-radius: var(--radius-md);
  padding: 20px;
  transform: rotate(1deg);
  box-shadow: var(--shadow-card);
}
.kontakt .section-heading { color: var(--ink); }
.kontakt .section-heading::after { background: #fff; }
.kontakt a { display: inline-block; margin-top: 6px; }
.kontakt .igel { transform: none; }

/* ---------- Maskottchen (Igel) ---------- */

.igel img {
  filter: drop-shadow(0 8px 10px rgba(43,33,24,0.25));
  transition: transform 0.25s ease;
}
.igel img:hover { transform: scale(1.06) rotate(-3deg); }

/* ---------- News- / Flyer-Karten ---------- */

.news {
  background: var(--cream-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 0 auto 18px;
  max-width: 320px;
  box-shadow: var(--shadow-card);
  position: relative;
  text-align: center;
}
.news:nth-of-type(odd) { transform: rotate(-1.2deg); }
.news:nth-of-type(even) { transform: rotate(1.2deg); }
.news::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 60px;
  height: 20px;
  background: rgba(244,180,26,0.85);
  border: 1px solid rgba(43,33,24,0.2);
}
.news h2 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--wood-dark);
  margin-top: 4px;
}
.news img {
  border-radius: 6px;
  max-width: 100%;
}

/* ---------- Flyer-Archiv ---------- */

.flyer-archiv {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 16px 14px;
  justify-items: center;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.flyer-archiv > h2 {
  grid-column: 1 / -1;
}

.flyer-archiv > h2:not(.section-heading) {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--wood-dark);
  margin: 20px 0 4px;
  padding-top: 10px;
  border-top: 2px dashed rgba(184,112,62,0.35);
}

.flyer-archiv > h2:not(.section-heading):first-of-type {
  border-top: none;
  margin-top: 0;
}

.flyer-item {
  width: 100%;
  max-width: 180px;
  margin: 0;
}

.flyer-item h3 {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--wood-dark);
  margin: 0 0 8px;
}

.flyer-item img {
  border-radius: 6px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-card);
  max-width: 100%;
  margin: 0 auto;
}

/* 2025: sehr klein, alle in einer Reihe */
.flyer-row {
  grid-column: 1 / -1;
}

.flyer-row--2025 {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.flyer-row--2025 .flyer-item {
  flex: 0 0 82px;
  width: 82px;
  max-width: 82px;
}

.flyer-row--2025 .flyer-item h3 {
  font-size: 8px;
  line-height: 1.15;
  margin: 0 0 3px;
  hyphens: auto;
}

.flyer-row--2025 .flyer-item img {
  border-width: 1px;
  border-radius: 4px;
  box-shadow: 0 3px 8px -4px rgba(43,33,24,0.35);
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  justify-items: center;
}

.teampic {
  background: var(--cream-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 10px;
  margin: 0;
  width: 100%;
  max-width: 190px;
  box-shadow: var(--shadow-card);
  text-align: center;
  float: none;
}
.teampic:nth-child(3n+1) { transform: rotate(-1.5deg); }
.teampic:nth-child(3n+2) { transform: rotate(1deg); }
.teampic:nth-child(3n+3) { transform: rotate(-0.8deg); }
.teampic img { border-radius: 8px; }
.teampic h3 {
  font-family: var(--font-hand);
  font-size: 16px;
  font-weight: 700;
  color: var(--poppy);
  margin: 6px 0 0;
}

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

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

/* ---------- Selbstverständnis / Downloads ---------- */

.link {
  text-align: center;
  padding: 10px;
}
.link a {
  display: block;
  background: var(--sky);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.link a:hover {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ink);
}

/* ---------- Partner ---------- */

ul li.partner { list-style: none; margin-bottom: 10px; }
ul li.partner a {
  display: inline-block;
  background: var(--leaf);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}
ul li.partner a:hover { background: var(--wood-dark); }

.partner-logo {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 14px;
  filter: grayscale(65%);
  transition: filter 0.2s ease, transform 0.2s ease;
}
.partner-logo:hover {
  filter: grayscale(0%);
  transform: translateY(-3px);
}

.footer {
  margin: 20px auto 0;
  padding: 18px 10px;
  background: var(--wood);
  border-radius: var(--radius-lg);
  max-width: var(--content-max);
  text-align: center;
}

.footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.footer .partner-logo {
  max-width: 120px;
  margin: 0 auto;
}

/* ---------- Fotogalerie ---------- */

.column {
  padding: 8px;
}
.column img {
  border: 6px solid #fff;
  border-radius: 4px;
  box-shadow: 0 6px 14px -4px rgba(43,33,24,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.column:nth-child(3n+1) img { transform: rotate(-2deg); }
.column:nth-child(3n+2) img { transform: rotate(1.5deg); }
.column:nth-child(3n+3) img { transform: rotate(-1deg); }
.column img:hover {
  transform: scale(1.06) rotate(0deg);
  box-shadow: 0 12px 22px -6px rgba(43,33,24,0.5);
  position: relative;
  z-index: 2;
}

.modal { background: rgba(43,33,24,0.92); }
.modal-content .mySlides img {
  border-radius: var(--radius-md);
  border: 6px solid #fff;
}
.modal .close {
  background: var(--poppy);
  color: #fff !important;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.modal .prev,
.modal .next {
  background: var(--sun);
  color: var(--ink) !important;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ---------- iframe (YouTube) ---------- */

iframe {
  border-radius: var(--radius-md);
  border: 3px solid var(--ink);
  max-width: 100%;
}

/* ---------- Handschrift-Akzente ---------- */

.abschnitt p:last-of-type strong,
.kontakt p {
  font-family: var(--font-hand);
}
