/* Footer (Neugestaltung 07.10.2026). Markup: include/footer.php.
   Überschreibt die Regeln aus custom.css, Sektion 8 (footer, footer a, footer ul ...). */

footer.pk-footer {
    background: #0076b5;
    color: #fff;
}

.pk-footer p {
    font-weight: 400;
}

.pk-footer a {
    color: #fff;
    font-size: 0.9375rem;
    line-height: 1.4;
    font-weight: 400;
    text-decoration: none;
}

.pk-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pk-footer a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.pk-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Abstand zwischen Links bewusst klein, zwischen Überschrift und Links deutlich größer */
.pk-footer li {
    margin: 0 0 0.25rem;
}

/* Fachgesellschaften: warme Fläche, Logos grau (weiße JPG-Hintergründe verschwinden per multiply) */
.pk-footer__societies {
    background: #eee9e2;
    padding: 26px 0;
    text-align: center;
}

/* Die ganze Logoreihe ist ein Link zur Qualitätssicherung (ein Link statt fünf gleicher) */
.pk-footer .pk-footer__societies-link {
    display: block;
    text-decoration: none;
}

.pk-footer .pk-footer__societies-link:focus-visible {
    outline-color: #035d8c;
}

.pk-footer__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 36px;
    margin: 0;
}

.pk-footer__logos li {
    margin: 0;
}

.pk-footer__logos img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 100%;
    filter: grayscale(1);
    opacity: 0.8;
    mix-blend-mode: multiply;
    transition: filter 0.2s, opacity 0.2s;
}

.pk-footer__logos img:hover {
    filter: none;
    opacity: 1;
}

/* Hauptbereich */
.pk-footer__main {
    padding: 48px 0 36px;
}

.pk-footer__logo img {
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
}

/* !important nötig: custom.css setzt global "p { font-size: 1.125rem !important }" */
.pk-footer__summary {
    max-width: 44ch;
    margin: 18px 0 0;
    font-size: 0.9375rem !important;
    font-weight: 300 !important;
    line-height: 1.55;
}

/* Dezente Buttons unter dem Text: heller Rand, transparent, beim Hover weiß gefüllt */
.pk-footer__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.pk-footer .pk-footer__btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.pk-footer .pk-footer__btn:hover,
.pk-footer .pk-footer__btn:focus-visible {
    background: #fff;
    border-color: #fff;
    color: #0076b5;
    text-decoration: none;
}

.pk-footer__address {
    margin: 0;
    font-style: normal;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.pk-footer__nowrap {
    white-space: nowrap;
}

/* Telefon + E-Mail als eigener Block, abgesetzt von der Adresse */
.pk-footer__address-block + .pk-footer__address-block {
    margin-top: 1rem;
}

.pk-footer a i[class^="icon-"] {
    padding: 0;
    margin-right: 8px;
    opacity: 0.85;
}

.pk-footer__title {
    margin: 0 0 1.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Rechtliches + Social, durch eine feine Linie abgesetzt */
.pk-footer__legal {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.pk-footer__legal .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 28px;
    padding-top: 18px;
    padding-bottom: 22px;
}

.pk-footer__legal ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
}

.pk-footer__legal li {
    margin: 0;
    font-size: 0.875rem;
}

.pk-footer__legal a {
    font-size: 0.875rem;
}

.pk-footer__social a {
    display: inline-flex;
    align-items: center;
}

.pk-footer__social a i[class^="icon-"] {
    margin: 0;
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .pk-footer__logos {
        gap: 14px 64px;
    }
}

/* Abstand Marke -> Linkbereich (wirkt, wo beide untereinander stehen) */
.pk-footer .pk-footer__outer {
    --bs-gutter-y: 2.5rem;
}

/* ---------- Mobil (unter 768 px) ----------
   Aufbau: Marke zentriert (Logo, Text, zwei Buttons untereinander), darunter ein
   zweispaltiges Raster mit ausgerichteten Überschriften:
       Behandlungen | Klinik
       Wissen       | Kontakt
   Links bekommen Polster (Tippfläche ~33 px), damit umbrechende Linktexte nicht mit dem
   nächsten Link verschmelzen. Rechtliches zentriert: Social, Links, Copyright. */
@media (max-width: 767.98px) {
    .pk-footer .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .pk-footer__societies {
        padding: 22px 0;
    }

    .pk-footer__logos img {
        height: 38px;
    }

    .pk-footer__main {
        padding: 40px 0 40px;
    }

    .pk-footer__brand {
        text-align: center;
    }

    .pk-footer__logo img {
        margin: 0 auto;
    }

    .pk-footer__summary {
        max-width: 34ch;
        margin: 20px auto 0;
        text-wrap: balance;
    }

    .pk-footer__buttons {
        flex-direction: column;
        max-width: 300px;
        margin: 24px auto 0;
    }

    .pk-footer .pk-footer__btn {
        padding: 12px 18px;
        font-size: 0.9375rem;
        text-align: center;
    }

    .pk-footer .pk-footer__links {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        grid-template-areas:
            "treat clinic"
            "know contact";
        gap: 36px 24px;
        margin: 0;
    }

    .pk-footer .pk-footer__links > * {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .pk-footer__col--treat { grid-area: treat; }
    .pk-footer__col--clinic { grid-area: clinic; }
    .pk-footer__col--know { grid-area: know; }
    .pk-footer__col--contact { grid-area: contact; }

    .pk-footer__title {
        margin-bottom: 1rem;
    }

    .pk-footer__links li {
        margin: 0;
    }

    .pk-footer__links li a {
        display: block;
        padding: 6px 0;
    }

    .pk-footer__legal .container {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        padding-top: 24px;
        padding-bottom: 28px;
        text-align: center;
    }

    .pk-footer__social {
        order: -1;
        justify-content: center;
        gap: 8px;
    }

    .pk-footer__social a {
        padding: 8px;
    }

    .pk-footer__legal ul:not(.pk-footer__social) {
        justify-content: center;
        gap: 2px 22px;
    }

    .pk-footer__legal ul:not(.pk-footer__social) li a {
        display: inline-block;
        padding: 6px 0;
    }

    .pk-footer__legal ul:not(.pk-footer__social) li:first-child {
        order: 2;
        flex: 0 0 100%;
        margin-top: 6px;
    }
}
