/* ========================================================================
   1) Font Imports
   ======================================================================== */
   @font-face {
    font-family: 'Acme';
    src: url('/assets/fonts/Acme-Regular.ttf') format('truetype');
  }
  
  @font-face {
    font-family: 'Stoneage';
    src: url('/assets/fonts/Stone-Age-de.ttf') format('truetype');
  }
  
  /* ========================================================================
       2) CSS-Variablen (Farben, Typografie, Layout)
       ======================================================================== */
  :root {
    /* Farben */
    --color-bg: #002060;
    --color-primary: #3060DD;
    --color-primary-light: #60AAFF;
    --color-navbar: rgba(48, 96, 221, 1);
    --color-dropdown-bg: #003080;
    --color-dropdown-hover: #60AAFF;
    --color-text: #FFFFFF;
    /* Schriftarten */
    --font-base: 'Acme', sans-serif;
    --font-heading: 'Stoneage', sans-serif;
    /* Layout */
    --navbar-height: 8%;
    --footer-height: 120px;
  }
  
  /* ========================================================================
       3) Global Base Styles
       ======================================================================== */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-base);
  }
  
  body {
    position: relative;
    overflow-y: scroll;
  }
  
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 0;
    font-family: var(--font-heading);
  }
  
  /* ========================================================================
       4) Scrollbar Styling (WebKit)
       ======================================================================== */
  body::-webkit-scrollbar {
    width: 10px;
  }
  
  body::-webkit-scrollbar-track {
    background: var(--color-dropdown-bg);
  }
  
  body::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
  }
  
  body::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
  }
  
  /* ========================================================================
       5) Berg-Container & Logo
       ======================================================================== */
  .berg-container,
  .logo-container {
    position: absolute;
    bottom: 100px;
    left: 5%;
    width: 20%;
  }
  
  .berg-image {
    width: 100%;
    height: auto;
    transition: opacity 0.5s ease;
  }
  
  /* ========================================================================
       6) Navbar Grundstruktur
       ======================================================================== */
  .wrap {
    position: sticky;
    top: 0;
    z-index: 2000;
  }
  
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: transparent;
    /* überlagertes Pseudo-Element sorgt für den Blur */
    overflow: visible;
    
    font-family: var(--font-base);
    z-index: 1000;
  }
  
  .navbar::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
  
    /* der eigentliche Glas-Effekt */
    backdrop-filter: blur(33px);
    /* bei Bedarf noch mit saturate schärfer machen:
       backdrop-filter: blur(33px) saturate(120%); */
  
    /* leichter Farb-Overlay (optional) */
    background: transparent;
  
    /* sanfter Auslauf unten */
    -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
            mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
  
    /* damit deine Links/Buttons weiterhin über dem Blur liegen */
    z-index: -1;
  }
  
  
  .navbar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  
  /* Brand (Logo) */
  .brand {
    background: none;
    border: none;
    padding: 0;
    transition: transform 0.3s, filter 0.3s;
  }
  
  .brand img {
    max-height: 60px;
    transition: transform 0.3s, filter 0.3s;
  }
  
  .brand:hover img {
    transform: scale(1.05) rotate(-2deg);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
  }
  
  /* Buttons-Container */
  .nav-right {
    display: flex;
    gap: 1rem;
  }
  
  .nav-item {
    position: relative;
    overflow: visible;
  }
  
  .navbar-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.8rem 1.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
  }
  
  .navbar-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
  }
  
  .navbar-link.active,
  .nav-item.show>.navbar-link {
    background: var(--color-primary-light);
    color: var(--color-bg);
    border-color: var(--color-primary-light);
  }
  
  .chevron {
    width: 1.2em;
    height: 1.2em;
    transition: transform 0.3s;
  }
  
  .navbar-link[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
  }
  
  /* ========================================================================
       7) Mega Dropdown
       ======================================================================== */
  .navbar-mega-container {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    height: 0;
    overflow: visible;
    pointer-events: none;
    transition: height 0.4s ease;
  }
  
  .navbar-mega-container.is-open {
    height: auto;
    pointer-events: auto;
  }
  
  .navbar-mega {
    display: inline-block;
    background: #212529;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    padding: 1.5rem;
    /* max-width: calc(100vw - 4rem); */
    transform-origin: top center;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .navbar-mega-container.is-open .navbar-mega {
    transform: scaleY(1);
    opacity: 1;
  }
  
  .navbar-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30ch, 1fr));
    gap: 2rem;
    margin: 0;
    list-style: none;
  }
  
  .navbar-mega-column {
    display: flex;
    flex-direction: column;
  }
  
  /* Entfernt Bullet-Points von allen Mega-Dropdown-Listen */
  .navbar-mega-grid,
  .navbar-mega-column ul {
    list-style: none;
  }
  
  .navbar-mega-title {
    position: relative;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    padding-left: 1.4rem;
  }
  
  .navbar-mega-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
  }
  
  .navbar-mega-column li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 1.8rem;
  }
  
  .navbar-mega-column li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(transparent 0 4px,
        rgba(255, 255, 255, 0.5) 4px 5px);
  }
  
  .navbar-mega-link {
    font-size: 1.4rem;
    color: var(--color-text);
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: 0.3rem;
    transition: background 0.2s, color 0.2s;
  }
  
  .navbar-mega-link:hover {
    background: #60AAFF;
    color: black;
  }
  
  /* ========================================================================
       8) Footer & Bottom
       ======================================================================== */
  body::after {
    content: "";
    display: block;
    height: var(--footer-height);
  }
  
  .bottom-line {
    position: absolute;
    bottom: 100px;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    z-index: 5;
  }
  
  .bottom-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1.2rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    z-index: 10;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
  }
  
  .bottom-text .left-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.4;
    text-align: center;
  }
  
  .center-link a {
    color: var(--color-primary-light);
    text-decoration: none;
  }
  
  .center-link a:hover {
    color: #4080FF;
  }
  
  .social-media {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.4rem;
  }
  
  .social-media a {
    color: var(--color-primary-light);
    font-size: 1.5rem;
    transition: color 0.3s ease;
  }
  
  .social-media a:hover {
    color: #4080FF;
  }
  
  .right-text {
    font-size: 0.9rem;
    text-align: right;
    white-space: nowrap;
  }
  
  /* ========================================================================
       9) Burger-Icon
       ======================================================================== */
  .navbar-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    margin-left: auto;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
  }
  
  .navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
  }
  
  .navbar-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  
  .navbar-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .navbar-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  
  /* ========================================================================
       10) Final Overflow Fix
       ======================================================================== */
  html,
  body,
  .wrap,
  .nav-right {
    overflow-x: visible !important;
  }
  
  .nav-item {
    overflow: visible !important;

  }
  
  .nav-right>.nav-item:last-child .navbar-mega-container {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
  }
  
  
  /* ==========================================
     Responsive Styles
     ========================================== */
  @media (max-width: 1300px) {
  
    /* ── Root Override ─────────────────────── */
    :root {
      --navbar-height: 65px !important;
    }
  
    /* ── Navbar Grundlayout ───────────────── */
    .navbar {
      padding: 0.6rem 1rem;
      min-height: 1vh;
    }
  
    .brand img {
      max-height: 45px;
    }
  
    /* ── Burger-Icon einblenden ─────────────── */
    .navbar-toggle {
      display: flex;
    }
  
    .navbar-toggle span {
      width: 24px;
      height: 2px;
      background: var(--color-text);
      border-radius: 1px;
      transition: transform 0.3s, opacity 0.3s;
    }
  
    .navbar-toggle.open span:nth-child(1) {
      transform: translateY(6px) rotate(45deg);
    }
  
    .navbar-toggle.open span:nth-child(2) {
      opacity: 0;
    }
  
    .navbar-toggle.open span:nth-child(3) {
      transform: translateY(-6px) rotate(-45deg);
    }
  
    /* ── Mobile Nav (Slide-Down) ───────────── */
    .nav-right {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      width: 100%;
      padding: 0 1rem;
      background: transparent;
      backdrop-filter: blur(33px);
      position: absolute;
      top: 7vh;
      left: 0;
      right: 0;
      transform-origin: top center;
      transform: scaleY(0);
      transition: transform 0.3s ease-in-out;
    }
  
    .nav-right.open {
      transform: scaleY(1);
    }
  
    /* ── Volle Breite Buttons ─────────────── */
    .nav-item,
    .navbar-link {
      width: 100%;
    }
  
    .navbar-link {
      display: flex;
      justify-content: space-between;
      padding: 0.75rem 1rem;
      font-size: 1.4rem;
    }
  
    /* ── Mega-Dropdown als Akkordeon ──────── */
    .navbar-mega-container {
      position: static !important;
      width: 100%;
      pointer-events: auto;
      margin-top: 0.25rem;
      overflow: visible;
      transform: none !important;
    }
  
    .navbar-mega {
      width: 100%;
      max-width: none;
      margin: 0.5rem 0;
      padding: 1rem;
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 0.5rem;
    }
  
    .navbar-mega-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
  
    .navbar-mega-link {
      font-size: 1.2rem;
    }
  
    .navbar-mega-title {
      font-size: 1.2rem;
      padding-left: 1rem;
    }
  
    /* ── Legacy Dropdown (optional) ───────── */
    .dropdown-menu {
      position: fixed;
      top: 7%;
      left: 5%;
      right: 5%;
      background-color: var(--color-bg);
      animation: dropdownSlide 0.3s ease-out forwards;
    }
  
    .nav-item.dropdown.show .dropdown-menu {
      display: block;
      pointer-events: auto;
    }
  
    .dropdown-item {
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
  
    @keyframes dropdownSlide {
      from {
        opacity: 0;
        transform: translateY(-20px);
      }
  
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  
    /* ── Berg-Container & Footer relativ ─── */
    .berg-container,
    .logo-container,
    .bottom-line {
      bottom: 7.7rem;
    }
  
    .bottom-text>div {
      flex: 1;
      text-align: center;
    }
  
    .bottom-text .left-text {
      font-size: 1.2rem;
    }
  
    /* ── Footer Mobile Tweaks ────────────── */
    .bottom-text {
      position: absolute !important;
      flex-direction: row;
      align-items: center;
      text-align: center;
      padding: 0.3rem 0.3rem;
      gap: 0.8rem;
    }
  
    .right-text {
      text-align: center;
    }
  
    /* ── Social Media Icons als Grid ─────── */
    .social-media {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr);
      margin: 0.625rem auto;
      width: 100px;
    }
  
    .social-media a {
      width: 40px;
      height: 40px;
      background: var(--color-bg);
      border-radius: 5px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  
    /* ── Impressum ausblenden ───────────── */
    .impressum {
      display: none;
    }
    .vac-desktop-only {
    display: none !important;
  }
  }