/* Einwilligung: Banner, Einstellungen, Platzhalter fuer Video und Karte.
   Farben und Schrift aus dem Bestand: Schwarz, Weiss, Markengelb #faac01,
   Inter. Ablehnen und Zustimmen sind gleich gross und gleich gestaltet. */

.smx-einw,
.smx-einw-dialog,
.smx-medien-hinweis {
  font-family: Inter, sans-serif;
  color: #000;
  box-sizing: border-box;
}
.smx-einw *,
.smx-einw-dialog *,
.smx-medien-hinweis * { box-sizing: border-box; }

/* ------------------------------------------------------------ Banner -- */
.smx-einw {
  position: fixed;
  z-index: 2147483000;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 22px;
  background: #fff;
  border-left: 5px solid #faac01;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .08);
  animation: smx-einw-rein .28s cubic-bezier(.23, 1, .32, 1);
}
@keyframes smx-einw-rein { from { transform: translateY(16px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .smx-einw { animation: none; } }

.smx-einw-text {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: #111;
}
.smx-einw-text a,
.smx-einw-klein a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #faac01;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.smx-einw-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.smx-einw-knopf {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 170px;
  padding: 10px 20px;
  border: 2px solid #000;
  border-radius: 0;
  background: #faac01;
  color: #000;
  font: 600 14px/1.2 Inter, sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .15s ease-out, color .15s ease-out;
}
@media (hover: hover) {
  .smx-einw-knopf:hover { background: #000; color: #fff; }
}

.smx-einw-link {
  appearance: none;
  min-height: 46px;
  padding: 10px 6px;
  border: 0;
  background: none;
  color: #000;
  font: 500 15px/1.2 Inter, sans-serif;
  text-decoration: underline;
  text-decoration-color: #faac01;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.smx-einw-knopf:focus-visible,
.smx-einw-link:focus-visible,
.smx-einw a:focus-visible,
.smx-einw-dialog a:focus-visible,
.smx-einw-kat input:focus-visible,
.smx-medien-hinweis button:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #fff;
}

@media (max-width: 600px) {
  .smx-einw { left: 0; right: 0; bottom: 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); border-left: 0; border-top: 5px solid #faac01; }
  .smx-einw-knoepfe .smx-einw-knopf { flex: 1 1 calc(50% - 5px); min-width: 0; letter-spacing: 1px; }
  .smx-einw-link { flex: 1 1 100%; }
}

/* Die CTA-Leiste (Handy) liegt ebenfalls unten - solange der Banner
   offen ist, hat er Vorrang. */
.smx-einw-offen .smx-cta-leiste { display: none !important; }

/* ------------------------------------------------------ Einstellungen -- */
/* Der Theme-Reset :where(...){all:unset} nimmt <dialog> die UA-Zentrierung
   (inset/margin) - deshalb hier ausdruecklich. */
.smx-einw-dialog[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  z-index: 2147483001;
}
.smx-einw-kat,
.smx-einw-kat *,
.smx-einw-text,
.smx-einw-klein { text-transform: none; letter-spacing: normal; }
.smx-einw-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 26px 24px 22px;
  border: 0;
  border-top: 5px solid #faac01;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.smx-einw-dialog::backdrop { background: rgba(0, 0, 0, .55); }

.smx-einw-titel {
  margin: 0 0 8px;
  font: 700 22px/1.25 Inter, sans-serif;
  color: #000;
  text-transform: none;
  letter-spacing: 0;
}

.smx-einw-kat {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid #e3e3e3;
  cursor: pointer;
}
.smx-einw-kat input {
  appearance: auto;
  -webkit-appearance: checkbox;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #000;
}
.smx-einw-kat-text { padding: 0; margin: 0; }  /* Theme: label span{padding-top:20px} */
.smx-einw-kat-text strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.smx-einw-kat-text span { display: block; font-size: 14px; line-height: 1.5; color: #333; }
.smx-einw-klein { margin: 4px 0 16px; font-size: 14px; }

/* -------------------------------------------- Platzhalter Video/Karte -- */
.smx-medien { position: relative; }
.smx-medien-hinweis {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: #f0f0f0;
  border-left: 5px solid #faac01;
}
.smx-medien > iframe + .smx-medien-hinweis,
.smx-medien > .smx-medien-hinweis:first-child,
#map > .smx-medien-hinweis {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.smx-medien-hinweis p { margin: 0; font-size: 15px; line-height: 1.5; color: #111; max-width: 46ch; }
.smx-medien-hinweis .smx-einw-knopf { min-width: 0; }
/* Leerer Rahmen hinter dem Hinweis: Mindesthoehe, damit der Hinweis Platz hat. */
.smx-medien > iframe[data-consent]:not([src]) { min-height: 240px; background: #f0f0f0; }

/* ------------------------------------------ Banner modern (23.09.2026) --
   Murat: "der muss cooler und moderner werden". Dunkles Glas wie die Kontakt-
   leiste, eckig, Gold als Akzent. Ablehnen und Alle akzeptieren bleiben gleich
   gross und gleich gestaltet (gleichwertige Wahl), Einstellungen als Textlink. */
.smx-einw {
  left: 16px; right: 16px; bottom: 16px; max-width: 1040px; padding: 22px 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center;
  background: rgba(14, 14, 14, .92); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .1); border-left: 0; border-top: 3px solid #e6b350; border-radius: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45); color: #fff;
}
.smx-einw-inhalt { min-width: 0; }
.smx-einw-marke {
  display: flex; align-items: center; gap: 10px; margin: 0 0 8px;
  font: 600 11px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .18em; text-transform: uppercase; color: #e6b350;
}
.smx-einw-marke::before { content: ""; width: 8px; height: 8px; background: #e6b350; flex: 0 0 8px; }
.smx-einw .smx-einw-text { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.smx-einw .smx-einw-text a { color: #fff; text-decoration-color: #e6b350; }
.smx-einw .smx-einw-knoepfe { flex-wrap: nowrap; gap: 10px; }
.smx-einw .smx-einw-knopf {
  min-width: 150px; min-height: 48px; padding: 12px 20px; border: 1.5px solid #e6b350; background: transparent; color: #fff;
  font: 600 13px/1.2 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .16s ease, color .16s ease, transform .12s ease;
}
.smx-einw .smx-einw-knopf:active { transform: scale(.97); }
@media (hover: hover) { .smx-einw .smx-einw-knopf:hover { background: #e6b350; color: #111; } }
.smx-einw .smx-einw-knopf:focus-visible, .smx-einw .smx-einw-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.smx-einw .smx-einw-link { color: rgba(255, 255, 255, .78); text-decoration-color: #e6b350; margin-left: 6px; }
.smx-einw .smx-einw-link:hover { color: #fff; }
@media (max-width: 860px) {
  .smx-einw { grid-template-columns: 1fr; left: 0; right: 0; bottom: 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); gap: 14px; box-shadow: 0 -12px 40px rgba(0, 0, 0, .35); }
  .smx-einw .smx-einw-text { font-size: 14px; }
  .smx-einw .smx-einw-knoepfe { display: grid; grid-template-columns: 1fr 1fr; }
  .smx-einw .smx-einw-knopf { min-width: 0; width: 100%; }
  .smx-einw .smx-einw-link { grid-column: 1 / -1; justify-self: center; min-height: 36px; margin: 0; }
}
@media (max-width: 860px) { .smx-einw .smx-einw-knopf { text-align: center; letter-spacing: .04em; font-size: 12.5px; white-space: nowrap; padding: 12px 10px; } }
