:root {
    --primary: #008bc9; /* Niebieski z logo */
    --secondary: #00ca74; /* Zielony z logo */
    --accent: #d35400; 
    --pfleg-bg: #eef7ff;
    --text: #2d3436;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--text); background: #fff; overflow-x: hidden; }

.container { max-width: 1140px; margin: auto; padding: 0 20px; }
.text-center { text-align: center; }

/* Header */
header { padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; background: #fff; position: sticky; top:0; z-index:1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.logo-box img { max-height: 55px; }
.legal-tag { background: #e3f2fd; color: #1565c0; padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; margin-left: 10px; border: 1px solid #c2e0ff; }

/* HERO - Tło Two adult women */
.hero-split { 
    background: linear-gradient(rgba(0, 74, 153, 0.75), rgba(0, 74, 153, 0.75)), url('two-adult-women-beside-each-other-3768114-2.jpg') no-repeat center/cover;
    color: white; padding: 80px 0; min-height: 650px; display: flex; align-items: center;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: start; }
.hero-text h1 { font-size: 2.8rem; line-height: 1.1; margin-bottom: 25px; color: #fff; }
.hero-list { list-style: none; margin-top: 30px; }
.hero-list li { margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; gap: 12px; }
.hero-list i { color: var(--secondary); font-size: 1.3rem; }

/* Form Card */
.form-card { background: white; padding: 35px; border-radius: 15px; box-shadow: 0 15px 45px rgba(0,0,0,0.25); border-top: 6px solid var(--secondary); color: var(--text); }
.step-progress { height: 6px; background: #eee; border-radius: 3px; margin-bottom: 25px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--secondary); width: 20%; transition: 0.3s; }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.4s ease; }

label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.85rem; color: #555; }
input, select, textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.95rem; }
.btn-main { background: var(--accent); color: white; border: none; padding: 16px; border-radius: 8px; font-weight: bold; cursor: pointer; width: 100%; font-size: 1rem; transition: 0.3s; }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* PILLARS (Fix Hover) */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: -50px; }
.pillar-card { 
    background: white; padding: 30px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    text-align: center; border: 2px solid transparent; transition: 0.3s ease; 
}
.pillar-card:hover { border-color: var(--secondary); transform: translateY(-5px); }
.pillar-card i { font-size: 2rem; color: var(--secondary); margin-bottom: 15px; }
.counter-num { font-size: 2.8rem; font-weight: 800; color: var(--secondary); display: block; }
.static-num { font-size: 2.5rem; font-weight: 800; color: var(--secondary); }

/* Usługi (Nowa sekcja) */
.services-section { padding: 80px 0; background: #fff; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.service-image img { width: 100%; border-radius: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.service-items { margin-top: 30px; }
.s-item { margin-bottom: 20px; display: flex; gap: 15px; align-items: flex-start; }
.s-item i { color: var(--primary); font-size: 1.2rem; margin-top: 4px; }

/* Pflegegeld (Tabela po prawej) */
.pfleg-section { background: var(--pfleg-bg); padding: 80px 0; }
.pfleg-grid { display: grid; grid-template-columns: 1fr 400px; gap: 50px; align-items: center; }
.pfleg-card { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); border: 1px solid #d1e3f8; }
.pfleg-table { width: 100%; border-collapse: collapse; }
.pfleg-table td { padding: 14px 10px; border-bottom: 1px solid #eee; font-weight: 600; }
.pfleg-badge { background: var(--secondary); color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; float: right; }

/* FAQ */
.faq-section { padding: 80px 0; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.faq-item { background: #f9f9f9; padding: 25px; border-radius: 10px; }
.faq-item h4 { color: var(--primary); margin-bottom: 10px; }

footer { background: #1a1a1a; color: #fff; padding: 60px 0 30px; text-align: center; }
footer .small { opacity: 0.5; font-size: 0.8rem; margin-top: 20px; }

.floating-contact { position: fixed; bottom: 25px; right: 25px; z-index: 999; }
.float-btn { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background: var(--secondary); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }

.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes fadeIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 900px) { .hero-grid, .service-grid, .pfleg-grid { grid-template-columns: 1fr; } .hero-text h1 { font-size: 2rem; } }

.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%; background: #fff;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1); padding: 20px 5%; z-index: 9999;
    display: none; /* Pokazywane przez JS */
}
.cookie-content { max-width: 1100px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cookie-btns { display: flex; gap: 10px; }
.btn-cookie { padding: 10px 20px; border-radius: 5px; cursor: pointer; border: none; font-weight: bold; }
.btn-cookie.accept { background: var(--secondary); color: white; }
.btn-cookie.decline { background: #eee; color: #555; }

@media (max-width: 768px) {
    .cookie-content { flex-direction: column; text-align: center; }
}

/* =========================================
   NOWE SEKCJE: MAPA I OPINIE
   ========================================= */

/* Sekcja Mapy Niemiec */
.map-section {
    padding: 100px 0;
    background: #fff;
    text-align: center;
}

.map-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.map-container {
    margin-top: 50px;
    position: relative;
    width: 100%;
    max-width: 800px; /* Ograniczamy szerokość mapy */
    margin-left: auto;
    margin-right: auto;
}

/* Modernistyczny Placeholder dla Mapy (do wymiany na img/svg) */
.map-visual-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, rgba(0,139,201,0.1) 0%, rgba(0,202,116,0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--primary);
    color: var(--primary);
    font-weight: bold;
}

/* Sekcja Opinii (Horyzontalny Scroller) */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-light);
    overflow: hidden; /* Ważne dla scrollera */
}

.testimonials-section h2 {
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    padding: 20px 0 40px;
    overflow-x: auto; /* Włączamy horyzontalny scroll */
    scroll-snap-type: x mandatory; /* Efekt przyklejania kart */
    -webkit-overflow-scrolling: touch; /* Płynność na iOS */
}

/* Ukrywamy scrollbar, żeby było estetycznie */
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-track { -ms-overflow-style: none; scrollbar-width: none; }

.testimonial-card {
    flex: 0 0 350px; /* Stała szerokość karty */
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    scroll-snap-align: start; /* Przyklejanie do początku */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s ease;
    border: 2px solid transparent;
}

.testimonial-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.quote-icon {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.testimonial-text {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #555;
    flex-grow: 1;
}

.testimonial-meta {
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
}

.reviewer-info h5 {
    color: var(--primary);
    margin-bottom: 2px;
}

.reviewer-info p {
    font-size: 0.8rem;
    color: #888;
}

@media (max-width: 768px) {
    .testimonial-card { flex: 0 0 300px; }
}

.map-visual {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}
.hotspot {
    position: absolute;
    width: 12px; height: 12px;
    background: var(--secondary);
    border-radius: 50%;
}
/* Przykładowe pozycje kropek - dostosuj do swojej mapy */
.pos-berlin { top: 30%; right: 25%; }
.pos-munich { bottom: 15%; right: 35%; }

.hotspot::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.fb-theme {
    background: #1877F2 !important; /* Facebook Blue */
    color: white !important;
    border: none !important;
    min-width: 320px;
}
.fb-theme .testimonial-text, .fb-theme h5 { color: white; }
.fb-theme .reviewer-info p { color: #e0e0e0; }
.fb-icon {
    position: absolute; top: 20px; right: 20px;
    font-size: 1.5rem; opacity: 0.8;
}

.testimonials-slider { overflow: hidden; position: relative; width: 100%; }
.testimonial-track-infinite {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollInfinite 40s linear infinite; /* Prędkość przewijania */
}
.testimonial-track-infinite:hover { animation-play-state: paused; } /* Stop po najechaniu */

@keyframes scrollInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Przesuwamy o połowę szerokości paska */
}

/* Tła sekcji dla kontrastu */
.section-white { background-color: #ffffff; }
.section-alt { background-color: #f0f4f8; } /* Delikatny szary/błękit */
.section-blue { background-color: #eef7ff; }

/* Kontener slidera */
.testimonials-wrapper {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.testimonial-track-infinite {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: scrollSlider 50s linear infinite;
}

/* Zatrzymanie po najechaniu */
.testimonials-wrapper:hover .testimonial-track-infinite {
    animation-play-state: paused;
}

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

/* Karty opinii */
.testimonial-card {
    flex: 0 0 320px;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Naprzemienne kolory FB */
.fb-blue {
    background: #1877F2;
    color: white;
}
.fb-white {
    background: white;
    border: 2px solid #1877F2;
    color: #333;
}

.fb-logo-card {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
}
.fb-blue .fb-logo-card { color: white; }
.fb-white .fb-logo-card { color: #1877F2; }

.test-text { font-size: 0.9rem; font-style: italic; margin-bottom: 15px; line-height: 1.5; }
.test-author { font-weight: bold; font-size: 0.95rem; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 10px; }
.fb-blue .test-author { border-color: rgba(255,255,255,0.2); }

/* Definicje tła sekcji */
.section-white { background-color: #ffffff; padding: 80px 0; }
.section-blue { background-color: #eef7ff; padding: 80px 0; }
.section-alt { background-color: #f8f9fa; padding: 80px 0; }

/* Stylizacja mapy SimpleMaps */
#map {
    max-width: 700px;
    margin: 40px auto;
    filter: drop-shadow(0 10px 20px rgba(0,74,153,0.15));
}

/* --- Facebookowe Opinie - Infinite Scroll --- */
.testimonials-wrapper {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    background: #f1f3f5;
}

.testimonial-track-infinite {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollSlider 60s linear infinite;
}

.testimonials-wrapper:hover .testimonial-track-infinite {
    animation-play-state: paused; /* Zatrzymuje przewijanie po najechaniu */
}

@keyframes scrollSlider {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Przesunięcie o połowę szerokości duplikatu */
}

.testimonial-card {
    flex: 0 0 350px;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.fb-blue { background: #1877F2; color: white; }
.fb-white { background: white; border: 2px solid #1877F2; color: #333; }
.fb-logo-icon { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; opacity: 0.8; }

.map-outer-wrapper {
    max-width: 700px; /* Szerokość zgodna z Twoim układem */
    margin: 40px auto;
    height: 480px; /* Ustaw sztywną wysokość, która kończy się przed napisem trial */
    overflow: hidden; /* To klucz - wszystko poniżej 480px zostanie ucięte */
    position: relative;
}

#map {
    margin-top: -5px; /* Opcjonalnie przesuń mapę lekko do góry, jeśli napis jest blisko krawędzi */
}

/* Ukrycie dodatkowych linków tekstowych, jeśli są generowane poza SVG */
#map_link, .map_info {
    display: none !important;
    visibility: hidden;
}

/* Przycisk widoczny tylko na mobile, zawsze na dole */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--accent);
    color: white;
    text-align: center;
    padding: 18px;
    font-weight: bold;
    z-index: 9999;
    text-decoration: none;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .mobile-sticky-cta { display: block; }
    /* Dodaj padding na dole body, żeby stopka nie była zasłonięta */
    body { padding-bottom: 60px; }
}

body {
    overscroll-behavior-y: contain; /* Blokuje odświeżanie przez przeciągnięcie w dół */
}

/* Usuwanie podpisu mapy - wersja ostateczna */
#map_info, 
.sm_info, 
#map .sm_info, 
div[style*="z-index: 1000000"], 
a[href*="simplemaps.com"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}