/* ── Cookie Banner ─────────────────────────────────────────── */
#sicher-cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #1a1a1a;
  color: #e8e8e8;
  font-size: .88rem;
  line-height: 1.5;
  padding: 18px 24px;
  box-shadow: 0 -2px 16px rgba(0,0,0,.35);
  display: none;
}
#sicher-cookie-bar.is-visible { display: block; }

.sicher-cookie-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.sicher-cookie-bar__text { flex: 1 1 300px; }
.sicher-cookie-bar__text a { color: #c8f000; }
.sicher-cookie-bar__title { font-weight: 600; margin-bottom: 4px; }
.sicher-cookie-bar__btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.sicher-cookie-btn {
  padding: 9px 18px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: opacity .2s;
  white-space: nowrap;
}
.sicher-cookie-btn:hover { opacity: .85; }
.sicher-cookie-btn--accept { background: #c8f000; color: #111; }
.sicher-cookie-btn--reject { background: transparent; border-color: #888; color: #ccc; }
.sicher-cookie-btn--settings { background: transparent; border-color: #555; color: #aaa; }

/* ── Settings panel ──────────────────────────────────────── */
#sicher-cookie-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10000;
  background: #222;
  color: #e8e8e8;
  padding: 28px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.5);
  display: none;
  max-height: 85vh;
  overflow-y: auto;
}
#sicher-cookie-panel.is-visible { display: block; }

.sicher-cookie-panel__inner { max-width: 680px; margin: 0 auto; }
.sicher-cookie-panel__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 18px; }
.sicher-cookie-category {
  border-bottom: 1px solid #333;
  padding: 14px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.sicher-cookie-category:last-of-type { border-bottom: none; }
.sicher-cookie-category__info { flex: 1; }
.sicher-cookie-category__name { font-weight: 600; margin-bottom: 3px; }
.sicher-cookie-category__desc { font-size: .82rem; color: #aaa; }

/* Toggle */
.sicher-toggle {
  position: relative;
  width: 42px; height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.sicher-toggle input { opacity: 0; width: 0; height: 0; }
.sicher-toggle__slider {
  position: absolute;
  inset: 0;
  background: #444;
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s;
}
.sicher-toggle__slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.sicher-toggle input:checked + .sicher-toggle__slider { background: #c8f000; }
.sicher-toggle input:checked + .sicher-toggle__slider::before { transform: translateX(18px); }
.sicher-toggle input:disabled + .sicher-toggle__slider { opacity: .6; cursor: default; }

.sicher-cookie-panel__btns {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 20px;
}

/* ── GDPR consent modal ──────────────────────────────────── */
#sicher-gdpr-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10100;
  background: rgba(0,0,0,.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#sicher-gdpr-modal.is-visible { display: flex; }
.sicher-gdpr-modal__box {
  background: #fff;
  border-radius: 12px;
  max-width: 540px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
}
.sicher-gdpr-modal__head {
  padding: 22px 26px 14px;
  border-bottom: 1px solid #e8e8e8;
  font-weight: 700;
  font-size: 1.05rem;
}
.sicher-gdpr-modal__body {
  padding: 20px 26px;
  overflow-y: auto;
  flex: 1;
  font-size: .88rem;
  line-height: 1.6;
  color: #333;
}
.sicher-gdpr-modal__body h3 { font-size: .95rem; margin: 14px 0 6px; }
.sicher-gdpr-modal__body ul { padding-left: 18px; margin: 6px 0; }
.sicher-gdpr-modal__foot {
  padding: 14px 26px 20px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.sicher-gdpr-modal__agree {
  background: #c8f000;
  color: #111;
  border: none;
  padding: 10px 24px;
  border-radius: 7px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
}
.sicher-gdpr-modal__close {
  background: transparent;
  border: 1.5px solid #ccc;
  color: #666;
  padding: 10px 18px;
  border-radius: 7px;
  cursor: pointer;
  font-size: .9rem;
}

/* ── Legal page styles ───────────────────────────────────── */
.legal-page { padding: 60px 0 80px; }
.legal-article h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-article h2 { font-size: 1.25rem; margin-top: 36px; margin-bottom: 10px; border-top: 1px solid #eee; padding-top: 24px; }
.legal-article h3 { font-size: 1rem; margin-top: 22px; margin-bottom: 8px; }
.legal-article p, .legal-article li { font-size: .95rem; line-height: 1.75; color: #444; }
.legal-article ul { padding-left: 20px; margin: 10px 0; }
.legal-article hr { border: none; border-top: 2px solid #e8e8e8; margin: 40px 0; }
.legal-date { color: #888; font-size: .88rem; margin-bottom: 28px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: .85rem; }
.legal-table th { background: #f4f4f4; text-align: left; padding: 8px 12px; border: 1px solid #ddd; font-weight: 600; }
.legal-table td { padding: 8px 12px; border: 1px solid #ddd; vertical-align: top; }

/* ── Consent checkbox in forms ───────────────────────────── */
.sc-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 4px;
  font-size: .82rem;
  color: #555;
  line-height: 1.45;
}
.sc-consent-row input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px; height: 16px;
  cursor: pointer;
  accent-color: #c8f000;
}
.sc-consent-row a { color: #c8f000; text-decoration: underline; cursor: pointer; }

/* ── Nutzungshinweise note in calculator ─────────────────── */
.sc-legal-note {
  font-size: .78rem;
  color: #999;
  margin-top: 8px;
  text-align: center;
}
.sc-legal-note a { color: #999; text-decoration: underline; }
