/* ============================================================
   greylo.de – Consent-Banner Styling
   Dark-Mode-fähig (folgt html[data-theme="dark"]),
   an das bestehende Layout (assets/style.css) angelehnt.
   ============================================================ */

.gc-wurzel {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  animation: gc-hoch 0.28s ease-out;
}
@keyframes gc-hoch {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.gc-karte {
  pointer-events: auto;
  width: min(680px, 100%);
  background: #FFFFFF;
  color: #0F2436;
  border: 1px solid #DCE6EE;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(15, 36, 54, 0.25);
  padding: 1.25rem 1.4rem 1.1rem;
  font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.55;
}

.gc-kopf {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.gc-emoji {
  font-size: 1.7rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.gc-titel {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  margin: 0 0 0.3rem;
  letter-spacing: -0.01em;
}
.gc-text {
  font-size: 0.92rem;
  color: #3D5568;
  margin: 0;
}
.gc-text a { color: #0E6BA8; text-decoration: underline; }
.gc-text a:hover { color: #37B6D9; }

/* Details nur einblenden, wenn „Einstellungen" geöffnet ist */
.gc-details {
  display: none;
  margin-top: 1rem;
  border-top: 1px solid #EAF4F8;
  padding-top: 0.9rem;
  max-height: 44vh;
  overflow-y: auto;
}
.gc-offen .gc-details { display: block; }

.gc-reihe {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem 0.9rem;
  align-items: start;
  padding: 0.55rem 0;
  cursor: pointer;
  border-bottom: 1px solid #F1F6F9;
}
.gc-reihe:last-child { border-bottom: none; }
.gc-reihe input[type=checkbox] {
  margin-top: 0.25rem;
  width: 18px; height: 18px;
  accent-color: #0E6BA8;
  cursor: pointer;
}
.gc-reihe.gc-pflicht { cursor: default; }
.gc-reihe.gc-pflicht input[type=checkbox] { cursor: not-allowed; opacity: 0.55; }
.gc-reihe-text { display: flex; flex-direction: column; gap: 0.15rem; }
.gc-reihe-text strong { font-size: 0.95rem; color: #0F2436; }
.gc-reihe-text span { font-size: 0.85rem; color: #3D5568; }
.gc-tag {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: #EAF4F8;
  color: #0E6BA8;
  vertical-align: middle;
}

/* Aktionen: Buttons */
.gc-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
  align-items: center;
}
.gc-btn {
  font: inherit;
  font-size: 0.92rem;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.gc-btn:hover { transform: translateY(-1px); }
.gc-btn:focus-visible { outline: 3px solid #37B6D9; outline-offset: 2px; }

/* „Alle akzeptieren" und „Nur notwendige" haben bewusst identisches Styling.
   BGH-konforme Gleichrangigkeit – keine Dark Patterns. */
.gc-primaer {
  background: #0E6BA8;
  color: #FFFFFF;
  border-color: #0E6BA8;
  font-weight: 600;
}
.gc-primaer:hover { background: #0B588B; }
.gc-primaer.gc-neutral {
  background: #FFFFFF;
  color: #0E6BA8;
  border-color: #0E6BA8;
}
.gc-primaer.gc-neutral:hover { background: #EAF4F8; }

.gc-sekundaer {
  background: transparent;
  color: #0F2436;
  border-color: #DCE6EE;
}
.gc-sekundaer:hover { background: #F5F9FB; }

.gc-link {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #0E6BA8;
  font-weight: 500;
  cursor: pointer;
  padding: 0.55rem 0.4rem;
  text-decoration: underline;
}
.gc-link:hover { color: #37B6D9; }

.gc-fuss {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  color: #6B7F92;
  border-top: 1px dashed #EAF4F8;
  padding-top: 0.6rem;
}

/* ---------- Dark Mode ---------- */
html[data-theme="dark"] .gc-karte {
  background: #0F2033;
  color: #E8F1F8;
  border-color: #1E3450;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
html[data-theme="dark"] .gc-titel { color: #E8F1F8; }
html[data-theme="dark"] .gc-text  { color: #9BB1C4; }
html[data-theme="dark"] .gc-text a { color: #7FD6EC; }
html[data-theme="dark"] .gc-details { border-top-color: #1E3450; }
html[data-theme="dark"] .gc-reihe { border-bottom-color: #16283E; }
html[data-theme="dark"] .gc-reihe-text strong { color: #E8F1F8; }
html[data-theme="dark"] .gc-reihe-text span   { color: #9BB1C4; }
html[data-theme="dark"] .gc-tag { background: #16283E; color: #7FD6EC; }
html[data-theme="dark"] .gc-primaer.gc-neutral {
  background: transparent; color: #7FD6EC; border-color: #7FD6EC;
}
html[data-theme="dark"] .gc-primaer.gc-neutral:hover { background: #16283E; }
html[data-theme="dark"] .gc-sekundaer { color: #E8F1F8; border-color: #1E3450; }
html[data-theme="dark"] .gc-sekundaer:hover { background: #16283E; }
html[data-theme="dark"] .gc-fuss { color: #7B90A5; border-top-color: #16283E; }

/* ---------- Widerrufs-Link im Footer ---------- */
.gc-widerruf {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.gc-widerruf:hover { color: #37B6D9; }

/* ---------- KI-Label (EU AI Act, Art. 50) ---------- */
.ki-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #F1EAFB;
  color: #6842B5;
  border: 1px solid #DDCCF3;
  vertical-align: middle;
}
.ki-label::before {
  content: "🤖";
  font-size: 0.85rem;
}
.ki-label.groß {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
}
html[data-theme="dark"] .ki-label {
  background: #241635;
  color: #C4A9F0;
  border-color: #3B2856;
}

/* Kleiner Overlay-Hinweis unter Bildern/Medien */
figure.ki-inhalt { position: relative; margin: 0; }
figure.ki-inhalt .ki-label {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  backdrop-filter: blur(6px);
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .gc-wurzel { padding: 0.6rem; }
  .gc-karte  { padding: 1rem; border-radius: 14px; }
  .gc-kopf   { gap: 0.6rem; }
  .gc-emoji  { font-size: 1.4rem; }
  .gc-titel  { font-size: 1rem; }
  .gc-text   { font-size: 0.86rem; }
  .gc-aktionen .gc-btn { flex: 1 1 45%; }
  .gc-link { margin-left: 0; flex: 1 1 100%; text-align: center; }
}
