/* Kontor Systems Cookie Consent */
.ks-cookie-consent *, .ks-cookie-modal *, .ks-cookie-settings-btn { box-sizing: border-box; }
.ks-cookie-consent {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 99990;
  display: none;
  justify-content: center;
  pointer-events: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ks-cookie-consent.is-visible { display: flex; }
.ks-cookie-box {
  width: min(1080px, 100%);
  background: #FFFFFF;
  color: #1A1614;
  border: 1px solid #F1DCDC;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(26, 22, 20, 0.18);
  padding: 22px;
  pointer-events: auto;
}
.ks-cookie-eyebrow {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8C0606;
  font-weight: 700;
  margin-bottom: 8px;
}
.ks-cookie-title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 750;
  margin: 0 0 8px;
}
.ks-cookie-text {
  font-size: 14px;
  line-height: 1.6;
  color: #4A4542;
  margin: 0;
  max-width: 760px;
}
.ks-cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
}
.ks-cookie-btn, .ks-cookie-settings-btn {
  border: 1px solid #EBCFCF;
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  background: #FFFFFF;
  color: #8C0606;
  line-height: 1.1;
}
.ks-cookie-btn:hover, .ks-cookie-settings-btn:hover { background: #FBF3F3; }
.ks-cookie-btn-primary {
  background: #8C0606;
  color: #FFFFFF;
  border-color: #8C0606;
  box-shadow: 0 8px 20px rgba(140,6,6,.22);
}
.ks-cookie-btn-primary:hover { background: #7A0505; }
.ks-cookie-btn-quiet { color: #4A4542; }
.ks-cookie-link { color: #8C0606; font-weight: 650; text-decoration: none; }
.ks-cookie-link:hover { color: #B01818; }
.ks-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(26, 22, 20, .46);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ks-cookie-modal.is-visible { display: flex; }
.ks-cookie-panel {
  width: min(680px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  background: #FFFFFF;
  color: #1A1614;
  border-radius: 18px;
  border: 1px solid #F1DCDC;
  box-shadow: 0 30px 90px rgba(0,0,0,.24);
}
.ks-cookie-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 22px 16px;
  border-bottom: 1px solid #F1DCDC;
}
.ks-cookie-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #EBCFCF;
  background: #FFFFFF;
  color: #8C0606;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ks-cookie-panel-body { padding: 18px 22px 22px; }
.ks-cookie-category {
  border: 1px solid #F1DCDC;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  background: #FFFFFF;
}
.ks-cookie-category-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}
.ks-cookie-category-title { font-size: 15px; font-weight: 750; margin: 0; }
.ks-cookie-category-desc { font-size: 13.5px; line-height: 1.55; color: #4A4542; margin: 0; }
.ks-cookie-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  color: #4A4542;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.ks-cookie-switch input { width: 18px; height: 18px; accent-color: #8C0606; }
.ks-cookie-switch input:disabled { cursor: not-allowed; opacity: .7; }
.ks-cookie-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 8px;
}
.ks-cookie-settings-btn {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 99980;
  display: none;
  padding: 10px 13px;
  font-size: 13px;
  background: #FFFFFF;
  box-shadow: 0 10px 28px rgba(26, 22, 20, .12);
}
.ks-cookie-settings-btn.is-visible { display: inline-flex; }
@media (max-width: 700px) {
  .ks-cookie-consent { left: 10px; right: 10px; bottom: 10px; }
  .ks-cookie-box { padding: 18px; border-radius: 15px; }
  .ks-cookie-actions, .ks-cookie-panel-actions { display: grid; grid-template-columns: 1fr; }
  .ks-cookie-btn { width: 100%; }
  .ks-cookie-category-head { align-items: flex-start; flex-direction: column; }
  .ks-cookie-settings-btn { left: 10px; bottom: 10px; }
}
/* Kein dauerhafter Floating-Button: Cookie-Einstellungen nur im Banner anzeigen */
.ks-cookie-settings-btn { display: none !important; }
.ks-cookie-settings-btn.is-visible { display: none !important; }
