/* =====================================================================
   a1 studio – Consent-Banner (selbst gehostet, keine externe Lösung)
   ---------------------------------------------------------------------
   Steuert das Laden des Google Tag Managers. Ohne aktive Einwilligung
   wird nichts von Google geladen (Hard-Blocking). Design im Brand-Stil.
   Alle Klassen im Namespace .a1c-  → keine Kollision mit dem Seiten-CSS.
   ===================================================================== */

.a1c-root {
  --a1c-signal: #EE6C1E;
  --a1c-ink: #1B1C1D;
  --a1c-text: #54565A;
  --a1c-muted: #6C6E71;
  --a1c-line: #DBDCDE;
  --a1c-soft: #EBECED;
  --a1c-grad: linear-gradient(115deg, #D9631C, #FF9A4D, #EE6C1E, #FFB273);

  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  display: none;
  justify-content: center;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.a1c-root.a1c-show { display: flex; animation: a1cIn 0.28s ease; }

@keyframes a1cIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.a1c-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 470px;
  background: #FFFFFF;
  border: 1px solid var(--a1c-line);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(20, 20, 22, 0.22);
  padding: 26px 26px 22px;
}
.a1c-card * { box-sizing: border-box; }

.a1c-title {
  font-family: 'Cal Sans', sans-serif;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--a1c-ink);
  margin: 0 0 10px;
  font-weight: 400;
}
.a1c-intro {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--a1c-text);
  margin: 0 0 18px;
}
.a1c-intro a {
  color: var(--a1c-signal);
  text-decoration: none;
  border-bottom: 1px solid rgba(238, 108, 30, 0.35);
}
.a1c-intro a:hover { border-bottom-color: var(--a1c-signal); }

/* --- Kategorie-Liste --- */
.a1c-cats { margin: 0 0 20px; }
.a1c-cat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--a1c-soft);
}
.a1c-cat:last-child { border-bottom: 1px solid var(--a1c-soft); }
.a1c-cat-main { flex: 1; min-width: 0; }
.a1c-cat-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 4px;
}
.a1c-cat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--a1c-ink);
}
.a1c-cat-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9C8358;
  background: #F5F1E9;
  border-radius: 999px;
  padding: 3px 8px;
}
.a1c-cat-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--a1c-muted);
  margin: 0;
}

/* --- Toggle-Switch --- */
.a1c-sw {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 25px;
  margin-top: 1px;
}
.a1c-sw input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.a1c-sw input:disabled { cursor: default; }
.a1c-sw .a1c-tr {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #CFD1D3;
  transition: background 0.2s ease;
}
.a1c-sw .a1c-kn {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s ease;
  pointer-events: none;
}
.a1c-sw input:checked ~ .a1c-tr { background: var(--a1c-signal); }
.a1c-sw input:checked ~ .a1c-kn { transform: translateX(17px); }
.a1c-sw input:disabled ~ .a1c-tr { background: #BFC1C3; }
.a1c-sw input:focus-visible ~ .a1c-tr { box-shadow: 0 0 0 3px rgba(238, 108, 30, 0.3); }

/* --- Buttons --- */
.a1c-actions {
  display: flex;
  gap: 10px;
}
.a1c-btn {
  flex: 1;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.a1c-btn:active { transform: scale(0.97); }
.a1c-btn-accept {
  color: #fff;
  border: none;
  background: var(--a1c-grad);
  background-size: 200% 200%;
  box-shadow: 0 5px 18px rgba(217, 99, 28, 0.4);
}
.a1c-btn-accept:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(217, 99, 28, 0.5); }
.a1c-btn-reject {
  color: var(--a1c-ink);
  background: #fff;
  border: 1px solid var(--a1c-line);
}
.a1c-btn-reject:hover { background: #F5F6F7; border-color: #C9CBCD; }

.a1c-save {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--a1c-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px;
}
.a1c-save:hover { color: var(--a1c-ink); }

@media (max-width: 480px) {
  .a1c-root { left: 12px; right: 12px; bottom: 12px; }
  .a1c-card { padding: 22px 20px 18px; border-radius: 20px; }
  .a1c-actions { flex-direction: column; }
}
