/*
 * MARE MED Chirurgie Gunstmann
 * Zentrales Design der neuen responsiven Website
 */


/* ==========================================
   Grundlayout
   ========================================== */

* {
    box-sizing: border-box;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    color: #222;
    background: #fff;
}

body {
    margin: 0;
    padding: 0;
    background: #fff;
}

.startkopf,
main,
footer {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================
   Logo
   ========================================== */

.praxislogo {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.praxislogo img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}


/* ==========================================
   Teamfoto
   ========================================== */

.teamfoto {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
}

.teamfoto img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}


/* ==========================================
   Praxisstatus und Telefonnummer
   ========================================== */

.praxisstatus {
    margin: 0;
    padding: 18px 20px 20px;
    text-align: center;
    background: #f2ede3;
    color: #890A00;
}

.telefon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #890A00;
    text-decoration: none;
    font-size: 2.4rem;
    line-height: 1.2;
    font-weight: 700;
}

.telefon img {
    width: 32px;
    height: 32px;
}

.statusmeldung {
    margin-top: 10px;
    color: #890A00;
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.01em;
}


/* ==========================================
   Hauptinhalt
   ========================================== */

main {
    padding: 36px 28px;
}

h1 {
    margin: 0 0 28px;
    color: #890A00;
    font-size: 2.2rem;
    line-height: 1.1;
}

.einleitung {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.55;
}


/* ==========================================
   Haupt-Accordion
   ========================================== */

.accordion {
    margin-top: 38px;
}

.accordion-punkt {
    margin: 0 0 10px;
    border: 1px solid #d8c7c4;
    border-radius: 6px;
    overflow: hidden;
    background: #faf7f5;
}

.accordion-punkt > summary {
    position: relative;
    display: block;
    padding: 19px 52px 19px 18px;
    color: #890A00;
    font-size: 1.55rem;
    line-height: 1.25;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.accordion-punkt > summary::-webkit-details-marker {
    display: none;
}

.accordion-punkt > summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #d99a27;
    font-size: 2rem;
    line-height: 1;
    font-weight: 400;
}

.accordion-punkt[open] > summary {
    background: #f3ebe8;
}

.accordion-punkt[open] > summary::after {
    content: "−";
}


/* ==========================================
   Inhalt des Haupt-Accordions
   ========================================== */

.accordion-inhalt {
    padding: 4px 18px 26px;
    font-size: 1.15rem;
    line-height: 1.55;
}

.accordion-inhalt h2 {
    margin: 24px 0 8px;
    color: #890A00;
    font-size: 1.3rem;
    line-height: 1.3;
}

.accordion-inhalt h2:first-child {
    margin-top: 12px;
}

.accordion-inhalt p {
    margin: 8px 0 16px;
}

.accordion-inhalt a {
    color: #890A00;
}

.hinweis {
    color: #555;
}


/* ==========================================
   Routenlinks
   ========================================== */

.routenlink {
    display: inline-block;
    color: #890A00;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #d99a27;
    padding-bottom: 2px;
}

.routenlink:hover {
    color: #a30d00;
}


/* ==========================================
   Unterpunkte innerhalb eines Accordions
   ========================================== */

.unterpunkte {
    margin-top: 18px;
    border-top: 1px solid #e4dfd7;
}

.unterpunkte details {
    border-bottom: 1px solid #e4dfd7;
}

.unterpunkte summary {
    position: relative;
    display: block;
    padding: 14px 38px 14px 8px;
    color: #333;
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.unterpunkte summary::-webkit-details-marker {
    display: none;
}

.unterpunkte summary::after {
    content: "+";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #d99a27;
    font-size: 1.35rem;
}

.unterpunkte details[open] > summary::after {
    content: "−";
}

.unterpunkte details > div {
    padding: 0 8px 12px;
}


/* ==========================================
   Zweite Ebene der Unterpunkte
   ========================================== */

.unterpunkte-ebene2 {
    margin: 18px 0 8px 10px;
    border-top: 0;
}

.unterpunkte-ebene2 > details {
    margin-bottom: 7px;
    border: 1px solid #e3d9d3;
    border-radius: 5px;
    overflow: hidden;
    background: #f7f3ef;
}

.unterpunkte-ebene2 > details > summary {
    padding: 12px 38px 12px 14px;
    color: #890A00;
    font-size: 1.02rem;
    font-weight: 500;
}

.unterpunkte-ebene2 > details > summary::after {
    right: 14px;
    color: #d99a27;
}

.unterpunkte-ebene2 > details[open] > summary {
    background: #eee6e1;
}

.unterpunkte-ebene2 > details > div {
    padding: 4px 14px 16px;
    background: #fff;
}


/* ==========================================
   Besonderer Punkt: Operationen kombinieren

   Dieser Punkt ist keine eigene Behandlung.
   Deshalb wird er gegenüber den medizinischen
   Behandlungsbereichen dezent hervorgehoben.
   ========================================== */

.unterpunkte > details.kombination-punkt {
    margin-top: 18px;
    border: 1px solid #d9c28e;
    border-radius: 5px;
    background: #f7f1e5;
    overflow: hidden;
}

.unterpunkte > details.kombination-punkt > summary {
    padding-left: 14px;
    padding-right: 38px;
    color: #890A00;
    font-weight: 600;
}

.unterpunkte > details.kombination-punkt > summary::after {
    right: 14px;
    color: #d99a27;
}

.unterpunkte > details.kombination-punkt[open] > summary {
    background: #f2e8d4;
}

.unterpunkte > details.kombination-punkt > div {
    padding: 4px 14px 18px;
    background: #fff;
}


/* ==========================================
   Behandlungstexte
   ========================================== */

.behandlung h3 {
    margin: 28px 0 8px;
    color: #890A00;
    font-size: 1.18rem;
    line-height: 1.35;
}

.behandlung h3:first-child {
    margin-top: 14px;
}


/* ==========================================
   OP-Bildreihe
   ========================================== */

.op-bildreihe {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 20px 0 28px;
}

.op-bildreihe figure {
    margin: 0;
}

.op-bildreihe img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.op-bildreihe figcaption {
    margin-top: 8px;
    color: #555;
    font-size: 0.92rem;
    line-height: 1.4;
}


/* ==========================================
   Aktionslinks
   ========================================== */

.aktionslink {
    display: inline-block;
    padding: 10px 16px;
    background: #890A00;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}


/* ==========================================
   OP-Kombinations-Konfigurator
   ========================================== */

.op-konfigurator {
    margin-top: 22px;
}

.op-konfigurator label {
    display: block;
    margin-bottom: 8px;
}

.op-konfigurator select {
    width: 100%;
    max-width: 520px;
    padding: 14px 16px;
    border: 1px solid #d8c7c4;
    border-radius: 5px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 1.15rem;
    line-height: 1.4;
    cursor: pointer;
}

.kombination-ergebnis {
    margin-top: 20px;
    padding: 4px 16px 8px;
    border-left: 3px solid #d99a27;
    background: #faf7f5;
}

.kombination-ergebnis h3 {
    margin-top: 14px;
}




/* ==========================================
   Ärztliches Team
   ========================================== */

.aerzte-team {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 22px 0 36px;
}

.arztprofil {
    overflow: hidden;
    border: 1px solid #e3d9d3;
    border-radius: 6px;
    background: #fff;
}

.arztfoto {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f7f3ef;
}

.arztfoto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.arztprofil-text {
    padding: 18px 20px 20px;
}

.arztprofil-text h3 {
    margin: 0 0 8px;
    color: #890A00;
    font-size: 1.3rem;
    line-height: 1.3;
    font-weight: 600;
}

.arztqualifikation {
    margin-top: 0;
    font-weight: 500;
}

.arzt-hinweis {
    color: #666;
    font-style: italic;
}

.arztprofil-neu {
    background: #faf8f5;
}





/* ==========================================
   Standortbilder
   ========================================== */

.standortbild {
    margin: 14px 0 20px;
}

.standortbild img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 6px;
}

/* ==========================================
   Praxisteam / MFA
   ========================================== */

.praxisteam-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 22px 0 36px;
}

.mitarbeiterprofil {
    overflow: hidden;
    border: 1px solid #e3d9d3;
    border-radius: 6px;
    background: #fff;
}

.mitarbeiterfoto {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f7f3ef;
}

.mitarbeiterfoto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.mitarbeiterprofil-text {
    padding: 18px 20px 20px;
}

.mitarbeiterprofil-text h3 {
    margin: 0 0 8px;
    color: #890A00;
    font-size: 1.3rem;
    line-height: 1.3;
    font-weight: 600;
}

.mitarbeiterqualifikation {
    margin-top: 0;
    font-weight: 500;
}

.mitarbeiterprofil-gesucht {
    background: #faf8f5;
}

/* ==========================================
   Partner & Kooperationen
   ========================================== */

.partnerbereich {
    margin: 46px 0 34px;
    padding-top: 30px;
    border-top: 1px solid #e3d9d3;
}

.partnerbereich > h2 {
    margin: 0 0 30px;
    color: #890A00;
    font-size: 1.45rem;
    font-weight: 500;
    text-align: center;
}

.partner-gruppe {
    margin-bottom: 32px;
}

.partner-gruppe h3 {
    margin: 0 0 18px;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px 20px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 135px;
    height: 90px;
}

/* Die Logos sind vollständig anklickbar, ohne das Raster zu verändern. */
.partner-verweis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.partner-verweis:focus-visible {
    outline: 2px solid #890A00;
    outline-offset: 4px;
    border-radius: 4px;
}

.partner-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.partner-logos-einzel .partner-logo {
    width: 250px;
}

.partner-logos-einzel .partner-logo img {
    max-height: 90px;
}

.partner-gruppe-sport {
    margin-top: 38px;
    margin-bottom: 12px;
}

.partner-logos-sport {
    gap: 40px;
}

.partner-logo-sport {
    width: 190px;
    height: 145px;
}

.partner-logo-sport img {
    max-width: 100%;
    max-height: 135px;
}

.partner-logo-holstein img {
    max-height: 165px;
    transform: scale(1.32);
}


/* ==========================================
   Fußbereich
   ========================================== */

footer {
    padding: 20px 28px;
    border-top: 2px solid #890A00;
    font-size: 1.05rem;
    line-height: 1.5;
}

footer p {
    margin: 0;
}

footer a {
    color: #890A00;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.fuss-trenner {
    margin: 0 0.35em;
}

.fuss-praxis,
.fuss-links {
    display: inline;
}


/* ==========================================
   Smartphone
   ========================================== */

@media (max-width: 600px) {

    .startkopf,
    main,
    footer {
        max-width: none;
    }

    .praxislogo,
    .teamfoto,
    .praxisstatus {
        margin: 0;
    }

    .praxisstatus {
        padding: 16px 12px 18px;
    }

    .telefon {
        font-size: 1.9rem;
    }

    .telefon img {
        width: 29px;
        height: 29px;
    }

    .statusmeldung {
        margin-top: 8px;
        font-size: 1.3rem;
        line-height: 1.4;
        font-weight: 500;
    }

    main {
        padding: 30px 16px;
    }

    h1 {
        margin-bottom: 24px;
        font-size: 1.8rem;
        line-height: 1.1;
    }

    .einleitung {
        font-size: 1.18rem;
        line-height: 1.55;
    }

    .accordion {
        margin-top: 30px;
    }

    .accordion-punkt {
        margin-bottom: 8px;
        border-radius: 5px;
    }

    .accordion-punkt > summary {
        padding: 17px 46px 17px 14px;
        font-size: 1.4rem;
        line-height: 1.25;
    }

    .accordion-punkt > summary::after {
        right: 14px;
        font-size: 1.8rem;
    }

    .accordion-inhalt {
        padding: 4px 14px 22px;
        font-size: 1.12rem;
    }

    .accordion-inhalt h2 {
        font-size: 1.22rem;
    }

    .unterpunkte summary {
        font-size: 1.1rem;
    }

    .behandlung h3 {
        margin-top: 26px;
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .op-bildreihe {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .op-bildreihe figcaption {
        font-size: 0.95rem;
    }




    /* Ärztliches Team auf dem Smartphone */

    .aerzte-team {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 18px 0 30px;
    }

    .arztfoto {
        aspect-ratio: 4 / 5;
    }

    .arztprofil-text {
        padding: 16px;
    }

    .arztprofil-text h3 {
        font-size: 1.22rem;
    }


    /* Praxisteam / MFA auf dem Smartphone */

    .praxisteam-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 18px 0 30px;
    }

    .mitarbeiterfoto {
        aspect-ratio: 4 / 5;
    }

    .mitarbeiterprofil-text {
        padding: 16px;
    }

    .mitarbeiterprofil-text h3 {
        font-size: 1.22rem;
    }


    /* OP-Konfigurator auf dem Smartphone */

    .op-konfigurator select {
        max-width: none;
        padding: 14px;
        font-size: 1.12rem;
    }



    /* Partner & Kooperationen auf dem Smartphone */

    .partnerbereich {
        margin: 36px 0 26px;
        padding-top: 24px;
    }

    .partnerbereich > h2 {
        margin-bottom: 26px;
        font-size: 1.3rem;
    }

    .partner-gruppe {
        margin-bottom: 28px;
    }

    .partner-logos {
        gap: 18px 22px;
    }

    .partner-logo {
        width: calc(50% - 12px);
        height: 75px;
    }

    .partner-logo img {
        max-height: 68px;
    }

    .partner-logos-einzel .partner-logo {
        width: 220px;
        height: 80px;
    }

    .partner-logos-einzel .partner-logo img {
        max-height: 78px;
    }

    .partner-gruppe-sport {
        margin-top: 34px;
    }

    .partner-logos-sport {
        flex-wrap: nowrap;
        gap: 24px;
    }

    .partner-logo-sport {
        width: calc(50% - 12px);
        height: 120px;
    }

    .partner-logo-sport img {
        max-width: 100%;
        max-height: 110px;
    }

    .partner-logo-holstein img {
        max-height: 130px;
        transform: scale(1.30);
    }


    /* Fußbereich auf dem Smartphone */

    footer {
        padding: 18px 16px;
        font-size: 0.9rem;
    }

    .fuss-inhalt {
        text-align: center;
    }

    .fuss-praxis,
    .fuss-links {
        display: block;
    }

    .fuss-links {
        margin-top: 3px;
    }

    .fuss-trenner-desktop {
        display: none;
    }

    .fuss-trenner {
        margin: 0 0.2em;
    }

}