/* ============================================
   PILATES MIT SARA - Styles
   ============================================ */

:root {
    --cream: #F5F1EB;
    --cognac: #8B7355;
    --cognac-dark: #75614A;
    --text: #3D3D3D;
    --text-light: #6B6B6B;
    --text-muted: #AFAFAF;
    --border: #D4C9B8;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}

::selection { background: var(--cognac); color: var(--white); }

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, var(--cream) 0%, rgba(245,241,235,0.95) 50%, transparent 100%);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.15em;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

/* Mobile Menu Button */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.menu-btn span {
    width: 24px;
    height: 1px;
    background: var(--text);
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--cognac);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 4rem;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-tag {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cognac);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.3s forwards;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

.hero-title em {
    font-style: italic;
    color: var(--cognac);
}

.hero-desc {
    color: var(--text-light);
    max-width: 400px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.7s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--cognac);
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    opacity: 0;
    animation: fadeUp 1s ease 0.9s forwards;
}

.hero-cta:hover {
    background: var(--cognac-dark);
    gap: 1.25rem;
}

/* Fluid Image */
.hero-image-container {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    height: 85vh;
    z-index: 1;
}

.fluid-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--border);
    border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
    animation: morphShape 15s ease-in-out infinite;
    opacity: 0.4;
}

.fluid-shape-2 {
    animation-delay: -5s;
    transform: scale(0.95);
    opacity: 0.2;
}

.hero-image-mask {
    position: absolute;
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
    overflow: hidden;
    animation: morphShape 15s ease-in-out infinite reverse;
}

.hero-image-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

@keyframes morphShape {
    0%, 100% { border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%; }
    25% { border-radius: 45% 55% 50% 50% / 60% 45% 55% 40%; }
    50% { border-radius: 50% 50% 45% 55% / 45% 50% 50% 55%; }
    75% { border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   WAVE DIVIDERS
   ============================================ */
.wave-divider {
    position: relative;
    height: 150px;
    background: var(--white);
    margin-top: -1px;
}

.wave-divider svg,
.wave-divider-2 svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wave-divider-2 {
    position: relative;
    height: 150px;
    background: var(--cream);
}

.wave-divider-2 svg {
    bottom: 0;
    top: auto;
}

/* ============================================
   PHILOSOPHIE
   ============================================ */
.philosophie {
    background: var(--white);
    padding: 8rem 4rem;
}

.philosophie-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.philosophie-image {
    position: relative;
}

.philosophie-image-wrapper {
    position: relative;
    border-radius: 0 80px 0 80px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.philosophie-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px solid var(--border);
    border-radius: 0 100px 0 100px;
    z-index: -1;
    animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.02); opacity: 1; }
}

.philosophie-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 130px;
    height: 130px;
    background: var(--cognac);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.5;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.philosophie-content {
    padding-right: 2rem;
}

.section-label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cognac);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--cognac);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.section-title em {
    font-style: italic;
    color: var(--cognac);
}

.section-text {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.feature-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--cognac);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
   TRAINING
   ============================================ */
.training {
    padding: 6rem 4rem 10rem;
    background: var(--cream);
}

.training-header {
    max-width: 1400px;
    margin: 0 auto 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.training-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
}

.training-count {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.training-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.training-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 0 40px 0 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.training-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cognac), var(--border));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.training-card:hover::before {
    transform: scaleX(1);
}

.training-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.card-number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--border);
    line-height: 1;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.training-card:hover .card-number {
    color: var(--cognac);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   QUOTE
   ============================================ */
.quote-section {
    background: var(--text);
    padding: 8rem 4rem;
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '"';
    position: absolute;
    top: -50px;
    left: 10%;
    font-family: 'Playfair Display', serif;
    font-size: 40rem;
    color: rgba(255,255,255,0.03);
    line-height: 1;
}

.quote-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.quote-author {
    color: var(--cognac);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ============================================
   INSTAGRAM
   ============================================ */
.instagram {
    padding: 8rem 4rem;
    background: var(--cream);
}

.instagram-header {
    max-width: 1400px;
    margin: 0 auto 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.instagram-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cognac);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: gap 0.3s ease;
}

.instagram-link:hover {
    gap: 1rem;
}

.instagram-feed-container {
    max-width: 1400px;
    margin: 0 auto;
}

.instagram-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.instagram-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0 30px 0 30px;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cognac);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.instagram-item:hover::after {
    opacity: 0.2;
}

.instagram-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 2;
    color: var(--white);
    transition: transform 0.4s ease;
}

.instagram-item:hover .instagram-icon {
    transform: translate(-50%, -50%) scale(1);
}

/* ============================================
   KONTAKT
   ============================================ */
.kontakt {
    padding: 10rem 4rem;
    background: var(--white);
}

.kontakt-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.kontakt-single {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.kontakt-single .section-label {
    justify-content: center;
}

.kontakt-single .section-label::before {
    display: none;
}

.kontakt-single .kontakt-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.kontakt-single .info-item {
    text-align: center;
}

.kontakt-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.kontakt-content h2 em {
    font-style: italic;
    color: var(--cognac);
}

.kontakt-content > p {
    color: var(--text-light);
    margin-bottom: 3rem;
}

.kontakt-info {
    display: grid;
    gap: 2rem;
}

.info-item label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.info-item a,
.info-item p {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--cognac);
}

/* Form */
.kontakt-form {
    background: var(--cream);
    padding: 3rem;
    border-radius: 0 60px 0 60px;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cognac);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--cognac);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

.checkbox-group a {
    color: var(--cognac);
}

.btn-submit {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--cognac);
    color: var(--white);
    border: none;
    font-family: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: var(--cognac-dark);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--text);
    padding: 3rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--white);
    letter-spacing: 0.15em;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

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

.footer-copy {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

/* ============================================
   UNTERSEITEN (Impressum, Datenschutz, Danke)
   ============================================ */
.page-header {
    padding: 10rem 4rem 4rem;
    background: var(--cream);
    text-align: center;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
}

.page-content {
    padding: 4rem;
    background: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

.page-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 3rem 0 1rem;
    color: var(--text);
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.page-content ul {
    color: var(--text-light);
    margin: 1rem 0 1rem 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: var(--cognac);
}

/* Danke Seite */
.danke-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem;
    background: var(--cream);
}

.danke-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.danke-section h1 em {
    font-style: italic;
    color: var(--cognac);
}

.danke-section p {
    color: var(--text-light);
    max-width: 500px;
    margin-bottom: 2rem;
}

.danke-section .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--cognac);
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.danke-section .btn-back:hover {
    background: var(--cognac-dark);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    nav { padding: 1.5rem 2rem; }
    .nav-links { display: none; }
    .menu-btn { display: flex; }
    
    .hero { padding: 6rem 2rem; }
    .hero-image-container {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        height: 60vh;
        margin-top: 3rem;
    }
    
    .wave-divider, .wave-divider-2 { height: 80px; }
    
    .philosophie { padding: 4rem 2rem; }
    .philosophie-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .philosophie-image { order: -1; }
    .philosophie-content { padding-right: 0; }
    
    .training { padding: 4rem 2rem; }
    .training-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .training-grid { grid-template-columns: 1fr; }
    
    .quote-section { padding: 4rem 2rem; }
    
    .instagram { padding: 4rem 2rem; }
    .instagram-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .instagram-grid { grid-template-columns: repeat(2, 1fr); }
    
    .kontakt { padding: 4rem 2rem; }
    .kontakt-grid { grid-template-columns: 1fr; gap: 3rem; }
    .kontakt-single .kontakt-info { flex-direction: column; gap: 2rem; }
    
    footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 2rem;
    }
    
    .page-header { padding: 8rem 2rem 3rem; }
    .page-content { padding: 2rem; margin: 0 1rem; }
}

@media (max-width: 480px) {
    .instagram-grid { grid-template-columns: 1fr; }
    .floating-badge { width: 100px; height: 100px; font-size: 0.6rem; }
}
