/* =============================================
   SVB Theme
   Weiße Basis, feine Linien, Grün nur als Akzent.
   Alle Farben, Radien und Schriften kommen aus den Tokens in :root.
   ============================================= */

:root {
    --green:        #157a2c;
    --green-light:  #1c9139;
    --green-dark:   #0f5720;
    --green-tint:   #ebf5ed;
    --red:          #c0392b;
    --ink:          #141c17;
    --text:         #2d3831;
    --muted:        #5c6a61;
    --border:       #e2e7e3;
    --border-strong:#c9d1cb;
    --bg:           #ffffff;
    --surface:      #f5f7f5;
    --white:        #ffffff;
    --footer:       #0e2416;
    --shadow-sm:    0 1px 2px rgba(20,28,23,.05);
    --shadow-md:    0 8px 28px rgba(20,28,23,.10);
    --radius:       8px;
    --radius-lg:    12px;
    --radius-pill:  999px;
    --transition:   0.18s ease;
    --header-h:     72px;
    --gutter:       clamp(1rem, 3vw, 2rem);
    --font-head:    'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* === BASIS === */

html {
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}

a {
    color: var(--green);
    transition: color var(--transition);
}
a:hover {
    color: var(--green-dark);
}

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}
/* Bootstrap setzt den Fokusring auch nach Mausklicks */
button:focus:not(:focus-visible) {
    outline: none;
}

/* Fließtext aus dem CMS */
.typography a,
#content .row .col a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.typography p,
.typography li,
#content .row .col p,
#content .row .col li {
    max-width: 72ch;
}
.typography h2,
.typography h3,
#content .row .col h2,
#content .row .col h3 {
    margin-top: 1.6em;
    margin-bottom: 0.5em;
}
.typography h2, #content .row .col h2 { font-size: 1.375rem; }
.typography h3, #content .row .col h3 { font-size: 1.125rem; }
.typography img,
#content .row .col img {
    border-radius: var(--radius);
}

/* === HEADER / NAVBAR === */

header {
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    background: transparent !important;
    min-height: var(--header-h);
    padding: 0.5rem var(--gutter);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 2rem;
    padding: 0;
    text-decoration: none;
}
.navbar-brand img {
    width: 52px;
    height: auto;
}
.navbar-brand-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.navbar-brand-text small {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--muted);
}

.navbar-nav .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}
.navbar-nav .nav-link:hover {
    background: var(--surface);
    color: var(--ink) !important;
}
.navbar-nav .nav-item.active .nav-link {
    color: var(--green) !important;
    font-weight: 600;
}
.navbar-toggler {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 0.4rem 0.6rem;
}

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    margin-top: 0.5rem;
}
.dropdown-item {
    font-size: 0.9375rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    color: var(--text);
    transition: background var(--transition), color var(--transition);
    break-inside: avoid;
}
.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--green-tint);
    color: var(--green-dark);
}

/* Lange Menüs (Sparten) zweispaltig */
@media (min-width: 992px) {
    .dropdown-menu:has(> :nth-child(9)) {
        columns: 2;
        column-gap: 0.5rem;
        min-width: 30rem;
    }
}

/* Kleine Desktops: alles muss in eine Zeile passen */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-brand {
        margin-right: 0.75rem;
    }
    .navbar-nav .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem !important;
    }
    header .btn-svb {
        font-size: 0.8125rem;
        padding: 0.45rem 0.65rem;
        margin-left: 6px;
        white-space: nowrap;
    }
}

/* Mobiles Menü: scrollt innerhalb des Viewports */
@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        padding: 0.75rem 0 1rem;
    }
    .navbar-nav .nav-link {
        padding: 0.65rem 0.5rem !important;
    }
    .dropdown-menu {
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0 0 0.5rem 0.5rem;
    }
    header .btn-top {
        display: block;
        margin-top: 0.5rem;
    }
}

/* === BUTTONS === */

.btn-svb {
    background: var(--green);
    color: #fff !important;
    border: 1px solid var(--green);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn-svb:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff !important;
}
.btn-svb a {
    color: #fff !important;
    text-decoration: none;
}

/* zweiter Button: sekundär */
.btn-top + .btn-top {
    background: transparent;
    color: var(--ink) !important;
    border-color: var(--border-strong);
}
.btn-top + .btn-top:hover {
    background: var(--surface);
    border-color: var(--muted);
    color: var(--ink) !important;
}

@media (min-width: 992px) {
    header .btn-svb {
        margin-left: 8px;
    }
}

/* === CAROUSEL / HERO === */

/* Die Bilder werden serverseitig im Format 1330:300 erzeugt. Dieses Seitenverhältnis
   beibehalten, sonst schneidet object-fit zu und das Bild wirkt hochskaliert. */
div#carousel {
    position: relative;
    overflow: hidden;
    background: var(--surface);
}
.carousel-inner {
    height: clamp(120px, 14vw, 200px);
}
.carousel-item,
.carousel-item img {
    height: 100%;
}
.carousel-item img {
    object-fit: cover;
    width: 100%;
}
/* Einstiegsseite: volle Bühne */
body.NewsPage .carousel-inner {
    height: clamp(180px, calc(100vw * 300 / 1330), 420px);
}
/* Artikel haben ein eigenes Titelbild */
body:has(.news-detail) div#carousel {
    display: none;
}

.carousel-indicators {
    margin-bottom: 12px;
}
.carousel-indicators li {
    width: 24px;
    height: 3px;
    border: none;
    border-radius: 2px;
    background: #fff;
    opacity: 0.55;
    margin: 0 3px;
    transition: opacity var(--transition);
}
.carousel-indicators li.active {
    opacity: 1;
}

/* === CONTENT === */

/* Inhalt und Banner liegen in getrennten Spalten und können sich nicht überlagern */
#content-total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 50vh;
}

div#content {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    /* .container bringt selbst 15px Innenabstand mit */
    padding: 0 calc(var(--gutter) - 15px);
}
div#content > .container {
    max-width: 100%;
}

h1 {
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 20px;
}

h4:not(.typography h4) {
    margin-top: 36px;
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.row {
    margin-bottom: 16px;
}

/* === CARDS === */

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}
.card.divisionActor, .card.divisionEvent {
    margin-bottom: 20px;
}
.card-title {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
}

/* === BREADCRUMBS === */

.svb-breadcrumb {
    padding: 24px 0 4px;
    margin-bottom: 8px;
}
.svb-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
}
.svb-breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--muted);
    white-space: nowrap;
}
.svb-breadcrumb li[aria-current="page"] {
    overflow: hidden;
    min-width: 0;
}
.svb-breadcrumb li[aria-current="page"] span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    color: var(--ink);
    font-weight: 500;
}
.svb-breadcrumb li + li::before {
    content: '/';
    margin: 0 8px;
    color: var(--border-strong);
    flex-shrink: 0;
}
.svb-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}
.svb-breadcrumb a:hover {
    color: var(--green);
}
.svb-breadcrumb a.bc-home svg {
    flex-shrink: 0;
}

/* === PAGINATION === */

.pagination-nav {
    margin-top: 32px;
}
.pagination-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    background: transparent;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
    user-select: none;
}
a.pagination-link:hover {
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
}
.pagination-link.active {
    background: var(--green);
    color: var(--white);
    font-weight: 600;
    cursor: default;
}
.pagination-link.disabled {
    color: var(--border-strong);
    cursor: default;
    pointer-events: none;
}
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--muted);
    pointer-events: none;
    user-select: none;
}

/* === FILTER-CHIPS (News & Kalender) === */

.news-chip,
.event-chip {
    background: var(--white);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    padding: 0.375rem 0.875rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.news-chip:hover,
.event-chip:hover {
    border-color: var(--green);
    color: var(--green-dark);
}
.news-chip.active,
.event-chip.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}
.news-filter-label,
.event-filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    margin: 0;
}
.news-filter-chips,
.event-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* === EVENT PAGE === */

.event-filter-bar {
    margin-bottom: 28px;
}
.event-filter-label {
    margin-bottom: 10px;
}
.event-empty-state {
    text-align: center;
    padding: 56px 16px;
    color: var(--muted);
    background: var(--surface);
    border-radius: var(--radius-lg);
}
.event-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.6;
}
.event-empty-state p {
    margin: 0;
    color: var(--muted);
}

/* Tabs */
.event-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.event-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 0.625rem 0.875rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}
.event-tab:hover {
    color: var(--ink);
}
.event-tab.active {
    color: var(--ink);
    font-weight: 600;
    border-bottom-color: var(--green);
}

/* Einzeltermine – Liste */
.event-list,
.division-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.event-item,
.division-event-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
}
.event-item-date,
.division-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    flex-shrink: 0;
    background: var(--green-tint);
    color: var(--green-dark);
    border-radius: var(--radius);
    padding: 6px 8px;
    line-height: 1.15;
}
.event-day,
.division-event-day {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
}
.event-month,
.division-event-month {
    font-size: 0.75rem;
    font-weight: 500;
}
.event-item-body {
    flex: 1;
    min-width: 0;
}
.event-item-title,
.division-event-name {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}
.event-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 0.875rem;
    color: var(--muted);
}
.event-meta-division,
.location-event-division,
.location-events-count {
    background: var(--green-tint);
    color: var(--green-dark);
    border-radius: var(--radius-pill);
    padding: 1px 9px;
    font-weight: 500;
    font-size: 0.8125rem;
}
.event-item-desc,
.division-event-desc {
    margin-top: 6px;
    font-size: 0.875rem;
    color: var(--muted);
}
.event-regular-item .event-item-desc {
    grid-column: 1 / -1;
    margin-top: 0;
}

/* Wochenplan */
.event-weekday-block {
    margin-bottom: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.event-weekday-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 10px 16px;
}
.event-regular-item {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: baseline;
    gap: 4px 20px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.event-regular-item:last-child {
    border-bottom: none;
}
/* Die Liste ist immer auf genau eine Sparte gefiltert */
.event-regular-division {
    display: none;
}
.event-regular-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--ink);
}
.event-regular-meta {
    font-size: 0.875rem;
    color: var(--muted);
}
.event-no-results {
    text-align: center;
    color: var(--muted);
    padding: 32px 0;
    font-size: 0.9375rem;
}

@media (max-width: 600px) {
    .event-regular-item {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* === SKYSCRAPER === */

#skyscraper {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
    margin: 32px 24px 32px 0;
    overflow: hidden;
    border-radius: var(--radius);
}
#skyscraper.format-skyscraper { width: 160px; }
#skyscraper.format-halfpage   { width: 300px; }
.skyscraper-banner-link {
    display: block;
    line-height: 0;
}
.skyscraper-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Zu wenig Platz für eine eigene Spalte: Banner unter den Inhalt */
@media (max-width: 1399.98px) {
    #content-total:has(> .format-halfpage) {
        grid-template-columns: minmax(0, 1fr);
    }
    #skyscraper.format-halfpage {
        position: static;
        justify-self: center;
        margin: 32px 0 0;
    }
}
@media (max-width: 1199.98px) {
    #content-total:has(> .format-skyscraper) {
        grid-template-columns: minmax(0, 1fr);
    }
    #skyscraper.format-skyscraper {
        position: static;
        justify-self: center;
        margin: 32px 0 0;
    }
}
@media (max-width: 767.98px) {
    #skyscraper.format-skyscraper,
    #skyscraper.format-halfpage {
        display: none;
    }
}

/* === MISC === */

.imageDescription {
    font-size: 0.8125rem;
    width: 100%;
    margin-top: 8px;
    text-align: left;
    color: var(--muted);
}
.newsdetails {
    text-align: right;
    font-size: 0.8125rem;
    color: var(--muted);
}
.downloadFile a {
    color: var(--text);
    font-style: normal;
}
.downloadFile a:hover {
    color: var(--green);
}
.divisionImages {
    max-width: 100%;
    border-radius: var(--radius);
}

/* === FOOTER === */

footer {
    background: var(--footer);
    color: rgba(255,255,255,.7);
    margin-top: 72px;
    padding: 48px 0 28px;
    font-size: 0.875rem;
}
.footer-inner {
    padding: 0 var(--gutter);
}
footer a {
    color: rgba(255,255,255,.7);
    transition: color var(--transition);
}
footer a:hover {
    color: #fff;
}
footer .nav-link {
    color: rgba(255,255,255,.7);
    padding: 0.25rem 0.75rem;
    transition: color var(--transition);
}
footer .nav-link:hover {
    color: #fff;
}
footer :focus-visible {
    outline-color: #fff;
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
}
.footer-copy {
    margin: 0;
}
.footer-bottom .nav {
    margin-right: -0.75rem;
}

/* Förderprojekte & Audits */
.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 56px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-badge-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-badge-label {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255,255,255,.7);
}
.footer-badge-items {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
}
/* Logos einheitlich auf weißem Grund – auch transparente bleiben lesbar */
.footer-badge-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 8px 12px;
    transition: box-shadow var(--transition);
}
a.footer-badge-item:hover {
    box-shadow: 0 0 0 2px rgba(255,255,255,.5);
}
.footer-badge-item img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-bottom .nav {
        margin: 0 0 0 -0.75rem;
    }
}

/* === DIVISION OVERVIEW === */

.division-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}
@media (max-width: 480px) {
    .division-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

.division-card {
    display: block;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.division-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}
/* Viele Spartenbilder sind Silhouetten und Logos: vollständig zeigen, nicht beschneiden */
.division-card-img {
    aspect-ratio: 3 / 2;
    padding: 12px;
    background: var(--white);
}
.division-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.division-card:hover .division-card-img img {
    transform: scale(1.04);
}
.division-card-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.3;
    color: var(--ink);
    transition: color var(--transition);
}
.division-card:hover .division-card-footer {
    color: var(--green);
}

/* === DIVISION DETAIL === */

.division-description {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
/* Alle CMS-Ausrichtungen in Sparten-Beschreibungen überschreiben */
.division-description *,
.division-description p,
.division-description h1,
.division-description h2,
.division-description h3,
.division-description h4 {
    text-align: left !important;
}

/* Aufklappbare Beschreibung */
.division-description-inner {
    max-height: 9em;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
    /* Padding verhindert dass Text unter den Gradienten läuft */
    padding-bottom: 2.5em;
}
.division-description-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5em;
    background: linear-gradient(to top, var(--bg) 20%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.division-description-inner.expanded {
    /* max-height wird per JS auf scrollHeight gesetzt */
    padding-bottom: 0;
}
.division-description-inner.expanded::after {
    opacity: 0;
}
.division-description-toggle {
    background: none;
    border: none;
    padding: 0;
    margin-top: 4px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--green);
    cursor: pointer;
    display: none;
}
.division-description-toggle:hover {
    color: var(--green-dark);
}

/* Social Media Links (Sidebar) */
.division-social-links {
    display: flex;
    gap: 6px;
    margin-top: 16px;
}
.division-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    flex-shrink: 0;
}
.division-social-link:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* Externer-Link-Overlay */
.ext-confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(20,28,23,.55);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.ext-confirm-overlay.active {
    display: flex;
}
.ext-confirm-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
    max-width: 400px;
    width: 100%;
}
.ext-confirm-title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--ink);
    margin: 0 0 8px;
}
.ext-confirm-text {
    font-size: 0.9375rem;
    color: var(--text);
    margin: 0 0 20px;
}
.ext-confirm-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.ext-confirm-cancel,
.ext-confirm-ok {
    border-radius: var(--radius);
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}
.ext-confirm-cancel {
    background: none;
    border: 1px solid var(--border-strong);
    color: var(--ink);
}
.ext-confirm-cancel:hover {
    background: var(--surface);
}
.ext-confirm-ok {
    background: var(--green);
    border: 1px solid var(--green);
    color: #fff;
}
.ext-confirm-ok:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.division-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}
.division-detail-layout > * {
    min-width: 0;
}
/* Sparten ohne Termine, News und Bilder: keine leere Hauptspalte */
.division-main:not(:has(*)) {
    display: none;
}
.division-main:not(:has(*)) + .division-sidebar {
    grid-column: 1 / -1;
    position: static;
    width: 100%;
    max-width: 340px;
}
@media (max-width: 860px) {
    .division-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.division-section {
    margin-bottom: 40px;
}
.division-section-title,
.history-section-title {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
}
.division-section-title {
    font-size: 1.125rem;
    margin-bottom: 14px;
}

/* Trainingszeiten */
.division-schedule {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.division-schedule-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 2px 12px;
    align-items: baseline;
    padding: 12px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
    min-width: 0;
}
.division-schedule-row:last-child {
    border-bottom: none;
}
.division-schedule-row > * {
    min-width: 0;
    overflow-wrap: break-word;
}
.division-schedule-days {
    font-weight: 600;
    color: var(--green-dark);
    font-size: 0.875rem;
}
.division-schedule-name {
    color: var(--ink);
    font-weight: 500;
}
.division-schedule-time {
    color: var(--text);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.division-schedule-loc,
.division-schedule-desc {
    grid-column: 2 / -1;
    font-size: 0.8125rem;
    color: var(--muted);
}
@media (max-width: 860px) {
    .division-schedule-row {
        grid-template-columns: 90px minmax(0, 1fr);
    }
    .division-schedule-time {
        grid-column: 2;
        white-space: normal;
    }
}
@media (max-width: 480px) {
    .division-schedule-row {
        grid-template-columns: minmax(0, 1fr);
    }
    .division-schedule-time,
    .division-schedule-loc,
    .division-schedule-desc {
        grid-column: 1;
    }
}

/* Einzeltermine */
.division-event-meta {
    font-size: 0.875rem;
    color: var(--muted);
}

/* Galerie */
.division-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.division-gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: zoom-in;
}
.division-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.division-gallery-item:hover img {
    transform: scale(1.04);
}
@media (max-width: 480px) {
    .division-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Sidebar: Ansprechpartner */
.division-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}
.division-actor-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
    margin-bottom: 8px;
}
.division-actor-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.division-actor-info {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
}
.division-actor-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--ink);
}
.division-actor-job {
    color: var(--muted);
    font-size: 0.8125rem;
    margin-bottom: 4px;
}
.division-actor-mail {
    color: var(--green);
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
    display: block;
}
.division-actor-phone {
    color: var(--muted);
    font-size: 0.8125rem;
    margin-top: 2px;
}
@media (max-width: 860px) {
    .division-sidebar {
        position: static;
    }
}

/* === DIVISION NEWS === */

.division-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.division-news-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.division-news-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    color: inherit;
    text-decoration: none;
}
.division-news-img-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}
.division-news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.division-news-card:hover .division-news-img-wrap img {
    transform: scale(1.03);
}
.division-news-img-wrap .news-img-placeholder {
    width: 100%;
    height: 100%;
}
.division-news-body {
    padding: 12px 14px 14px;
}
.division-news-date {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: 4px;
}
.division-news-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === NEWS PAGE === */

.news-filter-bar {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.news-filter-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.news-filter-label {
    flex: 0 0 48px;
}
.news-filter-active {
    margin-top: 2px;
}
.news-filter-reset {
    font-size: 0.875rem;
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
}
.news-filter-reset:hover {
    color: var(--red);
    text-decoration: underline;
}

/* Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
@media (max-width: 991px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .news-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Card */
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.news-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    color: var(--text);
    text-decoration: none;
}
.news-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--surface);
}
.news-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.news-card:hover .news-card-img-wrap img {
    transform: scale(1.03);
}
.news-img-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--green-tint);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' fill='%23157a2c' fill-opacity='0.35' viewBox='0 0 16 16'%3E%3Cpath d='M0 2.5A1.5 1.5 0 0 1 1.5 1h11A1.5 1.5 0 0 1 14 2.5v10.528c0 .3-.05.654-.238.972h.738a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 1 1 0v9a1.5 1.5 0 0 1-1.5 1.5H1.497A1.497 1.497 0 0 1 0 13.5v-11zM12 14c.37 0 .654-.211.853-.441.092-.106.147-.279.147-.531V2.5a.5.5 0 0 0-.5-.5h-11a.5.5 0 0 0-.5.5v11c0 .278.223.5.497.5H12z'/%3E%3Cpath d='M2 3h10v2H2V3zm0 3h4v3H2V6zm0 4h4v1H2v-1zm0 2h4v1H2v-1zm5-6h2v1H7V6zm3 0h2v1h-2V6zM7 8h2v1H7V8zm3 0h2v1h-2V8zM7 10h2v1H7v-1zm3 0h2v1h-2v-1zm-3 2h2v1H7v-1zm3 0h2v1h-2v-1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 56px 56px;
    display: block;
}
.news-img-placeholder--hero {
    height: 320px;
}
.news-card-badge,
.news-detail-badge {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
}
.news-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.news-card-body {
    padding: 16px 18px 8px;
    flex: 1;
}
.news-card-date {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: 4px;
}
.news-card-title {
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin: 0 0 8px;
    transition: color var(--transition);
}
.news-card:hover .news-card-title {
    color: var(--green);
}
.news-card-excerpt {
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-footer {
    padding: 8px 18px 16px;
}
.news-card-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--green);
}

/* Pagination */
.news-pagination {
    margin: 12px 0;
}

/* Empty state */
.news-empty,
.actor-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--muted);
    background: var(--surface);
    border-radius: var(--radius-lg);
}
.news-empty p { margin-bottom: 16px; }
.actor-empty p { margin: 0; }

/* News Detail */
.news-detail {
    max-width: 760px;
}
.news-detail-hero {
    margin-bottom: 16px;
}
.news-detail-hero img,
.news-detail-hero .news-img-placeholder {
    border-radius: var(--radius-lg);
}
.news-detail-hero img {
    width: 100%;
    height: auto;
    display: block;
}
.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: var(--muted);
}
.news-detail-date,
.news-detail-author {
    color: var(--muted);
}
.news-detail-badge {
    background: var(--green-tint);
    color: var(--green-dark);
}
.news-detail-body {
    margin-bottom: 32px;
    font-size: 1.0625rem;
    line-height: 1.7;
}
.news-detail-body img {
    max-width: 100% !important;
    height: auto !important;
}
.news-detail-body .captionImage {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}
.news-detail-assets {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 12px;
}
.news-detail-assets h5 {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* === LOCATION PAGE === */

.location-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}
.location-photo {
    width: 100%;
    aspect-ratio: 16 / 5;
    overflow: hidden;
}
.location-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.location-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
}
.location-pin-icon {
    color: var(--green);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.location-name {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}
.location-body {
    padding: 20px 24px 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.location-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}
.location-top > :only-child {
    grid-column: 1 / -1;
}
.location-map {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 14px;
}
.location-map img {
    width: 100%;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    display: block;
}
.location-address-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 2px;
}
.location-address-text {
    font-size: 0.9375rem;
    color: var(--ink);
    margin-bottom: 8px;
}
.location-maps-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--green);
    text-decoration: none;
}
.location-maps-link:hover {
    color: var(--green-dark);
    text-decoration: underline;
}
.location-description {
    font-size: 0.9375rem;
    color: var(--text);
}
.location-events {
    border-top: 1px solid var(--border);
    margin: 0 -24px;
    padding: 0 24px;
}
.location-events-summary {
    display: flex;
    align-items: center;
    cursor: pointer;
    list-style: none;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    padding: 14px 0;
    user-select: none;
}
.location-events-summary::-webkit-details-marker { display: none; }
.location-events-summary::after {
    content: '';
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform var(--transition);
}
details[open] .location-events-summary::after {
    transform: rotate(-135deg);
}
.location-events-count {
    margin-left: 8px;
    margin-right: auto;
}
.location-events-list {
    padding-bottom: 8px;
}
.location-event-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}
.location-event-division {
    align-self: flex-start;
}
.location-event-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
}
.location-event-time {
    font-size: 0.875rem;
    color: var(--muted);
}

@media (max-width: 767px) {
    .location-header { padding: 16px 18px; }
    .location-body { padding: 16px 18px 4px; }
    .location-events { margin: 0 -18px; padding: 0 18px; }
    .location-top { grid-template-columns: minmax(0, 1fr); }
}

/* === CONSENT BANNER === */

.consent-banner {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 9999;
    width: min(440px, calc(100vw - 32px));
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.consent-banner-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.consent-banner-text {
    font-size: 0.875rem;
    line-height: 1.5;
}
.consent-banner-text strong {
    color: var(--ink);
}
.consent-banner-text > strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.consent-banner-text p {
    margin: 0;
}
.consent-banner-text a {
    color: var(--green);
    text-decoration: underline;
}
.consent-banner-actions {
    display: flex;
    gap: 8px;
}
.consent-btn {
    flex: 1;
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}
.consent-btn-accept {
    background: var(--green);
    border: 1px solid var(--green);
    color: #fff;
}
.consent-btn-accept:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}
.consent-btn-decline {
    background: var(--white);
    border: 1px solid var(--border-strong);
    color: var(--ink);
}
.consent-btn-decline:hover {
    background: var(--surface);
}

/* === LEGAL PAGES === */

.legal-page {
    max-width: 72ch;
}
.legal-section {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.legal-section:last-child {
    border-bottom: none;
}
.legal-section h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.legal-section h3 {
    font-size: 1.0625rem;
    margin-top: 16px;
    margin-bottom: 6px;
}
.legal-section p,
.legal-section li {
    font-size: 0.9375rem;
    color: var(--text);
}
.legal-section ul {
    padding-left: 20px;
    margin-bottom: 12px;
}
.legal-section li {
    margin-bottom: 4px;
}
.consent-reopen-wrap {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.btn-consent-reopen {
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: background var(--transition);
}
.btn-consent-reopen:hover {
    background: var(--surface);
}

/* === LIGHTBOX === */

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10,14,12,.92);
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-img-wrap {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100vw - 160px);
    max-height: 90vh;
}
.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
    display: block;
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    padding: 4px 10px;
    transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
    flex-shrink: 0;
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,.25);
}

/* === ACTOR PAGE === */

.actor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.actor-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 24px;
    text-align: center;
}
.actor-card-photo-wrap {
    margin-bottom: 14px;
    flex-shrink: 0;
}
.actor-card-photo,
.actor-card-initials {
    width: 88px;
    height: 88px;
    border-radius: 50%;
}
.actor-card-photo {
    object-fit: cover;
    display: block;
}
.actor-card-initials {
    background: var(--green-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--green-dark);
    text-transform: uppercase;
}
.actor-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}
.actor-card-name {
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}
.actor-card-job {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.4;
    margin-bottom: 10px;
}
.actor-card-mail,
.actor-card-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}
.actor-card-mail {
    color: var(--green);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.actor-card-mail:hover {
    color: var(--green-dark);
    text-decoration: underline;
}
.actor-card-phone {
    color: var(--muted);
    margin-top: 2px;
}

/* === DOWNLOAD PAGE === */

.download-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}
.download-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.download-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    color: inherit;
    text-decoration: none;
}
.download-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--green-tint);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--green-dark);
    gap: 1px;
}
.download-card-icon svg {
    width: 22px;
    height: 22px;
}
.download-card-ext {
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1;
}
.download-card-info {
    flex: 1;
    min-width: 0;
}
.download-card-title {
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.download-card-desc {
    font-size: 0.875rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.download-card-meta {
    font-size: 0.8125rem;
    color: var(--muted);
}
.download-card-action {
    flex-shrink: 0;
}
.download-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-strong);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.download-card:hover .download-card-btn {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}
@media (max-width: 560px) {
    .download-card { flex-wrap: wrap; }
    .download-card-info { flex-basis: calc(100% - 64px); }
    .download-card-title,
    .download-card-desc { white-space: normal; }
    .download-card-action { width: 100%; }
    .download-card-btn { width: 100%; justify-content: center; }
}

/* === HISTORY PAGE === */

.history-hero {
    padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 48px);
    background: var(--footer);
    border-radius: var(--radius-lg);
    margin-bottom: 48px;
    color: var(--white);
}
.history-hero-year {
    font-family: var(--font-head);
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}
.history-hero-label {
    font-size: 1.0625rem;
    margin-top: 8px;
    color: rgba(255,255,255,.75);
}
.history-hero-intro {
    max-width: 60ch;
    margin: 20px 0 0;
    color: rgba(255,255,255,.85);
}
.history-section-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* Timeline */
.history-timeline-section {
    margin-bottom: 56px;
}
.history-timeline {
    --year-col: 72px;
    position: relative;
}
.history-timeline::before {
    content: '';
    position: absolute;
    left: var(--year-col);
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--border-strong);
}
.history-milestone {
    display: flex;
    gap: 28px;
    margin-bottom: 16px;
    align-items: flex-start;
}
.history-milestone-marker {
    flex-shrink: 0;
    width: var(--year-col);
    padding: 14px 14px 0 0;
    text-align: right;
    position: relative;
}
.history-milestone-year {
    font-family: var(--font-head);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.history-milestone-dot {
    position: absolute;
    top: 21px;
    right: -5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px var(--white);
}
.history-milestone-card {
    flex: 1;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.history-milestone-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
}
.history-milestone-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.history-milestone-body {
    padding: 14px 18px 16px;
}
.history-milestone-title {
    font-size: 1.0625rem;
    margin-bottom: 4px;
}
.history-milestone-desc {
    font-size: 0.9375rem;
    color: var(--text);
    margin: 0;
}

/* Vorsitzende */
.history-presidents-section {
    margin-bottom: 48px;
}
.history-presidents {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}
.history-president-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
}
.history-president-period {
    font-size: 0.8125rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.history-president-name {
    font-weight: 600;
    color: var(--ink);
}

@media (max-width: 600px) {
    .history-timeline { --year-col: 52px; }
    .history-milestone { gap: 18px; }
    .history-milestone-marker { padding-right: 10px; }
    .history-milestone-year { font-size: 0.8125rem; }
}

/* === SPONSOR PAGE === */

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 28px;
}
.sponsor-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.sponsor-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}
.sponsor-card-logo {
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 120px;
}
.sponsor-card-logo img {
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
}
.sponsor-card-body {
    padding: 16px 18px 12px;
    flex: 1;
}
.sponsor-card-name {
    font-size: 1.0625rem;
    margin-bottom: 6px;
}
.sponsor-card-desc {
    font-size: 0.9375rem;
    color: var(--muted);
    margin: 0;
}
.sponsor-card-footer {
    padding: 0 18px 18px;
}

/* === RESPONSIVE (allgemein) === */

@media (max-width: 767px) {
    .news-filter-group {
        flex-direction: column;
        gap: 6px;
    }
    .news-filter-label {
        flex: none;
    }
    /* Filter als wischbare Zeile statt mehrzeiligem Block */
    .news-filter-group,
    .news-filter-chips,
    .event-filter-chips {
        min-width: 0;
        max-width: 100%;
    }
    .news-filter-group {
        align-items: stretch;
    }
    .news-filter-chips,
    .event-filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 calc(var(--gutter) * -1);
        padding: 2px var(--gutter);
        max-width: none;
    }
    .news-filter-chips::-webkit-scrollbar,
    .event-filter-chips::-webkit-scrollbar {
        display: none;
    }
    footer {
        margin-top: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
