/* ============================================
   HANSMEIER STEUERUNGSTECHNIK
   Mobile-First Responsive CSS
   Bootstrap 5 Basis
   ============================================ */

/* ============================================
   1. CUSTOM FONTS
   ============================================ */
@font-face {
    font-family: "custom-font";
    src: url("../../Public/Fonts/MetaNormal-Roman.TTF") format('truetype');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "custom-font";
    src: url("../../Public/Fonts/MetaBold-Roman.TTF") format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IcoMoon-Ultimate';
    src: url('../../Public/Fonts/IcoMoon-Ultimate.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   2. CSS CUSTOM PROPERTIES (Variablen)
   ============================================ */
:root {
    /* Farben */
    --blue: #007bff;
    --blaugruen: #275669;
    --dunkelblau: #3264a2;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #EF7D00;
    --yellow: #ffc107;
    --green: #a9ec3d;
    --teal: #20c997;
    --cyan: #eff3f5;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #343a40;
    --primary-hover: #23272b;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;

    /* Bootstrap Dropdown Override */
    --bs-dropdown-link-active-color1: #ef7d00;
    --bs-dropdown-link-active-bg1: #ededee;

    /* Breakpoints */
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;

    /* Typography */
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;

    /* Navigation */
    --nav-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-width: 280px;
}

/* ============================================
   3. BASE STYLES (Mobile First)
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 1rem;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'custom-font', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ============================================
   4. MOBILE NAVIGATION - SLIDE FROM RIGHT
   ============================================ */

/* Overlay (Hintergrund abdunkeln) */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--nav-transition), visibility var(--nav-transition), background-color var(--nav-transition);
    z-index: 1040;
}

.nav-overlay.active {
    visibility: visible;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Mobile Navigation Container */
.mobile-nav,
.navbar-collapse.offcanvas-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--nav-width);
    max-width: 85vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height für mobile Browser */
    background-color: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform var(--nav-transition);
    z-index: 1050;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

.mobile-nav.open,
.navbar-collapse.offcanvas-nav.show {
    transform: translateX(0);
}

/* Navigation Header im Slide-In Menü */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    background-color: var(--cyan);
}

.mobile-nav-header .logo {
    max-height: 50px;
    width: auto;
}

/* Close Button */
.mobile-nav-close,
.btn-close-nav {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.mobile-nav-close:hover,
.btn-close-nav:hover {
    color: var(--orange);
    transform: rotate(90deg);
}

/* Navigation Links im Slide-In */
.mobile-nav .navbar-nav,
.offcanvas-nav .navbar-nav {
    flex-direction: column;
    padding: 1rem 0;
}

.mobile-nav .nav-item,
.offcanvas-nav .nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav .nav-item:last-child,
.offcanvas-nav .nav-item:last-child {
    border-bottom: none;
}

.mobile-nav .nav-link,
.offcanvas-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    min-height: 56px;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link:focus,
.offcanvas-nav .nav-link:hover,
.offcanvas-nav .nav-link:focus {
    background-color: var(--cyan);
    color: var(--orange);
    padding-left: 1.5rem;
}

.mobile-nav .nav-link.active,
.offcanvas-nav .nav-link.active {
    color: var(--orange);
    background-color: rgba(239, 125, 0, 0.08);
    border-left: 3px solid var(--orange);
}

/* Dropdown im Mobile Menu */
.mobile-nav .dropdown-menu,
.offcanvas-nav .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background-color: #f8f9fa;
    padding: 0;
    margin: 0;
    display: none;
}

.mobile-nav .dropdown-menu.show,
.offcanvas-nav .dropdown-menu.show {
    display: block;
}

.mobile-nav .dropdown-item,
.offcanvas-nav .dropdown-item {
    padding: 0.875rem 1.25rem 0.875rem 2rem;
    font-size: 1rem;
    color: var(--gray-dark);
    min-height: 48px;
    display: flex;
    align-items: center;
}

.mobile-nav .dropdown-item:hover,
.offcanvas-nav .dropdown-item:hover {
    background-color: #e9ecef;
    color: var(--orange);
}

/* Sub-Toggle für Dropdowns */
.sub-toggle {
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sub-toggle.open {
    transform: rotate(180deg);
}

/* Hamburger Button */
.navbar-toggler {
    width: 44px;
    height: 44px;
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1060;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    position: relative;
    transition: background-color 0.2s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    transition: transform 0.3s ease, top 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -7px;
}

.navbar-toggler-icon::after {
    top: 7px;
}

/* Hamburger Animation zu X */
.navbar-toggler.active .navbar-toggler-icon {
    background-color: transparent;
    height: 0;
}

.navbar-toggler.active .navbar-toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar-toggler.active .navbar-toggler-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Body Lock wenn Navigation offen */
body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ============================================
   5. HEADER / TOP NAVIGATION
   ============================================ */
.header-top {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: var(--white);
    transition: box-shadow 0.3s ease;
}

.header-top.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top .topnavsub {
    transition: all 0.3s ease;
    height: auto;
    padding: 0.75rem 0;
}

/* Logo */
.header-top .navbar-brand img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

/* Desktop Navigation Links (hidden on mobile) */
.topnavsub .navbar-nav a.nav-link {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    color: #333333;
    transition: all 0.3s ease;
    position: relative;
}

.topnavsub li.nav-item a:hover::after,
.topnavsub li.nav-item.active a::after {
    content: "";
    display: inline-block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #000;
}

/* ============================================
   6. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: bold;
    line-height: 1.2;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

.ce-bodytext {
    line-height: 1.375;
}

.ce-bodytext a {
    color: var(--dunkelblau);
}

.uppercase {
    text-transform: uppercase;
}

/* ============================================
   7. UTILITY CLASSES
   ============================================ */
/* Background Colors */
.bg-cyan { background-color: var(--cyan); }
.bg-green { background-color: var(--green); }
.bg-gruenblau,
.bg-blaugruen { background-color: var(--blaugruen); }

.bg-blaugruen-textwhite {
    color: var(--white);
}

.bg-blaugruen-textwhite a {
    color: var(--white);
}

/* Display */
.frame-d-none { display: none; }

/* Object Fit */
.object-fit-cover { object-fit: cover; }

/* Full Width Images */
.frame-img-fullwidth img {
    width: 100%;
    height: auto;
}

.frame-row-center {
    text-align: center;
}

/* ============================================
   8. LISTS & TEASERS
   ============================================ */
.bg-blaugruen-textwhite ul,
.bg-blaugruen-textwhite ul li,
.teaser ul,
.teaser ul li,
.downloads ul,
.downloads ul li,
.leitlinien ul,
.leitlinien ul li,
.leistungscontainer ul,
.listitem ul,
.listitem ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bg-blaugruen-textwhite li::before,
.teaser li::before,
.downloads li::before,
.leitlinien li::before,
.leistungscontainer li::before,
.listitem li::before {
    content: "»";
    margin-right: 0.5em;
}

.teaser ul li,
.downloads li,
.leitlinien li,
.listitem li {
    display: flex;
}

.downloads ul,
.downloads p,
.leitlinien ul,
.leitlinien p {
    margin-left: 1.175em;
}

.downloads li a,
.leitlinien li a,
.listitem a {
    color: var(--dark);
}

/* ============================================
   9. DROPDOWN STYLES
   ============================================ */
.dropdown-item:hover {
    color: var(--bs-dropdown-link-active-color1) !important;
    text-decoration: none;
}

.dropdown-item.active,
.dropdown-item:active {
    color: var(--bs-dropdown-link-active-color1) !important;
    text-decoration: none;
    background-color: var(--bs-dropdown-link-active-bg1) !important;
}

/* ============================================
   10. BREADCRUMB
   ============================================ */
.breadcrumb-item a {
    color: var(--primary);
}

.breadcrumb-item + .breadcrumb-item {
    padding-top: 2px;
}

/* ============================================
   11. DOWNLOADS CONTAINER
   ============================================ */
.downloads-container h3 {
    text-transform: uppercase;
    font-weight: 600 !important;
    font-size: 1.5rem;
}

.downloads-container .leistungscontainer h3 {
    color: var(--white);
}

.downloads-container li::before,
.downloads-container a {
    color: var(--green);
}

/* ============================================
   12. BUTTONS
   ============================================ */
.btn-n1 {
    margin-top: -2px;
}

.button-1097 {
    border-width: 0;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    transition: filter 300ms ease-in-out;
    text-decoration: none;
    align-items: center;
    background: var(--green);
    justify-content: center;
    margin: 1.5rem 0 0 0;
    padding: 0.75rem 1rem;
    flex-direction: row;
    border-radius: 0;
    line-height: 1;
    color: #000;
    font-size: 1rem;
    font-weight: 500;
    gap: 1rem;
    width: 100%;
}

.button-1097:hover {
    filter: brightness(110%);
    background: var(--green);
    color: #000;
}

/* ============================================
   13. BACK TO TOP BUTTON
   ============================================ */
#back-to-top,
#back-to-top i {
    display: none;
}

#back-to-top {
    position: fixed;
    transition: all 0.3s;
    z-index: 1000;
    width: 40px;
    height: 40px;
    right: 1rem;
    bottom: 1rem;
    opacity: 0;
     
    border: none;
     
    color: var(--white);
    cursor: pointer;
}

#back-to-top i {
    font-size: 1em;
    padding-top: 0.675rem;
    display: inherit;
}

#back-to-top.show {
    opacity: 0.5;
    outline: none;
}

#back-to-top:hover {
    opacity: 1;
    
}

/* ============================================
   14. CONTENT SECTIONS (Mobile Base)
   ============================================ */
.content-1 {
    padding: 2rem 1rem;
    position: relative;
    background: var(--white);
}

.content-2 {
    padding: 2rem 1rem;
    position: relative;
}

/* ============================================
   15. TIMELINE COMPONENT
   ============================================ */
.timeline {
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.timeline-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #000;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    z-index: 99;
    flex-shrink: 0;
}

.timeline-arrow img {
    object-position: 50% 50%;
    position: absolute;
    object-fit: cover;
}

.timeline-slides {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    position: relative;
    height: 100%;
}

.timeline-slides::before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 1px;
    background: #000;
    top: 50%;
}

.timeline-slides-no-line::before {
    display: none;
}

.timeline-slide {
    position: absolute;
    left: 50%;
    transition: all 500ms;
    transform-origin: 50% 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    top: 39%;
}

.timeline-slide-img,
.timeline-slide-content {
    opacity: 0;
    width: 100%;
    max-width: 72vw;
    position: absolute;
    transition: all 500ms;
    transform: translate(-50%, -100%);
}

.timeline-slide-img img,
.timeline-slide-content img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-slide-img {
    height: 200px;
}

.timeline-slide-content {
    transform: translate(-50%, 2px);
    top: 0;
    padding: 1.5rem 1rem 2rem;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.timeline-slide-date {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--green);
    transition: all 500ms;
    transform-origin: 50% 50%;
    transform: translate(-50%, -50%);
}

.timeline-slide-date-text {
    display: none;
    color: #000;
    letter-spacing: 0.5px;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 500ms;
}

.timeline-slide-active .timeline-slide-img,
.timeline-slide-active .timeline-slide-content {
    opacity: 1;
}

.timeline-slide-active .timeline-slide-date {
    width: 80px;
    height: 80px;
}

.timeline-slide-active .timeline-slide-date-text {
    display: block;
}

.timeline-slide-next .timeline-slide-date {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 0.875rem;
}

.timeline-slide-next .timeline-slide-date-text {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
}

.timeline-headline,
.timeline-subline {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.timeline-subline {
    font-weight: 300;
    margin: 0 0 1rem 0;
    letter-spacing: 1.5px;
}

.timeline-text {
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.timeline-text p {
    margin: 0;
    padding: 0;
}

/* ============================================
   16. SPACING UTILITIES
   ============================================ */
/* Positive Margins */
.frame-space-before-mt-1 { margin-top: 0.25rem !important; }
.frame-space-before-mt-2 { margin-top: 0.5rem !important; }
.frame-space-before-mt-3 { margin-top: 1rem !important; }
.frame-space-before-mt-4 { margin-top: 1.5rem !important; }
.frame-space-before-mt-5 { margin-top: 2rem !important; }
.frame-space-before-mt-6, .mt-6 { margin-top: 2.5rem !important; }
.frame-space-before-mt-7, .mt-7 { margin-top: 3rem !important; }
.frame-space-before-mt-8, .mt-8 { margin-top: 4rem !important; }
.frame-space-before-mt-9, .mt-9 { margin-top: 5rem !important; }
.frame-space-before-mt-10, .mt-10 { margin-top: 6rem !important; }

.frame-space-after-mb-1 { margin-bottom: 0.25rem !important; }
.frame-space-after-mb-2 { margin-bottom: 0.5rem !important; }
.frame-space-after-mb-3 { margin-bottom: 1rem !important; }
.frame-space-after-mb-4 { margin-bottom: 1.5rem !important; }
.frame-space-after-mb-5 { margin-bottom: 2rem !important; }
.frame-space-after-mb-6, .mb-6 { margin-bottom: 2.5rem !important; }
.frame-space-after-mb-7, .mb-7 { margin-bottom: 3rem !important; }
.frame-space-after-mb-8, .mb-8 { margin-bottom: 4rem !important; }
.frame-space-after-mb-9, .mb-9 { margin-bottom: 5rem !important; }
.frame-space-after-mb-10, .mb-10 { margin-bottom: 6rem !important; }

/* Negative Margins */
.m-n1 { margin: -0.25rem !important; }
.mt-n1, .my-n1, .frame-space-before-mt-n1 { margin-top: -0.25rem !important; }
.mb-n1, .my-n1, .frame-space-after-mb-n1 { margin-bottom: -0.25rem !important; }
.m-n2 { margin: -0.5rem !important; }
.mt-n2, .my-n2, .frame-space-before-mt-n2 { margin-top: -0.5rem !important; }
.mb-n2, .my-n2, .frame-space-after-mb-n2 { margin-bottom: -0.5rem !important; }
.m-n3 { margin: -1rem !important; }
.mt-n3, .my-n3, .frame-space-before-mt-n3 { margin-top: -1rem !important; }
.mb-n3, .my-n3, .frame-space-after-mb-n3 { margin-bottom: -1rem !important; }
.m-n4 { margin: -1.5rem !important; }
.mt-n4, .my-n4, .frame-space-before-mt-n4 { margin-top: -1.5rem !important; }
.mb-n4, .my-n4, .frame-space-after-mb-n4 { margin-bottom: -1.5rem !important; }
.m-n5 { margin: -2.25rem !important; }
.mt-n5, .my-n5, .frame-space-before-mt-n5 { margin-top: -2.25rem !important; }
.mb-n5, .my-n5, .frame-space-after-mb-n5 { margin-bottom: -2.25rem !important; }




.btn-n1 {
    margin-top: -2px;
}



.m-n1 {
    margin: -.25rem !important
}

.frame-space-before-mt-n1,
.mt-n1,
.my-n1 {
    margin-top: -.25rem !important
}

.mr-n1,
.mx-n1 {
    margin-right: -.25rem !important
}

.frame-space-before-mb-n1,
.mb-n1,
.my-n1 {
    margin-bottom: -.25rem !important
}

.ml-n1,
.mx-n1 {
    margin-left: -.25rem !important
}


.m-n2 {
    margin: -.5rem !important
}

.frame-space-before-mt-n2,
.mt-n2,
.my-n2 {
    margin-top: -.5rem !important
}

.mr-n2,
.mx-n2 {
    margin-right: -.5rem !important
}

.frame-space-after-mb-n2,
.mb-n2,
.my-n2 {
    margin-bottom: -.5rem !important
}

.ml-n2,
.mx-n2 {
    margin-left: -.5rem !important
}

.m-n3 {
    margin: -1rem !important
}

.frame-space-before-mt-n3,
.mt-n3,
.my-n3 {
    margin-top: -1rem !important
}

.mr-n3,
.mx-n3 {
    margin-right: -1rem !important
}

.frame-space-after-mb-n3,
.mb-n3,
.my-n3 {
    margin-bottom: -1rem !important
}

.ml-n3,
.mx-n3 {
    margin-left: -1rem !important
}

.m-n4 {
    margin: -1.5rem !important
}

.frame-space-before-mt-n4,
.mt-n4,
.my-n4 {
    margin-top: -1.5rem !important
}

.mr-n4,
.mx-n4 {
    margin-right: -1.5rem !important
}

.frame-space-after-mb-n4,
.mb-n4,
.my-n4 {
    margin-bottom: -1.5rem !important
}

.ml-n4,
.mx-n4 {
    margin-left: -1.5rem !important
}

.m-n5 {
    margin: -2.25rem !important
}

.frame-space-before-mt-n5,
.mt-n5,
.my-n5 {
    margin-top: -2.25rem !important
}

.mr-n5,
.mx-n5 {
    margin-right: -2.25rem !important
}

.frame-space-after-mb-n5,
.mb-n5,
.my-n5 {
    margin-bottom: -2.25rem !important
}

.ml-n5,
.mx-n5 {
    margin-left: -2.25rem !important
}

.m-n6 {
    margin: -3.75rem !important
}

.frame-space-before-mt-n6,
.mt-n6,
.my-n6 {
    margin-top: -3.75rem !important
}

.mr-n6,
.mx-n6 {
    margin-right: -3.75rem !important
}

.frame-space-after-mb-n6,
.mb-n6,
.my-n6 {
    margin-bottom: -3.75rem !important
}

.ml-n6,
.mx-n6 {
    margin-left: -3.75rem !important
}

.m-n7 {
    margin: -4.75rem !important
}

.frame-space-before-mt-n7,
.mt-n7,
.my-n7 {
    margin-top: -4.75rem !important
}

.mr-n7,
.mx-n7 {
    margin-right: -4.75rem !important
}

.frame-space-after-mb-n7,
.mb-n7,
.my-n7 {
    margin-bottom: -4.75rem !important
}

.ml-n7,
.mx-n7 {
    margin-left: -4.75rem !important
}

.m-n8 {
    margin: -6.25rem !important
}

.frame-space-before-mt-n8,
.mt-n8,
.my-n8 {
    margin-top: -6.25rem !important
}

.mr-n8,
.mx-n8 {
    margin-right: -6.25rem !important
}

.frame-space-after-mb-n8,
.mb-n8,
.my-n8 {
    margin-bottom: -6.25rem !important
}

.ml-n8,
.mx-n8 {
    margin-left: -6.25rem !important
}

.m-n9 {
    margin: -7.75rem !important
}

.frame-space-before-mt-n9,
.mt-n9,
.my-n9 {
    margin-top: -7.75rem !important
}

.mr-n9,
.mx-n9 {
    margin-right: -7.75rem !important
}

.frame-space-after-mb-n9,
.mb-n9,
.my-n9 {
    margin-bottom: -7.75rem !important
}

.ml-n9,
.mx-n9 {
    margin-left: -7.75rem !important
}

.m-n10 {
    margin: -9.5rem !important
}

.frame-space-before-mt-n10,
.mt-n10,
.my-n10 {
    margin-top: -9.5rem !important
}

.mr-n10,
.mx-n10 {
    margin-right: -9.5rem !important
}

.frame-space-after-mb-n1,
.mb-n10,
.my-n10 {
    margin-bottom: -9.5rem !important
}

.ml-n10,
.mx-n10 {
    margin-left: -9.5rem !important
}

.m-n11 {
    margin: -11rem !important
}

.frame-space-before-mt-n11,
.mt-n11,
.my-n11 {
    margin-top: -11rem !important
}

.mr-n11,
.mx-n11 {
    margin-right: -11rem !important
}

.frame-space-after-mb-n11,
.mb-n11,
.my-n11 {
    margin-bottom: -11rem !important
}

.ml-n11,
.mx-n11 {
    margin-left: -11rem !important
}

.m-n12 {
    margin: -12.5rem !important
}

.frame-space-before-mt-n12,
.mt-n12,
.my-n12 {
    margin-top: -12.5rem !important
}

.mr-n12,
.mx-n12 {
    margin-right: -12.5rem !important
}

.frame-space-after-mb-n12,
.mb-n12,
.my-n12 {
    margin-bottom: -12.5rem !important
}

.ml-n12,
.mx-n12 {
    margin-left: -12.5rem !important
}

.m-n13 {
    margin: -14.5rem !important
}

.frame-space-before-mt-n13,
.mt-n13,
.my-n13 {
    margin-top: -14.5rem !important
}

.mr-n13,
.mx-n13 {
    margin-right: -14.5rem !important
}

.frame-space-after-mb-n13,
.mb-n13,
.my-n13 {
    margin-bottom: -14.5rem !important
}

.ml-n13,
.mx-n13 {
    margin-left: -14.5rem !important
}

.m-n14 {
    margin: -16rem !important
}

.frame-space-before-mt-n14,
.mt-n14,
.my-n14 {
    margin-top: -16rem !important
}

.mr-n14,
.mx-n14 {
    margin-right: -16rem !important
}

.frame-space-after-mb-n14,
.mb-n14,
.my-n14 {
    margin-bottom: -16rem !important
}

.ml-n14,
.mx-n14 {
    margin-left: -16rem !important
}

.m-n15 {
    margin: -19rem !important
}

.frame-space-before-mt-n15,
.mt-n15,
.my-n15 {
    margin-top: -19rem !important
}

.mr-n15,
.mx-n15 {
    margin-right: -19rem !important
}

.frame-space-after-mb-n15,
.mb-n15,
.my-n15 {
    margin-bottom: -19rem !important
}

.ml-n15,
.mx-n15 {
    margin-left: -19rem !important
}

.m-auto {
    margin: auto !important
}

.mt-auto,
.my-auto {
    margin-top: auto !important
}

.mr-auto,
.mx-auto {
    margin-right: auto !important
}

.mb-auto,
.my-auto {
    margin-bottom: auto !important
}

.ml-auto,
.mx-auto {
    margin-left: auto !important
}

















/* Auto Margins */
.m-auto { margin: auto !important; }
.mt-auto, .my-auto { margin-top: auto !important; }
.mr-auto, .mx-auto { margin-right: auto !important; }
.mb-auto, .my-auto { margin-bottom: auto !important; }
.ml-auto, .mx-auto { margin-left: auto !important; }

/* ============================================
   17. LEISTUNGEN NAVIGATION
   ============================================ */



/* Aktiver Nav-Link */
.leistungsnav .nav-link.active {
position: relative;
        color: #fff;
        width: max-content;
        margin: auto;
     
}

/* Unterstreichung */
.leistungsnav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px; /* Abstand unter Text */
    width: 100%;
    height: 3px;  /* Dicke der Linie */
    background-color: #00ffff; /* gewünschte Farbe der Linie */
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Optional: Smooth Hover Effekt für andere Links */
.leistungsnav .nav-link:not(.active):hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 2px;
    transition: width 0.3s ease;
}




/* Wrapper für horizontales Scrollen */
.nav-scroll-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding: 0 40px;
    cursor: grab;
}

/* UL horizontal ausrichten */
.nav-scroll-wrapper ul {
    display: flex;
    flex-wrap: nowrap;
}

/* Nav-Items dürfen nicht umbrechen */
.nav-scroll-wrapper li {
    flex: 0 0 auto;
        text-align: center !important;
}

/* Pfeile */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
   
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 20px;
    cursor: pointer;
    background:none;
     
}

.nav-arrow-left {
    left: 0;
}

.nav-arrow-right {
    right: 0;
}

/* Pfeile nur sichtbar bei Überlauf */
.nav-arrow {
    display: none;
}

/* Drag Cursor */
.nav-scroll-wrapper.dragging {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

/* Scrollbar ausblenden */
.nav-scroll-wrapper::-webkit-scrollbar { display: none; }
.nav-scroll-wrapper { scrollbar-width: none; -ms-overflow-style: none; }







    .leistungsnav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 100px;
        row-gap: 30px;
    }


    .leistungsnav .nav-link.active::after {
    content: "";
    display: inline-block;
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #fff;
}







.position-mobile-relative {
    position:relative !important;
}





/* ============================================
   18. FOOTER NAVIGATION
   ============================================ */
.ul-contactfooter .nav-item.active a::after {
    content: "";
    display: inline-block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background: #000;
}

/* ============================================
   19. SLIDER / HERO
   ============================================ */
.slidecontainer {
    width: 100%;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: auto;
    outline: none;
    -webkit-transition: 0.2s;
    transition: opacity 0.2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: #4CAF50;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #4CAF50;
    cursor: pointer;
}

/* ============================================
   RESPONSIVE BREAKPOINTS (Mobile First)
   ============================================ */

/* ----------------------------------------
   SM Breakpoint (≥576px)
   ---------------------------------------- */
@media (min-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.625rem; }
    h3 { font-size: 1.375rem; }

    .header-top .navbar-brand img {
        height: 70px;
    }

    .timeline-slide-img {
        height: 250px;
    }

    .timeline-slide-active .timeline-slide-date {
        width: 100px;
        height: 100px;
    }

    .timeline-headline,
    .timeline-subline {
        font-size: 1.375rem;
    }

    .button-1097 {
        width: auto;
        padding: 0.75rem 1.25rem;
    }
}

/* ----------------------------------------
   MD Breakpoint (≥768px)
   ---------------------------------------- */
@media (min-width: 768px) {
    body {
        font-size: 1.125rem;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }

    .header-top .navbar-brand img {
        height: 90px;
    }

    .frame-indent-right {
        margin-right: 100px !important;
    }

    .maxheight-1000 {
        max-height: 1100px;
        object-fit: cover;
    }

    .object-fit-top {
        object-position: top;
    }

    /* Container 318 */
    .container-318 {
        margin: 0;
        padding: 50px 50px 30px 50px;
        position: relative;
        background: var(--blaugruen);
    }

    /* Two Column Layout */
    .two-col {
        column-count: 2;
        list-style: none;
        padding-left: 0;
    }

    .two-col li {
        break-inside: avoid;
        margin-bottom: 0.5rem;
        display: flex;
    }

    /* Leistungsnav Grid */
    .leistungsnav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
        row-gap: 1.5rem;
    }

    .leistungsnav .nav-link.active::after {
        width: 100%;
        left: 0;
        transform: none;
    }

    /* Timeline */
    .timeline-arrow {
        width: 50px;
        height: 50px;
    }

    .timeline-slide {
        top: 50%;
    }

    .timeline-slide-img {
        width: 450px;
        height: 350px;
    }

    .timeline-slide-content {
        padding: 60px 20px 20px;
    }

    .timeline-slide-active .timeline-slide-date {
        width: 140px;
        height: 140px;
    }

    .timeline-slide-date-text {
        font-size: 1.5rem;
    }

    .timeline-headline,
    .timeline-subline {
        font-size: 1.5rem;
    }

    .timeline-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Nav arrows hidden on tablet+ if not needed */
    .nav-arrow {
        display: none;
    }

    /* Downloads Container */
    .downloads-container h3 {
        font-size: 2rem;
    }

    /* Leistungstitel Container */
    .container-leistungstitel {
        margin: 0;
        padding: 0 50px;
        position: absolute;
        top: 100px;
        left: 100px;
        width: 30vw;
        height: 30vw;
    }

    .container-leistungstitel-inner,
    .container-leistungstitel-inner-hero,
    .container-leistungstitel-inner-hero-lay5 {
        display: flex;
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
    }

    .container-leistungstitel-inner-hero {
        align-items: flex-start;
    }
}

/* ----------------------------------------
   LG Breakpoint (≥992px) - Desktop
   ---------------------------------------- */
@media (min-width: 992px) {
    body {
        font-size: 1.25rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.625rem; }

    /* Hide Mobile Navigation on Desktop */
    .mobile-nav,
    .navbar-collapse.offcanvas-nav,
    .nav-overlay,
    .navbar-toggler {
        display: none !important;
    }

    /* Show Desktop Navigation */
    .navbar-collapse:not(.offcanvas-nav) {
        display: flex !important;
    }

    /* Header */
    .header-top .topnavsub {
        height: 186px;
    }

    .header-top .navbar-brand img {
        height: 124px;
    }

    .header-top .navbar-nav .nav-link {
        padding-top: 1.5rem;
        padding-bottom: 0.5rem;
    }

    /* Shrink Header on Scroll */
    .header-top .topnavsub.shrink {
        height: 140px;
    }

    .header-top .topnavsub.shrink .navbar-brand img {
        height: 100px;
    }

    .header-top .topnavsub.shrink .navbar-nav .nav-link {
        padding-top: 0.75rem;
        padding-bottom: 0.25rem;
    }

    .topnavsub .navbar-nav a.nav-link {
        padding-right: 0.875rem;
        padding-left: 0.875rem;
    }

    /* Content Sections */
    .content-1 {
        margin: -300px 0 0 150px;
        padding: 70px 50px 0 50px;
        grid-area: 1 / 1 / 5 / 3;
    }

    .content-2 {
        margin: 0 0 0 150px;
        padding: 70px 50px 0 50px;
        grid-area: 1 / 1 / 5 / 3;
    }

    #c-3 {
        padding-right: 5em;
    }

    /* Utilities */
    .ml-150 {
        margin-left: 150px;
    }

    .mw-75vw {
        max-width: 75vw;
    }

    .pt-70 {
        padding-top: 70px;
    }

    /* Headlines */
    .headline-left {
        margin: 100px 0 0 252px;
        padding: 0;
        color: #000;
        font-weight: bold;
        text-transform: uppercase;
        text-align: left;
    }

    /* Welche Werte Box */
    .welche-werte-box1 {
        padding: 100px 0 100px 150px;
        position: relative;
        background: var(--cyan);
    }

    /* Container 155 */
    .container-155 {
        margin: 0;
        padding: 0;
        position: relative;
        max-width: 430px;
    }

    /* Leitlinien */
    .leitlinien {
        max-width: 450px;
    }

    /* Container 554 */
    .container-554 {
        margin: 0;
        padding: 0 50px 0 80px;
        position: absolute;
        top: 100px;
        left: 200px;
        background: var(--blaugruen);
        width: 25vw;
        height: 25vw;
    }

    .flex-555 {
        display: flex;
        width: 100%;
        height: 100%;
        justify-content: flex-start;
        align-items: center;
    }

    /* Leistungsnav 3 Columns */
    .leistungsnav {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 100px;
        row-gap: 30px;
    }

    #navbar-scrollspy {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 50px;
    }

    /* Nav Pills Custom */
    .nav-pills-custom .nav-link::before {
        content: '';
        display: block;
        border-top: 8px solid transparent;
        border-left: 10px solid var(--primary);
        border-bottom: 8px solid transparent;
        position: absolute;
        top: 50%;
        right: -10px;
        transform: translateY(-50%);
        opacity: 0;
    }

    /* Button */
    .button-1097 {
        justify-content: flex-start;
        margin: 30px 0 0 0;
        padding: 10px 15px;
        font-size: 1.25rem;
        gap: 30px;
    }

    /* Leistungstitel Container */
    .container-leistungstitel {
        padding: 0 100px;
        left: 200px;
        width: 25vw;
        height: 25vw;
    }

    /* Timeline */
    .timeline-arrow {
        width: 60px;
        height: 60px;
    }

    .timeline-slide-img {
        width: 490px;
        height: 400px;
    }

    .timeline-slide-active .timeline-slide-date {
        width: 160px;
        height: 160px;
    }

    .timeline-slide-date-text {
        font-size: 1.75rem;
    }

    .timeline-headline,
    .timeline-subline {
        font-size: 1.5rem;
    }

    .timeline-text {
        font-size: 1.125rem;
    }
}

/* ----------------------------------------
   XL Breakpoint (≥1200px)
   ---------------------------------------- */
@media (min-width: 1200px) {
    .maxwidthcontainer {
        max-width: 960px;
        width: 100%;
    }

    /* Timeline */
    .timeline-arrow {
        width: 70px;
        height: 70px;
    }

    .timeline-slide-img {
        width: 520px;
    }

    .timeline-slide-active .timeline-slide-date {
        width: 180px;
        height: 180px;
    }

    .timeline-slide-date-text {
        font-size: 2.25rem;
    }

    .timeline-headline,
    .timeline-subline {
        font-size: 1.75rem;
    }
}

/* ----------------------------------------
   XXL Breakpoint (≥1400px)
   ---------------------------------------- */
@media (min-width: 1400px) {
    .timeline-arrow {
        width: 80px;
        height: 80px;
    }

    .timeline-slide-img {
        width: 556px;
    }

    .timeline-slide-active .timeline-slide-date {
        width: 200px;
        height: 200px;
    }

    .timeline-slide-date-text {
        font-size: 2.625rem;
    }

    .timeline-headline,
    .timeline-subline {
        font-size: 2rem;
    }

    .timeline-text {
        font-size: 1.25rem;
        line-height: 1.875rem;
        min-width: 400px;
        padding-top:1em;
    }


    .position-mobile-relative {
    position:absolute !important;
}




}

/* ============================================
   20. PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .mobile-nav,
    .nav-overlay,
    .navbar-toggler,
    .btn,
    #back-to-top,
    footer {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }
}














/* ============================================
   HANSMEIER STEUERUNGSTECHNIK
   Mobile Navigation Styles
   Ergänzung zu layout-mobile-first.css
   ============================================ */

/* ============================================
   CSS VARIABLEN
   ============================================ */
:root {
    /* Navigation */
    --mobile-nav-width: 300px;
    --mobile-nav-bg: #ffffff;
    --mobile-nav-header-bg: #eff3f5;
    --mobile-nav-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --mobile-nav-link-color: #333333;
    --mobile-nav-link-hover: var(--dark);
    --mobile-nav-link-active: var(--dark);
    --mobile-nav-border: #e9ecef;
    --mobile-nav-submenu-bg: #f8f9fa;
}

/* ============================================
   HAMBURGER TOGGLE BUTTON
   ============================================ */
.navbar-toggler {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--mobile-nav-link-color);
    position: relative;
    transition: background-color 0.2s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: -4px;
    width: 28px;
    height: 2px;
    background-color: var(--mobile-nav-link-color);
    transition: transform 0.3s ease, top 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -7px;
}

.navbar-toggler-icon::after {
    top: 7px;
}

/* Hamburger zu X Animation */
.navbar-toggler.active .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler.active .navbar-toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar-toggler.active .navbar-toggler-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============================================
   OVERLAY
   ============================================ */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--mobile-nav-transition), 
                visibility var(--mobile-nav-transition), 
                background-color var(--mobile-nav-transition);
    z-index: 1040;
}

.nav-overlay.active {
    visibility: visible;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

/* ============================================
   MOBILE NAVIGATION PANEL
   ============================================ */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--mobile-nav-width);
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--mobile-nav-bg);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform var(--mobile-nav-transition);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-nav-panel.open {
    transform: translateX(0);
}

/* Body Lock */
body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ============================================
   MOBILE NAV HEADER
   ============================================ */
.mobile-nav-header {
    display: flex;
    justify-content:flex-start;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: var(--mobile-nav-header-bg);
    border-bottom: 1px solid var(--mobile-nav-border);
    flex-shrink: 0;
}

.mobile-nav-logo img {
    max-height: 50px;
    width: auto;
}

.mobile-nav-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--mobile-nav-link-color);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0;
    border-radius: 50%;
}

.mobile-nav-close:hover {
    color: var(--mobile-nav-link-hover);
    transform: rotate(90deg);
}

.mobile-nav-close:focus {
    outline: 2px solid var(--mobile-nav-link-hover);
    outline-offset: 2px;
}

/* ============================================
   MOBILE NAV MENU
   ============================================ */
.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: var(--mobile-nav-header-bg);
}

/* Nav Items */
.mobile-nav-item {
    border-bottom: 1px solid var(--mobile-nav-border);
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

/* Link Wrapper (für Link + Toggle Button) */
.mobile-nav-link-wrapper {
    display: flex;
    align-items: stretch;
}

/* Nav Links */
.mobile-nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    color: var(--mobile-nav-link-color);
    font-size: 1.0625rem;
    font-weight: 400;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, 
                color 0.2s ease, 
                padding-left 0.2s ease;
    min-height: 56px;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background-color: var(--green);
    color: var(--mobile-nav-link-hover);
    padding-left: 1.5rem;
}

.mobile-nav-link.active,
.mobile-nav-item.active > .mobile-nav-link-wrapper > .mobile-nav-link {
    color: var(--mobile-nav-link-active);
    background-color: var(--green);
    border-left: 0px solid var(--mobile-nav-link-active);
}

/* Submenu Toggle Button */
.mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    padding: 0;
    background: transparent;
    border: none;
    border-left: 1px solid var(--mobile-nav-border);
    color: var(--mobile-nav-link-color);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-submenu-toggle:hover {
    background-color: var(--mobile-nav-header-bg);
    color: var(--mobile-nav-link-hover);
}

.mobile-submenu-toggle svg {
    transition: transform 0.3s ease;
}

.mobile-submenu-toggle.open svg {
    transform: rotate(180deg);
}

.mobile-submenu-toggle:focus {
    outline: none;
    background-color: var(--mobile-nav-header-bg);
}

/* ============================================
   MOBILE SUBMENU
   ============================================ */
.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: var(--mobile-nav-submenu-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-submenu.open {
    max-height: 500px; /* Ausreichend für die meisten Submenüs */
}

.mobile-submenu-item {
    border-top: 1px solid var(--mobile-nav-border);
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem 0.875rem 2rem;
    color: var(--mobile-nav-link-color);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, 
                color 0.2s ease,
                padding-left 0.2s ease;
    min-height: 48px;
}

.mobile-submenu-link::before {
    content: "»";
    margin-right: 0.5rem;
    color: var(--green);
    font-weight: bold;
}

.mobile-submenu-link:hover,
.mobile-submenu-link:focus {
    background-color: #e9ecef;
    color: var(--mobile-nav-link-hover);
    padding-left: 2.25rem;
}

.mobile-submenu-link.active,
.mobile-submenu-item.active > .mobile-submenu-link {
    color: var(--mobile-nav-link-active);
}

/* ============================================
   MOBILE NAV FOOTER
   ============================================ */
.mobile-nav-footer {
    padding: 1rem 1.25rem;
    background-color: var(--mobile-nav-header-bg);
    border-top: 1px solid var(--mobile-nav-border);
    flex-shrink: 0;
}

.mobile-nav-contact {
    display: flex;
    gap: 1rem;
}

.mobile-nav-contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background-color: var(--blaugruen);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex: 1;
    justify-content: center;
}

.mobile-nav-contact-link:hover {
    background-color: var(--primary-hover);
    color: var(--white);
}

.mobile-nav-contact-link svg {
    flex-shrink: 0;
}

/* ============================================
   DESKTOP NAVIGATION ANPASSUNGEN
   ============================================ */
@media (min-width: 992px) {
    /* Mobile Elemente auf Desktop verstecken */
    .navbar-toggler,
    .nav-overlay,
    .mobile-nav-panel {
        display: none !important;
    }
}

/* ============================================
   RESPONSIVE ANPASSUNGEN
   ============================================ */

/* Kleinere Screens */
@media (max-width: 374px) {
    .mobile-nav-panel {
        width: 100vw;
        max-width: 100vw;
    }
    
    .mobile-nav-link {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
    
    .mobile-submenu-link {
        padding: 0.75rem 1rem 0.75rem 1.5rem;
    }
    
    .mobile-nav-contact {
        flex-direction: column;
    }
}

/* Touch-Optimierung */
@media (hover: none) and (pointer: coarse) {
    .mobile-nav-link,
    .mobile-submenu-link,
    .mobile-submenu-toggle,
    .mobile-nav-close {
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-nav-link:active,
    .mobile-submenu-link:active {
        background-color: var(--mobile-nav-header-bg);
    }
}

/* ============================================
   ANIMATIONEN
   ============================================ */

/* Staggered Animation für Menu Items */
.mobile-nav-panel.open .mobile-nav-item {
    animation: slideInRight 0.3s ease forwards;
    opacity: 0;
}

.mobile-nav-panel.open .mobile-nav-item:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav-panel.open .mobile-nav-item:nth-child(2) { animation-delay: 0.1s; }
.mobile-nav-panel.open .mobile-nav-item:nth-child(3) { animation-delay: 0.15s; }
.mobile-nav-panel.open .mobile-nav-item:nth-child(4) { animation-delay: 0.2s; }
.mobile-nav-panel.open .mobile-nav-item:nth-child(5) { animation-delay: 0.25s; }
.mobile-nav-panel.open .mobile-nav-item:nth-child(6) { animation-delay: 0.3s; }
.mobile-nav-panel.open .mobile-nav-item:nth-child(7) { animation-delay: 0.35s; }
.mobile-nav-panel.open .mobile-nav-item:nth-child(8) { animation-delay: 0.4s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus Styles */
.mobile-nav-link:focus-visible,
.mobile-submenu-link:focus-visible,
.mobile-submenu-toggle:focus-visible {
    outline: 2px solid var(--mobile-nav-link-hover);
    outline-offset: -2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .mobile-nav-panel,
    .nav-overlay,
    .mobile-submenu,
    .mobile-submenu-toggle svg,
    .mobile-nav-close,
    .mobile-nav-link,
    .mobile-submenu-link {
        transition: none;
    }
    
    .mobile-nav-panel.open .mobile-nav-item {
        animation: none;
        opacity: 1;
    }
}