/*
 * Site Template Main Stylesheet
 * Modernized and stable base design for TYPO3 site packages
 */

:root {
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --radius-sm: 0.4rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.4rem;
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.13);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.18);
    --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.24);
    --container-width: 1280px;
    --header-height: 5rem;
    /* Background colors for full-width frames - override in TypoScript or site config */
    --background-color-2: #e5e7eb;
    --background-color-3: #f3f4f6;
    --background-color-4: #fef3c7;
    --background-color-5: #dbeafe;
}

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

html {
    scroll-behavior: smooth;
    font-size: var(--font-base-size, 18px);
}

body {
    margin: 0;
    font-family: var(--font-primary, system-ui, sans-serif);
    color: var(--text-color, #1f2937);
    background: var(--bg-color, #ffffff);
    line-height: 1.65;
    font-weight: var(--font-weight-normal, 400);
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

main {
    min-height: 40vh;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 var(--space-4);
    font-family: var(--font-headings, system-ui, sans-serif);
    font-weight: var(--font-weight-bold, 700);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1{
    color: var(--primary-color, #0f172a);
}

h2, h3{
    color: var(--secondary-color, #0f172a);
}

h3,h4,h5,h6 {
    color: var(--text-dark, #0f172a);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.65rem, 3.4vw, 2.6rem);
}

h3 {
    font-size: clamp(1.35rem, 2.6vw, 1.8rem);
}

p {
    margin: 0 0 var(--space-4);
}

.container-title{
    margin-inline: auto;
    align-self: stretch;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: var(--space-3);
}



.container {
    width: min(100% - 4rem, var(--container-width));
    margin-inline: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-inline: -0.75rem;
}

.row-3col > .col-3col {
    width: 100%;
    padding-inline: 0.75rem;
}

@media (min-width: 900px) {
    .row-3col > .col-3col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    width: 100%;
    padding-inline: 0.75rem;
}

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

.text-start   { text-align: left; }
.text-center  { text-align: center; }
.text-end     { text-align: right; }
.text-justify { text-align: justify; }

/* ─── Content Element Alignment (TYPO3 header alignment field) ──────────── */
/* ce-align-* = full content element alignment                               */
.ce-align-left  { text-align: left; }
.ce-align-center { text-align: center; }
.ce-align-right { text-align: right; }

.ce-align-center img,
.ce-align-center figure { margin-inline: auto; }

.ce-align-right img,
.ce-align-right figure { margin-left: auto; }

/* ce-headline-* = header_position field (Ausrichtung in the backend)        */
.ce-headline-left   { text-align: left; }
.ce-headline-center { text-align: center; }
.ce-headline-right  { text-align: right; }

/* ─── Text & Medien / Textpic: Bild-Positionierung ─────────────────────── */
/* fluid_styled_content erzeugt:                                             */
/*   .ce-textpic .ce-{above|below|intext} .ce-{left|center|right}           */
/*   + .ce-nowrap für „kein Textumfluss"                                     */

/* Galerie-Grundstruktur */
.ce-gallery {
    display: block;
}

.ce-gallery .ce-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ce-gallery .ce-column {
    flex: 1 1 auto;
}

.ce-gallery .ce-column img,
.ce-gallery .ce-column figure {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Zentrierte Galerie: .ce-outer/.ce-inner wrapper */
.ce-gallery .ce-outer {
    display: flex;
    justify-content: center;
}

.ce-gallery .ce-inner {
    display: inline-flex;
    flex-direction: column;
}

/* Bildrand */
.ce-gallery.ce-border .ce-column img {
    border: 2px solid var(--border-color);
    padding: 4px;
    border-radius: var(--radius-sm);
}

/* ── Oben / Unten (above / below) ─────────────────────────────────────── */
/* Galerie steht über oder unter dem Text — Ausrichtung per horizontal-Klasse */

.ce-textpic.ce-above .ce-gallery,
.ce-textpic.ce-below .ce-gallery {
    display: block;
    margin-bottom: var(--space-4);
}

.ce-textpic.ce-below .ce-gallery {
    margin-bottom: 0;
    margin-top: var(--space-4);
}

/* Horizontale Ausrichtung der Galerie */
.ce-textpic.ce-above.ce-left .ce-gallery,
.ce-textpic.ce-below.ce-left .ce-gallery {
    text-align: left;
}

.ce-textpic.ce-above.ce-center .ce-gallery,
.ce-textpic.ce-below.ce-center .ce-gallery {
    text-align: center;
}

.ce-textpic.ce-above.ce-right .ce-gallery,
.ce-textpic.ce-below.ce-right .ce-gallery {
    text-align: right;
}

.ce-textpic.ce-above.ce-right .ce-gallery .ce-row,
.ce-textpic.ce-below.ce-right .ce-gallery .ce-row {
    justify-content: flex-end;
}

/* ── Im Text (intext) mit Textumfluss ─────────────────────────────────── */

.ce-textpic.ce-intext {
    display: block;
}

/* Bild rechts vom Text — float */
.ce-textpic.ce-intext.ce-right .ce-gallery {
    float: right;
    margin: 0 0 var(--space-4) var(--space-5);
    max-width: 50%;
}

/* Bild links vom Text — float */
.ce-textpic.ce-intext.ce-left .ce-gallery {
    float: left;
    margin: 0 var(--space-5) var(--space-4) 0;
    max-width: 50%;
}

/* Clearfix nach dem Textelement */
.ce-textpic.ce-intext::after {
    content: "";
    display: table;
    clear: both;
}

/* ── Im Text ohne Umfluss (nowrap) ────────────────────────────────────── */
/* Bild und Text nebeneinander als flex */

.ce-textpic.ce-intext.ce-nowrap {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
}

.ce-textpic.ce-intext.ce-nowrap.ce-right {
    flex-direction: row-reverse;
}

.ce-textpic.ce-intext.ce-nowrap.ce-left {
    flex-direction: row;
}

.ce-textpic.ce-intext.ce-nowrap .ce-gallery {
    flex: 0 0 auto;
    float: none;
    margin: 0;
    max-width: 50%;
}

.ce-textpic.ce-intext.ce-nowrap .ce-bodytext {
    flex: 1 1 auto;
    min-width: 0;
}

/* ── Responsive: ab 768px alle floats aufheben ────────────────────────── */
@media (max-width: 768px) {
    .ce-textpic.ce-intext.ce-right .ce-gallery,
    .ce-textpic.ce-intext.ce-left .ce-gallery {
        float: none;
        max-width: 100%;
        margin: 0 0 var(--space-4) 0;
    }

    .ce-textpic.ce-intext.ce-nowrap {
        flex-direction: column;
    }

    .ce-textpic.ce-intext.ce-nowrap .ce-gallery {
        max-width: 100%;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-to-main {
    position: absolute;
    left: var(--space-2);
    top: -100px;
    z-index: 9999;
    background: var(--text-dark);
    color: #fff;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
}

.skip-to-main:focus {
    top: var(--space-2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.8rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: var(--font-weight-medium, 500);
    line-height: 1.2;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
    border-color: transparent;
}

.btn-primary:hover {
    color: #fff;
}

.btn-secondary {
    color: #fff;
    background: var(--secondary-color);
}

.btn-light {
    color: var(--text-dark);
    background: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-light:hover {
    color: var(--text-dark);
    background: var(--bg-light);
}

.btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
    background: transparent;
}

.btn-outline-light:hover {
    color: var(--text-dark);
    background: #fff;
}

.btn-lg {
    padding: 0.95rem 1.75rem;
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-control {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 0.8rem 0.95rem;
    color: var(--text-color);
}

.form-control.error {
    border-color: var(--danger-color);
}

.announcement-bar {
    background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
    color: #fff;
}

.announcement-bar-content {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    padding: 0.45rem 0;
    text-align: center;
}

.announcement-text {
    margin: 0;
    font-size: 0.9rem;
    color: #fff;
}

.announcement-link {
    color: #fff;
    font-weight: var(--font-weight-bold, 700);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.top-bar {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content,
.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.top-bar-content {
    justify-content: space-between;
    min-height: 2.6rem;
}

.top-bar-content--center {
    justify-content: center;
}

.top-bar-item {
    display: inline-flex;
    gap: var(--space-2);
    align-items: center;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.95);
}

.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 50px solid var(--border-color);
    position: relative;
    z-index: 1100;
}

.site-header.sticky {
    position: sticky;
    top: 0;
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-content {
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: var(--space-8);
}


.header-triangle {
    flex-shrink: 0;
    align-self: flex-end;
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 160px solid var(--secondary-color);
}


 .title{
        padding-bottom: 50px;
    }

@media (max-width: 800px) {
    .header-triangle{
        border-left: 100px solid transparent;
        border-right: 100px solid transparent;
        border-bottom: 140px solid var(--secondary-color);
    }
    
}

@media (max-width: 450px) {
    .header-triangle{
        border-left: 60px solid transparent;
        border-right: 60px solid transparent;
        border-bottom: 95px solid var(--secondary-color);
    }
    
}

@media (max-width: 700px) {
    .container-title .title{
        display: none;
    }

    
}



.gold-partner, .silber-partner, .bronze-partner, .supporter {
    border: 4px solid var(--border-color);
    padding: 40px;
    margin: auto;
    border-radius: var(--radius-lg);
    box-shadow: #0000001a 0px 4px 14px, #0000001a 0px 12px 30px, #0000001a 0px 24px 48px;
}

.gold-partner h3,
.silber-partner h3,
.bronze-partner h3,
.supporter h3 {
    text-align: center;
}


.gold-partner .container-2col__right,
.silber-partner .container-2col__right,
.bronze-partner .container-2col__right,
.supporter .container-2col__right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* Each child takes up to 1/3 of the row but never grows beyond that.
   → 1 child  →  centered at ~33% width
   → 2 children → side by side (~33% each), row centered
   → 3+ children → 3 per row, then wraps */
.gold-partner .container-2col__right > .frame,
.silber-partner .container-2col__right > .frame,
.bronze-partner .container-2col__right > .frame,
.supporter .container-2col__right > .frame {
    flex: 0 1 calc(33.333% - 0.667rem);
    min-width: 120px;
}

@media (max-width: 1200px) {
    .gold-partner .container-2col__right > .frame,
    .silber-partner .container-2col__right > .frame,
    .bronze-partner .container-2col__right > .frame,
    .supporter .container-2col__right > .frame {
        flex: 0 1 calc(50% - 0.5rem);
    }
}

@media (max-width: 480px) {
    .gold-partner .container-2col__right > .frame,
    .silber-partner .container-2col__right > .frame,
    .bronze-partner .container-2col__right > .frame,
    .supporter .container-2col__right > .frame {
        flex: 0 1 100%;
    }
}

.site-logo a {
    display: inline-flex;
    align-items: center;
}

.logo-image {
    width: auto;
}

.logo-text {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    color: var(--text-dark);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
}

.hamburger {
    display: grid;
    gap: 4px;
}

.hamburger .line {
    width: 22px;
    height: 2px;
    background: var(--text-dark);
}

.theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-dark);
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    position: relative;
}

.theme-toggle-icon {
    position: absolute;
    font-size: 1rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-toggle-icon--moon {
    opacity: 0;
    transform: scale(0.8);
}

.main-navigation {
    display: flex;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    color: var(--text-dark);
    font-weight: var(--font-weight-medium, 500);
}

.nav-link:hover,
.nav-item.active > .nav-link,
.nav-item.current > .nav-link {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.04);
}

.submenu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--text-muted, #64748b);
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    line-height: 1;
}

.submenu-toggle:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.submenu-chevron {
    width: 1rem;
    height: 1rem;
    display: block;
    transition: transform 0.2s ease;
}

.submenu-indicator {
    font-size: 0.75em;
    opacity: 0.6;
    margin-left: 0.3em;
}

.level-1,
.level-2 {
    position: absolute;
    left: 0;
    top: 100%;
    /* Use padding-top to bridge gap and prevent hover loss */
    padding-top: 0.4rem;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s 0.18s;
    display: flex;
    flex-direction: column;
    min-width: 14rem;
    padding-bottom: 0.4rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-md);
}

/* Inner list (actual card) indented by padding-top, background underneath */
.level-1::before,
.level-2::before {
    content: "";
    position: absolute;
    inset: 0.4rem 0 0;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: -1;
}

.level-2 {
    left: calc(100% + 0.2rem);
    top: -0.2rem;
    padding-top: 0;
}

.level-2::before {
    inset: 0;
}

.nav-item.has-children:hover > .level-1,
.level-1 .nav-item.has-children:hover > .level-2 {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s 0s;
}

.level-1 .nav-link,
.level-2 .nav-link {
    border-radius: var(--radius-sm);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.16), transparent 38%),
        radial-gradient(circle at 85% 5%, rgba(255, 255, 255, 0.1), transparent 34%),
        linear-gradient(125deg, var(--primary-color), var(--accent-color));
}

.hero-title,
.hero-subtitle {
    color: #fff;
}

.hero-subtitle {
    max-width: 55ch;
    margin-inline: auto;
    opacity: 0.92;
    font-size: clamp(1.05rem, 2.3vw, 1.3rem);
}

.hero-actions {
    margin-top: var(--space-5);
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.homepage-content,
.page-content {
    padding: clamp(2rem, 5vw, 4rem) 0;
}

/* ─── Content Element Frames ─────────────────────────────────────────────── */
/* TYPO3 outputs: class="frame frame-{value} frame-type-* frame-layout-*"     */

.frame-card {
    background: var(--background-color-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(1rem, 2.5vw, 1.5rem);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.frame-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.frame-muted {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 2.5vw, 1.5rem);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.frame-muted:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.frame-highlight {
    border-left: 4px solid var(--primary-color);
    padding-left: clamp(0.9rem, 2vw, 1.2rem);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.frame-highlight:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.frame-glass {
    background: color-mix(in srgb, var(--secondary-color) 8%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid color-mix(in srgb, var(--secondary-color) 25%, transparent);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 2.5vw, 1.5rem);
    box-shadow: 0 4px 24px color-mix(in srgb, var(--secondary-color) 10%, transparent), inset 0 1px 0 rgba(255,255,255,0.6);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.frame-glass:hover {
    box-shadow: 0 8px 32px color-mix(in srgb, var(--secondary-color) 18%, transparent), inset 0 1px 0 rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

/* Full-bleed background: breaks out of the content container to span 100vw */
.frame-bg-grey,
.frame-bg-primary,
.frame-bg-secondary,
.frame-bg-color-2,
.frame-bg-color-3,
.frame-bg-color-4,
.frame-bg-color-5 {
    /* Break out of any max-width container to reach full viewport width */
    margin-inline: calc(50% - 50vw);
    padding-inline: calc(50vw - 50%);
    padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.frame-bg-grey {
    background-color: #ccc;
}

.frame-bg-primary {
    background-color: var(--primary-color);
    color: var(--primary-contrast, #ffffff);
}

.frame-bg-secondary {
    background-color: var(--secondary-color);
    color: var(--secondary-contrast, #ffffff);
}

.frame-bg-color-2 {
    background-color: var(--background-color-2);
}

.frame-bg-color-3 {
    background-color: var(--background-color-3);
}

.frame-bg-color-4 {
    background-color: var(--background-color-4);
}

.frame-bg-color-5 {
    background-color: var(--background-color-5);
}

/* ─── Space Before / After ───────────────────────────────────────────────── */
/* TYPO3 outputs frame-space-before-* / frame-space-after-* classes          */

.frame-space-before-none  { margin-top: 0 !important; }
.frame-space-before-extra-small { margin-top: 0.5rem; }
.frame-space-before-small { margin-top: 1rem; }
.frame-space-before-medium { margin-top: 2.5rem; }
.frame-space-before-large { margin-top: 4rem; }
.frame-space-before-extra-large { margin-top: 6rem; }

.frame-space-after-none   { margin-bottom: 0 !important; }
.frame-space-after-extra-small { margin-bottom: 0.5rem; }
.frame-space-after-small  { margin-bottom: 1rem; }
.frame-space-after-medium { margin-bottom: 2.5rem; }
.frame-space-after-large  { margin-bottom: 4rem; }
.frame-space-after-extra-large { margin-bottom: 6rem; }

/* ─── Content Element Layouts ───────────────────────────────────────────── */
/* TYPO3 layout field: numeric values, output as frame-layout-{n}             */

.frame-layout-20 .ce-bodytext {
    column-count: 2;
    column-gap: 1.7rem;
}

.frame-layout-30 .ce-bodytext {
    column-count: 3;
    column-gap: 1.5rem;
}

.frame-layout-40 .ce-bodytext {
    max-width: 65ch;
}

.frame-layout-50 {
    width: min(100%, 1200px);
}

.frame-layout-3 header h1,
.frame-layout-3 header h2,
.frame-layout-3 header h3,
.frame-layout-3 header h4,
.frame-layout-3 header h5,
.frame-layout-3 header h6,
.frame-layout-4 header h1,
.frame-layout-4 header h2,
.frame-layout-4 header h3,
.frame-layout-4 header h4,
.frame-layout-4 header h5,
.frame-layout-4 header h6 {
    color: var(--primary-color);
}

.ce-bodytext p,
.ce-bodytext li {
    break-inside: avoid;
}

/* ─── Content Element Headers ───────────────────────────────────────────── */
.frame header {
    margin-bottom: var(--space-3);
}

.frame header h1,
.frame header h2,
.frame header h3,
.frame header h4,
.frame header h5,
.frame header h6 {
    margin: 0;
}

.frame header p {
    margin: var(--space-2) 0 0;
    color: var(--text-light);
}

/* ─── Accordion ─────────────────────────────────────────────────────────── */
/* Consecutive .frame-accordion elements are grouped by JS into a wrapper.    */

.accordion-group {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-5);
}

.accordion-group .frame-accordion {
    border-top: 1px solid var(--border-color);
}

.accordion-group .frame-accordion:first-child {
    border-top: none;
}

.accordion-trigger {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-dark);
    text-align: left;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: var(--font-weight-medium, 500);
    font-size: 1rem;
    font-family: inherit;
    gap: var(--space-4);
}

.accordion-trigger:hover {
    background: var(--bg-light);
}

.accordion-chevron {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: var(--text-muted, #64748b);
}

.frame-accordion.is-open .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 0 1.25rem 1.1rem;
    display: none;
}

.frame-accordion.is-open .accordion-body {
    display: block;
}

.page-title {
    padding: var(--space-7) 0;
    color: black !important;
}

.page-title {
    margin-bottom: var(--space-2);
}

.page-subtitle {
    color: var(--text-light);
    margin: 0;
}

.breadcrumb {
    margin: var(--space-3) 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin-right: 0.35rem;
}

.features-section {
    padding: clamp(3rem, 7vw, 5rem) 0;
    background: var(--bg-light);
}

.section-header {
    margin-bottom: var(--space-7);
}

.section-subtitle {
    color: var(--text-light);
}

.features-grid {
    row-gap: 1.5rem;
}

.feature-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    margin-bottom: var(--space-4);
    color: #fff;
    background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
}

.cta-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
    text-align: center;
    color: #fff;
    background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
}

.cta-title,
.cta-text {
    color: #fff;
}

.cta-box,
.contact-form-wrapper,
.contact-info-wrapper,
.sidebar-widget,
.service-features {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-form-wrapper,
.contact-info-wrapper,
.service-features,
.cta-box {
    padding: clamp(1.35rem, 3vw, 2rem);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.contact-icon {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.8rem;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
}

.sidebar-widget {
    padding: var(--space-5);
    margin-bottom: var(--space-5);
}

.widget-title {
    margin-bottom: var(--space-4);
    font-size: 1.15rem;
}

.category-list,
.recent-posts,
.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li,
.recent-posts li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.search-form .input-group {
    display: flex;
    gap: 0;
}

.search-form .form-control {
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.social-links {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.social-link {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--primary-color);
}

.social-link:hover {
    color: #fff;
    transform: translateY(-2px);
    background: var(--accent-color);
}

.top-bar .social-link {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.14);
}



.footer-main {
    padding: clamp(2.5rem, 5vw, 4.2rem) 0 clamp(1.2rem, 3vw, 2rem);
}

.footer-columns {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-heading {
    color: #000;
    margin-bottom: var(--space-4);
    font-size: 1.1rem;
}

.footer-nav li {
    margin-bottom: var(--space-2);
}

.footer-address {
    font-style: normal;
}

.footer-bottom {
    margin-top: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: var(--space-4) 0;
}

.footer-bottom-content {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.copyright {
    margin: 0;
    font-size: 0.92rem;
}

.footer-legal-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.site-footer{
    border-top: 50px solid var(--border-color);
}

.back-to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 900;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    color: #fff;
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 1.25rem;
    height: 1.25rem;
}

body[data-theme-active="dark"] {
    --text-color: #dbe3ef;
    --text-light: #94a3b8;
    --text-dark: #f8fafc;
    --bg-color: #0b1220;
    --bg-light: #111b2e;
    --bg-dark: #020617;
    --border-color: #243247;
    color-scheme: dark;
}

body[data-theme-active="dark"] .theme-toggle {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

body[data-theme-active="dark"] .theme-toggle-icon--sun {
    opacity: 0;
    transform: scale(0.8);
}

body[data-theme-active="dark"] .theme-toggle-icon--moon {
    opacity: 1;
    transform: scale(1);
}

body[data-theme-active="dark"] .site-header {
    background: rgba(11, 18, 32, 0.9);
}

body[data-theme-active="dark"] .mobile-menu-toggle,
body[data-theme-active="dark"] .main-navigation--desktop,
body[data-theme-active="dark"] .main-navigation--mobile,
body[data-theme-active="dark"] .level-1,
body[data-theme-active="dark"] .level-2,
body[data-theme-active="dark"] .frame-card,
body[data-theme-active="dark"] .frame-muted,
body[data-theme-active="dark"] .feature-card,
body[data-theme-active="dark"] .cta-box,
body[data-theme-active="dark"] .contact-form-wrapper,
body[data-theme-active="dark"] .contact-info-wrapper,
body[data-theme-active="dark"] .sidebar-widget,
body[data-theme-active="dark"] .service-features,
body[data-theme-active="dark"] .form-control {
    background: #0f172a;
    border-color: #27374d;
    color: #dbe3ef;
}

body[data-theme-active="dark"] .frame-glass {
    background: color-mix(in srgb, var(--secondary-color) 10%, transparent);
    border-color: color-mix(in srgb, var(--secondary-color) 28%, transparent);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.07);
}
body[data-theme-active="dark"] .level-2::before {
    background: #0f172a;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

body[data-theme-active="dark"] .nav-mobile-header {
    border-bottom-color: #27374d;
}

body[data-theme-active="dark"] .theme-toggle--mobile {
    background: #1e2d3f;
    border-color: #27374d;
    color: #dbe3ef;
}

body[data-theme-active="dark"] .nav-link:hover,
body[data-theme-active="dark"] .nav-item.active > .nav-link,
body[data-theme-active="dark"] .nav-item.current > .nav-link {
    background: rgba(255, 255, 255, 0.08);
}

body[data-theme-active="dark"] .page-header {
    background: linear-gradient(180deg, #111b2e, #0b1220);
    border-bottom-color: #243247;
}

body[data-theme-active="dark"] .features-section {
    background: #101a2d;
}

body[data-theme-active="dark"] .category-list li,
body[data-theme-active="dark"] .recent-posts li {
    border-bottom-color: #27374d;
}

body[data-theme-active="dark"] .accordion-group {
    border-color: #27374d;
}

body[data-theme-active="dark"] .accordion-group .frame-accordion {
    border-top-color: #27374d;
}

body[data-theme-active="dark"] .accordion-trigger {
    color: #dbe3ef;
}

body[data-theme-active="dark"] .accordion-trigger:hover {
    background: #1e2d3f;
}

/* Desktop nav: inside header flex layout */
.main-navigation--desktop {
    display: flex;
}

/* Mobile nav: hidden drawer outside the header */
.main-navigation--mobile {
    display: none;
}

/* Desktop: hide mobile-only elements */
.nav-mobile-header {
    display: none;
}

.theme-toggle--mobile {
    display: none;
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }

    /* Hide desktop theme toggle on mobile — it lives in the burger instead */
    .theme-toggle--desktop {
        display: none;
    }

    /* Hide desktop nav on mobile */
    .main-navigation--desktop {
        display: none;
    }

    /* Show mobile drawer */
    .main-navigation--mobile {
        position: fixed;
        inset: var(--header-height) 0 0 auto;
        width: min(90vw, 22rem);
        padding: 0;
        background: #fff;
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        z-index: 9999;
    }

    .main-navigation--mobile.active {
        transform: translateX(0);
    }

    /* Overlay backdrop */
    .nav-overlay {
        position: fixed;
        inset: var(--header-height) 0 0 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1089;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Mobile header row inside burger — sticky, never scrolls away */
    .nav-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-4) var(--space-5);
        border-bottom: 1px solid var(--border-color);
        min-height: 3.5rem;
        flex-shrink: 0; /* never compress */
    }

    .nav-mobile-title {
        font-weight: var(--font-weight-bold, 700);
        font-size: 1.1rem;
        color: var(--text-dark);
    }

    .theme-toggle--mobile {
        display: inline-grid;
        width: 2.5rem;
        height: 2.5rem;
        border: 1px solid var(--border-color);
        background: #fff;
        color: var(--text-dark);
        border-radius: 999px;
        place-items: center;
        cursor: pointer;
        position: relative;
    }

    /* Nav list takes remaining height and scrolls independently */
    .nav-list {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--space-3) var(--space-4) var(--space-6);
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-item:last-child {
        border-bottom: 0;
    }

    .nav-link {
        flex: 1 1 auto;
        padding: 0.9rem 0.5rem;
        border-radius: 0;
    }

    /* Hide the inline indicator inside the link on mobile — the toggle button is enough */
    .nav-link .submenu-indicator {
        display: none;
    }

    .submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 3rem;
        height: 3rem;
        margin-left: auto;
        flex-shrink: 0;
        border-radius: var(--radius-sm);
        color: var(--text-muted, #64748b);
    }

    .submenu-toggle:hover,
    .submenu-toggle:focus-visible {
        background: var(--bg-light);
        color: var(--primary-color);
    }

    .submenu-chevron {
        width: 1.25rem;
        height: 1.25rem;
    }

    /* Rotate chevron when submenu is open */
    .nav-item.has-children.open > .submenu-toggle .submenu-chevron {
        transform: rotate(180deg);
    }

    .level-1,
    .level-2 {
        position: static;
        width: 100%;
        min-width: 0;
        box-shadow: none;
        border: 0;
        border-top: 1px solid var(--border-color);
        border-radius: 0;
        padding: 0 0 0 1rem;
        background: var(--bg-light);
        /* reset desktop visibility/opacity approach */
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition: none;
        /* hidden by default, shown when .open */
        display: none;
        flex-direction: column;
    }

    .level-1::before,
    .level-2::before {
        display: none;
    }

    .level-1 .nav-item,
    .level-2 .nav-item {
        border-bottom: 1px solid var(--border-color);
    }

    .level-1 .nav-item:last-child,
    .level-2 .nav-item:last-child {
        border-bottom: 0;
    }

    .nav-item.has-children:hover > .level-1,
    .level-1 .nav-item.has-children:hover > .level-2,
    .nav-item.has-children.open > .level-1,
    .level-1 .nav-item.has-children.open > .level-2 {
        display: flex;
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .top-bar-content {
        padding: 0.45rem 0;
    }

    .announcement-bar-content {
        gap: var(--space-2);
        padding: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    .text-end,
    .ce-headline-right {
        text-align: left;
    }

    .frame-layout-20 .ce-bodytext,
    .frame-layout-30 .ce-bodytext {
        column-count: 1;
    }

    .hero-actions {
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .back-to-top {
        right: 0.8rem;
        bottom: 0.8rem;
    }
}

@media print {
    .top-bar,
    .site-header,
    .site-footer,
    .back-to-top,
    .mobile-menu-toggle {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}

/* ===========================================
   CONTAINER ELEMENTS (b13/container)
   =========================================== */

.container-2col,
.container-3col,
.container-4col {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Force all grid children (column wrappers) to respect their track size */
.container-2col > div,
.container-3col > div,
.container-4col > div {
    min-width: 0;
    overflow: hidden;
}

.container-2col--50-50 {
    grid-template-columns: 1fr 1fr;
}

.container-2col--33-67 {
    grid-template-columns: 1fr 2fr;
}

.container-2col--67-33 {
    grid-template-columns: 2fr 1fr;
}

.container-3col {
    grid-template-columns: 1fr 1fr 1fr;
}

.container-4col {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

@media (max-width: 768px) {
    .container-2col,
    .container-3col,
    .container-4col {
        grid-template-columns: 1fr;
    }
}

/* ─── Container Headers ──────────────────────────────────────────────────── */
.container-2col > header,
.container-3col > header,
.container-4col > header,
.container-2col-left > header,
.container-2col-right > header {
    grid-column: 1 / -1;
    margin-bottom: var(--space-4);
}

/* ─── Image Border Radius ────────────────────────────────────────────────── */
.img-radius-sm img,
.img-radius-sm .ce-gallery figure {
    border-radius: 0.375rem;
    overflow: hidden;
}

.img-radius-md img,
.img-radius-md .ce-gallery figure {
    border-radius: 0.75rem;
    overflow: hidden;
}

.img-radius-lg img,
.img-radius-lg .ce-gallery figure {
    border-radius: 1.25rem;
    overflow: hidden;
}

.img-radius-xl img,
.img-radius-xl .ce-gallery figure {
    border-radius: 2rem;
    overflow: hidden;
}

.img-radius-full img,
.img-radius-full .ce-gallery figure {
    border-radius: 50%;
    overflow: hidden;
}

.container-2col > header h1,
.container-3col > header h1,
.container-4col > header h1,
.container-2col-left > header h1,
.container-2col-right > header h1 {
    margin-bottom: var(--space-2);
}

.container-2col > header .subheader,
.container-3col > header .subheader,
.container-4col > header .subheader,
.container-2col-left > header .subheader,
.container-2col-right > header .subheader {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.5;
}

/* ─── Newsletter Signup ──────────────────────────────────────────────────── */
.newsletter-signup {
    container-type: inline-size;
}

.newsletter-signup__card {
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-5);
    box-shadow: var(--shadow-md);
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.newsletter-signup__icon {
    font-size: 2.5rem;
    line-height: 1;
}

.newsletter-signup__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.newsletter-signup__desc {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.5;
}

.newsletter-signup__row {
    display: flex;
    gap: var(--space-2);
}

.newsletter-signup__input {
    flex: 1;
    padding: 0.65rem 1rem;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: rgba(255,255,255,0.15);
    color: #fff;
    min-width: 0;
}

.newsletter-signup__input::placeholder {
    color: rgba(255,255,255,0.65);
}

.newsletter-signup__input:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255,255,255,0.25);
}

.newsletter-signup__button {
    padding: 0.65rem 1.4rem;
    background: #fff;
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.newsletter-signup__button:hover {
    opacity: 0.88;
}

.newsletter-signup__error {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.newsletter-signup__card--success {
    background: linear-gradient(135deg, #1a7f4f 0%, #22a060 100%);
}

/* Narrow container: stack input + button */
@container (max-width: 420px) {
    .newsletter-signup__row {
        flex-direction: column;
    }
    .newsletter-signup__button {
        width: 100%;
    }
}

/* ─── Zielgruppen-Container: fixed height for all content elements ───────── */
.zielgruppen-container .frame {
    height: 650px;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.aktuell-container h3 {
    font-size: 22px;
}

@media (max-width: 768px) {
    .zielgruppen-container .frame {
        height: auto;
        min-height: 180px;
    }
}

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

/* ============================================================
   CONTAINER SLIDER
   ============================================================ */
.container-slider {
    position: relative;
    width: 100%;
}

.container-slider h2{
    display: none;
}

/* CSS Grid stacking: all slides occupy the same cell, no JS height needed */
.container-slider__track {
    display: grid;
    grid-template-columns: 1fr;
}

.container-slider__slide {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.65s ease, transform 0.65s ease;
    pointer-events: none;
}

.container-slider__slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.container-slider__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3, 0.75rem);
    margin-top: var(--space-4, 1rem);
}

.container-slider__btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid var(--primary-color, #333);
    border-radius: 50%;
    background: transparent;
    color: var(--primary-color, #333);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.container-slider__btn:hover,
.container-slider__btn:focus-visible {
    background: var(--primary-color, #333);
    color: #fff;
    outline: none;
}

.container-slider__btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.container-slider__dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Dot: pill-shaped when active, sweeping progress fill */
.container-slider__dot {
    position: relative;
    overflow: hidden;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 2px solid var(--primary-color, #333);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, width 0.35s ease, border-radius 0.35s ease;
}

.container-slider__dot.is-active {
    background: var(--primary-color, #333);
    width: 1.75rem;
    border-radius: 0.4rem;
}

/* Progress sweep on the active dot — synced to the 4 s auto-advance */
.container-slider__dot.is-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.45);
    transform: translateX(-100%);
    animation: dot-progress 8s linear forwards;
}

/* Pause the progress animation when the slider is hovered */
.container-slider.is-paused .container-slider__dot.is-active::after {
    animation-play-state: paused;
}

@keyframes dot-progress {
    to { transform: translateX(0); }
}

/* ============================================================
   SCROLL ANIMATION EFFECTS (Erscheinungseffekte)
   Optimiert nach AOS/ScrollReveal Best Practices:
   - Längere Dauern (800-2000ms) für elegantere Animationen
   - Sanftere Easing-Kurve (ease-out-cubic)
   - Dezentere Offsets für subtilere Bewegung
   ============================================================ */

/* Basis-Übergang für alle Effekte */
.scroll-effects-ready .scroll-effect {
    --scroll-effect-duration: 1s;
    --scroll-effect-delay: 0s;
    transition-property: opacity, transform;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* ease-out-quad */
    transition-duration: var(--scroll-effect-duration);
    transition-delay: var(--scroll-effect-delay);
    will-change: opacity, transform;
}

/* Dauern: optimiert für natürliches Gefühl (800-2500ms Bereich) */
.scroll-effects-ready .scroll-effect-duration--short {
    --scroll-effect-duration: 0.8s;
}

.scroll-effects-ready .scroll-effect-duration--normal {
    --scroll-effect-duration: 1.2s;
}

.scroll-effects-ready .scroll-effect-duration--long {
    --scroll-effect-duration: 1.8s;
}

.scroll-effects-ready .scroll-effect-duration--slow {
    --scroll-effect-duration: 2.5s;
}

/* Verzögerungen: leicht erhöht für bessere Staffelung */
.scroll-effects-ready .scroll-effect-delay--none {
    --scroll-effect-delay: 0s;
}

.scroll-effects-ready .scroll-effect-delay--short {
    --scroll-effect-delay: 0.2s;
}

.scroll-effects-ready .scroll-effect-delay--medium {
    --scroll-effect-delay: 0.4s;
}

.scroll-effects-ready .scroll-effect-delay--long {
    --scroll-effect-delay: 0.6s;
}

.scroll-effects-ready .scroll-effect-delay--xlong {
    --scroll-effect-delay: 0.9s;
}

/* --- Initiale versteckte Zustände (dezentere Offsets) --- */

.scroll-effects-ready .scroll-effect--fade-in:not(.scroll-effect--visible) {
    opacity: 0;
}

.scroll-effects-ready .scroll-effect--fade-up:not(.scroll-effect--visible) {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-effects-ready .scroll-effect--fade-down:not(.scroll-effect--visible) {
    opacity: 0;
    transform: translateY(-30px);
}

.scroll-effects-ready .scroll-effect--fade-left:not(.scroll-effect--visible) {
    opacity: 0;
    transform: translateX(-40px);
}

.scroll-effects-ready .scroll-effect--fade-right:not(.scroll-effect--visible) {
    opacity: 0;
    transform: translateX(40px);
}

.scroll-effects-ready .scroll-effect--zoom-in:not(.scroll-effect--visible) {
    opacity: 0;
    transform: scale(0.88);
}

.scroll-effects-ready .scroll-effect--zoom-out:not(.scroll-effect--visible) {
    opacity: 0;
    transform: scale(1.1);
}

.scroll-effects-ready .scroll-effect--bounce-in:not(.scroll-effect--visible) {
    opacity: 0;
    transform: scale(0.85);
    transition: none; /* Bounce nutzt @keyframes statt transition */
}

.scroll-effects-ready .scroll-effect--flip-up:not(.scroll-effect--visible) {
    opacity: 0;
    transform: perspective(800px) rotateX(18deg) translateY(20px);
}

.scroll-effects-ready .scroll-effect--roll-in:not(.scroll-effect--visible) {
    opacity: 0;
    transform: rotate(-10deg) translateX(-50px);
}

/* --- Sichtbarer Endzustand --- */

.scroll-effects-ready .scroll-effect.scroll-effect--visible {
    opacity: 1;
    transform: none;
}

/* Bounce-In: subtilere Keyframe-Animation */
.scroll-effects-ready .scroll-effect--bounce-in.scroll-effect--visible {
    animation: scrollFxBounceIn var(--scroll-effect-duration) cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: var(--scroll-effect-delay);
}

@keyframes scrollFxBounceIn {
    0%   { opacity: 0; transform: scale(0.85); }
    50%  { opacity: 1; transform: scale(1.04); }
    70%  { transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

/* Barrierefreiheit: Animationen deaktivieren wenn Nutzer es bevorzugt */
@media (prefers-reduced-motion: reduce) {
    .scroll-effects-ready .scroll-effect {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

