/* Gemeinsame Bausteine der Varianten: Cookie-Banner, „Kein Telegram“-Fenster, Vorschau-Protokoll.
   Jede Seite setzt ihre Farben über diese Variablen und --leiste (Höhe der festen Knopfleiste). */
:root {
  --e-flaeche: #ffffff;
  --e-text: #0b1724;
  --e-text2: #5b6878;
  --e-akzent: #2481cc;
  --e-akzent2: #3d9bf0;
  --e-linie: rgba(11, 23, 36, .1);
  --e-schatten: 0 24px 60px -24px rgba(11, 23, 36, .45);
  --leiste: 0px;
}

/* Cookie-Banner: sitzt über der festen Knopfleiste, damit der Knopf sichtbar bleibt */
.keks {
  position: fixed; z-index: 40;
  left: 12px; right: 12px;
  bottom: calc(var(--leiste) + 10px + env(safe-area-inset-bottom));
  max-width: 440px; margin: 0 auto; padding: 14px 14px 12px;
  border-radius: 20px; background: var(--e-flaeche); color: var(--e-text);
  box-shadow: 0 0 0 1px var(--e-linie), var(--e-schatten);
  animation: keks-rein .7s cubic-bezier(.32, .72, 0, 1) .3s both;
}
.keks-titel { margin: 0; font-size: 14.5px; font-weight: 650; line-height: 1.3; }
.keks-text { margin: 3px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--e-text2); }
.keks-mehr { border: 0; padding: 0 0 0 2px; background: none; font: inherit; font-weight: 650; color: var(--e-akzent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.keks-details { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s cubic-bezier(.32, .72, 0, 1), opacity .35s; }
.keks-details > div { overflow: hidden; }
.keks.auf .keks-details { grid-template-rows: 1fr; opacity: 1; }
.keks-details p { margin: 9px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--e-text2); }
.keks-details a { color: inherit; }
.keks-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.keks-ja, .keks-nein { min-height: 44px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
.keks-ja { border: 0; color: #fff; background: linear-gradient(180deg, var(--e-akzent2), var(--e-akzent)); }
.keks-nein { border: 1.5px solid #5b6b7d; color: var(--e-text); background: rgba(91, 107, 125, .12); }
.keks-ja:focus-visible, .keks-nein:focus-visible, .keks-mehr:focus-visible { outline: 2px solid var(--e-akzent2); outline-offset: 3px; }
.keks.frage { animation: keks-stups .6s cubic-bezier(.32, .72, 0, 1); }
.keks.frage .keks-titel { color: var(--e-akzent); }
@keyframes keks-rein { from { opacity: 0; transform: translate3d(0, 20px, 0); } }
@keyframes keks-stups { 35% { transform: translate3d(0, -8px, 0); } }

/* Fenster „Noch kein Telegram?“ */
dialog.ohne-tg { width: min(360px, calc(100vw - 32px)); padding: 0; border: 0; background: transparent; color: var(--e-text); }
dialog.ohne-tg::backdrop { background: rgba(8, 16, 26, .55); }
.ohne-karte { padding: 24px 20px 16px; border-radius: 22px; background: var(--e-flaeche); box-shadow: var(--e-schatten); text-align: center; }
.ohne-karte h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.ohne-karte p { margin: 10px 0 16px; font-size: 15px; line-height: 1.45; color: var(--e-text2); }
.ohne-store, .ohne-zurueck { display: flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 8px; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 650; text-decoration: none; cursor: pointer; }
.ohne-store { color: #fff; background: #0b1724; }
.ohne-store + .ohne-store { color: var(--e-text); background: transparent; box-shadow: inset 0 0 0 1.5px var(--e-linie); }
.ohne-zurueck { width: 100%; border: 0; color: var(--e-akzent); background: transparent; }
.ohne-web { display: inline-block; padding: 10px 6px 4px; font-size: 13.5px; color: var(--e-text2); }

/* Vorschau: schmale gelbe Zeile ganz oben (schiebt die Seite um 26px nach unten), Protokoll zum Aufklappen */
html.vs { --vs-hoehe: 26px; }
html.vs body { padding-top: 26px; }
.vs-badge { position: fixed; z-index: 60; top: 0; left: 0; right: 0; font: 600 11.5px/1.3 -apple-system, system-ui, sans-serif; color: #3b2a00; }
.vs-badge summary { list-style: none; cursor: pointer; height: 26px; display: flex; align-items: center; justify-content: center; gap: 6px; background: #ffd75e; white-space: nowrap; }
.vs-badge[open] ol { margin-left: auto; margin-right: auto; }
.vs-badge summary::-webkit-details-marker { display: none; }
.vs-badge b { display: inline-block; min-width: 16px; padding: 0 4px; border-radius: 99px; background: #3b2a00; color: #ffd75e; text-align: center; }
.vs-badge ol { width: min(340px, calc(100vw - 16px)); max-height: 50vh; overflow: auto; margin: 6px 0 0; padding: 8px 10px 8px 26px; border-radius: 12px; background: #fffbea; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); font-weight: 500; }
.vs-badge li { margin: 0 0 7px; }
.vs-badge time { display: block; font-size: 10px; opacity: .6; }
.vs-badge code { display: block; margin-top: 3px; white-space: pre-wrap; word-break: break-all; font-size: 10px; color: #5a4600; }
.vs-toast { position: fixed; z-index: 61; left: 12px; right: 12px; top: 44px; max-width: 420px; margin: 0 auto; padding: 12px 14px; border-radius: 14px; background: #10202f; color: #fff; font: 500 14px/1.4 -apple-system, system-ui, sans-serif; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6); opacity: 0; transform: translate3d(0, -8px, 0); pointer-events: none; transition: opacity .3s, transform .4s cubic-bezier(.32, .72, 0, 1); }
.vs-toast.zu-sehen { opacity: 1; transform: none; }
.vs-toast small { display: block; margin-bottom: 4px; font-size: 11.5px; color: #ffd75e; }
.vs-toast mark { background: #ffd75e; color: #10202f; padding: 0 3px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) { .keks, .keks.frage { animation: none; } }
