/**
 * HTH Redesign — Global Header & Footer
 * Logo, Navigation, CTA | 4-Spalten-Footer
 * Auf jeder Seite gleich (Astra: Header/Footer Builder)
 */

/* Gesamten Elementor-Header über dem Seiteninhalt stapeln (Hero-Sektionen etc.) */
.hth-global-header-shell {
  position: relative;
  z-index: 2147483000;
  isolation: isolate;
}

/* ========== HEADER ========== */
.hth-header {
  position: sticky;
  top: 0;
  /* Über Elementor-Sektionen / Hero, damit das mobile Vollbild-Menü sichtbar bleibt */
  z-index: 100000;
  background: var(--hth-bg-alt);
  box-shadow: 0 1px 0 rgba(126, 1, 53, 0.12);
  transition: box-shadow 0.2s ease, border-radius 0.2s ease;
  border-radius: 0 0 var(--hth-radius-card) var(--hth-radius-card);
}

.hth-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(80, 4, 35, 0.15);
}

.hth-header__inner {
  max-width: var(--hth-content-max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (min-width: 1024px) {
  .hth-header__inner {
    padding: 16px 32px;
  }
}

/* Logo */
.hth-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hth-header__logo a.hth-header__logo-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: normal;
}

.hth-header__logo img {
  height: 62px;
  width: auto;
  max-width: 252px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .hth-header__logo img {
    height: 73px;
    max-width: 280px;
  }
}

/* Nav */
.hth-header__nav {
  display: none;
}

@media (min-width: 1024px) {
  .hth-header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

.hth-header__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.hth-header__nav-list li {
  margin: 0;
}

.hth-header__nav-list a {
  display: block;
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--hth-text);
  text-decoration: none;
  border-radius: var(--hth-radius-btn);
  transition: color 0.2s, background 0.2s;
}

.hth-header__nav-list a:hover {
  color: var(--hth-burgundy);
  background: var(--hth-burgundy-light);
}

/* CTA Button im Header */
.hth-header__cta {
  flex-shrink: 0;
}

.hth-header__cta .hth-btn {
  padding: 10px 20px;
  font-size: 0.9375rem;
}

/* Hamburger (Mobile) */
.hth-header__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--hth-text);
  cursor: pointer;
  border-radius: var(--hth-radius-btn);
  transition: background 0.2s;
}

.hth-header__toggle:hover {
  background: var(--hth-burgundy-light);
}

@media (min-width: 1024px) {
  .hth-header__toggle {
    display: none;
  }
}

.hth-header__toggle-icon {
  width: 24px;
  height: 18px;
  position: relative;
}

.hth-header__toggle-icon span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.hth-header__toggle-icon span:nth-child(1) { top: 0; }
.hth-header__toggle-icon span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hth-header__toggle-icon span:nth-child(3) { bottom: 0; }

.hth-header.is-open .hth-header__toggle-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hth-header.is-open .hth-header__toggle-icon span:nth-child(2) {
  opacity: 0;
}
.hth-header.is-open .hth-header__toggle-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.hth-header__mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hth-bg-alt);
  z-index: 100001;
  padding: 80px 24px 24px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s, opacity 0.25s;
}

.hth-header.is-open .hth-header__mobile-nav {
  visibility: visible;
  opacity: 1;
}

/* Bei geöffnetem Menü: Leiste mit Burger über dem Vollbild-Overlay */
.hth-header.is-open .hth-header__inner {
  position: relative;
  z-index: 100002;
}

@media (min-width: 1024px) {
  .hth-header__mobile-nav {
    display: none;
  }
}

.hth-header__mobile-nav .hth-header__nav-list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.hth-header__mobile-nav .hth-header__nav-list a {
  padding: 14px 0;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--hth-burgundy-light);
}

.hth-header__mobile-nav .hth-header__cta {
  margin-top: 24px;
}

.hth-header__mobile-nav .hth-header__cta .hth-btn {
  width: 100%;
  justify-content: center;
}

/* ========== FOOTER ========== */
.hth-footer__logo--international {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hth-footer__logo--international img {
  height: auto;
  width: auto;
  max-width: min(308px, 100%);
  max-height: 101px;
  object-fit: contain;
  display: block;
  mix-blend-mode: lighten;
}

.hth-footer__partner-strip {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hth-footer__partner-link img {
  height: 56px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.hth-footer .hth-footer__impressum-btn {
  border-color: rgba(255, 255, 255, 0.55);
  color: rgba(255, 255, 255, 0.95);
  background: transparent;
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.hth-footer .hth-footer__impressum-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hth-footer {
  background: var(--hth-burgundy-dark);
  color: rgba(255, 255, 255, 0.92);
  padding-top: 48px;
  padding-bottom: 0;
  border-radius: var(--hth-radius-lg) var(--hth-radius-lg) 0 0;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .hth-footer {
    padding-top: 64px;
  }
}

.hth-footer__grid {
  max-width: var(--hth-content-max);
  margin: 0 auto;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 640px) {
  .hth-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hth-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 0 32px 48px;
  }
}

.hth-footer__col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.hth-footer__logo img {
  height: 62px;
  width: auto;
  max-width: 224px;
  margin-bottom: 12px;
  opacity: 0.95;
}

.hth-footer__about {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 260px;
}

.hth-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hth-footer__links li {
  margin: 0 0 8px;
}

.hth-footer__links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.hth-footer__links a:hover {
  color: #fff;
}

.hth-footer__contact {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.hth-footer__contact a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.hth-footer__contact a:hover {
  color: #fff;
}

.hth-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.hth-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}

.hth-footer__social a:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Unter-Footer */
.hth-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 24px;
}

.hth-footer__bottom-inner {
  max-width: var(--hth-content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
  .hth-footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.hth-footer__bottom a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.hth-footer__bottom a:hover {
  color: #fff;
}

/* Zwei-Spalten-Landing-Footer (überschreibt Standard-Grid) */
.hth-footer .hth-footer__grid.hth-footer__grid--landing {
  grid-template-columns: 1fr !important;
}

@media (min-width: 768px) {
  .hth-footer .hth-footer__grid.hth-footer__grid--landing {
    grid-template-columns: 1.15fr 1fr !important;
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  .hth-footer .hth-footer__grid.hth-footer__grid--landing {
    grid-template-columns: 1.15fr 1fr !important;
  }
}
