@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('fonts/cormorant-garamond-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('fonts/cormorant-garamond-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #B8860B;
    /* Darker Gold/Brass */
    --primary-light: #D4AF37;
    /* Lighter Gold */
    --primary-dark: #8B6508;
    --bg-main: #FAF9F6;
    /* Off White */
    --bg-white: #FAF9F6;
    --bg-soft: #F5F3ED;
    --text-dark: #2C2C2C;
    --text-muted: #5A5A5A;
    --border-color: rgba(184, 134, 11, 0.1);

    /* Spacing */
    --space-xs: 0.75rem;
    --space-sm: 1.5rem;
    --space-md: 3rem;
    --space-lg: 6rem;
    --space-xl: 10rem;

    /* Radius - Inviting & Modern */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 48px;

    /* Standard Hero Gradient from Home */
    --hero-gradient: radial-gradient(circle at top right, rgba(184, 134, 11, 0.1), transparent),
        radial-gradient(circle at bottom left, rgba(242, 230, 208, 0.5), transparent);
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
}

/* Layout */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-lg) 0;
}

/* Header - Elegant & Integrated */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    /* Changed from var(--hero-gradient) to ensure no seams */
}

header.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(15px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-style: italic;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Dropdown System */
.nav-item-dropdown {
    position: relative;
    padding: 1rem 0;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.dropdown-trigger::after {
    content: '▾';
    font-size: 0.8rem;
    opacity: 0.5;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-item-dropdown.open .dropdown-trigger::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 220px;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    z-index: 1000;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-item-dropdown:hover .dropdown-trigger {
    color: var(--primary);
}

.dropdown-menu a {
    padding: 0.8rem 1.2rem !important;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    white-space: nowrap;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.dropdown-menu a:hover {
    background: var(--bg-soft);
    color: var(--primary);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    /* Standard touch target size */
    height: 44px;
    /* Standard touch target size */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 11px 7px;
    /* Center the 30x21 icon */
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Desktop Links */
.nav-links a {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

/* Responsive Navigation */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
        gap: 2rem;
        padding: var(--space-lg) var(--space-md);
        overflow-y: auto;
    }

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

    .nav-links a {
        font-size: 1.5rem;
        text-align: center;
    }

    .nav-item-dropdown {
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .dropdown-trigger {
        font-size: 1.5rem;
        justify-content: center;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none;
        border: none;
        background: transparent;
        min-width: 100%;
        padding: 0;
        gap: 0.5rem;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
    }

    .nav-item-dropdown.open .dropdown-menu,
    .nav-item-dropdown:hover .dropdown-menu {
        height: auto;
        padding: 1rem 0;
    }

    .dropdown-trigger {
        padding: 0.5rem;
        cursor: pointer;
        user-select: none;
    }

    .dropdown-menu a {
        font-size: 1.1rem !important;
        opacity: 0.7;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Hero - Warm Gold Glow */
/* Hero - Inviting Atmosphere */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: linear-gradient(135deg, rgba(250, 249, 246, 0.7) 0%, rgba(250, 249, 246, 0.3) 100%),
        url('images/studio_hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
    opacity: 0;
    transform: translateX(40px) scale(0.98);
    animation: revealLogo 2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 0.3s;
}

.hero-image img {
    width: 100%;
    /* Transparent and clean */
    filter: drop-shadow(0 15px 40px rgba(184, 134, 11, 0.15));
}

@keyframes revealLogo {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.hero-content {
    opacity: 0;
    transform: translateY(20px);
    animation: revealContent 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes revealContent {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: var(--space-sm);
    color: var(--primary);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(184, 134, 11, 0.15);
}

/* Buttons - Consistent with Logo Gold */
.btn {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: 1px solid var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-5px);
}

.btn-glass {
    background: transparent;
    color: var(--primary);
}

.btn-glass:hover {
    background: var(--primary);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* CTA Buttons for Training Pages */
.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: white !important;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid var(--primary);
    box-shadow: 0 15px 35px rgba(184, 134, 11, 0.2);
    text-align: center;
    text-decoration: none;
}

.cta-button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(184, 134, 11, 0.3);
}

.cta-button.outline {
    background: transparent;
    color: var(--primary) !important;
    box-shadow: none;
}

.cta-button.outline:hover {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 15px 35px rgba(184, 134, 11, 0.2);
}

/* Atmosphere Gallery */
.section-title {
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-title h2 {
    font-size: 3.5rem;
    color: var(--primary);
}

.atmosphere-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: var(--space-sm);
}

.atmosphere-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.atmosphere-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.atmosphere-item:hover img {
    transform: scale(1.05);
}

.atmosphere-item.large {
    grid-column: span 2;
    grid-row: span 2;
}





/* Cards - Floating Warmth */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.card {
    padding: var(--space-md);
    background: white;
    border-radius: var(--radius-md);
    transition: all 0.5s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 100px rgba(184, 134, 11, 0.1);
    border-color: var(--primary);
}

.card h3 {
    font-size: 2.2rem;
    margin-bottom: var(--space-sm);
    color: var(--primary);
}



/* Footer - Sophisticated Depth */
footer {
    background: var(--text-dark);
    color: white;
    padding: var(--space-xl) 0 var(--space-sm);
    margin-top: var(--space-xl);
}

footer a:hover {
    color: var(--primary-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.footer-col h4 {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
    color: var(--primary-light);
}

.footer-bottom {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    opacity: 0.5;
    text-align: center;
}

/* Team Magazine Style - Compact Version */
.magazine-team {
    padding-top: 0;
    /* Removed var(--space-xl) to eliminate the top gap */
}

.feature-member {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.member-visual {
    grid-column: 2 / 6;
    /* Smaller image width (4 cols) */
    position: relative;
}

.member-visual::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 70%;
    height: 80%;
    background: var(--accent-bg, var(--bg-soft));
    z-index: -1;
    border-radius: var(--radius-md);
    transition: all 0.4s ease;
}

.feature-member.reverse .member-visual::after {
    left: auto;
    right: -20px;
}

.accent-brown {
    --accent-bg: var(--primary);
    opacity: 0.8;
}

.accent-white {
    --accent-bg: #FFFFFF;
}

.member-visual img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.05);
}

/* Standard Editorial Hero - Unified with Homepage Style */
.editorial-hero,
.subpage-hero,
.team-hero-magazine {
    padding: 160px 0 80px;
    background: var(--hero-gradient);
    /* Exactly like homepage */
    border-bottom: none;
    /* Removed border to match home page transition */
    position: relative;
    transition: all 0.5s ease;
    z-index: 10;
}

/* Section Rhythm Classes - Matching Home Page */
.section-white {
    background-color: #FFFFFF;
}

.section-soft {
    background-color: var(--bg-soft);
}

.section-tint {
    background-color: var(--bg-soft);
    /* Using the home page beige */
}

.hero-editorial h1,
.subpage-hero h1,
.team-hero-magazine h1 {
    font-size: 4rem;
    /* Standardized heading size */
    margin-bottom: 0.5rem;
}

/* Page Specific Colors */
/* Standardized Contextual Colors (All pointing to home theme) */
.hero-massagen,
.hero-kontakt,
.hero-team,
.hero-schwanger {
    --hero-bg: var(--bg-soft);
    --section-tint-color: var(--bg-soft);
}

section.subpage-hero.hero-kurse {
    background: linear-gradient(rgba(250, 249, 246, 0.7), rgba(250, 249, 246, 0.7)),
        url('images/studio_raum_1.jpg') center/cover no-repeat !important;
}

section.subpage-hero.hero-massagen {
    background: linear-gradient(rgba(250, 249, 246, 0.4), rgba(250, 249, 246, 0.4)),
        url('images/image00007.jpeg') center 30%/cover no-repeat !important;
}

.hero-workshops {
    background: linear-gradient(rgba(250, 249, 246, 0.6), rgba(250, 249, 246, 0.6)),
        url('images/studio_raum_1.jpg') center/cover no-repeat !important;
    --section-tint-color: var(--bg-soft);
}

.hero-reisen {
    background: linear-gradient(rgba(250, 249, 246, 0.4), rgba(250, 249, 246, 0.4)),
        url('images/reisen_hero_subtle.png') center/cover no-repeat !important;
    --section-tint-color: var(--bg-soft);
}

/* Refined Team Hero - Magazine Style - More Compact & Elegant */
.team-hero-magazine {
    overflow: hidden;
    background: var(--hero-gradient);
    padding: 120px 0 40px !important;
}

.team-hero-magazine .container {
    position: relative;
    display: flex;
    justify-content: flex-start;
    /* Changed from space-between */
    align-items: center;
    padding-top: 0;
}

.team-hero-magazine::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.08) 0%, transparent 70%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 1;
}

.team-header-layout {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.team-header-layout h1 {
    font-size: 4.8rem !important;
    /* Reduced from 6.5rem */
    line-height: 0.9;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.team-header-layout h1 i {
    color: var(--primary);
    display: inline-block;
    /* Changed from block to be more compact */
    margin-left: 1rem;
    font-weight: 300;
}

.team-header-layout .hero-subtitle {
    margin-left: 1rem;
    padding-left: 1.2rem;
    border-left: 2px solid var(--primary);
    font-size: 1rem;
    max-width: 450px;
    line-height: 1.5;
    opacity: 0.8;
}

.editorial-hero .hero-subtitle,
.subpage-hero p {
    font-size: 1.2rem;
    opacity: 0.7;
}

.member-card {
    grid-column: 5 / 12;
    /* Card overlaps the smaller image more elegantly */
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 40px 100px rgba(184, 134, 11, 0.1);
    z-index: 2;
}

/* Alternate for Jessica */
.feature-member.reverse .member-visual {
    grid-column: 8 / 12;
}

.feature-member.reverse .member-visual::after {
    left: auto;
    right: -15px;
}

.feature-member.reverse .member-card {
    grid-column: 2 / 9;
}

.recommendation-card {
    background: var(--bg-soft);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 3rem;
}

.recommendation-card img {
    width: 200px;
    border-radius: var(--radius-sm);
}

.recommendation-content h4 {
    color: var(--primary);
    font-size: 2rem;
}

.recommendation-content p {
    font-size: 1.2rem;
}

.magazine-team h2 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.magazine-team .role-tag {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

/* Expand/Collapse Details - "Mehr erfahren" */
.expand-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease,
        margin 0.4s ease;
    margin-top: 0;
}

.expand-details.open {
    max-height: 3000px;
    opacity: 1;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .atmosphere-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .atmosphere-grid {
        grid-template-columns: 1fr;
    }

    .atmosphere-item.large {
        grid-column: span 1;
        grid-row: span 1;
        height: 300px;
    }

    .hide-mobile {
        display: none;
    }
}

/* Premium Cookie Banner - Bottom Left Pop-up */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    max-width: 400px;
    width: calc(100% - 4rem);
    background: rgba(250, 249, 246, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transform: translateY(120%) scale(0.9);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.active {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.cookie-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-icon {
    font-size: 1.5rem;
    background: var(--bg-soft);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.cookie-text h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.2rem;
}

.cookie-text p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-cookie {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cookie:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3);
}

@media (max-width: 500px) {
    .cookie-banner {
        bottom: 1rem;
        left: 1rem;
        width: calc(100% - 2rem);
    }
}

/* Explicit Image Correction - Fixes "milky" appearance */
.reveal-image img,
.section-tint img,
.atmosphere-item img {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
}

/* Course Cards (Expandable) */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.course-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 380px;
    /* Increased from 250px */
}

.course-card.active {
    min-height: 480px;
    /* Grows when active */
    box-shadow: 0 20px 50px rgba(184, 134, 11, 0.15);
}

.course-body-container {
    position: relative;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
}

.course-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.course-card p {
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.course-card-front {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-card-front .btn {
    margin-top: auto;
    align-self: flex-start;
}

.course-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.course-card.active .course-card-back {
    transform: translateY(0);
}

.course-card.active .course-card-front {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.course-card-front {
    transition: opacity 0.3s ease;
}


.price-list {
    list-style: none !important;
    margin: 1rem 0;
    padding: 0 !important;
    width: 100%;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    margin-bottom: 0 !important;
}

.price-list li:last-child {
    border-bottom: none;
}

.price-list li span:last-child {
    font-weight: 600;
    color: var(--primary);
}

.course-card-back .btn-primary {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0.8rem;
}

.course-card-back .btn-text {
    width: 100%;
    text-align: center;
    color: var(--text-dark);
    opacity: 0.6;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.course-card-back .btn-text:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Welcome Section */
.welcome-section {
    padding: var(--space-md) 0;
    background: white;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: center;
}

.welcome-image {
    position: relative;
}

.welcome-image .image-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 90%;
}

.welcome-image img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

.welcome-image:hover img {
    transform: scale(1.05);
}

.welcome-text h2 {
    margin: 1rem 0 1.5rem;
}

.welcome-text p {
    margin-bottom: 1rem;
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.8;
}

.subtitle {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--primary);
    font-weight: 600;
}

/* --- COMPREHENSIVE MOBILE OPTIMIZATION --- */
@media (max-width: 992px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    header {
        padding: 0.5rem 0;
    }

    .nav-content {
        padding: 0;
        width: 100%;
        position: relative;
        left: 0;
        transform: none;
    }

    .logo {
        font-size: 1.1rem;
    }

    /* Typography */
    h1 {
        font-size: 2.8rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.8rem !important;
    }

    /* Sections & Grids */
    section {
        padding: var(--space-md) 0;
    }

    .hero-grid,
    .welcome-grid,
    .footer-grid,
    .studio-pricing-grid,
    .feature-grid,
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .hero-image {
        order: -1;
        /* Image on top */
    }

    .hero-content {
        text-align: center;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    /* Team Page Specifics */
    .team-card {
        flex-direction: column !important;
        text-align: center;
        padding: 1.5rem !important;
    }

    .team-image {
        width: 100% !important;
        height: 350px !important;
        margin-bottom: 1.5rem;
    }

    .team-info {
        padding: 0 !important;
    }

    /* Studio Mieten Pricing */
    .studio-price-card {
        padding: 1.5rem !important;
    }

    .studio-price-card .subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.05em;
    }

    /* Course Cards Mobile Optimization */
    .course-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .course-card {
        min-height: auto !important;
        padding: 1.5rem !important;
    }

    .course-card.active {
        min-height: 560px !important;
    }

    .course-card-front .btn,
    .course-card-back .btn-primary {
        width: 100% !important;
        text-align: center;
        margin-top: 1.5rem;
    }

    .course-card-back .btn-text {
        background: var(--bg-soft);
        margin-top: 0.5rem;
        border-radius: var(--radius-sm);
        font-weight: 700;
        opacity: 1;
        color: var(--primary);
    }


    /* Footer */
    .footer-grid {
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    /* Editorial Hero */
    .editorial-hero {
        padding: 120px 0 60px !important;
        text-align: center;
    }

    .editorial-hero h1 {
        font-size: 3rem !important;
    }

    /* Team Magazine Mobile Layout */
    .feature-member {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        margin-bottom: var(--space-lg) !important;
    }

    .member-visual,
    .member-card,
    .feature-member.reverse .member-visual,
    .feature-member.reverse .member-card {
        grid-column: auto !important;
        width: 100% !important;
        transform: none !important;
    }

    .member-visual {
        margin-top: 20px;
        /* Space for the decorative ::after box */
    }

    .member-visual::after {
        display: block;
        width: 80%;
        height: 60%;
        top: -15px;
        left: -15px;
    }

    .feature-member.reverse .member-visual::after {
        left: auto;
        right: -15px;
    }

    .member-card {
        padding: 2rem 1.5rem !important;
        box-shadow: 0 20px 50px rgba(184, 134, 11, 0.1) !important;
        margin-top: -10px;
        /* Slight overlap with the decorative box area */
        z-index: 2;
    }

    .team-header-layout h1 {
        font-size: 3rem !important;
    }

    .team-header-layout h1 i {
        margin-left: 0.5rem;
    }

    /* Recommendations Mobile */
    .recommendation-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .recommendation-card img {
        width: 150px;
    }

    .recommendation-content h4 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.4rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    .logo i {
        display: block;
        font-size: 0.8rem;
        margin-top: -5px;
    }
}

/* Studio Rental Pricing Grid */
.studio-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.studio-price-card {
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
}

.studio-price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(184, 134, 11, 0.1);
    border-color: var(--primary);
}

.studio-price-card h4 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.studio-price-card .subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.studio-price-footer {
    margin-top: auto;
    padding-top: var(--space-sm);
    font-size: 0.8rem;
    opacity: 0.6;
    font-style: italic;
}

/* --- BOTTOM FIX --- */
footer {
    margin-bottom: 0 !important;
}

body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

html {
    background-color: var(--text-dark);
}