
/* =========================================================
   Kinderbörse Schülldorf – Theme CSS
   Zusammengeführt aus site.css und custom.css
   Stand: 2026-06
   ========================================================= */

/* =========================================================
   01. Design Tokens / Variablen
   ========================================================= */

:root {
  color-scheme: light;

  /* Schrift */
  font-family: Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --page-width: 1100px;
  --wrap-width: 1180px;
  --page-x: 18px;
  --radius: 18px;
  --pill: 999px;

  /* Farben */
  --bg: #edf7fc;
  --text: #20242c;
  --muted: #647189;
  --surface: rgba(255,255,255,.88);
  --surface-strong: rgba(255,255,255,.96);
  --surface-soft: rgba(246,250,253,.88);
  --chip: rgba(241,248,252,.96);
  --card-bg: rgba(255,255,255,.82);

  --border: rgba(86,51,116,.16);
  --border-strong: rgba(86,51,116,.26);

  --primary: #a81fc0;
  --primary-2: #d61586;
  --primary-text: #fff;
  --secondary: rgba(255,255,255,.94);
  --secondary-text: #50116d;

  --purple: #7b1fa2;
  --cyan: #00aec5;
  --magenta: #c218a8;
  --scan: #0aa99d;
  --scan-2: #08aeea;
  --ok: #78bf3d;
  --warn: #ffbf2f;
  --danger: #d23b6a;

  /* Schatten */
  --shadow: 0 16px 42px rgba(40,35,60,.11);
  --shadow-soft: 0 14px 36px rgba(40,70,110,.10);
  --shadow-strong: 0 24px 70px rgba(40,70,110,.16);
  --shadow-small: 0 8px 24px rgba(40,35,60,.08);
}

html.dark-mode {
  color-scheme: dark;

  --bg: #11101a;
  --text: #f6f1fb;
  --muted: #c5bed0;
  --surface: rgba(24,21,34,.88);
  --surface-strong: rgba(29,25,40,.94);
  --surface-soft: rgba(34,29,46,.82);
  --chip: rgba(255,255,255,.08);
  --card-bg: rgba(28,26,38,.92);

  --border: rgba(222,206,245,.16);
  --border-strong: rgba(222,206,245,.28);

  --secondary: rgba(255,255,255,.06);
  --secondary-text: #f7f0ff;

  --shadow: 0 18px 48px rgba(0,0,0,.34);
  --shadow-soft: 0 18px 42px rgba(0,0,0,.34);
  --shadow-small: 0 10px 28px rgba(0,0,0,.25);
}

/* =========================================================
   02. Reset & Basislayout
   ========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(237,247,252,.06), rgba(237,247,252,.06)),
    url('../images/babyboerse_bg_clean.svg');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  background-attachment: fixed;
}

html.dark-mode body {
  background-image:
    linear-gradient(rgba(17,16,26,.56), rgba(17,16,26,.56)),
    url('../images/babyboerse_bg_clean.svg');
}

a {
  color: var(--secondary-text);
}

h1,
h2,
h3,
p,
li {
  color: var(--text);
}

small,
.muted {
  color: var(--muted);
}

.wrap {
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 14px var(--page-x) 46px;
}

.main-content,
.footer {
  max-width: var(--page-width);
  margin-left: auto;
  margin-right: auto;
}

.main-content a:not(.btn) {
  font-weight: 700;
  color: var(--purple);
}

/* =========================================================
   03. Header, Logo, Navigation
   ========================================================= */

.brand-header,
.topnav,
.panel,
.card,
.footer {
  background: var(--surface) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(12px);
}

.brand-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(240px,1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 12px;
}

.brand-logo {
  display: block;
  width: min(390px,58vw);
  max-height: 94px;
  object-fit: contain;
  object-position: left center;
}

.brand-logo-dark {
  display: none;
}

html.dark-mode .brand-logo-light {
  display: none;
}

html.dark-mode .brand-logo-dark {
  display: block;
}

.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.topnav {
  position: sticky;
  top: 124px;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
  overflow-x: auto;
  white-space: nowrap;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--pill);
  color: var(--secondary-text);
  background: var(--secondary);
  text-decoration: none;
  font-weight: 900;
}

.topnav a.active {
  color: #fff;
  background: linear-gradient(135deg,var(--primary),var(--primary-2));
  border-color: transparent;
  box-shadow: 0 9px 20px rgba(177,31,190,.23);
}

/* =========================================================
   04. Buttons / Aktionen
   ========================================================= */

.btn,
button.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  color: var(--primary-text) !important;
  background: linear-gradient(135deg,var(--primary),var(--primary-2)) !important;
  box-shadow: 0 9px 20px rgba(177,31,190,.22);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn.secondary,
.btn.ghost {
  background: var(--secondary) !important;
  color: var(--secondary-text) !important;
  border-color: var(--border-strong) !important;
  box-shadow: none;
}

.btn.scan {
  background: linear-gradient(135deg,var(--scan),var(--scan-2)) !important;
  box-shadow: 0 9px 22px rgba(14,165,233,.24) !important;
}

button.theme-toggle,
.theme-toggle {
  width: 46px;
  padding: 0 !important;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

/* =========================================================
   05. Hero-Bereiche
   ========================================================= */

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.hero-next,
.page-hero {
  position: relative;
  overflow: hidden;
  max-width: var(--page-width);
  margin: 0 auto 34px;
  padding: clamp(32px, 7vw, 82px);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,255,255,.72)),
    radial-gradient(circle at top right, rgba(255,210,120,.34), transparent 42%),
    radial-gradient(circle at bottom left, rgba(120,210,255,.26), transparent 42%);
  box-shadow: var(--shadow-strong);
}

.hero-next {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-next::before,
.hero-next::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-next::before {
  width: 220px;
  height: 220px;
  right: -70px;
  top: -70px;
  background: rgba(255,210,120,.32);
}

.hero-next::after {
  width: 170px;
  height: 170px;
  left: -55px;
  bottom: -55px;
  background: rgba(120,210,255,.28);
}

.hero-next > *,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.hero-badge,
.page-hero span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-next h1,
.page-hero h1 {
  max-width: 860px;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 1.02;
  margin: 0 0 18px;
}

.page-hero h1 {
  font-size: clamp(30px, 5vw, 52px);
}

.hero-next p,
.page-hero p {
  max-width: 720px;
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.55;
  opacity: .82;
}

.hero h1 {
  font-size: clamp(2rem,4vw,4rem);
  line-height: 1.02;
  margin: .1em 0 .25em;
  letter-spacing: -.04em;
}

.hero-next .btn {
  font-size: 16px;
  padding: 13px 20px;
  border-radius: 999px;
}

.hero-next .btn.scan {
  box-shadow: 0 12px 28px rgba(0,160,180,.28) !important;
}

.eyebrow {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .045em;
  font-weight: 900;
}

.lead {
  font-size: 1.18rem;
  line-height: 1.55;
  margin-bottom: 22px;
}

/* =========================================================
   06. Karten / Grids / Panels
   ========================================================= */

.panel {
  padding: 26px;
}

.quick-card {
  display: grid;
  gap: 12px;
  align-content: start;
  background: var(--surface-strong) !important;
}

.info-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 12px;
  background: var(--chip);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.info-row strong {
  display: block;
  margin-bottom: 2px;
}

.content {
  display: grid;
  grid-template-columns: minmax(0,1fr) 310px;
  gap: 18px;
  align-items: start;
}

.main-content,
.sidebar {
  min-width: 0;
}

.main-content .panel {
  margin-bottom: 18px;
}

.prose {
  line-height: 1.65;
  font-size: 1.04rem;
}

.prose h2 {
  margin-top: 1.2em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 14px;
  margin: 18px 0;
}

.card {
  background: var(--surface-strong) !important;
  padding: 18px;
}

.card h3 {
  margin-top: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 5px 11px;
  border-radius: var(--pill);
  font-weight: 900;
  background: var(--chip);
  border: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}

.notice {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,191,47,.12);
  border: 1px solid rgba(255,191,47,.45);
  color: #985500;
  font-weight: 800;
}

html.dark-mode .notice {
  color: #ffb25c;
}

.hero-facts,
.card-grid-next,
.flow-grid,
.step-cards,
.location-cards {
  display: grid;
  gap: 18px;
  margin: 34px auto;
  max-width: var(--page-width);
}

.hero-facts,
.card-grid-next,
.flow-grid,
.step-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.location-cards,
.event-season-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-facts div,
.feature-card,
.flow-grid div,
.step-cards div,
.location-card,
.info-panel,
.cta-panel,
.faq-list details,
.map-consent-box,
.legal-panel,
.event-season-panel,
.event-season-card,
.impressions-panel {
  border-radius: 28px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.hero-facts div,
.feature-card,
.flow-grid div,
.step-cards div,
.location-card {
  padding: 24px;
}

.feature-card {
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(40,70,110,.18);
}

.feature-card .icon {
  font-size: 42px;
  margin-bottom: 14px;
}

.feature-card h2,
.step-cards h2,
.location-card h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.feature-card p,
.step-cards p,
.flow-grid span,
.hero-facts span,
.location-card p {
  margin: 0;
  line-height: 1.6;
  opacity: .74;
}

.hero-facts strong,
.hero-facts span,
.flow-grid strong,
.flow-grid span {
  display: block;
}

.hero-facts span,
.flow-grid span {
  margin-top: 6px;
}

.hero-facts small {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
  opacity: .62;
}

/* =========================================================
   07. Ablauf / Steps
   ========================================================= */

.flow-section {
  margin: 48px 0;
}

.section-head span,
.event-season-head span {
  font-weight: 800;
  opacity: .62;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.section-head h2,
.event-season-head h2 {
  margin: 8px 0;
  font-size: clamp(28px, 4vw, 44px);
}

.event-season-head p {
  margin: 0;
  max-width: 720px;
  line-height: 1.6;
  opacity: .75;
}

.flow-grid b,
.step-cards b,
.location-card b,
.season-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--purple);
  font-weight: 900;
  margin-bottom: 14px;
}

.flow-grid div:nth-child(2),
.step-cards div:nth-child(2),
.location-card-parking {
  background: rgba(255,245,220,.88);
}

.flow-grid div:nth-child(3),
.step-cards div:nth-child(3) {
  background: rgba(225,250,255,.82);
}

.flow-grid div:nth-child(4),
.step-cards div:nth-child(4) {
  background: rgba(245,235,255,.82);
}

.flow-grid div:nth-child(5),
.step-cards div:nth-child(5) {
  background: rgba(230,255,240,.82);
}

.flow-grid div:nth-child(6),
.step-cards div:nth-child(6) {
  background: rgba(255,235,245,.82);
}

/* =========================================================
   08. CTA / Info-Panels
   ========================================================= */

.cta-panel {
  max-width: var(--page-width);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 34px;
  margin: 46px auto 20px;
  border: 1px solid rgba(255,255,255,.7);
}

.info-panel {
  max-width: var(--page-width);
  padding: 30px;
  margin: 34px auto;
}

.cta-panel h2,
.info-panel h2 {
  margin-top: 0;
}

.cta-panel p {
  margin: 0;
  opacity: .76;
}

/* =========================================================
   09. Normale Textseiten
   ========================================================= */

.main-content > h1,
.main-content > h2:first-child {
  margin-top: 0;
  padding: 34px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72)),
    radial-gradient(circle at top right, rgba(255,210,120,.32), transparent 38%);
  box-shadow: 0 18px 48px rgba(40,70,110,.13);
}

.main-content > p,
.main-content > ul,
.main-content > ol,
.main-content > h2:not(:first-child),
.main-content > h3,
.main-content > hr {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.main-content > p,
.main-content > ul,
.main-content > ol {
  font-size: 16px;
  line-height: 1.75;
}

.main-content ul,
.main-content ol {
  padding: 22px 28px 22px 44px;
  border-radius: 24px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 10px 28px rgba(40,70,110,.08);
}

.main-content p:has(.btn) {
  text-align: center;
  margin-top: 26px;
}

/* =========================================================
   10. Termine
   ========================================================= */

.event-season-panel {
  max-width: var(--page-width);
  margin: 34px auto;
  padding: 34px;
  border-radius: 34px;
  background: rgba(255,255,255,.78);
}

.event-season-grid {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.event-season-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px;
}

.event-season-card.active-season {
  background: linear-gradient(135deg, rgba(255,245,220,.95), rgba(255,255,255,.82));
  outline: 2px solid rgba(194,24,168,.18);
}

.event-season-card.muted {
  opacity: .78;
}

.season-icon {
  flex: 0 0 auto;
  font-size: 24px;
}

.event-season-card strong {
  display: block;
  color: var(--purple);
  margin-bottom: 6px;
}

.event-season-card h3 {
  margin: 0 0 8px;
  font-size: 28px;
}

.event-season-card p,
.event-season-card small {
  display: block;
  margin: 0;
  line-height: 1.5;
  opacity: .74;
}

/* =========================================================
   11. FAQ
   ========================================================= */

.faq-list {
  display: grid;
  gap: 14px;
  margin: 34px auto;
  max-width: var(--page-width);
}

.faq-list details {
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 19px 22px;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  font-size: 22px;
  line-height: 1;
  opacity: .6;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list p {
  padding: 0 22px 20px;
  margin: 0;
  line-height: 1.65;
  opacity: .78;
}

/* =========================================================
   12. Rechtstexte / Teilnahmebedingungen
   ========================================================= */

.legal-hero {
  min-height: auto;
  padding: clamp(28px, 5vw, 48px);
}

.legal-hero h1 {
  font-size: clamp(30px, 5vw, 48px);
}

.legal-panel {
  max-width: var(--page-width);
  margin: 34px auto;
  padding: clamp(24px, 4vw, 42px);
  line-height: 1.75;
}

.legal-panel h2 {
  margin-top: 34px;
  margin-bottom: 10px;
}

.legal-panel h2:first-child {
  margin-top: 0;
}

.legal-panel p {
  margin-top: 0;
  margin-bottom: 12px;
}

.legal-panel ul {
  margin-top: 8px;
  margin-bottom: 16px;
  padding: 18px 24px 18px 38px;
  border-radius: 20px;
  background: rgba(255,255,255,.55);
}

.legal-panel hr {
  border: 0;
  height: 1px;
  background: rgba(0,0,0,.08);
  margin: 28px 0;
}

.rules-event-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
  margin: 24px 0 28px;
}

.rules-event-card > div {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-soft);
}

.rules-event-card > div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--cyan), var(--magenta));
}

.rules-event-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 800;
}

.rules-event-card .date {
  display: block;
  margin-bottom: 6px;
  color: var(--purple);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
}

.rules-event-card .time {
  font-weight: 800;
}

.rules-event-card p {
  margin: 0;
  line-height: 1.7;
  opacity: .78;
}

/* =========================================================
   13. Anfahrt / Karte
   ========================================================= */

.location-card {
  min-height: 210px;
}

.osm-map {
  display: none;
  height: 430px;
  max-width: var(--page-width);
  margin: 28px auto 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0,0,0,.12);
}

.osm-map.is-loaded {
  display: block;
}

.map-consent-box {
  max-width: var(--page-width);
  margin: 24px auto;
  padding: 24px;
  text-align: center;
}

.map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px !important;
  height: 38px !important;
  border-radius: 999px;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
  border: 3px solid #fff;
}

.map-marker-event {
  background: #fff;
}

.map-marker-parking {
  background: #fff3c7;
}

/* =========================================================
   14. Impressionen / Galerie
   ========================================================= */

.impressions-panel {
  max-width: var(--page-width);
  margin: 34px auto;
  padding: 34px;
  border-radius: 34px;
  background: rgba(255,255,255,.78);
}

.impressions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.impressions-grid button {
  border: 0;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(40,70,110,.12);
}

.impressions-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .2s ease;
}

.impressions-grid button:hover img {
  transform: scale(1.04);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(10,18,28,.78);
}

.gallery-lightbox.is-open {
  display: grid;
}

.gallery-lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.gallery-lightbox button {
  position: fixed;
  top: 22px;
  right: 28px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

/* =========================================================
   15. Footer / Social Media
   ========================================================= */

.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: initial;
  gap: 18px;
  margin-top: 42px;
  padding: 30px 26px;
  text-align: center;
  border-radius: 28px 28px 0 0;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.66)),
    radial-gradient(circle at top left, rgba(120,210,255,.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255,210,120,.20), transparent 34%) !important;
  box-shadow: 0 -8px 34px rgba(40,70,110,.10);
  border: 1px solid rgba(255,255,255,.70);
  backdrop-filter: blur(14px);
}

.footer::before {
  content: "";
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  opacity: .9;
}

.footer-main {
  display: grid;
  gap: 7px;
  color: rgba(70,82,105,.82);
  font-size: 14px;
  line-height: 1.45;
}

.footer-main a {
  font-size: 16px;
}

.footer a {
  font-weight: 800;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  font-weight: 800;
}

.footer-links a {
  white-space: nowrap;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.social-title {
  text-align: center;
  margin: 18px 0 12px;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text) !important;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 20px;
}

.social-btn,
html.dark-mode .social-btn,
.footer .social-btn,
html.dark-mode .footer .social-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 180px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  text-decoration: none !important;
  font-size: 1rem;
  font-weight: 800;
  color: #fff !important;
  background: linear-gradient(135deg, var(--cyan), var(--magenta)) !important;
  box-shadow: 0 12px 26px rgba(40,70,110,.22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 38px rgba(40,70,110,.28);
  filter: brightness(1.05);
}

.social-btn::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: inherit;
  opacity: .96;
}

.social-btn.facebook::after {
  background: #1877f2;
}

.social-btn.instagram::after {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.social-btn.whatsapp::after {
  background: linear-gradient(135deg, #128c4a, #25d366);
}

.social-btn span,
.social-btn .social-icon,
html.dark-mode .social-btn span,
html.dark-mode .social-btn .social-icon {
  color: #fff !important;
  opacity: 1 !important;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  font-size: 1.25rem;
  line-height: 1;
}

/* =========================================================
   16. Mobile Schnellzugriff
   ========================================================= */

.mobile-bar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: none;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 16px 38px rgba(20,30,50,.22);
  backdrop-filter: blur(12px);
}

/* =========================================================
   17. Dark Mode
   ========================================================= */

html.dark-mode .hero-next,
html.dark-mode .page-hero {
  background:
    linear-gradient(135deg, rgba(30,28,42,.96), rgba(22,21,32,.94)),
    radial-gradient(circle at top right, rgba(255,190,90,.20), transparent 42%),
    radial-gradient(circle at bottom left, rgba(0,180,210,.18), transparent 42%) !important;
  color: #f7f2ff !important;
}

html.dark-mode .hero-next *,
html.dark-mode .page-hero *,
html.dark-mode .hero-facts div *,
html.dark-mode .feature-card *,
html.dark-mode .flow-grid div *,
html.dark-mode .step-cards div *,
html.dark-mode .location-card *,
html.dark-mode .info-panel *,
html.dark-mode .cta-panel *,
html.dark-mode .event-season-panel *,
html.dark-mode .event-season-card *,
html.dark-mode .impressions-panel *,
html.dark-mode .faq-list details *,
html.dark-mode .legal-panel *,
html.dark-mode .map-consent-box * {
  color: #f7f2ff !important;
  opacity: 1 !important;
}

html.dark-mode .hero-badge,
html.dark-mode .page-hero span,
html.dark-mode .hero-facts div,
html.dark-mode .feature-card,
html.dark-mode .flow-grid div,
html.dark-mode .step-cards div,
html.dark-mode .location-card,
html.dark-mode .info-panel,
html.dark-mode .cta-panel,
html.dark-mode .event-season-panel,
html.dark-mode .event-season-card,
html.dark-mode .impressions-panel,
html.dark-mode .faq-list details,
html.dark-mode .legal-panel,
html.dark-mode .map-consent-box {
  background: rgba(28,26,38,.92) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.34) !important;
}

html.dark-mode .flow-grid div:nth-child(2),
html.dark-mode .step-cards div:nth-child(2),
html.dark-mode .location-card-parking,
html.dark-mode .event-season-card.active-season {
  background: rgba(54,43,28,.94) !important;
}

html.dark-mode .flow-grid div:nth-child(3),
html.dark-mode .step-cards div:nth-child(3) {
  background: rgba(25,47,56,.94) !important;
}

html.dark-mode .flow-grid div:nth-child(4),
html.dark-mode .step-cards div:nth-child(4) {
  background: rgba(42,32,58,.94) !important;
}

html.dark-mode .flow-grid div:nth-child(5),
html.dark-mode .step-cards div:nth-child(5) {
  background: rgba(28,52,39,.94) !important;
}

html.dark-mode .flow-grid div:nth-child(6),
html.dark-mode .step-cards div:nth-child(6) {
  background: rgba(56,31,45,.94) !important;
}

html.dark-mode .btn.ghost {
  background: rgba(255,255,255,.12) !important;
  color: #f7f2ff !important;
  border-color: rgba(255,255,255,.18) !important;
}

html.dark-mode .main-content a:not(.btn),
html.dark-mode .footer-links a,
html.dark-mode .event-season-card strong,
html.dark-mode .rules-event-card .date {
  color: #ff7be9 !important;
}

html.dark-mode .legal-panel ul,
html.dark-mode .main-content ul,
html.dark-mode .main-content ol {
  background: rgba(255,255,255,.07) !important;
}

html.dark-mode .rules-event-card > div {
  background: rgba(28,26,38,.92);
  border: 1px solid rgba(255,255,255,.10);
}

html.dark-mode .rules-event-card p {
  color: rgba(247,242,255,.82);
  opacity: 1;
}

html.dark-mode .footer {
  background:
    linear-gradient(135deg, rgba(28,26,38,.92), rgba(20,19,30,.88)),
    radial-gradient(circle at top left, rgba(0,180,210,.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255,190,90,.12), transparent 34%) !important;
  color: rgba(247,242,255,.86) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
}

html.dark-mode .footer-main {
  color: rgba(247,242,255,.78);
}

html.dark-mode .social-title {
  color: #f7f2ff !important;
}

html.dark-mode .social-btn {
  box-shadow: 0 14px 34px rgba(0,0,0,.36);
}

html.dark-mode .mobile-bar {
  background: rgba(28,26,38,.90);
  border: 1px solid rgba(255,255,255,.10);
}

/* =========================================================
   18. Responsive
   ========================================================= */

@media (max-width: 900px) {
  :root {
    --page-x: 8px;
  }

  body {
    background-attachment: scroll;
    background-size: auto 100%;
  }

  .wrap {
    padding: 8px var(--page-x) 34px;
  }

  .brand-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .brand-logo {
    width: min(330px,72vw);
    max-height: 74px;
  }

  .topnav {
    top: 86px;
    justify-content: flex-start;
    padding: 8px;
    gap: 8px;
    border-radius: 18px;
  }

  .topnav a {
    min-height: 36px;
    padding: 0 14px;
  }

  .hero,
  .content {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 18px;
  }

  .actions {
    justify-content: flex-end;
  }
}

@media (max-width: 850px) {
  .hero-facts,
  .card-grid-next,
  .flow-grid,
  .step-cards,
  .location-cards,
  .event-season-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    display: block;
  }

  .event-season-panel,
  .impressions-panel {
    padding: 24px;
  }

  .impressions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .main-content {
    max-width: 100%;
  }

  .hero-next {
    min-height: auto;
    padding: 34px 22px;
  }

  .hero-next h1,
  .page-hero h1 {
    font-size: 32px;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .hero-actions a,
  .cta-actions a {
    width: 100%;
    text-align: center;
  }

  .rules-event-card {
    grid-template-columns: 1fr;
  }

  .footer {
    margin-left: 10px;
    margin-right: 10px;
    padding-bottom: 90px;
  }

  .social-links {
    width: 100%;
  }

  .social-btn {
    width: min(320px, 100%);
    min-width: 0;
  }

  .mobile-bar {
    display: flex;
  }
}

@media (max-width: 520px) {
  .impressions-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
 *  Über die Kinderbörse
 *  ========================================================= */

.about-content {
  max-width: var(--page-width);
  margin: 34px auto;
  display: grid;
  gap: 22px;
}

.about-section {
  padding: clamp(24px, 4vw, 36px);
  border-radius: 28px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.about-section h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

.about-section p {
  margin: 0 0 14px;
  line-height: 1.75;
  font-size: 1.05rem;
  color: rgba(32,36,44,.82);
}

.about-section p:last-child {
  margin-bottom: 0;
}

html.dark-mode .about-section {
  background: rgba(28,26,38,.92) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.34) !important;
}

html.dark-mode .about-section h2,
html.dark-mode .about-section p {
  color: #f7f2ff !important;
}

html.dark-mode .about-section p {
  opacity: .86;
}

/* -------------------------------------------------
   Teilnahmebedingungen
-------------------------------------------------- */

.rule-note{
    display: block;
    margin-top: .35rem;
}
