/* Cookie-Banner der Inhaltsseiten (Stadtseiten DE/EN samt Tipps/Highlights, Blog DE/EN) — seit 18.10.2026.
   Dasselbe Blatt wie in der App (.cookie-*-Regeln in css/style.css, Knöpfe aus css/kit.css), aber eigenständig:
   diese Seiten laden weder tokens.css noch kit.css. Werte deshalb aus css/tokens.css übernommen.
   Markup: lib/consent-banner.js (Bereich <!--consent-banner-->), Verhalten: js/cookie-consent.js.
   Bei Änderungen CSS_HREF (?v=) in lib/consent-banner.js hochzählen und build:cities + build:consent laufen lassen. */

.cookie-scrim { position: fixed; inset: 0; z-index: 9998; background: rgba(27, 28, 26, .38); }

.cookie-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  max-width: 520px; margin: 0 auto; box-sizing: border-box;
  max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  background: #fff; color: #1b1c1a; text-align: left;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -1px 0 rgba(27, 28, 26, .10), 0 -14px 40px rgba(27, 28, 26, .12);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transform: translateY(100%);
  transition: transform 300ms ease-out;
}

/* Zu (Scrim versteckt): ganz unsichtbar — keine Tab-Stopps, nichts lugt unter der Bildkante hervor */
.cookie-scrim[hidden] + .cookie-sheet { visibility: hidden; }

.cookie-sheet__grab { width: 38px; height: 4px; margin: 2px auto 14px; border-radius: 2px; background: #e9e6de; }

.cookie-sheet__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.cookie-sheet__title { margin: 0; font: 600 16px/1.3 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1b1c1a; }

.cookie-sheet__link {
  font: 500 12.5px/1 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #6c7b6d;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(27, 28, 26, .18);
}

.cookie-sheet__rows { list-style: none; margin: 12px 0 0; padding: 0; }

.cookie-sheet__rows li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 11px 0;
  border-top: 1px solid rgba(27, 28, 26, .10); font: 500 13.5px/1.3 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1b1c1a;
}

.cookie-sheet__rows li:last-child { border-bottom: 1px solid rgba(27, 28, 26, .10); }

.cookie-sheet__on  { font-size: 12.5px; font-weight: 600; color: #006d37; }

.cookie-sheet__opt { font-size: 12.5px; font-weight: 500; color: #6c7b6d; }

.cookie-sheet__toggle {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 4px 0;
  border: 0; background: none; cursor: pointer;
  font: 500 12.5px/1 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #3d4a3e;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(27, 28, 26, .18);
}

.cookie-sheet__toggle svg { width: 14px; height: 14px; transition: transform .2s ease; }

.cookie-sheet__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.cookie-sheet__details { margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: #f3f1eb; font-size: 12px; line-height: 1.6; color: #3d4a3e; }

.cookie-sheet__actions { display: flex; gap: 10px; margin-top: 16px; }

/* Knöpfe wie .btn-ink / .btn-ghost / .btn-sm aus css/kit.css — nur innerhalb des Blatts, damit die Seiten nichts erben */
.cookie-sheet .btn-ink, .cookie-sheet .btn-ghost {
  display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; margin: 0; padding: 0 12px; border: 0; border-radius: 999px;
  font: 600 14.5px/1.15 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: .003em; text-align: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}

.cookie-sheet .btn-ink { background: #1b1c1a; color: #fff; box-shadow: 0 1px 2px rgba(27, 28, 26, .10); }

.cookie-sheet .btn-ink:hover { background: #2d2e2b; }

.cookie-sheet .btn-ghost { background: transparent; color: #1b1c1a; box-shadow: inset 0 0 0 1px rgba(27, 28, 26, .18); }

.cookie-sheet .btn-ghost:hover { background: rgba(27, 28, 26, .04); }

.cookie-sheet .btn-ink:active, .cookie-sheet .btn-ghost:active { transform: scale(.98); }

.cookie-sheet .btn-ink:focus-visible, .cookie-sheet .btn-ghost:focus-visible, .cookie-sheet__toggle:focus-visible, .cookie-sheet__link:focus-visible {
  outline: 2px solid #1b1c1a; outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-sheet, .cookie-sheet__toggle svg { transition: none; }
}
