/* ====================================
   NEURO Connection V2 — Modern Edition
   Palette: Warm browns, beige, taupe
   ==================================== */

:root {
    /* Brand colors from actual Wix site */
    --gold: #A86A2C;
    --taupe: #C1AA9F;
    --taupe-light: #EFE9E6;
    --taupe-pale: #F7F4F3;
    --brown: #8F6D5C;
    --brown-dark: #47362E;
    --silver: #DADADA;

    /* Neutrals */
    --black: #1A1614;
    --charcoal: #282828;
    --gray: #808080;
    --gray-light: #6B6B6B;
    --white: #FFFFFF;
    --off-white: #FDFCFB;

    /* System */
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'DM Serif Display', Georgia, serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 999px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; font-size: 16px; }
body {
    font-family: var(--font);
    color: var(--charcoal);
    background: var(--off-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* === LAYOUT === */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* === TYPO === */
.label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.label--center { display: block; text-align: center; }
.title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 400;
    color: var(--brown-dark);
    line-height: 1.15;
    margin-bottom: 28px;
}
.title em { color: var(--gold); font-style: normal; }
.title--center { text-align: center; }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--gold);
    background: var(--gold);
    color: var(--white);
    cursor: pointer;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--brown-dark);
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out);
    z-index: 0;
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { border-color: var(--brown-dark); color: var(--white); }
.btn > * { position: relative; z-index: 1; }

.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover { border-color: var(--white); }
.btn--ghost::before { background: rgba(255,255,255,0.15); }

.btn--outline-dark {
    background: transparent;
    color: var(--brown-dark);
    border-color: var(--brown);
}
.btn--outline-dark:hover { color: var(--white); border-color: var(--brown-dark); }

.btn--full { width: 100%; }

/* === HEADER === */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: all 0.4s var(--ease);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px clamp(20px, 4vw, 40px);
    transition: padding 0.4s var(--ease);
}
.header.is-scrolled {
    background: rgba(253, 252, 251, 0.92);
    backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid rgba(193, 170, 159, 0.15);
}
.header.is-scrolled .nav { padding-top: 12px; padding-bottom: 12px; }
.nav__logo-img { height: 64px; width: auto; transition: all 0.4s var(--ease); }
.header.is-scrolled .nav__logo-img { height: 48px; }

.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__link {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease);
    letter-spacing: 0.3px;
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,0.1); }
.header.is-scrolled .nav__link { color: var(--gray-light); }
.header.is-scrolled .nav__link:hover { color: var(--brown-dark); background: var(--taupe-pale); }
.nav__cta {
    background: var(--gold) !important;
    color: var(--white) !important;
    margin-left: 8px;
    padding: 10px 24px;
}
.nav__cta:hover { background: var(--brown-dark) !important; }

/* Mobile toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    justify-content: center;
}
.nav__toggle span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.4s var(--ease-out);
    transform-origin: center;
}
.header.is-scrolled .nav__toggle span { background: var(--charcoal); }
.nav__toggle.is-active span:first-child { transform: rotate(45deg) translate(3px, 3px); }
.nav__toggle.is-active span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

/* === HERO === */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    overflow: hidden;
    background: var(--brown-dark);
}
.hero__bg {
    position: absolute;
    inset: 0;
}
.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: saturate(0.6);
}
.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.hero__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--taupe);
    margin-bottom: 20px;
    display: block;
}
.hero__title {
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 24px;
}
.hero__title-line {
    display: block;
    font-size: clamp(48px, 9vw, 96px);
    color: var(--white);
}
.hero__title-line--accent {
    color: var(--taupe);
    font-size: clamp(42px, 7.5vw, 80px);
}
.hero__desc {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 36px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__badge {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    color: var(--white);
    flex-shrink: 0;
}
.hero__badge-number {
    display: block;
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1;
    color: var(--gold);
}
.hero__badge-text {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 6px;
    display: block;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--taupe), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* === ANSATZ === */
.ansatz { padding: 120px 0; }
.ansatz__header { margin-bottom: 60px; }
.ansatz__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
.ansatz__main p {
    color: var(--gray-light);
    margin-bottom: 18px;
    font-size: 15px;
}
.ansatz__main strong { color: var(--brown-dark); }
.ansatz__lead {
    font-size: 18px !important;
    color: var(--brown) !important;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 24px !important;
}
.ansatz__features { display: flex; flex-direction: column; gap: 0; }

/* Features with fade-in */
.feature {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--silver);
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s var(--ease-out);
}
.feature.is-visible { opacity: 1; transform: translateY(0); }
.feature:last-child { border-bottom: none; }
.feature__num {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--gold);
    opacity: 0.6;
    flex-shrink: 0;
    width: 48px;
}
.feature h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 4px;
}
.feature p { font-size: 14px; color: var(--gray); }

/* === THERAPIE === */
.therapie {
    padding: 120px 0;
    background: var(--brown-dark);
    color: var(--white);
}
.therapie .label { color: var(--taupe); }
.therapie .title { color: var(--white); }
.therapie .title em { color: var(--taupe); }
.therapie__header { margin-bottom: 56px; }
.therapie__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.tcard {
    padding: 36px 28px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.5s var(--ease-out);
    opacity: 0;
    transform: translateY(20px);
}
.tcard.is-visible { opacity: 1; transform: translateY(0); }
.tcard:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(193, 170, 159, 0.3);
    transform: translateY(-4px);
}
.tcard__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(168, 106, 44, 0.15);
    margin-bottom: 20px;
}
.tcard__icon svg { width: 22px; height: 22px; stroke: var(--gold); }
.tcard h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--taupe-light);
}
.tcard p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* === PATHOLOGIES MARQUEE === */
.pathologies { padding: 80px 0; overflow: hidden; }
.pathologies .wrap { margin-bottom: 48px; }
.pathologies__track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.pathologies__inner {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.ptag {
    flex-shrink: 0;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    background: var(--taupe-pale);
    color: var(--brown);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(193, 170, 159, 0.25);
    white-space: nowrap;
    transition: all 0.3s var(--ease);
}
.ptag:hover { background: var(--taupe-light); color: var(--brown-dark); }
@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* === ABOUT === */
.about { padding: 120px 0; background: var(--taupe-pale); }
.about__layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 72px;
    align-items: start;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}
.about__layout.is-visible { opacity: 1; transform: translateY(0); }

.about__photo { position: relative; }
.about__photo img {
    border-radius: var(--radius);
    width: 100%;
    aspect-ratio: 4/4.5;
    object-fit: cover;
    position: relative;
    z-index: 1;
}
.about__photo-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 60%;
    height: 60%;
    border-radius: var(--radius);
    background: var(--taupe);
    opacity: 0.2;
    z-index: 0;
}
.about__lead {
    font-size: 18px;
    color: var(--brown);
    font-weight: 500;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--silver);
}
.about__timeline { margin-bottom: 32px; }
.tl-item {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-left: 2px solid var(--taupe);
    padding-left: 24px;
    position: relative;
    margin-left: 24px;
}
.tl-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 22px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}
.tl-item__year {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--gold);
    flex-shrink: 0;
    width: 50px;
}
.tl-item p { font-size: 14px; color: var(--gray-light); line-height: 1.6; }

.about__badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.about__badge {
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--brown);
    border: 1px solid var(--silver);
}

/* === TEAM === */
.team { padding: 120px 0; }
.team__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 56px;
}
.team__card {
    text-align: center;
    padding: 40px 20px 32px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid rgba(218,218,218,0.6);
    transition: all 0.5s var(--ease-out);
    opacity: 0;
    transform: translateY(20px);
}
.team__card.is-visible { opacity: 1; transform: translateY(0); }
.team__card:hover {
    border-color: var(--taupe);
    box-shadow: 0 16px 48px rgba(143, 109, 92, 0.08);
    transform: translateY(-6px);
}
.team__initials {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brown), var(--gold));
    color: var(--white);
    font-family: var(--font-display);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.team__card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--brown-dark);
    margin-bottom: 6px;
}
.team__role {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.5;
}
.team__langs {
    display: flex;
    justify-content: center;
    gap: 6px;
}
.team__langs span {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--taupe-pale);
    color: var(--brown);
    letter-spacing: 0.5px;
}

/* === KOSTEN === */
.kosten { padding: 120px 0; background: var(--off-white); }
.kosten__layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: start;
}
.kosten__note {
    margin-top: 24px;
    font-size: 14px;
    color: var(--gray);
    font-style: italic;
    line-height: 1.7;
}
.kosten__right { display: flex; flex-direction: column; gap: 20px; }
.kosten__card {
    padding: 36px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid rgba(218,218,218,0.5);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-out);
}
.kosten__card.is-visible { opacity: 1; transform: translateY(0); }
.kosten__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold), var(--taupe));
}
.kosten__card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(168, 106, 44, 0.08);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
}
.kosten__card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--brown-dark);
    margin-bottom: 10px;
}
.kosten__card p { font-size: 14px; color: var(--gray-light); line-height: 1.7; }

/* === KONTAKT === */
.kontakt { padding: 120px 0; background: var(--taupe-pale); }
.kontakt__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}
.kontakt__layout.is-visible { opacity: 1; transform: translateY(0); }

.kontakt__details { margin-top: 32px; }
.kontakt__row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--gray-light);
}
.kontakt__row svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; stroke: var(--gold); }
.kontakt__row strong { color: var(--brown-dark); }
.kontakt__row a { color: var(--brown); transition: color 0.3s; }
.kontakt__row a:hover { color: var(--gold); }

/* Form */
.form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(218,218,218,0.5);
}
.form__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field {
    position: relative;
    margin-bottom: 20px;
}
.form__field input,
.form__field textarea {
    width: 100%;
    padding: 16px 0 8px;
    font-family: var(--font);
    font-size: 15px;
    color: var(--charcoal);
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--silver);
    outline: none;
    transition: border-color 0.3s;
}
.form__field textarea { resize: vertical; min-height: 80px; }
.form__field label {
    position: absolute;
    top: 16px;
    left: 0;
    font-size: 14px;
    color: var(--gray);
    pointer-events: none;
    transition: all 0.25s var(--ease);
}
.form__field input:focus,
.form__field textarea:focus { border-color: var(--gold); }
.form__field input:focus + label,
.form__field textarea:focus + label,
.form__field input:not(:placeholder-shown) + label,
.form__field textarea:not(:placeholder-shown) + label {
    top: -2px;
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 0.5px;
}

/* === FOOTER === */
.footer {
    background: var(--brown-dark);
    color: rgba(255,255,255,0.6);
    padding: 56px 0 0;
}
.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
    gap: 32px;
}
.footer__logo { height: 60px; width: auto; margin-bottom: 12px; }
.footer__brand p { font-size: 13px; line-height: 1.7; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__nav a {
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s;
}
.footer__nav a:hover { color: var(--white); }
.footer__fsp img { height: 32px; opacity: 0.6; transition: opacity 0.3s; }
.footer__fsp img:hover { opacity: 1; }
.footer__bottom {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 12px;
    opacity: 0.5;
}
.footer__bottom a:hover { color: var(--white); }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
    .ansatz__grid, .about__layout, .kosten__layout { grid-template-columns: 1fr; }
    .therapie__cards { grid-template-columns: repeat(2, 1fr); }
    .team__grid { grid-template-columns: repeat(2, 1fr); }
    .kontakt__layout { grid-template-columns: 1fr; }
    .about__photo img { max-width: 400px; }
}

@media (max-width: 768px) {
    .nav__toggle { display: flex; }
    .nav__menu {
        position: fixed;
        top: 0; right: 0;
        width: 300px;
        height: 100dvh;
        flex-direction: column;
        padding: 100px 32px 40px;
        background: var(--brown-dark);
        transform: translateX(100%);
        transition: transform 0.5s var(--ease-out);
        gap: 4px;
    }
    .nav__menu.is-open { transform: translateX(0); }
    .nav__link {
        color: rgba(255,255,255,0.7) !important;
        padding: 14px 20px;
        width: 100%;
        font-size: 15px;
    }
    .nav__link:hover { color: var(--white) !important; background: rgba(255,255,255,0.06) !important; }
    .nav__cta { margin-left: 0; margin-top: 12px; text-align: center; justify-content: center; }

    .nav__logo-img { height: 56px; }
    .header.is-scrolled .nav__logo-img { height: 44px; }

    .hero { min-height: 100svh; padding-bottom: 100px; }
    .hero__content { flex-direction: column; gap: 40px; align-items: flex-start; }
    .hero__badge { align-self: flex-start; }
    .hero__scroll { display: none; }

    .ansatz, .therapie, .about, .team, .kosten, .kontakt { padding: 80px 0; }
    .therapie__cards { grid-template-columns: 1fr; }
    .team__grid { grid-template-columns: 1fr 1fr; }
    .form { padding: 28px 24px; }
    .form__duo { grid-template-columns: 1fr; }

    .footer__top { flex-direction: column; align-items: flex-start; }
    .footer__bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
    .team__grid { grid-template-columns: 1fr; }
    .hero__title-line { font-size: 42px; }
    .hero__title-line--accent { font-size: 36px; }
}
