/* =========================================================================
   O-SC Cookie-Consent-Banner
   Branding: o-sc.de (Dunkelblau #003366 / Blau #004d99)
   Datei einbinden: <link rel="stylesheet" href="/assets/cookie-consent.css">
   ========================================================================= */

:root {
  --osc-navy: #003366;
  --osc-blue: #004d99;
  --osc-bg: #ffffff;
  --osc-text: #222222;
  --osc-text-muted: #666666;
  --osc-border: #e0e0e0;
  --osc-track-off: #cfd8e3;
  --osc-focus: #66a3e0;
}

#osc-cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 15, 30, 0.45);
  z-index: 99998;
  display: none;
}

#osc-cc-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--osc-bg);
  color: var(--osc-text);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 20, 40, 0.28);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  z-index: 99999;
  display: none;
}

#osc-cc-overlay.osc-cc-visible,
#osc-cc-banner.osc-cc-visible {
  display: block;
}

/* -- Kopfzeile / Icon -- */
.osc-cc-icon-row {
  padding: 18px 24px 0;
}
.osc-cc-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--osc-navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

/* -- Tabs -- */
.osc-cc-tabs {
  display: flex;
  gap: 24px;
  padding: 14px 24px 0;
  border-bottom: 1px solid var(--osc-border);
  margin-top: 8px;
}
.osc-cc-tab {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--osc-text-muted);
  padding: 0 0 12px;
  border-bottom: 2px solid transparent;
}
.osc-cc-tab[aria-selected="true"] {
  color: var(--osc-navy);
  border-bottom-color: var(--osc-navy);
}
.osc-cc-tab:focus-visible {
  outline: 2px solid var(--osc-focus);
  outline-offset: 2px;
}

/* -- Panels -- */
.osc-cc-panel {
  padding: 20px 24px 4px;
  display: none;
}
.osc-cc-panel.osc-cc-active {
  display: block;
}
.osc-cc-panel h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--osc-navy);
  margin: 0 0 10px;
}
.osc-cc-panel p {
  margin: 0 0 14px;
  color: var(--osc-text);
}
.osc-cc-panel a {
  color: var(--osc-blue);
  font-weight: 600;
  text-decoration: underline;
}

/* -- Kategorie-Zeilen -- */
.osc-cc-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--osc-border);
}
.osc-cc-category:first-of-type {
  border-top: 1px solid var(--osc-border);
}
.osc-cc-category-text {
  flex: 1;
}
.osc-cc-category-title {
  font-weight: 700;
  margin: 0 0 4px;
}
.osc-cc-category-desc {
  color: var(--osc-text-muted);
  margin: 0;
  font-size: 13px;
}

/* -- Toggle-Switch -- */
.osc-cc-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: none;
  margin-top: 2px;
}
.osc-cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.osc-cc-switch label {
  position: absolute;
  inset: 0;
  background: var(--osc-track-off);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.osc-cc-switch label::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.osc-cc-switch input:checked + label {
  background: var(--osc-navy);
}
.osc-cc-switch input:checked + label::after {
  transform: translateX(18px);
}
.osc-cc-switch input:disabled + label {
  cursor: not-allowed;
  opacity: 0.6;
}
.osc-cc-switch input:focus-visible + label {
  outline: 2px solid var(--osc-focus);
  outline-offset: 2px;
}

/* -- Details-Liste -- */
.osc-cc-service {
  font-size: 13px;
  color: var(--osc-text-muted);
  margin: 6px 0 0;
  padding-left: 0;
  list-style: none;
}
.osc-cc-service li {
  padding: 2px 0;
}
.osc-cc-service b {
  color: var(--osc-text);
}

/* -- Footer / Buttons -- */
.osc-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 24px 20px;
}
.osc-cc-btn {
  flex: 1 1 auto;
  min-width: 130px;
  padding: 11px 16px;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  border: 1.5px solid var(--osc-navy);
  background: #fff;
  color: var(--osc-navy);
  transition: background 0.12s ease, color 0.12s ease;
}
.osc-cc-btn:hover {
  background: #eef3f8;
}
.osc-cc-btn.osc-cc-btn-primary {
  background: var(--osc-navy);
  color: #fff;
}
.osc-cc-btn.osc-cc-btn-primary:hover {
  background: var(--osc-blue);
}
.osc-cc-btn:focus-visible {
  outline: 2px solid var(--osc-focus);
  outline-offset: 2px;
}

/* -- Meta-Zeile (Cookie-ID / Impressum) -- */
.osc-cc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px 16px;
  font-size: 11.5px;
  color: #999;
  border-top: 1px solid var(--osc-border);
  padding-top: 10px;
}
.osc-cc-meta a {
  color: #999;
  text-decoration: underline;
}

/* -- Wiedereinstiegs-Link im Footer der Seite -- */
.osc-cc-reopen-link {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 480px) {
  #osc-cc-banner {
    bottom: 0;
    border-radius: 10px 10px 0 0;
    width: 100vw;
    max-height: 88vh;
  }
  .osc-cc-tabs {
    gap: 16px;
  }
  .osc-cc-actions {
    flex-direction: column;
  }
  .osc-cc-btn {
    width: 100%;
  }
}
