/*
Theme Name: Twenty Twenty-Five – Vorlage Einzelperson GLP Swiss
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Description: Child-Theme von Twenty Twenty-Five für Websites von GLP-Einzelpersonen. Enthält Anpassungen an theme.json, Header, Footer und Templates sowie den GLP-Schweif und Unterstützung für einen Sticky-Header.
Author: PR24
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-vorlage-einzelperson-glp-swiss
*/

/* ==========================================================================
   GLP-Schweif (weiss)
   ========================================================================== */

/* Übernommen aus "Zusätzliches CSS" (Website-Editor). */
/* Weisser, halbkreisförmiger Schweif */
.logo-schweif figure.wp-block-image {
    position: relative;
    isolation: isolate;
}

.logo-schweif figure.wp-block-image::before {
    content: "";
    position: absolute;
    top: -155px; /* vorher -135px: Schweif 20px weniger tief */
    left: -220px;
    width: calc(100% + 350px);
    height: auto;
    aspect-ratio: 2 / 1;
    background-color: #ffffff;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    z-index: -1;
    pointer-events: none;
}

/* Logo etwas tiefer, damit es mittiger im Schweif sitzt. */
.logo-schweif figure.wp-block-image img {
    transform: translateY(12px);
    transition: transform 0.25s ease;
}


/* Navigation */
@media (min-width: 782px) {
    .logo-schweif + .wp-block-group {
        flex: 0 0 auto !important;
        width: max-content !important;
    }

    .logo-schweif + .wp-block-group
    .wp-block-navigation__container {
        flex-wrap: nowrap !important;
    }
}



/* Navigation in allen Headern (auch "Header Beiträge") nicht umbrechen. */
@media (min-width: 782px) {
    header.wp-block-template-part .wp-block-navigation {
        flex-shrink: 0;
    }

    header.wp-block-template-part .wp-block-group:has(> .wp-block-navigation) {
        flex: 0 0 auto;
        width: max-content;
    }

    header.wp-block-template-part .wp-block-navigation__container {
        flex-wrap: nowrap !important;
    }
}

/* Header Beiträge: leichte Linie unten. */
.header-beitraege {
    border-bottom: 1px solid var(--wp--preset--color--accent-5, #e3ebe8);
}



/* Tablet: 768px bis 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .logo-schweif figure.wp-block-image::before {
        top: -115px; /* vorher -100px */
        left: -150px;
        width: calc(100% + 250px);
        aspect-ratio: 2 / 1;
    }
}

/* Mobile: bis 767px */
@media (max-width: 767px) {
    .logo-schweif figure.wp-block-image::before {
        top: -75px; /* vorher -60px */
        left: -95px;
        width: calc(100% + 160px);
        aspect-ratio: 2 / 1;
    }
}
