/* ==========================================================================
   ALLTAGSBETREUUNG DEDTERS - ZENTRALE STYLESHEET (style.css)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Allura&display=swap');

/* =========================================
   FARBEN & DESIGN-VARIABLEN
   ========================================= */
:root {
    --farbe-primar: #941196;          /* Dein charakteristisches Lila */
    --farbe-primar-hell: #b732b9;     /* Helleres Lila für Hover-Effekte */
    --farbe-hintergrund: #fdfafc;     /* Sehr helles, edles Grau/Rosa für den Hintergrund */
    --farbe-text: #2c3e50;            /* Gut lesbares Dunkelgrau für Texte */
    --farbe-text-muted: #4a3b4a;      /* Gedämpftes Lila-Grau für Sekundärtexte */
    --farbe-kachel: #ffffff;          /* Reines Weiß für Inhalts-Kacheln */
    --farbe-akzent-hell: #f7beff;     /* Zarter Pastellton für Linien und Hintergründe */
}

/* =========================================
   BASIS-RESET & GLOBALE EINSTELLUNGEN
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body { 
    font-family: 'Source Sans Pro', system-ui, -apple-system, sans-serif; 
    color: var(--farbe-text); 
    background-color: var(--farbe-hintergrund); 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

/* =========================================
   ZENTRALER HEADER & NAVIGATION (KOMPAKTIERT & MOBIL-OPTIMIERT)
   ========================================= */
header { 
    background-color: var(--farbe-primar); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    padding: 0.8rem 1rem; /* Kompakterer Header-Abstand nach oben/unten */
}

.header-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 0.8rem; /* Engerer Abstand zwischen Logo und Tabs */
}

.logo-bereich {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.logo-bild-header { 
    width: auto;
    max-width: 230px; /* Minimal kleiner & kompakter auf Desktops */
    max-height: 65px; 
    object-fit: contain; 
    background-color: #ffffff; 
    padding: 5px; /* Weniger Weißraum für schlankere Optik */
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.logo-bild-header:hover {
    transform: scale(1.02);
}

nav { 
    display: flex; 
    justify-content: center; 
    gap: 0.4rem; /* Engere Abstände zwischen den Tabs */
    flex-wrap: wrap; 
}

nav a { 
    text-decoration: none; 
    color: #ffffff; 
    padding: 0.5rem 0.9rem; /* Kompaktierte Tabs */
    font-weight: 600; 
    border-radius: 6px; 
    transition: all 0.2s ease; 
    font-size: 1rem; /* Schmalere, elegante Schrift */
}

nav a:hover { 
    background-color: rgba(255, 255, 255, 0.15); 
}

nav a.aktiv { 
    background-color: rgba(255, 255, 255, 0.22); 
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
}

/* HOHER FOKUS: Termin buchen soll immer extrem sichtbar herausstechen */
nav a.nav-btn-highlight {
    background-color: #ffffff;
    color: var(--farbe-primar) !important;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

nav a.nav-btn-highlight:hover {
    background-color: #fdf2ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

nav a.nav-btn-highlight.aktiv {
    background-color: var(--farbe-akzent-hell);
    color: var(--farbe-primar) !important;
}

/* =========================================
   ZENTRALER FOOTER
   ========================================= */
footer { 
    background-color: var(--farbe-primar); 
    color: #ffffff; 
    text-align: center; 
    padding: 2.5rem 1rem; 
    margin-top: auto; 
}

footer p {
    font-size: 1.05rem;
}

.footer-reiter { 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 1.5rem; 
    margin-top: 15px; 
}

.footer-reiter a { 
    color: #ffffff; 
    text-decoration: none; 
    font-size: 1rem; 
    opacity: 0.8; 
    transition: opacity 0.2s ease;
}

.footer-reiter a:hover { 
    opacity: 1; 
    text-decoration: underline; 
}

/* =========================================
   STICKY FLOATING TELEFON-BUTTON (MOBIL-OPTIMIERT)
   ========================================= */
.floating-phone-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    z-index: 999;
    text-decoration: none;
    font-size: 1.8rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-phone-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.floating-phone-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25d366;
    left: 0;
    top: 0;
    animation: phonePulse 2s infinite;
    z-index: -1;
    opacity: 0.6;
}

@keyframes phonePulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* =========================================
   HAUPTBEREICH & TYPOGRAFIE
   ========================================= */
main { 
    flex: 1; 
    max-width: 1200px; 
    width: 100%; 
    margin: 2.5rem auto; 
    padding: 0 1.5rem; 
}

.haupt-container {
    background-color: transparent; 
}

h1, h2 { 
    font-family: 'Allura', cursive; 
    font-style: normal; 
    color: var(--farbe-primar); 
    text-align: center; 
}

h1 { 
    font-size: 3.8rem; /* Etwas größer für Allura, da sie filigraner ist */
    margin-bottom: 1rem; 
    font-weight: 800; 
    line-height: 1.2; 
}

h2 { 
    font-size: 2.8rem; /* Etwas größer für Allura */
    margin-bottom: 1.8rem; 
    border-bottom: 3px solid var(--farbe-akzent-hell); 
    display: inline-block; 
    padding-bottom: 0.5rem; 
}

.intro-text { 
    text-align: center; 
    font-size: 1.35rem; 
    margin-bottom: 3.5rem; 
    color: var(--farbe-text-muted); 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
}

/* =========================================
   GRID & MODERNE STANDARDKACHELN
   ========================================= */
.grid-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 2rem; 
    margin-bottom: 4rem; 
    width: 100%;
}

.kachel { 
    background-color: var(--farbe-kachel); 
    border-radius: 16px; 
    padding: 2.5rem; 
    text-align: center; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); 
    border-top: 5px solid var(--farbe-primar); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.kachel:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 40px rgba(148, 17, 150, 0.15); 
}

.kachel-icon { 
    font-size: 3.5rem; 
    margin-bottom: 1.5rem; 
    display: block; 
}

.kachel h3 { 
    color: var(--farbe-primar); 
    font-size: 1.8rem; /* Etwas größer für Allura */
    margin-bottom: 1rem; 
    font-family: 'Allura', cursive;
    font-weight: 700;
}

.kachel p { 
    font-size: 1.15rem; 
    color: #555555; 
}

/* =========================================
   MASSIVER & COOLER TERMIN-BUTTON
   ========================================= */
.center-box { 
    text-align: center; 
    margin: 3rem 0 5rem 0; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 1.5rem; 
}

.button-huge { 
    display: inline-block; 
    background: linear-gradient(135deg, var(--farbe-primar), var(--farbe-primar-hell));
    color: #ffffff; 
    padding: 1.2rem 3rem; 
    text-decoration: none; 
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 1.5rem; 
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(148, 17, 150, 0.4);
    transition: all 0.3s ease; 
}

.button-huge:hover { 
    transform: translateY(-4px) scale(1.02); 
    box-shadow: 0 12px 35px rgba(148, 17, 150, 0.6); 
    color: #ffffff;
}

.link-sub { 
    color: var(--farbe-primar); 
    font-weight: 600; 
    font-size: 1.2rem; 
    text-decoration: none; 
    transition: color 0.2s ease; 
}

.link-sub:hover { 
    text-decoration: underline; 
    color: var(--farbe-primar-hell);
}

/* =========================================
   BILD-KACHELN (Für Dienstleistungen)
   ========================================= */
.bild-kachel { 
    background-color: var(--farbe-kachel); 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 6px 20px rgba(0,0,0,0.06); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    height: 100%;
}

.bild-kachel:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 12px 30px rgba(148, 17, 150, 0.15); 
}

.bild-kachel img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
    border-bottom: 4px solid var(--farbe-primar); 
}

.bild-kachel-content { 
    padding: 1.5rem; 
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.bild-kachel h3 { 
    color: var(--farbe-primar); 
    font-size: 1.6rem; /* Etwas größer für Allura */
    margin-bottom: 1rem; 
    font-weight: 700;
    font-family: 'Allura', cursive;
}

.bild-kachel p {
    font-size: 1.1rem;
    color: #555555;
    line-height: 1.5;
}

/* Intro & Zentrierte Liste auf der Dienstleistungs-Seite */
.dl-intro-text { 
    text-align: center; 
    max-width: 900px; 
    margin: 0 auto 2.5rem auto; 
    font-size: 1.25rem; 
    color: var(--farbe-text-muted);
    line-height: 1.7;
}

.dl-liste-container { 
    text-align: center; 
    margin-bottom: 4rem; 
}

.dl-liste { 
    display: inline-block; 
    text-align: left; 
    font-size: 1.2rem; 
    color: var(--farbe-text); 
    line-height: 1.9; 
    list-style-type: none;
}

.dl-liste li { 
    margin-bottom: 0.5rem; 
    position: relative;
    padding-left: 1.8rem;
}

.dl-liste li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--farbe-primar);
    font-weight: bold;
}

/* =========================================
   ÜBER UNS SEITE (Split-Layout)
   ========================================= */
.split-section { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 3rem; 
    align-items: center; 
    margin-bottom: 4rem; 
}

.split-image img { 
    width: 100%; 
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    border-bottom: 5px solid var(--farbe-primar); 
    object-fit: cover;
    display: block;
}

.split-text h2 { 
    text-align: left; 
    border-bottom: none; 
    margin-bottom: 1rem; 
    padding-bottom: 0;
}

.split-text p { 
    font-size: 1.25rem; 
    line-height: 1.8; 
    color: var(--farbe-text-muted); 
    margin-bottom: 1.5rem; 
}

/* =========================================
   MOBILE OPTIMIERUNG (Handy-Anpassung)
   ========================================= */
@media (max-width: 768px) {
    header { 
        padding: 0.4rem 0.3rem; /* Extrem kompakter Header auf Handys */
    }
    
    .header-container {
        gap: 0.4rem;
    }
    
    .logo-bild-header { 
        max-width: 150px; /* Schön klein fürs Smartphone */
        max-height: 44px; 
        padding: 3px; 
        border-radius: 6px;
    }
    
    nav {
        gap: 0.2rem; /* Extrem nah beieinander liegende Tabs */
    }
    
    nav a { 
        font-size: 0.85rem; /* Kompakte Schrift auf Handys */
        padding: 0.35rem 0.5rem; /* Weniger Platzverbrauch pro Tab */
        border-radius: 5px;
    }
    
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    
    .intro-text { font-size: 1.15rem; margin-bottom: 2rem; }
    .dl-intro-text { font-size: 1.1rem; }
    
    .grid-container { 
        gap: 1.2rem; 
        grid-template-columns: 1fr; 
    }
    
    .kachel { padding: 1.8rem 1.2rem; }
    
    .button-huge { 
        font-size: 1.15rem; 
        padding: 0.9rem 1.8rem; 
        width: 100%; 
        max-width: 320px; 
    }
    
    .split-section { 
        grid-template-columns: 1fr; 
        gap: 1.5rem; 
        text-align: center; 
    }
    
    .split-text h2 { 
        text-align: center; 
    }
    
    .dl-liste {
        font-size: 1.05rem;
    }
    
    .floating-phone-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   TELEFON-AUSWAHLMENÜ (MODAL & ACTION SHEET)
   ========================================================================== */
.phone-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.phone-modal-overlay.aktiv {
    opacity: 1;
    pointer-events: auto;
}

.phone-modal-card {
    background-color: var(--farbe-kachel);
    border-radius: 16px;
    padding: 2.2rem 2rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.phone-modal-overlay.aktiv .phone-modal-card {
    transform: translateY(0);
}

.phone-modal-card h3 {
    font-family: 'Source Sans Pro', sans-serif !important; 
    font-size: 1.35rem;
    color: var(--farbe-text);
    margin-bottom: 0.5rem;
    font-weight: 700;
    border-bottom: none;
    padding-bottom: 0;
}

.phone-modal-card p {
    font-size: 1rem;
    color: var(--farbe-text-muted);
    margin-bottom: 1.8rem;
}

.phone-modal-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.9rem;
    transition: all 0.2s ease;
}

.modal-icon {
    font-size: 1.35rem;
}

/* Button Styling für "Jetzt anrufen" */
.btn-call {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* Button Styling für "Rückruf vereinbaren" */
.btn-callback {
    background: linear-gradient(135deg, var(--farbe-primar), var(--farbe-primar-hell));
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(148, 17, 150, 0.25);
}

.btn-callback:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(148, 17, 150, 0.35);
}

.phone-modal-close {
    background: none;
    border: none;
    color: #7f8c8d;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.6rem;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.phone-modal-close:hover {
    color: #c0392b;
}

/* Auf mobilen Geräten: Schiebt sich nahtlos als Action-Sheet von unten hinein */
@media (max-width: 480px) {
    .phone-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    
    .phone-modal-card {
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        padding: 2rem 1.5rem 2rem 1.5rem;
    }
    
    .phone-modal-overlay.aktiv .phone-modal-card {
        transform: translateY(0);
    }
}