/* Klaro consent UI restyled for Blaue Adler's own black/white/navy-
   accent system (adapted from the steuerberater.blaueadler.com
   reference, which used a medium blue - #007ed6 - that isn't this
   project's brand color; swapped for navy/black/white throughout).
   Structural rules (radius, spacing, mobile stacking, modal scroll
   lock) kept as-is - that part is brand-agnostic and works well. */
.klaro {
  --font-family: "Switzer", system-ui, sans-serif;
  --font-size: 15px;
  --border-radius: 14px;
  --title-font-family: "Cabinet Grotesk", sans-serif;
  --button-text-color: #fff;
}

/* Notice bar (bottom-right toast) */
.klaro .cookie-notice:not(.cookie-modal-notice) {
  background: #0a0a0a !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  max-width: 460px !important;
  right: 20px !important;
  bottom: 20px !important;
  left: auto !important;
}
@media (max-width: 560px) {
  .klaro .cookie-notice:not(.cookie-modal-notice) {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    max-width: none !important;
  }
}
.klaro .cookie-notice .cn-body { padding: 22px 24px 20px !important; }
.klaro .cookie-notice .cn-body p {
  color: #a9bac8 !important;
  font-size: 0.94rem !important;
  line-height: 1.6 !important;
  margin-bottom: 14px !important;
}
.klaro .cookie-notice .cn-body p.cn-ok { padding-top: 6px !important; }
.klaro .cookie-notice .cn-body strong,
.klaro .cookie-modal strong { color: #fff; }
.klaro .cn-body a,
.klaro .cm-modal a {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Buttons - same language as the rest of the site: solid white for the
   primary action on a dark surface, outline/ghost for secondary. */
.klaro .cm-btn {
  font-family: "Cabinet Grotesk", sans-serif !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  padding: 11px 20px !important;
  font-size: 0.92rem !important;
  border: 2px solid transparent !important;
  transition: background 0.2s, border-color 0.2s;
}
.klaro .cm-btn.cm-btn-success {
  background: #fff !important;
  color: #0f1e30 !important;
}
.klaro .cm-btn.cm-btn-success:hover { background: rgba(255, 255, 255, 0.9) !important; }
.klaro .cm-btn.cm-btn-decline,
.klaro .cm-btn.cm-btn-danger {
  background: transparent !important;
  color: #e3e6ea !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
}
.klaro .cm-btn.cm-btn-decline:hover,
.klaro .cm-btn.cm-btn-danger:hover {
  border-color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}
.klaro .cm-btn.cm-btn-info {
  background: transparent !important;
  color: #a9bac8 !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}
.klaro .cm-btn.cm-btn-info:hover {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}
.klaro .cn-buttons { display: flex !important; gap: 10px !important; flex-wrap: wrap !important; }
@media (max-width: 560px) {
  .klaro .cn-buttons { flex-direction: column; }
  .klaro .cn-buttons .cm-btn { width: 100% !important; margin: 0 !important; }
}

/* Detailed-settings modal - light, matches the rest of the site's
   white sections */
.klaro .cookie-modal .cm-bg { background: rgba(10, 10, 10, 0.78) !important; }
.klaro .cookie-modal .cm-modal {
  border-radius: 20px !important;
  background: #fff !important;
  color: #0f1e30 !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4) !important;
}
.klaro .cookie-modal .cm-header { border-bottom: 1px solid #e2e6ea !important; padding: 26px 26px 18px !important; }
.klaro .cookie-modal .cm-header h1 {
  font-family: "Cabinet Grotesk", sans-serif !important;
  font-weight: 800 !important;
  color: #0f1e30 !important;
  font-size: 1.4rem !important;
}
.klaro .cookie-modal .cm-body { padding: 20px 26px !important; color: #57697a !important; }
.klaro .cookie-modal .cm-footer {
  border-top: 1px solid #e2e6ea !important;
  padding: 18px 26px 22px !important;
  background: #f2f4f6 !important;
  border-radius: 0 0 20px 20px !important;
}
.klaro .cookie-modal .cm-list-title {
  font-family: "Cabinet Grotesk", sans-serif !important;
  font-weight: 700 !important;
  color: #0f1e30 !important;
  font-size: 1rem !important;
}
.klaro .cookie-modal .cm-list-description { color: #57697a !important; font-size: 0.9rem !important; line-height: 1.55 !important; }
.klaro .cookie-modal .cm-list-input:checked + .cm-list-label .slider { background: #0f1e30 !important; }
.klaro .cookie-modal .cm-list-label .slider { background: #c9d1d9 !important; }
.klaro .cookie-modal .cm-caret,
.klaro .cookie-modal .cm-caret a { color: #57697a !important; }
.klaro .cm-powered-by { display: none !important; }
.klaro .cookie-modal .cm-footer-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .klaro .cookie-modal .cm-footer-buttons { flex-direction: column; }
  .klaro .cookie-modal .cm-footer-buttons .cm-btn { width: 100% !important; margin: 0 !important; }
}
.klaro .cookie-modal .cm-btn.cm-btn-decline,
.klaro .cookie-modal .cm-btn.cm-btn-info {
  color: #0f1e30 !important;
  border-color: #e2e6ea !important;
}
.klaro .cookie-modal .cm-btn.cm-btn-decline:hover,
.klaro .cookie-modal .cm-btn.cm-btn-info:hover {
  border-color: #0f1e30 !important;
  color: #0f1e30 !important;
  background: transparent !important;
}

.klaro .cookie-notice:not(.cookie-modal-notice) { outline: 0 !important; }
.klaro .cookie-notice.cn-buttons-inline,
.klaro .cookie-notice * { outline: 0 !important; }
.klaro .cn-body .cn-ok {
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  margin-top: 14px !important;
  padding-top: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}
.klaro .cn-learn-more {
  color: #fff !important;
  font-size: 0.9rem !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}

/* Readability + close button inside the settings modal */
.klaro .cookie-modal .cm-body p,
.klaro .cookie-modal .cm-body li,
.klaro .cookie-modal .cm-list-description,
.klaro .cookie-modal .cm-header p { color: #57697a !important; }
.klaro .cookie-modal .cm-header .hide,
.klaro .cookie-modal .cm-btn-close {
  background: transparent !important;
  border: 1.5px solid #e2e6ea !important;
  border-radius: 999px !important;
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
}
.klaro .cookie-modal .cm-header .hide svg { stroke: #0f1e30 !important; fill: #0f1e30 !important; width: 14px !important; height: 14px !important; }
.klaro .cookie-modal .cm-header .hide:hover { border-color: #0f1e30 !important; background: #f2f4f6 !important; }
.klaro .cookie-modal .cm-services .cm-service { border-top: 1px solid #e2e6ea !important; padding-top: 14px !important; margin-top: 14px !important; }

/* Small screens: buttons stacked, footer/header pinned, only the body
   scrolls */
@media (max-width: 600px) {
  .klaro .cookie-modal .cm-footer { padding: 16px 18px 20px !important; }
  .klaro .cookie-modal .cm-footer .cm-footer-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .klaro .cookie-modal .cm-footer .cm-footer-buttons .cm-btn {
    width: 100% !important;
    margin: 0 !important;
    white-space: nowrap !important;
    min-height: 48px !important;
  }
  .klaro .cookie-modal .cm-modal { max-height: 92vh !important; }
  .klaro .cookie-modal .cm-body { padding: 18px !important; }
  .klaro .cookie-modal .cm-header { padding: 20px 18px 14px !important; }
}
@supports (height: 100dvh) {
  @media (max-width: 600px) {
    .klaro .cookie-modal .cm-modal { max-height: 92dvh !important; }
  }
}
.klaro .cookie-modal .cm-modal {
  display: flex !important;
  flex-direction: column !important;
  max-height: 88vh !important;
  overflow: hidden !important;
}
.klaro .cookie-modal .cm-modal .cm-header { flex: 0 0 auto !important; }
.klaro .cookie-modal .cm-modal .cm-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
.klaro .cookie-modal .cm-modal .cm-footer { flex: 0 0 auto !important; }
@supports (height: 100dvh) {
  .klaro .cookie-modal .cm-modal { max-height: 88dvh !important; }
}
