/* ==========================================================================
   Hotel Alex · Sicherheitshinweis (gefälschte WhatsApp-Nachrichten)
   Gehört zu assets/js/sicherheitshinweis.js
   Alle Regeln sind auf .ha-notice begrenzt – keine globalen Selektoren.
   ========================================================================== */

.ha-notice {
  --ha-navy: #2D325A;
  --ha-navy-deep: #252A4D;
  --ha-gold: #D9BC93;
  --ha-gold-soft: #E9DAC4;
  --ha-text: rgba(255, 255, 255, 0.92);
  --ha-line: rgba(217, 188, 147, 0.35);

  position: relative;
  z-index: 50;
  background: var(--ha-navy);
  background-image: linear-gradient(90deg, var(--ha-navy-deep) 0%, var(--ha-navy) 55%, var(--ha-navy-deep) 100%);
  border-bottom: 2px solid #AA8453;
  color: var(--ha-text);
  font-family: "Barlow", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.ha-notice *,
.ha-notice *::before,
.ha-notice *::after {
  box-sizing: border-box;
}

.ha-notice p,
.ha-notice a,
.ha-notice span,
.ha-notice strong,
.ha-notice button {
  font-family: "Barlow", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

.ha-notice[hidden] {
  display: none !important;
}

.ha-notice__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 56px 12px 24px;
  position: relative;
}

.ha-notice__row {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---------- Symbol ---------- */
.ha-notice__icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 188, 147, 0.14);
  border: 1px solid var(--ha-line);
  color: var(--ha-gold);
}

.ha-notice__icon svg {
  width: 19px;
  height: 19px;
  display: block;
}

/* ---------- Text ---------- */
.ha-notice__text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--ha-text);
  font-size: inherit;
  line-height: inherit;
}

.ha-notice__title {
  color: var(--ha-gold);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-right: 6px;
}

/* ---------- Buttons ---------- */
.ha-notice__toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--ha-line);
  border-radius: 999px;
  background: transparent;
  color: var(--ha-gold-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ha-notice__toggle:hover {
  background: rgba(217, 188, 147, 0.14);
  border-color: var(--ha-gold);
  color: #fff;
}

.ha-notice__toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
}

.ha-notice__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.ha-notice__close {
  position: absolute;
  top: 16px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ha-notice__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ha-notice__close svg {
  width: 14px;
  height: 14px;
  display: block;
}

.ha-notice__toggle:focus-visible,
.ha-notice__close:focus-visible,
.ha-notice__contact:focus-visible {
  outline: 2px solid var(--ha-gold);
  outline-offset: 2px;
}

/* ---------- Ausklappbarer Teil ---------- */
.ha-notice__details {
  margin: 12px 0 4px 50px;
  padding-top: 12px;
  border-top: 1px solid var(--ha-line);
  max-width: 880px;
}

.ha-notice__details[hidden] {
  display: none;
}

.ha-notice__details p {
  margin: 0 0 10px;
  color: var(--ha-text);
  font-size: inherit;
  line-height: inherit;
}

.ha-notice__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 12px;
}

.ha-notice__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #AA8453;
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.ha-notice__contact:hover {
  background: #8F6E44;
  color: #fff;
}

.ha-notice__contact--ghost {
  background: transparent;
  border: 1px solid var(--ha-line);
  color: var(--ha-gold-soft) !important;
}

.ha-notice__contact--ghost:hover {
  background: rgba(217, 188, 147, 0.14);
  color: #fff !important;
}

.ha-notice__contact svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.ha-notice__sign {
  font-style: italic;
  color: var(--ha-gold-soft) !important;
}

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
  .ha-notice__inner {
    padding: 12px 52px 12px 18px;
  }
}

/* ---------- Smartphone ---------- */
@media (max-width: 767.98px) {
  .ha-notice {
    font-size: 14.5px;
  }

  .ha-notice__inner {
    padding: 14px 46px 14px 16px;
  }

  .ha-notice__row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 12px;
  }

  .ha-notice__icon {
    width: 30px;
    height: 30px;
    margin-top: 1px;
  }

  .ha-notice__icon svg {
    width: 16px;
    height: 16px;
  }

  .ha-notice__text {
    flex-basis: calc(100% - 42px);
  }

  .ha-notice__title {
    display: block;
    margin: 0 0 2px;
  }

  .ha-notice__toggle {
    margin-left: 42px;
    padding: 6px 12px;
    font-size: 13.5px;
  }

  .ha-notice__close {
    top: 10px;
    right: 6px;
  }

  .ha-notice__details {
    margin-left: 0;
  }

  .ha-notice__contact {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ha-notice *,
  .ha-notice *::before,
  .ha-notice *::after {
    transition: none !important;
  }
}

@media print {
  .ha-notice__toggle,
  .ha-notice__close {
    display: none !important;
  }
}
