/* ---------- Cookie-Banner ---------- */
.cc {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
}

.cc:focus {
  outline: none;
}

.cc-box {
  position: relative;
  pointer-events: auto;
  width: 100%;
  max-width: 470px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  overscroll-behavior: contain;
  isolation: isolate;
  padding: 24px 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(245, 106, 30, 0.28), transparent 65%),
    radial-gradient(300px 200px at 0% 100%, rgba(245, 106, 30, 0.08), transparent 70%),
    linear-gradient(160deg, #26323b 0%, #1c252c 100%);
  box-shadow:
    0 30px 80px rgba(10, 14, 18, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 320ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.cc.is-open .cc-box {
  opacity: 1;
  transform: none;
}

.cc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.cc-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.cc-mark img {
  width: 22px;
  height: auto;
}

.cc-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.cc-brand-text strong {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
}

.cc-brand-text span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
  font-weight: 500;
}

.cc-titel {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.cc-text {
  margin: 0 0 20px;
}

.cc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cc-actions-3 {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.cc-btn {
  appearance: none;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: #ffffff;
  color: #141414;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.cc-btn:hover {
  background: #fff3ea;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.cc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
}

.cc-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: #ffffff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(245, 106, 30, 0.8);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.cc-links {
  display: inline-flex;
  gap: 16px;
  font-size: 0.8rem;
}

.cc-links a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 160ms ease;
}

.cc-links a:hover {
  color: #ffffff;
}

.cc-btn:focus-visible,
.cc-link:focus-visible,
.cc-links a:focus-visible,
.cc-more summary:focus-visible,
.cc-switch input:focus-visible + .cc-slider {
  outline: 2px solid var(--accent, #f56a1e);
  outline-offset: 3px;
}

.cc-group {
  padding: 14px 16px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.cc-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cc-group-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-group-title strong {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}

.cc-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 106, 30, 0.18);
  color: #ffb489;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cc-group p {
  margin: 6px 0 0;
  font-size: 0.84rem;
}

.cc-more {
  margin-top: 8px;
  font-size: 0.8rem;
}

.cc-more summary {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.cc-more ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.cc-more li + li {
  margin-top: 4px;
}

.cc-more b {
  color: #ffffff;
  font-weight: 600;
}

.cc-switch {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
}

.cc-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cc-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 200ms ease;
  pointer-events: none;
}

.cc-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 200ms ease;
}

.cc-switch input:checked + .cc-slider {
  background: linear-gradient(135deg, var(--accent, #f56a1e), var(--accent-dark, #d95d1a));
}

.cc-switch input:checked + .cc-slider::after {
  transform: translateX(20px);
}

.cc-switch input:disabled {
  cursor: not-allowed;
}

.cc-switch input:disabled + .cc-slider {
  opacity: 0.6;
}

@media (max-width: 560px) {
  .cc {
    left: 0;
    right: 0;
    bottom: 0;
  }

  .cc-box {
    max-width: none;
    max-height: 88vh;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
  }

  .cc-titel {
    font-size: 1.3rem;
  }

  .cc-actions-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .cc-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-box {
    transition: none;
  }
}

/* ---------- Rechtstexte ---------- */
.legal-hero {
  padding: 52px 0 46px;
  background:
    radial-gradient(720px 320px at 92% 0%, rgba(245, 106, 30, 0.13), transparent 70%),
    linear-gradient(180deg, #fbf8f4 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.legal-hero .breadcrumb {
  margin-bottom: 22px;
}

.legal-title {
  margin: 16px 0 0;
  font-size: var(--typo-h1-artikel, clamp(1.9rem, 1.45rem + 1.9vw, 2.9rem));
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.legal-lead {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.legal-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.legal-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-main {
  padding: 44px 0 90px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}

.legal-toc {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-soft);
}

.legal-toc p {
  margin: 0 0 8px 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-toc a {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 600;
  line-height: 1.35;
  transition: background 160ms ease;
}

.legal-toc a span {
  min-width: 20px;
  padding-top: 1px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  background: #ffffff;
}

.legal-help {
  padding: 22px;
  border-radius: 20px;
  background:
    radial-gradient(260px 160px at 100% 0%, rgba(245, 106, 30, 0.25), transparent 70%),
    linear-gradient(160deg, #26323b 0%, #1c252c 100%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.55;
}

.legal-help strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 1.02rem;
}

.legal-help p {
  margin: 0 0 12px;
}

.legal-help-links {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.legal-help-links a {
  color: #ffffff;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.legal-help-links a:hover {
  color: #ffb489;
}

.legal-help .button-light {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.legal-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.legal-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.legal-highlight {
  padding: 18px 20px;
  border: 1px solid rgba(245, 106, 30, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7f1 0%, #ffffff 100%);
}

.legal-highlight strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.3;
}

.legal-highlight span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.legal-card {
  padding: 32px 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.04);
  scroll-margin-top: 24px;
}

.legal-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.legal-num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.legal-card-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.legal-prose {
  max-width: 760px;
}

.legal-card .legal-prose h3 {
  margin: 1.6em 0 0.35em;
  font-size: 1.08rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.legal-card .legal-prose > h3:first-child {
  margin-top: 1.1em;
}

.legal-card .legal-prose p {
  margin: 0.45em 0 0.9em;
}

.legal-card .legal-prose a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-card .compare-card {
  margin: 18px 0;
}

.legal-consent-button {
  margin: 8px 0 4px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-info {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.04);
}

.legal-info-wide {
  grid-column: 1 / -1;
}

.legal-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.legal-label::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-info p {
  margin: 0;
  color: var(--ink);
  line-height: 1.75;
}

.legal-info small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.legal-info a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
  .legal-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .legal-aside {
    position: static;
  }

  .legal-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .legal-hero {
    padding: 36px 0 32px;
  }

  .legal-main {
    padding: 28px 0 64px;
  }

  .legal-toc ol,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .legal-card-head {
    gap: 12px;
  }

  .legal-num {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  .legal-info {
    padding: 22px 20px;
  }
}
