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

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

/* Desktop-only ausblenden */
.desktop-only {
    display: none !important;
}

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

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

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

/* Desktop-Menü ausblenden */
.topnav .menu {
    background: #fff;
    border-bottom: 2px solid #eee;
    display: none !important;
    flex-direction: column;
    font-size: 15px;
    height: auto;
    left: 0 !important;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    position: fixed !important;
    top: 80px !important;
    transform: none !important;
    width: 100vw !important;
    z-index: 99999 !important;
    padding: 0;
    gap: 0;
}
  
/* Burger-Menü sichtbar */
.menu-icon {
    align-items: center;
    color: #000;
    display: flex !important;
    font-size: 24px;
    height: 100%;
    justify-content: center;
    z-index: 10001;
}

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

/* Menülinks */
.topnav .menu > a {
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    color: #333 !important;
    display: flex;
    font-size: 15px;
    height: 40px;
    justify-content: center;
    text-align: center;
    margin: 0 !important;
    padding: 0 !important;
}

/* Scrolled Header */
.topnav.scrolled {
    height: 35px;
    padding: 0 3px;
}

.topnav.scrolled .menu {
    max-height: calc(100vh - 35px);
    top: 35px !important;
}

.topnav.scrolled .logo-scrolled {
    margin-left: 3px !important;
}

.topnav.scrolled .menu-icon {
    color: #fff;
}

.topnav.scrolled .header-button {
    margin-right: 5px !important;
}

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

/* Mobile-only Elemente */
.mobile-only {
    display: block !important;
}
  
/* Toggle-Label */
.lb-toggle-label {
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    color: #333 !important;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    height: 40px;
    line-height: 40px;
    justify-content: center;
    padding: 0;
    text-align: center;
    width: 100%;
    position: relative;
    font-weight: bold;
    margin: 0px !important;
    padding: 0 !important;
}

/* Pfeil links */
.lb-toggle-label::before {
    content: "▼";
    font-size: 15px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-55%);
    pointer-events: none;
}

/* Pfeil rechts */
.lb-toggle-label::after {
    content: "▼";
    font-size: 15px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-55%);
    pointer-events: none;
}

/* Pfeile drehen */
#lb-toggle:checked + .lb-toggle-label::before,
#lb-toggle:checked + .lb-toggle-label::after {
    transform: translateY(-55%) rotate(180deg);
}

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

/* Unterpunkte anzeigen – KORREKTER Selektor */
#lb-toggle:checked ~ .mobile-lb-submenu {
    display: flex !important;
}

/* Unterpunkte stylen */
.mobile-lb-submenu a {
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    color: #3AAADD !important;
    display: flex;
    font-size: 15px;
    height: 30px;
    justify-content: center;
    text-align: center;
    margin: 0 !important;
    padding: 0 !important;
}

/* Übersicht-Link hervorheben */
.lb-overview-link {
    color: #3AAADD !important;
    font-weight: bold;
}

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

/* Checkbox unsichtbar, aber klickbar */
#lb-toggle,
#menu-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
  
/* -----------------------------------
   HERO
----------------------------------- */
.hero {
    background-position: center 40%;
    margin-top: 80px !important;
    padding: 80px 15px;
}

.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;
}
  
/* White-Section Abstand nur auf Leistungsbereich-Seiten */
    body.page-ohne-hero .white-section {
        margin-bottom: 25px !important;
    }

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

.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 {
    box-sizing: border-box;
    margin: 0 !important;
    padding: 15px !important;
    width: 100%;
}

#abschnitt {
    margin-bottom: 15px;
}

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

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

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

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

.footer-bottom {
    font-size: 12px;
}
  
} /* END MEDIA QUERY */