@charset "UTF-8";
/* CSS Document */

/*
=========================
MOBILE NAVBAR < 1024 px
=========================
*/

/* Über 1024 px Mobile Navbar ganz ausblenden */
@media (min-width: 1024px) {
  .mobile-navbar { display: none !important; }
}

/* Unter 1024 px aktivieren */
@media (max-width: 1023px) {

  /* Basis: kompletter Mobile-Header */
  .mobile-navbar {
    /* wichtig: absolute, damit sie mit der Seite nach oben "mitwandert" */
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--white);
    z-index: 1000;
    transition: background-color 0.35s ease, color 0.35s ease;
    will-change: transform; /* smoother beim Mitscrollen */
  }

  /* Hintergrundband (Page Load) */
  .mobile-navbar .mobile-container {
    position: relative;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 var(--nav-side-spacing);
  }

  /* Brand mittig zentriert – gleiche Typo wie Desktop */
  .mobile-navbar .brand {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1.2px;
    line-height: 80px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.35s ease;
  }

  /* Hamburger oben rechts – Höhe der 3 Striche ≈ Schriftgröße */
  .menu-toggle {
    position: absolute;
    right: var(--nav-side-spacing);
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;          /* an Brand-Schriftgröße gekoppelt */
    height: 1.0em;           /* Gesamthöhe ≈ 1em der Schrift */
    cursor: pointer;
  }
  .menu-toggle span {
    position: absolute;
    left: 0; right: 0;
    height: 0.15em;          /* Dicke der Linie */
    background: var(--white);
    transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.25s ease;
  }
  .menu-toggle span:nth-child(1) { top: 0; }
  .menu-toggle span:nth-child(2) { top: calc(50% - 0.07em); }
  .menu-toggle span:nth-child(3) { bottom: 0; }

  /* Farbwechsel nur im geöffneten Zustand */
  .mobile-navbar.expanded { background: var(--white); color: var(--black); }
  .mobile-navbar.expanded .brand { color: var(--black); }
  .mobile-navbar.expanded .menu-toggle span { background: var(--active-color); }

  /* Hamburger -> symmetrisches X */
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(0.43em) rotate(45deg);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-0.43em) rotate(-45deg);
  }

  /* Menüfläche – NICHT fixed, damit sie beim Scrollen mit "wegfährt" */
  #mobile-menu {
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 1.2px;
    position: absolute;      /* wichtig: nicht fixed */
    top: 80px; left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    overflow-y: auto;
    text-align: center;
  }
  .mobile-navbar.expanded #mobile-menu {
    transform: scaleY(1);
    opacity: 1;
  }

  /* Menüliste */
  #mobile-menu ul { padding: 5px 0; }
  #mobile-menu li { margin: 14px 0; }

  /* Top-Level Links + Accordion-Header */
  #mobile-menu > ul > li > a,
  #mobile-menu .mobile-accordion-toggle {
    display: inline-block;
    font-size: 1.1rem;
    color: var(--black);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(-10px);
    animation: none;
    transition: color 0.25s ease;
    cursor: pointer;               /* Hover-Cursor auch für „MEINE ARBEIT“ */
  }

    
  .mobile-navbar.expanded #mobile-menu > ul > li > a,
  .mobile-navbar.expanded #mobile-menu .mobile-accordion-toggle {
    animation: fadeInDown 0.35s ease forwards;
  }
  .mobile-navbar.expanded #mobile-menu > ul > li:nth-child(1) > a { animation-delay: 0.12s; }
  .mobile-navbar.expanded #mobile-menu > ul > li:nth-child(2) .mobile-accordion-toggle { animation-delay: 0.24s; }
  .mobile-navbar.expanded #mobile-menu > ul > li:nth-child(3) > a { animation-delay: 0.36s; }
    
  #mobile-menu a:not(.current):hover,
  #mobile-menu .mobile-accordion-toggle:not(.current):hover,
  .mobile-accordion-content a:not(.current):hover {
  color: var(--hover-color);
  }
    

  /* Accordion „MEINE ARBEIT“ */
  .mobile-accordion { --acc-max: 520px; }
  .mobile-accordion-toggle {
    position: relative;
    padding-right: 18px;
  }
  .mobile-accordion-toggle::after {
    content: '▾';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.25s ease;
  }
  .mobile-accordion.open .mobile-accordion-toggle::after { transform: translateY(-50%) rotate(-180deg); }

  .mobile-accordion-content {
    font-weight: 500 !important;
    font-size: 1.1rem!important;
    letter-spacing: .5px!important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
  }
  .mobile-accordion.open .mobile-accordion-content {
    max-height: var(--acc-max);
    opacity: 1;
    transform: translateY(0);
  }
  .mobile-accordion-content li { margin: 6px 0; }
  .mobile-accordion-content a {
    color: var(--black);
    text-transform: uppercase;
    transition: color 0.25s ease;
  }
  .mobile-accordion-content a:hover {
    color: var(--hover-color);
  }


    
  /* Keyframes für „fadeInDown“ */
  @keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/*
===================================
SECTION Text (& Accordion) Mobile
===================================
*/
.text-section {
  background: var(--white);
  padding: 4rem var(--nav-side-spacing);
}

.text-column {
  color: var(--black);
  padding: 0 1vw;
}

.text-column h3 {
  padding: 1.4rem 0 .25rem;
}

.text-column p {
  padding-bottom: .25rem;
  line-height: 1.6;

}

/* Akkordeon Mobile */
.text-accordion {
  margin: .75rem 0 1.5rem; 
}

.text-accordion-header {
  width: 100%;
  background: var(--red);
  color: var(--white);
  font-size: var(--fs-p);
  font-weight: var(--fw-h5);
  letter-spacing: var(--ls-h5);
  text-align: left;
  text-transform: uppercase;
  line-height: 1.5rem;
  padding: .8rem 1rem;
  border: 1px solid #b61924;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.text-accordion-icon {
  position: absolute;
  right: 1rem;
  top: 45%;
  font-size: var(--fs-h2);
  font-weight: var(--fw-p);
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}

.text-accordion-header.active .text-accordion-icon {
  transform: translateY(-25%) rotate(180deg);
}

.text-accordion-content {
  max-height: 0;
  overflow: hidden;
  background: #b61924;
  border: 1px solid #b61924;
  border-radius: 5px;
  color: var(--white);
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1rem;   /* nur horizontal */
}

/* Beim Öffnen auch vertikales Padding sichtbar machen */
.text-accordion-header.active + .text-accordion-content {
  padding: 0 0 2.5rem;
}

.text-accordion-content ul,
.text-accordion-content ol {
  padding: 0 2rem 1.75rem 1rem;
}

.text-accordion-content ul li {
  margin-bottom: 0.5rem;
  list-style-type: disc;
  text-transform: none !important;
}

.text-accordion-content ol li {
  margin-bottom: 5.5rem;
  list-style-type: decimal;
  list-style-position: outside;
  text-transform: none !important;
}

