/* ==========================================================================
   Die Insel — Cookie-Banner & Cookie-Einstellungen
   Eigenständig (funktioniert auf index.html und den Rechtsseiten).
   Farben: Dunkelgrün, Creme, Gold — wie styles.css.
   ========================================================================== */
.cc-banner,.cc-modal{
  --cc-green:#16281E; --cc-green-2:#1E3629; --cc-cream:#F6F0E3; --cc-cream-soft:#F3ECDC;
  --cc-muted:#B9C6B4; --cc-gold:#C4A052; --cc-gold-soft:#D8BE84; --cc-line:rgba(233,217,189,.18);
  --cc-serif:'Cormorant Garamond',Georgia,'Times New Roman',serif;
  --cc-sans:'Jost',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  font-family:var(--cc-sans); color:var(--cc-cream-soft); line-height:1.6;
  -webkit-font-smoothing:antialiased; box-sizing:border-box;
}
.cc-banner *,.cc-modal *{box-sizing:border-box}
.cc-banner[hidden],.cc-modal[hidden]{display:none !important}

.cc-eyebrow{margin:0 0 .35em; font-size:.7rem; letter-spacing:.22em; text-transform:uppercase; color:var(--cc-gold-soft)}
.cc-title{margin:0 0 .4em; font-family:var(--cc-serif); font-weight:500; font-size:clamp(1.5rem,3.4vw,1.9rem); line-height:1.1; color:#fff}
.cc-banner p,.cc-modal p{margin:0 0 .7em; font-size:.93rem; font-weight:300}
.cc-banner a,.cc-modal a{color:var(--cc-gold-soft); text-decoration:underline; text-underline-offset:3px}
.cc-banner a:hover,.cc-modal a:hover{color:#fff}
.cc-links{font-size:.84rem !important; color:var(--cc-muted)}
.cc-banner :focus-visible,.cc-modal :focus-visible{outline:2px solid var(--cc-gold-soft); outline-offset:3px}

/* ---- Buttons (Zustimmung und Ablehnung gleich gewichtet) ---------------- */
.cc-btn{
  appearance:none; cursor:pointer; font:inherit; font-size:.92rem; font-weight:500; letter-spacing:.02em;
  min-height:46px; padding:.7em 1.3em; border-radius:999px; border:1px solid transparent;
  transition:background-color .2s, color .2s, border-color .2s, transform .2s;
  text-align:center; line-height:1.2;
}
.cc-btn:hover{transform:translateY(-1px)}
.cc-btn--solid{background:var(--cc-cream); color:var(--cc-green); border-color:var(--cc-cream)}
.cc-btn--solid:hover{background:#fff}
.cc-btn--outline{background:transparent; color:var(--cc-cream-soft); border-color:rgba(243,236,220,.45)}
.cc-btn--outline:hover{background:rgba(243,236,220,.08); border-color:var(--cc-gold-soft)}
.cc-btn--gold{background:linear-gradient(180deg,var(--cc-gold-soft),var(--cc-gold)); color:var(--cc-green); border-color:var(--cc-gold)}

/* ---- Banner -------------------------------------------------------------- */
.cc-banner{
  position:fixed; z-index:9000; left:16px; right:16px;
  bottom:calc(16px + env(safe-area-inset-bottom, 0px));
  max-width:1100px; margin-inline:auto;
  background:var(--cc-green); border:1px solid var(--cc-line); border-top:2px solid var(--cc-gold);
  border-radius:18px; box-shadow:0 30px 70px -30px rgba(0,0,0,.7);
  opacity:0; transform:translateY(16px); transition:opacity .35s ease, transform .35s ease;
}
.cc-banner.is-visible{opacity:1; transform:none}
.cc-banner__inner{display:grid; grid-template-columns:1fr auto; gap:28px; align-items:center; padding:24px 28px}
.cc-banner__text p:last-child{margin-bottom:0}
.cc-actions{display:flex; flex-direction:column; gap:10px; min-width:250px}
.cc-actions .cc-btn{width:100%}

@media (max-width:760px){
  .cc-banner{left:10px; right:10px; bottom:calc(10px + env(safe-area-inset-bottom, 0px)); border-radius:16px; max-height:calc(100vh - 20px); overflow:auto}
  .cc-banner__inner{grid-template-columns:1fr; gap:16px; padding:20px 18px}
  .cc-actions{min-width:0}
  .cc-banner p{font-size:.88rem}
}

/* ---- Einstellungen ------------------------------------------------------- */
.cc-modal{position:fixed; inset:0; z-index:9100; display:flex; align-items:center; justify-content:center; padding:16px}
.cc-modal__backdrop{position:absolute; inset:0; background:rgba(10,20,14,.66); backdrop-filter:blur(3px)}
.cc-modal__panel{
  position:relative; width:100%; max-width:620px; max-height:calc(100vh - 32px);
  display:flex; flex-direction:column;
  background:var(--cc-green); border:1px solid var(--cc-line); border-top:2px solid var(--cc-gold);
  border-radius:20px; box-shadow:0 40px 90px -30px rgba(0,0,0,.8); overflow:hidden;
}
.cc-modal__head{display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:22px 24px 10px}
.cc-close{
  appearance:none; cursor:pointer; flex:none; width:42px; height:42px; border-radius:50%;
  background:transparent; border:1px solid var(--cc-line); color:var(--cc-cream-soft); font-size:1.5rem; line-height:1;
}
.cc-close:hover{border-color:var(--cc-gold-soft); color:#fff}
.cc-modal__body{padding:4px 24px 8px; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch}
.cc-modal__foot{display:flex; flex-wrap:wrap; gap:10px; padding:16px 24px 20px; border-top:1px solid var(--cc-line); background:var(--cc-green-2)}
.cc-modal__foot .cc-btn{flex:1 1 160px}
.cc-modal__foot .cc-links{flex-basis:100%; margin:4px 0 0; text-align:center}

.cc-cat{padding:14px 0; border-top:1px solid var(--cc-line)}
.cc-cat__head{display:flex; justify-content:space-between; align-items:center; gap:16px}
.cc-cat__title{font-family:var(--cc-serif); font-size:1.25rem; font-weight:600; color:#fff; cursor:pointer}
.cc-cat__text{margin:.35em 0 0 !important; font-size:.86rem !important; color:var(--cc-muted)}
.cc-badge{display:inline-block; margin-left:.4em; padding:.1em .6em; border-radius:999px; font-family:var(--cc-sans); font-size:.68rem; font-weight:500; letter-spacing:.08em; text-transform:uppercase; color:var(--cc-green); background:var(--cc-gold-soft); vertical-align:middle}

/* Schalter */
.cc-switch{position:relative; flex:none; width:52px; height:30px}
.cc-switch input{position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; z-index:1}
.cc-switch input:disabled{cursor:not-allowed}
.cc-switch__track{position:absolute; inset:0; border-radius:999px; background:rgba(243,236,220,.18); border:1px solid rgba(243,236,220,.35); transition:background-color .2s}
.cc-switch__track::after{content:""; position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%; background:var(--cc-cream); transition:transform .2s}
.cc-switch input:checked + .cc-switch__track{background:var(--cc-gold); border-color:var(--cc-gold)}
.cc-switch input:checked + .cc-switch__track::after{transform:translateX(22px); background:#fff}
.cc-switch input:disabled + .cc-switch__track{opacity:.6}
.cc-switch input:focus-visible + .cc-switch__track{outline:2px solid var(--cc-gold-soft); outline-offset:3px}

html.cc-modal-open{overflow:hidden}

@media (max-width:520px){
  .cc-modal{padding:0; align-items:flex-end}
  .cc-modal__panel{max-height:92vh; border-radius:20px 20px 0 0}
  .cc-modal__head{padding:18px 18px 8px}
  .cc-modal__body{padding:4px 18px 8px}
  .cc-modal__foot{padding:14px 18px calc(16px + env(safe-area-inset-bottom, 0px))}
  .cc-modal__foot .cc-btn{flex-basis:100%}
}

@media (prefers-reduced-motion:reduce){
  .cc-banner,.cc-btn,.cc-switch__track,.cc-switch__track::after{transition:none}
}

/* Footer-Link "Cookie-Einstellungen" auf den Rechtsseiten */
.cc-footer-link{cursor:pointer}
