:root {
    --creme: #F7F6ED;
    --petrol: #7099A7;
    --goldgelb: #ECC05C;
    --eisblau: #BBD3DA;
    --sandbraun: #B69D68;
    --tannengruen: #2D5157;
    --petrol-light: #e8f3f5;
    --gold-light: #fdf5e0;
    --text-dark: #2D3A3C;
    --text-body: #4d6062;
}

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

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-body);
    background: var(--creme);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-weight: 500;
}

h1, h2, h3, h4 {
    font-family: 'Baloo 2', cursive;
    color: var(--tannengruen);
    font-weight: 700;
    line-height: 1.2;
}

/* ════════════════ BLOB SHAPES ════════════════ */
.sf-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* ════════════════ NAVBAR ════════════════ */
.sf-navbar {
    background: rgba(247,246,237,.92);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(81,156,171,.08);
    transition: box-shadow .3s;
}
.sf-navbar.scrolled { box-shadow: 0 4px 32px rgba(45,81,87,.08); }
.sf-navbar .uk-navbar-container { background: transparent !important; }
.sf-logo-wrap {
    display: flex; align-items: center; gap: 10px;
}
.sf-logo { height: 40px !important; margin-right: 16px;}
.sf-logo-schrift { height: 48px !important;}
.sf-logo-text {
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem; font-weight: 700;
    color: var(--tannengruen);
    line-height: 1.1;
}
.sf-logo-text small {
    display: block; font-family: 'Quicksand', sans-serif;
    font-size: .65rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--petrol); margin-top: -2px;
}
.sf-nav-link {
    font-family: 'Quicksand', sans-serif !important;
    font-weight: 700 !important;
    font-size: .82rem !important;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--tannengruen) !important;
    transition: color .25s;
}
.sf-nav-link:hover { color: var(--petrol) !important; }
.sf-nav-cta {
    background: var(--goldgelb) !important;
    color: var(--tannengruen) !important;
    border-radius: 100px;
    padding: 9px 24px !important;
    font-weight: 800 !important;
    transition: all .3s;
    min-height: 40px !important;
    margin-top: 20px;
}
.sf-nav-cta:hover { background: var(--petrol) !important; color: #fff !important; }

/* ════════════════ HERO ════════════════ */
.sf-hero {
    background: linear-gradient(160deg, var(--eisblau) 0%, var(--creme) 50%, var(--gold-light) 100%);
    position: relative;
    overflow: hidden;
    padding: 180px 0 0;
}
.sf-hero .sf-blob-1 {
    width: 500px; height: 500px;
    background: rgba(81,156,171,.1);
    top: -120px; right: -100px;
}
.sf-hero .sf-blob-2 {
    width: 300px; height: 300px;
    background: rgba(236,192,92,.12);
    bottom: -60px; left: -80px;
}
.sf-hero-content { position: relative; z-index: 2; }
.sf-hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    color: var(--tannengruen);
    line-height: 1.15;
    margin-bottom: 1rem;
}
.sf-hero h1 .sf-highlight {
    color: var(--petrol);
    position: relative;
}
.sf-hero h1 .sf-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0; right: 0;
    height: 8px;
    background: var(--goldgelb);
    opacity: .4;
    border-radius: 4px;
    z-index: -1;
}
.sf-hero-text {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.85;
    max-width: 500px;
    margin-bottom: 2rem;
}
.sf-hero-img-wrap {
    position: relative; z-index: 2;
}
.sf-hero-img-main {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(45,81,87,.12);
}
.sf-hero-img-main img {
    width: 100%; display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.sf-hero-img-float {
    position: absolute;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(45,81,87,.15);
    
    z-index: 3;
}
.sf-hero-img-float img {
    width: 100%; height: 100%; object-fit: cover;
}
.sf-hero-float-1 {
    width: 180px; height: 140px;
    bottom: -24px; left: -30px;
}
.sf-hero-float-2 {
    width: 270px;
    height: 190px;
    top: -45px;
    right: -20px;
}

/* ════════════════ BUTTONS ════════════════ */
.sf-btn {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 100px;
    border: none; cursor: pointer;
    transition: all .3s ease;
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.sf-btn-gold {
    background: var(--goldgelb); color: var(--tannengruen);
    padding: 15px 36px;
    box-shadow: 0 4px 16px rgba(236,192,92,.35);
}
.sf-btn-gold:hover {
    background: var(--sandbraun); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(182,157,104,.35);
}
.sf-btn-petrol {
    background: var(--petrol); color: #fff;
    padding: 15px 36px;
    box-shadow: 0 4px 16px rgba(81,156,171,.3);
}
.sf-btn-petrol:hover {
    background: var(--tannengruen); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(45,81,87,.3);
}
.sf-btn-outline-dark {
    background: transparent;
    color: var(--tannengruen);
    border: 2px solid var(--petrol);
    padding: 13px 30px;
}
.sf-btn-outline-dark:hover {
    background: var(--petrol); color: #fff;
}
.sf-arrow { width: 18px; height: 18px; }

/* ════════════════ SECTION SYSTEM ════════════════ */
.sf-section { padding: 100px 0; position: relative; }
.sf-section-white { background: #fff; }
.sf-section-dark { background: var(--petrol); }
.sf-section-eisblau { background: var(--eisblau); }
.sf-section-petrol-light { background: var(--petrol-light); }

.sf-section-header { text-align: center; margin-bottom: 56px; }
.sf-section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .6rem; }
.sf-section-header p {
    font-size: 1.05rem; color: var(--text-body);
    max-width: 560px; margin: 0 auto; line-height: 1.7;
}
.sf-label {
    display: inline-block;
    font-family: 'Quicksand', sans-serif;
    font-weight: 800; font-size: .72rem;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--petrol);
    background: rgba(81,156,171,.1);
    padding: 5px 16px;
    border-radius: 100px;
    margin-bottom: .8rem;
}
.sf-squiggle {
    display: block; margin: 1rem auto 0;
    width: 80px; height: 12px;
}

/* ════════════════ WAVE DIVIDERS ════════════════ */
.sf-wave { display: block; width: 100%; line-height: 0; }
.sf-wave svg { width: 100%; height: auto; display: block; }

/* ════════════════ ÜBER UNS ════════════════ */
.sf-about-img-stack { position: relative; }
.sf-about-img-big {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(45,81,87,.1);
}
.sf-about-img-big img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; }
.sf-about-img-small {
    position: absolute;
    bottom: -28px; right: -20px;
    width: 55%;
    border-radius: 24px;
    overflow: hidden;
    border: 5px solid var(--creme);
    box-shadow: 0 12px 36px rgba(45,81,87,.12);
}
.sf-about-img-small img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }

.sf-check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.sf-check-list li {
    padding: 8px 0 8px 36px;
    position: relative;
    font-weight: 600;
    line-height: 1.6;
    font-size: .95rem;
}
.sf-check-list li::before {
    content: '✓';
    position: absolute; left: 0; top: 8px;
    width: 24px; height: 24px;
    background: var(--goldgelb);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem; font-weight: 800;
    color: var(--tannengruen);
    text-align: center;
    line-height: 24px;
}

/* ════════════════ LEISTUNGEN CARDS ════════════════ */
.sf-service-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px 26px;
    transition: all .35s ease;
    height: 100%;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.sf-service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
}
.sf-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(45,81,87,.08);
    border-color: var(--eisblau);
}
.sf-card-accent-1::before { background: var(--petrol); }
.sf-card-accent-2::before { background: var(--goldgelb); }
.sf-card-accent-3::before { background: var(--tannengruen); }
.sf-card-accent-4::before { background: var(--eisblau); }
.sf-card-accent-5::before { background: var(--sandbraun); }
.sf-card-accent-6::before { background: var(--petrol); }

.sf-service-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.sf-icon-petrol { background: var(--petrol-light); color: var(--petrol); }
.sf-icon-gold { background: var(--gold-light); color: var(--sandbraun); }
.sf-icon-green { background: rgba(45,81,87,.08); color: var(--tannengruen); }
.sf-icon-blue { background: rgba(187,211,218,.4); color: var(--petrol); }
.sf-icon-sand { background: rgba(182,157,104,.12); color: var(--sandbraun); }

.sf-service-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.sf-service-card p { font-size: .86rem; line-height: 1.7; }

/* ════════════════ KINDERTHERAPIE MOSAIC ════════════════ */
.sf-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
}
.sf-mosaic-item {
    border-radius: 24px;
    overflow: hidden;
}
.sf-mosaic-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.sf-mosaic-item:hover img { transform: scale(1.04); }
.sf-mosaic-item.sf-big {
    grid-column: span 2;
}
.sf-mosaic-item.sf-big img { aspect-ratio: 16/7; }
.sf-mosaic-item:not(.sf-big) img { aspect-ratio: 1/1; }

.sf-therapy-detail {
    background: #fff;
    border-radius: 24px;
    padding: 28px 24px;
    border-left: 4px solid var(--petrol);
    margin-bottom: 16px;
}
.sf-therapy-detail h4 {
    font-size: 1.05rem;
    margin-bottom: .4rem;
}
.sf-therapy-detail p { font-size: .88rem; line-height: 1.75; }

/* ════════════════ ERWACHSENE ════════════════ */
.sf-erw-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px 26px;
    height: 100%;
    text-align: center;
    border: 2px solid rgba(81,156,171,.06);
    transition: all .3s;
}
.sf-erw-card:hover {
    border-color: var(--eisblau);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(45,81,87,.06);
}
.sf-erw-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.sf-erw-card p { font-size: .86rem; line-height: 1.7; }

/* ════════════════ FULL-WIDTH IMAGE STRIP ════════════════ */
.sf-img-strip-wrapper {
    overflow: hidden;
    padding: 10px 0;
}

.sf-img-strip {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: sf-marquee 30s linear infinite;
}

.sf-img-strip img {
    height: 240px;
    border-radius: 20px;
    object-fit: cover;
    flex-shrink: 0;
}

@keyframes sf-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ════════════════ FORTBILDUNGEN ════════════════ */
.sf-fort-pill {
    display: inline-block;
    background: rgba(247,246,237,.1);
    border: 1px solid rgba(247,246,237,.15);
    border-radius: 100px;
    padding: 10px 22px;
    color: rgba(247,246,237,.85);
    font-size: .85rem; font-weight: 600;
    margin: 4px;
    transition: all .3s;
}
.sf-fort-pill:hover {
    background: rgba(236,192,92,.15);
    border-color: rgba(236,192,92,.3);
    color: var(--goldgelb);
}

/* ════════════════ FAQ ════════════════ */
.sf-faq-card {
    background: #fff;
    border-radius: 24px;
    padding: 8px 0;
    overflow: hidden;
}
.sf-faq .uk-accordion > li {
    padding: 0 32px;
    border-bottom: 1px solid rgba(81,156,171,.08);
}
.sf-faq .uk-accordion > li:last-child { border-bottom: none; }
.sf-faq .uk-accordion-title {
    font-family: 'Baloo 2', cursive;
    font-size: 1.05rem;
    color: var(--tannengruen);
    padding: 18px 0;
    font-weight: 600;
}
.sf-faq .uk-accordion-title::before {
    background-image: none !important;
    content: '+';
    font-family: 'Quicksand', sans-serif;
    font-size: 1.3rem; font-weight: 700;
    color: var(--petrol);
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--petrol-light);
    float: right; margin-left: 12px;
}
.sf-faq .uk-open .uk-accordion-title::before { content: '−'; }
.sf-faq .uk-accordion-content {
    padding: 0 0 20px;
    font-size: .92rem; line-height: 1.8;
}
.sf-faq .uk-accordion-content ul { list-style: none; padding: 0; margin: .5rem 0; }
.sf-faq .uk-accordion-content ul li {
    padding: 4px 0 4px 24px;
    position: relative;
}
.sf-faq .uk-accordion-content ul li::before {
    content: '→';
    position: absolute; left: 0;
    color: var(--goldgelb); font-weight: 700;
}

/* ════════════════ KONTAKT ════════════════ */
.sf-contact-card {
    background: #fff;
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 8px 44px rgba(45,81,87,.06);
}
.sf-contact-item {
    display: flex; gap: 16px;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.sf-contact-icon {
    width: 50px; height: 50px;
    background: var(--petrol-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--petrol);
}
.sf-contact-item h4 {
    font-size: .9rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 800;
    color: var(--tannengruen);
    margin-bottom: 2px;
}
.sf-contact-item p { font-size: .88rem; line-height: 1.5; }

/* ════════════════ FOOTER ════════════════ */
.sf-footer {
    background: var(--petrol);
    padding: 48px 0 28px;
}
.sf-footer-logo { height: 110px !important; padding: 4px; margin-bottom: .8rem; }
.sf-footer p { color: rgba(247,246,237,.45); font-size: .82rem; }
.sf-footer a { color: rgba(247,246,237,.6); text-decoration: none; transition: color .25s; }
.sf-footer a:hover { color: var(--goldgelb); }

/* ════════════════ MOBILE NAV ════════════════ */
#sf-mobile-nav .uk-offcanvas-bar {
    background: var(--tannengruen);
    padding: 40px 28px;
}
#sf-mobile-nav .uk-nav > li > a {
    color: var(--creme);
    font-family: 'Baloo 2', cursive;
    font-size: 1.3rem;
    padding: 10px 0;
}
#sf-mobile-nav .uk-nav > li > a:hover { color: var(--goldgelb); }
#sf-mobile-nav .uk-offcanvas-close { color: var(--creme); }

/* ════════════════ RESPONSIVE ════════════════ */
@media (max-width: 959px) {
    .sf-section { padding: 72px 0; }
    .sf-contact-card { padding: 28px 22px; }
    .sf-hero-float-1, .sf-hero-float-2 { display: none; }
    .sf-about-img-small { right: 0; bottom: -20px; width: 50%; }
    .sf-img-strip img { height: 180px; }
}
@media (max-width: 639px) {
    .sf-hero { padding: 40px 0 0; }
    .sf-section { padding: 52px 0; }
    .sf-section-header { margin-bottom: 36px; }
    .sf-mosaic { grid-template-columns: 1fr 1fr; }
    .sf-mosaic-item.sf-big { grid-column: span 2; }
    .sf-img-strip img { height: 140px; }
    .sf-fort-pill { font-size: .78rem; padding: 8px 16px; }
}
.uk-navbar-toggle { color: var(--tannengruen) !important; }

/* ════════════════ WORDPRESS OVERRIDES ════════════════ */
/* Reset WP admin bar spacing */
html { margin-top: 0 !important; }
#wpadminbar ~ .sf-navbar { top: 32px; }
@media (max-width: 782px) {
    #wpadminbar ~ .sf-navbar { top: 46px; }
}

/* Ensure WP doesn't override our styles */
body.page-template-template_startseite {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-body);
    background: var(--creme);
    font-weight: 500;
    margin: 0;
    padding: 0;
}
body.page-template-template_startseite h1,
body.page-template-template_startseite h2,
body.page-template-template_startseite h3,
body.page-template-template_startseite h4 {
    font-family: 'Baloo 2', cursive;
    color: var(--tannengruen);
    font-weight: 700;
    line-height: 1.2;
}

/* WP images inside our layout */
body.page-template-template_startseite img {
    max-width: 100%;
    height: auto;
}
/* Gallery/strip images need fixed height */
.sf-img-strip img {
    height: 240px !important;
    width: auto !important;
    border-radius: 20px;
    object-fit: cover;
    flex-shrink: 0;
}
/* Mosaic images */
.sf-mosaic-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}
/* Hero images */
.sf-hero-img-main img {
    width: 100% !important;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    height: auto !important;
}
.sf-hero-img-float img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}
/* About images */
.sf-about-img-big img {
    width: 100% !important;
    display: block;
    aspect-ratio: 3/4;
    object-fit: cover;
    height: auto !important;
}
.sf-about-img-small img {
    width: 100% !important;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    height: auto !important;
}

/* Remove WP default main/content margins */
main#content {
    margin: 0;
    padding: 0;
}

/* Fix WP link colors */
body.page-template-template_startseite a {
    text-decoration: none;
}
.sf-contact-item a {
    color: var(--text-body);
    transition: color .25s;
}
.sf-contact-item a:hover {
    color: var(--petrol);
}
.sf-footer a {
    color: rgba(247,246,237,.6) !important;
}
.sf-footer a:hover {
    color: var(--goldgelb) !important;
}

/* Responsive gallery strip */
@media (max-width: 959px) {
    .sf-img-strip img { height: 180px !important; }
}
@media (max-width: 639px) {
    .sf-img-strip img { height: 140px !important; }
}


#sf-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #519cab;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.6s ease;
}
#sf-preloader.sf-fade-out {
    opacity: 0;
    pointer-events: none;
}
.sf-preloader-logo {
    max-width: 500px !important;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: scale(0.9);
    animation: sf-logo-in 0.6s ease forwards;
}
@keyframes sf-logo-in {
    0%   { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}