/* ============== DESIGN TOKENS ============== */
:root {
    --background: 30 20% 97%;
    --foreground: 20 10% 15%;
    --card: 0 0% 100%;
    --card-foreground: 20 10% 15%;
    --popover: 0 0% 100%;
    --popover-foreground: 20 10% 15%;
    /* --primary / --accent are injected dynamically from mainColor in layout.php */
    --primary: 18 70% 35%;
    --primary-foreground: 0 0% 100%;
    --secondary: 30 15% 93%;
    --secondary-foreground: 20 10% 25%;
    --muted: 30 10% 94%;
    --muted-foreground: 20 5% 50%;
    --accent: 18 70% 35%;
    --accent-foreground: 0 0% 100%;
    --border: 30 15% 88%;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 15px 40px -10px rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html[data-a11y-textsize="1"] { font-size: 106.25%; }
html[data-a11y-textsize="2"] { font-size: 112.5%; }
html[data-a11y-textsize="3"] { font-size: 118.75%; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible {
    outline: 3px solid hsl(var(--primary));
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    box-shadow: var(--shadow);
}
.skip-link:focus {
    top: 1rem;
}

.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-col { flex-direction: column; }
.hidden-mobile { display: inline-flex; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
}
.eyebrow--center { text-align: center; }
.eyebrow--on-dark { color: rgba(255, 255, 255, 0.8); }

.section-title {
    font-size: clamp(1.75rem, 3.2vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.section-lead {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.link-arrow,
.link-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--primary));
}
.link-arrow:hover,
.link-primary:hover { text-decoration: underline; }

.card-meta {
    margin: 0 0 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: opacity 0.15s, background-color 0.15s, color 0.15s, transform 0.15s;
    text-decoration: none;
    background: transparent;
    color: inherit;
}
.button--primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}
.button--primary:hover { opacity: 0.9; }
.button--light {
    background: hsl(var(--card));
    color: hsl(var(--foreground));
}
.button--light:hover { background: hsl(var(--card) / 0.9); }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 0;
    color: hsl(var(--muted-foreground));
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s;
}
.icon-btn:hover { color: hsl(var(--foreground)); background: hsl(var(--muted)); }
.icon-btn--ghost { color: hsl(var(--muted-foreground)); }
.icon-btn--ghost:hover { color: hsl(var(--primary)); background: transparent; }
.icon-btn--mobile { display: none; }

.empty-card {
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-xl);
    color: hsl(var(--muted-foreground));
}

/* ============== HEADER ============== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: hsl(var(--card) / 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid hsl(var(--border));
}

.topbar {
    display: none;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--secondary) / 0.4);
}
@media (min-width: 768px) { .topbar { display: block; } }

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.5rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    gap: 1rem;
}

.topbar__items {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.topbar__item,
.topbar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    transition: color 0.15s;
}
.topbar__link:hover { color: hsl(var(--primary)); }

.topbar__icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
}
.topbar__icon svg { width: 100%; height: 100%; }

/* Opening hours expand/collapse */
.topbar__oh--truncated {
    cursor: pointer;
    user-select: none;
}
.topbar__oh--truncated:hover { color: hsl(var(--primary)); }
.topbar__oh-text {
    display: inline-block;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}
.topbar__oh--expanded .topbar__oh-text {
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}
.topbar__oh-chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
}
.topbar__oh--expanded .topbar__oh-chevron {
    transform: rotate(180deg);
}

.topbar__tools {
    display: flex;
    align-items: center;
}
.topbar__tool {
    display: inline-flex;
    align-items: center;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: transparent;
    border: 0;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.15s;
}
.topbar__tool:hover { color: hsl(var(--primary)); }
.topbar__tool[aria-pressed="true"] { color: hsl(var(--primary)); }
.topbar__tool span { font-size: 0.75rem; }

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    color: hsl(var(--foreground));
}
.brand__logo {
    height: 2.25rem;
    width: auto;
    object-fit: contain;
}
@media (min-width: 768px) { .brand__logo { height: 2.5rem; } }
.brand__copy { display: inline-flex; flex-direction: column; min-width: 0; }
.brand__title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
}
@media (min-width: 640px) { .brand__title { font-size: 1.125rem; } }
@media (min-width: 768px) { .brand__title { font-size: 1.25rem; } }
.brand__subtitle {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.2;
    margin-top: 0.125rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Desktop nav */
.desktop-nav { display: flex; }
.nav-root {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item { position: relative; }

.nav-top-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}
.nav-top-link:hover,
.nav-item.is-active > .nav-top-link,
.nav-item:focus-within > .nav-top-link {
    background: hsl(var(--accent) / 0.1);
    color: hsl(var(--primary));
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 0.5rem;
    min-width: 14rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    z-index: 60;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu-inner {
    background: hsl(var(--popover));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: var(--shadow);
    min-width: 14rem;
}

.nav-link,
.nav-link--toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
}
/* Chevron-only toggle button neben dem Link */
.nav-link__chevron-btn {
    width: 1.75rem;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 0.25rem;
}
.nav-link:hover,
.nav-link--toggle:hover,
.sub-item:hover > .nav-link,
.sub-item:hover > .nav-link--toggle,
.sub-item:focus-within > .nav-link,
.sub-item:focus-within > .nav-link--toggle {
    background: hsl(var(--accent) / 0.1);
    color: hsl(var(--primary));
}

.sub-item { position: relative; display: flex; align-items: stretch; }
.sub-item > .nav-link { flex: 1; width: auto; }
.nav-flyout {
    position: absolute;
    top: 0;
    left: 100%;
    padding-left: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.sub-item:hover > .nav-flyout,
.sub-item:focus-within > .nav-flyout {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 1023px) {
    .desktop-nav { display: none; }
    .icon-btn--mobile { display: inline-flex; }
}

/* Mobile menu */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 40;
}
.mobile-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 88vw;
    max-width: 24rem;
    background: hsl(var(--card));
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid hsl(var(--border));
}
.mobile-menu__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}
.mobile-menu__brand img { height: 1.75rem; width: auto; }

.mobile-menu__nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.5rem;
}

.mobile-nav-level { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav-level[data-depth="0"] > .mobile-nav-item { margin: 0; }
.mobile-nav-level[data-depth="1"],
.mobile-nav-level[data-depth="2"] {
    padding-left: 0.75rem;
    margin-left: 0.75rem;
    border-left: 1px solid hsl(var(--border));
}

.mobile-nav-link,
.mobile-acc-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 0;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    text-align: left;
}
/* Split-Header: Link + Chevron-Button nebeneinander */
.mobile-nav-item__header {
    display: flex;
    align-items: center;
}
.mobile-nav-item__header > .mobile-nav-link {
    flex: 1;
}
.mobile-nav-item__header > .mobile-acc-trigger {
    width: 2.75rem;
    min-width: 2.75rem;
    flex-shrink: 0;
    padding: 0;
    justify-content: center;
}
.mobile-nav-level[data-depth="1"] .mobile-nav-link,
.mobile-nav-level[data-depth="1"] .mobile-acc-trigger,
.mobile-nav-level[data-depth="2"] .mobile-nav-link,
.mobile-nav-level[data-depth="2"] .mobile-acc-trigger {
    padding: 0.5rem 0.75rem;
    color: hsl(var(--muted-foreground));
    font-weight: 400;
}
.mobile-nav-link:hover,
.mobile-acc-trigger:hover { background: hsl(var(--accent) / 0.1); }
.mobile-nav-item.is-active > .mobile-nav-link,
.mobile-nav-item.is-active > .mobile-acc-trigger,
.mobile-nav-item.is-active > .mobile-nav-item__header > .mobile-nav-link,
.mobile-nav-item.is-active > .mobile-nav-item__header > .mobile-acc-trigger { background: hsl(var(--accent) / 0.1); color: hsl(var(--primary)); }

.mobile-acc-trigger .chev { transition: transform 0.2s; }
.mobile-acc-trigger .chev svg { display: block; }
.mobile-acc-trigger.is-open .chev { transform: rotate(180deg); }

.mobile-acc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.mobile-acc-content.is-open { max-height: 2000px; }

/* Search modal */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 6rem 1rem 1rem;
}
.search-modal.is-open { display: flex; }
.search-modal__box {
    width: 100%;
    max-width: 36rem;
    background: hsl(var(--card));
    border-radius: var(--radius-xl);
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.search-modal__input-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    border-bottom: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
}
.search-modal__input-row input {
    flex: 1;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    background: transparent;
    border: 0;
    outline: none;
}
.search-modal__close {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-sm);
    background: transparent;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
}
.search-modal__results {
    max-height: 20rem;
    overflow-y: auto;
    padding: 0.5rem;
}
.search-group { margin-bottom: 0.5rem; }
.search-group__label {
    padding: 0.25rem 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
}
.search-group a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}
.search-group a:hover { background: hsl(var(--accent) / 0.1); }
.search-empty {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* ============== PAGE SHELL ============== */
.site-main {
    padding: 0 0 4rem;
}

.page-shell {
    padding: 2rem 0 0;
}

.page-shell__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb__item:not(:last-child)::after {
    content: '/';
    color: hsl(var(--border));
}

.breadcrumb__item a:hover {
    color: hsl(var(--primary));
}

.page-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .page-body--with-sidebar {
        grid-template-columns: minmax(16rem, 18rem) minmax(0, 1fr);
        gap: 2rem;
    }
}

.page-content-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
}

.page-header {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .page-header {
        padding: 2.25rem;
    }
}

.page-header__eyebrow,
.context-nav__eyebrow,
nav.breadcrumb li {
    margin: 0 0 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
}

.page-header__title,
.context-nav__title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
}

.context-nav__title {
    font-size: 1.5rem;
    line-height: 1.15;
}

.page-header__intro {
    max-width: 48rem;
    margin: 1rem 0 0;
    font-size: 1rem;
    line-height: 1.7;
    color: hsl(var(--muted-foreground));
}

.context-nav {
    padding: 1.5rem;
    position: sticky;
    top: 6.5rem;
}

.context-nav__list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 1.25rem;
}

.context-nav__item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.875rem;
    border-radius: var(--radius-md);
    color: hsl(var(--foreground));
    background: transparent;
    transition: background-color 0.15s, color 0.15s, transform 0.15s;
}

.context-nav__item a:hover {
    background: hsl(var(--accent) / 0.08);
    color: hsl(var(--primary));
}

.context-nav__item.is-active a {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.context-nav__chevron {
    font-size: 1rem;
    line-height: 1;
}

.page-article {
    padding: 1.5rem;
    padding-top:0!important;
}

@media (min-width: 768px) {
    .page-article {
        padding: 2rem;
    }
}

.page-article--narrow {
    max-width: 52rem;
}

.page-article__content h2,
.page-article__content h3,
.page-article__content h4 {
    margin: 2rem 0 0.75rem;
}

.page-article__content h3,
.page-article__content h4 {
    margin: 0 0 0.75rem;
}

.page-article__content ul,
.page-article__content ol {
    list-style: revert;
    margin: 0 0 0rem 1.25rem;
    padding: 0;
    padding-top:10px;
}

.page-article__content li + li {
    margin-top: 0.375rem;
}

@media (max-width: 1023px) {
    .context-nav {
        position: static;
    }
}

/* ============== HERO ============== */
.hero-section { padding: 2rem 0 0; }
.hero-stage {
    position: relative;
    height: 420px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: hsl(var(--secondary));
}
@media (min-width: 768px) { .hero-stage { height: 520px; } }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 800ms ease;
}
.hero-slide.is-active { opacity: 1; }

.hero-slide__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2), transparent);
}
.hero-slide__content {
    position: absolute;
    left: clamp(2rem, 4vw, 3.5rem);
    right: clamp(2rem, 4vw, 3.5rem);
    bottom: 2.5rem;
    color: #fff;
    max-width: 42rem;
}
.hero-slide__title {
    font-size: clamp(1.875rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0.75rem 0 0;
}
.hero-slide__text {
    margin: 0.75rem 0 0;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-stage__dots {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}
.hero-stage__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    border: 0;
    cursor: pointer;
    transition: background-color 0.15s, width 0.15s;
}
.hero-stage__dot:hover { background: #fff; }
.hero-stage__dot.is-active { width: 1.5rem; background: #fff; }

/* ============== FUNDERS ============== */
.funders-section {
    padding: 1.5rem 0;
    background: hsl(var(--secondary) / 0.4);
    border-top: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
    margin-top: 2rem;
}
.funders {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 2.5rem;
    row-gap: 1.5rem;
    margin-top: 1rem;
}
@media (min-width: 768px) { .funders { column-gap: 4rem; } }
.funders__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.funders__item img {
    height: 3.5rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: filter 0.2s, opacity 0.2s;
}
.funders__item:hover img { filter: grayscale(0); opacity: 1; }

/* ============== WELCOME ============== */
.welcome-section { padding: 3rem 0; }
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}
@media (min-width: 1024px) { .welcome-grid { grid-template-columns: 2fr 1fr; } }

.welcome-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin: 0 0 1rem;
}
.welcome-body {
    font-size: 1rem;
    line-height: 1.7;
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
}
.welcome-body p + p { margin-top: 1rem; }

.mayor-card {
    background: hsl(var(--secondary));
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
}
.mayor-card__image {
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    object-fit: cover;
    align-self: center;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}
.mayor-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 0.75rem;
}
.mayor-card__quote {
    text-align: center;
    font-style: italic;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin: 0 0 1.25rem;
}
.mayor-card__contacts {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mayor-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    transition: color 0.15s;
}
.mayor-card__link:hover { color: hsl(var(--primary)); }
.mayor-card__link svg { color: hsl(var(--primary)); }

/* ============== NEWS ============== */
.news-section { padding: 3rem 0; }
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.cards-grid--3 {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.news-card { display: flex; flex-direction: column; }
.news-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-xl);
    margin-bottom: 1rem;
    background: hsl(var(--secondary));
}
.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem;
}
.news-card__text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    margin: 0 0 0.75rem;
}

/* ============== AMTSTAFEL ============== */
.section-tinted {
    padding: 4rem 0;
    background: hsl(var(--secondary) / 0.6);
}
.amt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 1024px) { .amt-grid { grid-template-columns: 1fr 2fr; } }

.amt-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.amt-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-xl);
    transition: border-color 0.15s;
}
.amt-item:hover { border-color: hsl(var(--primary) / 0.4); }
.amt-item__icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.amt-item__body { flex: 1; min-width: 0; }
.amt-item__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    margin: 0 0 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    /* white-space: nowrap; */
    font-size: 1rem;
}

/* ============== EVENTS ============== */
.events-section { padding: 4rem 0; }

.event-card { display: flex; flex-direction: column; }
.event-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-xl);
    margin-bottom: 1rem;
    background: hsl(var(--secondary));
}
.event-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: filter 0.5s;
}
.event-card:hover .event-card__media img { filter: grayscale(0); }
.event-card__date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: hsl(var(--card));
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.event-card__date strong {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: hsl(var(--primary));
}
.event-card__date span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
}
.event-card__pill {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    box-shadow: var(--shadow);
}
.event-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.event-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}
.event-card__info p {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.event-card__info svg { color: hsl(var(--primary)); }

/* ============== NEWSPAPER + MAP ============== */
.bottom-section { padding: 0 0 4rem; }
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) { .bottom-grid { grid-template-columns: 1fr 1fr; } }

.newspaper-card {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 2rem;
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) { .newspaper-card { padding: 2.5rem; } }
.newspaper-card__title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1rem;
}
.newspaper-card__text {
    opacity: 0.9;
    line-height: 1.7;
    margin: 0 0 1.5rem;
}
.newspaper-card__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    flex-wrap: wrap;
}
/* outline-button auf dem Primary-Hintergrund der newspaper-card */
.newspaper-card .button--outline {
    border-color: rgba(255, 255, 255, 0.45);
    color: hsl(var(--primary-foreground));
}
.newspaper-card .button--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: hsl(var(--primary-foreground));
}

.map-card {
    position: relative;
    min-height: 320px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--secondary));
}
.map-card__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.map-card__overlay {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    max-width: 16.25rem;
    background: hsl(var(--card) / 0.95);
    backdrop-filter: blur(6px);
    padding: 1.25rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    z-index: 400;
}
.map-card__address {
    font-size: 0.875rem;
    margin: 0 0 0.5rem;
}

.map-muted .leaflet-tile-pane { filter: grayscale(0.6) saturate(0.85) brightness(0.97) contrast(0.95); }
.map-muted .leaflet-container {
    font-family: inherit;
    background: hsl(var(--secondary));
}
.map-muted .leaflet-control-attribution {
    background: hsl(var(--card) / 0.85);
    color: hsl(var(--muted-foreground));
    font-size: 10px;
}
.map-muted .leaflet-bar a {
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    border-color: hsl(var(--border));
}

/* ============== WYSIWYG ============== */
.wysiwyg-content { font-size: 1rem; line-height: 1.7; }
.wysiwyg-content > *:first-child { margin-top: 0; }
.wysiwyg-content p { margin: 0 0 1rem; }
.wysiwyg-content img { border-radius: var(--radius-md); }
.wysiwyg-content a { color: hsl(var(--primary)); text-decoration: underline; }
.wysiwyg-content a.button { text-decoration: none; }
.wysiwyg-content a.button--primary { color: hsl(var(--primary-foreground)); }
.wysiwyg-content a.button--light { color: hsl(var(--foreground)); }
.wysiwyg-content a.button--outline { color: inherit; }
/* Widget-Cards im Inhaltsbereich: Padding + Abstand nach unten */
.wysiwyg-content .card { padding: 1.5rem; margin-bottom: 1rem; }
.wysiwyg-content .card:last-child { margin-bottom: 0; }



.wysiwyg-content .contact-inline a { text-decoration: none; }

/* ============== FOOTER ============== */
.site-footer {
    background: hsl(var(--secondary) / 0.6);
    border-top: 1px solid hsl(var(--border));
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-brand-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin: 0 0 0.75rem;
}
.footer-card__eyebrow {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    margin: 0 0 1rem;
}
.footer-card__text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    margin: 0;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}
.footer-links li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.footer-links a {
    color: inherit;
    transition: color 0.15s;
    display: inline-flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.footer-links a:hover { color: hsl(var(--primary)); }
.footer-icon {
    color: hsl(var(--primary));
    display: inline-flex;
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid hsl(var(--border));
}
.footer-bottom__inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}
@media (min-width: 768px) {
    .footer-bottom__inner {
        flex-direction: row;
        justify-content: space-between;
    }
}
.footer-bottom .heart { color: #d94343; }

/* ============== COMMON LIST HELPERS ============== */
.card-meta {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem;
}
.empty-card {
    background: hsl(var(--card));
    border: 1px dashed hsl(var(--border));
    border-radius: var(--radius-xl, 0.75rem);
    padding: 2rem;
    text-align: center;
    color: hsl(var(--muted-foreground));
}

/* ============== PILL FILTER ============== */
.pill-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin: 0 0 2rem;
}
.pill-filter__item {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    border-radius: 999px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}
.pill-filter__item:hover {
    border-color: hsl(var(--primary) / 0.5);
    color: hsl(var(--primary));
}
.pill-filter__item.is-active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.18);
}

/* ============== AKTUELLES PAGE ============== */
.aktuelles-page {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.news-card__title a {
    color: inherit;
}
.news-card__title a:hover {
    color: hsl(var(--primary));
}
.news-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    color: hsl(var(--primary));
    font-weight: 600;
    font-size: 0.875rem;
}
.news-card__cta:hover {
    gap: 0.75rem;
}

/* ============== AMTSTAFEL PAGE ============== */
.amtstafel-page {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.amt-group__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}
.amt-group__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.amt-entry {
    display: flex;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}
.amt-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.amt-entry__icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: hsl(var(--secondary));
    color: hsl(var(--muted-foreground));
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.amt-entry__body {
    flex: 1;
    min-width: 0;
}
.amt-entry__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    margin: 0 0 0.5rem;
    color: hsl(var(--muted-foreground));
}
.amt-entry__category {
    color: hsl(var(--primary));
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
}
.amt-entry__sep {
    color: hsl(var(--muted-foreground));
}
.amt-entry__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    color: hsl(var(--foreground));
}
.amt-entry__text {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin: 0 0 1rem;
}
.amt-entry__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.amt-entry__filesize {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

/* ============== VERANSTALTUNGEN PAGE ============== */
.veranstaltungen-page {
    display: flex;
    flex-direction: column;
}
.cards-grid--events {
    gap: 2rem 1.5rem;
}
.event-card--list .event-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.event-card--list .event-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}
.event-card--list .event-card__title a {
    color: inherit;
}
.event-card--list .event-card__title a:hover {
    color: hsl(var(--primary));
}
.event-card__text {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.55;
    margin: 0;
}
.event-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--primary));
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    transition: gap 0.15s;
}
.event-card__cta:hover {
    gap: 0.75rem;
}
.event-card--list .event-card__date {
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
}

/* ============== NEWSPAPER FEATURE ============== */
.newspaper-page {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.newspaper-feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: linear-gradient(135deg, hsl(var(--secondary) / 0.7), hsl(var(--card)));
    border: 1px solid hsl(var(--border));
    border-radius: 1.25rem;
    padding: 2rem;
}
@media (min-width: 768px) {
    .newspaper-feature {
        grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
        align-items: center;
        padding: 2.5rem;
    }
}
.newspaper-feature__cover {
    background: hsl(var(--card));
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 12px 30px -12px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}
.newspaper-feature__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.newspaper-feature__cover-placeholder {
    color: hsl(var(--muted-foreground) / 0.4);
}
.newspaper-feature__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}
.newspaper-feature__badge {
    display: inline-flex;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.newspaper-feature__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
}
.newspaper-feature__subtitle {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    margin: -0.25rem 0 0.5rem;
}
.newspaper-feature__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    margin: 0.5rem 0 0.25rem;
}
.newspaper-feature__highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.newspaper-feature__highlights li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 1rem;
    color: hsl(var(--foreground));
}
.newspaper-feature__highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: hsl(var(--primary));
}
.newspaper-feature__text {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin: 0 0 1rem;
}
.newspaper-feature__cta {
    margin-top: 0.5rem;
}

.newspaper-archive-section__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
}
.newspaper-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.newspaper-archive-card {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.newspaper-archive-card:hover {
    border-color: hsl(var(--primary) / 0.4);
    box-shadow: 0 4px 20px -6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
/* Kopfzeile: Titel + Icon nebeneinander */
.newspaper-archive-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}
/* Icon-/Thumbnail-Container oben rechts */
.newspaper-archive-card__icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 3.5rem;
    border-radius: 0.375rem;
    background: hsl(var(--secondary));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary) / 0.35);
}
.newspaper-archive-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.newspaper-archive-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.25;
}
.newspaper-archive-card__meta {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}
/* Inhaltspunkte */
.newspaper-archive-card__highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.newspaper-archive-card__highlights li {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    padding-left: 1rem;
    position: relative;
}
.newspaper-archive-card__highlights li::before {
    content: '·';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: hsl(var(--primary));
}
/* Download-Button unten, volle Breite */
.newspaper-archive-card__action {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

/* ============== DETAIL PAGES ============== */
.detail-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.detail-page__media {
    margin: 0;
    border-radius: var(--radius-xl, 0.75rem);
    overflow: hidden;
    background: hsl(var(--secondary));
}
.detail-page__media img {
    width: 100%;
    height: auto;
    display: block;
}
.detail-page__meta {
    margin-top: -0.5rem;
}
.detail-page__body {
    font-size: 1rem;
    line-height: 1.7;
}
.detail-page__docs-title {
    font-size: 1.125rem;
    margin: 0 0 0.75rem;
}
.doc-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.doc-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    transition: border-color 0.15s, color 0.15s;
}
.doc-list a:hover {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}
.doc-list svg {
    color: hsl(var(--primary));
    flex-shrink: 0;
}
.detail-page__back {
    margin-top: 1rem;
}

.event-detail__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    background: hsl(var(--secondary) / 0.6);
    border-radius: var(--radius-xl, 0.75rem);
    padding: 1.25rem 1.5rem;
    margin: 0;
}
.event-detail__fact dt {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.25rem;
}
.event-detail__fact dd {
    margin: 0;
    font-weight: 600;
    color: hsl(var(--foreground));
}

/* ============== GALLERY PAGE ============== */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 540px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.2s;
}
.gallery-card:hover {
    border-color: hsl(var(--primary) / 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.2);
}
.gallery-card__media {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    background: hsl(var(--secondary));
    overflow: hidden;
}
.gallery-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.gallery-card:hover .gallery-card__media img {
    transform: scale(1.04);
}
.gallery-card__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.18) 55%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}
.gallery-card__pill {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.85rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 10px -4px rgba(0,0,0,0.3);
}
.gallery-card__caption {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.1rem;
    color: #fff;
}
.gallery-card__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 0.35rem;
    opacity: 0.92;
}
.gallery-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.gallery-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}
.gallery-card__text {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.55;
    margin: 0;
}
.gallery-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.25rem;
    border-top: 1px solid hsl(var(--border));
}
.gallery-card__count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    padding-top: 0.75rem;
}
.gallery-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: hsl(var(--primary));
    font-weight: 600;
    font-size: 0.8125rem;
    padding-top: 0.75rem;
    transition: color 0.15s;
}
.gallery-card:hover .gallery-card__cta {
    text-decoration: underline;
}

.gallery-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.gallery-detail__description {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin: 0;
}

/* Zurück-Link + Fotoanzahl-Zeile */
.gallery-detail__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.gallery-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: hsl(var(--primary));
    transition: gap 0.15s;
}
.gallery-detail__back:hover { gap: 0.6rem; }
.gallery-detail__count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Thumbnail-Grid: 2 → 3 → 4 Spalten */
.gallery-lightbox {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
}
@media (min-width: 640px) {
    .gallery-lightbox { grid-template-columns: repeat(3, 1fr); gap: 0.875rem; }
}
@media (min-width: 1024px) {
    .gallery-lightbox { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

.gallery-lightbox__thumb {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.5rem;
    background: hsl(var(--secondary));
    cursor: pointer;
}
.gallery-lightbox__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s, opacity 0.15s;
}
.gallery-lightbox__thumb:hover img {
    transform: scale(1.1);
    opacity: 0.9;
}

/* ============== CONTACTS PAGE ============== */
.contacts-page {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.mayor-feature {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 1.75rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-left: 4px solid hsl(var(--primary));
    border-radius: 0.75rem;
}
.mayor-feature__photo {
    margin: 0;
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: hsl(var(--secondary));
}
.mayor-feature__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mayor-feature__body {
    min-width: 0;
}
.mayor-feature__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(var(--primary));
    margin: 0 0 0.25rem;
}
.mayor-feature__name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}
.mayor-feature__meta {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

.contacts-section__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 1.25rem;
}
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}
.contact-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.15s, transform 0.15s;
}
.contact-card:hover {
    border-color: hsl(var(--primary) / 0.4);
    transform: translateY(-2px);
}
/* Foto-Zeile: Avatar links, Info rechts */
.contact-card__top {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}
.contact-card__avatar {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-card__avatar--clickable {
    cursor: zoom-in;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.contact-card__avatar--clickable:hover,
.contact-card__avatar--clickable:focus-visible {
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.3);
    border-color: hsl(var(--primary) / 0.5);
    outline: none;
}
.contact-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.contact-card__initials {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--primary));
    line-height: 1;
    user-select: none;
}
.contact-card__info {
    flex: 1;
    min-width: 0;
}
.contact-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}
.contact-card__heading {
    min-width: 0;
    flex: 1;
}
/* Bare h3/p – widget-catalog KI-Output */
.contact-card__heading h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: hsl(var(--foreground));
    line-height: 1.3;
}
.contact-card__heading p {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}
.contact-card__name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: hsl(var(--foreground));
}
.contact-card__role {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}
.contact-card__pill {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: hsl(var(--primary) / 0.12);
    color: hsl(var(--primary));
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}
.contact-card__desc {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.55;
    margin: 0;
}
.contact-card__meta {
    list-style: none;
    padding: 0.75rem 0 0;
    margin: 0;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9375rem;
}
.contact-card__meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: hsl(var(--foreground));
}
/* Direkte <a>-Elemente (widget-catalog KI-Output ohne <li>) */
.contact-card__meta > a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: hsl(var(--foreground));
    text-decoration: none;
}
.contact-card__meta svg {
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
}
.contact-card__meta a {
    color: inherit;
    word-break: break-all;
}
.contact-card__meta a:hover {
    color: hsl(var(--primary));
}

/* ===== Inline-Kontaktkarte (@@variable@@-Platzhalter) =====
   Visuell identisch zu .contact-card auf /kontakte, damit
   die gleichen Kontakte in Fließtext & Übersicht gleich aussehen. */
.contact-inline {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
    min-width: 0;
    max-width: 50%;
    height: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s, transform 0.15s;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.contact-inline:hover {
    border-color: hsl(var(--primary) / 0.4);
    transform: translateY(-2px);
}
/* Wenn mehrere .contact-inline direkt nebeneinander im Fließtext
   landen (ohne umschließendes .grid-*), automatisch in Grid fließen. */
.wysiwyg-content .contact-inline + .contact-inline {
    margin-top: 1rem;
}
.contact-inline__top {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}
.contact-inline__avatar {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-inline__avatar--clickable {
    cursor: zoom-in;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.contact-inline__avatar--clickable:hover,
.contact-inline__avatar--clickable:focus-visible {
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.3);
    border-color: hsl(var(--primary) / 0.5);
    outline: none;
}
.contact-inline__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.contact-inline__initials {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--primary));
    line-height: 1;
    user-select: none;
}
.contact-inline__info {
    flex: 1;
    min-width: 0;
}
.contact-inline__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}
.contact-inline__heading {
    min-width: 0;
    flex: 1;
}
.contact-inline__name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: hsl(var(--foreground));
    line-height: 1.3;
}
.contact-inline__role {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}
.contact-inline__pill {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: hsl(var(--primary) / 0.12);
    color: hsl(var(--primary));
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    white-space: nowrap;
    align-self: flex-start;
}
.contact-inline__desc {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.55;
    margin: 0;
}
.contact-inline__desc strong {
    color: hsl(var(--foreground));
    font-weight: 700;
    margin-right: 0.25rem;
}
.contact-inline__meta {
    list-style: none;
    padding: 0.75rem 0 0;
    margin: auto 0 0;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9375rem;
}
.contact-inline__meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: hsl(var(--foreground));
}
.contact-inline__meta svg {
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
}
.contact-inline__meta a {
    color: inherit;
    word-break: break-all;
}
.contact-inline__meta a:hover {
    color: hsl(var(--primary));
}

/* ===== Bürgermeister-News-Liste (@@buergermeisternews) ===== */
.mayor-news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mayor-news-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    overflow: hidden;
    background: hsl(var(--card));
    transition: box-shadow 0.15s;
    margin-bottom: 1rem;
}
.mayor-news-item:hover {
    box-shadow: 0 4px 16px hsl(0 0% 0% / 0.07);
}
.mayor-news-item__media {
    display: block;
    overflow: hidden;
    flex-shrink: 0;
}
.mayor-news-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.mayor-news-item:hover .mayor-news-item__img {
    transform: scale(1.04);
}
.mayor-news-item__body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}
.mayor-news-item__date {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    margin: 0;
}
.mayor-news-item__date svg {
    flex-shrink: 0;
    color: hsl(var(--primary));
}
.mayor-news-item__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}
.mayor-news-item__title a {
    color: hsl(var(--foreground));
    text-decoration: none;
}
.mayor-news-item__title a:hover {
    color: hsl(var(--primary));
}
.mayor-news-item__text {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.55;
    margin: 0;
}
/* Ohne Bild: volle Breite */
.mayor-news-item:not(:has(.mayor-news-item__media)) {
    grid-template-columns: 1fr;
}
/* Responsive */
@media (max-width: 600px) {
    .mayor-news-item {
        grid-template-columns: 1fr;
    }
    .mayor-news-item__media {
        height: 180px;
    }
}

/* ===== Photo modal ===== */
.photo-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-modal[hidden] {
    display: none;
}
.photo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: hsl(0 0% 0% / 0.65);
    backdrop-filter: blur(4px);
}
.photo-modal__box {
    position: relative;
    z-index: 1;
    background: hsl(var(--card));
    border-radius: 1rem;
    padding: 1.25rem;
    max-width: min(90vw, 420px);
    width: 100%;
    box-shadow: 0 24px 64px hsl(0 0% 0% / 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: photo-modal-in 0.18s ease;
}
@keyframes photo-modal-in {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}
.photo-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: hsl(var(--muted));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-foreground));
    transition: background 0.1s, color 0.1s;
}
.photo-modal__close:hover {
    background: hsl(var(--border));
    color: hsl(var(--foreground));
}
.photo-modal__img {
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 0.75rem;
    display: block;
}
.photo-modal__caption {
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    color: hsl(var(--foreground));
}

/* ============== WIDGET LIBRARY ============== */

/* --- Button extras --- */
.button--secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}
.button--secondary:hover { opacity: 0.85; }
.button--ghost {
    background: transparent;
    color: hsl(var(--foreground));
}
.button--ghost:hover {
    background: hsl(var(--accent) / 0.1);
    color: hsl(var(--primary));
}
.button--danger {
    background: hsl(0 84% 60%);
    color: #fff;
}
.button--danger:hover { opacity: 0.88; }
.button--sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}
.button--lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}
/* Override for .button--light: give proper border so it works outside nav contexts */
.button--light {
    border: 1px solid hsl(var(--border));
}
.button--light:hover { background: hsl(var(--secondary)); }
/* .button--outline ist standardmäßig für helle Hintergründe */
.button--outline {
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
}
.button--outline:hover {
    background: hsl(var(--accent) / 0.08);
    color: hsl(var(--primary));
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.badge--default {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}
.badge--secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}
.badge--outline {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}
.badge--primary-soft {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--primary) / 0.2);
}
.badge--success {
    background: hsl(143 60% 90%);
    color: hsl(143 55% 25%);
    border: 1px solid hsl(143 55% 70% / 0.4);
}
.badge--warning {
    background: hsl(38 90% 90%);
    color: hsl(38 80% 30%);
    border: 1px solid hsl(38 80% 60% / 0.4);
}
.badge--danger {
    background: hsl(0 72% 93%);
    color: hsl(0 72% 35%);
    border: 1px solid hsl(0 72% 60% / 0.4);
}

/* --- Info-Boxen / Alerts --- */
.info-box {
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    border: 1px solid transparent;
}
.info-box__icon { flex-shrink: 0; margin-top: 0.1rem; }
.info-box__title { font-weight: 600; margin: 0 0 0.25rem; font-size: 0.9375rem; }
.info-box__text { font-size: 0.875rem; line-height: 1.55; margin: 0; }
.info-box--info {
    background: hsl(var(--secondary));
    border-color: hsl(var(--border));
}
.info-box--success {
    background: hsl(143 60% 95%);
    border-color: hsl(143 55% 70% / 0.4);
    color: hsl(143 55% 18%);
}
.info-box--warning {
    background: hsl(38 90% 95%);
    border-color: hsl(38 80% 60% / 0.4);
    color: hsl(38 80% 22%);
}
.info-box--danger {
    background: hsl(0 72% 97%);
    border-color: hsl(0 72% 60% / 0.5);
    color: hsl(0 72% 28%);
}

/* --- Callout --- */
.callout {
    border-left: 4px solid hsl(var(--primary));
    background: hsl(var(--primary) / 0.06);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}
.callout--warning {
    border-color: hsl(38 80% 50%);
    background: hsl(38 90% 96%);
    color: hsl(38 80% 22%);
}

/* --- Stat-Karte --- */
.stat-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}
.stat-card__icon { color: hsl(var(--primary)); margin-bottom: 0.75rem; }
.stat-card__value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin: 0 0 0.25rem;
}
.stat-card__label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid hsl(var(--border));
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.timeline__item { position: relative; }
.timeline__item::before {
    content: '';
    position: absolute;
    left: -1.625rem;
    top: 0.35rem;
    width: 0.75rem;
    height: 0.75rem;
    background: hsl(var(--primary));
    border-radius: 50%;
    border: 3px solid hsl(var(--background));
}
.timeline__year {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 0.2rem;
    color: hsl(var(--primary));
}
.timeline__text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

/* --- Häkchen-Liste --- */
.check-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9375rem;
}
.check-list__icon {
    flex-shrink: 0;
    color: hsl(var(--primary));
    margin-top: 0.1rem;
}

/* --- Accordion --- */
.accordion-list {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.accordion-item { border-bottom: 1px solid hsl(var(--border)); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: transparent;
    border: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
    color: hsl(var(--foreground));
}
.accordion-trigger:hover { background: hsl(var(--accent) / 0.07); }
.accordion-trigger[aria-expanded="true"] { color: hsl(var(--primary)); }
.accordion-trigger__icon {
    flex-shrink: 0;
    transition: transform 0.2s;
}
.accordion-trigger[aria-expanded="true"] .accordion-trigger__icon { transform: rotate(180deg); }
.accordion-panel {
    display: none;
    padding: 0 1.25rem 1rem;
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}
.accordion-panel.is-open { display: block; }

/* --- Tabs --- */
.tabs-nav {
    display: inline-flex;
    background: hsl(var(--secondary));
    border-radius: var(--radius-lg);
    padding: 0.25rem;
    gap: 0.125rem;
    margin-bottom: 1rem;
}
.tab-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: 0;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.tab-btn.is-active {
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    box-shadow: var(--shadow-sm);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* --- Datentabelle --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table thead { background: hsl(var(--secondary)); }
.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.8125rem;
    color: hsl(var(--foreground));
}
.data-table td {
    padding: 0.75rem 1rem;
    color: hsl(var(--muted-foreground));
    border-bottom: 1px solid hsl(var(--border));
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:nth-child(even) td { background: hsl(var(--secondary) / 0.45); }

/* --- Formular-Elemente --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-label { font-size: 0.875rem; font-weight: 500; }
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-md);
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: hsl(var(--foreground));
    background: hsl(var(--card));
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}
.form-textarea { resize: vertical; min-height: 7rem; }
.form-hint {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin: 0.2rem 0 0;
}
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    accent-color: hsl(var(--primary));
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-grid-full { grid-column: 1 / -1; }

/* --- Fortschrittsbalken --- */
.progress-bar {
    height: 0.625rem;
    border-radius: 999px;
    background: hsl(var(--secondary));
    overflow: hidden;
}
.progress-bar__fill {
    height: 100%;
    background: hsl(var(--primary));
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* --- Raster-Helfer (2/3/4 Spalten) --- */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 1.25rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Scroll-reveal animations ─────────────────────────────────────────── */
[data-rv] {
    opacity: 0;
    transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-rv="left"]   { transform: translateX(-56px); }
[data-rv="right"]  { transform: translateX(56px); }
[data-rv="bottom"] { transform: translateY(40px); }

[data-rv].rv-visible {
    opacity: 1;
    transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
    [data-rv] { transition: none; }
}

/* ── Beiträge (Platzhalter @@beitraege-<typ>@@) ───────────────────────── */
.beitraege-page { display: flex; flex-direction: column; gap: 1.5rem; }

.beitraege-filter {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg, .75rem);
    padding: 1.25rem 1.5rem;
    display: flex; flex-direction: column; gap: 1rem;
}
.beitraege-filter__row {
    display: flex; flex-wrap: wrap; gap: 1rem;
    align-items: center;
}
.beitraege-filter__row--split { justify-content: space-between; }
.beitraege-filter__count {
    display: inline-flex; align-items: center;
    padding: .4rem .85rem;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    border-radius: 999px;
    font-size: .85rem; font-weight: 600;
}
.beitraege-filter__search {
    flex: 1; min-width: 220px;
    position: relative;
}
.beitraege-filter__search svg {
    position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
    pointer-events: none;
}
.beitraege-filter__search input {
    width: 100%;
    padding: .6rem 1rem .6rem 2.3rem;
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
    background: hsl(var(--card));
    font-size: .95rem; color: hsl(var(--foreground));
}
.beitraege-filter__search input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / .15);
}

.beitraege-tabs {
    display: inline-flex; flex-wrap: wrap;
    padding: .25rem;
    background: hsl(var(--muted));
    border-radius: 999px;
    gap: .25rem;
}
.beitraege-tab {
    background: transparent;
    border: 0;
    padding: .45rem 1rem;
    font-size: .875rem; font-weight: 600;
    color: hsl(var(--muted-foreground));
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.beitraege-tab:hover { color: hsl(var(--foreground)); }
.beitraege-tab.is-active {
    background: hsl(var(--card));
    color: hsl(var(--primary));
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.beitraege-tab__count { opacity: .75; font-weight: 500; margin-left: .15rem; }

.beitraege-sort {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .875rem; color: hsl(var(--muted-foreground));
}
.beitraege-sort select {
    padding: .45rem .75rem;
    border: 1px solid hsl(var(--border));
    border-radius: .5rem;
    background: hsl(var(--card));
    font-size: .875rem; color: hsl(var(--foreground));
    cursor: pointer;
}

.beitraege-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.beitraege-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg, .75rem);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.beitraege-card:hover {
    border-color: hsl(var(--primary) / .4);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.beitraege-card--event { border-left: 3px solid hsl(var(--primary)); }
.beitraege-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: hsl(var(--muted));
    overflow: hidden;
}
.beitraege-card__media img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .3s ease;
}
.beitraege-card:hover .beitraege-card__media img { transform: scale(1.04); }
.beitraege-card__placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: hsl(var(--primary) / .4);
}
.beitraege-card__pill {
    position: absolute; top: .75rem; left: .75rem;
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    font-size: .7rem; font-weight: 700;
    letter-spacing: .03em;
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.beitraege-card__pill--event {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}
.beitraege-card__body {
    display: flex; flex-direction: column; gap: .6rem;
    padding: 1.1rem 1.25rem 1.25rem;
    flex: 1;
}
.beitraege-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem; font-weight: 700;
    line-height: 1.3;
    margin: 0;
}
.beitraege-card__title a {
    color: hsl(var(--foreground));
    text-decoration: none;
}
.beitraege-card__title a:hover { color: hsl(var(--primary)); }
.beitraege-card__text {
    font-size: .9rem; line-height: 1.5;
    color: hsl(var(--muted-foreground));
    margin: 0;
}
.beitraege-card__meta {
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid hsl(var(--border));
    font-size: .8rem;
    color: hsl(var(--muted-foreground));
}
.beitraege-card__meta p {
    display: inline-flex; align-items: center; gap: .4rem;
    margin: 0;
}
.beitraege-card__meta svg { color: hsl(var(--primary)); flex-shrink: 0; }

.beitraege-empty {
    background: hsl(var(--card));
    border: 1px dashed hsl(var(--border));
    border-radius: var(--radius-lg, .75rem);
    padding: 2rem;
    text-align: center;
    color: hsl(var(--muted-foreground));
}

/* Detailseite eines Beitrags/Veranstaltungseintrags */
.beitrag-detail { display: flex; flex-direction: column; gap: 1.5rem; }
.beitrag-detail__back {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .9rem; color: hsl(var(--muted-foreground));
    text-decoration: none;
    width: fit-content;
}
.beitrag-detail__back:hover { color: hsl(var(--primary)); }

.beitrag-detail__hero {
    position: relative; overflow: hidden;
    border-radius: var(--radius-xl, 1rem);
    min-height: 240px;
    background: hsl(var(--muted));
}
.beitrag-detail__hero img {
    width: 100%; height: 100%; max-height: 420px;
    object-fit: cover; display: block;
}
.beitrag-detail__hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%);
    pointer-events: none;
}
.beitrag-detail__date-badge {
    position: absolute; top: 1.25rem; left: 1.25rem;
    background: #fff;
    border-radius: var(--radius-md, .5rem);
    padding: .5rem .75rem;
    text-align: center; min-width: 64px;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.beitrag-detail__date-badge strong {
    display: block; font-size: 1.5rem; font-weight: 800; line-height: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: hsl(var(--primary));
}
.beitrag-detail__date-badge span {
    display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: hsl(var(--muted-foreground));
    margin-top: .15rem;
}
.beitrag-detail__pill {
    position: absolute; top: 1.25rem; right: 1.25rem;
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    background: #fff; color: hsl(var(--foreground));
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.beitrag-detail__pill--event {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.beitrag-detail__title-block { display: flex; flex-direction: column; gap: .35rem; }
.beitrag-detail__eyebrow {
    font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: hsl(var(--primary));
    margin: 0;
}
.beitrag-detail__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem; font-weight: 800; line-height: 1.15;
    margin: 0; color: hsl(var(--foreground));
}

.beitrag-detail__facts {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg, .75rem);
    padding: 1.25rem 1.5rem;
}
.beitrag-detail__fact { display: flex; gap: .9rem; align-items: flex-start; }
.beitrag-detail__fact-icon {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: hsl(var(--primary) / .12);
    color: hsl(var(--primary));
    display: flex; align-items: center; justify-content: center;
}
.beitrag-detail__fact-body { min-width: 0; }
.beitrag-detail__fact-label {
    font-size: .7rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: hsl(var(--muted-foreground));
    margin: 0 0 .2rem;
}
.beitrag-detail__fact-value {
    font-size: .95rem; line-height: 1.4;
    color: hsl(var(--foreground)); margin: 0;
    word-break: break-word;
}
.beitrag-detail__fact-value a { color: hsl(var(--primary)); text-decoration: none; }
.beitrag-detail__fact-value a:hover { text-decoration: underline; }

.beitrag-detail__body {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg, .75rem);
    padding: 1.5rem 1.75rem;
    font-size: 1rem; line-height: 1.7;
}
.beitrag-detail__body :first-child { margin-top: 0; }
.beitrag-detail__body :last-child { margin-bottom: 0; }

.beitrag-detail__gallery,
.beitrag-detail__docs,
.beitrag-detail__contact {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg, .75rem);
    padding: 1.25rem 1.5rem;
}
.beitrag-detail__gallery h2,
.beitrag-detail__docs h2,
.beitrag-detail__contact h2 {
    margin: 0 0 .9rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem; font-weight: 700;
    display: flex; align-items: center; gap: .5rem;
}
.beitrag-detail__docs h2 svg { color: hsl(var(--primary)); }
.beitrag-detail__gallery-grid {
    display: grid; gap: .75rem;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.beitrag-detail__gallery-item {
    display: block; aspect-ratio: 1;
    border-radius: .5rem; overflow: hidden;
    background: hsl(var(--muted));
}
.beitrag-detail__gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; transition: transform .2s;
}
.beitrag-detail__gallery-item:hover img { transform: scale(1.05); }

.beitrag-detail__docs ul,
.beitrag-detail__contact ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: .5rem;
}
.beitrag-detail__docs a {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .5rem .75rem;
    background: hsl(var(--muted));
    border-radius: var(--radius-md, .5rem);
    font-size: .9rem; color: hsl(var(--foreground));
    text-decoration: none;
}
.beitrag-detail__docs a:hover { background: hsl(var(--primary) / .1); color: hsl(var(--primary)); }
.beitrag-detail__docs svg { color: hsl(var(--primary)); flex-shrink: 0; }
.beitrag-detail__contact li {
    display: inline-flex; align-items: center; gap: .5rem;
    color: hsl(var(--foreground)); font-size: .95rem;
}
.beitrag-detail__contact svg { color: hsl(var(--primary)); flex-shrink: 0; }
.beitrag-detail__contact a { color: inherit; text-decoration: none; }
.beitrag-detail__contact a:hover { color: hsl(var(--primary)); }

@media (max-width: 640px) {
    .beitrag-detail__title { font-size: 1.5rem; }
    .beitrag-detail__hero { min-height: 180px; }
    .beitraege-filter__row--split { flex-direction: column; align-items: stretch; }
    .beitraege-sort { justify-content: flex-end; }
}

/* ── A11y states ───────────────────────────────────────────────────────── */
body.a11y-contrast {
    --background: 0 0% 0%;
    --foreground: 0 0% 100%;
    --card: 0 0% 8%;
    --card-foreground: 0 0% 100%;
    --muted: 0 0% 15%;
    --muted-foreground: 0 0% 80%;
    --border: 0 0% 30%;
    --secondary: 0 0% 12%;
}
