/* Einwilligungsbanner, Aussehen nach dem Vorbild von saubervondauer.de.
 * Farben kommen aus der SVD-Palette (svd-palette.css), damit der Banner
 * dieselben Toene traegt wie die Seite darunter. */

/* Kompakt seit 25.09.2026: auf dem Handy rund 150 px statt 211 px, damit die
 * Seite darunter sichtbar bleibt. Beide Knoepfe gleich breit und gleich hoch
 * (Ablehnen gleichwertig, DSK), Touch-Ziele mindestens 44 px (Apple HIG). */
.svd-consent-banner {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 60;
  margin: 0 auto;
  max-width: 24rem;
  padding: 0.85rem 0.9rem 0.35rem;
  background: var(--color-paper, #fff);
  border: 1px solid var(--color-line, #e5ded4);
  border-radius: 16px;
  box-shadow: 0 18px 50px -20px rgba(15, 23, 42, 0.45);
}

@media (min-width: 640px) {
  .svd-consent-banner { left: 1.25rem; right: auto; bottom: 1.25rem; margin: 0; }
}

.svd-consent-kopf { display: flex; align-items: flex-start; gap: 0.625rem; }

.svd-consent-kreis {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin-top: 0.125rem;
  border-radius: 999px;
  background: var(--color-brand-soft, #fdf3ea);
  color: var(--color-brand-deep, #a34a05);
}

.svd-keks { width: 1.25rem; height: 1.25rem; }
.svd-consent-widget .svd-keks { width: 1.5rem; height: 1.5rem; }

.svd-consent-kopf p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-muted, #5d574d);
}

.svd-consent-kopf a {
  font-weight: 500;
  color: var(--color-brand-deep, #a34a05);
  text-underline-offset: 2px;
}

.svd-consent-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-ink, #1c1814);
}

.svd-consent-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 0.15rem;
}

.svd-consent-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted, #5d574d);
  text-decoration: none;
}

.svd-consent-links a:hover { color: var(--color-brand-deep, #a34a05); text-decoration: underline; }

.svd-consent-hinweis {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-muted, #5d574d);
}

.svd-consent-hinweis a { color: var(--color-brand-deep, #a34a05); }

.svd-consent-reihe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.svd-consent-ja,
.svd-consent-nein {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.15s, border-color 0.15s, color 0.15s;
}

.svd-consent-ja {
  border: 0;
  background: var(--color-brand, #ed7f22);
  color: #fff;
}

.svd-consent-ja:hover { filter: brightness(0.95); }

.svd-consent-nein {
  border: 1.5px solid var(--color-ink, #1c1814);
  background: transparent;
  color: var(--color-ink, #1c1814);
}

.svd-consent-nein:hover {
  border-color: var(--color-brand, #ed7f22);
  color: var(--color-brand-deep, #a34a05);
}

.svd-consent-mehr {
  padding: 0;
  min-height: 40px;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted, #5d574d);
  cursor: pointer;
  text-underline-offset: 2px;
}

.svd-consent-mehr:hover { color: var(--color-brand-deep, #a34a05); text-decoration: underline; }

.svd-consent-widget {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--color-line, #e5ded4);
  background: var(--color-paper, #fff);
  color: var(--color-brand-deep, #a34a05);
  box-shadow: 0 12px 30px -14px rgba(15, 23, 42, 0.4);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.svd-consent-widget:hover {
  transform: translateY(-2px);
  border-color: var(--color-brand, #ed7f22);
}

.svd-consent-huelle {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(7, 7, 10, 0.45);
}

.svd-consent-dialog {
  width: 100%;
  max-width: 30rem;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.25rem;
  background: var(--color-paper, #fff);
  border-radius: 16px;
  border: 1px solid var(--color-line, #e5ded4);
}

.svd-consent-titel {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ink, #1c1814);
}

.svd-consent-zeile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--color-line, #e5ded4);
}

.svd-consent-zeile strong {
  font-size: 0.95rem;
  color: var(--color-ink, #1c1814);
}

.svd-consent-zeile span {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--color-muted, #5d574d);
}

.svd-consent-fest {
  flex: 0 0 auto;
  font-size: 0.75rem;
  color: var(--color-muted, #5d574d);
}

.svd-schalter {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: var(--color-line, #e5ded4);
  cursor: pointer;
  transition: background-color 0.15s;
}

.svd-schalter.ist-an { background: var(--color-brand, #ed7f22); }

.svd-schalter span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transition: left 0.15s;
}

.svd-schalter.ist-an span { left: calc(100% - 22px); }
