/* ==========================================================================
   # MAIN & WORDPRESS LAYOUT CLASSES
   ========================================================================== */


.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Globaler Standard-Container für reguläre Inhalte --- */

.site-main {
    overflow-x: hidden;
}

.site-main > .container {
    max-width: 1024px;
    margin: 0 auto;
}

.site-main .entry-content {
    padding-left: 2.75rem;
}

/* === FULLWIDTH BLOCKS === */
.site-main .entry-content .is-style-content-fullwidth {
    position: relative;
    overflow: hidden;
    width: calc(100vw);
    left: calc(50% - 1.375rem);
    transform: translateX(-50%);
}

.site-main .entry-content .is-style-content-fullwidth > div {
    max-width: 945px;
    margin: 0 auto;
    padding-left: 1.375rem;
}

/* --- alignsmall --- */
.site-main > .container .is-style-content-small {
    max-width: 840px;
    margin: 0 auto;
}







/* ==========================================================================
   # TYPOGRAPHY ELEMENTS
   Description: Global typographic rules and decorative accents for headings
   ========================================================================== */

/* --- H1/H2 Stacking Context for Absolute ::before Positioning --- */
.site-main h1,
.site-main h2 {
    position: relative;
    text-transform: uppercase;
}

/* --- Corporate Plus Icon: Decorative Accent Top-Left Outside Heading --- */
.site-main h1::before {
    content: '';
    position: absolute;
    top: -0.15em;
    left: -2.75rem;
    width: 35px;
    height: 35px;
    background-image: url("data:image/svg+xml,%3Csvg width='35' height='35' viewBox='0 0 35 35' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25.856 33.4067L17.4905 25.045L9.12614 33.4067C7.04133 35.4911 3.66052 35.4923 1.57571 33.4079C-0.510298 31.3222 -0.510297 27.942 1.57452 25.8575L9.94002 17.4946L1.59361 9.14249C-0.507909 7.07473 -0.534165 3.6945 1.53394 1.59334C3.60324 -0.507824 6.98286 -0.534073 9.08437 1.53368C9.10466 1.55396 9.12495 1.57305 9.14404 1.59334L17.4905 9.93952L25.8369 1.59334C27.9217 -0.491119 31.3025 -0.492312 33.3873 1.59334C35.4733 3.67779 35.4733 7.05803 33.3885 9.14249L25.0409 17.4946L33.4064 25.8575C35.5079 27.9253 35.5342 31.3055 33.4661 33.4067C31.3968 35.5078 28.0171 35.5341 25.9156 33.4663C25.8953 33.446 25.8751 33.4269 25.856 33.4067Z' fill='%23EF5214'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.site-main h2.wp-block-heading {
    
}

.site-main h2::before {
    content: '';
    position: absolute;
    top: 0 em;
    left: -2rem;
    width: 25px;
    height: 2cqb;
    background-image: url("data:image/svg+xml,%3Csvg width='35' height='35' viewBox='0 0 35 35' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25.856 33.4067L17.4905 25.045L9.12614 33.4067C7.04133 35.4911 3.66052 35.4923 1.57571 33.4079C-0.510298 31.3222 -0.510297 27.942 1.57452 25.8575L9.94002 17.4946L1.59361 9.14249C-0.507909 7.07473 -0.534165 3.6945 1.53394 1.59334C3.60324 -0.507824 6.98286 -0.534073 9.08437 1.53368C9.10466 1.55396 9.12495 1.57305 9.14404 1.59334L17.4905 9.93952L25.8369 1.59334C27.9217 -0.491119 31.3025 -0.492312 33.3873 1.59334C35.4733 3.67779 35.4733 7.05803 33.3885 9.14249L25.0409 17.4946L33.4064 25.8575C35.5079 27.9253 35.5342 31.3055 33.4661 33.4067C31.3968 35.5078 28.0171 35.5341 25.9156 33.4663C25.8953 33.446 25.8751 33.4269 25.856 33.4067Z' fill='%23EF5214'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

/* ==========================================================================
   # SPACES
   ========================================================================== */






/* ==========================================================================
   # HEADER BLOCK
   Description: Structural layout, branding dimensions, and header bar alignment
   ========================================================================== */

/* --- Site Header Background & Spacing --- */
.site-header {
    background-color: var(--wp--preset--color--background);
    padding-top: 3.125rem;
    padding-bottom: 2rem;
    overflow-x: hidden;
}

/* --- Header Bar Flex Layout --- */
.site-header .header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

/* --- Site Branding & Logo Alignment --- */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* --- Custom Logo Link --- */
.site-branding .custom-logo-link {
    display: inline-block;
    line-height: 1;
    text-decoration: none;
}

/* --- Custom Logo Image Dimensions --- */
.site-branding .custom-logo {
    display: block;
    width: 285px;
    max-width: 100%;
    height: auto;
}

/* --- Header Navigation Column Wrapper --- */
.header-navigation-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2.25rem;
    flex-grow: 1;
}

/* ==========================================================================
   # FOOTER BLOCK
   Description: Structural layout, decorative pill element, branding, and contact typography
   ========================================================================== */

/* --- Site Footer Container & Decorative Backdrop --- */
.site-footer {
    position: relative;
    background-color: var(--wp--preset--color--background);
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

/* --- Decorative Geometric Pill Accent --- */
.site-footer::after {
    content: "";
    position: absolute;
    top: 95%;
    right: 5%;
    width: 545px;
    height: 256px;
    background-color: #ededed;
    border-radius: 500px;
    transform: translateY(-50%) rotate(135deg);
    transform-origin: center center;
    pointer-events: none;
    z-index: 0;
}

/* --- Footer Content Container Stacking --- */
.site-footer .container {
    position: relative;
    z-index: 1;
}

/* --- Footer Multi-Column Layout --- */
.site-footer .footer-grid {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
}
.site-footer .footer-address,
.site-footer .footer-contact {
    margin-left: 5%;
}
.site-footer .footer-navigation {
    margin-left: auto;
}


/* --- Footer Branding & Logo --- */
.footer-brand {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}

/* --- Footer Logo Link --- */
.footer-brand .footer-logo-link {
    display: inline-block;
    line-height: 1;
    text-decoration: none;
}

/* --- Footer Logo Image Dimensions --- */
.footer-brand .footer-logo {
    display: block;
    width: 118px;
    max-width: 100%;
    height: auto;
}

/* --- Footer Address Block --- */
.footer-address {
    flex-shrink: 0;
}

/* --- Footer Contact Block --- */
.footer-contact {
    flex-shrink: 0;
}

/* --- Footer Typography & Paragraph Resets --- */
.footer-address p,
.footer-contact p {
    margin: 0;
    color: var(--wp--preset--color--corporate-blue);
    font-family: var(--wp--preset--font-family--ibm-plex-sans);
    font-size: 14px;
    line-height: 1.5;
}

/* --- Footer Strong Labels --- */
.footer-address strong,
.footer-contact strong {
    font-weight: 700;
    color: var(--wp--preset--color--corporate-blue);
}

/* --- Footer Interactive Contact Links --- */
.footer-contact a {
    color: var(--wp--preset--color--corporate-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

/* --- Footer Contact Link Hover States --- */
.footer-contact a:hover,
.footer-contact a:focus {
    color: var(--wp--preset--color--corporate-orange);
    text-decoration: underline;
}

/* ==========================================================================
   # RESPONSIVE
   Description: Breakpoint adjustments for theme layout blocks
   ========================================================================== */

@media only screen and (min-width: 1600px) {

}

@media only screen and (max-width: 1400px) {

}

@media only screen and (max-width: 1280px) {

}

@media only screen and (max-width: 990px) {

    /* --- Tablet Header Spacing --- */
    .site-header {
        padding-top: 2rem;
        padding-bottom: 1.5rem;
    }

    /* --- Tablet Logo Dimensions --- */
    .site-branding .custom-logo {
        width: 240px;
    }

    /* --- Tablet Navigation Wrapper Reset --- */
    .header-navigation-wrapper {
        gap: 0;
    }

    /* --- Tablet Footer Spacing --- */
    .site-footer {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    /* --- Tablet Footer Multi-Column Grid --- */
    .site-footer .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 2rem;
    }

    /* --- Tablet Decorative Accent Position --- */
    .site-footer::after {
        right: -80px;
        opacity: 0.5;
    }
}

@media only screen and (max-width: 768px) {

    /* --- Mobile Header Spacing --- */
    .site-header {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }

    /* --- Mobile Header Bar Vertical Center --- */
    .site-header .header-bar {
        align-items: center;
    }

    /* --- Mobile Logo Dimensions --- */
    .site-branding .custom-logo {
        width: 190px;
    }

    /* --- Mobile Navigation Wrapper Alignment --- */
    .header-navigation-wrapper {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        flex-grow: 1;
    }

    /* --- Mobile Footer Spacing --- */
    .site-footer {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media only screen and (max-width: 650px) {

    /* --- Small Mobile Logo Dimensions --- */
    .site-branding .custom-logo {
        width: 160px;
    }

    /* --- Small Mobile Footer Spacing --- */
    .site-footer {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    /* --- Small Mobile Footer Single-Column Stack --- */
    .site-footer .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    /* --- Small Mobile Decorative Accent Suppress --- */
    .site-footer::after {
        display: none;
    }
}

/* ==========================================================================
   # THÜRINGER ERNÄHRUNGSNETZWERK – LAYOUT-HILFSKLASSEN
   Für redaktionell zusammengesetzte Gutenberg-Bereiche (Columns/Group-Blöcke).
   Klassen über "Erweitert -> Zusätzliche CSS-Klasse(n)" im Blockinspektor
   setzen. Siehe README-Netzwerk-Theme.md für die vollständige Anleitung.
   ========================================================================== */

/* --- "Veranstaltungen des Netzwerkes": grüne Blob-Fläche mit 2 Karten --- */
.te-events-wrap {
    position: relative;
    background: var(--network-green);
    border-radius: 48px;
    padding: 2.5rem 2.5rem 4rem;
    margin: 1.5rem 0 3rem;
}

.te-event-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem 1.75rem 1.5rem;
    height: 100%;
}

.te-event-date {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border: 1px solid var(--network-blue);
    border-radius: 30px;
    color: var(--network-blue);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.te-event-card h3,
.te-event-card .wp-block-heading {
    color: var(--network-navy);
    font-size: 1.0625rem;
    margin-bottom: 0.6rem;
}

.te-event-card p {
    color: var(--network-navy);
    font-size: 0.875rem;
    line-height: 1.5;
}

.te-event-link {
    display: inline-flex;
    align-items: center;
    color: var(--network-blue);
    text-decoration: none;
    font-weight: 700;
    margin-top: 0.75rem;
}

.te-event-link::after {
    content: "\2192";
    margin-left: 0.5rem;
}

.te-events-more {
    position: absolute;
    left: 50%;
    bottom: -1.1rem;
    transform: translateX(-50%);
}

.te-events-more a.wp-block-button__link,
.te-events-more .button {
    background: var(--network-blue-dark);
    border-radius: 40px;
    padding: 0.65rem 2rem;
}

/* --- "Veranstaltungen der Branche": Bild-Karten mit Datums-Pille --- */
.te-branch-card {
    background: var(--network-blue-bg);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
}

.te-branch-card-media {
    position: relative;
}

.te-branch-card-media img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.te-branch-date {
    position: absolute;
    left: 1rem;
    bottom: -0.9rem;
    background: var(--network-green);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
}

.te-branch-card-body {
    padding: 1.75rem 1.5rem 1.5rem;
}

.te-branch-card-body h3,
.te-branch-card-body .wp-block-heading {
    color: var(--network-blue-dark);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.te-branch-card-body p {
    color: var(--network-navy);
    font-size: 0.875rem;
    line-height: 1.5;
}

.te-branch-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--network-blue);
    text-decoration: none;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* --- Allgemeine Section-Wellen (z. B. vor dem Footer) --- */
.te-wave-top {
    position: relative;
    margin-top: -1px;
}

.te-wave-top::before {
    content: "";
    display: block;
    height: 70px;
    clip-path: ellipse(70% 100% at 50% 100%);
}

.te-wave-top.is-blue-dark::before {
    background: var(--network-blue-dark);
}

.te-wave-top.is-gradient::before {
    background: var(--network-wave-gradient);
}

/* --- Optionaler Pill-Button im Topmenü (CSS-Klasse "menu-item-button" am Menüpunkt) --- */
.top-menu .menu-item-button > a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: var(--network-blue-dark);
    color: #ffffff !important;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none !important;
}

.top-menu .menu-item-button > a:hover {
    background: var(--network-blue);
}

@media only screen and (max-width: 768px) {
    .te-events-wrap {
        border-radius: 24px;
        padding: 1.75rem 1.5rem 3rem;
    }
}

/* ==========================================================================
   # NATIVES WORDPRESS-ACCORDION (core/details)
   Überschreibt das generische Pico-Reset aus style.css für "Aufklapp"-Listen
   (z. B. "Ziele, Leistungen & Aufgaben"). Einfach mehrere Details-Blöcke
   hintereinander im Editor einfügen ("Details" bzw. "Mehr" im Blockmenü).
   ========================================================================== */

.entry-content details.wp-block-details.te-accordion-item,
.te-accordion details.wp-block-details {
    margin: 0;
    padding: 0;
    border: none;
    border-bottom: 1px solid var(--network-blue-bg);
}

.te-accordion details.wp-block-details:first-child {
    border-top: 1px solid var(--network-blue-bg);
}

.te-accordion details.wp-block-details summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 2.25rem 1rem 0;
    color: var(--network-navy);
    font-weight: 700;
    font-size: 0.9375rem;
    list-style: none;
    cursor: pointer;
}

.te-accordion details.wp-block-details summary::-webkit-details-marker {
    display: none;
}

.te-accordion details.wp-block-details summary::marker {
    content: "";
}

.te-accordion details.wp-block-details summary::before {
    content: "+";
    flex: 0 0 auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--network-blue);
    color: #ffffff;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.te-accordion details.wp-block-details[open] summary::before {
    content: "\2212"; /* Minus-Zeichen */
    background: var(--network-blue-dark);
}

.te-accordion details.wp-block-details summary:focus-visible {
    outline: 2px solid var(--network-blue);
    outline-offset: 2px;
}

.te-accordion details.wp-block-details > *:not(summary) {
    margin: 0 0 1rem 2.85rem;
    color: var(--network-navy);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.te-accordion details.wp-block-details[open] > *:not(summary):last-child {
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   # PROFIL-/DETAILSEITEN: WEITERE HILFSKLASSEN
   ========================================================================== */

/* --- Meta-Liste (z. B. Mitgliedsprofil: "Mitglied seit", "Gründungsjahr" ...) --- */
.te-meta-list p {
    margin: 0 0 0.9rem;
    color: var(--network-navy);
    font-size: 0.875rem;
    line-height: 1.5;
}

.te-meta-list p:last-child {
    margin-bottom: 0;
}

.te-meta-list strong {
    display: block;
    color: var(--network-blue-dark);
    font-weight: 700;
    margin-bottom: 0.15rem;
}

/* --- Zweifarbige Überschrift (z. B. "Unsere Vision – Hier vernetzt...") ---
   Text im Editor markieren und über die Format-Toolbar "Hervorheben" die
   Farbe "Netzwerk Blau" zuweisen, um den zweiten Teil abzusetzen. --- */
.te-heading-lead {
    color: var(--network-navy);
}

.te-heading-lead .te-heading-accent {
    color: var(--network-blue);
    font-weight: 400;
}
