/* Editorial cookie consent for The ZigZag Jazz Festival.
   A small, elegant card pinned to the bottom of the viewport — not a
   full-width bar — so the site's photography and typography stay the
   star. Dark navy glass, brass accent, Playfair for the modal title. */

/* Position + sizing — small floating card, not a full-width bar */
.klaro .cookie-notice {
  position: fixed !important;
  top: auto !important;
  bottom: 1.2rem !important;
  left: 1.2rem !important;
  right: 1.2rem !important;
  width: auto !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  background: rgba(8, 16, 28, 0.88) !important;
  color: #f4e8c8 !important;
  border: 1px solid rgba(199, 155, 63, 0.22) !important;
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  font-family: 'Inter', 'Helvetica Neue', sans-serif !important;
  padding: 0.95rem 1.15rem !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  border-radius: 0 !important;
}

.klaro .cookie-notice .cn-body {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
}

.klaro .cookie-notice .cn-body p,
.klaro .cookie-notice .cn-body p#cn-notice-description {
  margin: 0 !important;
  padding: 0 !important;
  color: rgba(244, 232, 200, 0.88) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.klaro .cookie-notice .cn-body p a,
.klaro .cookie-notice .cn-body p a.cn-learn-more {
  color: #c79b3f !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(199, 155, 63, 0.4);
  padding-bottom: 1px;
}
.klaro .cookie-notice .cn-body p a:hover {
  color: #e2b95a !important;
  border-bottom-color: #e2b95a;
}

.klaro .cookie-notice .cn-ok,
.klaro .cookie-notice .cn-buttons {
  display: flex !important;
  align-items: center;
  gap: 0.4rem !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: wrap;
}

.klaro .cookie-notice .cm-btn,
.klaro .cookie-notice button {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  font-size: 0.66rem !important;
  padding: 0.6rem 1rem !important;
  border-radius: 0 !important;
  border: 1px solid transparent !important;
  cursor: pointer;
  transition: all 0.18s ease !important;
  white-space: nowrap;
  margin: 0 !important;
  line-height: 1;
}

.klaro .cookie-notice .cm-btn-accept,
.klaro .cookie-notice .cm-btn-success {
  background: #c79b3f !important;
  color: #0e1a2e !important;
  border-color: #c79b3f !important;
}
.klaro .cookie-notice .cm-btn-accept:hover,
.klaro .cookie-notice .cm-btn-success:hover {
  background: #dcb158 !important;
  border-color: #dcb158 !important;
}

.klaro .cookie-notice .cm-btn-decline {
  background: transparent !important;
  color: rgba(244, 232, 200, 0.72) !important;
  border-color: rgba(244, 232, 200, 0.22) !important;
}
.klaro .cookie-notice .cm-btn-decline:hover {
  color: #f4e8c8 !important;
  border-color: rgba(244, 232, 200, 0.55) !important;
}

.klaro .cookie-notice .cm-btn-info {
  background: transparent !important;
  color: rgba(244, 232, 200, 0.55) !important;
  border-color: transparent !important;
  padding: 0.6rem 0.4rem !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.1em !important;
}
.klaro .cookie-notice .cm-btn-info:hover {
  color: #c79b3f !important;
}

/* ─── Settings modal ─── */
.klaro .cookie-modal {
  background: rgba(0, 0, 0, 0.74) !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.klaro .cookie-modal .cm-modal {
  background: #0c1726 !important;
  color: #f4e8c8 !important;
  border: 1px solid rgba(199, 155, 63, 0.22) !important;
  border-radius: 0 !important;
  font-family: 'Inter', sans-serif !important;
  width: 100% !important;
  max-width: 560px !important;
  max-height: calc(100vh - 2.4rem) !important;
  overflow-y: auto !important;
  position: relative !important;
  margin: 0 !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  display: flex !important;
  flex-direction: column !important;
}
.klaro .cookie-modal .cm-header {
  border-bottom: 1px solid rgba(244, 232, 200, 0.1) !important;
  padding: 1.15rem 1.4rem !important;
  position: relative !important;
}
.klaro .cookie-modal .cm-header h1,
.klaro .cookie-modal .cm-header h2 {
  color: #f4e8c8 !important;
  font-family: 'Playfair Display', serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em;
  font-size: 1.25rem !important;
  margin: 0 !important;
  padding-right: 2.5rem !important;
}
.klaro .cookie-modal .cm-header p,
.klaro .cookie-modal .cm-header .cm-header-buttons {
  margin: 0.4rem 0 0 0 !important;
  padding: 0 !important;
}
.klaro .cookie-modal .hide,
.klaro .cookie-modal .cm-modal > .hide {
  position: absolute !important;
  top: 0.9rem !important;
  right: 0.95rem !important;
  background: transparent !important;
  border: 0 !important;
  color: rgba(244, 232, 200, 0.6) !important;
  font-size: 1.5rem !important;
  line-height: 1 !important;
  padding: 0.2rem !important;
  cursor: pointer !important;
  z-index: 2 !important;
}
.klaro .cookie-modal .hide:hover {
  color: #c79b3f !important;
}
.klaro .cookie-modal .cm-body {
  padding: 1.15rem 1.4rem !important;
  flex: 1 1 auto;
  overflow-y: auto;
}
.klaro .cookie-modal .cm-body > p {
  margin: 0 0 1rem 0 !important;
}
.klaro .cookie-modal .cm-body p,
.klaro .cookie-modal .cm-body .cm-purposes p,
.klaro .cookie-modal .cm-body .cm-services .cm-service .cm-description,
.klaro .cookie-modal .cm-list-description {
  color: rgba(244, 232, 200, 0.72) !important;
  font-size: 0.82rem !important;
  line-height: 1.55;
}
.klaro .cookie-modal a {
  color: #c79b3f !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(199, 155, 63, 0.4);
}
.klaro .cookie-modal ul.cm-services,
.klaro .cookie-modal ul.cm-purposes {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.klaro .cookie-modal .cm-purposes .cm-purpose,
.klaro .cookie-modal .cm-services .cm-service,
.klaro .cookie-modal .cm-list-input + .cm-list-label,
.klaro .cookie-modal .cm-list-item {
  border-color: rgba(244, 232, 200, 0.08) !important;
  background: transparent !important;
}
.klaro .cookie-modal .cm-purposes .cm-purpose {
  padding: 0.95rem 0 !important;
  border-bottom: 1px solid rgba(244, 232, 200, 0.08) !important;
  position: relative !important;
}
.klaro .cookie-modal .cm-purposes .cm-purpose:last-child {
  border-bottom: 0 !important;
}

/* Klaro v0.7 markup:
     <li class="cm-purpose">
       <input class="cm-list-input" type="checkbox">
       <label class="cm-list-label">
         <span class="cm-list-title">Title</span>
         <span class="cm-switch"><div class="slider round active"></div></span>
       </label>
       <div><p class="cm-list-description">...</p></div>
       <div class="cm-services">...</div>
     </li>
   The visible checkbox is hidden, slider is the actual UI. Title and
   switch live INSIDE .cm-list-label as flex children — title left,
   switch right. */
.klaro .cookie-modal .cm-list-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  clip: rect(0 0 0 0) !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
.klaro .cookie-modal .cm-list-label {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  cursor: pointer !important;
}
.klaro .cookie-modal .cm-list-label .cm-list-title {
  flex: 1 1 auto !important;
  color: #f4e8c8 !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  font-size: 0.92rem !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
}
.klaro .cookie-modal .cm-list-label .cm-switch {
  position: relative !important;
  flex: 0 0 50px !important;
  width: 50px !important;
  height: 26px !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}
.klaro .cookie-modal .cm-list-label .cm-switch .slider {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  cursor: pointer !important;
  border-radius: 26px !important;
  background-color: rgba(244, 232, 200, 0.2) !important;
  transition: background-color 0.18s ease !important;
}
.klaro .cookie-modal .cm-list-label .cm-switch .slider:before {
  content: '' !important;
  position: absolute !important;
  height: 18px !important;
  width: 18px !important;
  left: 4px !important;
  top: 4px !important;
  background-color: #f4e8c8 !important;
  border-radius: 50% !important;
  transition: transform 0.18s ease !important;
}
/* Drive the slider visual state from the checkbox itself so a click on the
   label flips the slider immediately, regardless of whether Klaro re-renders
   the `.active` class. Sibling selector: input:checked ~ label .slider. */
.klaro .cookie-modal .cm-list-label .cm-switch .slider.active,
.klaro .cookie-modal .cm-list-input:checked ~ .cm-list-label .cm-switch .slider {
  background-color: #c79b3f !important;
}
.klaro .cookie-modal .cm-list-label .cm-switch .slider.active:before,
.klaro .cookie-modal .cm-list-input:checked ~ .cm-list-label .cm-switch .slider:before {
  transform: translateX(24px) !important;
}
/* When unchecked, force the slider OFF look even if Klaro left .active on
   it from a previous state. Highest-specificity OFF rule. */
.klaro .cookie-modal .cm-list-input:not(:checked) ~ .cm-list-label .cm-switch .slider {
  background-color: rgba(244, 232, 200, 0.2) !important;
}
.klaro .cookie-modal .cm-list-input:not(:checked) ~ .cm-list-label .cm-switch .slider:before {
  transform: translateX(0) !important;
}
/* Description below the label */
.klaro .cookie-modal .cm-purpose > div > p.cm-list-description,
.klaro .cookie-modal .cm-service > div > p.cm-list-description {
  margin: 0.5rem 0 0 0 !important;
  padding: 0 !important;
}
/* Sub-services caret link */
.klaro .cookie-modal .cm-caret a {
  color: #c79b3f !important;
  font-size: 0.78rem !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(199, 155, 63, 0.4);
  padding-bottom: 1px;
}
.klaro .cookie-modal .cm-services ul.cm-content {
  list-style: none !important;
  margin: 0.6rem 0 0 0 !important;
  padding-left: 0.85rem !important;
  border-left: 1px solid rgba(244, 232, 200, 0.08);
}
.klaro .cookie-modal .cm-services ul.cm-content li.cm-service {
  padding: 0.55rem 0 !important;
  border: 0 !important;
}
.klaro .cookie-modal .cm-services ul.cm-content li.cm-service p.purposes {
  font-size: 0.72rem !important;
  color: rgba(244, 232, 200, 0.45) !important;
  margin: 0.3rem 0 0 0 !important;
  letter-spacing: 0.04em;
}

.klaro .cookie-modal .cm-list-description {
  margin: 0.45rem 0 0 0 !important;
  padding: 0 !important;
  display: block;
}

.klaro .cookie-modal .cm-purpose .cm-services {
  margin-top: 0.7rem !important;
  padding-left: 0.85rem !important;
  border-left: 1px solid rgba(244, 232, 200, 0.06);
  list-style: none !important;
}
.klaro .cookie-modal .cm-purpose .cm-services .cm-service {
  padding: 0.55rem 0 !important;
}

/* Hide the "toggle all services" row - we have individual toggles per
   purpose, the master toggle is just clutter. */
.klaro .cookie-modal .cm-services > .cm-service.cm-toggle-all,
.klaro .cookie-modal li.cm-purpose.cm-toggle-all,
.klaro .cookie-modal #disableAll,
.klaro .cookie-modal .cm-list-item[data-id="disableAll"],
.klaro .cookie-modal li:has(input#purpose-item-disableAll),
.klaro .cookie-modal .cm-purposes > li:last-child:has(.cm-switch):not(:has(.cm-list-description)) {
  display: none !important;
}

.klaro .cookie-modal .cm-footer {
  background: transparent !important;
  border-top: 1px solid rgba(244, 232, 200, 0.08) !important;
  padding: 0.95rem 1.4rem !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}
.klaro .cookie-modal .cm-footer .cm-powered-by,
.klaro .cookie-modal .cm-powered-by {
  display: none !important;
}
.klaro .cookie-modal .cm-footer button {
  font-family: 'Inter', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.16em !important;
  font-size: 0.68rem !important;
  border-radius: 0 !important;
  padding: 0.65rem 1.1rem !important;
  margin: 0 !important;
  white-space: nowrap;
}
.klaro .cookie-modal .cm-footer button.cm-btn-success {
  background: #c79b3f !important;
  color: #0e1a2e !important;
  border: 1px solid #c79b3f !important;
}
.klaro .cookie-modal .cm-footer button.cm-btn-success:hover {
  background: #dcb158 !important;
  border-color: #dcb158 !important;
}
.klaro .cookie-modal .cm-footer button.cm-btn-decline {
  background: transparent !important;
  color: #f4e8c8 !important;
  border: 1px solid rgba(244, 232, 200, 0.22) !important;
}
.klaro .cookie-modal .cm-footer button.cm-btn-info {
  background: transparent !important;
  color: rgba(244, 232, 200, 0.6) !important;
  border: 1px solid transparent !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.klaro .cookie-modal .cm-footer button.cm-btn-info:hover,
.klaro .cookie-modal .cm-footer button.cm-btn-info:focus {
  background: transparent !important;
  color: #c79b3f !important;
  border-color: transparent !important;
  text-decoration: underline;
}

/* Phone: the 3 footer buttons (Ablehnen / Speichern / Akzeptieren) were
   clipping on the left edge because flex-wrap + justify-content:flex-end
   pushed the wrapped row off the viewport. Stack vertically and stretch
   so each button gets its own full-width row, no clipping. */
@media (max-width: 600px) {
  .klaro .cookie-modal .cm-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0.55rem !important;
    padding: 0.95rem 1rem !important;
  }
  .klaro .cookie-modal .cm-footer button {
    width: 100% !important;
    text-align: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.72rem !important;
    white-space: normal !important;
  }
  /* Brass primary action stays on top so it's the obvious tap target. */
  .klaro .cookie-modal .cm-footer button.cm-btn-success {
    order: 1 !important;
  }
  .klaro .cookie-modal .cm-footer button.cm-btn-decline {
    order: 2 !important;
  }
  .klaro .cookie-modal .cm-footer button.cm-btn-info {
    order: 3 !important;
  }
}

/* Toggle sliders */
.klaro .slider {
  background-color: rgba(244, 232, 200, 0.16) !important;
}
.klaro input[type='checkbox']:checked + .slider {
  background-color: #c79b3f !important;
}
.klaro .slider:before {
  background-color: #f4e8c8 !important;
}

/* Re-open Klaro link in the footer */
a.open-klaro {
  cursor: pointer;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a.open-klaro:hover {
  color: #c79b3f;
}

/* Phone: small floating card pinned bottom-center */
@media (max-width: 720px) {
  .klaro .cookie-notice {
    left: 0.7rem !important;
    right: 0.7rem !important;
    bottom: 0.7rem !important;
    max-width: none !important;
    padding: 0.8rem 0.95rem !important;
  }
  .klaro .cookie-notice .cn-body p,
  .klaro .cookie-notice .cn-body p#cn-notice-description {
    font-size: 0.74rem !important;
  }
  .klaro .cookie-notice .cm-btn,
  .klaro .cookie-notice button {
    font-size: 0.62rem !important;
    padding: 0.55rem 0.85rem !important;
    letter-spacing: 0.14em !important;
  }
  .klaro .cookie-notice .cn-buttons,
  .klaro .cookie-notice .cn-ok {
    gap: 0.35rem !important;
  }
}
