/* ============================================================
 * Alnova Solution – Cookie Consent UI Styles
 * Glass-Look passend zum Site-Stil (Geist + Mono + Orange)
 * ============================================================ */

/* ----------------------------------------------------------------
 * Status-LED (analog status-led aus index.html)
 * ---------------------------------------------------------------- */
.cc-led {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #FF6A2C;
  box-shadow: 0 0 8px rgba(255, 106, 44, 0.6);
  flex-shrink: 0;
}
.cc-led::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  animation: ccLedPulse 2.4s ease-out infinite;
}
@keyframes ccLedPulse {
  0%   { box-shadow: 0 0 0 0    rgba(255, 106, 44, 0.55); opacity: 1; }
  70%  { box-shadow: 0 0 0 14px rgba(255, 106, 44, 0);    opacity: 0; }
  100% { box-shadow: 0 0 0 0    rgba(255, 106, 44, 0);    opacity: 0; }
}

/* ----------------------------------------------------------------
 * Banner (Bottom-Aligned Sticky)
 * ---------------------------------------------------------------- */
.cc-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 9000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.cc-banner.cc-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cc-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(20, 26, 38, 0.85) 0%, rgba(11, 15, 20, 0.92) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
          backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 22px 50px rgba(0, 0, 0, 0.50);
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.75rem;
  align-items: center;
}
@media (max-width: 900px) {
  .cc-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; }
  .cc-banner-inner {
    grid-template-columns: 1fr;
    padding: 1.25rem 1.25rem;
    gap: 1.25rem;
  }
}

.cc-banner-content { min-width: 0; }

.cc-banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.75rem;
}

.cc-banner-title {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
@media (min-width: 640px) {
  .cc-banner-title { font-size: 1.25rem; }
}

.cc-banner-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin: 0;
  max-width: 60ch;
}
.cc-banner-desc a {
  color: #FF6A2C;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.cc-banner-desc a:hover { color: #FF8A52; }

.cc-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
@media (max-width: 900px) {
  .cc-banner-actions { width: 100%; }
  .cc-banner-actions .cc-btn { flex: 1; min-width: 0; }
}

/* ----------------------------------------------------------------
 * Buttons (gleichwertig nach TTDSG)
 * ---------------------------------------------------------------- */
.cc-btn {
  position: relative;
  padding: 0.7rem 1.15rem;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.cc-btn:focus-visible {
  outline: 2px solid #FF6A2C;
  outline-offset: 2px;
}

.cc-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}
.cc-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.cc-btn-primary {
  background: rgba(255, 106, 44, 0.16);
  border-color: rgba(255, 106, 44, 0.55);
  color: #fff;
  box-shadow: 0 0 0 rgba(255, 106, 44, 0);
}
.cc-btn-primary:hover {
  background: rgba(255, 106, 44, 0.28);
  border-color: rgba(255, 106, 44, 0.75);
  box-shadow: 0 0 22px rgba(255, 106, 44, 0.22);
}

/* ----------------------------------------------------------------
 * Settings-Panel (Modal)
 * ---------------------------------------------------------------- */
.cc-settings {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cc-settings.cc-visible {
  opacity: 1;
  pointer-events: auto;
}

.cc-settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 20, 0.78);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}

.cc-settings-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(20, 26, 38, 0.95) 0%, rgba(11, 15, 20, 0.97) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
          backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 26px 60px rgba(0, 0, 0, 0.60);
  transform: translateY(15px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cc-settings.cc-visible .cc-settings-panel {
  transform: translateY(0) scale(1);
}

.cc-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cc-settings-header .cc-banner-eyebrow { margin: 0; }

.cc-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}
.cc-close:hover {
  border-color: rgba(255, 106, 44, 0.4);
  color: #FF6A2C;
  background: rgba(255, 106, 44, 0.05);
}

.cc-settings-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.cc-settings-title {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  line-height: 1.25;
}
@media (min-width: 640px) {
  .cc-settings-title { font-size: 1.5rem; }
}

.cc-settings-intro {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.cc-settings-intro a {
  color: #FF6A2C;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Kategorie-Karten */
.cc-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.cc-cat {
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.cc-cat:hover { border-color: rgba(255, 106, 44, 0.20); }

.cc-cat-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.cc-cat-label { flex: 1; min-width: 0; }
.cc-cat-name {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.25rem;
}
.cc-cat-req {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 0.25rem;
}
.cc-cat-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
}

/* Toggle-Switch */
.cc-toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
  margin-top: 0.1rem;
}
.cc-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
  padding: 0;
}
.cc-toggle input:disabled { cursor: not-allowed; }
.cc-toggle-track {
  position: relative;
  display: block;
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 9999px;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.cc-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 9999px;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease;
}
.cc-toggle input:checked + .cc-toggle-track {
  background: rgba(255, 106, 44, 0.6);
  border-color: rgba(255, 106, 44, 0.7);
}
.cc-toggle input:checked + .cc-toggle-track .cc-toggle-thumb {
  left: 18px;
  background: #fff;
}
.cc-toggle input:disabled + .cc-toggle-track {
  opacity: 0.55;
}
.cc-toggle input:focus-visible + .cc-toggle-track {
  outline: 2px solid #FF6A2C;
  outline-offset: 2px;
}

.cc-settings-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 1.1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
  justify-content: flex-end;
}
@media (max-width: 640px) {
  .cc-settings-footer .cc-btn { flex: 1; min-width: 0; font-size: 12.5px; padding: 0.65rem 0.8rem; }
}

/* ----------------------------------------------------------------
 * Reduced Motion
 * ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cc-banner, .cc-settings, .cc-settings-panel,
  .cc-toggle-thumb, .cc-btn {
    transition: none !important;
  }
  .cc-led::after { animation: none; }
}
