/* =========================================================
   BASE.CSS – Header & Footer der Buchungsstrecke
   Optisch angeglichen an www.alpinjuwel.at
   (Werte direkt aus dem Theme der Website übernommen)
   ========================================================= */

/* VARIABLEN HEADER / FOOTER
   Eigene Namen, damit sie nicht mit den Variablen aus
   "CSS Generell" (--c-primary etc.) kollidieren. */
:root {
  --c-gold: #d4c290;          /* Akzent der Website: Footer-Überschriften, Links, Social-Rahmen */
  --c-taupe: #a19688;         /* Theme-Farbe: Unterzeilen, Pauschalen-Button, Hover */
  --c-brown: #686056;         /* Footer-Hintergrund */
  --c-brown-dark: #4c463f;    /* Copyright-Leiste der Website */
  --c-ink: #333333;           /* Menü-Schrift im Header */
  --c-footer-text: #cccccc;   /* Fließtext im Footer */
  --c-line: #e6e6e6;          /* feine Trennlinien */
  --hf-transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}


/* GENERAL */
.bookingEngine .flex {
  display: flex;
  align-items: center;
}

.bookingEngine a,
.bookingEngine a::after {
  transition: var(--hf-transition);
}


/* =========================================================
   HEADER
   Weiß, Logo mittig, Menüpunkte in Dosis / Versalien /
   1px Laufweite – wie die Hauptnavigation der Website.
   ========================================================= */
.bookingEngine .header,
.bookingEngine .headerV6 {
  background-color: #ffffff;
  border-bottom: 1px solid var(--c-line);
  padding: 15px 0;
  margin-bottom: 30px;
}

@media screen and (min-width: 768px) {
  .bookingEngine .header,
  .bookingEngine .headerV6 {
    padding: 22px 0;
    margin-bottom: 45px;
  }
}

/* Drei Spalten: links und rechts gleich breit, Logo exakt mittig */
.bookingEngine .header .row.flex {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.bookingEngine .header .row.flex > div {
  float: none;
  width: auto;
}

/* Handy: kein Bootstrap-Gutter, damit Icons nicht am Rand kleben */
@media screen and (max-width: 549px) {
  .bookingEngine .header .row.flex {
    margin-left: 0;
    margin-right: 0;
  }

  .bookingEngine .header .row.flex > div {
    padding-left: 0;
    padding-right: 0;
  }

  .bookingEngine .header .row.flex > .logo {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.bookingEngine .header .menu {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}

.bookingEngine .header .logo {
  flex: 0 0 auto;
}

/* LOGO */
.bookingEngine .header .logo a {
  display: block;
  position: static;
}

/* feste Höhe statt max-height: SVG-Logos sind oft klein angelegt
   und würden sonst nicht hochskaliert */
.bookingEngine .header .logo img {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

@media screen and (min-width: 550px) {
  .bookingEngine .header .logo img {
    height: 50px;
    max-width: 220px;
  }
}

@media screen and (min-width: 768px) {
  .bookingEngine .header .logo img {
    height: 60px;
    max-width: 260px;
  }
}

/* MENÜPUNKTE */
.bookingEngine .header .menu a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  background-color: transparent;
  color: var(--c-ink);
  font-family: var(--font-secondary, 'Dosis', sans-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  vertical-align: middle;
}

.bookingEngine .header .menu a ~ a {
  margin-left: 8px;
}

@media screen and (min-width: 480px) {
  .bookingEngine .header .menu a ~ a {
    margin-left: 12px;
  }
}

@media screen and (min-width: 768px) {
  .bookingEngine .header .menu a ~ a {
    margin-left: 18px;
  }
}

.bookingEngine .header .menu a:hover,
.bookingEngine .header .menu a:focus,
.bookingEngine .header .menu a:active {
  background-color: transparent;
  color: var(--c-taupe);
  text-decoration: none;
}

.bookingEngine .header .menu svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media screen and (min-width: 550px) {
  .bookingEngine .header .menu svg {
    width: 20px;
    height: 20px;
  }
}

/* Sprachumschalter wie "DE | EN" auf der Website: feine Linie davor */
.bookingEngine .header .menu a.langSwitch {
  padding-left: 8px;
  border-left: 1px solid var(--c-line);
}

@media screen and (min-width: 480px) {
  .bookingEngine .header .menu a.langSwitch {
    padding-left: 12px;
  }
}

@media screen and (min-width: 768px) {
  .bookingEngine .header .menu a.langSwitch {
    padding-left: 18px;
  }
}

/* Sehr schmale Handys (bis 479px): alles etwas kompakter,
   damit die Icons rechts nicht umbrechen oder abgeschnitten werden */
@media screen and (max-width: 479px) {
  .bookingEngine .header .logo img {
    height: 32px;
  }

  .bookingEngine .header .menu a ~ a {
    margin-left: 7px;
  }

  .bookingEngine .header .menu a.langSwitch {
    padding-left: 0;
    border-left: 0;
  }
}

@media screen and (max-width: 374px) {
  .bookingEngine .header .row.flex > .logo {
    padding-left: 4px;
    padding-right: 4px;
  }

  .bookingEngine .header .menu a ~ a {
    margin-left: 4px;
  }

  .bookingEngine .header .menu svg {
    width: 16px;
    height: 16px;
  }

  .bookingEngine .header .logo img {
    height: 28px;
  }
}

/* Beschriftungen: auf kleinen Screens nur Icons */
.bookingEngine .header .menu .home span,
.bookingEngine .header .menu a.lastMinute span {
  display: none;
}

@media screen and (min-width: 550px) {
  .bookingEngine .header .menu .home span {
    display: inline;
  }
}

@media screen and (min-width: 992px) {
  .bookingEngine .header .menu a.lastMinute span {
    display: inline;
  }
}

/* TOOLTIPS im Header/Footer: Brauntöne der Website statt Bootstrap-Schwarz */
.bookingEngine .header .tooltip-inner,
.bookingEngine footer .tooltip-inner {
  background-color: var(--c-brown);
  color: #ffffff;
  border-radius: 0;
  font-family: var(--font-primary, 'Raleway', sans-serif);
  font-size: 13px;
  letter-spacing: .5px;
  padding: 6px 10px;
}

.bookingEngine .header .tooltip.left .tooltip-arrow,
.bookingEngine footer .tooltip.left .tooltip-arrow {
  border-left-color: var(--c-brown);
}

.bookingEngine .header .tooltip.right .tooltip-arrow,
.bookingEngine footer .tooltip.right .tooltip-arrow {
  border-right-color: var(--c-brown);
}

.bookingEngine .header .tooltip.top .tooltip-arrow,
.bookingEngine footer .tooltip.top .tooltip-arrow {
  border-top-color: var(--c-brown);
}

.bookingEngine .header .tooltip.bottom .tooltip-arrow,
.bookingEngine footer .tooltip.bottom .tooltip-arrow {
  border-bottom-color: var(--c-brown);
}

.bookingEngine .header .tooltip.in,
.bookingEngine footer .tooltip.in {
  opacity: 1;
}


/* =========================================================
   MAIN
   ========================================================= */
.bookingEngine main {
  min-height: calc(100vh - 306px); /* Höhen von Header (+Abstand) und Footer abziehen */
}

.bookingEngine main p.text-center:has(.fa-cog.fa-spin),
.bookingEngine main .fa-cog.fa-spin {
  display: none !important;
}

.abm-hidden:has(#abmCalendarArea) {
  display: block !important;
  transition: height 5s ease;
}


/* =========================================================
   FOOTER
   Brauner Block mit dunkler Abschlussleiste, Gold-Akzente,
   eckige Social-Buttons mit Goldrahmen – wie auf der Website.
   ========================================================= */
.bookingEngine footer {
  background-color: var(--c-brown);
  border-bottom: 12px solid var(--c-brown-dark);
  color: var(--c-footer-text);
  font-family: var(--font-primary, 'Raleway', sans-serif);
  font-size: 15px;
  padding: 25px 0;
  margin-top: 40px;
}

.bookingEngine footer .legals,
.bookingEngine footer .socialIcons {
  float: none;
  width: 100%;
  padding: 8px 15px;
  text-align: center;
}

/* SOCIAL ICONS */
.bookingEngine footer .socialIcons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 4px;
  border: 2px solid var(--c-gold);
  color: var(--c-gold);
  text-decoration: none;
}

.bookingEngine footer .socialIcons a:hover,
.bookingEngine footer .socialIcons a:focus,
.bookingEngine footer .socialIcons a:active {
  background-color: var(--c-gold);
  color: var(--c-brown);
}

.bookingEngine footer .socialIcons svg {
  width: 18px;
  height: 18px;
}

/* RECHTLICHE LINKS */
.bookingEngine footer .legals a {
  color: var(--c-footer-text);
  text-decoration: none;
  white-space: nowrap;
}

.bookingEngine footer .legals a:hover,
.bookingEngine footer .legals a:focus,
.bookingEngine footer .legals a:active {
  color: var(--c-gold);
  text-decoration: none;
}

.bookingEngine footer .legals a:not(:last-child)::after {
  content: '|';
  display: inline-block;
  padding: 0 8px 0 10px;
  color: rgba(255, 255, 255, .3);
}

.bookingEngine footer .legals a:not(:last-child):hover::after {
  color: rgba(255, 255, 255, .3);
}

/* Schmale Handys: Links kompakter, damit alle vier in eine Zeile passen */
@media screen and (max-width: 399px) {
  .bookingEngine footer .legals {
    padding-left: 0;
    padding-right: 0;
    font-size: 13px;
  }

  .bookingEngine footer .legals a:not(:last-child)::after {
    padding: 0 5px 0 6px;
  }
}

@media screen and (min-width: 550px) {
  .bookingEngine footer .row {
    display: flex;
    align-items: center;
  }

  .bookingEngine footer .socialIcons {
    width: 30%;
    text-align: left;
  }

  .bookingEngine footer .socialIcons a {
    margin: 0 8px 0 0;
  }

  .bookingEngine footer .legals {
    width: 70%;
    text-align: right;
  }
}
