/* Alber Cookie – scoped, barrierearm, CI-nahe Farben */
.alber-cookie,
.alber-cookie * {
  box-sizing: border-box;
}

.alber-cookie--hidden {
  display: none !important;
}

.alber-cookie__overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(15, 29, 47, 0.45);
  animation: alber-cookie-fade 0.25s ease-out;
}

@media (min-width: 640px) {
  .alber-cookie__overlay {
    align-items: center;
  }
}

@keyframes alber-cookie-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.alber-cookie__panel {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: min(88vh, 40rem);
  overflow: auto;
  background: #fff;
  color: #0f1d2f;
  border-radius: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  border: 1px solid #cfd8e6;
}

.alber-cookie__head {
  padding: 1.25rem 1.25rem 0;
  padding-right: 3rem;
}

.alber-cookie__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #4b5563;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.alber-cookie__close:hover,
.alber-cookie__close:focus {
  background: #f4f6f8;
  color: #0f1d2f;
}

.alber-cookie__close:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

.alber-cookie__title {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #0f1d2f;
}

.alber-cookie__intro {
  margin: 0 0 0.75rem;
  color: #4b5563;
}

.alber-cookie__linkRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.1rem;
  margin: 0 0 0.75rem;
}

.alber-cookie__textLink {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 2px;
  color: #2f4a66;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  line-height: 1.4;
}

.alber-cookie__textLink:hover,
.alber-cookie__textLink:focus {
  color: #0f1d2f;
}

.alber-cookie__textLink:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

.alber-cookie__details {
  padding: 0.25rem 1.25rem 0;
}

.alber-cookie__detailInner--hidden {
  display: none;
}

.alber-cookie__row {
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem 0;
}

.alber-cookie__row--disabled {
  opacity: 0.98;
  pointer-events: none;
  user-select: none;
}

.alber-cookie__row--switch {
  display: block;
  padding: 0.75rem 0;
}

.alber-cookie__rowLine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.alber-cookie__rowLine .alber-cookie__rowLabel {
  margin: 0;
  font-weight: 600;
  flex: 1;
  min-width: 8rem;
  cursor: pointer;
}

.alber-cookie__cb {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #2f4a66;
  flex-shrink: 0;
}

.alber-cookie__rowLabel {
  font-size: 0.9375rem;
}

.alber-cookie__rowDesc {
  margin: 0;
  color: #6b7280;
  font-size: 0.8125rem;
  width: 100%;
}

.alber-cookie__always {
  color: #10b981;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

.alber-cookie__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 1.25rem;
}

@media (min-width: 400px) {
  .alber-cookie__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .alber-cookie__btn--primary {
    order: 3;
  }
  .alber-cookie__btn--outline {
    order: 2;
  }
  .alber-cookie__btn--secondary {
    order: 1;
  }
}

.alber-cookie__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.375rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  flex: 1 1 auto;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.alber-cookie__btn--primary {
  background: #f59e0b;
  color: #0f1d2f;
  border-color: #d97706;
}

.alber-cookie__btn--primary:hover,
.alber-cookie__btn--primary:focus {
  background: #d97706;
  outline: 2px solid #0f1d2f;
  outline-offset: 2px;
}

.alber-cookie__btn--outline {
  background: #fff;
  color: #0f1d2f;
  border-color: #2f4a66;
}

.alber-cookie__btn--outline:hover,
.alber-cookie__btn--outline:focus {
  background: #f4f6f8;
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

.alber-cookie__btn--secondary {
  background: #fff;
  color: #374151;
  border-color: #d1d5db;
}

.alber-cookie__btn--secondary:hover,
.alber-cookie__btn--secondary:focus {
  background: #f9fafb;
  outline: 2px solid #2f4a66;
  outline-offset: 2px;
}

/* Wieder-Öffnen (FAB) */
.alber-cookie__fab {
  position: fixed;
  z-index: 99950;
  left: 0.75rem;
  bottom: 0.75rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid #c4d0e0;
  border-radius: 2rem;
  background: #fff;
  color: #0f1d2f;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(15, 29, 47, 0.12);
  cursor: pointer;
  max-width: min(12rem, calc(100vw - 1.5rem));
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
}

.alber-cookie__fab__icon {
  display: none;
  font-size: 1.1rem;
  line-height: 1;
}

.alber-cookie__fab__text {
  display: inline;
}

/* Mobile: nur Keks-Icon, Text ausblenden – Button kompakt rund */
@media (max-width: 640px) {
  .alber-cookie__fab {
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    max-width: none;
  }
  .alber-cookie__fab__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
  }
  .alber-cookie__fab__text {
    display: none;
  }
}

.alber-cookie__fab:hover,
.alber-cookie__fab:focus {
  border-color: #2f4a66;
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .alber-cookie__overlay {
    animation: none;
  }
}

/* Platzhalter YouTube / Einwilligung */
.alber-embed-fallback {
  position: relative;
  width: 100%;
  min-height: 12rem;
  background: #f4f6f8;
  border: 1px solid #cfd8e6;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.alber-embed-fallback__inner {
  position: relative;
  width: 100%;
  min-height: 8rem;
}
.alber-embed-fallback--youtube .alber-embed-fallback__inner {
  min-height: 0;
  padding-top: var(--alber-embed-pt, 56.25%);
}
.alber-embed-fallback__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.75rem;
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.4;
}
.alber-map-wrap {
  min-height: 400px;
  width: 100%;
  position: relative;
  background: #e8ecf1;
  border: 1px solid #cfd8e6;
  border-radius: 0.375rem;
  overflow: hidden;
}
.alber-map__placeholder {
  margin: 0;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  z-index: 1;
}
