:root {
    --bg: #0ea5e9;
    --text: #1f2937;
    --muted: #FFF;
    --brand: #0a3d62;
    --brand-2: #1e90ff;
    --card: #ffffff;
    --accent: #f0f7ff;
    --border: #e5e7eb;
    --ok: #0ea5e9;
}
* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0; background: var(--bg); color: var(--text);
    font-family: "Hind", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.55;
    font-optical-sizing: auto;
    scroll-behavior: smooth;
}
@media (max-width: 992px) {
    h1 {
        hyphens: auto;
    }
}
h1, h2, h3, h4, h5, em {
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    margin: 0;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block;}
img.clip {
    clip-path: polygon(
            0 0,
            calc(100% - 50px) 0,
            100% 50px,
            100% 100%,
            0 100%
    );
}
.container { width: min(1200px, 92%); margin: 0 auto; }
header { background: #0a3d62; color: #fff; }
/* Hamburger-Button: standardmäßig verstecken */
.menu-toggle {
    display:none;
    appearance:none;
    border:0;
    background:#ffffff1a;
    color:#fff;
    border-radius:10px;
    padding:.5rem .6rem;
    line-height:0;
    cursor:pointer;
}
.menu-toggle:hover { background:#ffffff26; }
/* Mobile Panel (aus der rechten Seite) */
.mobile-nav {
    position: fixed;
    top: var(--topbar-height, 56px); /* wird per JS gesetzt, fallback 56 */
    right: 0;
    width: min(88vw, 360px);
    height: calc(100dvh - var(--topbar-height, 56px));
    background: #0b2440;
    color: #e6f2ff;
    box-shadow: -12px 0 24px rgba(0,0,0,.2);
    border-left: 1px solid #1b3a5f;
    padding: 1rem;
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 1001;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { list-style:none; margin:0; padding:0; }
.mobile-nav li { border-bottom:1px solid #163253; }
.mobile-nav a {
    display:block; padding:.9rem .2rem;
    color:#e6f2ff; text-decoration:none; font-weight:600;
}
.mobile-nav a:hover { text-decoration:underline; }
/* Overlay hinter dem Panel */
.mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    transition: opacity .2s ease;
}
.mobile-overlay.visible { opacity: 1; }
/* ——— Breakpoints: ab 1140px auf „mobil" umschalten ——— */
@media (max-width: 1140px) {
    header .topbar > nav { display: none; }  /* nur die Desktop-Navigation */
    .menu-toggle { display: inline-flex; }   /* Burger zeigen */
    /* sicherstellen, dass das mobile Panel angezeigt werden darf */
    #mobile-nav { display: block; }
}
strong {
    font-weight: 600;
}
/* Optional: Kopfzeile-Höhe definieren (für JS fallback) */
header .topbar { min-height: 56px; }
.topbar { position: sticky; top: 0; z-index: 100; background: #0a3d62; display:flex; align-items:center; justify-content:space-between; gap: 1rem; padding: .8rem 0; }
.brand { display:flex; align-items:center; gap:.75rem; font-weight:700; letter-spacing:.2px; }
.brand .logo { width: 170px; height: 70px; border-radius:8px; display:grid; place-items:center; font-weight:800; background:#FFF;}
nav { display:flex; gap:.9rem; flex-wrap:nowrap; }
nav a { color:#e5f2ff; font-weight: 600; padding:.35rem .6rem; border-radius: 8px; }
nav a:hover { background:#ffffff1a; text-decoration:none; }
.hero { background: #0a3d62; color:#fff; }
.hero-inner { display:grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items:center; padding: 3.5rem 0 2.5rem; }
.footer-grid { grid-template-columns: auto 1fr auto; align-items: start; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size:.82rem; color:#bfe3ff; }
h1 { font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.1; margin: .4rem 0 1rem; }
.lead { color:#e6f2ff; font-size:clamp(1rem, 1.4vw, 1.1rem); max-width: 60ch; }
.cta-row { display:flex; gap:.8rem; flex-wrap: wrap; margin-top: 1.25rem; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; padding:.9rem 1.05rem; border-radius: 12px; font-weight: 700; border:2px solid transparent; cursor:pointer; transition: transform .05s ease, box-shadow .2s ease; text-decoration:none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background:#ffbf00; color:#111827; box-shadow: 0 8px 18px rgba(255,191,0,.28); }
.btn-primary:hover { filter: brightness(1.03); text-decoration:none; }
.btn-outline { background: transparent; color:#fff; border-color:#ffffff66; }
.btn-outline:hover { background:#ffffff12; text-decoration:none; }
.badge { display:inline-block; background:#ffffff1f; color:#fff; border:1px solid #ffffff33; padding:.35rem .6rem; border-radius:999px; font-size:.82rem; font-weight:700; }
.card {
    background: var(--card);
    color: var(--brand);
    /*border-radius: 16px;*/
    padding: 2rem;
    box-shadow: 0 6px 18px rgba(2,12,27,.04);
    clip-path: polygon(
            0 0,
            calc(100% - 50px) 0,
            100% 50px,
            100% 100%,
            0 100%
    );
}
.card a {
    color: var(--brand);
}

.highlight-verlosung.cta-primary {
    animation: pulse-strong 2s infinite;
    transition: all 0.2s ease;
    background: transparent;
    color: white;
    font-weight: 800;
    padding: .35em 1em;
    border-radius: 16px;
    border: 2px solid #ffbf00;
    font-size: 1.1em;
    letter-spacing: .03em;
    box-shadow: 0 2px 8px rgba(255,191,0,0.12);
    margin: 0 1.2em;
    cursor: pointer;
}

.section { padding: 3rem 0; }
.section h2 { font-size: clamp(1.35rem, 2.2vw, 2rem); margin: 0 0 .75rem; line-height: 1; }
/*.muted { color: var(--muted); }*/
.grid-3 { display:grid; gap:2rem; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display:grid; gap:2rem; grid-template-columns: repeat(2, 1fr); }
.grid-auto { display:grid; gap:1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
h2 { font-size: 1.8rem; line-height: 1.2; }
h3 { font-size: 1.3rem; line-height: 1.2; }
h4 { font-size: 1.3rem; line-height: 1.2; }
h5 { font-size: 1rem; line-height: 1.2; margin-bottom: 0 }
.program { display:grid; gap: .8rem; }
.step {
    display:grid; grid-template-columns: 200px 1fr; gap: 1rem; color:#fff; align-items: start; padding: 1.2rem;
    clip-path: polygon(
            0 0,
            calc(100% - 20px) 0,
            100% 20px,
            100% 100%,
            0 100%
    );
    background: #0a3d62; margin-bottom: 1.2rem; cursor: pointer; }
.step:focus { outline: 2px solid #bfe3ff; outline-offset: 2px; }
.step time { color:#fff; font-weight: 600; }
.step-header { display:flex; align-items:center; }
.step-header .label { flex: 1; }
.step-arrow { margin-left:.5rem; display:inline-flex; width: 20px; height: 20px; align-items:center; justify-content:center; color:#bfe3ff; transition: transform .2s ease; }
.step.open .step-arrow { transform: rotate(-90deg); }
.step-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.step-body a { color: white; text-decoration: underline; font-weight: bold }
.step-body div { margin-top: 20px; }
.step.open .step-body { max-height: 10000px; }
.step .step-header .label, .step time { font-size: 1.3rem; }
    /* Dezenter Trenner mit mittigem Text */
.program-divider { grid-column: 1 / -1; display:flex; align-items:center; gap:.75rem; color:#fff; opacity:.75; font-size:1.2rem; padding: .2rem 0 1rem 0; }
.program-divider::before, .program-divider::after { content:""; flex:1; height:1px; background:#fff; }
.program-divider-body { text-align:center; color:#fff; opacity:.75; font-size:.9rem; padding: .2rem 0 1rem 0; margin-top: -1rem; }
.program-headline { grid-column: 1 / -1; color:#fff; font-size:1.2rem; font-weight:600; padding: 1rem 0 .5rem 0; }
.teaser { display:flex; flex-direction: column; gap:.7rem; }
.teaser a.title { color: var(--text); font-size: 1.05rem; }
.teaser a.title:hover { color: var(--brand); text-decoration: underline; }
.pill { display:inline-block; padding:.25rem .5rem; border-radius:999px; background:#eef6ff; color:#0a3d62; font-weight:700; font-size:.8rem; border:1px solid #cfe6ff; }
.kicker { color:#0a3d62; text-transform: uppercase; letter-spacing:.12em; font-size:.8rem; }
footer { background: #0b1220; color: #b4c0d0; padding: 2rem 0; }
footer a { color:#e0ecff; }
.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; padding:.5rem; background: #fff; color:#111; }
@media (max-width: 1140px) {
    nav { display:none; }
    .hero-inner { grid-template-columns: 1fr; padding: 2.5rem 0 1.25rem; }
    .footer-grid { grid-template-columns: 1fr; }
}
/* Engere Smartphones: Steps als Einspalter + sichere Umbrüche */
@media (max-width: 520px) {
    .program { gap: .9rem; }
    .step { grid-template-columns: 1fr; }
    .step time { margin-bottom: .35rem; }
    .step, .step * { overflow-wrap: anywhere; word-break: break-word; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-3, .grid-3 * { overflow-wrap: anywhere; word-break: break-word; }
    .card { min-width: 0; }
}
@media (max-width: 700px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }

}
/* Lightbox */
.is-clickable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; display: grid; place-items: center; z-index: 1200; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(2px); opacity: 0; transition: opacity .2s ease; }
.lightbox.open .lightbox-backdrop { opacity: 1; }
.lightbox-dialog { position: relative; max-width: min(96vw, 1200px); max-height: 90dvh; background: transparent; padding: 0; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.35); opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.lightbox.open .lightbox-dialog { opacity: 1; transform: translateY(0); }
.lightbox-dialog img { width: 100%; height: auto; border-radius: 12px; display: block; }
.lightbox-close { position: absolute; top: 8px; right: 8px; appearance: none; border: 0; background: rgba(17,24,39,.7); color: #fff; border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; }
.lightbox-close:hover { background: rgba(17,24,39,.85); }

/* Button Styles (Hero Section) */
.cta-primary {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
    animation: pulse-strong 2s infinite;
    transition: all 0.2s ease;
}

@keyframes pulse-strong {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.8); }
    50% { box-shadow: 0 0 0 15px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.cursor-icon {
    transition: opacity 0.3s ease;
}

.cta-primary:hover {
    box-shadow: 0 8px 28px rgba(22, 163, 74, 0.4);
    animation: none;
}

.cta-primary:hover .cursor-icon {
    opacity: 0;
}

.cta-primary:active {
    transform: translateY(-1px);
}

/* Page Load Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.highlight-date {
    display: inline-block;
    background: #ffbf00;
    color: #0a3d62;
    font-weight: 800;
    padding: .35em 1em;
    border-radius: 16px;
    font-size: 1.1em;
    letter-spacing: .03em;
    box-shadow: 0 2px 8px rgba(255,191,0,0.12);
    margin: 0 .2em;
}

a {
    text-decoration: underline;
    text-decoration-thickness: 1px; /* Dicke anpassen: 1px dünn, 3px dick */
    text-decoration-color: currentColor; /* Farbe wie Text */
    text-underline-offset: 0.25em; /* Abstand nach unten: 0.2em nah, 0.3em weiter */
    text-decoration-skip-ink: auto; /* Überspringt Unterlängen (g, y) */
    transition: all 0.2s ease; /* Hover-Effekt */
}

a:hover {
    text-underline-offset: 0.3em;
}

.hero a {
    color: white;
}

.zukunftsraeume {
    padding: 2rem 2rem 2rem 0;
}

.zukunftsraum h2 {
    color: var(--ok);
    margin-bottom: 1.5rem;
}
.zukunftsraum:not(:first-of-type) h2 {
    margin-top: 2rem;
}

.zukunftsraum h3 {
    margin-bottom: 1rem;
}

.zukunftsraum .moderator {
    background: var(--ok);
    padding: 1rem;
    border-left: 4px solid #fff;
    margin-bottom: 1.5rem;
    clip-path: polygon(
            0 0,
            calc(100% - 30px) 0,
            100% 30px,
            100% 100%,
            0 100%
    );
}

.zukunftsraum blockquote {
    border-left: 4px solid #fff;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
}

@media (max-width: 500px) {
    .moderator-cards {
        grid-template-columns:repeat(auto-fit,minmax(100%,1fr)) !important;
    }
}

.gesamtmoderation p {
    margin: 0;
    display: inline;
}
.gesamtmoderation a {
    color: white;
}
.fadeout-text-container {
    position: relative;
    max-width: 100%;
}

.fadeout-text {
    max-height: 16em; /* show about 5-6 lines */
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s;
}

.fadeout-text::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3em;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 90%);
    pointer-events: none;
    transition: opacity 0.3s;
}

.fadeout-text.expanded {
    max-height: 2000px;
    transition: max-height 0.6s;
}

.fadeout-text.expanded::after {
    opacity: 0;
}

.fadeout-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    margin: 0 auto;
    margin-top: -2.5em;
    position: relative;
    z-index: 2;
    cursor: pointer;
    padding: 0.5em 0;
}

.arrow-down {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    position: relative;
}

.arrow-down::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    border-left: 4px solid #0a3d62;
    border-bottom: 4px solid #0a3d62;
    transform: rotate(-45deg);
    margin: 0 auto;
    animation: bounce 1.2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(-45deg);}
    50% { transform: translateY(8px) rotate(-45deg);}
}

@media (min-width: 500px) {
    .moderator-card-wrapper {
        display:flex;
        align-items:center;
        gap:1.5rem;
    }
}