/* ===================================
   Elke Magold – Custom Styles
   =================================== */


/* --- Local Fonts (DSGVO-konform) --- */

/* Cormorant Garamond – Normal */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url(fonts/cormorant-garamond-normal-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url(fonts/cormorant-garamond-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cormorant Garamond – Italic */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 300 400;
    font-display: swap;
    src: url(fonts/cormorant-garamond-italic-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 300 400;
    font-display: swap;
    src: url(fonts/cormorant-garamond-italic.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Open Sans – Normal */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url(fonts/open-sans-normal-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url(fonts/open-sans-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
    --color-primary: #3C7590;
    --color-primary-light: #5E99B5;
    --color-accent: #FF955C;
    --color-brick: #C9696B;
    --color-surface: #F2EBDF;
    --color-surface-alt: #EDE6D8;
    --color-body: #122C3F;
    --color-body-light: #2B4A5F;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    /* scroll-behavior handled by JS with custom easing */
}

body {
    overflow-x: hidden;
}

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


/* --- Navigation --- */
#main-nav {
    background: var(--color-brick);
}

#main-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 22px;
    transform: translateY(100%);
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 28' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 V4 C1280,22 1120,6 960,20 C800,28 640,4 480,18 C320,28 160,6 0,16 Z' fill='%23C9696B'/%3E%3C/svg%3E") no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

#main-nav.scrolled {
    background: var(--color-brick);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: white;
    transition: width 0.3s var(--ease-out-expo), left 0.3s var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.mobile-nav-link {
    font-weight: 500;
}


/* --- Hamburger → X --- */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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


/* --- Hero --- */
.hero-blob {
    border-radius: 52% 48% 65% 35% / 48% 62% 38% 52%;
    object-fit: cover;
}

.hero-deco {
    border-radius: 52% 48% 65% 35% / 48% 62% 38% 52%;
}


/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background: var(--color-brick);
    color: white;
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(201, 105, 107, 0.25);
    background: #D4888A;
}

.btn-cta {
    display: inline-block;
    background: white;
    color: var(--color-primary);
    padding: 18px 42px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: var(--color-brick);
    color: white;
}


/* --- Cards --- */
.card-organic-1 { border-radius: 42% 58% 55% 45% / 48% 52% 48% 52%; }
.card-organic-2 { border-radius: 55% 45% 48% 52% / 45% 55% 45% 55%; }
.card-organic-3 { border-radius: 48% 52% 42% 58% / 52% 48% 55% 45%; }
.card-organic-4 { border-radius: 52% 48% 58% 42% / 55% 45% 52% 48%; }

.feature-card,
.therapy-card,
.coaching-card,
.workshop-card {
    transition: box-shadow 0.6s ease-in-out, transform 0.6s ease-in-out;
}


/* --- About Portrait --- */
.about-portrait img {
    transition: transform 0.4s ease;
}

.about-portrait:hover img {
    transform: scale(1.02);
}


/* --- Footer Logo --- */
.footer-logo {
    filter: brightness(0) invert(1);
}


/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}


/* ===================================
   Visual Polish – Wave Dividers
   =================================== */

.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 40px;
}

@media (min-width: 768px) {
    .wave-divider svg {
        height: 55px;
    }
}

.wave-divider-dramatic svg {
    height: 55px;
}

@media (min-width: 768px) {
    .wave-divider-dramatic svg {
        height: 80px;
    }
}

.wave-divider-subtle svg {
    height: 35px;
}

@media (min-width: 768px) {
    .wave-divider-subtle svg {
        height: 50px;
    }
}


/* ===================================
   Visual Polish – Decorative Elements
   =================================== */

.deco-svg {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 639px) {
    .deco-svg {
        display: none;
    }
}

@keyframes deco-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes deco-float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1.5deg); }
}

.deco-float {
    animation: deco-float 7s ease-in-out infinite;
}

.deco-float-slow {
    animation: deco-float-slow 9s ease-in-out infinite;
}


/* ===================================
   Visual Polish – Scroll Animations
   (Progressive Enhancement)
   =================================== */

/* Content is ALWAYS visible by default.
   Animations only activate when JS adds .has-anim to <html> */

html.has-anim .anim-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

html.has-anim .anim-fade-up.is-visible {
    opacity: 1;
    transform: none;
}

html.has-anim .anim-fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

html.has-anim .anim-fade-left.is-visible {
    opacity: 1;
    transform: none;
}

html.has-anim .anim-fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

html.has-anim .anim-fade-right.is-visible {
    opacity: 1;
    transform: none;
}

html.has-anim .anim-scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s var(--ease-out-expo),
                transform 0.6s var(--ease-out-expo);
}

html.has-anim .anim-scale-in.is-visible {
    opacity: 1;
    transform: none;
}

/* Stagger: children appear sequentially */
html.has-anim .anim-stagger > * {
    opacity: 0;
    transform: translateY(20px);
}

html.has-anim .anim-stagger > *:nth-child(1) { transition: opacity 0.6s var(--ease-out-expo) 0s, transform 0.6s var(--ease-out-expo) 0s; }
html.has-anim .anim-stagger > *:nth-child(2) { transition: opacity 0.6s var(--ease-out-expo) 0.1s, transform 0.6s var(--ease-out-expo) 0.1s; }
html.has-anim .anim-stagger > *:nth-child(3) { transition: opacity 0.6s var(--ease-out-expo) 0.2s, transform 0.6s var(--ease-out-expo) 0.2s; }
html.has-anim .anim-stagger > *:nth-child(4) { transition: opacity 0.6s var(--ease-out-expo) 0.3s, transform 0.6s var(--ease-out-expo) 0.3s; }
html.has-anim .anim-stagger > *:nth-child(5) { transition: opacity 0.6s var(--ease-out-expo) 0.4s, transform 0.6s var(--ease-out-expo) 0.4s; }
html.has-anim .anim-stagger > *:nth-child(6) { transition: opacity 0.6s var(--ease-out-expo) 0.5s, transform 0.6s var(--ease-out-expo) 0.5s; }

html.has-anim .anim-stagger.is-visible > * {
    opacity: 1;
    transform: none;
}

/* Hero entrance (page load animation, not scroll-triggered) */
html.has-anim .hero-entrance {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

html.has-anim .hero-entrance.is-visible {
    opacity: 1;
    transform: none;
}


/* ===================================
   Accessibility – Reduced Motion
   =================================== */

@media (prefers-reduced-motion: reduce) {
    html.has-anim .anim-fade-up,
    html.has-anim .anim-fade-left,
    html.has-anim .anim-fade-right,
    html.has-anim .anim-scale-in,
    html.has-anim .anim-stagger > *,
    html.has-anim .hero-entrance {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .deco-float,
    .deco-float-slow {
        animation: none !important;
    }
}
