/* #########################################################
    01. WEBFONTS
   ######################################################### */
@font-face {
    font-family: 'Open Sans';
    src: url('fonts/opensans-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/opensans-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/opensans-700.woff2') format('woff2'); 
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans Bold';
    src: url('fonts/opensans-extrabold.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
}


/* #########################################################
    02. VARIABLEN & THEME CONFIGURATION
   ######################################################### */
:root {
    /* FARBEN */
    --font-weiss: #ffffff;
    --color-bg-odd: #ffffff;
    --color-bg-even: #DEEAF1;
    --color-text: #001E64;
  
    /* BRAND-FARBEN FÜR BUTTONS & HIGHLIGHTS */
    --color-primary: #003366; 
    --color-primary-hover: #002244;
    --color-brand-green: #52992F;
    --color-brand-green-hover: #3e7a23;

    /* ABSTÄNDE UND WEITEN */
    --container-max-width: 1320px;
    --spacing-vertical: 3rem;
    --spacing-horizontal: 1rem;
    --pv-20: 20px 0;
    --ph-20: 0 20px;
    --pr-30: 0 30px 0 0;
    --mb-40: 40px;
    --mb-20: 20px;
    --p-t-75: 75px 0 0 0;
}

@media (min-width: 768px) {
    :root {
        --spacing-vertical: 5rem;
        --spacing-horizontal: 2rem;
    }
}


/* #########################################################
    03. RESET & GLOBALE TYPOGRAFIE
   ######################################################### */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: clamp(1rem, 1vw + 0.6rem, 1.2rem);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Joomla Reset */
.com-content-article ol, 
.com-content-article ul {
    overflow: visible;
}

h1 {
    font-weight: 700;
    font-family: 'Open Sans Bold';
}

.sw-hero-title {
    font-size: clamp(1.8rem, 4vw + 0.5rem, 3.5rem);
    line-height: 1.1;
}

.sw-hero-subtitle {
    font-size: clamp(1.1rem, 2vw + 0.5rem, 1.8rem);
    line-height: 1.3;
}

.sw-article-subtitle {
    font-size: clamp(0.77rem, 1.4vw + 0.35rem, 1.26rem);
    line-height: 1.3;
}

.contact-buttons a:focus-visible {
    outline: 3px solid #0056b3;
    outline-offset: 4px;
}

.service-btn {
    font-size: 70%;
}

.praktikum-liste {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.6;
}

#system-message-container joomla-alert .alert-wrapper {
    max-width: var(--container-max-width);
}


/* #########################################################
    04. HILFSKLASSEN (Utilities)
   ######################################################### */
.pv-20 { padding: var(--pv-20); }
.pr-30 { padding: var(--pr-30)!important; }
.mt-20 { margin-top: var(--mb-20); } /* Neu hinzugefügt für sw-alert */
.mb-20 { margin-bottom: var(--mb-20); }
.mb-40 { margin-bottom: var(--mb-40); }
.p-t-75  { padding: var(--p-t-75); }

.text-center,
.center-title > .container > h1,
.center-title > .container > h2,
.center-title > .container > .sw-article-subtitle {
    text-align: center;
}

.header .navright {
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 768px) {
    .text-md-right { text-align: right; }
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* #########################################################
    05. GRIDSYSTEM (Layout Basis)
   ######################################################### */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-horizontal);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-horizontal);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.align-items-stretch {
    align-items: stretch;
}

[class*="col"] {
    padding: 0 0.5rem;
    width: 100%;
}

.col { flex: 1; }

.col-1  { width: 8.33%; }
.col-2  { width: 16.66%; }
.col-3  { width: 25%; }
.col-4  { width: 33.33%; }
.col-5  { width: 41.66%; }
.col-6  { width: 50%; }
.col-7  { width: 58.33%; }
.col-8  { width: 66.66%; }
.col-9  { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }

@media (min-width: 768px) {
    .col-md-1  { width: 8.33%; }
    .col-md-2  { width: 16.66%; }
    .col-md-3  { width: 25%; }
    .col-md-4  { width: 33.33%; }
    .col-md-5  { width: 41.66%; }
    .col-md-6  { width: 50%; }
    .col-md-7  { width: 58.33%; }
    .col-md-8  { width: 66.66%; }
    .col-md-9  { width: 75%; }
    .col-md-10 { width: 83.33%; }
    .col-md-11 { width: 91.66%; }
    .col-md-12 { width: 100%; }
}

@media (min-width: 992px) {
    .col-lg-1  { width: 8.33%; }
    .col-lg-2  { width: 16.66%; }
    .col-lg-3  { width: 25%; }
    .col-lg-4  { width: 33.33%; }
    .col-lg-5  { width: 41.66%; }
    .col-lg-6  { width: 50%; }
    .col-lg-7  { width: 58.33%; }
    .col-lg-8  { width: 66.66%; }
    .col-lg-9  { width: 75%; }
    .col-lg-10 { width: 83.33%; }
    .col-lg-11 { width: 91.66%; }
    .col-lg-12 { width: 100%; }
}

@media (min-width: 576px) {
    .col-sm-1  { width: 8.33%; }
    .col-sm-2  { width: 16.66%; }
    .col-sm-3  { width: 25%; }
    .col-sm-4  { width: 33.33%; }
    .col-sm-5  { width: 41.66%; }
    .col-sm-6  { width: 50%; }
    .col-sm-7  { width: 58.33%; }
    .col-sm-8  { width: 66.66%; }
    .col-sm-9  { width: 75%; }
    .col-sm-10 { width: 83.33%; }
    .col-sm-11 { width: 91.66%; }
    .col-sm-12 { width: 100%; }
}



/* ####################################################
    ZUSATZ FÜR DIE MEDIATHEK
    #################################################### */
    
/* Zwischenbereich: 2 Spalten für 500px bis 767px in der Mediathek */
@media (min-width: 500px) and (max-width: 767px) {
    .sw-mediathek-col {
        width: 50%;
    }
}

/* #########################################################
    06. HEADER & NAVIGATION
   ######################################################### */
.header {
    background: var(--color-opacity-green);
    box-shadow: var(--schatten);
    z-index: 1030;
    padding: 1rem 0;
}

.logo-img {
    height: 55px;
    width: auto;
}

.status-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: .5rem 0;
}

.col-md-9 {
    display: flex;
    justify-content: flex-end;
}

.col-md-9 > nav {
    width: auto;
}

.dd-menu__list--root > .dd-menu__item > .dd-menu__link {
    font-weight: 700;
    text-transform: uppercase;
}

.dd-menu__panel .dd-menu__link,
.dd-menu__header .dd-menu__current-title {
    font-weight: 400;
    text-transform: none; 
}

@media screen and (max-width: 767px) {

.logo-img {
    height: 35px;
    width: auto;
}

}


/* #########################################################
    07. MODULE: HERO SLIDER (Splide)
   ######################################################### */
.kwn-hero-slider {
    position: relative;
    width: 100%;
    height: var(--kwn-hero-h, 600px);
    overflow: hidden;
    background-color: #001E64;
}

.kwn-hero-slider .splide__track,
.kwn-hero-slider .splide__list,
.kwn-hero-slider .splide__slide,
.kwn-hero-img {
    height: 100%;
}

.kwn-hero-img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.kwn-hero-image-wrap,
.kwn-hero-overlay,
.kwn-hero-content,
.kwn-hero-copyright {
    position: absolute;
    z-index: 10;
}

.kwn-hero-image-wrap,
.kwn-hero-overlay,
.kwn-hero-content {
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
}

.kwn-hero-image-wrap { z-index: 1; }
.kwn-hero-overlay { z-index: 2; pointer-events: none; }

.kwn-hero-content {
    display: flex;
    flex-direction: column;
    padding: 3rem;
    pointer-events: none;
}

.kwn-hero-copyright {
    bottom: 0; 
    right: 0;
    z-index: 20;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 4px 0 0 0;
    pointer-events: auto;
    writing-mode: horizontal-tb;
}

.kwn-hero-slider.style-box .kwn-hero-content {
    justify-content: flex-end;
    align-items: flex-start;
    padding-bottom: 80px;
}

.kwn-hero-slider.style-full .kwn-hero-content {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.kwn-hero-inner {
    position: relative;
    z-index: 15;
    color: #ffffff;
    pointer-events: auto;
}

.kwn-hero-slider.style-box .kwn-hero-inner {
    background-color: #001E64;
    padding: 2rem 2.5rem;
    max-width: 650px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translate(-30px, 30px);
}

.kwn-hero-slider.style-full .kwn-hero-inner {
    max-width: 800px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.kwn-hero-preline {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: #8DD8E8;
}

.kwn-hero-headline {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    color: #ffffff;
}

.kwn-hero-subline {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.95;
}

.kwn-hero-btn {
    display: inline-block;
    background-color: #8DD8E8;
    color: #001E64;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 70%;
    }

.kwn-hero-btn:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
}

.splide__arrow { background: rgba(255,255,255,0.2); }
.splide__arrow:hover { background: rgba(255,255,255,0.4); }
.splide__pagination { bottom: 1.5rem; }
.splide__pagination__page.is-active { background: #8DD8E8; transform: scale(1.2); }

.kwn-hero-slider.effect-flow.is-initialized .splide__slide {
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.kwn-hero-slider.effect-flow.is-initialized .splide__slide.is-active {
    opacity: 1 !important;
    z-index: 2;
    transition: none;
}

.kwn-hero-slider.effect-flow.is-initialized .splide__slide.is-active .kwn-hero-image-wrap {
    animation: kwnFlowWipe 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    transform-origin: center center;
}

.kwn-hero-slider.effect-flow.is-initialized .splide__slide.is-active .kwn-hero-content {
    animation: kwnFadeUp 1.2s ease 0.3s backwards;
}

@keyframes kwnFlowWipe {
    0% { clip-path: circle(0% at 50% 50%); transform: scale(1.1); }
    100% { clip-path: circle(150% at 50% 50%); transform: scale(1); }
}

@keyframes kwnFadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.splide:not(.is-initialized) .splide__list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
    margin: 0; padding: 0;
    scrollbar-width: none;
}
.splide:not(.is-initialized) .splide__list::-webkit-scrollbar { display: none; }

.splide:not(.is-initialized) .splide__slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    opacity: 1 !important; 
    transform: none !important;
    visibility: visible !important;
}

.splide:not(.is-initialized) .splide__arrows,
.splide:not(.is-initialized) .splide__pagination {
    display: none;
}

@media (max-width: 767px) {
    .kwn-hero-content { padding: 1rem; }
    .kwn-hero-slider.style-box .kwn-hero-content {
        justify-content: flex-end;
        padding-bottom: 60px;
    }
    .kwn-hero-slider.style-box .kwn-hero-inner {
        transform: none; margin: 0; padding: 1.5rem; width: 100%; max-width: 100%;
    }
    .kwn-hero-headline { font-size: 1.7rem; }
}


/* #########################################################
    08. SEKTIONEN & HERO GRID
   ######################################################### */
.content-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-top: var(--spacing-vertical);
    padding-bottom: var(--spacing-vertical);
}

.content-section:nth-of-type(odd) { background-color: var(--color-bg-odd); }
.content-section:nth-of-type(even) { background-color: var(--color-bg-even); }

.content-section:nth-of-type(odd) .location-list li { background-color: var(--color-bg-even); }
.content-section:nth-of-type(even) .location-list li { background-color: var(--color-bg-odd); }

.section-header {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.lead-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-primary); 
    margin-bottom: 1.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 3fr 2fr;
        gap: 4rem;
    }
}

.location-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.location-list li {
    display: block;
    border-radius: 4px;
}

.location-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--color-primary);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

.content-section:nth-of-type(odd) .location-list a {
    background-color: var(--color-bg-even);
}

.content-section:nth-of-type(even) .location-list a {
    background-color: var(--color-bg-odd); 
    box-shadow: 0 2px 6px rgba(0, 30, 100, 0.06); 
}

.location-list a:hover,
.location-list a:focus-visible {
    background-color: var(--color-primary);
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0, 30, 100, 0.15);
    outline: none;
}

.location-list a i {
    font-size: 1rem;
    transition: color 0.2s ease-in-out;
}

.location-list a:focus-visible {
    outline: 3px solid var(--color-brand-green);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .location-list {
        gap: 0.5rem;
    }
    .location-list a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}


/* #########################################################
    09. KOMPONENTEN: KARTEN & BUTTONS
   ######################################################### */

.contact-card {
    background-color: #f4f7fa;
    border-left: 4px solid var(--color-brand-green);
    padding: 2rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-size: 1.5rem;
}

/* Zusammengefasste Service Card */
.service-card {
    position: relative; /* Wichtig für das Positionieren des Overlays */
    background-color: var(--font-weiss);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 30, 100, 0.06);
    height: 100%;
    border-top: 4px solid var(--color-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 30, 100, 0.12);
}

.service-card.border-green {
    border-top-color: var(--color-brand-green);
}

.service-card h3 {
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p:last-child {
    margin-bottom: 0;
}

/* Ergänzung für das Flex-Layout in den Service-Cards */
.service-card.d-flex {
    flex-direction: row; /* Icon links, Text rechts */
}

/* Klicks gehen durch den Text/Button direkt auf den Overlay-Link */
.service-card .content-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: none; 
}

/* Verhindert, dass die Überschrift in der Card zu groß ist */
.service-card h3.h5 {
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* Das unsichtbare Overlay, das die Karte klickbar macht */
.service-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

/* Button-Reaktion auslösen, wenn Karte gehovert wird */
.service-card:hover .btn-outline {
    background-color: var(--color-primary);
    color: var(--font-weiss);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 30, 100, 0.15);
}

/* Globale Button-Styles */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-buttons .btn-accent {
    background-color: var(--color-brand-green);
    color: var(--font-weiss);
    border: 2px solid var(--color-brand-green);
}

.contact-buttons .btn-accent:hover,
.contact-buttons .btn-accent:focus {
    background-color: var(--color-brand-green-hover);
    border-color: var(--color-brand-green-hover);
}

.contact-buttons .btn-primary {
    background-color: var(--color-primary);
    color: var(--font-weiss);
    border: 2px solid var(--color-primary);
}

.contact-buttons .btn-primary:hover,
.contact-buttons .btn-primary:focus {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.contact-buttons .btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.contact-buttons .btn-outline:hover,
.contact-buttons .btn-outline:focus {
    background-color: var(--color-primary);
    color: var(--font-weiss);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    line-height: 1.2;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--font-weiss);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--font-weiss);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 30, 100, 0.15);
}

.service-card:hover .service-btn {
    background-color: var(--hover-color);
    color: var(--color-primary-hover);   
}

/*
.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    pointer-events: auto; 
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background-color: var(--color-primary);
    color: var(--font-weiss);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 30, 100, 0.15);
}

.btn-accent {
    background-color: var(--color-brand-green);
    color: var(--font-weiss);
    border: 2px solid var(--color-brand-green);
}

.btn-accent:hover,
.btn-accent:focus-visible {
    background-color: var(--color-brand-green-hover);
    border-color: var(--color-brand-green-hover);
    color: var(--font-weiss);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(82, 153, 47, 0.2);
}

.btn:focus-visible {
    outline: 3px solid var(--color-brand-green);
    outline-offset: 4px;
}
*/

/* #########################################################
    10. MODULE: NEWSGRID (Startseite)
   ######################################################### */
.mod-newsgrid {
    width: 100%;
    margin: 0 auto;
}

.newsgrid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.newsgrid-item {
    position: relative; 
    border-radius: 8px;
    overflow: hidden;
    background-color: #f4f4f4;
    aspect-ratio: 16 / 9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.newsgrid-item article {
    display: grid;
    height: 100%;
    width: 100%;
}

.newsgrid-image {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.newsgrid-item:hover .newsgrid-image,
.newsgrid-item:focus-within .newsgrid-image {
    transform: scale(1.05);
}

.newsgrid-ai-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    z-index: 2;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.newsgrid-content {
    grid-area: 1 / 1;
    align-self: end; 
    width: 100%;
    padding: 2rem 1rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.newsgrid-title {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.3;
}

.newsgrid-link {
    color: #ffffff;
    text-decoration: none;
    pointer-events: auto;
}

.newsgrid-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 10;
}

.newsgrid-link:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.newsgrid-content a:hover {
    color: var(--color-bg-odd);
}

@media (min-width: 768px) {
    .newsgrid-container {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: minmax(200px, auto);
    }
    .newsgrid-item { aspect-ratio: auto; }

    .newsgrid-item.item-0 {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    .newsgrid-item.item-0 .newsgrid-title { font-size: 1.75rem; }
    .newsgrid-item.item-0 .newsgrid-content { padding: 4rem 2rem 2rem 2rem; }
}


/* #########################################################
    11. MODULE: DOWNLOADS
   ######################################################### */
.mod-downloads {
    width: 100%;
    padding: 1rem 0;
}

.downloads-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .downloads-list { grid-template-columns: repeat(2, 1fr); }
}

.download-card {
    background: #ffffff;
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden; 
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.download-card:hover, 
.download-card:focus-within {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.download-card:focus-within {
    outline: 2px solid var(--color-primary, #003366);
    outline-offset: 2px;
}

.download-card__link {
    display: flex;
    flex-direction: column;
    height: 100%; 
    text-decoration: none;
    color: inherit;
    outline: none; 
}

.download-card__body {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    flex-grow: 1; 
}

.download-card__icon-wrap {
    width: 50px;
    height: 50px;
    background-color: var(--color-brand-green, #52992F);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.download-card__content {
    flex-grow: 1;
    min-width: 0; 
}

.download-card__title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary, #003366);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.download-card__meta {
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.download-card__stand {
    font-size: 0.85rem;
    color: var(--color-primary, #003366);
    font-weight: 600;
}

.download-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e4e8;
    padding: 1rem 1.5rem;
    margin-top: auto; 
}

.download-card__action-text {
    color: var(--color-brand-green, #52992F);
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.download-card__arrow {
    color: var(--color-brand-green, #52992F);
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.download-card:hover .download-card__arrow,
.download-card:focus-within .download-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

.download-card:hover .download-card__action-text,
.download-card:focus-within .download-card__action-text {
    color: var(--color-brand-green-hover, #3e7a23);
}

@media (max-width: 576px) {
    .download-card__body {
        flex-direction: column;
        gap: 1rem;
    }
}


/* #########################################################
    12. MODULE: INFOBOXEN (Hinweise)
   ######################################################### */
.directory-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: #f4f7fa;
    border-left: 4px solid var(--color-primary, #003366);
    padding: 1.25rem 1.5rem;
    border-radius: 4px;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    line-height: 100%;
}

.directory-notice__icon {
    color: var(--color-primary, #003366);
    font-size: 1.25rem;
    flex-shrink: 0; 
    margin-top: 0.125rem; 
}

.directory-notice__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555555;
}

.directory-notice__text strong {
    color: var(--color-primary, #003366);
}

@media (min-width: 768px) {
    .directory-notice { padding: 1.5rem 2rem; }
}


/* #########################################################
    13. FOOTER & UCKERSTROM-MÄRKTE - OPTIMIERT
   ######################################################### */
.uckerstrommaerkte {
    background-color: var(--color-bg-even);
}

.uckerstrom-markets {
    padding: var(--spacing-vertical) 0;
    background-color: var(--color-bg-odd);
    color: var(--color-text);
}

.uckerstrom-markets__header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-horizontal);
}

.uckerstrom-markets__subtitle {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.uckerstrom-markets__title {
    color: var(--color-primary);
    font-size: clamp(1.8rem, 4vw + 0.5rem, 2.5rem);
    font-family: 'Open Sans Bold', sans-serif;
    margin: 0 0 1rem 0;
}

.uckerstrom-markets__title span {
    font-family: 'Open Sans', sans-serif;
}

.uckerstrom-markets__intro {
    line-height: 1.6;
    color: #555;
    font-size: 1.05rem;
}

.uckerstrom-markets__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Mobile First: Karten-Design für optimale Lesbarkeit auf kleinen Displays */
.uckerstrom-markets__location {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 30, 100, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.uckerstrom-markets__location:hover,
.uckerstrom-markets__location:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 30, 100, 0.1);
    outline: none;
}

/* A11y Focus State */
.uckerstrom-markets__location:focus-within {
    outline: 3px solid var(--color-brand-green);
    outline-offset: 4px;
}

.uckerstrom-markets__location-header {
    margin-bottom: 1.5rem;
}

.uckerstrom-markets__city {
    color: var(--color-primary);
    font-size: 1.25rem;
    text-transform: uppercase;
    font-family: 'Open Sans Bold', sans-serif;
    margin: 0 0 0.35rem 0;
    border-bottom: 3px solid #9BDCF0;
    display: inline-block;
}

.uckerstrom-markets__address {
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
}

.uckerstrom-markets__times {
    margin: 0;
    padding: 0;
}

.uckerstrom-markets__time-row {
    margin-bottom: 1.2rem;
}

.uckerstrom-markets__time-row:last-child {
    margin-bottom: 0;
}

.uckerstrom-markets__day {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.uckerstrom-markets__slot-wrapper { 
    margin: 0; 
}

.uckerstrom-markets__slot {
    display: block;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Tablet Layout */
@media (min-width: 768px) {
    .uckerstrom-markets__grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
}

/* Desktop Layout - Exakt wie auf der Designvorlage (Transparent, Clean) */
@media (min-width: 1200px) {
    .uckerstrom-markets__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
    .uckerstrom-markets__location {
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
    .uckerstrom-markets__location:hover,
    .uckerstrom-markets__location:focus-within {
        transform: translateY(-2px);
        box-shadow: none;
    }
    .uckerstrom-markets__location-header {
        margin-bottom: 2rem;
    }
}

footer {
    background-color: var(--color-text);
    padding: var(--pv-20);
    color: var(--font-weiss);
}


/* #########################################################
    14. MODULE: STEP LIST (Nummerierte Listen)
   ######################################################### */
.sw-step-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--mb-40) 0;
}

.sw-step-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.sw-step-list li:last-child {
    margin-bottom: 0;
}

.sw-step-list li strong {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary, #003366);
    color: var(--font-weiss, #ffffff);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: -4px; 
}

@media (min-width: 768px) {
    .sw-step-list li {
        gap: 1.5rem;
        font-size: 1.125rem;
    }
    
    .sw-step-list li strong {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin-top: -6px;
    }
}


/* #########################################################
    15. MODULE: FAQ ACCORDION (details/summary)
   ######################################################### */
.sw-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sw-faq-item {
    background-color: var(--font-weiss);
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.sw-faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 30, 100, 0.08);
}

.sw-faq-summary {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none; 
    position: relative;
    padding-right: 3rem;
}

.sw-faq-summary::-webkit-details-marker {
    display: none;
}

.sw-faq-summary:focus-visible {
    outline: 2px solid var(--color-brand-green);
    outline-offset: -2px;
}

.sw-faq-summary::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-brand-green);
    transition: transform 0.3s ease;
}

.sw-faq-item[open] .sw-faq-summary::after {
    content: "−"; 
    transform: translateY(-50%) rotate(180deg);
}

.sw-faq-content {
    padding: 0 1.5rem 1.25rem 1.5rem;
    border-top: 1px solid #e0e4e8;
    margin-top: 0.5rem;
    padding-top: 1rem;
    color: #444444;
}

@media (min-width: 768px) {
    .sw-faq-summary {
        font-size: 1.2rem;
    }
}

/* #########################################################
    16. MOBILE OPTIMIERUNG & SILBENTRENNUNG
   ######################################################### */
@media (max-width: 767px) {
    body, h1, h2, h3, h4, h5, h6, p, li, dd, dt, a, span, strong {
        overflow-wrap: break-word;
        word-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
}


/* #########################################################
    17. VIEW FERNWÄRME-GEOTHERMIE
        Module: Anschlussgebiete
   ######################################################### */

.map-figure-wrap {
    margin: 0;
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 15px 35px rgba(0, 30, 100, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.5); 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    background-color: #fff;
}

.map-figure-wrap:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 30, 100, 0.15);
}

.map-img-responsive {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease; 
}

.map-figure-wrap:hover .map-img-responsive {
    transform: scale(1.03);
}

.anschluss-text-wrap {
    padding-left: 1.5rem;
}

.funding-logo-container {
    display: flex;
    justify-content: flex-end; 
    margin-bottom: 2rem;
}

.funding-logo-container img {
    max-width: 250px;
    height: auto;
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

@media (max-width: 767px) {
    .anschluss-text-wrap {
        padding-left: 0;
        text-align: center;
    }

    .funding-logo-container {
        justify-content: center; 
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .map-figure-wrap:hover {
        transform: none;
    }
    .map-figure-wrap:hover .map-img-responsive {
        transform: none;
    }
}


/* #########################################################
    18. MODULE: BARRIEREFREIE LIGHTBOX
   ######################################################### */

.sw-lightbox-trigger {
    display: block;
    width: 100%;
    position: relative;
    padding: 1.25rem 1.5rem;
    overflow: hidden;
    text-align: left;
    text-decoration: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    background-color: var(--font-weiss);
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.sw-lightbox-trigger i {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--color-brand-green);
}

.sw-lightbox-trigger:focus-visible {
    outline: 2px solid var(--color-brand-green);
    outline-offset: -2px;
}

.sw-lightbox {
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    max-width: 90vw;
    max-height: 90vh;
    margin: auto; 
    overflow: visible; 
}

.sw-lightbox::backdrop {
    background: rgba(0, 30, 100, 0.85); 
    backdrop-filter: blur(4px); 
    animation: fadeIn 0.3s ease-out;
}

.sw-lightbox[open] {
    animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sw-lightbox__wrapper {
    position: relative;
    background: var(--font-weiss);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.sw-lightbox__content {
    overflow: auto;
    max-height: calc(90vh - 40px);
    border-radius: 4px;
}

.sw-lightbox__content img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 1200px; 
}

.sw-lightbox__close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: var(--color-brand-green);
    color: var(--font-weiss);
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    z-index: 10;
}

.sw-lightbox__close:hover,
.sw-lightbox__close:focus-visible {
    background: var(--color-brand-green-hover);
    transform: scale(1.1);
    outline: 3px solid var(--color-primary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}


/* #########################################################
    18. MODULE: PREISTABELLEN (mod_sw_preistabelle)
   ######################################################### */

.sw-pricing-module {
    margin-bottom: 2rem;
    font-family: inherit;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    background-color: var(--font-weiss);
    overflow: hidden; 
}

.sw-price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    color: var(--color-primary);
}

.sw-price-table th,
.sw-price-table td {
    padding: 12px 15px;
    vertical-align: middle;
    border: none;
}

.sw-price-table th {
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--color-primary);
}

.sw-price-table td {
    font-size: 1rem;
}

.sw-price-table tbody tr:nth-child(even) {
    background-color: rgba(0, 30, 100, 0.05); 
}

@media (min-width: 768px) {
    .table-grundpreis th:nth-child(1), .table-grundpreis td:nth-child(1) { text-align: left; width: 35%; font-weight: 600; }
    .table-grundpreis th:nth-child(2), .table-grundpreis td:nth-child(2) { text-align: center; }
    .table-grundpreis th:nth-child(3), .table-grundpreis td:nth-child(3) { text-align: center; }
    .table-grundpreis th:nth-child(4), .table-grundpreis td:nth-child(4) { text-align: right; }
    .table-grundpreis th:nth-child(5), .table-grundpreis td:nth-child(5) { text-align: right; }

    .table-arbeitspreis th:nth-child(1), .table-arbeitspreis td:nth-child(1) { text-align: left; width: 55%; font-weight: 600; }
    .table-arbeitspreis th:nth-child(2), .table-arbeitspreis td:nth-child(2) { text-align: right; }
    .table-arbeitspreis th:nth-child(3), .table-arbeitspreis td:nth-child(3) { text-align: right; }
    .table-arbeitspreis th:nth-child(4), .table-arbeitspreis td:nth-child(4) { text-align: left; padding-left: 20px; }
}

.sw-pricing-dark-zone {
    background-color: var(--color-primary);
    color: var(--font-weiss);
    padding-top: 0.5rem;
}

.sw-table-dark {
    background-color: transparent;
    color: var(--font-weiss);
}

.sw-table-dark th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.sw-table-dark tbody tr:nth-child(even) {
    background-color: transparent; 
}

.sw-pricing-info {
    padding: 1rem 15px 1.5rem 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sw-pricing-info p {
    margin: 0 0 1rem 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.sw-pricing-info p:last-child {
    margin-bottom: 0;
}

.sw-validity {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.5rem !important;
}

.sw-pricing-footer {
    padding: 1rem 15px;
    font-size: 1rem;
}

.sw-pricing-footer a {
    color: var(--font-weiss);
    text-decoration: underline;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 400;
    margin-left: 8px;
    transition: opacity 0.3s ease;
}

.sw-pricing-footer a:hover,
.sw-pricing-footer a:focus-visible {
    opacity: 0.8;
}

@media (max-width: 767px) {
    .sw-price-table, 
    .sw-price-table thead, 
    .sw-price-table tbody, 
    .sw-price-table th, 
    .sw-price-table td, 
    .sw-price-table tr { 
        display: block; 
        width: 100%; 
    }
    
    .sw-price-table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .sw-price-table tr { 
        margin-bottom: 15px;
        background-color: #ffffff;
        border-bottom: 3px solid var(--color-brand-green); 
    }
    
    .sw-table-dark tr {
        background-color: rgba(255,255,255,0.05);
        border-bottom: 3px solid var(--font-weiss);
    }

    .sw-price-table tbody tr:nth-child(even) {
        background-color: #ffffff;
    }
    .sw-table-dark tbody tr:nth-child(even) {
        background-color: rgba(255,255,255,0.05);
    }

    .sw-price-table td { 
        position: relative;
        padding: 12px 15px 12px 50% !important; 
        text-align: right !important; 
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        min-height: 45px; 
    }

    .sw-table-dark td {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .sw-price-table td:last-child {
        border-bottom: none; 
    }

    .sw-price-table td::before { 
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%; 
        padding-right: 10px; 
        white-space: normal; 
        text-align: left;
        font-weight: 700;
        font-size: 0.9rem;
        color: inherit;
    }
}


/* #########################################################
    19. MODULE: WASSERANALYSE (mod_sw_wasseranalyse)
   ######################################################### */

.sw-analyse-module {
    margin-bottom: 2rem;
    font-family: inherit;
    border-radius: 4px;
    overflow: hidden; 
}

.sw-analyse-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    color: var(--color-primary); 
    background-color: var(--font-weiss);
}

.sw-analyse-table th,
.sw-analyse-table td {
    padding: 12px 15px;
    vertical-align: middle;
    border: none;
    text-align: left; 
}

.sw-analyse-table th {
    font-weight: 700;
    font-size: 1.05rem;
    background-color: var(--font-weiss);
    border-bottom: 2px solid rgba(0, 30, 100, 0.1); 
}

.sw-analyse-table tbody tr:nth-child(odd) {
    background-color: #eaf1f8; 
}

.sw-analyse-table tbody tr:nth-child(even) {
    background-color: var(--font-weiss);
}

.sw-analyse-table td:first-child {
    color: #667788; 
}

@media (max-width: 767px) {
    .sw-analyse-table, 
    .sw-analyse-table thead, 
    .sw-analyse-table tbody, 
    .sw-analyse-table th, 
    .sw-analyse-table td, 
    .sw-analyse-table tr { 
        display: block; 
        width: 100%; 
    }
    
    .sw-analyse-table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .sw-analyse-table tr { 
        margin-bottom: 15px;
        background-color: #ffffff !important;
        border: 1px solid rgba(0, 30, 100, 0.1);
        border-radius: 4px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    
    .sw-analyse-table td { 
        position: relative;
        padding: 12px 15px 12px 45% !important; 
        text-align: right !important; 
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        min-height: 45px; 
    }
    
    .sw-analyse-table td:last-child {
        border-bottom: none; 
    }

    .sw-analyse-table td::before { 
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 40%; 
        padding-right: 10px; 
        white-space: normal;
        text-align: left;
        font-weight: 700;
        font-size: 0.9rem;
        color: var(--color-primary);
    }
    
    .sw-analyse-table td:first-child {
        color: inherit; 
    }
}


/* #########################################################
    20. MODULE: ABWASSERTARIFE (Full-Width Blocks)
   ######################################################### */

.sw-tarif-block {
    background: var(--font-weiss);
    border: 1px solid rgba(0, 30, 100, 0.1);
    border-radius: 4px;
    margin-bottom: 3rem;
    overflow: hidden;
}

.sw-tb-header {
    padding: 2rem;
    background-color: #f8f9fa; 
    border-bottom: 2px solid var(--color-primary);
}

.sw-tb-pretitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #667788;
    text-transform: uppercase;
}

.sw-tb-title {
    font-size: 2.5rem;
    /*font-weight: 300;*/
    color: var(--color-primary);
    margin: 0.2rem 0;
}

.sw-tb-subtitle {
    display: block;
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.sw-tb-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem; 
}

.sw-tb-features li {
    font-size: 0.95rem;
    color: #445566;
    position: relative;
    padding-left: 25px;
}

.sw-tb-features li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--color-brand-green);
}

.sw-tb-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    color: var(--color-primary);
}

.sw-tb-table th,
.sw-tb-table td {
    padding: 15px 20px;
    vertical-align: middle;
}

.sw-tb-table th {
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 30, 100, 0.2);
    font-size: 1.05rem;
    background-color: var(--font-weiss);
}

.sw-tb-table td {
    border-bottom: 1px solid #edf1f5;
    font-size: 1rem;
}

.sw-tb-table tbody tr:nth-child(even) {
    background-color: rgba(0, 30, 100, 0.02);
}

.sw-tb-footer {
    padding: 2rem;
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 30, 100, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.sw-tb-footer-content {
    flex: 1 1 auto;
    max-width: 800px;
}

.sw-tb-validity {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #667788;
}

.sw-tb-infotext {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #445566;
}

.sw-tb-footer-action {
    flex: 0 0 auto;
}

@media (max-width: 767px) {
    .sw-tb-header, .sw-tb-footer {
        padding: 1.5rem;
    }
    
    .sw-tb-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .sw-tb-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .sw-tb-table, .sw-tb-table thead, .sw-tb-table tbody, 
    .sw-tb-table th, .sw-tb-table td, .sw-tb-table tr { 
        display: block; width: 100%; 
    }
    
    .sw-tb-table thead tr { 
        position: absolute; top: -9999px; left: -9999px;
    }
    
    .sw-tb-table tr { 
        margin-bottom: 15px;
        background-color: #fff !important;
        border-top: 1px solid #edf1f5;
        border-bottom: 1px solid #edf1f5;
    }
    
    .sw-tb-table td { 
        position: relative;
        padding: 12px 15px 12px 50% !important; 
        text-align: right !important; 
        border-bottom: 1px solid #edf1f5;
    }
    
    .sw-tb-table td:last-child { border-bottom: none; }

    .sw-tb-table td::before { 
        content: attr(data-label);
        position: absolute; left: 15px; width: 45%; 
        padding-right: 10px; text-align: left;
        font-weight: 700; font-size: 0.9rem;
    }
}


/* #########################################################
    21. MODULE: INFO-KACHELN (Modern Horizontal Card Layout)
   ######################################################### */

.sw-infokacheln-grid {
    display: grid;
    grid-template-columns: 1fr; /* Bleibt immer einspaltig */
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .sw-infokacheln-grid {
        gap: 2rem;
    }
}

.sw-ik-card-modern {
    background: var(--font-weiss);
    border: 1px solid #e0e4e8;
    border-radius: 8px; /* Etwas weichere Ecken für modernes Feeling */
    display: flex;
    flex-direction: column; /* Mobile First: Untereinander */
    padding: 1.5rem;
    gap: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 30, 100, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sw-ik-card-modern:hover,
.sw-ik-card-modern:focus-within {
    box-shadow: 0 8px 25px rgba(0, 30, 100, 0.08);
    transform: translateY(-2px);
}

/* Flexbox Verhalten ab Tablet/Desktop */
@media (min-width: 768px) {
    .sw-ik-card-modern {
        flex-direction: row; /* Nebeneinander */
        align-items: center;
        justify-content: space-between;
        padding: 2rem;
    }
}

/* Linke Seite: Icon und Text */
.sw-ik-main-content {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    flex: 1; /* Nimmt den verfügbaren Platz ein */
}

.sw-ik-icon {
    flex: 0 0 55px; 
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--font-weiss);
    font-size: 1.6rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Leichter Schatten für das Icon */
}

.sw-ik-circle-green { background-color: var(--color-brand-green); } 
.sw-ik-circle-blue { background-color: var(--color-primary); } 

.sw-ik-text {
    flex: 1;
    padding-top: 5px; 
}

.sw-ik-title {
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.sw-ik-meta {
    color: #556677;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Rechte Seite: Buttons und Meta-Infos */
.sw-ik-actions {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .sw-ik-actions {
        flex: 0 0 auto; 
        align-items: flex-end; /* Rechtsbündig in der Karte */
        padding-left: 2rem;
        border-left: 1px solid #e0e4e8; /* Dezente Trennlinie zwischen Text und Buttons */
    }
}

.sw-ik-link-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Durch max-content wird die Box nur so breit wie der längste Button */
    width: max-content; 
    min-width: 200px;
    max-width: 100%;
}

.sw-ik-link-item {
    display: flex;
    flex-direction: column;
    /* Zieht alle Kinder (Buttons) auf die gleiche (maximale) Breite */
    align-items: stretch; 
    width: 100%;
}

.sw-ik-link-item .btn {
    width: 100%; /* Füllt nun den max-content Raum komplett aus */
}

/* Meta-Infos unter dem Button */
.sw-ik-item-meta {
    font-size: 0.8rem;
    color: #667788;
    margin-top: 0.4rem;
    opacity: 0.9;
}

.sw-ik-item-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 0.1rem;
}

/* Fallback für Mobile View (100% Breite) */
@media (max-width: 767px) {
    .sw-ik-link-list {
        width: 100%;
        min-width: auto;
    }
}

/* #########################################################
    22. MODULE: ANSPRECHPARTNER (mod_sw_contacts) - 2 SPALTEN
   ######################################################### */

.sw-contacts-module {
    width: 100%;
    padding: 1rem 0;
}

/* Kachel-Struktur */
.sw-contact-card-horizontal {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    height: 100%;
    align-items: center;
    text-align: center;
}

/* Ab 576px (große Smartphones/Tablets) greift das Links-Rechts-Layout */
@media (min-width: 576px) {
    .sw-contact-card-horizontal {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 2rem;
    }
}

/* Bildbereich (Links) */
.sw-contact-hz-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--color-brand-green);
    background-color: var(--color-bg-even);
    box-shadow: 0 4px 10px rgba(0, 30, 100, 0.08);
}

.sw-contact-hz-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Inhaltsbereich (Rechts) */
.sw-contact-hz-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
}

.sw-contact-hz-header {
    margin-bottom: 1.5rem;
}

.sw-contact-hz-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--color-primary);
}

.sw-contact-hz-position {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #667788;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons und Interaktionen */
.sw-contact-hz-actions {
    margin-top: auto; 
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sw-action-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    gap: 0.5rem; /* Sorgt für Abstand zwischen Icon und Text */
}

.sw-email-action-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

@media (min-width: 576px) {
    .sw-email-action-group {
        align-items: flex-start;
    }
}

/* Dezenter Copy-Button */
.sw-copy-subtle {
    background: transparent;
    border: none;
    color: #667788;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* Sorgt für Abstand zwischen Icon und Text */
}

.sw-copy-subtle:hover,
.sw-copy-subtle:focus-visible {
    color: var(--color-brand-green);
    outline: none;
}

.sw-copy-subtle:focus-visible {
    border-radius: 4px;
    outline: 2px solid var(--color-brand-green);
    outline-offset: 4px;
}

.sw-copy-subtle.is-copied {
    color: var(--color-brand-green);
    text-decoration: none;
    font-weight: 600;
}

/* #########################################################
    22. KARRIERE: BENEFITS GRID
   ######################################################### */

   .sw-hero-title .sw-job-gender {
    font-weight: 400;
    font-size: 60%;
    white-space: nowrap; /* Verhindert, dass (m/w/d) am Zeilenende umgebrochen wird */
    opacity: 0.9; /* Optional: Nimmt die optische Härte noch ein winziges Stück zurück */
}

.sw-benefits-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile First: 1 Spalte */
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Tablet: 2 Spalten */
@media (min-width: 576px) {
    .sw-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Desktop: 4 Spalten für optimale Übersicht bei 16 Items */
@media (min-width: 992px) {
    .sw-benefits-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.sw-benefits-grid li {
    background-color: var(--font-weiss);
    border: 1px solid rgba(0, 30, 100, 0.08);
    border-radius: 6px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.sw-benefits-grid li:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 30, 100, 0.06);
    border-color: rgba(82, 153, 47, 0.3); /* Zarter grüner Rand beim Hover */
}

.sw-benefit-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(82, 153, 47, 0.1); /* Helles Grün als Hintergrund */
    color: var(--color-brand-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sw-benefits-grid li:hover .sw-benefit-icon {
    background-color: var(--color-brand-green);
    color: var(--font-weiss);
}

.sw-benefit-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/* KI-Tooltip Styling */
.kwn-hero-ai {
    position: relative;
    cursor: help;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kwn-hero-ai-tooltip {
    position: absolute;
    bottom: 100%; /* Öffnet nach oben */
    right: 0;     /* Rechtsbündig verankert -> Kein Überlauf am rechten Rand! */
    margin-bottom: 10px;
    background-color: var(--color-primary);
    color: var(--font-weiss);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 40;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    pointer-events: none; /* Verhindert Flackern beim Hovern */
}

/* Der kleine Pfeil (Dreieck) unter dem Tooltip */
.kwn-hero-ai-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 12px; /* Pfeil sitzt rechts, passend zur Verankerung */
    border-width: 6px;
    border-style: solid;
    border-color: var(--color-primary) transparent transparent transparent;
}

/* Tooltip einblenden bei Hover und Tastatur-Fokus */
.kwn-hero-ai:hover .kwn-hero-ai-tooltip,
.kwn-hero-ai:focus .kwn-hero-ai-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Sticky Sidebar für Desktop (optional, aber extrem schick) */
@media (min-width: 992px) {
    .job-sticky-sidebar {
        position: sticky;
        top: 2rem; /* Abstand zum oberen Bildschirmrand */
        z-index: 10;
    }
}


/* =========================================================
   STELLENANZEIGE: META-INFO BOX (START, STANDORT, ETC.)
   ========================================================= */
.sw-job-meta-box {
    background-color: var(--color-bg-even); /* Nutzt dein bestehendes Hellblau */
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: var(--mb-40);
}

.sw-job-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sw-job-meta-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--color-text);
}

.sw-job-meta-list li:last-child {
    margin-bottom: 0;
}

.sw-job-meta-list li i {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-top: 2px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sw-job-meta-box hr {
    border: 0;
    border-top: 1px solid rgba(0, 30, 100, 0.1);
    margin: 1.5rem 0;
}

/* #########################################################
    23. MODULE: DOWNLOADS NAVIGATION (Grid Layout)
   ######################################################### */

.swp_downloadsNavigation {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--mb-40) 0;
    
    /* Grid Layout: Startet als 1-Spalten-Layout (Mobile First) */
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.swp_downloadsNavigation .nav-item {
    margin: 0;
    padding: 0;
}

/* Tablet: 2 Spalten ab 768px */
@media (min-width: 768px) {
    .swp_downloadsNavigation {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Desktop: 4 Spalten ab 992px */
@media (min-width: 992px) {
    .swp_downloadsNavigation {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Buttons: Füllen die Grid-Zelle komplett aus */
.swp_downloadsNavigation a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1rem;
    background-color: var(--color-bg-even);
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    line-height: 1.3;
    width: 100%; /* Stellt sicher, dass der Link das Grid-Element ausfüllt */
}

/* Hover-Status */
.swp_downloadsNavigation a:hover {
    background-color: var(--color-primary);
    color: var(--font-weiss);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 30, 100, 0.15);
}

/* Fokus-Status (Barrierefreiheit) */
.swp_downloadsNavigation a:focus-visible {
    background-color: var(--color-primary);
    color: var(--font-weiss);
    outline: 3px solid var(--color-brand-green);
    outline-offset: 4px;
    transform: translateY(-2px);
    box-shadow: none;
}







/* #########################################################
    24. MODULE: Box 1 bis Box 4 - 4 SPALTEN
   ######################################################### */

#systemboxen {
    background-color: var(--color-text);
    color: var(--font-weiss);
    font-size: 14px;
}
/*
#systemboxen > div > div > div {
    padding-right: 15px;
    margin-right: 15px;
}

#systemboxen > div > div > div:not(:last-child) {
    border-right: 1px dotted #fff;
    padding-right: 15px;
    margin-right: 15px;
}
*/
@media (min-width: 992px) {
    #systemboxen .row > div:not(:last-child) {
        border-right: 1px dotted #fff;
        padding: 0 1rem 0 2rem;
    }

    #systemboxen .row > div:is(:last-child) {
        padding: 0 0 0 2rem;
    }
}

#systemboxen h4#contact-heading {
    font-size: 18px;
    font-weight: 400;
}

#systemboxen a {
    color: var(--font-weiss);
}

.sw-contact-item {
    margin-bottom: 20px;
}

#systemboxen span.sw-contact-label {
    font-weight: 700;
}

.sw-contact-grid {
    margin-top: 20px;
}

/* Container für alle Produkte */
.sw-product-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Großzügiger Abstand zwischen den Logos */
    padding: 20px 0 1rem 0;
}

/* Einzelne Produkt-Box */
.sw-product-card {
    display: flex;
    flex-direction: column;
    background-color: transparent; /* Kein weißer Hintergrund */
    border: none;
    box-shadow: none;
    width: max-content; /* Passt die Breite exakt an das Logo an */
}

/* Logo Styling */
.sw-product-logo {
    max-width: 100%;
    height: auto;
    max-height: 30px; /* Verhindert, dass Logos zu riesig werden. Ggf. anpassen */
    margin-bottom: 0.25rem; /* Leichter Abstand zum Text darunter */
    display: block;
}

/* Link Styling */
.sw-product-link {
    color: #ffffff; /* Farbe Weiß */
    text-transform: uppercase; /* Wie im Bild alles in Großbuchstaben */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    align-self: flex-start; /* Schiebt den Link an die rechte Kante des Logos */
    transition: opacity 0.2s ease, text-decoration 0.2s ease;
    padding: 0.2rem 0;
}

/* Hover- und Fokus-Effekte (Barrierefreiheit) */
.sw-product-link:hover,
.sw-product-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
    opacity: 0.8;
}

.sw-product-link:focus-visible {
    outline: 2px dashed #ffffff;
    outline-offset: 4px;
    border-radius: 2px;
}



/* KUNDENBÜROS ÖFFNUNGSZEITEN */

/* Container Reset */
.sw-market-accordion-module {
    color: #ffffff;
    font-family: inherit;
}

.sw-accordion-item {
    border-bottom: 1px solid transparent;
}

/* Entfernt den Standard-Pfeil des Browsers im Summary */
.sw-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    list-style: none; /* Für Firefox/Chrome */
    transition: opacity 0.2s ease;
}

.sw-accordion .sw-accordion-item:first-of-type summary {
    padding-top: 4px;
}

.sw-accordion-header::-webkit-details-marker {
    display: none; /* Für Safari */
}

.sw-accordion-header:hover,
.sw-accordion-header:focus-visible {
    opacity: 0.8;
    outline: none;
}

.sw-accordion-header:focus-visible .sw-accordion-title {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Titel (Stadtname) */
.sw-accordion-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    color: #ffffff;
}

/* Das Icon (Pfeil nach rechts) */
.sw-accordion-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

/* Wenn das Accordion offen ist */
details[open] > .sw-accordion-header {
    border-bottom: 1px dotted #ffffff;
    margin-bottom: 1rem;
}

details[open] > .sw-accordion-header .sw-accordion-icon {
    transform: rotate(45deg); /* Pfeil zeigt nach unten */
}

/* Inhalt des Accordions */
.sw-accordion-content {
    padding-bottom: 1.5rem;
    animation: swAccordionFadeIn 0.3s ease-in-out;
}

.sw-accordion-brand {
    font-size: 1rem;
    margin: 0 0 0.2rem 0;
}

.sw-accordion-address {
    margin: 0 0 1rem 0;
    font-weight: 300;
}

/* Zeiten Liste (Definition List) */
.sw-accordion-times {
    margin: 0;
    padding: 0;
}

.sw-accordion-day {
    font-weight: 400;
    margin-top: 0.5rem;
}

.sw-accordion-slots {
    margin: 0 0 0.5rem 0;
    font-weight: 300;
}

/* Sanfte Einblendung für den Inhalt */
@keyframes swAccordionFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}










/* #########################################################
    25. MODULE: Footer Navigation
   ######################################################### */

/* Styling für das Footer-Menü "SCHNELL NAVIGIERT" */
.mod-menu.nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mod-menu.nav .nav-item {
    margin-bottom: 0; /* Abstand zwischen den Menüpunkten */
}

#mod-custom199 .mod-menu.nav .nav-item a {
    color: #ffffff;
    text-decoration: underline;
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem; /* Leicht kleiner, passend zur Typografie im Footer */
    transition: opacity 0.2s ease;
    line-height: 1.4;
}

/* Hover-Effekt */
#mod-custom199 .mod-menu.nav .nav-item a:hover,
mod-custom199 .mod-menu.nav .nav-item a:focus-visible {
    outline: none;
    text-decoration: none;
}

/* Hervorhebung des aktiven Links (optional) */
mod-custom199 .mod-menu.nav .nav-item.active a {
    font-weight: 600;
}


/* #########################################################
    26. MODULE: SYSTEMMELDUNGEN (ALERTS)
   ######################################################### */

.sw-alert {
    padding: 1.25rem;
    border-radius: 4px;
    margin-bottom: var(--mb-20);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .sw-alert {
        padding: 1.5rem;
    }
}

.sw-alert-success {
    background-color: #e8f5e9;
    border-left: 5px solid #2e7d32;
    color: #1b5e20; /* A11y: Ausreichender Kontrast für Text auf hellem Hintergrund */
}

.sw-alert-success h1,
.sw-alert-success h2,
.sw-alert-success h3,
.sw-alert-success h4,
.sw-alert-success h5,
.sw-alert-success h6 {
    color: #1b5e20;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.sw-alert p:last-child {
    margin-bottom: 0;
}








/* #########################################################
    27. MODULE: BACK 2 TOP
   ######################################################### */

#backToTopBtn {
  display: none; /* Standardmäßig ausgeblendet */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  font-size: 15px;
  border: none;
  outline: none;
  background-color: var(--color-text); /* Deine Joomla-Template-Farbe hier anpassen */
  color: white;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 50px;
  box-shadow: 0px 4px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s, opacity 0.3s;
  opacity: 0;
  border: 2px solid var(--font-weiss);
}

#backToTopBtn.show {
  display: block;
  opacity: 1;
}

#backToTopBtn:hover {
  background-color: #003d82; /* Dunklere Farbe beim Hover */
}








/* #########################################################
    BILDER & BILDUNTERSCHRIFTEN (JOOMLA CORE FIGURES)
   ######################################################### */

figure {
    margin: 0;
}

figure.item-image {
    background-color: var(--font-weiss);
    border-radius: 8px; /* Moderne, weiche Ecken passend zu deinen Cards */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 30, 100, 0.04); /* Dezenter Schatten */
}

figure.item-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0; /* Oben rund, unten eckig, damit es an die Caption anschließt */
}

/* Die eigentliche Bildunterschrift */
figure.item-image .caption {
    display: block;
    padding: 0.8rem 1.2rem;
    font-size: 0.85rem;
    color: #556677; /* Dezentes Grau-Blau, gut lesbar aber nicht aufdringlich */
    font-style: italic;
    line-height: 1.5;
    background-color: #f8f9fa; /* Sehr zartes Grau als Abgrenzung zum weißen Artikel */
    border-left: 3px solid var(--color-brand-green); /* Kleiner grüner Akzent passend zu Infoboxen */
    margin: 0;
    text-align: left;
}

/* Joomla Klasse für links ausgerichtete Bilder (Textumfluss) */
figure.item-image.left {
    float: left;
}

/* Joomla Klasse für rechts ausgerichtete Bilder */
figure.item-image.right {
    float: right;
}

/* Mobile Optimierung: Textumfluss aufheben */
@media (max-width: 767px) {
    figure.item-image.left,
    figure.item-image.right {
        float: none;
        max-width: 100%;
        margin-right: 0;
        margin-left: 0;
        margin-bottom: var(--mb-20);
    }
    
    figure.item-image img {
        border-radius: 8px 8px 0 0;
    }
}