/* Cookie-Consent – Design angelehnt an moellers-reisebuero.de (Gold #d8ae61 / Dunkelgrün #0f3f22) */

.mrb-cc, .mrb-cc *, .mrb-cc-float, .mrb-cc-placeholder, .mrb-cc-placeholder * { box-sizing: border-box; }

.mrb-cc {
  --cc-green: #0f3f22;
  --cc-green-2: #14522c;
  --cc-gold: #d8ae61;
  --cc-gold-dark: #b0812b;
  --cc-text: #ffffff;
  --cc-muted: rgba(255, 255, 255, .85);
  --cc-line: rgba(216, 174, 97, .35);

  position: fixed;
  inset: auto 0 0 0;
  z-index: 2147483000;
  display: flex;
  justify-content: center;
  padding: 16px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  color: var(--cc-text);
  pointer-events: none; /* Seite bleibt bedienbar, solange nur das Banner offen ist */
}
.mrb-cc[hidden] { display: none; }

.mrb-cc__panel {
  pointer-events: auto;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px 26px;
  background: var(--cc-green);
  border: 1px solid var(--cc-line);
  border-top: 4px solid var(--cc-gold);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  animation: mrb-cc-in .25s ease-out;
}

/* Einstellungs-Ansicht: zentriert mit abgedunkeltem Hintergrund */
.mrb-cc--modal {
  inset: 0;
  align-items: center;
  background: rgba(0, 0, 0, .6);
  pointer-events: auto;
}

.mrb-cc__title {
  margin: 0 0 10px;
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--cc-gold);
}
.mrb-cc__title:focus { outline: none; }

.mrb-cc__text,
.mrb-cc__cat-desc { margin: 0 0 16px; font-size: .95rem; color: var(--cc-muted); }

.mrb-cc a { color: var(--cc-gold); text-decoration: underline; text-underline-offset: 2px; }
.mrb-cc a:hover { color: #fff; }

.mrb-cc__legal { margin: 16px 0 0; font-size: .85rem; color: var(--cc-muted); text-align: center; }

/* Buttons: "Ablehnen" und "Akzeptieren" bewusst identisch gestaltet (gleichwertige Optik) */
.mrb-cc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.mrb-cc-btn {
  flex: 1 1 0;
  min-width: 140px;
  padding: 12px 20px;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  border: 2px solid var(--cc-gold);
  border-radius: 24px; /* pillenförmig wie die Buttons der Website */
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.mrb-cc-btn--main { background: var(--cc-gold); color: var(--cc-green); }
.mrb-cc-btn--main:hover { background: #e6c27f; border-color: #e6c27f; }
.mrb-cc-btn--ghost { background: transparent; color: var(--cc-gold); }
.mrb-cc-btn--ghost:hover { background: rgba(216, 174, 97, .15); }

.mrb-cc button:focus-visible,
.mrb-cc a:focus-visible,
.mrb-cc input:focus-visible,
.mrb-cc summary:focus-visible,
.mrb-cc-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.mrb-cc__back {
  display: block;
  margin: 14px auto 0;
  padding: 4px 8px;
  font: inherit;
  font-size: .9rem;
  color: var(--cc-gold);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

/* Kategorien */
.mrb-cc__cat {
  margin: 0 0 12px;
  padding: 14px 16px;
  background: var(--cc-green-2);
  border: 1px solid var(--cc-line);
  border-radius: 12px;
}
.mrb-cc__cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.mrb-cc__cat-title { font-weight: 700; color: #fff; cursor: pointer; }
.mrb-cc__cat-desc { margin-bottom: 8px; }

.mrb-cc__details summary { cursor: pointer; font-size: .85rem; color: var(--cc-gold); }
.mrb-cc__details dl { display: grid; grid-template-columns: 9em 1fr; gap: 4px 12px; margin: 10px 0 0; font-size: .85rem; color: var(--cc-muted); }
.mrb-cc__details dt { font-weight: 700; color: #fff; }
.mrb-cc__details dd { margin: 0; overflow-wrap: anywhere; }

/* Schalter */
.mrb-cc__switch {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  margin: 0;
  background: rgba(255, 255, 255, .3);
  border-radius: 14px;
  cursor: pointer;
  transition: background-color .15s;
}
.mrb-cc__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s, background-color .15s;
}
.mrb-cc__switch:checked { background: var(--cc-gold); }
.mrb-cc__switch:checked::after { transform: translateX(20px); background: var(--cc-green); }
.mrb-cc__switch:disabled { opacity: .65; cursor: not-allowed; }

/* Platzhalter für blockierte Inhalte (Google Maps) */
.mrb-cc-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 260px;
  padding: 24px;
  text-align: center;
  font-family: inherit;
  color: #fff;
  background: #0f3f22;
  border: 2px solid #d8ae61;
  border-radius: 12px;
}
.mrb-cc-placeholder p { margin: 0; max-width: 460px; font-size: .95rem; }
.mrb-cc-placeholder .mrb-cc-btn { flex: 0 0 auto; padding-left: 28px; padding-right: 28px; }
.mrb-cc-placeholder .mrb-cc-btn--main { background: #d8ae61; color: #0f3f22; border-color: #d8ae61; }
.mrb-cc-placeholder .mrb-cc-btn--main:hover { background: #e6c27f; border-color: #e6c27f; }
.mrb-cc-placeholder button { font: inherit; font-weight: 700; cursor: pointer; border: 2px solid #d8ae61; border-radius: 24px; }
.mrb-cc-placeholder button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Schwebender Button zum erneuten Öffnen */
.mrb-cc-float {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147482000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #0f3f22;
  background: #d8ae61;
  border: 2px solid #0f3f22;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  cursor: pointer;
}
.mrb-cc-float[hidden] { display: none; }
.mrb-cc-float:hover { background: #e6c27f; }

@keyframes mrb-cc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mrb-cc__panel { animation: none; }
  .mrb-cc-btn, .mrb-cc__switch, .mrb-cc__switch::after { transition: none; }
}

@media (max-width: 520px) {
  .mrb-cc { padding: 8px; font-size: 14px; }
  .mrb-cc__panel { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); padding: 14px 14px 10px; border-radius: 12px; border-top-width: 3px; }
  .mrb-cc__title { margin-bottom: 6px; font-size: 1.05rem; }
  .mrb-cc__text, .mrb-cc__cat-desc { margin-bottom: 10px; font-size: .82rem; line-height: 1.45; }
  .mrb-cc__actions { gap: 8px; margin-top: 4px; }
  /* Ablehnen und Akzeptieren nebeneinander, Einstellungen/Speichern darunter */
  .mrb-cc-btn { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 9px 10px; font-size: .85rem; border-width: 2px; }
  .mrb-cc__actions .mrb-cc-btn--ghost { order: 3; flex-basis: 100%; padding: 7px 10px; }
  .mrb-cc__legal { margin-top: 8px; font-size: .75rem; }
  .mrb-cc__back { margin-top: 6px; font-size: .8rem; }
  .mrb-cc__cat { margin-bottom: 8px; padding: 10px 12px; border-radius: 10px; }
  .mrb-cc__cat-head { margin-bottom: 2px; }
  .mrb-cc__cat-title { font-size: .9rem; }
  .mrb-cc__cat-desc { margin-bottom: 4px; }
  .mrb-cc__details summary, .mrb-cc__details dl { font-size: .78rem; }
  .mrb-cc__details dl { grid-template-columns: 1fr; gap: 0 12px; }
  .mrb-cc__details dd { margin-bottom: 4px; }
  .mrb-cc__switch { width: 42px; height: 24px; border-radius: 12px; }
  .mrb-cc__switch::after { width: 18px; height: 18px; }
  .mrb-cc__switch:checked::after { transform: translateX(18px); }
  .mrb-cc-float { left: 10px; bottom: 10px; width: 40px; height: 40px; }
  .mrb-cc-placeholder { min-height: 180px; padding: 16px; }
  .mrb-cc-placeholder p { font-size: .85rem; }
}
