/* ==========================================================================
   Schule Dennigkofen - Modern Design System (Vanilla CSS)
   ========================================================================== */

:root {
    --primary: #9b2226;
    --primary-hover: #7b1a1e;
    --primary-light: #fdf2f2;
    --secondary: #4a5568;
    --secondary-dark: #2d3748;
    --accent: #2b6cb0;
    --slate-banner: #6a7d88;
    
    --bg-body: #ffffff;
    --bg-surface: #ffffff;
    --bg-alt: #f8fafc;
    
    --text-main: #2b2b2b;
    --text-muted: #666666;
    --text-light: #8c8c8c;
    --border-color: #e5e7eb;
    --border-focus: #9b2226;
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --container-max: 1200px;
    --transition: all 0.2s ease-in-out;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover, a:focus {
    color: var(--primary-hover);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; font-weight: 300; }
h2 { font-size: 1.75rem; font-weight: 300; margin-top: 1.5rem; }
h3 { font-size: 1.35rem; font-weight: 400; }
h4 { font-size: 1.15rem; font-weight: 500; }

p, ul, ol {
    margin-bottom: 1.25rem;
}

ul, ol {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.35rem;
}

.site-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Navigation Desktop */
.primary-navigation {
    display: flex;
    align-items: center;
}

.primary-navigation .nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    color: #444444;
    font-weight: 400;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-link:hover,
.nav-item.active > .nav-link,
.nav-link.active,
.nav-item:hover > .nav-link {
    color: var(--primary);
    text-decoration: none;
}

.dropdown-icon {
    display: none;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    border-top: none;
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1050;
}

.nav-item:hover > .dropdown-menu,
.nav-item.is-open > .dropdown-menu,
.nav-item:focus-within > .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.dropdown-item {
    margin: 0;
    border-bottom: 1px solid #f2f2f2;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #555555;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.dropdown-link:hover,
.dropdown-item.active > .dropdown-link {
    background: #f7f9fa;
    color: var(--primary);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Header Navigation Search Dropdown
   -------------------------------------------------------------------------- */
.nav-item-search {
    position: relative;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
}

.nav-search-btn {
    background: transparent;
    border: none;
    padding: 8px 10px;
    color: #555555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-search-btn:hover,
.nav-item-search.is-open .nav-search-btn {
    color: var(--primary);
    background-color: rgba(0, 115, 170, 0.08);
}

.nav-search-btn .search-close-icon {
    display: none;
}

.nav-item-search.is-open .nav-search-btn .search-icon {
    display: none;
}

.nav-item-search.is-open .nav-search-btn .search-close-icon {
    display: block;
}

.nav-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-item-search.is-open .nav-search-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-search-form {
    margin: 0;
    padding: 0;
}

.nav-search-input-wrap {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    padding: 3px 4px 3px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search-input-wrap:focus-within {
    border-color: var(--primary, #0073aa);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

.nav-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--text-color, #222);
    padding: 6px 4px;
    font-family: inherit;
}

.nav-search-input::placeholder {
    color: #94a3b8;
}

.nav-search-submit-btn {
    background: var(--primary, #0073aa);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 7px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.nav-search-submit-btn:hover {
    background: var(--primary-hover, #005a87);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-main);
    align-items: center;
    gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   Subpage Header Banner & Breadcrumbs (#Subheader)
   -------------------------------------------------------------------------- */
#Subheader,
.subpage-header {
    background-color: #73848b;
    padding: 24px 0;
    margin-bottom: 2.5rem;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.subpage-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.subpage-title {
    color: #ffffff;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 300;
    margin: 0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
}

ol.breadcrumbs,
ul.breadcrumbs {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.breadcrumb-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    user-select: none;
}

.breadcrumb-item.active .breadcrumb-current,
.breadcrumb-item.active span {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

@media (max-width: 768px) {
    #Subheader,
    .subpage-header {
        padding: 18px 0;
        margin-bottom: 1.5rem;
    }
    .subpage-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .subpage-title {
        font-size: 22px;
    }
    ol.breadcrumbs,
    ul.breadcrumbs {
        flex-wrap: wrap;
        font-size: 13px;
    }
}

/* --------------------------------------------------------------------------
   Hero Section & Slider
   -------------------------------------------------------------------------- */
.hero-section {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.school-hero-slider {
    width: 100%;
    height: 520px;
    position: relative;
    overflow: hidden;
    background-color: #333333;
}

.slider-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.slider-slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.slide-bg-img {
    display: none;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.slide-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.slide-caption {
    max-width: 540px;
    margin-right: 2rem;
    text-align: left;
}

.slide-title {
    font-size: 48px;
    font-weight: 300;
    color: #ffffff;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.slide-description-box {
    background: rgba(35, 45, 55, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 18px 24px;
    border-radius: 2px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.55;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.slide-description-box p {
    margin-bottom: 0;
    color: #ffffff;
}

.slide-description-box a {
    color: #e63946;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
}

.slide-description-box a:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border: none;
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 20;
}

.school-hero-slider:hover .slider-nav {
    opacity: 0.8;
}

.slider-nav:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.6);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease;
}

.slider-dot.active {
    background-color: #ffffff;
}

/* --------------------------------------------------------------------------
   Quote Banner (Infobox full-width)
   -------------------------------------------------------------------------- */
.school-quote-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: var(--slate-banner);
    color: #ffffff;
    padding: 50px 20px 58px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.quote-inner {
    max-width: 960px;
    margin: 0 auto;
}

.quote-text {
    font-size: 28px;
    font-weight: 300;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.2px;
}

.quote-arrow {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 14px solid var(--slate-banner);
    z-index: 10;
}

/* --------------------------------------------------------------------------
   Container Grids (b13/container integration)
   -------------------------------------------------------------------------- */
.main-content-section {
    padding-bottom: 4rem;
}

.container-grid {
    margin: 2rem 0;
}

.container-header {
    text-align: center;
    margin-bottom: 2.2rem;
}

.container-header h1,
.container-header h2,
.container-header h3 {
    font-size: 26px;
    font-weight: 400;
    color: #444444;
    border-bottom: none;
    margin: 0;
}

.container-2cols .grid-columns-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

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

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

/* Column 1 Content (Termine) */
.col-1 h1 {
    font-size: 26px;
    font-weight: 300;
    color: #222222;
    margin-bottom: 1rem;
    border-bottom: none;
}

.col-1 strong {
    font-weight: 600;
    color: #222222;
    display: block;
    margin-bottom: 12px;
}

.col-1 p {
    font-size: 15px;
    line-height: 1.65;
    color: #333333;
}

/* --------------------------------------------------------------------------
   News Styling (georgringer/news)
   -------------------------------------------------------------------------- */
.col-2 .news-list-view {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 0;
}

.news-article-item {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition);
}

.news-title {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.news-title a {
    color: #222222;
    text-decoration: none;
}

.news-title a:hover {
    color: var(--primary);
}

.news-media-preview {
    margin-bottom: 0.75rem;
}

.news-media-preview img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.news-teaser {
    color: #444444;
    font-size: 14.5px;
    line-height: 1.6;
}

.news-date {
    font-size: 13px;
    color: #888888;
    margin-top: 0.25rem;
}

.more {
    display: inline-block;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin-top: 0.5rem;
    text-decoration: none;
}

.more:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Footer Styles
   -------------------------------------------------------------------------- */
.site-footer {
    background: #1b2128;
    color: #cbd5e0;
    margin-top: auto;
}

.footer-main {
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .container-grid {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.site-footer .grid-columns-3 {
    gap: 3rem;
}

.site-footer h3,
.site-footer h4,
.site-footer .footer-heading {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 500;
}

.site-footer h3::after,
.site-footer h4::after,
.site-footer .footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.site-footer p,
.site-footer li,
.site-footer .desc {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.site-footer a {
    color: #cbd5e0;
    text-decoration: none;
    transition: var(--transition);
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer .hr_color,
.site-footer hr {
    display: none;
}

.site-footer .icon-mail::before {
    content: "✉ ";
    font-style: normal;
    margin-right: 4px;
}

.site-footer .footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-nav-list li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: #8c9ba5;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-top {
    color: #cbd5e0;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Tabs Container Component (ns_base_5Cols)
   -------------------------------------------------------------------------- */
.tabs-container {
    margin: 2.5rem 0;
}

.tabs-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
}

.tab-item {
    flex: 1 1 0px;
    border-right: 1px solid #e2e8f0;
    margin-bottom: -1px;
    position: relative;
    background: #f8f9fa;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.tab-item:last-child {
    border-right: none;
}

.tab-button {
    width: 100%;
    padding: 16px 14px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 15px;
    font-weight: 700;
    color: #495057;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
    outline: none;
}

.tab-item:hover .tab-button {
    color: var(--color-primary, #8b1538);
    background: #ffffff;
}

.tab-item.active {
    background: #ffffff;
    border-bottom: 1px solid #ffffff;
}

.tab-item.active .tab-button {
    color: var(--color-primary, #8b1538);
    border-bottom: 2px solid var(--color-primary, #8b1538);
}

.tabs-content {
    padding: 40px 35px 50px;
}

.tab-pane-title {
    text-align: center;
    font-size: 26px;
    font-weight: 300;
    color: #555555;
    margin: 0 0 35px 0;
}

.tab-pane-body {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Responsive Design (Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .container-2cols .grid-columns-2 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .grid-columns-5, .grid-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .slide-caption {
        margin-right: 0;
        max-width: 100%;
    }

    .slide-title {
        font-size: 36px;
    }

    .quote-text {
        font-size: 22px;
    }
}

@media (max-width: 840px) {
    .mobile-nav-toggle {
        display: flex;
    }

    .primary-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-bottom: 2px solid var(--primary);
        z-index: 1000;
    }

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

    .primary-navigation .nav-menu {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
        gap: 0;
    }

    .nav-link {
        padding: 12px 24px;
        border-bottom: 1px solid #f2f2f2;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1.5rem;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        display: none;
        background: #fafafa;
    }

    .nav-item.open-sub .dropdown-menu {
        display: block;
    }

    .dropdown-link {
        padding: 10px 20px;
    }

    .nav-item-search {
        margin: 0;
        padding: 8px 24px 14px 24px;
        border-bottom: 1px solid #f2f2f2;
        display: block;
    }

    .nav-search-btn {
        display: none;
    }

    .nav-search-dropdown {
        position: static;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border: none;
        padding: 4px 0 0 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .school-hero-slider {
        height: 420px;
    }

    .slide-title {
        font-size: 28px;
    }

    .quote-text {
        font-size: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .tabs-nav {
        flex-direction: column;
    }

    .tab-item {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .tab-button {
        white-space: normal;
        text-align: left;
        padding: 14px 18px;
    }

    .tab-item.active .tab-button {
        border-bottom: none;
        border-left: 4px solid var(--color-primary, #8b1538);
    }

    .tabs-content {
        padding: 25px 18px;
    }
}

/* ==========================================================================
   News List & Modal Detail View
   ========================================================================== */
.article {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.article:last-child {
    border-bottom: none;
}

.article .header h3 {
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 10px;
    line-height: 1.35;
}

.article .header h3 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.15s ease;
    cursor: pointer;
}

.article .header h3 a:hover {
    color: #82bb31;
}

.article .news-img-wrap {
    float: left;
    margin: 0 20px 14px 0;
    max-width: 140px;
    border-radius: 6px;
    overflow: hidden;
}

.article .news-img-wrap img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.article .news-img-wrap a:hover img {
    transform: scale(1.04);
}

.article .teaser-text {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 10px;
}

.article .more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #82bb31;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    margin-top: 8px;
    padding: 3px 0;
    transition: color 0.15s ease;
}

.article .more:hover {
    color: #5e8c1e;
    text-decoration: underline;
}

.article .more::after {
    content: " →";
    font-size: 15px;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.15s ease;
}

.article .more:hover::after {
    transform: translateX(3px);
}

.article .footer {
    clear: both;
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 8px;
}

.article .news-list-category {
    display: inline-block;
    padding: 2px 8px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Modal Open State on Body & Html */
html.news-modal-open,
body.news-modal-open {
    overflow: hidden !important;
}

/* News Modal Container */
.news-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.news-modal.is-active {
    display: block;
}

.news-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    animation: newsModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.news-modal-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
    pointer-events: none;
}

.news-modal-dialog {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 780px;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
    pointer-events: auto;
    transform: scale(0.96) translateY(12px);
    opacity: 0;
    animation: newsModalPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
}

@keyframes newsModalFadeIn {
    to { opacity: 1; }
}

@keyframes newsModalPopIn {
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.news-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    z-index: 10;
}

.news-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.08);
}

.news-modal-header {
    padding: 26px 32px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.news-modal-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.news-modal-category {
    display: inline-block;
    padding: 3px 10px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.news-modal-date {
    font-size: 13px;
    color: #64748b;
}

.news-modal-author {
    font-size: 13px;
    color: #64748b;
}

.news-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0;
    padding-right: 36px;
}

.news-modal-body {
    padding: 24px 32px;
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}

.news-modal-media {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    max-height: 320px;
}

.news-modal-media img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
}

.news-modal-teaser {
    font-size: 17px;
    color: #1e293b;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #e2e8f0;
}

.news-modal-text p {
    margin-bottom: 16px;
}

.news-modal-text strong {
    color: #0f172a;
}

.news-modal-text table,
.news-modal-text td,
.news-modal-text th,
.news-modal-text figure {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}

.news-modal-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.news-modal-text th,
.news-modal-text td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
}

.news-modal-text th {
    background: #f8fafc;
    font-weight: 600;
    text-align: left;
}

.news-modal-content-elements {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed #e2e8f0;
}

.news-modal-content-elements:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.news-modal-content-elements img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.news-modal-content-elements .ce-gallery {
    margin: 16px 0;
}

.news-modal-content-elements h2,
.news-modal-content-elements h3,
.news-modal-content-elements h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #0f172a;
    font-weight: 700;
}

.news-modal-content-elements p {
    margin-bottom: 14px;
}

.news-modal-files {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.news-modal-files h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.news-files-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-files-list li {
    margin-bottom: 8px;
}

.news-files-list a {
    display: inline-flex;
    align-items: center;
    color: #82bb31;
    text-decoration: underline;
    font-weight: 500;
}

.news-modal-footer {
    padding: 14px 32px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
}

.news-modal-btn-close {
    background: #e2e8f0;
    color: #334155;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease;
}

.news-modal-btn-close:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* --------------------------------------------------------------------------
   Indexed Search Result Page (.tx-indexedsearch)
   -------------------------------------------------------------------------- */
.tx-indexedsearch-searchbox {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 2rem;
}

.tx-indexedsearch-searchbox form {
    margin: 0;
}

.tx-indexedsearch-searchbox fieldset {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.tx-indexedsearch-searchbox legend {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color, #1e293b);
    margin-bottom: 12px;
    padding: 0;
    width: 100%;
}

.tx-indexedsearch-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 240px;
}

.tx-indexedsearch-form label {
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
}

.tx-indexedsearch-searchbox-sword {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
}

.tx-indexedsearch-searchbox-sword:focus {
    border-color: var(--primary, #0073aa);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

.tx-indexedsearch-search-submit .tx-indexedsearch-searchbox-button {
    background: var(--primary, #0073aa);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.tx-indexedsearch-search-submit .tx-indexedsearch-searchbox-button:hover {
    background: var(--primary-hover, #005a87);
}

/* --------------------------------------------------------------------------
   Search Pagination & Browsebox
   -------------------------------------------------------------------------- */
.tx-indexedsearch-browsebox {
    font-size: 14px;
    color: #64748b;
    padding: 14px 0 16px 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.tx-indexedsearch-browsebox strong {
    color: #1e293b;
    font-weight: 600;
}

.search-pagination-wrap {
    margin: 0;
    padding: 0;
}

/* Remove default list styles from browsebox ul */
ul.tx-indexedsearch-browsebox,
.search-pagination-list {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none !important;
    margin: 0;
    padding: 0;
}

ul.tx-indexedsearch-browsebox li,
.search-pagination-list li {
    margin: 0;
    padding: 0;
    list-style: none !important;
    display: inline-flex;
    align-items: center;
}

ul.tx-indexedsearch-browsebox li::before,
.search-pagination-list li::before {
    display: none !important;
    content: none !important;
}

/* Common button styles */
.tx-indexedsearch-page-selector,
ul.tx-indexedsearch-browsebox li a,
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.15s ease-in-out;
    user-select: none;
    box-sizing: border-box;
}

/* Ensure inner elements do not steal pointer-events for core pagination.js */
.tx-indexedsearch-page-selector * {
    pointer-events: none;
}

/* Number buttons */
.pagination-num-btn {
    min-width: 38px;
    padding: 0 12px;
    font-weight: 600;
}

/* Nav buttons (Zurück / Weiter) */
.pagination-nav-btn,
.tx-indexedsearch-browselist-next a {
    gap: 6px;
    font-weight: 500;
    padding: 0 14px;
    background: #f8fafc;
}

.pagination-arrow {
    font-size: 16px;
    line-height: 1;
}

/* Hover state */
.tx-indexedsearch-page-selector:hover,
ul.tx-indexedsearch-browsebox li a:hover,
.pagination-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Active page state */
ul.tx-indexedsearch-browsebox li strong a,
ul.tx-indexedsearch-browsebox li strong a.tx-indexedsearch-page-selector,
ul.tx-indexedsearch-browsebox li a[aria-current="page"],
.pagination-btn.active,
.pagination-page.is-active a {
    background: var(--primary, #9b2226) !important;
    border-color: var(--primary, #9b2226) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(155, 34, 38, 0.25) !important;
    cursor: default;
    transform: none !important;
}

/* Bottom pagination spacing */
div.site-container > div.tx-indexedsearch-browsebox:last-of-type,
.main-content-section .search-pagination-wrap:last-child {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    border-bottom: none;
}

.tx-indexedsearch-info-sword {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.tx-indexedsearch-info-sword-word {
    color: var(--primary, #0073aa);
}

.tx-indexedsearch-res {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.tx-indexedsearch-res:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.tx-indexedsearch-res h3 {
    margin: 0 0 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.tx-indexedsearch-title a {
    color: var(--primary, #0073aa);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

.tx-indexedsearch-title a:hover {
    text-decoration: underline;
}

.tx-indexedsearch-percent {
    font-size: 12px;
    font-weight: 600;
    background: #ecfdf5;
    color: #047857;
    padding: 2px 8px;
    border-radius: 12px;
}

.tx-indexedsearch-description {
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
    margin: 8px 0 12px 0;
}

.tx-indexedsearch-redMarkup {
    background-color: #fef08a;
    color: #854d0e;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 3px;
}

.tx-indexedsearch-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 13px;
    color: #64748b;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.tx-indexedsearch-info dt {
    font-weight: 600;
    color: #94a3b8;
    margin-right: 4px;
}

.tx-indexedsearch-info dd {
    margin: 0;
}

.tx-indexedsearch-info dd p {
    margin: 0;
}

.tx-indexedsearch-info dd a {
    color: #64748b;
    text-decoration: none;
}

.tx-indexedsearch-info dd a:hover {
    color: var(--primary, #0073aa);
    text-decoration: underline;
}



