/* Tavelo header/footer on pages that still use the previous design (layout/default.php) */

.header,
.footer-area.ft-bg,
.newsletter-area {
  font-family: var(--body-font);
}

.header h1, .header h2, .header h3, .header h4, .header h5, .header h6,
.footer-area.ft-bg h1, .footer-area.ft-bg h2, .footer-area.ft-bg h3,
.footer-area.ft-bg h4, .footer-area.ft-bg h5, .footer-area.ft-bg h6,
.newsletter-area h2 {
  font-family: var(--heading-font);
  font-weight: 600;
  text-transform: none;
  line-height: 1.2;
}

.header a,
.footer-area.ft-bg a {
  text-decoration: none;
}

.header ul,
.footer-area.ft-bg ul {
  margin-bottom: 0;
}

/* no hero image behind the header here, so it gets a solid bar */
.header.header-solid {
  position: relative;
  z-index: 999;
  background: var(--color-dark);
}

/* reserve the navbar's height so the page does not jump when it becomes fixed on scroll */
.header.header-solid .main-navigation {
  min-height: 90px;
}

@media all and (max-width: 991px) {
  .header.header-solid .main-navigation {
    min-height: 70px;
  }
}

/* the previous design's generic .footer-area rules */
.footer-area.ft-bg {
  padding-top: 0;
  color: var(--footer-text-color);
}

/* the previous design's normalize.css forces a { color: inherit !important } */
.header-top a,
.header-top .account span,
#scroll-top,
.theme-btn,
.theme-btn:hover {
  color: var(--color-white) !important;
}

.header-top a:hover {
  color: var(--theme-color) !important;
}

.navbar .dropdown-menu .dropdown-item {
  color: var(--color-dark) !important;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
  color: var(--theme-color) !important;
}

@media all and (min-width: 992px) {
  .navbar .nav-item .nav-link {
    color: var(--color-white) !important;
  }

  .navbar.fixed-top .nav-item .nav-link {
    color: var(--color-dark) !important;
  }

  .navbar .nav-item .nav-link.active,
  .navbar .nav-item:hover .nav-link {
    color: var(--theme-color) !important;
  }
}

@media all and (max-width: 991px) {
  .navbar .nav-item .nav-link {
    color: var(--color-dark) !important;
  }

  .navbar .nav-item .nav-link.active,
  .navbar .nav-item .nav-link:hover {
    color: var(--theme-color) !important;
  }

  .navbar-toggler-btn-icon {
    color: var(--color-white);
  }
}

.footer-list a,
.footer-contact-list a {
  color: var(--footer-text-color) !important;
}

.footer-list a:hover,
.footer-contact-list a:hover,
.copyright-text a,
.footer-follow a {
  color: var(--theme-color) !important;
}

.footer-follow a:hover {
  color: var(--color-white) !important;
}

.footer-logo img {
  height: auto;
}

.newsletter-btn {
  display: inline-block !important;
  background: var(--color-dark) !important;
  color: var(--color-white) !important;
}

.newsletter-btn:hover {
  background: var(--theme-color2) !important;
}

/* pages that open with a photo banner get the transparent header like the home page */
body:has(.breadcrumb-area) .header.header-solid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
}

/* darken the banner photo like the home hero, so the white menu and title stay readable */
body:has(.breadcrumb-area) .breadcrumb-area {
  position: relative;
  z-index: 0;
}

body:has(.breadcrumb-area) .breadcrumb-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: -1;
}

body:has(.breadcrumb-area) .header.header-solid .main-navigation {
  min-height: 0;
}

body:has(.breadcrumb-area) .breadcrumb-area {
  height: 520px !important;
  padding-top: 120px;
  background-size: cover !important;
  background-position: center !important;
}

@media all and (max-width: 991px) {
  body:has(.breadcrumb-area) .breadcrumb-area {
    height: 380px !important;
    padding-top: 70px;
  }
}

/* match the home page header exactly (Tavelo base body styles + Bootstrap 5.3 layout) */
.header {
  font-size: 16px;
  line-height: 1.8;
}

.header .theme-btn {
  display: inline-block;
}

@media all and (min-width: 992px) {
  .header .navbar-collapse {
    justify-content: flex-end;
  }
}

.top-contact-info ul li a {
  display: inline-block;
}

/* the previous design's Font Awesome 4 kit loads last and remaps fa-facebook-f to the round logo */
.header .fa-facebook-f::before,
.footer-area .fa-facebook-f::before {
  content: "\f39e";
}

/* Bootstrap paints the active dropdown item blue; use the brand style instead */
.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item:active,
.navbar .dropdown-menu .dropdown-item:focus {
  background: transparent !important;
  color: var(--theme-color) !important;
}

/* footer + newsletter: same look as the tavelo pages (agyptenreise.css) — style guide colours,
   Nile illustration background, white text */
@media all and (min-width: 1200px) {
  .newsletter-area > .container,
  .footer-area.ft-bg .container { max-width: 95%; }
}
.newsletter-area,
.footer-area.ft-bg { line-height: 1.8; }
.newsletter-box .newsletter-title { line-height: 1.15; }
.newsletter-area h2,
.footer-area.ft-bg h5,
.footer-area.ft-bg h6 { font-weight: 700; }
.newsletter-box { background: #304F47; }
.newsletter-box .newsletter-title { color: #fff; }
.newsletter-box .newsletter-title span { color: #E37947; }
.newsletter-box .newsletter-text { color: rgba(255, 255, 255, .8); }
.newsletter-box .newsletter-btn { background: #E37947 !important; color: #fff !important; }
.newsletter-box .newsletter-btn:hover { background: #CC6A3C !important; }
.newsletter-box .newsletter-btn:active { background: #B35A30 !important; }

.footer-area.ft-bg { background: #E37947 url(../img/footer-egypt-bg.webp) no-repeat center bottom / cover; }
.footer-area.ft-bg::before { display: block; opacity: 1; background: linear-gradient(180deg, rgba(38, 35, 56, .18), rgba(38, 35, 56, .38)); }
.footer-area.ft-bg,
.footer-area.ft-bg p,
.footer-area.ft-bg .footer-contact-list li,
.footer-area.ft-bg .copyright-text { color: #fff; }
.footer-area.ft-bg .footer-list li a,
.footer-area.ft-bg .footer-contact-list a,
.footer-area.ft-bg .footer-list li a i,
.footer-area.ft-bg .footer-contact-list li i,
.footer-area.ft-bg .footer-follow a,
.footer-area.ft-bg .copyright-text a { color: #fff !important; }
.footer-area.ft-bg .footer-list li a:hover,
.footer-area.ft-bg .footer-contact-list a:hover,
.footer-area.ft-bg .footer-follow a:hover { color: #1C302B !important; }
.footer-area.ft-bg .copyright-text a { font-weight: 700; }
.footer-area.ft-bg .footer-widget-title::before,
.footer-area.ft-bg .footer-widget-title::after { background: #fff; }
.footer-area.ft-bg .theme-btn { background: #304F47; }
.footer-area.ft-bg .theme-btn::before { background: #26403A; }
.footer-area.ft-bg .copyright { border-top-color: rgba(255, 255, 255, .25); }
.newsletter-area p,
.footer-area.ft-bg p { font-family: var(--body-font); letter-spacing: normal; }

/* mobile "Hier anfragen" bar (element/tavelo/mobile-cta.php), same as the tavelo pages */
.button_moblie { display: none; }
@media all and (max-width: 767px) {
  .button_moblie { position: fixed; left: 0; bottom: 0; display: flex; justify-content: center; align-items: center; width: 100%; height: 75px; padding: 16px 10px; background: #E37947; border-radius: 8px 8px 0 0; z-index: 100; }
  .button_moblie a { display: inline-block; font-family: var(--body-font); font-weight: 700; font-size: 18px; line-height: 1.2; color: #262338 !important; background: #fff; padding: 14px 24px; border-radius: 8px; text-decoration: none; animation: ctaShake 4s ease-in-out 1.5s infinite; }
  .button_moblie.hide_inq_btn { display: none; }
}
@keyframes ctaShake {
  0%, 16%, 100% { transform: none; }
  2%, 10% { transform: translateX(-5px) rotate(-2deg); }
  6%, 14% { transform: translateX(5px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) { .button_moblie a { animation: none; } }
