﻿/* ==========================================
   MODERNES PRAXIS-DESIGN (Clean & Open)
   ========================================== */
body {
    background-color: #FFFFFF; /* Rein weißer, cleaner Hintergrund für die gesamte Website */
    background-image: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* Moderne System-Schriften */
    font-size: 1.15rem; /* NEU: Erhöht die allgemeine Textgröße (Fließtext, Tabellen, Listen) auf PCs spürbar */
    color: #2d3748;
    margin: 0;
    padding: 0;
    overflow-y: scroll;
    border-top: 4px solid #00b4d8; /* Der frische, moderne Akzentbalken ganz oben */
    line-height: 1.6; /* Mehr Zeilenabstand für entspanntes Lesen */
}

/* Gibt den Begrüßungen und Abschnitten auf dem PC die perfekte Größe */
h3 {
    font-size: 1.45rem;
    color: #1a2e5a;
    line-height: 1.5;
    margin-bottom: 20px;
}

h4 {
    font-size: 1.25rem;
    color: #2d3748;
    line-height: 1.5;
}


/* Alle Bilder responsiv */
img {
    max-width: 100%;
    height: auto;
}

/* Der Hauptcontainer steht stabil und sicher */
.auto-style1 {
    font-family: Arial, Helvetica, sans-serif;
    border: none !important;
    border-radius: 0px;
    text-align: left;
    width: 100%;
    max-width: 1300px; /* Gibt der Seite maximale Breite auf großen Monitoren */
    margin: 0 auto;
    color: #000000;
    background-color: #FFFFFF;
    box-shadow: none !important;
    border-collapse: collapse;
}

/* ==========================================
   DER ZENTRALE HEADER-BEREICH
   ========================================== */
.custom-header-block {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 35px 4% 25px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

h1 {
    font-size: 2.4rem;
    color: #1a2e5a;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.8px;
    font-family: Arial, Helvetica, sans-serif;
}

.custom-header-line {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto 20px auto;
    border-bottom: 2px solid #e1ecf8;
}

/* Blendet leere alte Fragmente der originalen Tabellenzeilen sanft aus */
.DividerColor, 
table.auto-style1 td:empty {
    display: none !important;
}

/* ==========================================
   DIE SEITENLEISTE (Navigation auf dem PC)
   ========================================== */
.menuTD {
    background-color: #FFFFFF !important;
    text-align: left;
    vertical-align: top;
    width: 260px; 
    min-width: 260px;
    padding: 20px 10px 40px 4% !important;
}

.leftbottomTD {
    background-color: #FFFFFF !important;
}

.main-navigation {
    display: flex;
    flex-direction: column; 
    width: 100%;
}

.main-navigation .menuLink {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 1.05rem;
    color: #4a5568; 
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 5px;
    border-bottom: none !important;
    transition: all 0.15s ease-in-out;
}

/* Unterpunkte */
.main-navigation .menuLink.sub-item {
    padding-left: 32px; 
    font-size: 0.95rem;   
    color: #718096;
}
.main-navigation .menuLink.sub-item::before {
    content: "└ ";
    color: #a0aec0;
    margin-right: 5px;
}

.main-navigation .menuLink:hover {
    background-color: #f7fafc !important;
    color: #1a2e5a !important;
}

/* DESKTOP-ABSICHERUNG: Versteckt die Mobil-Burger-Elemente auf PCs komplett */
.burger-menu-btn, #menu-toggle {
    display: none !important;
}

/* ZENTRALER AKTIV-ZUSTAND */
.home-page .SHome, 
.team-page .STeam, 
.praxis-page .SPraxis, 
.anmeldung-page .SAnmeldung, 
.wartezimmer-page .SWartezimmer, 
.behandlung-page .SBehandlung, 
.leistung-page .SLeistung, 
.sprechzeiten-page .SSprechzeiten, 
.kontakt-page .SKontakt, 
.anfahrt-page .SAnfahrt, 
.impressum-page .SImpressum, 
.datenschutz-page .SDatenschutz {
    background-color: #a9c7eb !important;
    color: #000000 !important;
    font-weight: 700 !important;
}
/* ==========================================
   DER INHALTSBEREICH (Inhalte & Karten)
   ========================================== */
td[rowspan="2"], td[valign="top"] {
    padding: 20px 4% 60px 3% !important;
}

.team-card {
    background: #FFFFFF;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    padding: 20px !important;
}

.team-name-header {
    color: #1a2e5a !important;
    font-size: 1.2rem;
    border-bottom: 2px solid #e1ecf8 !important;
    background-color: transparent !important;
}

.ShadowFrame {
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.tabborder {
    border-bottom: 1px solid #e2e8f0 !important;
    border-left: 5px solid #1a2e5a !important;
    padding: 12px 14px;
    background-color: #f8fafc !important;
    color: #1a2e5a !important;
}

.services-list li.zebra {
    border-left: 7px solid #1a2e5a !important;
    background-color: #f8fafc !important;
}

.bildcss {
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

/* ==========================================
   ZENTRALER FOOTER (Elegantes Abschlussband)
   ========================================== */
.BottomTable {
    width: 100%;
    background-color: #1a2e5a;
    text-align: center;
    color: #FFFFFF;
    font-style: normal;
    padding: 45px 0;
    margin-top: 60px;
    border-collapse: collapse;
}

.BottomTable h2 {
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin: 0 0 12px 0;
    color: #cdddf2;
}

/* ==========================================
   MOBILE OPTIMIERUNG (Krisensicherer Tabellen-Sprenger)
   ========================================== */
@media screen and (max-width: 768px) {
    /* Wir zwingen NUR die echten Inhaltszellen und die Haupttabelle untereinander */
    table.auto-style1, 
    table.auto-style1 > tbody, 
    table.auto-style1 > tbody > tr, 
    table.auto-style1 > tbody > tr > td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .auto-style1 {
        width: 96% !important;
        margin: 15px auto !important;
        border-radius: 12px !important;
    }

    /* Das Menü-Feld verhält sich auf Handys unauffällig flach */
    .menuTD {
        width: 100% !important;
        min-width: 100% !important;
        padding: 0 !important;
        background-color: transparent !important;
    }

    /* Der moderne, dunkelblaue "Menü aufklappen"-Button auf Smartphones */
    .burger-menu-btn {
        display: block !important; /* Wird auf Handys sichtbar */
        background-color: #1a2e5a;
        color: #FFFFFF;
        text-align: center;
        padding: 14px;
        font-size: 1.1rem;
        font-weight: bold;
        cursor: pointer;
        width: 92%;
        margin: 15px auto 10px auto !important;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    .burger-menu-btn:hover {
        background-color: #a9c7eb;
        color: #000000;
    }

    /* Das Smartphone-Menü ist standardmäßig vollständig versteckt */
    .main-navigation {
        display: none !important;
        flex-direction: column;
        width: 92%;
        margin: 0 auto 15px auto;
        background-color: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 10px !important;
        box-sizing: border-box;
    }

    /* Erst wenn der Haken gesetzt ist, klappen die Links heraus */
    #menu-toggle:checked ~ .main-navigation {
        display: flex !important;
    }

    .main-navigation .menuLink {
        padding: 12px 14px !important;
        font-size: 1.05rem !important;
        text-align: center;
        margin-bottom: 4px;
        border-radius: 6px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
    }
    .main-navigation .menuLink:last-child {
        border-bottom: none !important;
    }

    /* Der Inhaltsbereich nutzt auf Handys die volle Breite und rutscht unter den Button */
    td[rowspan="2"], td[valign="top"] {
        padding: 15px 20px 40px 20px !important;
        width: 100% !important;
        display: block !important;
    }

        /* Setzt Titel und Logo auf Handys schlank nebeneinander */
    .custom-header-block {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 15px !important; /* Weniger Abstand nach oben und unten */
        gap: 10px;
    }
    
    .custom-header-block div:first-child {
        text-align: left !important;
        width: 75% !important; /* Gibt dem Titel genügend Raum zum Umbrechen */
    }

    .custom-header-block div:last-child {
        text-align: right !important;
        width: 20% !important;
    }

    h1 {
        font-size: 1.25rem !important; /* Etwas feiner auf Handys, damit es links gut reinpasst */
        line-height: 1.3 !important;
    }

    /* Das Logo wird dezent an die rechte Seite neben den Titel gesetzt */
    .custom-header-block img {
        width: 50px !important; /* Kompakt als feiner Akzent im Header */
        max-width: 50px !important;
        height: auto !important;
        margin: 0 !important;
        display: inline-block !important;
    }

    /* Schiebt die Trennlinie und den Menü-Button deutlich weiter nach oben */
    .custom-header-line {
        margin: 0 auto 5px auto !important;
    }

    .burger-menu-btn {
        margin: 5px auto 10px auto !important; /* Minimaler Abstand, damit der Inhalt sofort startet */
    }


    /* Zwingt alle Inhaltsbilder, sich großzügig über das Display zu spannen */
    .bildcss, td[valign="top"] img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 10px auto !important;
        display: block !important;
    }

    /* Zweispaltige Raster (wie im Leistungsspektrum oder Team) werden einspaltig */
    .services-grid, .team-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Footer-Optimierung für kleine Bildschirme */
    .BottomTable {
        padding: 30px 15px !important;
    }
        /* Sorgt dafür, dass Tabellen auf Handys bei Bedarf seitlich wischbar sind statt abzuschneiden */
    .ShadowFrame {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Verkleinert die inneren Abstände der Sprechzeiten-Tabelle auf Smartphones */
    .sprechzeiten-table th,
    .sprechzeiten-table td {
        padding: 12px 10px !important;
        font-size: 0.95rem !important; /* Macht die Schrift auf Handys minimal feiner */
    }

    /* Gibt dem Wochentag etwas weniger feste Breite, damit mehr Platz für die Uhrzeiten bleibt */
    .day-column {
        width: 20% !important;
        padding-left: 8px !important;
    }
    /* Optimierung der Schriftgrößen auf Smartphones */
    h3 {
        font-size: 1.3rem !important; /* Macht den Begrüßungstext oben spürbar deutlicher */
        line-height: 1.5 !important;
        padding: 0 10px;
    }

    h4 {
        font-size: 1.2rem !important; /* Macht "Ihr Praxisteam..." unter dem Bild größer */
        line-height: 1.5 !important;
    }

    p, td, li {
        font-size: 1.1rem !important; /* Hebt den allgemeinen Fließtext auf allen Seiten auf ein optimales Handy-Maß */
        line-height: 1.6 !important; /* Mehr Zeilenabstand verhindert das Verrutschen der Augen */
    }
    /* Befreit das Teambild auf dem Handy aus dem Kasten, damit es die volle Displaybreite nutzt */
    .home-page .ShadowFrame {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        width: 100% !important;
        margin: 10px 0 15px 0 !important;
    }

    /* Zwingt das Teambild auf Smartphones zur echten maximalen Breite ohne linken/rechten Rand */
    .home-page .bildcss {
        border-radius: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Gibt dem Begrüßungstext unter dem Bild auf dem Handy mehr Raum zum Atmen */
    .home-page h4 {
        margin-top: 15px !important;
        font-weight: 700 !important;
        color: #1a2e5a !important;
    }

}
