/*
 Theme Name:   SVS Theme 2026
 Theme URI:
 Description:  Theme für den SV Schalding-Heining e.V.
 Author:
 Author URI:
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  svs-theme-2026
*/

/* ==========================================================================
   Lokale Fonts
   ========================================================================== */

@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/roboto-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/roboto-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/roboto-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/roboto-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    --site-max-width: 90rem;
    --site-padding: 2rem;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #c8d5c0;
    overflow-x: hidden;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    width: 100%;
}

/* Full-width alignment support */
.site-content > .alignfull,
.site-content .alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.site-content > .alignwide,
.site-content .alignwide {
    width: 100%;
    max-width: var(--site-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--site-padding);
    padding-right: var(--site-padding);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem var(--site-padding);
    background: transparent;
    transition: background 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.site-header.scrolled {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.25) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.site-header a {
    color: #fff;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--site-max-width);
    margin: 0 auto;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.site-branding:hover {
    text-decoration: none;
}

.site-logo {
    height: 32px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Platz für den fixed Header */
.site-content {
    padding-top: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.75rem;
}

.main-navigation .sub-menu ul,
.main-navigation .sub-menu {
    gap: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.main-navigation a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Desktop Dropdown */
.main-navigation .sub-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: -0.75rem;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    padding: 0.35rem 0;
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

/* Unsichtbare Brücke zwischen Menüpunkt und Dropdown */
.main-navigation > ul > .menu-item-has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.75rem;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li.is-focused > .sub-menu,
.main-navigation li.is-touched > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.main-navigation .sub-menu a {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    white-space: nowrap;
    color: #555;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1.4;
}

.main-navigation .sub-menu a:hover {
    background: #f5f7f4;
    color: #2e7d32;
}

/* Dropdown Pfeil-Indikator */
.main-navigation .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(255, 255, 255, 0.6);
    margin-left: 0.4rem;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.main-navigation .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Sub-Sub-Dropdown */
.main-navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
    margin-left: 0.25rem;
}

.main-navigation .sub-menu .menu-item-has-children > a::after {
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid rgba(0, 0, 0, 0.3);
    margin-left: auto;
    padding-left: 1rem;
}

/* Sub-Menu Toggle Arrow (mobile, hidden on desktop) */
.sub-menu-toggle {
    display: none;
}

/* Hamburger Button (hidden on desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger-line {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */

@media (max-width: 48rem) {
    .menu-toggle {
        display: block;
        position: fixed;
        top: 0.5rem;
        right: var(--site-padding);
        z-index: 1003;
    }

    .main-navigation {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        z-index: 1001;
        padding: 5rem 2rem 2rem;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .main-navigation.is-open {
        display: block;
    }

    .menu-toggle {
        z-index: 1002;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .main-navigation a {
        padding: 0.85rem 0;
        font-size: 1.1rem;
    }

    /* Dropdown-Pfeil ausblenden auf Mobile */
    .main-navigation .menu-item-has-children > a::after {
        display: none;
    }

    /* Sub-Menu Toggle Arrow */
    .sub-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
        top: 0;
        width: 48px;
        height: 48px;
        background: none;
        border: none;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        transition: transform 0.3s ease, color 0.2s ease;
    }

    .sub-menu-toggle:hover {
        color: #fff;
    }

    .sub-open > .sub-menu-toggle {
        transform: rotate(180deg);
    }

    /* Sub-Menu hidden by default on mobile */
    .main-navigation .sub-menu {
        display: none;
        position: static;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        min-width: 0;
        opacity: 1;
        transform: none;
    }

    .main-navigation .sub-open > .sub-menu {
        display: flex;
    }

    /* Override hover behavior on mobile */
    .main-navigation li:hover > .sub-menu {
        display: none;
    }

    .main-navigation .sub-open:hover > .sub-menu,
    .main-navigation .sub-open > .sub-menu {
        display: flex;
    }

    .main-navigation .sub-menu a {
        padding-left: 1.5rem;
        font-size: 1rem;
        white-space: normal;
    }

    .main-navigation .sub-menu a:hover {
        background: none;
    }

    .main-navigation .sub-menu .sub-menu a {
        padding-left: 3rem;
    }

    /* Social Icons im Mobile-Menue verstecken (werden per JS extrahiert) */
    .menu-item-social {
        display: none !important;
    }

    /* Mobile Social Icons: oben links, sichtbar wenn Menue offen */
    .mobile-social-icons {
        display: none;
        position: fixed;
        top: 0.5rem;
        left: var(--site-padding);
        z-index: 1004;
        gap: 0.5rem;
    }

    body.menu-open .mobile-social-icons {
        display: flex;
    }

    .mobile-social-icons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        color: #fff;
    }

    .mobile-social-icons a:first-child {
        background: #1877f2;
    }

    .mobile-social-icons a:last-child {
        background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        height: 100%;
        touch-action: none;
    }

    .main-navigation.is-open {
        touch-action: auto;
    }
}

/* ==========================================================================
   Content
   ========================================================================== */

/* Standard-Seiten (Impressum, Datenschutz etc.) */
.page-content-wrapper {
    padding: 1.5rem var(--site-padding) 2rem;
}

.page-content-inner {
    max-width: var(--site-max-width);
    margin: 0 auto;
}

.page-article {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    max-width: 900px;
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    margin: 0 0 0.5rem;
    font-size: 2rem;
}

.entry-meta {
    color: #666;
    font-size: 0.875rem;
}

.entry-content {
    margin-bottom: 2rem;
}

/* Default content container alignment */
.entry-content > *:not(.alignfull):not(.alignwide):not(.wp-block-cover):not([class*="hero-overlap-cards"]) {
    max-width: var(--site-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--site-padding);
    padding-right: var(--site-padding);
}

.entry-content > .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.entry-content > .wp-block-cover.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* ==========================================================================
   Homepage (T1)
   ========================================================================== */

/* Homepage: Logo in Navigation ausblenden */
.home .site-logo,
.home .site-title {
    display: none;
}

.home .site-branding {
    pointer-events: none;
}

/* Hero */
.home-hero {
    position: relative;
    min-height: 85vh;
    background: url('') center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.home-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.home-hero-logo {
    height: 200px;
    width: auto;
    margin: 0 auto 1.25rem;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}

.home-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
}

.home-hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: #ccc;
    margin-top: 0.75rem;
}

/* Quick-Access Cards */
.home-cards {
    padding: 0 var(--site-padding);
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.home-cards-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: var(--site-max-width);
    margin: 0 auto;
}

.home-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: #333;
    display: block;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.home-card-icon {
    width: 50px;
    height: 50px;
    background: #2e7d32;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
}

.home-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #1b5e20;
}

.home-card p {
    font-size: 0.88rem;
    color: #666;
    margin: 0;
}

/* News Section */
.home-news-section {
    padding: 0 var(--site-padding);
    margin: 2.5rem 0;
}

.home-news-inner {
    max-width: var(--site-max-width);
    margin: 0 auto;
}

.home-news-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 3px solid #2e7d32;
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
}

.home-news-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: #1b5e20;
}

.home-news-all {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2e7d32;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-news-all:hover {
    color: #1b5e20;
    text-decoration: none;
}

.home-news-all-bottom {
    display: none;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2e7d32;
    text-decoration: none;
}

.home-news-all-bottom:hover {
    color: #1b5e20;
}

.home-news-section .news-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.home-news-section .news-card-image {
    aspect-ratio: 4 / 3;
    height: auto;
}

/* Homepage Responsive */
@media (max-width: 48rem) {
    .home-hero {
        min-height: 60vh;
    }

    .home-hero-logo {
        height: 100px;
    }

    .home-hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .home-cards {
        margin-top: -40px;
    }

    .home-cards-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .home-card {
        padding: 1.25rem 0.75rem;
    }

    .home-card h3 {
        font-size: 0.9rem;
    }

    .home-card p {
        font-size: 0.8rem;
    }

    /* Hover-Transforms auf Touch-Geraeten deaktivieren */
    .home-card:hover,
    a.news-card:hover,
    a.uebersicht-kachel:hover,
    .site-partners-item:hover,
    .single-navigation a:hover,
    .schnellzugriff-card:hover,
    a.sidebar-link-card:hover {
        transform: none !important;
    }

    .home-news-section .news-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .home-news-section a.news-card {
        flex-direction: row;
    }

    .home-news-section .news-card-image {
        width: 120px;
        aspect-ratio: 4 / 3;
        flex-shrink: 0;
    }

    .home-news-section .news-card-body {
        padding: 0.75rem;
    }

    .home-news-section .news-card-body h3 {
        font-size: 0.85rem;
    }

    .home-news-all {
        display: none;
    }

    .home-news-all-bottom {
        display: block;
    }
}


/* ==========================================================================
   Einzelbeitrag (single.php)
   ========================================================================== */

/* Artikel */
.single-article {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.single-article-header {
    padding: 2rem 2rem 1rem;
}

.single-article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2e7d32;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.single-article-category:hover {
    text-decoration: underline;
}

.single-article-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.single-article-date {
    font-size: 0.85rem;
    color: #999;
}

.single-featured-image {
    padding: 0 2rem;
}

.single-featured-image .news-card-image {
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
}

@media (max-width: 48rem) {
    .single-featured-image {
        padding: 0 1.5rem;
    }
}

.single-content {
    padding: 2rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #333;
}

.single-content h2 {
    color: #2e7d32;
    margin-top: 2rem;
}

.single-content h3 {
    color: #1b5e20;
    margin-top: 1.5rem;
}

.single-content p {
    margin-bottom: 1.25rem;
}

.single-content img {
    border-radius: 6px;
    margin: 1rem 0;
}

.single-content a {
    color: #2e7d32;
    text-decoration: underline;
}

blockquote {
    border-left: 4px solid #2e7d32;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f5f9f5;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #555;
}

/* Navigation Vorher/Nachher */
.single-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.single-nav-prev,
.single-nav-next {
    min-width: 0;
}

.single-nav-next {
    text-align: right;
}

.single-navigation a {
    display: block;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.single-navigation a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.single-nav-label {
    display: block;
    font-size: 0.8rem;
    color: #2e7d32;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.single-nav-title {
    display: block;
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.single-navigation a:hover .single-nav-title {
    color: #2e7d32;
}

/* Zurück-Link */
.single-back-link {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    color: #2e7d32;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #2e7d32;
    border-radius: 2rem;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}

.single-back-link:hover {
    background: #2e7d32;
    color: #fff;
    text-decoration: none;
}

/* Sidebar: Weitere Nachrichten */
.sidebar-related-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.sidebar-related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-related-item:first-child {
    padding-top: 0;
}

.sidebar-related-item:hover {
    text-decoration: none;
}

.sidebar-related-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 44px;
    border-radius: 4px;
    overflow: hidden;
}

.sidebar-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-related-body {
    flex: 1;
    min-width: 0;
}

.sidebar-related-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-related-item:hover .sidebar-related-title {
    color: #2e7d32;
}

.sidebar-related-body time {
    font-size: 0.75rem;
    color: #999;
}

/* Kategorie-Badge als Link im Header */
a.mannschaft-header-badge {
    text-decoration: none;
    color: #fff;
}

a.mannschaft-header-badge:hover {
    text-decoration: none;
    opacity: 0.9;
}

@media (max-width: 48rem) {
    .single-content {
        padding: 1.5rem;
    }

    .single-navigation {
        grid-template-columns: 1fr;
    }

    .single-nav-next {
        text-align: left;
    }
}

/* ==========================================================================
   404 Seite
   ========================================================================== */

.error-404-page {
    padding: 3rem var(--site-padding);
}

.error-404-inner {
    max-width: var(--site-max-width);
    margin: 0 auto;
}

.error-404-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-404-content p {
    font-size: 1.1rem;
    color: #555;
    margin: 0 0 1.5rem;
}

.error-404-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-404-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #2e7d32;
    color: #2e7d32;
    transition: all 0.2s ease;
}

.error-404-btn:hover {
    background: #2e7d32;
    color: #fff;
    text-decoration: none;
}

.error-404-btn-primary {
    background: #2e7d32;
    color: #fff;
}

.error-404-btn-primary:hover {
    background: #1b5e20;
    border-color: #1b5e20;
}

/* ==========================================================================
   Vereinsseite
   ========================================================================== */

/* Sektionen */
.verein-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.verein-section h2 {
    display: inline-block;
    font-size: 1.15rem;
    color: #2e7d32;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2e7d32;
}

/* Ohne Sidebar: Content schmaler zentriert */
.verein-no-sidebar {
    grid-template-columns: 1fr !important;
    max-width: 900px;
}

/* Fakten */
.verein-fakten {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.verein-fakt {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.verein-fakt:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.verein-fakt:first-child {
    padding-top: 0;
}

.verein-fakt-label {
    color: #555;
    font-weight: 500;
}

.verein-fakt-value {
    color: #333;
    font-weight: 600;
    text-align: right;
}

/* Personen-Grid */
.verein-personen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.verein-person {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem;
    background: #f9faf8;
    border: 1px solid #e0e5dd;
    border-radius: 6px;
}

.verein-person-foto {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verein-person-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.verein-person-placeholder {
    color: #ccc;
}

.verein-person-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.85rem;
}

.verein-person-info strong {
    font-size: 0.95rem;
    color: #333;
}

.verein-person-rolle {
    color: #2e7d32;
    font-weight: 500;
}

.verein-person-info a {
    color: #2e7d32;
    text-decoration: none;
}

.verein-person-info a:hover {
    text-decoration: underline;
}

/* Galerie */
.verein-galerie {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.verein-galerie-item {
    margin: 0;
}

.verein-galerie-image {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
}

.verein-galerie-image img {
    height: 100%;
    width: auto;
    display: block;
    position: relative;
    z-index: 1;
    object-fit: contain;
}

.verein-galerie-item figcaption {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.4rem;
    text-align: center;
}

/* Timeline */
.verein-timeline {
    position: relative;
    padding-left: 1.5rem;
}

.verein-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #2e7d32, #c8d5c0);
    border-radius: 2px;
}

.verein-timeline-entry {
    position: relative;
    padding: 0 0 1.25rem 1rem;
}

.verein-timeline-entry:last-child {
    padding-bottom: 0;
}

.verein-timeline-entry::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 0.35rem;
    width: 10px;
    height: 10px;
    background: #2e7d32;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #2e7d32;
}

.verein-timeline-jahr {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2e7d32;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.verein-timeline-text {
    font-size: 0.9rem;
    color: #333;
    margin-top: 0.2rem;
    line-height: 1.5;
}

/* Sidebar Link Cards */
a.verein-sidebar-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a.verein-sidebar-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

a.verein-sidebar-link-card span {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2e7d32;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

a.verein-sidebar-link-card svg {
    color: #ccc;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

a.verein-sidebar-link-card:hover svg {
    color: #2e7d32;
    transform: translateX(3px);
}

/* Verwandte Seiten Links */
.verein-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.verein-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f9faf8;
    border: 1px solid #e0e5dd;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.verein-sidebar-link:hover {
    background: #f0f4ee;
    border-color: #2e7d32;
    text-decoration: none;
}

.verein-sidebar-link span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
}

.verein-sidebar-link:hover span {
    color: #2e7d32;
}

.verein-sidebar-link svg {
    color: #ccc;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.verein-sidebar-link:hover svg {
    color: #2e7d32;
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 48rem) {
    /* Vereinsseite Mobile Reihenfolge */
    .abteilung-beschreibung     { order: 1; }
    .verein-fakten-card         { order: 2; }
    .verein-sidebar-link-card   { order: 3; }
    .verein-personen-card       { order: 4; }
    .verein-galerie-card        { order: 5; }
    .verein-timeline-card       { order: 6; }
    .sidebar-verwandt           { order: 8; }
    .sidebar-geschaeftsstelle   { order: 9; }

    .verein-personen-grid {
        grid-template-columns: 1fr;
    }

    .verein-galerie {
        grid-template-columns: 1fr;
    }

    .verein-person {
        padding: 0.5rem;
    }

    .verein-person-foto {
        width: 56px;
        height: 56px;
    }
}

/* ==========================================================================
   Dokumente
   ========================================================================== */

.dokumente-page {
    padding: 1.5rem var(--site-padding) 2rem;
}

.dokumente-inner {
    max-width: var(--site-max-width);
    margin: 0 auto;
}

.dokumente-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

a.dokument-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e0e5dd;
    padding: 1.25rem;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.dokument-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #2e7d32;
    text-decoration: none;
}

.dokument-card-image {
    overflow: hidden;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
}

.dokument-card-image img {
    width: 100%;
    height: auto;
}

.dokument-card-placeholder {
    color: #ccc;
    padding: 3rem;
    text-align: center;
    width: 100%;
}

.dokument-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.dokument-card-body strong {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2e7d32;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2e7d32;
}

.dokument-card-download {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #2e7d32;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border: 1px solid #2e7d32;
    border-radius: 2rem;
    align-self: center;
    transition: background 0.2s ease, color 0.2s ease;
}

a.dokument-card:hover .dokument-card-download {
    background: #2e7d32;
    color: #fff;
}

.dokument-card-icon {
    display: none;
}

@media (max-width: 64rem) {
    .dokumente-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 48rem) {
    .dokumente-grid {
        grid-template-columns: 1fr;
    }

    a.dokument-card {
        flex-direction: row;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .dokument-card-image {
        width: 80px;
        flex-shrink: 0;
    }

    .dokument-card-body {
        align-items: flex-start;
        text-align: left;
        gap: 0.5rem;
        flex: 1;
        justify-content: center;
    }

    a.dokument-card:hover {
        transform: none !important;
    }

    .dokument-card-body strong {
        font-size: 0.9rem;
        padding-bottom: 0.35rem;
    }

    .dokument-card-download {
        display: none;
    }

    .dokument-card-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: center;
        flex-shrink: 0;
        width: 56px;
        height: 56px;
        border: 2px solid #2e7d32;
        border-radius: 10px;
        color: #2e7d32;
        margin-left: auto;
    }

    .dokument-card-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* ==========================================================================
   Nachrichtenseite
   ========================================================================== */

.nachrichten-page {
    padding: 1rem var(--site-padding) 2rem;
}

.nachrichten-inner {
    max-width: var(--site-max-width);
    margin: 0 auto;
}

/* Kategorie-Filter */
.nachrichten-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.nachrichten-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.nachrichten-filter-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nachrichten-filter-btn:hover {
    color: #2e7d32;
    border-color: #2e7d32;
    text-decoration: none;
    background: #f5f9f5;
}

.nachrichten-filter-btn.is-active {
    color: #fff;
    background: #2e7d32;
    border-color: #2e7d32;
}

.nachrichten-filter-btn.is-active:hover {
    background: #1b5e20;
    border-color: #1b5e20;
    color: #fff;
}

.nachrichten-filter-sub {
    display: none;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.nachrichten-filter-sub.is-open {
    display: flex;
}

.nachrichten-filter-btn-sub {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    background: #f5f5f5;
    border-color: #e0e0e0;
}

/* Ergebnis-Info */
.nachrichten-result-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #555;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.nachrichten-reset {
    color: #999;
    text-decoration: none;
    font-size: 0.85rem;
}

.nachrichten-reset:hover {
    color: #c62828;
    text-decoration: none;
}

/* News Grid */
.nachrichten-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.nachrichten-grid .news-card-image {
    aspect-ratio: 4 / 3;
    height: auto;
}

.nachrichten-grid .news-card-body p {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: #666;
}

.news-card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #2e7d32;
    margin-bottom: 0.15rem;
}

/* Pagination */
.nachrichten-pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2rem;
}

.nachrichten-page-link a,
.nachrichten-page-link span {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nachrichten-page-link a {
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
}

.nachrichten-page-link a:hover {
    color: #2e7d32;
    border-color: #2e7d32;
    text-decoration: none;
}

.nachrichten-page-link span.current {
    color: #fff;
    background: #2e7d32;
    border: 1px solid #2e7d32;
}

.nachrichten-page-link span.dots {
    color: #999;
    border: none;
    background: none;
}

/* Leerer Zustand */
.nachrichten-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
}

.nachrichten-empty p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

@media (max-width: 64rem) {
    .nachrichten-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 50rem) {
    .nachrichten-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 48rem) {
    .nachrichten-grid {
        grid-template-columns: 1fr;
    }

    .nachrichten-filter {
        gap: 0.35rem;
    }

    .nachrichten-result-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 2.5rem var(--site-padding) 1.5rem;
    text-align: center;
}

.site-footer > * {
    max-width: var(--site-max-width);
    margin-left: auto;
    margin-right: auto;
}

.site-footer a {
    color: #fff;
}

/* Partner im Footer */
.site-partners-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    opacity: 0.5;
}

.site-partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 3rem;
}

.site-partners-item {
    flex-shrink: 0;
    background: #dde3da;
    border-radius: 6px;
    width: 140px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.site-partners-item {
    text-decoration: none;
}

.site-partners-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.site-partners-item img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin: 1.5rem auto;
}

/* Footer Vereinsdaten */
.footer-info-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-info-col a {
    color: #fff;
    text-decoration: none;
}

.footer-info-col a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.footer-social-facebook {
    background: #1877f2;
}

.footer-social-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social a:hover {
    transform: scale(1.15);
    filter: brightness(1.15);
}

@media (max-width: 48rem) {
    .footer-info-grid {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

.site-info {
    font-size: 0.8rem;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-legal-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.25rem;
}

.footer-legal-menu li::before {
    content: '·';
    margin-right: 0.25rem;
}

.footer-legal-menu a {
    color: #fff;
    text-decoration: none;
}

.footer-legal-menu a:hover {
    text-decoration: underline;
}

/* Social Icons im Hauptmenue */
.menu-item-social {
    margin-left: -0.75rem;
}

.menu-item-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.menu-item-facebook a {
    background: #1877f2;
}

.menu-item-instagram a {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.menu-item-social a:hover {
    transform: scale(1.15);
    filter: brightness(1.15);
}

/* ==========================================================================
   Hero Overlap Cards
   ========================================================================== */

/* Hero Cards - wp-block-columns with negative margin */
.entry-content > .wp-block-columns[style*="margin-top:-50px"],
.entry-content > .wp-block-columns[style*="margin-top: -50px"],
.entry-content > .wp-block-columns[style*="margin-top:-80px"],
.entry-content > .wp-block-columns[style*="margin-top: -80px"],
.entry-content > .wp-block-columns[style*="margin-top:-5rem"],
.entry-content > .wp-block-columns[style*="margin-top: -5rem"] {
    position: relative !important;
    z-index: 99 !important;
    max-width: var(--site-max-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 1.5rem !important;
    align-items: stretch !important;
}

/* Equal height cards */
.entry-content > .wp-block-columns[style*="margin-top:-50px"] > .wp-block-column,
.entry-content > .wp-block-columns[style*="margin-top: -50px"] > .wp-block-column,
.entry-content > .wp-block-columns[style*="margin-top:-80px"] > .wp-block-column,
.entry-content > .wp-block-columns[style*="margin-top: -80px"] > .wp-block-column {
    display: flex !important;
    flex-direction: column !important;
}

.entry-content > .wp-block-columns[style*="margin-top:-50px"] > .wp-block-column > .wp-block-group,
.entry-content > .wp-block-columns[style*="margin-top: -50px"] > .wp-block-column > .wp-block-group,
.entry-content > .wp-block-columns[style*="margin-top:-80px"] > .wp-block-column > .wp-block-group,
.entry-content > .wp-block-columns[style*="margin-top: -80px"] > .wp-block-column > .wp-block-group {
    flex: 1 !important;
}

/* Card hover effects - only on the card itself, not nested elements */
.entry-content > .wp-block-columns[style*="margin-top:-50px"] > .wp-block-column > .wp-block-group,
.entry-content > .wp-block-columns[style*="margin-top: -50px"] > .wp-block-column > .wp-block-group,
.entry-content > .wp-block-columns[style*="margin-top:-80px"] > .wp-block-column > .wp-block-group,
.entry-content > .wp-block-columns[style*="margin-top: -80px"] > .wp-block-column > .wp-block-group {
    transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}

.entry-content > .wp-block-columns[style*="margin-top:-50px"] > .wp-block-column > .wp-block-group:hover,
.entry-content > .wp-block-columns[style*="margin-top: -50px"] > .wp-block-column > .wp-block-group:hover,
.entry-content > .wp-block-columns[style*="margin-top:-80px"] > .wp-block-column > .wp-block-group:hover,
.entry-content > .wp-block-columns[style*="margin-top: -80px"] > .wp-block-column > .wp-block-group:hover {
    box-shadow: 0 0.5rem 1.875rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-0.25rem) !important;
}

/* Cover + Cards Stacking Context Fix */
.entry-content > .wp-block-cover {
    position: relative !important;
    z-index: 1 !important;
}

.entry-content > .wp-block-columns[style*="margin-top:-80px"],
.entry-content > .wp-block-columns[style*="margin-top: -80px"],
.entry-content > .wp-block-columns[style*="margin-top:-5rem"],
.entry-content > .wp-block-columns[style*="margin-top: -5rem"] {
    position: relative !important;
    z-index: 10 !important;
}

/* ==========================================================================
   Hero Cover Content Alignment
   ========================================================================== */

/* Hero Cover inner content alignment */
.wp-block-cover > .wp-block-cover__inner-container {
    width: 100%;
    max-width: var(--site-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--site-padding);
    padding-right: var(--site-padding);
    box-sizing: content-box;
}

/* ==========================================================================
   Hero Cover Responsive
   ========================================================================== */

@media (max-width: 48rem) {
    :root {
        --site-padding: 1rem;
    }

    .wp-block-cover h1 {
        font-size: 2rem !important;
    }

    .wp-block-cover .wp-block-buttons {
        flex-direction: column;
    }
}

/* ==========================================================================
   Mannschaftsseite (T2)
   ========================================================================== */

.mannschaft-page {
    padding-top: 0;
}

/* Sidebar: gap nur zwischen sichtbaren Elementen */


/* Sidebar Team-Info Card */
.sidebar-team-info {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.6s ease, transform 0.6s ease, max-height 0.6s ease, padding 0.6s ease, margin 0.6s ease;
    overflow: hidden;
    max-height: 0;
    padding: 0 1.25rem !important;
    margin: 0 !important;
}

.sidebar-team-info.visible {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
    padding: 1.25rem !important;
    margin-bottom: 1.5rem !important;
}

.sidebar-team-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1b5e20;
    letter-spacing: 0.03em;
}

.sidebar-team-liga {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.sidebar-team-verein {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.15rem;
}

.mannschaft-header {
    display: flex;
    min-height: 340px;
    overflow: hidden;
}

.mannschaft-header-image {
    flex: 1.618;
    background: #1a1a1a url('') center center / cover no-repeat;
    position: relative;
}

.mannschaft-header-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.mannschaft-header-content {
    flex: 1;
    min-width: 360px;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3.5rem 1.25rem 1.5rem;
    position: relative;
    gap: 0.75rem;
}

.mannschaft-header-content::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 40px;
    background: rgba(0, 0, 0, 0.88);
    transform: skewX(-3deg);
}

.mannschaft-header-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.mannschaft-header-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
}

.mannschaft-header-line-v {
    width: 2px;
    height: 64px;
    background: linear-gradient(to bottom, #66bb6a, #2e7d32);
    flex-shrink: 0;
}

.mannschaft-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mannschaft-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.mannschaft-header-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    font-weight: 400;
}

.mannschaft-header-badge {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    position: relative;
    z-index: 1;
}

.mannschaft-layout {
    padding: 1rem var(--site-padding) 2rem;
}

.mannschaft-layout-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    max-width: var(--site-max-width);
    margin: 0 auto;
}

/* Content (links) */
.mannschaft-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mannschaft-freitext {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.mannschaft-fupa-widget {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.mannschaft-fupa-widget .fp-widget-footer {
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.sidebar-fupa .fp-widget-footer {
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

/* News */
.mannschaft-news {
    background: #fff;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.mannschaft-news h2 {
    display: inline-block;
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    color: #2e7d32;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2e7d32;
}

/* News als Zeilen auf Mannschafts-/Abteilungsseiten ab Tablet */
@media (max-width: 64rem) {
    .mannschaft-news .news-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .mannschaft-news a.news-card {
        flex-direction: row;
    }

    .mannschaft-news .news-card-image {
        width: 120px;
        aspect-ratio: 4 / 3;
        flex-shrink: 0;
        height: auto;
        border-radius: 7px 0 0 7px;
    }

    .mannschaft-news .news-card-body {
        padding: 0.75rem;
    }

    .mannschaft-news .news-card-body h3 {
        font-size: 0.85rem;
    }
}

.news-link {
    display: block;
    margin-top: 0.75rem;
    font-weight: 500;
    color: #2e7d32;
    text-align: right;
    font-size: 0.9rem;
}

/* Design #2: Kacheln */
.news-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: stretch;
}

a.news-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #f9faf8;
    border: 1px solid #e0e5dd;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.news-card-image {
    flex-shrink: 0;
    height: 160px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    border-radius: 7px 7px 0 0;
}

.news-card-image-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(12px) brightness(0.7);
    transform: scale(1.1);
}

.news-card-image img {
    height: 100%;
    width: auto;
    display: block;
    position: relative;
    z-index: 1;
    object-fit: contain;
}

.news-card-body {
    padding: 0.75rem;
    flex: 1;
}

.news-card-body time {
    font-size: 0.75rem;
    color: #999;
}

.news-card-body h3 {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

a.news-card:hover .news-card-body h3 {
    color: #2e7d32;
}

a.news-card.news-sticky {
    border-top: 3px solid #2e7d32;
}

@media (max-width: 48rem) {
    .news-cards {
        grid-template-columns: 1fr;
    }
}


/* Sidebar (rechts) */
.mannschaft-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: calc(52px + 1.5rem);
    align-self: start;
}

.sidebar-block {
    background: #fff;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.sidebar-block a {
    color: #2e7d32;
    text-decoration: none;
}

.sidebar-block a:hover {
    text-decoration: underline;
}

.sidebar-kontakt-content {
    font-size: 0.9rem;
    line-height: 1.6;
}


.sidebar-block h3 {
    display: inline-block;
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #2e7d32;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2e7d32;
    padding-bottom: 0.5rem;
}

.training-entry {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.training-entry:last-child {
    border-bottom: none;
}

.training-ort {
    color: #888;
    font-size: 0.85rem;
}

.kontakt-entry {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.kontakt-entry:last-child {
    border-bottom: none;
}

.kontakt-rolle {
    color: #888;
    font-size: 0.85rem;
}

.kontakt-entry a {
    color: #2e7d32;
    font-size: 0.85rem;
}

/* Sidebar Link Cards */
a.sidebar-link-card {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    padding: 1.25rem;
    gap: 1rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a.sidebar-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.sidebar-link-card-image {
    flex-shrink: 0;
    width: 120px;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    border-radius: 6px;
}

.sidebar-link-card-image img {
    height: 100%;
    width: auto;
    display: block;
    position: relative;
    z-index: 1;
    object-fit: contain;
}

.sidebar-link-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.25rem;
}

.sidebar-link-card-body strong {
    display: inline-block;
    align-self: flex-start;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2e7d32;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2e7d32;
    margin-bottom: 0.75rem;
}

.sidebar-link-card-body span {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.4;
}

.sidebar-link-card-arrow {
    display: none;
    color: #ccc;
    align-self: center;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

@media (max-width: 48rem) {
    .sidebar-link-card-arrow {
        display: block;
    }
}

a.sidebar-link-card:hover .sidebar-link-card-arrow {
    color: #2e7d32;
    transform: translateX(3px);
}

/* Sidebar FuPa Widget: kompakt, nur Logos + Spielstand */
.sidebar-fupa .fp-team-liveticker-view,
.sidebar-fupa .match-header {
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar-fupa .match-header {
    display: flex !important;
    align-items: center !important;
}

.sidebar-fupa .match-header-team {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.sidebar-fupa .match-header-team-image-container {
    margin: 0 !important;
}

.sidebar-fupa .match-header,
.sidebar-fupa .match-header-link {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.sidebar-fupa .match-header-center,
.sidebar-fupa .match-header-result-container,
.sidebar-fupa .match-header-team {
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar-fupa .fp-liveticker-view-header-container {
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.sidebar-fupa .match-header-team-name {
    height: 0;
    overflow: hidden;
    margin: 0;
}

.sidebar-fupa .match-header-caption {
    display: none !important;
}


/* ==========================================================================
   Uebersichtsseite (T3)
   ========================================================================== */

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem var(--site-padding) 0;
    font-size: 0.85rem;
    color: #888;
}

.breadcrumbs-inner {
    max-width: var(--site-max-width);
    margin: 0 auto;
}

.breadcrumbs a {
    color: #2e7d32;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 0.4rem;
    color: #bbb;
}

.breadcrumb-current {
    color: #555;
}

.uebersicht-content {
    padding: 1rem var(--site-padding) 2rem;
}

.uebersicht-content-inner {
    max-width: var(--site-max-width);
    margin: 0 auto;
}

.uebersicht-filter-info {
    margin-bottom: 1.5rem;
}

.uebersicht-filter-info a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 500;
}

.uebersicht-filter-info a:hover {
    text-decoration: underline;
}

.uebersicht-sektion {
    margin-bottom: 2.5rem;
}

.uebersicht-sektion:last-child {
    margin-bottom: 0;
}

.uebersicht-sektion-titel {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1b5e20;
    margin: 0 0 1.25rem;
    border-bottom: 3px solid #2e7d32;
    padding-bottom: 0.5rem;
}

/* Kachel-Grid */
.uebersicht-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.uebersicht-kachel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

a.uebersicht-kachel:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.uebersicht-kachel-bild {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8e8e8;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uebersicht-kachel-bild img {
    height: 100%;
    width: auto;
    display: block;
    position: relative;
    z-index: 1;
    object-fit: contain;
}

.uebersicht-kachel-body {
    padding: 1rem 1.25rem;
}

.uebersicht-kachel-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #1b5e20;
}

.uebersicht-kachel-body p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Listen-Ansicht */
.uebersicht-liste {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.uebersicht-liste-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.uebersicht-liste-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.uebersicht-liste-thumb {
    width: 200px;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #e8e8e8;
}

.uebersicht-liste-thumb-bg {
    position: absolute;
    inset: -10px;
    background-size: cover;
    background-position: center;
    filter: blur(12px) brightness(0.7);
}

.uebersicht-liste-thumb img {
    height: 100%;
    width: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.uebersicht-liste-body {
    flex: 1;
    min-width: 0;
}

.uebersicht-liste-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    color: #1b5e20;
}

.uebersicht-liste-body p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.uebersicht-liste-arrow {
    flex-shrink: 0;
    color: #2e7d32;
}

/* Responsive */
@media (max-width: 48rem) {
    .uebersicht-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Abteilungsseite (T4)
   ========================================================================== */

.abteilung-beschreibung {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.abteilung-beschreibung h2,
.abteilung-beschreibung h3 {
    color: #2e7d32;
    margin-top: 0;
}

.abteilung-beschreibung p:last-child {
    margin-bottom: 0;
}

.abteilung-schnellzugriff {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.abteilung-schnellzugriff h2 {
    font-size: 1.25rem;
    color: #2e7d32;
    margin: 0 0 1rem;
}

.schnellzugriff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.schnellzugriff-card {
    background: #f9faf8;
    border: 1px solid #e0e5dd;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.schnellzugriff-card:hover {
    background: #f0f4ee;
    border-color: #2e7d32;
    text-decoration: none;
    color: #2e7d32;
}

.schnellzugriff-card svg {
    flex-shrink: 0;
    color: #2e7d32;
}

/* Responsive */
@media (max-width: 48rem) {
    .mannschaft-header {
        flex-direction: column;
        min-height: auto;
    }

    .mannschaft-header-image {
        min-height: 150px;
    }

    .mannschaft-header-content::before {
        display: none;
    }

    .mannschaft-header-content {
        padding: 1.5rem 2rem;
    }

    .mannschaft-layout-inner {
        grid-template-columns: 1fr;
    }

    .mannschaft-layout-inner {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .mannschaft-content,
    .mannschaft-sidebar {
        display: contents;
    }

    .sidebar-team-info {
        display: none !important;
    }

    /* Mobile Reihenfolge */
    .sidebar-fupa           { order: 1; }
    .mannschaft-fupa-widget { order: 2; }
    .sidebar-kontakt        { order: 3; }
    .sidebar-training       { order: 4; }
    .sidebar-link-card         { order: 5; }

    .sidebar-link-card-image {
        display: none !important;
    }

    .mannschaft-news        { order: 6; }

    /* Single-Post: Content oben, Sidebar unten */
    .single-article         { order: 1; }
    .single-navigation      { order: 2; }
    .sidebar-related        { order: 3; }
    .sidebar-back           { order: 4; }

    /* Einheitliche Abstände - Gap uebernimmt */
    .sidebar-block,
    .mannschaft-fupa-widget,
    .mannschaft-news,
    .mannschaft-sidebar > .sidebar-block,
    .single-article,
    .single-navigation {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }

    /* Sidebar-Blöcke volle Breite */
    .sidebar-block {
        width: 100%;
    }

    /* Mobile Schriftgrößen global */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }

    .sidebar-block h3,
    .mannschaft-news h2,
    .sidebar-link-card-body strong {
        font-size: 1rem;
    }

    .training-entry,
    .kontakt-entry {
        font-size: 0.85rem;
    }

    .site-title {
        display: none;
    }

    /* Header-Info kleiner auf Mobile */
    .mannschaft-title {
        font-size: 1.3rem;
    }

    .mannschaft-header-subtitle {
        font-size: 0.85rem;
    }

    .mannschaft-header-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }

    .mannschaft-header-logo {
        width: 60px;
        height: 60px;
    }
}
