/* ==========================================================================
   Cookie-Banner DJ Alex Maus
   Eigene feste Farben (nicht die Theme-Variablen), damit die Karte auf den
   hellen Hochzeitsseiten und den dunklen Event-Seiten gleich hochwertig aussieht.
   ========================================================================== */

.amc {
  --amc-bg: #15120f;
  --amc-text: #f0ede5;
  --amc-soft: #c8c2b6;
  --amc-gold: #d4a574;
  --amc-gold-hover: #ddb287;
  --amc-line: rgba(212, 165, 116, 0.24);
  --amc-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9999;
  width: min(380px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 22px 22px 20px;
  background: var(--amc-bg);
  color: var(--amc-text);
  border: 1px solid var(--amc-line);
  border-radius: 2px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.18);
  font-family: 'Hanken Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transform: translateY(16px);
  visibility: hidden;
  transition: opacity 420ms var(--amc-ease), transform 420ms var(--amc-ease), visibility 0s linear 420ms;
}
.amc.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 420ms var(--amc-ease), transform 420ms var(--amc-ease), visibility 0s;
}
.amc *, .amc *::before, .amc *::after { box-sizing: border-box; }

/* Kopf: kleines Label + Überschrift in der Headline-Schrift der Seite */
.amc-kicker {
  display: block;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amc-gold);
}
.amc-title {
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--amc-line);
  font-family: 'Marcellus', Georgia, serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: var(--amc-text);
}
.amc-text {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--amc-soft);
}
.amc-text a,
.amc-cat-desc a {
  color: var(--amc-text);
  text-decoration: underline;
  text-decoration-color: var(--amc-gold);
  text-underline-offset: 3px;
}
.amc-text a:hover { color: var(--amc-gold-hover); }

/* Knöpfe: gleich groß nebeneinander. Gold gefüllt vs. Kontur. */
.amc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.amc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0;
  padding: 11px 8px;
  border: 1px solid var(--amc-gold);
  border-radius: 0;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.amc-btn-primary {
  background: var(--amc-gold);
  color: #15120f;
}
.amc-btn-primary:hover { background: var(--amc-gold-hover); border-color: var(--amc-gold-hover); }
.amc-btn-secondary {
  background: transparent;
  color: var(--amc-text);
  border-color: rgba(240, 237, 229, 0.42);
}
.amc-btn-secondary:hover { border-color: var(--amc-text); }
.amc-btn:focus-visible,
.amc-link:focus-visible,
.amc-switch input:focus-visible + .amc-switch-track {
  outline: 2px solid var(--amc-gold);
  outline-offset: 3px;
}

.amc-link {
  display: inline-block;
  margin: 12px 0 0;
  padding: 2px 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--amc-soft);
  text-decoration: underline;
  text-decoration-color: var(--amc-line);
  text-underline-offset: 4px;
  cursor: pointer;
}
.amc-link:hover { color: var(--amc-text); text-decoration-color: var(--amc-gold); }

/* Einstellungen: klappt in derselben Karte auf */
.amc-cats { display: none; margin: 0 0 22px; }
.amc.is-detail .amc-cats { display: block; }
.amc.is-detail .amc-link { display: none; }
/* In den Einstellungen: Knopfleiste unten festheften, damit sie bei wenig Höhe sichtbar bleibt */
.amc.is-detail { padding-bottom: 0; }
.amc.is-detail .amc-actions {
  position: sticky;
  bottom: 0;
  margin: 0 -22px;
  padding: 14px 22px 20px;
  background: var(--amc-bg);
  border-top: 1px solid var(--amc-line);
}
.amc.is-detail .amc-cats { margin-bottom: 0; }
.amc.is-detail .amc-cat:last-child { border-bottom: 0; }

.amc-cat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--amc-line);
}
.amc-cat:last-child { border-bottom: 1px solid var(--amc-line); }
.amc-cat-name {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--amc-text);
}
.amc-cat-desc {
  grid-column: 1 / 2;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--amc-soft);
}
.amc-cat-state {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--amc-soft);
}

.amc-switch {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.amc-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
/* Die sichtbare Schiene darf keine Klicks abfangen, sonst schaltet der Schalter nicht */
.amc-switch-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(240, 237, 229, 0.42);
  border-radius: 999px;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.amc-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--amc-soft);
  transition: transform 220ms var(--amc-ease), background-color 200ms ease;
}
.amc-switch input:checked + .amc-switch-track {
  background: var(--amc-gold);
  border-color: var(--amc-gold);
}
.amc-switch input:checked + .amc-switch-track::after {
  transform: translateX(20px);
  background: #15120f;
}

/* Handy: volle Breite mit Rand, Knöpfe bleiben nebeneinander */
@media (max-width: 520px) {
  .amc {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
    padding: 18px 18px 16px;
  }
  .amc-title { font-size: 18px; }
  .amc.is-detail .amc-actions { margin: 0 -18px; padding: 12px 18px 16px; }
}

/* Große Bildschirme (27 Zoll und mehr): Karte, Schrift und Knöpfe wachsen mit */
@media (min-width: 1600px) {
  .amc { left: 32px; bottom: 32px; width: 440px; padding: 28px 28px 24px; }
  .amc-title { font-size: 22px; margin-bottom: 14px; padding-bottom: 14px; }
  .amc-text { font-size: 14.5px; margin-bottom: 22px; }
  .amc-btn { min-height: 48px; font-size: 12.5px; letter-spacing: 1px; }
  .amc-link { font-size: 14px; margin-top: 14px; }
  .amc-cat-name { font-size: 15px; }
  .amc-cat-desc { font-size: 14px; }
  .amc.is-detail .amc-actions { margin: 0 -28px; padding: 16px 28px 24px; }
}
@media (min-width: 2200px) {
  .amc { left: 40px; bottom: 40px; width: 500px; padding: 32px 32px 28px; }
  .amc-title { font-size: 25px; }
  .amc-text { font-size: 16px; }
  .amc-btn { min-height: 54px; font-size: 14px; }
  .amc-link { font-size: 15px; }
  .amc-cat-name { font-size: 16px; }
  .amc-cat-desc { font-size: 15px; }
  .amc.is-detail .amc-actions { margin: 0 -32px; padding: 18px 32px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .amc, .amc.is-open { transition: none; transform: none; }
  .amc-switch-track, .amc-switch-track::after { transition: none; }
}
