/* -----------------------------------
   MOBILE GLOBAL
----------------------------------- */
@media (max-width: 800px) {

body {
    font-size: 16px;
    padding: 0;
    margin: 0;
    margin-top: -80px;
    overflow-x: hidden;
}

/* Abstand unter dem Header für Seiten ohne Hero */
.page-ohne-hero {
    padding-top: 65px !important;
}

/* -----------------------------------
   MOBILE HEADER & MENÜ
----------------------------------- */

/* Header kompakter */
.topnav {
    height: 80px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Desktop-Menü ausblenden */
.topnav .menu {
    display: none !important;
    position: static !important;
    transform: none !important;
    left: auto !important;
  	max-height: calc(100vh - 80px);
    overflow-y: auto;
}

/* Burger-Menü sichtbar */
.menu-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 24px;
    color: #000;
    z-index: 10001;
}

/* Dropdown anzeigen */
#menu-toggle:checked ~ .menu {
    display: flex !important;
}

/* Dropdown korrekt positionieren */
.topnav .menu {
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    width: 100vw !important;
    background: #fff;
    z-index: 99999 !important;
    display: none;
    flex-direction: column;
    padding: 0;
    border-bottom: 2px solid #eee;
}

/* Menülinks – zentriert & einheitliche Höhe */
.topnav .menu > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 20px;
    font-size: 16px;
    color: #333 !important;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}

/* Scrolled Header */
.topnav.scrolled {
    height: 50px;
    padding: 0 5px;
}

/* Dropdown unter kompaktem Header */
.topnav.scrolled .menu {
    top: 55px !important;
 	max-height: calc(100vh - 55px);
}  

/* Logo-Abstand im scrolled Header */
.topnav.scrolled .logo-scrolled {
    margin-left: 5px !important;
}

/* Menüicon im scrolled Header */
.topnav.scrolled .menu-icon {
    color: #fff;
}

/* Abstand rechts neben dem Button */
.topnav.scrolled .header-button {
    margin-right: 5px !important;
}

/* -----------------------------------
   MOBILE LB-UNTERMENÜ (EINKLAPPBAR)
----------------------------------- */

/* Mobile-only Elemente */
.mobile-only {
    display: none;
}

/* Nur auf Mobile sichtbar */
@media (max-width: 800px) {
    .mobile-only {
        display: block;
    }
}

/* Toggle-Pfeil */
.lb-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #e5e5e5;
    cursor: pointer;
}
  
/* Kästchen ausblenden */  
#lb-toggle {
    display: none;
}
  
/* Pfeil bleibt rechts */    
.lb-toggle-label {
    margin-left: auto;
    padding-right: 20px;
}

/* Unterpunkte standardmäßig versteckt */
.mobile-lb-submenu {
    display: none;
    flex-direction: column;
    background: #fff;
    margin-top: -1px;
}

/* Unterpunkte anzeigen, wenn Checkbox aktiv */
#lb-toggle:checked ~ .mobile-lb-submenu {
    display: flex;
}

/* Pfeil drehen */
#lb-toggle:checked + .lb-toggle-label {
    transform: rotate(180deg);
}

/* Unterpunkte stylen */
.mobile-lb-submenu a {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 20px;
    font-size: 14px;
    color: #3AAADD !important;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
    justify-content: center;
}
  
/* Übersicht-Link hervorheben */
.lb-overview-link {
    font-weight: 600;
    color: #3AAADD !important;
}

/* Desktop-LB-Menü ausblenden */
.lb-menu {
    display: none !important;
}

/* -----------------------------------
   HERO
----------------------------------- */
.hero {
    margin-top: 80px !important;
    padding: 80px 15px;
    background-position: center 40%;
}

.hero h1 {
    font-size: 28px;
}

.hero p {
    font-size: 16px;
}

.button {
    font-size: 16px;
    padding: 12px 20px;
}

/* -----------------------------------
   MOBILE SECTIONS
----------------------------------- */
section {
    margin: 20px auto;
    padding: 15px;
}

section h2 {
    font-size: 22px;
}

section p {
    font-size: 16px;
}

/* -----------------------------------
   GRID / CARDS
----------------------------------- */
.grid {
    grid-template-columns: 1fr;
    gap: 15px;
}

.card {
    padding: 18px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.card p {
    margin-bottom: 8px;
}

.card ul li {
    margin-bottom: 6px;
}

/* -----------------------------------
   ZWEI-SPALTEN-BEREICH
----------------------------------- */
.section-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    padding: 0 10px;
}

.white-section {
    width: 100%;
    padding: 15px !important;
    margin: 0 !important;
    box-sizing: border-box;
}

#abschnitt {
    margin-bottom: 15px;
}

/* -----------------------------------
   KONTAKT-BOX
----------------------------------- */
.kontakt-preview-box {
    width: 100%;
    height: 520px !important;
    overflow: hidden;
    border-radius: 10px;
    box-sizing: border-box;
}

.kontakt-preview-box iframe {
    width: 100% !important;
    height: 640px !important;
    transform: none !important;
    transform-origin: top left !important;
    border: none;
    margin: 0 !important;
    padding: 0 !important;
    top: -140px !important;
    left: 0 !important;
    position: relative !important;
}

/* -----------------------------------
   FOOTER
----------------------------------- */
footer {
    padding: 25px 15px;
    font-size: 13px;
}

.footer-links a {
    margin: 0 4px;
}

.footer-bottom {
    font-size: 12px;
}

} /* END MEDIA QUERY */
