/* ============================================================
   JUNIOR 1 – Cookie-/Einwilligungsbanner
   ============================================================ */
.cc {
  position: fixed; z-index: 400; left: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px);
  width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto;
  padding: 26px 28px 22px; color: var(--ink);
  background: linear-gradient(160deg, #fffdf7 0%, #fff 60%); border: 1px solid var(--cream-border-3, #e7e0cf); border-radius: 28px;
  box-shadow: 0 30px 60px -24px rgba(18, 48, 31, .45), 0 6px 18px -10px rgba(18, 48, 31, .25);
  opacity: 0; transform: translateY(26px) scale(.985); filter: blur(8px);
  transition: opacity .55s ease, transform .6s cubic-bezier(.22, 1, .36, 1), filter .55s ease;
  outline: none; overscroll-behavior: contain;
}
.cc.is-in { opacity: 1; transform: none; filter: blur(0); }
.cc.is-out { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(6px); pointer-events: none; }
.cc-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--green); }
.cc h2 { margin: 8px 0 0; font-size: clamp(21px, 2.4vw, 25px); font-weight: 800; letter-spacing: -.02em; line-height: 1.18; color: var(--deep); }
.cc-text { margin: 12px 0 0; font-size: 15px; line-height: 1.62; color: var(--ink-soft); }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.cc-btn {
  font: inherit; font-weight: 700; font-size: 15.5px; line-height: 1.2; padding: 14px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .2s ease, background-position .5s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cc-btn:active { transform: scale(.985); }
.cc-primary, .cc-primary:hover { background-color: var(--green); background-image: var(--grad-green); background-size: 190% 190%; background-repeat: no-repeat; background-position: 0% 0%; color: #fff; box-shadow: 0 10px 20px -12px rgba(15, 92, 48, .8); }
.cc-primary:hover { background-position: 100% 100%; }
/* gleichwertig sichtbar wie "Alle akzeptieren" */
.cc-ghost { background: #fff; color: var(--deep); border-color: color-mix(in srgb, var(--deep) 35%, #fff); }
.cc-ghost:hover { background: #f1ede2; border-color: var(--deep); }
.cc-link { display: block; margin: 14px auto 0; padding: 4px 8px; background: none; border: 0; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cc-link:hover { color: var(--green-dark); }
.cc-legal { margin-top: 12px; text-align: center; font-size: 13px; color: var(--ink-soft); }
.cc-legal a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.cc-legal a:hover { color: var(--deep); }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.cc-foot .cc-link { margin: 0; padding-left: 0; }
.cc-foot .cc-legal { margin: 0; text-align: right; }

.cc-cats { display: grid; gap: 12px; margin-top: 18px; }
.cc-cat { background: #fff; border: 1px solid var(--cream-border-3, #e7e0cf); border-radius: 18px; padding: 14px 16px; }
.cc-cat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.cc-cat-title { font-weight: 800; font-size: 15.5px; color: var(--deep); }
.cc-cat p { margin: 4px 0 0; font-size: 13.8px; line-height: 1.55; color: var(--ink-soft); }
.cc-more { margin-top: 8px; }
.cc-more summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--green); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.cc-more summary::-webkit-details-marker { display: none; }
.cc-more summary::after { content: "+"; font-size: 16px; line-height: 1; transition: transform .2s ease; }
.cc-more[open] summary::after { transform: rotate(45deg); }
.cc-more ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 5px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }

.cc-switch { position: relative; flex: none; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-track { position: relative; width: 46px; height: 28px; border-radius: 999px; background: #cfc8b6; transition: background .25s ease; }
.cc-track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.cc-switch input:checked + .cc-track { background: var(--green); }
.cc-switch input:checked + .cc-track::after { transform: translateX(18px); }
.cc-switch input:focus-visible + .cc-track { outline: 3px solid rgba(26, 127, 69, .35); outline-offset: 2px; }
.cc-switch.is-locked { cursor: default; }
.cc-switch.is-locked .cc-track { background: #9bbfa9; }
.cc-always { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); white-space: nowrap; }

@media (max-width: 520px) {
  .cc { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 22px 20px 18px; border-radius: 24px; }
  .cc-actions { grid-template-columns: 1fr; }
  .cc-foot { flex-direction: column-reverse; align-items: stretch; }
  .cc-foot .cc-legal { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .cc { transition: opacity .2s ease; filter: none; transform: none; } .cc.is-out { transform: none; filter: none; } }

/* Footer-Link "Cookie-Einstellungen" */
.footer-bottom .links .cc-open { background: none; border: 0; padding: 0; font: inherit; color: var(--footer-1); cursor: pointer; }
.footer-bottom .links .cc-open:hover { color: #fff; text-decoration: underline; }

/* Datenschutzseite */
.legal-doc .legal-draft { margin-top: 18px; padding: 12px 16px; border-radius: 14px; background: #fff7e8; border: 1px solid #f0dcb6; color: #5c4212; font-size: 14.5px; line-height: 1.55; max-width: 46em; }
.legal-stack { margin-top: 30px; display: grid; gap: 16px; }
.legal-stack .legal-card p { margin: 12px 0 0; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.legal-stack .legal-card h2 { margin: 0; }
.legal-stack .legal-card ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.legal-stack .legal-card a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.legal-btn { margin-left: 6px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--deep) 35%, #fff); background: #fff; color: var(--deep); font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.legal-btn:hover { background: #f1ede2; border-color: var(--deep); }
