/* =============================
   global.css
============================= */

/* --- Lufthansa Fonts --- */
@font-face {
  font-family: LufthansaHead;
  src: url(https://www.albatros.de/assets/fonts/LufthansaHeadWeb-Thin.woff2) format("woff2");
  font-weight: 200;
  font-style: normal;
  font-stretch: normal;
  font-display: swap;
}

@font-face {
  font-family: LufthansaHead;
  src: url(https://www.albatros.de/assets/fonts/LufthansaHeadWeb-Light.woff2) format("woff2");
  font-weight: 300;
  font-style: normal;
  font-stretch: normal;
  font-display: swap;
}

@font-face {
  font-family: LufthansaHead;
  src: url(https://www.albatros.de/assets/fonts/LufthansaHeadWeb-Bold.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-stretch: normal;
  font-display: swap;
}

@font-face {
  font-family: LufthansaText;
  src: url(https://www.albatros.de/assets/fonts/LufthansaTextWeb-Light.woff2) format("woff2");
  font-weight: 300;
  font-style: normal;
  font-stretch: normal;
  font-display: swap;
}

@font-face {
  font-family: LufthansaText;
  src: url(https://www.albatros.de/assets/fonts/LufthansaTextWeb-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-stretch: normal;
  font-display: swap;
}

@font-face {
  font-family: LufthansaText;
  src: url(https://www.albatros.de/assets/fonts/LufthansaTextWeb-Bold.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-stretch: normal;
  font-display: swap;
}
/* --- End Lufthansa Fonts --- */


:root {
  --primary-blue: #05164D;
  --secondary-yellow: #FFC107; /* Existing CTA yellow - Consider replacing if Lufthansa has a defined accent */
  --light-grey: #f8f9fa;
  --medium-grey: #e9ecef;
  --dark-grey: #6c757d;
  --white: #ffffff;
  --black: #212529;

  --border-radius-sm: 0.25rem; /* 4px */
  --border-radius-md: 0.5rem; /* 8px */
  --lh-border-radius-button: 4px; /* Specific LH button radius */
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: LufthansaText, "Lufthansa Text", Arial, Roboto, Helvetica, sans-serif; /* Use Lufthansa Text */
  line-height: 1.7;
  color: var(--primary-blue);
  background-color: var(--white);
  position: relative;
  font-size: 16px;
  font-weight: 400; /* Default to regular */
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-family: LufthansaHead, "Lufthansa Head", Arial, Roboto, Helvetica, sans-serif; /* Use Lufthansa Head */
  font-weight: 700; /* Default headings to bold */
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--secondary-yellow); /* Example hover effect */
}
img {
  display: block;
  max-width: 100%; /* Ensure images are responsive */
  height: auto;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background-color: transparent;
}

/* --- Base Button Style (Lufthansa Spec) --- */
.button-base, button[type="submit"], .cta-button, .floating-cta, .av_switch_cta-button, .av_rate_berechen_calculate-button, .av_history_expand-button, .av_karte_cta_button {
  display: inline-block;
  padding: 17px 22px; /* LH Spec */
  border-radius: var(--lh-border-radius-button); /* LH Spec */
  font-family: LufthansaText, "Lufthansa Text", Arial, Roboto, Helvetica, sans-serif; /* LH Spec */
  font-weight: 700; /* LH Spec */
  text-align: center; /* LH Spec */
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent; /* LH Spec (transparent base) */
  line-height: 1.2; /* Adjust line-height for button text */
}
/* Add a subtle hover/focus lift */
.button-base:hover, button[type="submit"]:hover, .cta-button:hover, .floating-cta:hover, .av_switch_cta-button:hover, .av_rate_berechen_calculate-button:hover, .av_history_expand-button:hover, .av_karte_cta_button:hover,
.button-base:focus-visible, button[type="submit"]:focus-visible, .cta-button:focus-visible, .floating-cta:focus-visible, .av_switch_cta-button:focus-visible, .av_rate_berechen_calculate-button:focus-visible, .av_history_expand-button:focus-visible, .av_karte_cta_button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}
/* Focus style */
.button-base:focus-visible, button[type="submit"]:focus-visible, .cta-button:focus-visible, .floating-cta:focus-visible, .av_switch_cta-button:focus-visible, .av_rate_berechen_calculate-button:focus-visible, .av_history_expand-button:focus-visible, .av_karte_cta_button:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}


/* --- Primary Button Style (Assuming Yellow Accent) --- */
/* Note: If Lufthansa has a specific primary button color, replace --secondary-yellow */
.button-primary {
  background-color: var(--secondary-yellow);
  color: var(--primary-blue);
  border-color: var(--secondary-yellow); /* LH Spec: border is 2px solid */
}
.button-primary:hover, .button-primary:focus-visible {
  background-color: #e0a800; /* Darker yellow */
  border-color: #e0a800;
  color: var(--primary-blue);
}

/* --- Secondary Button Style (LH Spec) --- */
.button-secondary {
  background-color: var(--white); /* LH Spec */
  color: var(--primary-blue); /* LH Spec */
  border-color: var(--primary-blue); /* LH Spec */
}
.button-secondary:hover, .button-secondary:focus-visible {
  background-color: var(--light-grey); /* Example hover */
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}


.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.hidden {
  display: none;
}
/* Hilfsklassen für GSAP-Animationen */
.fade-in, .fade-in-left, .fade-in-right {
  opacity: 0;
}

/* --- Sticky Header --- */
.sticky-header-container {
  width: 100%;
  margin: 0 auto;
}

.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

.sticky-header.visible {
  transform: translateY(0);
}

.sticky-header .sticky-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  padding: 7px 25px 7px 25px;
  position: relative;
}

.sticky-header-nav {
  text-align: center; /* Zentriert die Navigationspunkte */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.sticky-header-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block; /* Damit das ul-Element zentriert werden kann */
}

.sticky-header-nav ul li {
  display: inline-block; /* Ordnet die Listenelemente nebeneinander an */
  margin: 0 15px; /* Abstand zwischen den Navigationspunkten */
}

.sticky-header-nav ul li a {
  text-decoration: none;
  color: var(--primary-blue);
  font-weight: 500; /* Etwas dicker als normaler Text, aber nicht fett */
  font-size: 1.2em;
}

.sticky-header-nav ul li a:hover {
  color: var(--secondary-yellow);
}


.sticky-logo {
  height: 30px; 
  width: auto; 
  /* margin-right: auto; entfernt, da justify-content: space-between dies regelt */
}

.sticky-header-cta {
  padding: 9px 22px 9px 16px;
  font-size: 1.0em;
  white-space: nowrap; /* Verhindert Umbruch des Button-Textes */
  background: #05164d;
  border: 1px solid #05164d;
  border-radius: 8px;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  transition: all 0.3s ease;
  display: flex;
}

.sticky-header-cta img {
    width: 24px;
    margin-right: 8px;
}

.sticky-header-cta:hover {
  transform: translateY(-1px);
  color: #05164d;
  background: #fff;
}

/* --- Hamburger Menu --- */
.hamburger-menu {
  display: none; /* Standardmäßig ausblenden */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010; /* Über dem Sticky Header, aber unter dem mobilen Menü */
}

.hamburger-menu-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-blue);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* --- Mobile Menu (das sich öffnet) --- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98); /* Leicht transparenter Hintergrund */
  z-index: 1005; /* Unter dem Hamburger, aber über dem Rest der Seite */
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2.5em;
  color: #05164d;
  cursor: pointer;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-nav ul li {
  margin: 20px 0;
}

.mobile-nav ul li a {
  font-size: 1.5em;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: bold;
}

.mobile-nav ul li a:hover {
  color: var(--secondary-yellow);
}

.mobile-nav-cta {
    display: block;
    padding: 11px 17px;
    margin: 45px auto 0;
    background-color: var(--primary-blue);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    width: fit-content;
}


@media (max-width: 1024px) { 
  .sticky-header-nav {
    display: none; 
  }
  .sticky-header .sticky-header-container {
    justify-content: space-between; /* Stellt sicher, dass Logo und CTA weiterhin space-between haben */
  }
  .sticky-logo {
    margin-right: 0; /* Kein extra margin mehr nötig */
  }
}

@media (max-width: 768px) {
  .sticky-header-cta {
    display: none; /* CTA im Header auf Mobilgeräten ausblenden */
  }
  .sticky-header-nav {
    display: none; /* Desktop-Navigation auf Mobilgeräten ausblenden */
  }
  .hamburger-menu {
    display: flex; /* Hamburger-Menü auf Mobilgeräten anzeigen */
  }
  .sticky-logo {
    height: 20px; 
    width: auto; 
  }
  .sticky-header .sticky-header-container {
    justify-content: space-between; /* Stellt sicher, dass Logo und Hamburger auseinander geschoben werden */
  }
}