:root {
            --space-xs:  clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
            --space-sm:  clamp(0.75rem, 0.6rem + 0.6vw, 1.25rem);
            --space-md:  clamp(1.25rem, 0.9rem + 1.2vw, 2rem);
            --space-lg:  clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
            --space-xl:  clamp(3rem, 2rem + 4vw, 6rem);
            --space-xxl: clamp(4rem, 2.5rem + 6vw, 8rem);

            --color-primary: #1A3060;       /* Stahlblau tief */
            --color-primary-light: #2A4070; /* Stahlblau mittel */
            --color-silver: #C0C4CC;        /* Silber for text on blue */
            --color-bg-light: #F5EFE4;      /* Warmes Cremeweiß */
            --color-accent: #D4A574;        /* Warmes Gold */
            --color-text-dark: #1A3060;
            --color-text: #2A2A2A;     
            --color-text-light: #F5EFE4;

            --font-heading: 'Fraunces', serif;
            --font-body: 'DM Sans', sans-serif;
        }
        
        * { margin:0; padding:0; box-sizing:border-box; }
        html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 100px; }
        body { font-family: var(--font-body); color: var(--color-text-dark); background-color: var(--color-bg-light); line-height: 1.6; position: relative; overflow-x: hidden; }
        h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.2; }
        a { color: inherit; text-decoration: none; }
        
        .container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); position: relative; z-index: 10; }
        .text-center { text-align: center; }
        .bg-dark { background-color: var(--color-primary); color: var(--color-text-light); }
        .bg-light { background-color: var(--color-bg-light); color: var(--color-text-dark); }
        
        /* Grid Pattern for white/light sections */
        #leistungen, #kurse, #team {
            background-image: 
                linear-gradient(to right, rgba(26,48,96,0.03) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(26,48,96,0.03) 1px, transparent 1px);
            background-size: 30px 30px;
        }
        /* Buttons */
        .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1.8rem; border-radius: 9999px; font-weight: 500; transition: all 300ms ease; cursor: pointer; border: none; font-size: 1rem; }
        .btn-accent { background-color: var(--color-accent); color: #fff; box-shadow: 0 4px 14px rgba(212, 165, 116, 0.2); }
        
        .scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--color-accent); width: 0%; z-index: 10000; transition: none; }
        
        /* Distort wrapper */
        #distort-wrapper { transition: transform 0.1s linear; transform-origin: center center; will-change: transform; }

        /* Fixed Oval Navbar - Hides at top initially */
        .navbar-wrapper { position: fixed; top: -100px; left: 0; right: 0; z-index: 1000; padding: 0 15px; transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
        .navbar-wrapper.nav-scrolled { top: 15px; }
        .navbar { background: #ffffff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(26,48,96,0.1); border-radius: 9999px; 
            max-width: 1000px; margin: 0 auto; padding: 0.5rem 1.5rem; 
            display: flex; justify-content: space-between; align-items: center;
            box-shadow: 0 10px 30px rgba(26,48,96,0.08); transition: all 300ms ease;
        }

        .navbar.nav-theme-blue {
            background: rgba(26,48,96,0.95);
            border-color: rgba(255,255,255,0.1);
            color: #ffffff;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }
        .navbar.nav-theme-blue .nav-item { color: #ffffff; }
        .navbar.nav-theme-blue .nav-item.active { color: var(--color-accent); }
        .navbar.nav-theme-blue .nav-brand img { filter: brightness(0) invert(1); }
        .navbar.nav-theme-blue .nav-cta { background: #ffffff; color: var(--color-primary); }
        
        .nav-brand img { height: 40px; transition: height 300ms, filter 300ms ease; }
        .nav-links { display: flex; gap: 1.5rem; align-items: center; }
        .nav-item { font-size: 0.95rem; font-weight: 500; transition: color 200ms; }
        .nav-item.active { color: var(--color-accent); }
        .nav-cta { background: var(--color-accent); color: #fff; padding: 0.5rem 1.2rem; border-radius: 9999px; transition: all 300ms ease; font-weight: 500;}
        
        .hamburger {
            display: none; background: none; border: none; cursor: pointer;
            width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
            z-index: 1001;
        }
        .ham-line {
            display: block; width: 24px; height: 2px; background: var(--color-primary); border-radius: 2px;
            transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms;
        }
        .hamburger.active .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .hamburger.active .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
        .hamburger.active .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

        @media (max-width: 900px) {
            .hamburger { display: flex; }
            .nav-links { display: none; }
        }

        .mobile-overlay {
            position: fixed; inset: 0; z-index: 999; background: rgba(26, 48, 96, 0.97);
            display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none;
            transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1);
        }
        .mobile-overlay.active { opacity: 1; pointer-events: all; }
        .mobile-overlay-content { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
        .mo-link { font-family: var(--font-heading); font-size: 1.6rem; color: #fff; padding: 0.8rem 0; opacity: 0; transform: translateY(16px); transition: opacity 400ms ease, transform 400ms ease, color 200ms; }
        .mobile-overlay.active .mo-link { opacity: 1; transform: translateY(0); }
        .mobile-overlay.active .mo-link:nth-child(1) { transition-delay: 100ms; }
        .mobile-overlay.active .mo-link:nth-child(2) { transition-delay: 160ms; }
        .mobile-overlay.active .mo-link:nth-child(3) { transition-delay: 220ms; }
        .mobile-overlay.active .mo-link:nth-child(4) { transition-delay: 280ms; }
        .mobile-overlay.active .mo-link:nth-child(5) { transition-delay: 340ms; }
        .mo-link:hover, .mo-link:active { color: var(--color-accent); }
        .mo-contact { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.15); display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
        .mo-contact a { color: var(--color-silver); font-size: 1rem; }

        @media (hover: hover) {
            .btn-accent:hover { background-color: #c49666; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212, 165, 116, 0.3); }
            .nav-item:hover { color: var(--color-accent); }
            .nav-cta:hover { background: #c49666; transform: scale(1.03); }
            .c-btn:hover { background: var(--color-primary); color: #fff; }
            .zeichnung:hover { animation: flutter 0.4s infinite ease-in-out alternate; }
        }
        @media (hover: none) {
            .btn-accent:active { transform: scale(0.97); transition-duration: 100ms; }
            .c-btn:active { background: var(--color-primary); color: #fff; transition-duration: 100ms; }
        }

        /* Fixed Opening Hours Shield right edge */
        .fixed-shield {
            position: fixed; right: -280px; top: 25%; z-index: 9999;
            display: flex; align-items: flex-start; transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        }
        .fixed-shield.active { right: 0; }
        .shield-tab {
            background: var(--color-accent); color: #fff; padding: 1.5rem 0.5rem; cursor: pointer;
            border-top-left-radius: 12px; border-bottom-left-radius: 12px;
            box-shadow: -4px 4px 15px rgba(0,0,0,0.1); writing-mode: vertical-rl; transform: rotate(180deg);
            font-family: var(--font-heading); font-size: 1.1rem; display:flex; align-items:center; gap:0.5rem; line-height:1;
        }
        .shield-tab:hover { background: #c49666; }
        .shield-content {
            width: 280px; background: var(--color-primary); color: var(--color-text-light);
            padding: 1.5rem; border-bottom-left-radius: 12px; box-shadow: -4px 4px 15px rgba(0,0,0,0.15);
        }
        .shield-content table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
        .shield-content th, .shield-content td { padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
        .shield-content tr:last-child th, .shield-content tr:last-child td { border-bottom: none; }
        .shield-content th { text-align: left; font-weight: 500; color: #fff; width: 40%;}
        .s-today { background: rgba(212,165,116,0.15); color: var(--color-accent); font-weight: 600; border-radius:4px;}
        .s-today td { border-bottom:none;}
        .s-today th { color: var(--color-accent); border-bottom:none; padding-left: 0.5rem;}
        
        .today-row { background: rgba(212, 165, 116, 0.1); border-radius: 6px; }
        .today-row th { color: var(--color-accent); font-weight: 600; position: relative; padding-left: 1rem; }
        .today-row th::before { content: '→'; position: absolute; left: 0; color: var(--color-accent); }

        @media (max-width: 600px) {
            .fixed-shield { top: auto; bottom: 0; right: 0; left: 0; flex-direction: column-reverse; }
            .fixed-shield:not(.active) { transform: translateY(100%); right: 0; }
            .fixed-shield.active { right: 0; transform: translateY(0); }
            .shield-tab {
                writing-mode: horizontal-tb; transform: none; border-radius: 12px 12px 0 0;
                width: 100%; text-align: center; justify-content: center; padding: 0.8rem;
            }
            .shield-content { width: 100%; border-radius: 0; max-height: 60vh; overflow-y: auto; }
        }

        /* Kinderzeichnungen Global */
        .zeichnung { position: absolute; max-width: 180px; z-index: 20; filter: drop-shadow(2px 5px 10px rgba(0,0,0,0.15)); transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1); }
        .zeichnung img { width: 100%; height: auto; display: block; border-radius: 4px; }
        .zeichnung::before {
            content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(-2deg);
            width: 45px; height: 18px; background: rgba(255,255,255,0.7); backdrop-filter: blur(2px);
            box-shadow: 0 1px 3px rgba(0,0,0,0.1); z-index: 21; border-radius: 1px;
        }
        @keyframes flutter {
            0% { transform: scale(1.05) rotate(calc(var(--rot, 0deg))) translateY(-5px); }
            25% { transform: scale(1.05) rotate(calc(var(--rot, 0deg) + 1deg)) translateY(-4px); }
            50% { transform: scale(1.05) rotate(calc(var(--rot, 0deg) - 1deg)) translateY(-6px); }
            75% { transform: scale(1.05) rotate(calc(var(--rot, 0deg) + 0.5deg)) translateY(-4.5px); }
            100% { transform: scale(1.05) rotate(calc(var(--rot, 0deg))) translateY(-5px); }
        }

        /* Specific positioning */
        .z-hero { top: -40px; right: 10px; --rot: 8deg; transform: rotate(var(--rot)); width: 140px; }
        .z-leistungen { top: -20px; right: 0; --rot: -4deg; transform: rotate(var(--rot)); width: 160px;}
        .z-team { bottom: -20px; left: 20px; --rot: 6deg; transform: rotate(var(--rot)); width: 140px;}
        .z-jubilaum { top: 10px; right: 10px; --rot: -5deg; transform: rotate(var(--rot)); width: 160px;}
        .z-footer { bottom: 40px; right: 10%; --rot: -8deg; transform: rotate(var(--rot)); width: 160px; filter: brightness(0.9) drop-shadow(2px 5px 10px rgba(0,0,0,0.3));}

        @media (max-width: 768px) {
            .zeichnung { max-width: 100px; }
            .z-hero-logo { width: 55px; right: -0.5rem; top: -0.8rem; }
            .z-leistungen { width: 100px; top: -15px; right: -5px; }
            .z-team { width: 90px; bottom: -15px; left: 10px; }
            .z-jubilaum { width: 100px; top: 5px; right: 5px; }
            .z-footer { width: 100px; right: 5%; bottom: 30px; }
        }
        @media (max-width: 480px) {
            .z-leistungen, .z-team, .z-footer { display: none; }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
            .zeichnung:hover { animation: none; }
            #distort-wrapper { transition: none; }
            html { scroll-behavior: auto; }
            .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
        }

        /* Sections General */
        section { padding: var(--space-xxl) 0; position: relative; }
        .s-header { margin-bottom: var(--space-xl); max-width: 700px; }
        .s-header h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); margin-bottom: 1rem; color: var(--color-primary); line-height: 1.2;}
        .s-header p { font-size: 1.15rem; color: var(--color-primary-light); }
        .bg-dark .s-header h2, .bg-dark .s-header p { color: var(--color-bg-light); }
        
        .reveal { opacity: 0; transform: translateY(30px); transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }
        .reveal.visible { opacity: 1; transform: translateY(0); }
        .reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 500ms ease, transform 500ms ease; }
        .reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
        .reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
        .reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
        .reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
        .reveal-stagger.visible > *:nth-child(5) { transition-delay: 320ms; }
        .reveal-stagger.visible > *:nth-child(6) { transition-delay: 400ms; }
        .reveal-stagger.visible > *:nth-child(7) { transition-delay: 480ms; }
        .reveal-stagger.visible > *:nth-child(8) { transition-delay: 560ms; }
        .reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

        /* Transitions / Dividers */
        .shape-divider { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; direction: ltr; z-index: 5; }
        .shape-bottom { bottom: -1px; }
        .shape-top { top: -1px; transform: rotate(180deg); }
        .shape-divider svg { display: block; width: calc(100% + 1.3px); height: 60px; }
        .shape-divider .shape-fill { fill: var(--color-primary); }
        .shape-divider-light .shape-fill { fill: var(--color-bg-light); }
        
        .back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; border-radius: 50%; background: var(--color-primary); color: #fff; border: none; font-size: 1.2rem; cursor: pointer; opacity: 0; transform: translateY(20px); transition: opacity 300ms, transform 300ms; z-index: 900; box-shadow: 0 4px 16px rgba(26, 48, 96, 0.2); }
        .back-to-top.visible { opacity: 1; transform: translateY(0); }
        .back-to-top:hover { background: var(--color-accent); }
        @media (max-width: 600px) { .back-to-top { bottom: 1rem; right: 1rem; } }

        /* Hero (Vertical Layout Design) */
        .hero { min-height: 100svh; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; position: relative; overflow: hidden; padding: 0;}
        @media (max-height: 500px) and (orientation: landscape) {
            .hero { min-height: auto; padding: var(--space-lg) 0; }
            .hero-text-wrap h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); }
            .hero-logo-container { margin-bottom: 1rem; }
            .hero-main-logo {
    width: 100%;
    max-width: clamp(400px, 90vw, 1200px);
    height: auto;
    display: block;
    transform: none;
}
            .hero-mini-info { padding: 0.8rem 1.2rem; font-size: 0.85rem; }
        }
        .hero-bg-gradient { position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(135deg, #F4F4F4 0%, #F4F4F4 35%, #F8F9FA 70%, #F2F4F7 100%); z-index:0; }
        .hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 350px; background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.8) 70%, #ffffff 100%); z-index: 2; pointer-events: none; }
        
        .hero-banner { 
            position: absolute; bottom: 0; left: 0; width: 100%; height: 50vh; 
            object-fit: cover; object-position: center top;
            z-index: 1;
            mask-image: linear-gradient(to bottom, transparent 0%, black 50%, black 100%);
            -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%, black 100%);
        }

        .hero-logo-container {
            position: relative; display: inline-block; margin-bottom: 3rem;
            z-index: 5;
        }
        .hero-main-logo {
    width: 100%;
    max-width: clamp(400px, 90vw, 1200px);
    height: auto;
    display: block;
    transform: none;
}
        .z-hero-logo {
            position: absolute; top: -1.5rem; right: -2rem; width: 110px;
            transform: rotate(15deg); z-index: 10;
        }

        .hero-content { position: relative; z-index: 3; text-align: center; width: 100%; max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; padding: 8rem 2rem 2rem 2rem;}
        
        .hero-text-wrap { max-width: 800px; z-index: 10; margin: 0 auto;}

        .hero-text-wrap h1 { font-size: clamp(2.5rem, 4vw, 4rem); margin-bottom: 2rem; color: var(--color-primary); line-height: 1.15; }
        .hero-sub { font-size: 1.2rem; color: var(--color-primary-light); margin: 0 auto 3.5rem auto; width: 100%; max-width: 620px; line-height: 1.75;}
        
        .hero-actions { display: flex; gap: 1.5rem; align-items: center; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem;}
        
        /* Mini-Section Info embedded in Hero */
        .hero-mini-info { display:inline-flex; justify-content:center; gap:2rem; flex-wrap:wrap; font-size:1rem; color:var(--color-primary); background: rgba(255,255,255,0.85); padding: 1.5rem 2.5rem; border-radius: 16px; backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,0.8); box-shadow: 0 10px 30px rgba(0,0,0,0.05); position:relative; align-self: center;}
        .hero-mini-info a { transition: color 200ms; font-weight: 600; display:flex; align-items:center; gap:0.5rem;}
        .hero-mini-info a:hover { color: var(--color-accent); }
        .hero-mini-info span { display:flex; align-items:center; gap:0.5rem; font-weight: 500;}

        @media (max-width: 900px) {
            .hero-banner { width: 100%; mask-image: linear-gradient(to bottom, transparent 0%, black 50%); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%); opacity: 0.5; height: 65vh;}
            .hero { align-items: center; padding-top: 0; }
            .hero-content { align-items: center; padding: 6rem 1.5rem 2rem 1.5rem; }
            .hero-logo-container { margin-bottom: 2rem; }
            .hero-main-logo {
    width: 100%;
    max-width: clamp(400px, 90vw, 1200px);
    height: auto;
    display: block;
    transform: none;
}
            .z-hero-logo { width: 60px; right: -1rem; top: -1rem; }
            .hero-text-wrap { text-align: center; max-width: 100%; padding: 0; }
            .hero-actions { justify-content: center; }
            .hero-mini-info { justify-content: center; }
        }

        .magnetic-wrap { display: inline-block; position: relative; cursor: pointer; transition: color 0.3s; }
        .magnetic-text { display: inline-block; will-change: transform; pointer-events: none; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s; color: var(--color-accent);}

        /* Leistungen Tabs Neu */
        #leistungen { padding-top: var(--space-xl);}
        .leist-container { position: relative; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; min-height: 70vh; margin-top: 4rem; margin-bottom: 4rem;}
        
        .l-card-item { width: 320px; height: 100px; background: #ffffff; border-radius: 16px; box-shadow: 0 4px 20px rgba(26, 48, 96, 0.08); display: flex; align-items: center; padding: 10px; cursor: pointer; border: none; border-left: 3px solid transparent; transition: all 200ms ease; overflow: hidden; text-align: left; }
        /* Zigzag stagger */
        .l-card-item:nth-of-type(even) { margin-left: 25px; }
        
        .l-card-item:hover { transform: translateX(4px); box-shadow: 0 10px 25px rgba(26, 48, 96, 0.12); }
        .l-card-item.active { border-left-color: var(--color-accent); background: rgba(212, 165, 116, 0.06); transform: translateX(8px); }
        
        .lc-img { width: 80px; height: 80px; background: #fff; border-radius: 8px; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
        .lc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s;}
        .l-card-item:hover .lc-img img { transform: scale(1.05); }
        
        .lc-text { margin-left: 1rem; display: flex; flex-direction: column; justify-content: center; }
        .lc-text h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-primary); margin-bottom: 0.2rem; }
        .lc-text p { font-size: 0.8rem; color: rgba(26,48,96,0.6); max-width: 180px; line-height: 1.3;}
        
        /* Central Divider Line */
        .leist-divider { position: absolute; left: 380px; top: 0; bottom: 0; width: 60px; pointer-events: none;}
        .leist-divider svg { width: 100%; height: 100%; opacity: 0.4; }
        
        .tab-content { position: absolute; right: 0; top: 120px; width: 440px; opacity: 0; visibility: hidden; transition: opacity 300ms ease, transform 300ms ease; transform: translateX(20px);}
        .tab-content.active { opacity: 1; visibility: visible; transform: translateX(0); z-index: 10; padding-bottom: 2rem;}
        
        @media (max-width: 900px) {
            .leist-container { gap: 10px; display: flex; flex-direction: column; height: auto; min-height: auto;}
            .leist-divider { display: none; }
            .l-card-item { width: 100%; margin-left: 0 !important; }
            .tab-content { position: relative; top: auto; right: auto; width: 100%; transform: none; visibility: visible; display: none; margin-bottom: 1.5rem; padding-left: 1rem;}
            .tab-content.active { display: block; opacity: 1; transform: none; animation: fadeIn 0.3s ease; }
        }
        
        @keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

        .l-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
        
        .l-card {
            background: #fff; padding: 1.8rem; border-radius: 14px; border: 1px solid rgba(26, 48, 96, 0.06); box-shadow: 0 2px 12px rgba(26, 48, 96, 0.03); transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease; position: relative; overflow: hidden;
            container-type: inline-size; container-name: leistung;
        }
        .l-card::after {
            content: ''; position: absolute; top: 1.2rem; bottom: 1.2rem; left: 0; width: 3px; background: var(--color-accent); border-radius: 0 3px 3px 0; opacity: 0; transform: scaleY(0); transition: opacity 300ms, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
        }
        @media (hover: hover) {
            .l-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(26, 48, 96, 0.08); border-color: rgba(212, 165, 116, 0.3); }
            .l-card:hover::after { opacity: 1; transform: scaleY(1); }
        }
        @media (hover: none) {
            .l-card:active { transform: scale(0.98); transition-duration: 100ms; }
        }
        @container leistung (min-width: 320px) {
            .l-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
            .l-card h4 { width: 100%; margin-bottom: 0;}
            .l-card .kassen-badge { margin-top: auto; }
        }
        .l-desc { font-size: 0.9rem; color: rgba(26, 48, 96, 0.65); margin: 0.5rem 0; line-height: 1.5; }
        .l-card h4 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-primary); }
        .kassen-badge { display:inline-block; font-size: 0.75rem; color: var(--color-primary); opacity: 0.8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; background: rgba(26,48,96,0.05); padding: 4px 10px; border-radius: 4px; margin-top: 0.5rem;}

        /* Praxis */
        #praxis { padding-bottom: var(--space-xxl); }
        
        #leistungen { padding-bottom: 8rem; }
        #leistungen::after {
            content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
            background: linear-gradient(to bottom, transparent, rgba(26, 48, 96, 0.04));
            pointer-events: none; z-index: 1;
        }
        .quote-strip { background: var(--color-primary); padding: 3rem 0; text-align: center; position: relative; }
        .quote-strip blockquote { font-family: var(--font-heading); font-size: clamp(1.3rem, 2.5vw, 1.8rem); color: var(--color-bg-light); font-style: italic; font-weight: 400; max-width: 700px; margin: 0 auto; opacity: 0.9; }

        .p-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start;}
        @media (max-width: 900px) { .p-split { grid-template-columns: 1fr; } }
        .p-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
        .p-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.15); transition: transform 0.3s ease; }
        .p-gallery img:hover { transform: scale(1.03); }
        @media (max-width: 600px) { .p-gallery { grid-template-columns: 1fr; } }
        .p-text h2 { font-size: 2.8rem; margin-bottom: 1.5rem; color: #fff; }
        .p-text p { color: var(--color-silver); font-size: 1.1rem; margin-bottom: 2.5rem; }
        
        .p-bullets { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem;}
        .p-bullets li { display: flex; align-items: flex-start; gap: 0.6rem; color: #fff; font-size: 0.95rem; }
        .p-bullets li svg { width: 18px; flex-shrink: 0; color: var(--color-accent); margin-top: 3px;}
        
        .stats-row { display: flex; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; }
        .stat-item { text-align: center; flex: 1; min-width: 120px; }
        .stat-number { font-family: var(--font-heading); font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 700; color: var(--color-accent); display: inline; }
        .stat-suffix { font-family: var(--font-heading); font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--color-accent); }
        .stat-label { display: block; font-size: 0.9rem; color: var(--color-silver); margin-top: 0.3rem; }

        /* Team Carousel */
        #team { padding-top: var(--space-xxl); background: var(--color-bg-light); position: relative;}
        .carousel { display: flex; align-items: center; justify-content: center; gap: 2rem; position: relative; }
        .c-track-container { overflow: hidden; width: 100%; max-width: 900px; position:relative; padding: 2rem 0; }
        .c-track { display: flex; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); gap: 2rem;}
        .c-item { min-width: calc(50% - 1rem); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(26,48,96,0.05); text-align: center; border: 1px solid rgba(26,48,96,0.05);}
        @media(max-width:768px){ .c-item { min-width: 100%; } .c-track { gap:0; } }
        
        .c-img-wrap { width: 100%; aspect-ratio: 4/4; overflow: hidden; background: #f0ede6;}
        .c-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
        .c-info { padding: 2rem; }
        .c-info h3 { font-size: 1.5rem; color: var(--color-primary); margin-bottom: 0.5rem; }
        .c-info span { display: block; color: var(--color-accent); font-weight: 600; margin-bottom: 1.5rem; }
        .c-timeline { border-top: 1px solid rgba(26,48,96,0.1); padding-top: 1.5rem; text-align: left;}
        .tl-item { margin-bottom: 0.8rem; font-size: 0.9rem; color: rgba(26,48,96,0.8); display: flex; align-items: baseline; gap: 0.5rem;}
        .tl-year { font-weight: 600; color: var(--color-primary); min-width: 40px;}

        .c-btn { background: #fff; border: 1px solid rgba(26,48,96,0.1); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--color-primary); cursor: pointer; transition: all 200ms; box-shadow: 0 5px 15px rgba(26,48,96,0.05); z-index: 10; flex-shrink: 0;}
        .c-btn:hover { background: var(--color-primary); color: #fff; }

        /* Kurse */
        #kurse { padding-bottom: var(--space-xxl); position: relative;}
        .k-box { background: var(--color-primary); border-radius: 20px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; box-shadow: 0 20px 40px rgba(26,48,96,0.15);}
        @media(max-width:900px){.k-box {grid-template-columns: 1fr;}}
        .k-text { padding: 4rem; color: #fff; }
        .k-text h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
        .k-text p { color: var(--color-silver); font-size: 1.1rem; margin-bottom: 2rem; }
        .k-form { background: #fff; padding: 4rem; display: flex; flex-direction: column; justify-content: center; position: relative;}
        .form-row { margin-bottom: 1.5rem; }
        .form-control { width: 100%; padding: 1rem; border: 1px solid rgba(26,48,96,0.1); border-radius: 8px; font-family: var(--font-body); font-size: 1rem; background: rgba(26,48,96,0.02); transition: border 0.2s;}
        .form-control:focus { outline: none; border-color: var(--color-accent); }
        .k-form button { width: 100%; padding: 1rem; font-size: 1.1rem; }

        /* Jubiläum */
        .jub-banner { background: var(--color-bg-light); border: 2px solid var(--color-accent); color: var(--color-primary); padding: 4rem 2rem; border-radius: 16px; text-align: center; margin: 4rem auto; position: relative; max-width: 900px;}
        .jub-banner h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--color-primary); }
        .jub-banner p { font-size: 1.1rem; color: var(--color-primary-light); max-width: 600px; margin: 0 auto; }

        /* Kontakt Map */
        #kontakt { background: var(--color-primary); color: #fff; padding-top: var(--space-xl);}
        .k-split { display: grid; grid-template-columns: 4fr 6fr; gap: 4rem; }
        
        .link-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
        @media (max-width: 768px) { .link-cards { grid-template-columns: 1fr; } }
        .link-card { background: #fff; border: 1px solid rgba(26, 48, 96, 0.06); border-radius: 16px; padding: 2.5rem; box-shadow: 0 4px 20px rgba(26, 48, 96, 0.03); transition: transform 300ms ease, box-shadow 300ms ease; position: relative;}
        @media (hover: hover) { .link-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26, 48, 96, 0.08); } }
        .lc-icon { width: 64px; height: 64px; background: rgba(26, 48, 96, 0.04); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
        .link-card h3 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-primary); margin-bottom: 0.8rem; }
        .link-card p { font-size: 1rem; color: rgba(26, 48, 96, 0.65); margin-bottom: 1.5rem; line-height: 1.6; }
        .lc-link { display: inline-block; font-weight: 600; font-size: 1rem; color: var(--color-primary); transition: color 200ms; margin-right: 1.5rem; }
        .lc-link:hover { color: var(--color-accent); }
        .lc-secondary { color: rgba(26, 48, 96, 0.5); font-weight: 500; }
        .z-newsletter { position: absolute; top: -15px; right: -10px; --rot: 7deg; transform: rotate(var(--rot)); width: 100px; }
        @media (max-width: 768px) { .z-newsletter { display: none; } }
        @media(max-width: 900px){ .k-split { grid-template-columns: 1fr; } }
        .map-wrap { border-radius: 12px; overflow: hidden; height: 100%; min-height: 400px; }
        .map-wrap iframe { width:100%; height:100%; border:none; }
        .k-links a { display: block; font-size: 1.8rem; color: #fff; font-family: var(--font-heading); margin-bottom: 0.8rem; transition: color 200ms; }
        .k-links a:hover { color: var(--color-accent); }
        .table-hours { width: 100%; border-collapse: collapse; text-align: left; margin: 2rem 0; }
        .table-hours th, .table-hours td { padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); color: var(--color-silver);}
        .table-hours th { font-weight: 500; color: #fff; }

        /* Footer */
        footer { background: var(--color-primary); color: var(--color-silver); padding: var(--space-xl) 0 var(--space-lg); position: relative;}
        
        .f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 4rem; position:relative; z-index: 10; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 4rem;}
        .f-col h5 { font-family: var(--font-body); font-weight: 600; color: #fff; font-size: 1.1rem; margin-bottom: 1.5rem; }
        .f-col p, .f-col a { color: var(--color-silver); font-size: 0.9rem; line-height: 1.8; display: block; opacity: 0.8; transition: opacity 0.2s;}
        .f-col a:hover { opacity: 1; color: var(--color-accent); }
/* Top Info Strip */
.top-bar {
    background: var(--color-primary);
    color: var(--color-silver);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    transition: margin-top 0.4s ease;
}
.top-bar a { color: #fff; text-decoration: none; transition: color 0.2s; }
.top-bar a:hover { color: var(--color-accent); }
@media (max-width: 768px) {
    .hide-on-mobile { display: none !important; }
}
#services { padding: var(--space-xl) 0 var(--space-xxl); }

/* Softer section transitions */
section {
    border: none;
    box-shadow: none;
}
/* Accordion Styling */
.accordion-wrap { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.acc-item { background: #fff; border: 1px solid rgba(26,48,96,0.08); border-radius: 12px; overflow: hidden; transition: box-shadow 0.3s; }
.acc-item:hover { box-shadow: 0 4px 15px rgba(26,48,96,0.04); }
.acc-header { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; background: transparent; border: none; cursor: pointer; font-family: var(--font-heading); font-size: 1.25rem; color: var(--color-primary); text-align: left; }
.acc-title { flex: 1; padding-right:1rem; }
.acc-icon { font-size: 1.5rem; color: var(--color-accent); transition: transform 0.3s; font-family: sans-serif; font-weight: 300; }
.acc-item.active .acc-icon { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1); background: rgba(26,48,96,0.02); }
.acc-body-inner { padding: 0 1.5rem 1.5rem 1.5rem; color: rgba(26,48,96,0.8); line-height: 1.6; }

@media (max-width: 900px) {
    .l-overview { grid-template-columns: 1fr !important; text-align:center; }
}

/* P-Bullets Card Grid */
.p-bullets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; margin-bottom: 2rem; }
.p-badge { background: rgba(255,255,255,0.05); padding: 1rem; border-radius: 8px; display: flex; align-items: center; gap: 0.8rem; font-size: 0.95rem; border: 1px solid rgba(255,255,255,0.1); }
.p-badge svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Praxis Collage Organic */
.praxis-collage { position: relative; width: 100%; height: 700px; overflow: hidden; display: flex; align-items: center; justify-content: center;}
.praxis-wrapper { position: relative; width: 100%; max-width: 500px; height: 650px; }
.collage-wrapper { position: absolute; filter: drop-shadow(0 0 0 transparent); transition: filter 0.35s, z-index 0s; z-index: 1; }
.collage-piece { width: 100%; height: 100%; transition: transform 350ms cubic-bezier(0.25, 1, 0.5, 1), opacity 400ms ease; position: relative; }
.collage-piece img { width: 100%; height: 100%; object-fit: cover; display: block; }
.praxis-wrapper:hover .collage-wrapper:not(:hover) .collage-piece { opacity: 0.5; }
.collage-wrapper:hover { filter: drop-shadow(0 0 3px rgba(212,165,116,0.8)); z-index: 10; }
.collage-wrapper:hover .collage-piece { transform: scale(1.04); }

/* Clip shapes and positions */
.cw-1 { top: 0; left: 0; width: 220px; height: 260px; clip-path: polygon(0% 10%, 85% 0%, 100% 60%, 75% 100%, 15% 90%); }
.cw-2 { top: 30px; right: 0; width: 240px; height: 200px; clip-path: polygon(10% 5%, 95% 15%, 100% 85%, 20% 100%, 0% 50%); }
.cw-3 { top: 220px; left: 20px; width: 200px; height: 280px; clip-path: polygon(5% 0%, 95% 10%, 85% 90%, 10% 100%, 0% 50%); }
.cw-4 { top: 200px; right: 20px; width: 220px; height: 240px; clip-path: polygon(15% 0%, 100% 5%, 90% 95%, 5% 85%, 0% 40%); }
.cw-5 { bottom: 0; left: 40px; width: 230px; height: 210px; clip-path: polygon(10% 10%, 90% 0%, 100% 80%, 80% 100%, 0% 90%); }
.cw-6 { bottom: 30px; right: 30px; width: 200px; height: 200px; clip-path: polygon(0% 20%, 80% 0%, 100% 85%, 15% 100%, 5% 50%); }

.collage-wrapper { transform: translateY(40px); opacity: 0; }
.collage-wrapper.visible { transform: translateY(0); opacity: 1; transition: transform 600ms ease-out, opacity 600ms ease-out; }

@media (max-width: 900px) {
    .praxis-collage { height: auto; padding: 2rem 0; overflow: visible; }
    .praxis-wrapper { position: static; height: auto; max-width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .collage-wrapper { position: static; width: 100%; height: auto; filter: none; clip-path: none !important; opacity: 1; transform: none; }
    .collage-wrapper:hover { filter: none; }
    .collage-wrapper:hover .collage-piece { transform: none; }
    .praxis-wrapper:hover .collage-wrapper:not(:hover) .collage-piece { opacity: 1; }
    .collage-piece { clip-path: none !important; height: 200px; border-radius: 12px; overflow: hidden; opacity: 1; transform: none; }
    .cw-1, .cw-2, .cw-3, .cw-4, .cw-5, .cw-6 { clip-path: none !important; }
}

/* Hero Choreography */
.anim-sequence {
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes slideDownIn {
    0% { transform: translateY(-30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes slideUpIn {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes fadeInScale {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.anim-logo    { animation: slideDownIn 0.6s ease-out forwards; animation-delay: 0.2s; }
.anim-headline{ animation: slideUpIn 0.5s ease-out forwards; animation-delay: 0.5s; }
.anim-subtext { animation: fadeIn 0.4s ease-out forwards; animation-delay: 0.8s; }
.anim-buttons { animation: fadeInScale 0.3s ease-out forwards; animation-delay: 1.1s; }
.anim-minibox { animation: slideUpIn 0.4s ease-out forwards; animation-delay: 1.4s; }
.anim-banner  { animation: fadeIn 0.8s ease-out forwards; animation-delay: 1.8s; }

@media (prefers-reduced-motion: reduce) {
    .anim-sequence { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Burger Menu fixed to top right */
.burger-menu {
    position: fixed; top: 1.5rem; right: 1.5rem; width: 50px; height: 50px;
    background: #fff; border: 1px solid rgba(26,48,96,0.1); border-radius: 50%;
    z-index: 10000; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s, background 0.3s;
}
.burger-menu:hover { transform: scale(1.05); }
.burger-bar {
    width: 20px; height: 2px; background: var(--color-primary); transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.burger-menu.open .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-menu.open .burger-bar:nth-child(2) { opacity: 0; }
.burger-menu.open .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Force navbar appearance independent of scroll when burger is checked */
.navbar-wrapper.burger-active { top: 0 !important; }

/* Burger visibility handled by main.js */


/* Decoration Hands */
.deco-hand {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
@media (max-width: 768px) {
    .deco-hand {
        display: none !important;
    }
}

/* Impressum & Datenschutz Styling */
.page-main-container {
    min-height: 100vh;
    padding: 150px 5% 100px 5%;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fdfbf7 0%, #f4f0e6 100%);
}
.page-content-box.impressum-datenschutz-box {
    max-width: 800px;
    background: #fff;
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
    width: 100%;
}
.back-btn.outline-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}
.back-btn.outline-btn:hover {
    background: var(--color-primary);
    color: #fff;
}
.page-heading {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
.legal-content h2.sub-heading {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}
.legal-content h2.sub-heading::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
}
.legal-content h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.legal-content p, .legal-content li {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
}


/* Navbar logo sizing fix */
.nav-brand img { height: 44px !important; width: auto !important; max-width: 160px; object-fit: contain; display: block; transition: filter 300ms ease, height 300ms; }
.navbar.nav-theme-blue .nav-brand img { filter: brightness(0) invert(1) !important; }


/* Physio pattern on dark sections */
.bg-dark, #kontakt, footer, .px-col.blue-bg, #team { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg stroke='rgba(255,255,255,0.025)' stroke-width='1' fill='none'%3E%3Cline x1='10' y1='5' x2='10' y2='35'/%3E%3Cline x1='7' y1='10' x2='13' y2='10'/%3E%3Cline x1='7' y1='17' x2='13' y2='17'/%3E%3Cline x1='7' y1='24' x2='13' y2='24'/%3E%3Cline x1='7' y1='31' x2='13' y2='31'/%3E%3Cline x1='50' y1='30' x2='55' y2='10'/%3E%3Cline x1='55' y1='30' x2='58' y2='8'/%3E%3Cline x1='60' y1='30' x2='62' y2='9'/%3E%3Cline x1='65' y1='30' x2='66' y2='12'/%3E%3Cline x1='69' y1='30' x2='70' y2='17'/%3E%3Cellipse cx='60' cy='32' rx='12' ry='6'/%3E%3Cpath d='M5 55 Q15 48 25 55 Q35 62 40 55'/%3E%3Cpolyline points='37,51 40,55 36,58'/%3E%3Cpath d='M60 65 Q60 58 66 58 Q73 58 73 65 Q73 72 60 77 Q47 72 47 65 Q47 58 54 58 Q60 58 60 65Z'/%3E%3Cpolyline points='55,65 58,62 61,67 64,60 67,65'/%3E%3C/g%3E%3C/svg%3E"); background-size: 80px 80px; background-repeat: repeat; }

/* Hand abdruck decoration */
.hand-abdruck { position: absolute; pointer-events: none; z-index: 0; user-select: none; -webkit-user-drag: none; }
@media (max-width: 768px) { .hand-abdruck { display: none; } }
@media (prefers-reduced-motion: reduce) { .hand-abdruck { display: none; } }

/* Responsive: Hero mobile */
@media (max-width: 480px) {
    .hero-content { padding: 4.5rem 1rem 2rem 1rem; }
    .hero-main-logo {
    width: 100%;
    max-width: clamp(400px, 90vw, 1200px);
    height: auto;
    display: block;
    transform: none;
}
    .hero-sub { font-size: 0.95rem; }
    .hero-mini-info { padding: 1rem; font-size: 0.85rem; gap: 0.5rem; }
}
@media (max-width: 400px) {
    .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Responsive: Leistungen mobile */
@media (max-width: 600px) {
    .l-card-item { height: auto; min-height: 80px; padding: 0.8rem; }
    .lc-text h3 { font-size: 0.95rem; }
    .lc-text p { font-size: 0.75rem; }
    .lc-img { width: 60px; height: 60px; }
}

/* Responsive: Praxis collage mobile */
@media (max-width: 480px) {
    .praxis-wrapper { grid-template-columns: 1fr !important; }
    .collage-piece { height: 160px !important; }
}

/* Responsive: Team carousel mobile */
@media (max-width: 600px) {
    .carousel { gap: 0.5rem; }
    .c-btn { width: 40px; height: 40px; font-size: 1.2rem; }
    .c-info { padding: 1.2rem; }
    .c-info h3 { font-size: 1.2rem; }
}

/* Responsive: Kurse form mobile */
@media (max-width: 600px) {
    .k-text, .k-form { padding: 2rem 1.5rem !important; }
    .k-text h2 { font-size: 1.8rem; }
    .k-split { gap: 2rem; }
    .k-links a { font-size: 1.3rem; }
    .map-wrap { min-height: 280px; }
}

/* Responsive: Footer mobile */
@media (max-width: 480px) {
    footer .container { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

/* Responsive: Subpages mobile */
@media (max-width: 600px) {
    .page-main-container { padding: 100px 1rem 60px 1rem !important; }
    .page-content-box.impressum-datenschutz-box { padding: 2rem 1.5rem !important; }
    .page-heading { font-size: 1.8rem !important; }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .l-card-item { transform: none !important; }
    .l-card-item:active { background: rgba(212,165,116,0.08); transition-duration: 100ms; }
    .form-control { font-size: 16px; }
    .c-btn { width: 48px; height: 48px; }
    .nav-cta { padding: 0.6rem 1.4rem; }
}

html, body, a, button, [role="button"], .l-card, .acc-header, .l-pill-btn, .t-arrow-btn, .lc-link, .nav-item, .nav-cta {
        cursor: auto !important;
    }
}

/* ── Leistungen pills nav scrollable ────────────────────── */
.leist-pills-nav {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1rem 1.5rem;
    margin: 0 -1.5rem;
    scroll-snap-type: x proximity;
}
.leist-pills-nav::-webkit-scrollbar { display: none; }
.l-pill-btn:first-child { margin-left: 0.5rem; }
.l-pill-btn:last-child { margin-right: 1.5rem; }
#leistungen .container { overflow: visible; }

/* ── Team Section Redesign ──────────────────────────────── */
.team-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
}
.team-header-headline {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #fff;
    line-height: 1.1;
}
.team-header-headline span { color: var(--color-accent); }
.team-header-arrows {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}
.team-body-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: end;
}
.team-text-col {
    position: relative;
    min-height: 400px;
}
.team-img-col {
    position: relative;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
}
.team-img-col img {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
@media (max-width: 900px) {
    .team-header-row { flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
    .team-body-grid { grid-template-columns: 1fr; gap: 2rem; }
    .team-img-col { order: 2; height: 350px; }
    .team-text-col { order: 1; min-height: auto; }
}
@media (max-width: 600px) {
    .team-header-arrows .t-arrow-btn { width: 44px; height: 44px; }
    .team-header-headline { font-size: 1.8rem; }
    .team-img-col { height: 280px; }
}


/* Navbar inner burger (mobile only) */
.navbar-burger {
    display: none;
    background: none;
    border: none;
    cursor: none !important;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}
.navbar-burger:hover { background: rgba(26,48,96,0.06); }
.navbar-burger.open .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-burger.open .burger-bar:nth-child(2) { opacity: 0; }
.navbar-burger.open .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
    .navbar-burger { display: flex; }
    .nav-links { display: none; }
}


/* Leistungen Pills Container mit Scroll Hint */
.leist-pills-container {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}
.leist-pills-container::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--color-bg-light));
    pointer-events: none;
    z-index: 2;
}

.l-pills-nav-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1rem 1.5rem;
    margin: 0 -1.5rem;
    display: flex;
    flex-wrap: nowrap;
}
.l-pills-nav-wrap::-webkit-scrollbar { display: none; }

/* Praxis Video Section */
.praxis-video-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
    margin-top: 4rem;
}
.praxis-video-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pv-label {
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
}
.praxis-video-header h2 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.8rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.praxis-video-header p {
    font-size: 1.05rem;
    color: rgba(26,48,96,0.7);
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
}
.pv-separator {
    width: 48px;
    height: 2px;
    background: var(--color-accent);
    margin: 0 auto;
}
.praxis-video-container {
    position: relative;
    width: 100%;
    max-height: 55vh;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(26,48,96,0.12);
    background: #1A3060; /* dunkelblau */
    display: flex;
    align-items: center;
    justify-content: center;
}
.praxis-video-container video {
    width: 100%;
    height: 100%;
    max-height: 55vh;
    object-fit: contain;
    display: block;
}
.praxis-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 200ms ease;
    z-index: 10;
}
.praxis-play-btn svg {
    margin-left: 4px; /* Optical centering for play triangle */
}
.praxis-play-btn:hover {
    width: 82px;
    height: 82px;
    box-shadow: 0 8px 25px rgba(212,165,116,0.4);
}
.praxis-play-btn.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

/* L-förmige Linien in den Ecken */
.pv-decor-tl, .pv-decor-br {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(212,165,116,0.7); /* Gold, 70% Opacity */
    z-index: 2;
    pointer-events: none;
}
.pv-decor-tl {
    top: 24px;
    left: 24px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 8px;
}
.pv-decor-br {
    bottom: 24px;
    right: 24px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 8px;
}

