@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Futuristic Light Palette */
    --primary: #0F172A; 
    --primary-blue: #5CB6FA; /* Light blue from Logo */
    --logo-dark-blue: #2953B9; /* Dark blue from Logo */
    --secondary: #94A3B8; 
    --accent: #3B82F6; /* Use blue as accent instead of yellow */
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-surface: #F1F5F9;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border: #F1F5F9;
    
    /* Futuristic UI Tokens */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 40px 80px -20px rgba(0, 0, 0, 0.08);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-weight: 300;
    overflow-x: hidden;
}

/* Base Styles for Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-aos].active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Typography */
h1, h2 {
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--primary);
}

h3, h4, .btn {
    font-weight: 300;
    line-height: 1.1;
    color: var(--primary);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 4rem); margin-bottom: 16px; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3.5rem); margin-bottom: 32px; }
h3 { font-size: 1.15rem; margin-bottom: 20px; }
h4 { font-size: 1.1rem; margin-bottom: 16px; font-weight: 400; }

/* Layout Components */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

section {
    padding: 160px 0;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 38px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 400;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
    width: 100%;
}

/* Contact Links Styling */
a[href^="tel:"],
a[href^="mailto:"],
a[href*="maps"],
a[href*="goo.gl"] {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

a[href^="tel:"]:hover,
a[href^="mailto:"]:hover,
a[href*="maps"]:hover,
a[href*="goo.gl"]:hover {
    color: var(--primary-blue) !important;
}

.mobile-br {
    display: none;
}

@media (max-width: 768px) {
    .mobile-br {
        display: block;
    }
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 300;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(92, 182, 250, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue) !important;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(92, 182, 250, 0.1);
}

/* Burger Menu */
/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 30px;
    position: relative;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #0F172A !important;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    background-image: url('hero_physio_v6.png');
    background-size: cover;
    background-position: 85% center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 0;
}


.hero-line-art {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    height: 90%;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    color: white;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-tag {
    display: inline-block;
    padding: 8px 0;
    background: transparent;
    color: #5CB6FA;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: none;
}

/* Grid & Cards */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-3, .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.bg-dark { background-color: var(--primary); }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.glass-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all 0.3s ease;
    text-align: left;
    height: 100%;
}

.feature-item {
    padding: 30px;
    background: white;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.glass-card h3, 
.feature-item h3, 
.trust-item h3, 
.seminar-item h3,
.slide h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    font-weight: 300;
}

.feature-grid-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
}

.feature-grid-flex .feature-item {
    flex: 0 1 calc((100% - 96px) / 3);
}

@media (max-width: 992px) {
    .feature-grid-flex .feature-item {
        flex: 0 1 calc((100% - 48px) / 2);
    }
}

@media (max-width: 768px) {
    .feature-grid-flex .feature-item {
        flex: 0 1 100%;
    }
}

.feature-item:hover {
    background: white;
    border-color: var(--border);
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
}

.feature-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

/* Subpage Hero */
.hero-sub {
    padding: 240px 0 160px; /* Offset for 80px header to center content in visible area */
    background-color: var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-sub .container {
    position: relative;
    z-index: 2;
}

.hero-sub .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-sub h1 {
    white-space: nowrap;
    margin: 0;
}

.hero-sub span {
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 16px;
}

/* Comparison Section */
.comparison-section {
    background: var(--bg-surface);
    margin: 80px 24px;
    border-radius: 60px;
    border: none;
    padding: 100px 0;
}

.calc-card {
    background: white;
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* Testimonials Slider */
.slider-container {
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 20px;
}

.slide {
    min-width: calc((100% - 40px) / 3); /* 3 slides, 2 gaps of 20px */
    flex-shrink: 0;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .slide {
        min-width: calc((100% - 20px) / 2); /* 2 slides, 1 gap of 20px */
    }
}

@media (max-width: 768px) {
    .slide {
        min-width: 100%;
    }
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
}

.slider-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary);
}

.slider-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: scale(1.1);
}

/* FAQ */
.faq-item {
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item summary {
    padding: 24px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-content {
    padding: 0 24px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

/* CTA Section */
.cta-section {
    position: relative;
    background-image: url('hero_premium.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(2px);
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid var(--border);
    padding-top: 100px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 32px;
    padding-bottom: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 0.8fr 0.8fr;
    gap: 40px;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 4px;
}

.footer-col p, .footer-col li {
    line-height: 1.5;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

/* Utility Classes for Responsive Grids */
.responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 1024px) {
    .responsive-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary);
}

/* Responsive Queries */
@media (max-width: 1024px) {
    .nav-links {
        display: none !important;
    }

    .burger {
        display: flex !important;
        position: fixed !important;
        right: 20px !important;
        top: 25px !important;
    }

    .comparison-section {
        padding: 60px 15px;
        margin: 40px 10px;
        border-radius: 30px;
    }
    
    .comparison-section > .container > div {
        flex-direction: column !important;
        gap: 40px !important;
        text-align: center;
    }

    .calc-card {
        width: 100%;
        min-width: 0 !important;
        padding: 30px;
    }

    /* Wrap grids to 2 columns at 1024px */
    .grid-4, .grid-3, .card-grid, .feature-grid, .seminar-grid, .contact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    header {
        padding: 16px 0;
    }

    .hero {
        padding-top: 120px;
        text-align: center;
    }

    section {
        padding: 50px 0;
    }

    .glass-card {
        padding: 24px 16px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    #turnover {
        font-size: 3rem !important;
    }
    
    /* Force all layout grids to 1 column on mobile */
    .feature-grid, .card-grid, .grid-4, .grid-3, .seminar-grid, .contact-grid, .form-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .hero > .container > div,
    #vorteile > .container > div {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center !important;
    }

    #vorteile > .container > div > div[data-aos="fade-left"] {
        grid-template-columns: 1fr !important;
        text-align: left !important;
    }

    .hero-btns {
        justify-content: center !important;
    }
}

/* Burger Animation */
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* COLLAPSIBLE TESTIMONIALS */
.testimonial-content {
    position: relative;
}

.testimonial-text {
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    position: relative;
}

.testimonial-text.expanded {
    max-height: 1000px;
}

.testimonial-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(transparent, white);
    transition: opacity 0.3s ease;
}

.testimonial-text.expanded::after {
    opacity: 0;
    pointer-events: none;
}

.btn-read-more {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-transform: none;
}

.btn-read-more:hover {
    text-decoration: underline;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(92, 182, 250, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(92, 182, 250, 0.4);
}

#back-to-top svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Additional Mobile Optimization */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 60px !important;
    }
}

@media (max-width: 768px) {
    .hero {
        background-position: 80% center;
    }
    h1 { font-size: 2.4rem !important; line-height: 1.2 !important; }
    h2 { font-size: 1.8rem !important; line-height: 1.3 !important; }
    h3 { font-size: 1.4rem !important; }
    
    .hero-sub {
        padding: 140px 0 80px !important;
    }

    .hero-sub h1 {
        font-size: 2rem !important;
        white-space: normal !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    .section-header {
        margin-bottom: 40px !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .glass-card {
        padding: 30px !important;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Helper Classes */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Better Mobile Menu Design */
.mobile-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 60px 40px;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-nav.active a {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for links */
.mobile-nav.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active a:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav.active a:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav.active a:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav.active a:nth-child(5) { transition-delay: 0.5s; }

.mobile-nav a.mobile-cta {
    margin-top: 30px;
    background: var(--primary-blue);
    color: white;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
}

.calc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .calc-inputs {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

/* Cleaned up redundant media queries */

.seminar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 768px) {
    footer {
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col h4 {
        justify-content: center !important;
    }

    .footer-links {
        padding: 0;
    }
    
    .footer-grid {
        gap: 60px !important;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 60px;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.25);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.modal-icon svg {
    width: 40px;
    height: 40px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 40px 20px;
    }
}
