/* Splyne SEO-Seiten (public/spielorte/*.html) — dezenter Cookie-Hinweis unten,
   KEIN Vollbild-Overlay. Warm-Neutral-Palette, identische Werte wie das
   Inline-<style> der Seiten (scripts/gen_seo_pages.mjs) und wie
   src/components/CookieBanner.css (App), unabhängige Kopie da diese Seiten
   ohne Build-Step als reines statisches HTML/CSS/JS ausgeliefert werden. */
.cookie-banner {
  --cb-bg: #f1ece0;
  --cb-text: #2b2620;
  --cb-muted: #6b5f52;
  --cb-border: rgba(43, 38, 32, 0.14);
  --cb-accent: #b85c3e;
  --cb-accent-dark: #96432b;
  --cb-shadow: rgba(43, 38, 32, 0.18);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  padding: 12px max(12px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  .cookie-banner {
    --cb-bg: #23201a;
    --cb-text: #ede7d9;
    --cb-muted: #b9ad9a;
    --cb-border: rgba(237, 231, 217, 0.14);
    --cb-shadow: rgba(0, 0, 0, 0.4);
  }
}
.cookie-banner-inner {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--cb-bg);
  color: var(--cb-text);
  border: 1px solid var(--cb-border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px var(--cb-shadow);
  box-sizing: border-box;
}
.cookie-banner-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--cb-muted);
}
.cookie-banner-link {
  color: var(--cb-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Zwei gleichrangige Buttons — gefüllt vs. outline in derselben Palette. */
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner-btn {
  flex: 1 1 auto;
  min-width: 140px;
  border-radius: 10px;
  padding: 0.6rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: filter 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.cookie-banner-btn:active { transform: scale(0.97); }
.cookie-banner-btn-filled {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-dark));
}
.cookie-banner-btn-filled:hover { filter: brightness(1.06); }
.cookie-banner-btn-outline {
  border: 1.5px solid var(--cb-accent);
  color: var(--cb-accent);
  background: transparent;
}
.cookie-banner-btn-outline:hover { background: rgba(184, 92, 62, 0.08); }
.cookie-banner-settings-link {
  flex: 0 0 auto;
  border: none;
  background: none;
  color: var(--cb-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0.4rem 0.2rem;
  font-family: inherit;
}
.cookie-banner-settings-link:hover { color: var(--cb-text); }

/* Einstellungen-Panel */
.cookie-banner-settings {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--cb-border);
}
.cookie-banner-category { display: flex; flex-direction: column; gap: 2px; }
.cookie-banner-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cookie-banner-category-title { font-size: 0.82rem; font-weight: 700; color: var(--cb-text); }
.cookie-banner-category-desc { margin: 0; font-size: 0.76rem; line-height: 1.4; color: var(--cb-muted); }
.cookie-banner-toggle {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
  cursor: pointer;
}
.cookie-banner-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.cookie-banner-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--cb-border);
  transition: background 0.15s ease;
}
.cookie-banner-toggle-track::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}
.cookie-banner-toggle input:checked + .cookie-banner-toggle-track { background: var(--cb-accent); }
.cookie-banner-toggle input:checked + .cookie-banner-toggle-track::before { transform: translateX(16px); }
.cookie-banner-toggle-disabled { cursor: default; opacity: 0.7; }
.cookie-banner-toggle-disabled input { cursor: default; }
.cookie-banner-save {
  align-self: flex-start;
  border: none;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-dark));
  cursor: pointer;
  font-family: inherit;
}
.cookie-banner-save:hover { filter: brightness(1.06); }
.cookie-banner-save:active { transform: scale(0.97); }

@media (max-width: 640px) {
  .cookie-banner-actions { flex-direction: column; align-items: stretch; }
  .cookie-banner-btn { width: 100%; }
  .cookie-banner-settings-link { align-self: center; }
}
