/* Einwilligungsverwaltung: Banner, Einstellungsdialog, Platzhalter für externe Inhalte.
   Farben aus den Theme-Variablen. Alle drei Entscheidungs-Buttons bewusst gleich gestaltet. */

.ap-consent {
  position: fixed; z-index: 100000; left: 16px; right: 16px; bottom: 16px;
  max-width: 760px; margin: 0 auto;
  background: var(--color-dark, #161616); color: var(--color-light-gray, #c9cdd3);
  border: 1px solid rgba(201, 205, 211, 0.25); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  max-height: calc(100vh - 32px); overflow-y: auto;
}
.ap-consent__innen { padding: 1.4rem 1.5rem 1.5rem; }
.ap-consent__titel { color: var(--color-white, #fff); font-size: 1.15rem; font-weight: 700; line-height: 1.35; margin: 0 0 0.6rem; padding: 0; }
.ap-consent__text { font-size: 0.9rem; line-height: 1.7; margin: 0 0 0.75rem; padding: 0; }
.ap-consent__meta { font-size: 0.8rem; line-height: 1.6; color: var(--color-gray, #8d9199); margin: 0 0 1.1rem; padding: 0; }
.ap-consent a { color: var(--color-white, #fff); text-decoration: underline; text-decoration-color: var(--color-red, #fe0000); text-underline-offset: 3px; }
.ap-consent__knoepfe { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 640px) { .ap-consent__knoepfe { grid-template-columns: repeat(3, 1fr); } }

.ap-consent__btn {
  min-height: 46px; padding: 0.7rem 1rem; border-radius: 10px; cursor: pointer;
  font: inherit; font-size: 0.9rem; font-weight: 700; line-height: 1.2;
  background: var(--color-black, #000); color: var(--color-white, #fff);
  border: 1px solid var(--color-light-gray, #c9cdd3);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ap-consent__btn:hover { border-color: var(--color-red, #fe0000); background: #0b0b0b; }
.ap-consent__btn:focus-visible,
.ap-consent-dialog__zu:focus-visible,
.ap-consent-schalter input:focus-visible,
.ap-consent-dienst__details summary:focus-visible,
.ap-consent-link:focus-visible,
.ap-consent a:focus-visible,
.ap-consent-dialog a:focus-visible { outline: 2px solid var(--color-red, #fe0000); outline-offset: 2px; }

/* Einstellungsdialog */
.ap-consent-dialog {
  width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid rgba(201, 205, 211, 0.25); border-radius: 14px;
  background: var(--color-dark, #161616); color: var(--color-light-gray, #c9cdd3);
}
.ap-consent-dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
.ap-consent-dialog__innen { padding: 1.4rem 1.5rem 1.5rem; }
.ap-consent-dialog__kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ap-consent-dialog__zu {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; line-height: 1;
  background: transparent; color: var(--color-white, #fff); border: 1px solid rgba(201, 205, 211, 0.3);
}
.ap-consent-kat { border: 1px solid rgba(201, 205, 211, 0.18); border-radius: 10px; padding: 0.9rem 1rem; margin: 0 0 0.9rem; min-width: 0; }
.ap-consent-kat__titel { color: var(--color-white, #fff); font-weight: 700; font-size: 0.95rem; padding: 0 0.3rem; }
.ap-consent-kat__text { font-size: 0.82rem; line-height: 1.6; color: var(--color-gray, #8d9199); margin: 0.4rem 0 0.6rem; }
.ap-consent-schalter { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.88rem; color: var(--color-light-gray, #c9cdd3); min-height: 32px; }
.ap-consent-schalter input { width: 20px; height: 20px; accent-color: var(--color-red, #fe0000); flex-shrink: 0; margin: 0; }
.ap-consent-dienst { border-top: 1px solid rgba(201, 205, 211, 0.12); padding: 0.55rem 0 0.2rem 1.1rem; }
.ap-consent-dienst__name { color: var(--color-white, #fff); font-weight: 600; }
.ap-consent-dienst__details { font-size: 0.8rem; margin: 0.2rem 0 0.4rem 1.9rem; }
.ap-consent-dienst__details summary { cursor: pointer; color: var(--color-gray, #8d9199); }
.ap-consent-dienst__details dl { margin: 0.5rem 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 0.75rem; }
.ap-consent-dienst__details dt { color: var(--color-light-gray, #c9cdd3); font-weight: 600; }
.ap-consent-dienst__details dd { margin: 0; color: var(--color-gray, #8d9199); }
@media (max-width: 520px) { .ap-consent-dienst__details dl { grid-template-columns: 1fr; } .ap-consent-dienst__details dd { margin-bottom: 0.3rem; } }
.ap-consent-dialog a { color: var(--color-white, #fff); text-decoration: underline; text-decoration-color: var(--color-red, #fe0000); }

/* Link „Cookie-Einstellungen" (Footer, Datenschutzerklärung) */
.ap-consent-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ap-consent-link:hover { color: var(--color-red, #fe0000); }

/* Platzhalter für externe Inhalte (Google Maps) */
.ap-extern { position: relative; min-height: var(--ap-extern-hoehe, 400px); border-radius: 12px; overflow: hidden; background: var(--color-dark, #161616); border: 1px solid rgba(201, 205, 211, 0.18); }
.ap-extern__platzhalter { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 0.6rem; min-height: var(--ap-extern-hoehe, 400px); padding: 1.5rem; }
.ap-extern__titel { color: var(--color-white, #fff); font-weight: 700; margin: 0; }
.ap-extern__hinweis { max-width: 520px; font-size: 0.85rem; line-height: 1.6; color: var(--color-light-gray, #c9cdd3); margin: 0; }
.ap-extern__hinweis a, .ap-extern__link a { color: var(--color-white, #fff); }
.ap-extern__aktionen { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.ap-extern__link { font-size: 0.8rem; margin: 0; }
.ap-extern.is-geladen .ap-extern__platzhalter { display: none; }
.ap-extern__frame { display: block; width: 100%; height: var(--ap-extern-hoehe, 400px); border: 0; }

@media (prefers-reduced-motion: reduce) { .ap-consent__btn { transition: none; } }
