/* ========================================================================
   Datei: css/strandbad-modul.css
   STRANDBAD - MODULARES STYLESHEET
   Architektur: Mobile First & Component Based
   ======================================================================== */

/* --- 01. TYPOGRAFIE --- */

@font-face {
    font-family: 'Dax Offc Black';
    src: url('fonts/DaxOffc-Black.eot');
    src: url('fonts/DaxOffc-Black.eot?#iefix') format('embedded-opentype'),
         url('fonts/DaxOffc-Black.woff2') format('woff2'),
         url('fonts/DaxOffc-Black.woff') format('woff'),
         url('fonts/DaxOffc-Black.ttf') format('truetype'),
         url('fonts/DaxOffc-Black.svg#DaxOffc-Black') format('svg');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dax Offc Bold';
    src: url('fonts/DaxOffc-Bold.eot');
    src: url('fonts/DaxOffc-Bold.eot?#iefix') format('embedded-opentype'),
         url('fonts/DaxOffc-Bold.woff2') format('woff2'),
         url('fonts/DaxOffc-Bold.woff') format('woff'),
         url('fonts/DaxOffc-Bold.ttf') format('truetype'),
         url('fonts/DaxOffc-Bold.svg#DaxOffc-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dax Offc';
    src: url('fonts/DaxOffc.eot');
    src: url('fonts/DaxOffc.eot?#iefix') format('embedded-opentype'),
         url('fonts/DaxOffc.woff2') format('woff2'),
         url('fonts/DaxOffc.woff') format('woff'),
         url('fonts/DaxOffc.ttf') format('truetype'),
         url('fonts/DaxOffc.svg#DaxOffc') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- 02. VARIABLEN (DESIGN SYSTEM) --- */

:root {
    --color-strandbad-red: #b32025;
    --color-strandbad-red-hover: #8a171c;
    --color-strandbad-highlight: #BAD405;
    --color-strandbad-green: #2e4a31;
    --color-text-main: #333333;
    --color-text-muted: #555555;
    --color-bg-white: #ffffff;
    --color-bg-light: #fbf9f6;
    --color-border-light: #e0dcd5;
    
    --header-padding-y: 1rem;
    --nav-gap-desktop: 2rem;
    --section-padding-y: 4rem;

    --font-primary: 'Dax Offc', sans-serif;
    --font-heading: 'Dax Offc Black', sans-serif;
    --font-bold: 'Dax Offc Bold', sans-serif;
    
    --box-shadow-default: 0 4px 15px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 10px 25px rgba(0,0,0,0.08);
    --box-shadow-btn: 0 4px 10px rgba(179, 32, 37, 0.3);
}

/* --- 03. BASIS-STYLES --- */

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

body {
    font-family: var(--font-primary);
    color: var(--color-text-main);
    line-height: 1.5;
    margin: 0;
}

h1, h2, h3, h4, h5, h6, 
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-bold);
    margin-top: 0;
}

h1.highlight,
h3.highlight {
    color: var(--color-strandbad-red);
}

.highlight {
    color: var(--color-strandbad-highlight);
}

.highlight-gruen {
    color: var(--color-strandbad-green);
}

.hero-content-wrapper .sw-heroheadline {
    font-family: var(--font-bold);
}

.hero-content-wrapper .sw-heroheadline span.highlight {
    font-family: var(--font-heading);
}

/* --- GLOBALE BUTTON STYLES --- */
.btn-cta.global-btn {
    background-color: var(--color-strandbad-red);
    color: var(--color-bg-white);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-cta.global-btn:hover,
.btn-cta.global-btn:focus {
    background-color: var(--color-strandbad-red-hover);
    color: var(--color-bg-white);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-btn);
    text-decoration: none;
}

.btn-cta.global-btn:focus-visible {
    outline: 3px solid var(--color-strandbad-highlight);
    outline-offset: 2px;
}

/* --- 04. HEADER BASIS --- */

.header,
.container-header {
    background-color: var(--color-bg-white);
    background-image: none;
    box-shadow: var(--box-shadow-default);
    padding-top: var(--header-padding-y);
    padding-bottom: var(--header-padding-y);
}

/* --- 05. BRANDING & LOGO KOMPONENTE --- */

.navbar-brand {
    max-width: 250px;
    margin-right: auto;
    z-index: 10;
}

.brand-logo img,
.brand-logo svg {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
}

/* --- 06. NAVIGATION KOMPONENTE --- */

.navigation-menu {
    margin: 0;
}

.navigation-menu ul.mod-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigation-menu ul.mod-menu li > a {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
    outline: none; /* Reset standard outline */
}

.navigation-menu ul.mod-menu li > a:hover,
.navigation-menu ul.mod-menu li > a:focus {
    color: var(--color-strandbad-red);
}

/* A11y Fokus-Sichtbarkeit für Tastaturnutzer */
.navigation-menu ul.mod-menu li > a:focus-visible {
    outline: 2px solid var(--color-strandbad-red);
    outline-offset: 4px;
    border-radius: 2px;
}

/* --- 07. CALL-TO-ACTION BUTTON (IN NAVIGATION) --- */

.navigation-menu ul.mod-menu li.btn-cta > a,
.navigation-menu ul.mod-menu a.btn-cta {
    background-color: var(--color-strandbad-red);
    color: var(--color-bg-white);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.navigation-menu ul.mod-menu li.btn-cta > a:hover,
.navigation-menu ul.mod-menu a.btn-cta:hover,
.navigation-menu ul.mod-menu li.btn-cta > a:focus {
    background-color: var(--color-strandbad-red-hover);
    color: var(--color-bg-white);
    transform: translateY(-1px);
    box-shadow: var(--box-shadow-btn);
}

.navigation-menu ul.mod-menu li.btn-cta > a::before {
    content: '\f0f3';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
}

/* --- 08. DESKTOP LAYOUT (AB 992PX) --- */

@media (min-width: 992px) {
    /* Erhöhte Spezifität für Core-Overrides statt !important */
    body .header .container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .navbar-brand {
        flex: 0 0 auto;
        max-width: 220px;
    }

    .navigation-menu {
        flex: 0 0 auto;
    }

    body .navigation-menu ul.mod-menu {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: var(--nav-gap-desktop);
    }

    .navigation-menu ul.mod-menu li:not(.btn-cta) > a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--color-strandbad-red);
        border-radius: 2px;
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 0.3s ease;
    }

    .navigation-menu ul.mod-menu li:not(.btn-cta) > a:hover::after,
    .navigation-menu ul.mod-menu li:not(.btn-cta) > a:focus::after,
    .navigation-menu ul.mod-menu li.active:not(.btn-cta) > a::after,
    .navigation-menu ul.mod-menu li.current:not(.btn-cta) > a::after {
        transform: scaleX(1);
    }
}

/* ========================================================================
   09. FEATURES SEKTION (LAYOUT & GRID) - "ALLES FÜR EINEN PERFEKTEN TAG"
   ======================================================================== */

.features-section {
    padding: var(--section-padding-y) 1rem;
    width: 100%;
    max-width: 100vw;
    grid-column: 1 / -1; 
    flex: 0 0 100%; 
    clear: both;
    display: block;
}

.container-features {
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

.features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.features-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.features-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 12px;
    margin: 1rem auto 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 10"><path d="M0 5 Q 12.5 0, 25 5 T 50 5" fill="none" stroke="%23b32025" stroke-width="2" stroke-linecap="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    text-align: center;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    color: var(--color-strandbad-red);
    font-size: 3rem;
    margin-bottom: 1.25rem;
    height: 65px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.feature-item-title {
    color: var(--color-strandbad-green);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-item-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
    max-width: 250px;
}

@media (min-width: 576px) and (max-width: 1023px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem 0;
    }

    .feature-item {
        border-right: 1px solid var(--color-border-light);
        border-bottom: 1px solid var(--color-border-light);
    }
    
    .feature-item:nth-child(3n) { border-right: none; }
    .feature-item:nth-last-child(-n+3) { border-bottom: none; }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 0;
    }

    .feature-item {
        padding: 0 1rem;
        border-right: 1px solid var(--color-border-light);
    }

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

/* ========================================================================
   10. STRANDBAD GRID SYSTEM (12-Spalten Flexbox)
   ======================================================================== */

:root {
    --sb-gutter-x: 30px;
    --sb-gutter-y: 0;
}

.sb-container,
.sb-container-fluid {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: calc(var(--sb-gutter-x) / 2);
    padding-left: calc(var(--sb-gutter-x) / 2);
}

@media (min-width: 576px)  { .sb-container { max-width: 540px; } }
@media (min-width: 768px)  { .sb-container { max-width: 720px; } }
@media (min-width: 992px)  { .sb-container { max-width: 960px; } }
@media (min-width: 1200px) { .sb-container { max-width: 1140px; } }
@media (min-width: 1400px) { .sb-container { max-width: 1320px; } }

.sb-row {
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(var(--sb-gutter-y) * -1);
    margin-right: calc(var(--sb-gutter-x) / -2);
    margin-left: calc(var(--sb-gutter-x) / -2);
}

.sb-row > * {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--sb-gutter-x) / 2);
    padding-left: calc(var(--sb-gutter-x) / 2);
    margin-top: var(--sb-gutter-y);
}

/* Basis Spalten */
.sb-col { flex: 1 0 0%; }
.sb-col-auto { flex: 0 0 auto; width: auto; }

.sb-col-1  { width: 8.333333%; }
.sb-col-2  { width: 16.666667%; }
.sb-col-3  { width: 25%; }
.sb-col-4  { width: 33.333333%; }
.sb-col-5  { width: 41.666667%; }
.sb-col-6  { width: 50%; }
.sb-col-7  { width: 58.333333%; }
.sb-col-8  { width: 66.666667%; }
.sb-col-9  { width: 75%; }
.sb-col-10 { width: 83.333333%; }
.sb-col-11 { width: 91.666667%; }
.sb-col-12 { width: 100%; }

.sb-offset-1 { margin-left: 8.333333%; }
.sb-offset-2 { margin-left: 16.666667%; }
.sb-offset-3 { margin-left: 25%; }
.sb-offset-4 { margin-left: 33.333333%; }
.sb-offset-6 { margin-left: 50%; }

/* Responsive Spalten */
@media (min-width: 576px) {
    .sb-col-sm-1  { width: 8.333333%; }
    .sb-col-sm-2  { width: 16.666667%; }
    .sb-col-sm-3  { width: 25%; }
    .sb-col-sm-4  { width: 33.333333%; }
    .sb-col-sm-5  { width: 41.666667%; }
    .sb-col-sm-6  { width: 50%; }
    .sb-col-sm-7  { width: 58.333333%; }
    .sb-col-sm-8  { width: 66.666667%; }
    .sb-col-sm-9  { width: 75%; }
    .sb-col-sm-10 { width: 83.333333%; }
    .sb-col-sm-11 { width: 91.666667%; }
    .sb-col-sm-12 { width: 100%; }
}

@media (min-width: 768px) {
    .sb-col-md-1  { width: 8.333333%; }
    .sb-col-md-2  { width: 16.666667%; }
    .sb-col-md-3  { width: 25%; }
    .sb-col-md-4  { width: 33.333333%; }
    .sb-col-md-5  { width: 41.666667%; }
    .sb-col-md-6  { width: 50%; }
    .sb-col-md-7  { width: 58.333333%; }
    .sb-col-md-8  { width: 66.666667%; }
    .sb-col-md-9  { width: 75%; }
    .sb-col-md-10 { width: 83.333333%; }
    .sb-col-md-11 { width: 91.666667%; }
    .sb-col-md-12 { width: 100%; }
    
    .sb-offset-md-0 { margin-left: 0; }
    .sb-offset-md-3 { margin-left: 25%; }
    .sb-offset-md-4 { margin-left: 33.333333%; }
}

@media (min-width: 992px) {
    .sb-col-lg-1  { width: 8.333333%; }
    .sb-col-lg-2  { width: 16.666667%; }
    .sb-col-lg-3  { width: 25%; }
    .sb-col-lg-4  { width: 33.333333%; }
    .sb-col-lg-5  { width: 41.666667%; }
    .sb-col-lg-6  { width: 50%; }
    .sb-col-lg-7  { width: 58.333333%; }
    .sb-col-lg-8  { width: 66.666667%; }
    .sb-col-lg-9  { width: 75%; }
    .sb-col-lg-10 { width: 83.333333%; }
    .sb-col-lg-11 { width: 91.666667%; }
    .sb-col-lg-12 { width: 100%; }
}

@media (min-width: 1200px) {
    .sb-col-xl-3  { width: 25%; }
    .sb-col-xl-4  { width: 33.333333%; }
    .sb-col-xl-6  { width: 50%; }
    .sb-col-xl-8  { width: 66.666667%; }
}

/* ========================================================================
   11. INFOBOXES & KARTEN
   ======================================================================== */

.infobox-link {
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    height: 100%;
    box-shadow: var(--box-shadow-default);
    text-decoration: none;
    color: var(--color-text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.infobox-link:hover,
.infobox-link:focus {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.infobox-link:focus-visible {
    outline: 2px solid var(--color-strandbad-red);
    outline-offset: 4px;
}

.infobox-link:hover .fake-btn {
    background-color: var(--color-strandbad-red-hover);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-btn);
}

.image-credit-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-top-left-radius: 4px;
    pointer-events: none;
    font-family: var(--font-primary);
}

.safe-iframe-overlay {
    border-radius: 6px;
}

.mod-infoboxes-body p.kalt,
.mod-infoboxes-body p.frisch,
.mod-infoboxes-body p.angenehm,
.mod-infoboxes-body p.warm {
    color: var(--color-text-muted);
} 

/* ========================================================================
   12. FOOTER
   ======================================================================== */

.footer {
    color: #ffffff;
    background-color: var(--color-strandbad-red-hover);
    background-image: none;
    margin-top: 1rem; /* Konsistenz: rem statt em auf oberster Ebene */
}

/* Container und Fallback-Variablen */
.mod-a11y-articles {
    --card-bg: #ffffff;
    --title-color: #212529;
    --btn-bg: #0056b3;
    --btn-color: #ffffff;
    --btn-hover: #004494;
}

/* Mobile First Layout (1 Spalte) */
.mod-a11y-articles .articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Accessibility Utilities */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Base Article Styles */
.article-item {
    display: flex;
    flex-direction: column;
    position: relative; /* Wichtig für den Stretched Link */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Visuelles Feedback beim Hover über die ganze Kachel */
.article-item:hover {
    transform: translateY(-3px);
}

.article-image img,
.card-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.article-title {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.article-title a,
.card-title a {
    text-decoration: none;
    color: var(--title-color); 
}

/* === STRETCHED LINK TRICK === */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.article-item:hover .stretched-link,
.article-item:focus-within .stretched-link {
    text-decoration: underline;
}

.article-introtext p:last-child {
    margin-bottom: 0;
}

.readmore-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--btn-bg); 
    color: var(--btn-color); 
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    /* Damit der Button klickbar/fokussierbar bleibt, muss er ÜBER dem stretched-link liegen */
    position: relative;
    z-index: 2; 
}

.readmore-btn:hover,
.readmore-btn:focus {
    background-color: var(--btn-hover); 
    color: var(--btn-color);
    text-decoration: none;
}

/* Card Layout Specifics */
.card-layout {
    background-color: var(--card-bg); 
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    height: 100%;
}

.card-layout:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.1); /* Stärkerer Schatten als Hover-Feedback */
}

.card-image-wrapper img {
    aspect-ratio: 16 / 9;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    margin-top: 0;
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
}

/* Responsive Anpassungen (Tablet / Desktop) */
@media (min-width: 768px) {
    .mod-a11y-articles .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .mod-a11y-articles .articles-grid[data-columns="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
    .mod-a11y-articles .articles-grid[data-columns="4"] {
        grid-template-columns: repeat(4, 1fr);
    }
}








/* ========================================================================
   MODIFIKATION: 5er-Layout (features-grid-5)
   Pfad: /css/strandbad-modul.css
   ======================================================================== */

/* Generelle Farbanpassungen (ersetzt die Inline-Styles) */
.features-section .features-title,
.features-grid .feature-icon,
.features-grid .feature-item-title {
    color: var(--color-strandbad-red);
}

/* Tablet (576px - 1023px): Wechsel auf Flexbox für zentrierte Zweier-Reihe unten */
@media (min-width: 576px) and (max-width: 1023px) {
    .features-grid.features-grid-5 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 0;
    }

    .features-grid.features-grid-5 .feature-item {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        border-right: 1px solid var(--color-border-light);
        border-bottom: 1px solid var(--color-border-light);
    }

    /* Rahmenkorrekturen für das 5er-Flex-Layout auf Tablet */
    .features-grid.features-grid-5 .feature-item:nth-child(3n) {
        border-right: none;
    }
    .features-grid.features-grid-5 .feature-item:nth-child(4),
    .features-grid.features-grid-5 .feature-item:nth-child(5) {
        border-bottom: none;
    }
    .features-grid.features-grid-5 .feature-item:nth-child(5) {
        border-right: none;
    }
}

/* Desktop (ab 1024px): Exakt 5 Spalten im Grid */
@media (min-width: 1024px) {
    .features-grid.features-grid-5 {
        grid-template-columns: repeat(5, 1fr);
    }
    
    /* Rahmenkorrektur für das 5. Element */
    .features-grid.features-grid-5 .feature-item:last-child {
        border-right: none;
    }
}









/* ========================================================================
   SPACING & TYPOGRAFIE OPTIMIERUNG
   ======================================================================== */

/* Einheitliches Padding für alle Haupt-Sektionen (Oben und Unten) */
.sb-section {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

/* Abstand unter den Section-Headern erhöhen */
.section-header {
    margin-bottom: 2.5rem;
}

/* Zentrale Steuerung der roten Überschriften */
.strandbad-heading {
    color: var(--color-strandbad-red);
    margin-top: 0;
    margin-bottom: 0; /* Margin wird vom .section-header Container übernommen */
}

/* Bessere Lesbarkeit für längere Fließtexte im Intro */
.intro-text {
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

/* Erhöhte Spezifität, falls das Joomla-Modul eigene Margins mitbringt */
.news-section .sb-row > .sb-col-12 {
    margin-top: 1rem;
}




/* ========================================================================
   ABSTÄNDE (UTILITY CLASSES)
   ======================================================================== */

.mb-medium {
    margin-bottom: 2rem;
}

/* mb-large erzeugt den gleichen Abstand wie eine neue Sektion */
.mb-large {
    margin-bottom: var(--section-padding-y); 
}











/* 1. Sobald der Grid-Container mit Maus oder Tastatur betreten wird, 
      werden ALLE Kacheln leicht ausgeblendet. */
.features-grid:hover .feature-item,
.features-grid:focus-within .feature-item {
    opacity: 0.4;
    filter: grayscale(80%); /* Optional: Entzieht den inaktiven Kacheln die Farbe */
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

/* 2. Die exakt gehoverte oder per Tab fokussierte Kachel 
      wird wieder voll sichtbar und leicht vergrößert. */
.features-grid .feature-item:hover,
.features-grid .feature-item:focus-within {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-5px) scale(1.02);
    z-index: 2; /* Stellt sicher, dass die Kachel optisch über den anderen liegt */
}

/* 3. Sanfter Übergang auch beim Verlassen des Grids */
.feature-item {
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}






/* ========================================================================
   UTILITY: MODUL-FOKUS-EFFEKT (Robuste Version)
   ======================================================================== */

/* 1. Wenn das Modul betreten wird: Alle Artikel und Features dimmen */
.sb-focus-grid:hover .article-item,
.sb-focus-grid:focus-within .article-item,
.sb-focus-grid:hover .feature-item,
.sb-focus-grid:focus-within .feature-item {
    opacity: 0.4;
    filter: grayscale(80%);
}

/* 2. Die exakt gehoverte Kachel wird hervorgehoben */
.sb-focus-grid .article-item:hover,
.sb-focus-grid .article-item:focus-within,
.sb-focus-grid .feature-item:hover,
.sb-focus-grid .feature-item:focus-within {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-5px) scale(1.02);
    z-index: 2;
    position: relative; 
}

/* 3. Weicher Übergang für die Kacheln (überschreibt ggf. alte Transitions) */
.article-item,
.feature-item {
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease !important;
}








/* Ins CSS verschieben */
.safe-iframe-btn-trigger {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
    padding: 12px 30px;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}
.safe-iframe-btn-trigger:hover,
.safe-iframe-btn-trigger:focus-visible {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}







/* Desktop-Ansicht (ab 992px) */
@media (min-width: 992px) {
    /* Stellt sicher, dass die Navigation die volle Breite der Spalte nutzt */
    .navigation-menu,
    .wolletzsee-nav-module {
        width: 100%;
    }

    /* Menü als Flexbox deklarieren und zentrieren */
    .wolletzsee-menu-list {
        display: flex;
        flex-direction: row;
        justify-content: center!important; /* Zentriert die Menüpunkte horizontal */
        align-items: center;
        gap: 2rem; /* Abstand zwischen den Menüpunkten (nach Bedarf anpassen) */
        margin: 0;
        padding: 0;
        list-style: none;
    }

    /* Hamburger-Toggle auf Desktop ausblenden */
    .mobile-toggle-wrapper {
        display: none;
    }
}




/* ========================================================================
   MOBILE HEADER LAYOUT (bis 991px)
   ======================================================================== */
@media (max-width: 991px) {
    /* Grid aktivieren für die exakte mobile Positionierung */
    .sb-row.header-mobile-grid {
        display: grid;
        grid-template-columns: 1fr auto; /* Linke Spalte nimmt den Restplatz, rechte passt sich dem Menü an */
        grid-template-rows: auto auto;   /* Zwei Zeilen für die Logos */
        gap: 15px 20px;                  /* Abstand zwischen Logos und Menü */
        align-items: center;             /* Vertikale Zentrierung */
        margin: 0;                       /* Standard-Negative-Margins der sb-row aufheben */
    }

    /* Setzt das Standard-Padding der sb-cols im Grid zurück */
    .sb-row.header-mobile-grid > div {
        padding: 0;
        width: 100%;
    }

    /* 1. Strandbad Logo: Oben Links */
    .header-col-brand {
        grid-column: 1;
        grid-row: 1;
    }

    /* 2. Stadtlogo: Unten Links (kleiner dargestellt) */
    .header-col-stadtlogo {
        grid-column: 1;
        grid-row: 2;
    }

    .header-col-stadtlogo .header-stadtlogo img,
    .header-col-stadtlogo .header-stadtlogo svg {
        max-width: 250px; /* Hier die gewünschte Maximalbreite für das Stadtlogo einstellen */
        height: auto;
    }

    /* 3. Hamburger Menü: Rechts, über beide Zeilen zentriert */
    .header-col-menu {
        grid-column: 2;
        grid-row: 1 / span 2; /* Spannt sich über die Höhe beider Logos */
        display: flex;
        justify-content: flex-end; /* Richtet den Hamburger-Button hart rechts aus */
    }
    
    .navigation-menu {
        width: auto;
        margin: 0;
    }
}