/* Consent-UI, geteilt ueber alle Seiten des Starter-Hubs.
 *
 * Farben kommen aus colors_and_type.css, wo es geladen ist. Jede Variable hat
 * einen Literal-Fallback, damit die Datei auch auf Seiten ohne das Stylesheet
 * korrekt rendert (z.B. amazon-reselling-training, das eigenes Inline-CSS nutzt).
 *
 * Verhalten steckt in consent-manager.js. */

/* ---------- Banner ---------- */
.consent-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: none;
}
.consent-banner.is-visible { display: block; }
.consent-card {
  width: min(980px, 100%);
  margin: 0 auto;
  background: #11151D;
  color: white;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(17,21,29,0.32);
  padding: 22px;
}
.consent-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}
.consent-card h2 {
  color: white;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 8px;
}
.consent-card p {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.consent-btn {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 11px 15px;
  font-size: 13px;
  font-weight: 850;
  background: transparent;
  color: white;
  cursor: pointer;
}
.consent-btn.primary {
  background: var(--ha-yellow, #FFCC00);
  color: var(--ha-ink, #11151D);
  border-color: var(--ha-yellow, #FFCC00);
}
.consent-btn:hover { transform: translateY(-1px); }
.consent-details {
  display: none;
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 14px;
}
.consent-banner.show-details .consent-details { display: grid; gap: 10px; }
.consent-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
}
.consent-option strong {
  display: block;
  color: white;
  font-size: 13px;
}
.consent-option span {
  display: block;
  color: rgba(255,255,255,0.64);
  font-size: 12px;
  margin-top: 2px;
}
.consent-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--ha-yellow, #FFCC00);
}
.consent-status {
  font-size: 11px;
  color: rgba(255,255,255,0.56);
}
.consent-open {
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-family: var(--font-sans, inherit);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
  text-align: left;
}
.consent-open:hover { color: var(--ha-orange, #FF914D); }

/* Mobil: Text oben, Knöpfe darunter. "Auswahl" und "Alle ablehnen" nebeneinander,
   "Alle akzeptieren" volle Breite darunter. */
@media (max-width: 640px) {
  .consent-banner { left: 12px; right: 12px; bottom: 12px; }
  .consent-card { padding: 18px; border-radius: 20px; max-height: calc(100vh - 24px); overflow-y: auto; }
  .consent-top { grid-template-columns: 1fr; gap: 14px; }
  .consent-card h2 { font-size: 20px; margin-bottom: 6px; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .consent-btn { width: 100%; padding: 12px 10px; font-size: 14px; }
  .consent-btn.primary { grid-column: 1 / -1; }
  .consent-details .consent-actions { grid-template-columns: 1fr; }
  .consent-option { grid-template-columns: auto 1fr; }
  .consent-status { grid-column: 2; }
}

/* ---------- Embed-Gate ----------
 * Deckt ein noch nicht freigegebenes Drittanbieter-Embed ab.
 * consent-manager.js setzt .is-loaded auf [data-consent-embed]. */
[data-consent-embed] { position: relative; }
.v-gate {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 24px;
  text-align: center;
  background: #F3EDE0;
  color: #4A4231;
}
[data-consent-embed].is-loaded .v-gate { display: none; }
.v-gate p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 360px;
}
.v-gate-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--ha-yellow, #FFCC00);
  color: var(--ha-ink, #11151D);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  transition: transform .15s ease;
}
.v-gate-btn:hover { transform: translateY(-1px); }
.v-gate-alt {
  font-size: 12.5px;
  color: #6B6252;
  text-decoration: underline;
}
.v-gate-alt:hover { color: var(--ha-orange, #FF914D); }
/* Buchungsbox ist weiss, das Gate soll dort nicht als Kasten im Kasten wirken. */
.v-gate-book { background: #fff; }
