/* KÖRPERFORMEN Delbrück – Cookie-Banner im Corporate Design */

.kfc {
  --kfc-green: #98c52b;
  --kfc-green-dark: #78a51f;
  --kfc-ink: #202522;
  --kfc-muted: #5c655f;
  --kfc-soft: #f5f7f2;
  --kfc-line: #e2e7df;

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  display: flex;
  justify-content: center;
  padding: 18px;
  pointer-events: none;
  font-family: Inter, Arial, sans-serif;
  color: var(--kfc-ink);
  -webkit-font-smoothing: antialiased;
}

.kfc[hidden],
.kfc [hidden] { display: none !important; }

.kfc *,
.kfc *::before,
.kfc *::after { box-sizing: border-box; }

.kfc-card {
  pointer-events: auto;
  width: min(1080px, 100%);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--kfc-line);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(35, 43, 37, .22);
  animation: kfc-in .35s cubic-bezier(.2, .8, .2, 1);
}

.kfc.kfc-is-settings .kfc-card { width: min(680px, 100%); }

@keyframes kfc-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Typo ---------- */
.kfc .kfc-kicker {
  margin: 0 0 8px;
  color: var(--kfc-green-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.kfc .kfc-title {
  margin: 0 0 10px;
  color: var(--kfc-ink);
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.kfc .kfc-desc {
  margin: 0;
  color: var(--kfc-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.kfc .kfc-links {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: var(--kfc-muted);
  font-size: 13px;
  line-height: 1.4;
}

.kfc .kfc-links a,
.kfc .kfc-link {
  padding: 0;
  color: var(--kfc-muted);
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.kfc .kfc-link[data-kfc="settings"] {
  color: var(--kfc-green-dark);
  font-weight: 800;
}

.kfc .kfc-links a:hover,
.kfc .kfc-link:hover { color: var(--kfc-ink); }

/* ---------- Hauptansicht ---------- */
.kfc-view[data-view="main"] {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
}

.kfc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 250px;
}

/* ---------- Buttons ---------- */
.kfc .kfc-btn {
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--kfc-green);
  border-radius: 999px;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.kfc .kfc-btn:hover { transform: translateY(-2px); }

.kfc .kfc-btn-primary {
  color: var(--kfc-ink);
  background: var(--kfc-green);
  box-shadow: 0 14px 30px rgba(152, 197, 43, .24);
}

.kfc .kfc-btn-primary:hover {
  color: #fff;
  background: var(--kfc-green-dark);
  border-color: var(--kfc-green-dark);
}

.kfc .kfc-btn-secondary {
  color: var(--kfc-ink);
  background: #fff;
}

.kfc .kfc-btn-secondary:hover {
  color: #fff;
  background: var(--kfc-green-dark);
  border-color: var(--kfc-green-dark);
}

.kfc .kfc-btn:focus-visible,
.kfc .kfc-link:focus-visible,
.kfc .kfc-links a:focus-visible,
.kfc .kfc-switch input:focus-visible + .kfc-slider {
  outline: 3px solid rgba(120, 165, 31, .45);
  outline-offset: 3px;
}

/* ---------- Einstellungen ---------- */
.kfc-cats {
  margin: 20px 0 22px;
  display: grid;
  gap: 10px;
}

.kfc-cat {
  padding: 16px 18px;
  background: var(--kfc-soft);
  border: 1px solid var(--kfc-line);
  border-radius: 18px;
}

.kfc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
  font-size: 15.5px;
}

.kfc-cat-head strong { font-weight: 800; }

.kfc .kfc-cat p {
  margin: 0;
  color: var(--kfc-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.kfc-always {
  padding: 5px 11px;
  color: var(--kfc-green-dark);
  background: rgba(152, 197, 43, .15);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.kfc-switch {
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 30px;
  cursor: pointer;
}

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

.kfc-slider {
  position: absolute;
  inset: 0;
  background: #cfd6d0;
  border-radius: 999px;
  transition: background .18s ease;
  pointer-events: none;
}

.kfc-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(35, 43, 37, .2);
  transition: transform .18s ease;
}

.kfc-switch input:checked + .kfc-slider { background: var(--kfc-green); }
.kfc-switch input:checked + .kfc-slider::before { transform: translateX(20px); }

.kfc-actions-settings {
  flex-direction: row;
  min-width: 0;
}

.kfc-actions-settings .kfc-btn { flex: 1 1 0; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .kfc-view[data-view="main"] {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .kfc-actions { min-width: 0; }
}

@media (max-width: 620px) {
  .kfc { padding: 10px; }

  .kfc-card {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 22px 20px 20px;
    border-radius: 22px;
  }

  .kfc .kfc-title { font-size: 20px; }
  .kfc .kfc-desc { font-size: 13.5px; line-height: 1.55; }

  .kfc-actions-settings { flex-direction: column-reverse; }
  .kfc .kfc-btn { width: 100%; min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .kfc-card { animation: none; }
  .kfc .kfc-btn, .kfc-slider, .kfc-slider::before { transition: none; }
}

@media print {
  .kfc { display: none !important; }
}
