/* Fonts - Local for GDPR */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('img/fonts/montserrat-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('img/fonts/montserrat-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('img/fonts/montserrat-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('img/fonts/inter-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('img/fonts/inter-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('img/fonts/inter-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('img/fonts/inter-600.woff2') format('woff2');
}

:root {
    /* Colors */
    --primary: #0056b3;
    --border: #dee2e6;
    /* Professional Blue */
    --primary-light: #e6f0ff;
    --accent: #ff8c00;
    /* Energetic Orange */
    --accent-hover: #e07b00;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --bg-light: #ffffff;
    --bg-alt: #f8f9fa;
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-max: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.nowrap {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .nowrap {
        white-space: normal;
    }
}

html {
    scroll-behavior: smooth;
    /* Only enable scroll snap on mobile/tablet to avoid desktop interference if not requested, 
       but user said "man von section zu section scrollen kann", implying general but mobile-first */
    scroll-padding-top: var(--header-height);
}

@media (max-width: 1024px) {

    html,
    body {
        scroll-padding-top: var(--header-height);
    }
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 600px) {
    .section-padding {
        padding: 50px 0;
    }
}

/* Helper Classes */
.text-accent {
    color: var(--accent);
}

.bg-alt {
    background-color: var(--bg-alt);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.grid-3,
.slider-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 2rem;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 1rem;
}

.grid-3::-webkit-scrollbar {
    display: none;
}

.grid-3>* {
    flex: 0 0 85%;
    scroll-snap-align: start;
}

@media (min-width: 769px) {

    .grid-3>* {
        flex: 0 0 calc(33.33% - 1rem);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Header & Nav */
.header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

@media (min-width: 1025px) {
    .header {
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: transform 0.3s;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-part1 {
    color: var(--primary);
}

.logo-part2 {
    color: var(--accent);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-link:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: none;
    /* Controlled by media query */
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        padding: 6rem 1rem 12rem;
        /* Massive bottom padding for iPad safe areas */
        gap: 1.25rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        text-align: center;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-list.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.5rem;
        padding: 0.8rem;
        width: 100%;
        display: block;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
        gap: 0.5rem;
    }

    .logo-img {
        height: 24px;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Footer */
.footer {
    background-color: var(--bg-alt);
    padding: 4rem 0 2rem;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-links a {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.social-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 1.35rem;
        white-space: nowrap;
    }
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: var(--header-height);
    overflow: hidden;
    max-width: 100vw;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero-content h1 span {
    display: block;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-contact {
    font-size: 1.25rem;
    font-weight: 600;
}


@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero {
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.9rem;
    }
}

/* Hero Small (Branch Pages) */
.hero-small {
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.hero-small h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero-small {
        aspect-ratio: auto !important;
        padding: 100px 0 40px;
    }
    
    .hero-small h1 {
        font-size: 2rem;
    }
}

/* Aktuelles / News Section */
.news-section {
    padding: 2rem 0;
    background: var(--bg-alt);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.news-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-left: 6px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-badge {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.news-title {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.news-text {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .news-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
        margin: 0;
        width: 100%;
    }
}

/* Intensivkurs */
.intensivkurs {
    background-color: var(--primary);
    color: var(--white);
}

.intensivkurs-card {
    background: var(--white);
    color: var(--text-dark);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

.intensivkurs-content,
.intensivkurs-highlight {
    flex: 1;
    min-width: 0;
}

@media (max-width: 850px) {
    .intensivkurs-card {
        flex-direction: column;
        padding: 1.5rem;
        gap: 2rem;
    }
}

.intensivkurs-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.intensivkurs-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.intensivkurs-highlight {
    background: var(--primary-light);
    padding: 2rem;
    border-radius: var(--radius);
    border-left: 5px solid var(--accent);
}

.intensivkurs-highlight li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.intensivkurs-action {
    text-align: center;
}

@media (max-width: 768px) {
    .intensivkurs-card {
        padding: 1.5rem;
    }
}

/* Standorte */
.locations-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 2rem;
    margin-left: -1rem;
    margin-right: -1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.locations-grid::-webkit-scrollbar {
    display: none;
}

.locations-grid>* {
    flex: 0 0 85%;
    scroll-snap-align: start;
}

@media (min-width: 769px) {
    .locations-grid>* {
        flex: 0 0 calc(33.33% - 1rem);
    }
}

@media (max-width: 768px) {
    .locations-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding-bottom: 2rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .locations-grid::-webkit-scrollbar {
        display: none;
    }

    .locations-grid>* {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
}

.location-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.location-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-details {
    padding: 1.5rem;
}

.location-card:hover {
    transform: translateY(-5px);
}

.location-card h3 {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
}

.location-card p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.location-details p,
.info-card p {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    margin-bottom: 0.75rem;
}

.location-details p i,
.location-details p svg,
.info-card p i,
.info-card p svg {
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem !important;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem; /* Align with first line of text */
}

/* Ensure long text wraps in location cards and info boxes */
.location-details p,
.info-card p,
.theory-item p,
.class-details li,
.benefit-list li {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.team-card {
    text-align: center;
    padding: 0 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.team-image-placeholder {
    width: 180px;
    height: 180px;
    background: #e1e4e8;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 5px solid var(--primary-light);
}

.team-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-qual {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.team-bio {
    color: var(--text-muted);
    font-style: italic;
}

/* Ausbildung */
.class-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #eee;
    transition: var(--transition);
}

.class-card:hover {
    border-color: var(--primary);
}

.class-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.class-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.class-details li {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    padding-left: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.class-details li i,
.class-details li svg,
.benefit-list li i,
.benefit-list li svg {
    color: var(--accent);
    flex-shrink: 0 !important;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    display: inline-block;
}

.class-specs {
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-top: 1rem;
}

.class-specs span {
    display: block;
    font-weight: 600;
    color: var(--primary);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.gallery-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-image {
    height: 220px;
    background: #f0f2f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.gallery-content {
    padding: 1.25rem;
}

.gallery-content h4 {
    margin-bottom: 0.4rem;
    color: var(--primary);
}

/* Theory */
.theory-info {
    background: var(--primary-light);
    padding: 2rem;
    border-radius: var(--radius);
    margin-top: 2rem;
}

.theory-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.theory-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Documents */
.doc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.doc-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.doc-card i, .doc-card svg {
    color: var(--accent);
    width: 38px !important;
    height: 38px !important;
    flex-shrink: 0;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-form {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: var(--radius);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* SEO optimized additions */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25d366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-weight: 600;
    transition: var(--transition);
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
        padding: 0;
        border-radius: 50%;
    }

    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float i {
        width: 30px;
        height: 30px;
    }
}

.whatsapp-float:hover {
    transform: scale(1.05) translateY(-2px);
    background-color: #20b858;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-alt);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item.faq-open .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-item.faq-open .faq-question i {
    transform: rotate(180deg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .pricing-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding-bottom: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .pricing-grid::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .pricing-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        transform: none !important;
        /* Scale 1.05 might clip on mobile */
    }

    .pricing-card.featured {
        transform: none !important;
    }
}

.pricing-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--accent);
    transform: scale(1.05);
}

.pricing-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.price-tag span {
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 0.25rem;
}

.pricing-features {
    margin-bottom: 2rem;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.pricing-features li i {
    color: #2ecc71;
}

.trust-signals {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
}

.trust-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.trust-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float {
        padding: 0.75rem;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Progress Counter */
.scroll-counter {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: -1rem;
    margin-bottom: 2rem;
    transition: opacity 0.3s;
}

/* Slider / Carousel Styles (Universal Swipe) */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.slider-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 2rem;
    padding: 1rem 0;
    scroll-padding: 0 1rem;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slider-track>* {
    flex: 0 0 85%;
    scroll-snap-align: start;
    min-width: 0;
}

@media (min-width: 769px) {
    .slider-track>* {
        flex: 0 0 calc(33.33% - 1.33rem);
    }
}

.slider-nav {
    display: none !important;
    /* Hide legacy slider dots/arrows */
}

/* Pricing Grid Universal Swipe */
.pricing-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 1.5rem;
    padding: 1rem 0 2rem;
    margin: 0 -1rem;
    scroll-padding: 0 1rem;
}

.pricing-grid::-webkit-scrollbar {
    display: none;
}

.pricing-grid>* {
    flex: 0 0 85%;
    scroll-snap-align: start;
}

@media (min-width: 769px) {
    .pricing-grid>* {
        flex: 0 0 calc(33.33% - 1rem);
    }
}

/* SEO optimized additions */
.maps-container {
    width: 100%;
    margin-top: 4rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #f8f9fa;
    position: relative;
    min-height: 450px;
}

.maps-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    height: 450px;
}

.maps-placeholder i {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.maps-placeholder h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.maps-placeholder p {
    max-width: 450px;
    margin: 0 auto 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.maps-placeholder .btn {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .maps-container, .maps-placeholder {
        min-height: 350px;
        height: auto;
    }
    
    .maps-container iframe {
        height: 350px;
    }
}

.hero-small {
    padding: 120px 0 80px;
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.hero-small h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero-small p {
    font-size: 1.25rem;
}

.hero-small .container {
    max-width: 900px;
}

@media (max-width: 768px) {
    .hero-small h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 5px solid var(--accent);
}

.info-card h3 {
    margin-bottom: 1rem;
}
 
/* Collapsible Info Box */
.collapsible-wrapper {
    position: relative;
    max-height: 250px; /* Default collapsed height */
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsible-wrapper.expanded {
    max-height: 2500px; /* Large enough for expanded content */
}

.collapsible-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, var(--white));
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 1;
}

.collapsible-wrapper.expanded .collapsible-overlay {
    opacity: 0;
}

.read-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem auto 0;
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.read-more-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.read-more-btn i {
    transition: transform 0.3s;
}

.read-more-btn.active i {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .collapsible-wrapper {
        max-height: 200px; /* More aggressive on mobile */
    }
}

/* Theory Info Section */
.theory-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.theory-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    border-top: 5px solid var(--accent);
}

.theory-item h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--primary);
}

.theory-item p {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .theory-list {
        flex-direction: column;
        align-items: center;
    }
    
    .theory-item {
        width: 100%;
        max-width: 100%;
    }
}

/* Legal Pages */
.section-legal {
    margin-bottom: 25px;
}
.contact-legal {
    background: var(--bg-alt);
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid #eee;
}
.small-text {
    color: var(--text-muted);
}

/* 404 Page */
.error-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1;
}

.error-message {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.error-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Fix text wrapping issues in boxes on small screens */
.intensivkurs-card h1, .intensivkurs-card h2, .intensivkurs-card h3, .intensivkurs-card h4, .intensivkurs-card p, .intensivkurs-card li, .intensivkurs-card span,
.info-card h1, .info-card h2, .info-card h3, .info-card h4, .info-card p, .info-card li, .info-card span,
.news-card h1, .news-card h2, .news-card h3, .news-card h4, .news-card p, .news-card li, .news-card span {
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
    hyphens: none !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
    word-break: normal !important;
}