/* KlarHilfe – Marke und visuelle Anpassungen auf der DE-Landing */
body {
  padding-bottom: 0;
}

:root {
  --color-petrol: #1e3a8a;
  --color-petrol-hover: #1e40af;
  --color-petrol-light: #dbeafe;
}

.header__brand {
  text-indent: 0;
  width: auto;
  height: auto;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-petrol);
  overflow: visible;
  position: static;
}

.header__brand::before {
  display: none;
}

.header__logo-icon::before {
  content: "KH";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--color-petrol);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  background-image: none;
  filter: none;
}

.image-showcase__card img {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  object-position: center;
}

.image-showcase__card img[alt*="Unterlagen"] {
  object-position: center 35%;
}

.image-showcase__card img[alt*="telefoniert"] {
  object-position: center 20%;
}

/* Consent + popup: barra inferior compacta */
body.cookie-modal-open {
  overflow: auto;
}

.cookie-modal {
  z-index: 10060;
  padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
  align-items: flex-end;
  justify-content: center;
}

.cookie-modal.show {
  pointer-events: none;
  background: transparent;
}

.cookie-modal__content--compact,
.cookie-modal__content {
  width: min(96vw, 22rem);
  max-height: none;
  overflow: visible;
  padding: 0.55rem 0.65rem 0.6rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.22);
  pointer-events: auto;
  position: relative;
  z-index: 10081;
}

.cookie-modal__header {
  margin-bottom: 0.35rem;
}

.cookie-modal__header h3 {
  font-size: 0.82rem;
  margin: 0 0 0.1rem;
  line-height: 1.2;
}

.cookie-modal__intro {
  font-size: 0.68rem;
  line-height: 1.3;
  margin: 0;
  color: #617379;
}

.cookie-modal__eyebrow {
  display: none;
}

.cookie-modal__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  padding: 0.25rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-modal__toggle input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--color-petrol);
  flex-shrink: 0;
}

.cookie-modal__option {
  display: none;
}

.cookie-modal__actions--row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 0.3rem;
  margin-top: 0;
}

.cookie-modal__actions .btn {
  min-height: 30px;
  padding: 0.32rem 0.4rem;
  font-size: 0.7rem;
  line-height: 1.15;
  white-space: nowrap;
}

.call-popup-overlay {
  z-index: 10070;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none !important;
  background: transparent !important;
}

.call-popup-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: none !important;
  background: rgba(15, 23, 42, 0.32) !important;
}

.call-popup {
  max-width: min(94vw, 22rem);
  width: 100%;
  margin: 0 auto;
  padding: 1.35rem 1.25rem 1.2rem;
  border-radius: 1rem;
  transform: translateY(12px) scale(0.96);
  pointer-events: auto;
  position: relative;
  z-index: 10071;
  text-align: center;
}

.call-popup-overlay.show .call-popup {
  transform: translateY(0) scale(1);
}

.call-popup__icon {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 0.65rem;
  background-color: #fef3c7;
  color: #d97706;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-popup__icon svg {
  width: 22px;
  height: 22px;
}

.call-popup h3 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.85rem;
  color: var(--color-petrol, #0f4c5c);
  padding: 0 0.5rem;
}

.call-popup__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  border-radius: 0.65rem;
}

.call-popup__cta::before,
.call-popup__cta::after {
  content: none !important;
  display: none !important;
}

.call-popup__number {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.call-popup .btn,
.call-popup__cta.btn {
  min-height: 56px;
  padding: 0.85rem 1rem;
  font-size: 1.35rem !important;
}

.call-popup__close {
  top: 0.5rem;
  right: 0.55rem;
  font-size: 1.5rem;
  pointer-events: auto;
  padding: 0.2rem 0.35rem;
}

@media (max-width: 767px) {
  .call-popup-overlay {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    transform: none;
    align-items: flex-start;
    justify-content: center;
    padding: calc(42vh - 7rem) 1rem 0;
    margin: 0;
  }

  .call-popup-overlay.show {
    transform: none;
    background: rgba(15, 23, 42, 0.28) !important;
  }

  .call-popup {
    max-width: min(96vw, 24rem);
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1.35rem 1.35rem;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(15, 76, 92, 0.12);
  }

  .call-popup__icon {
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.75rem;
  }

  .call-popup__icon svg {
    width: 26px;
    height: 26px;
  }

  .call-popup h3 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.35;
  }

  .call-popup__cta,
  .call-popup .btn,
  .call-popup__cta.btn {
    min-height: 60px;
    padding: 0.95rem 1.1rem;
    font-size: 1.5rem !important;
    letter-spacing: 0.05em;
  }

  .cookie-modal {
    z-index: 10080;
    pointer-events: none;
  }

  .cookie-modal.show {
    pointer-events: none;
  }
}

@media (max-width: 380px) {
  .cookie-modal__actions--row {
    grid-template-columns: 1fr 1fr;
  }

  .cookie-modal__actions--row .js-cookie-accept-all {
    grid-column: 1 / -1;
  }
}

body.popup-open {
  overflow: auto;
}

.call-popup-overlay.show .call-popup__cta {
  position: relative;
  z-index: 1;
}
