/* Eisteichsiedlung · Interessengemeinschaft Eisteich II
   Stylesheet, Neugestaltung Oktober 2026. Ohne JavaScript, ohne externe Schriften. */

:root {
    --c-primary: #14476b;
    --c-primary-dark: #0e3450;
    --c-primary-soft: #e9f1f7;
    --c-primary-line: #c3d6e5;
    --c-accent: #a3324f;
    --c-accent-dark: #7f2440;
    --c-accent-soft: #f9edf1;
    --c-text: #1c2630;
    --c-muted: #56636f;
    --c-line: #dde3e8;
    --c-bg: #f3f5f7;
    --c-focus: #f2b705;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(16, 32, 48, .05), 0 4px 14px rgba(16, 32, 48, .06);
    --shadow-lg: 0 2px 6px rgba(16, 32, 48, .08), 0 18px 40px rgba(16, 32, 48, .14);
    --wrap: 72rem;
    --measure: 46rem;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Grundlagen */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 4.5rem;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--c-primary);
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

a:hover { color: var(--c-primary-dark); text-decoration-thickness: 2px; }

:focus-visible {
    outline: 3px solid var(--c-primary-dark);
    outline-offset: 2px;
    border-radius: 3px;
}

.nav-bar :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible { outline-color: var(--c-focus); }

h1, h2, h3, h4 {
    line-height: 1.25;
    color: var(--c-primary-dark);
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 .6em;
}

h1, h2, h3 { overflow-wrap: break-word; }
h1 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.55rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.65rem); margin-top: 2.2rem; }
h3 { font-size: 1.15rem; margin-top: 1.6rem; }

p, ul, ol, dl, table, figure { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .3rem; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 2rem 0; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.nowrap, .nowrap-lg { white-space: nowrap; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: .75rem;
    z-index: 100;
    background: #fff;
    color: var(--c-primary-dark);
    padding: .6rem 1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
}
.skip-link:focus { left: 1rem; }

/* Kopfbereich */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--c-line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .85rem;
    padding-bottom: .85rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    text-decoration: none;
    color: inherit;
}
.brand:hover { color: inherit; }

.brand-logo { width: 120px; height: auto; display: block; }

.brand-text {
    display: flex;
    flex-direction: column;
    padding-left: 1.1rem;
    border-left: 1px solid var(--c-line);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 750;
    color: var(--c-primary-dark);
    letter-spacing: -.015em;
    line-height: 1.15;
}

.brand-sub { font-size: .9rem; color: var(--c-muted); }

.header-cta {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Navigation */

.nav-bar {
    background: var(--c-primary);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(10, 30, 45, .18);
}

.nav-inner {
    display: flex;
    align-items: center;
    min-height: 3.2rem;
}

.nav-toggle {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.nav-toggle-label { display: none; }

@media (min-width: 901px) {
    .nav-toggle { display: none; }
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.nav-item { position: relative; margin: 0; }

.nav-item > a {
    display: block;
    padding: .9rem 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: .98rem;
}

.nav-item > a:hover,
.nav-item:focus-within > a { background: rgba(255, 255, 255, .1); color: #fff; }

.has-sub > a::after {
    content: "";
    display: inline-block;
    width: .42em;
    height: .42em;
    margin-left: .5em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-.2em) rotate(45deg);
    opacity: .75;
}

.sub {
    list-style: none;
    margin: 0;
    padding: .4rem 0;
    position: absolute;
    left: 0;
    top: 100%;
    width: max-content;
    min-width: 14rem;
    background: #fff;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: none;
}

.has-sub:hover > .sub,
.has-sub:focus-within > .sub { display: block; }

.sub li { margin: 0; }

.sub a {
    display: block;
    padding: .55rem 1.1rem;
    color: var(--c-text);
    text-decoration: none;
}

.sub a:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }

/* aktiver Bereich */
body[data-section="home"] .nav-item[data-nav="home"] > a,
body[data-section="die-siedlung"] .nav-item[data-nav="die-siedlung"] > a,
body[data-section="der-verein"] .nav-item[data-nav="der-verein"] > a,
body[data-section="schwarzes-brett"] .nav-item[data-nav="schwarzes-brett"] > a,
body[data-section="aktuelles"] .nav-item[data-nav="aktuelles"] > a,
body[data-section="forum"] .nav-item[data-nav="forum"] > a {
    background: rgba(255, 255, 255, .13);
    box-shadow: inset 0 -3px 0 #fff;
}

/* Seitenkopf */

.page-header {
    background: linear-gradient(180deg, #fff 0%, var(--c-primary-soft) 100%);
    border-bottom: 1px solid var(--c-line);
}

.page-header .wrap { padding-top: 1.9rem; padding-bottom: 1.8rem; }

.breadcrumb {
    font-size: .88rem;
    color: var(--c-muted);
    margin: 0 0 .45rem;
}
.breadcrumb a { color: var(--c-muted); }
.breadcrumb .sep { margin: 0 .4rem; opacity: .6; }

.page-header h1 { margin: 0; max-width: 32ch; }

.lead {
    font-size: 1.15rem;
    color: var(--c-muted);
    max-width: var(--measure);
    margin: .6rem 0 0;
}

.content { padding: 2.25rem 0 3.5rem; }

.prose { max-width: var(--measure); }
.prose > :first-child, .wide > :first-child { margin-top: 0; }

/* Startseite */

.hero {
    position: relative;
    color: #fff;
    background: var(--c-primary-dark);
    overflow: hidden;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 45%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 30, 46, .86) 0%, rgba(9, 30, 46, .6) 42%, rgba(9, 30, 46, .08) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 4.25rem;
    padding-bottom: 7rem;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 1.4rem + 3vw, 3.25rem);
    max-width: 15ch;
    margin-bottom: .4em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

.hero p {
    font-size: 1.15rem;
    max-width: 34ch;
    color: rgba(255, 255, 255, .93);
    margin: 0;
}

.home-main { padding-bottom: 3.5rem; }

.section { padding-top: 2.75rem; }
.section > h2:first-child, .section-head h2,
.section > div > h2:first-child, .split > div > h2:first-child { margin-top: 0; }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .25rem 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.section-head h2 { margin-bottom: 0; }
.section-head a { font-weight: 600; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

/* Veranstaltungs-Karte (JHV) */

.event-card {
    position: relative;
    z-index: 2;
    margin-top: -4.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.6rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.6rem 1.75rem;
    border-top: 5px solid var(--c-accent);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6.75rem;
    padding: 1rem .8rem;
    background: var(--c-accent);
    color: #fff;
    border-radius: var(--radius-sm);
    text-align: center;
    line-height: 1.1;
    align-self: start;
}

.event-wd { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; opacity: .92; }
.event-day { font-size: 2.7rem; font-weight: 800; letter-spacing: -.02em; }
.event-month { font-size: .92rem; font-weight: 600; }

.eyebrow {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin: 0 0 .3rem;
}

.event-body h2 { margin: 0 0 .5rem; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
.event-meta { font-size: 1.05rem; margin-bottom: .5rem; }
.event-body p:last-child { margin-bottom: 0; }

/* Schaltflächen */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin: 1.2rem 0 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .68rem 1.2rem;
    border-radius: 999px;
    font-weight: 650;
    font-size: .98rem;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid var(--c-primary);
    background: var(--c-primary);
    color: #fff;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn-accent { background: var(--c-accent); border-color: var(--c-accent); }
.btn-accent:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); }

.btn-ghost { background: transparent; color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); border-color: var(--c-primary-dark); }

/* Karten */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(14.5rem, 100%), 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.cards > li { margin: 0; }

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 1.2rem 1.25rem;
    color: var(--c-text);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}

a.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-primary-line);
    color: var(--c-text);
}

.card-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    display: grid;
    place-items: center;
    margin-bottom: .8rem;
}
.card-icon svg { width: 1.35rem; height: 1.35rem; }

.card-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--c-primary-dark);
    margin-bottom: .25rem;
}

a.card .card-title::after {
    content: "\2192";
    margin-left: auto;
    color: var(--c-primary);
    transition: transform .15s;
}
a.card:hover .card-title::after { transform: translateX(3px); }

.card-text { color: var(--c-muted); font-size: .95rem; margin: 0; }

.card-img {
    margin: -1.2rem -1.25rem 1rem;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--c-primary-soft);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Kennzahlen */

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: .9rem;
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.5rem;
}

.fact {
    margin: 0;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
}

.fact-value {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1.1;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}

.fact-label { display: block; color: var(--c-muted); font-size: .92rem; margin-top: .3rem; line-height: 1.35; }

/* Hinweis- und Infoboxen */

.callout {
    background: var(--c-primary-soft);
    border-left: 4px solid var(--c-primary);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.3rem;
    margin: 1.5rem 0;
}
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout h2, .callout h3 { font-size: 1.15rem; margin: 0 0 .4rem; }

.callout--accent { background: var(--c-accent-soft); border-left-color: var(--c-accent); }
.callout--accent h2, .callout--accent h3 { color: var(--c-accent-dark); }

.box {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }
.box h2, .box h3 { font-size: 1.15rem; margin: 0 0 .6rem; }

.kv {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .3rem 1.1rem;
    margin: 0 0 1rem;
}
.kv dt { color: var(--c-muted); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.note { font-size: .92rem; color: var(--c-muted); }

/* Dokumente */

.docs {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.4rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .6rem;
}

.docs li { margin: 0; }

.docs a {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .75rem 1rem;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    color: var(--c-text);
    text-decoration: none;
    transition: border-color .15s, background-color .15s;
}

.docs a:hover { border-color: var(--c-primary-line); background: var(--c-primary-soft); }

.doc-badge {
    flex: none;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: #fff;
    background: var(--c-accent);
    border-radius: 4px;
    padding: .28rem .42rem;
    line-height: 1;
}
.doc-badge--img { background: var(--c-primary); }

.doc-title { font-weight: 600; color: var(--c-primary-dark); line-height: 1.35; min-width: 0; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.doc-meta { margin-left: auto; padding-left: .5rem; color: var(--c-muted); font-size: .85rem; white-space: nowrap; }

/* Aktuelles */

.news { list-style: none; padding: 0; margin: 0; }

.news-item {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 1.15rem 1.35rem 1.2rem;
    margin: 0 0 1rem;
    box-shadow: var(--shadow);
}

.news-item > :last-child { margin-bottom: 0; }
.news-item .docs { margin-bottom: 0; }

.news-date {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--c-primary);
    background: var(--c-primary-soft);
    border-radius: 999px;
    padding: .2rem .7rem;
    margin: 0 0 .55rem;
}

.news-item h2 { font-size: 1.2rem; margin: 0 0 .45rem; }
.news-item h2 a { text-decoration: none; }
.news-item h2 a:hover { text-decoration: underline; }

.news-item--highlight { border-left: 5px solid var(--c-accent); }
.news-item--highlight .news-date { background: var(--c-accent-soft); color: var(--c-accent-dark); }

/* Tabellen */

.table-wrap {
    overflow-x: auto;
    margin: 1rem 0 1.4rem;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
}

table { width: 100%; border-collapse: collapse; margin: 0; font-size: .97rem; }

th, td {
    padding: .65rem .95rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--c-line);
}

thead th {
    background: var(--c-primary-soft);
    color: var(--c-primary-dark);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fafbfc; }
td.nowrap { white-space: nowrap; }

/* Tagesordnung und Einladung */

.event-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(12.5rem, 100%), 1fr));
    gap: .9rem;
    margin: 0 0 1rem;
}

.event-fact {
    background: #fff;
    border: 1px solid var(--c-line);
    border-top: 4px solid var(--c-accent);
    border-radius: var(--radius-sm);
    padding: .95rem 1.1rem;
}

.event-fact .label {
    display: block;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: .15rem;
}

.event-fact strong { display: block; font-size: 1.08rem; color: var(--c-primary-dark); line-height: 1.35; }
.event-fact .sub-label { display: block; color: var(--c-muted); font-size: .92rem; }

.letter {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 1.6rem 1.8rem 1.4rem;
    margin: 1.75rem 0 0;
    box-shadow: var(--shadow);
}
.letter h2 { font-size: 1.25rem; margin-top: 1.8rem; }

.agenda {
    list-style: none;
    counter-reset: top;
    padding: 0;
    margin: .5rem 0 1.4rem;
}

.agenda > li {
    counter-increment: top;
    position: relative;
    margin: 0;
    padding: .6rem 0 .6rem 2.9rem;
    border-bottom: 1px solid var(--c-line);
}
.agenda > li:last-child { border-bottom: 0; }

.agenda > li::before {
    content: counter(top);
    position: absolute;
    left: 0;
    top: .52rem;
    width: 1.95rem;
    height: 1.95rem;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    display: grid;
    place-items: center;
}

.agenda ol { list-style: lower-alpha; margin: .35rem 0 .1rem; padding-left: 1.3rem; }
.agenda ol li { margin: .12rem 0; }

.signature { margin-top: 1.4rem; }

/* Galerie und Bilder */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(19.5rem, 100%), 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.gallery li { margin: 0; }

.gallery a {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-primary-soft);
    box-shadow: var(--shadow);
}

.gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.gallery a:hover img { transform: scale(1.04); }

.figure {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: .8rem;
    box-shadow: var(--shadow);
    margin: 1rem 0 1.5rem;
}
.figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.figure figcaption { color: var(--c-muted); font-size: .9rem; margin-top: .6rem; padding: 0 .2rem; }

/* Videos */

.video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0b1620;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 0 0 1.6rem;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Hausordnung */

.rules { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.rules li { margin: 0 0 .9rem; padding-left: 2.4rem; position: relative; }
.rules .num {
    position: absolute;
    left: 0;
    top: 0;
    min-width: 1.85rem;
    font-weight: 700;
    color: var(--c-primary);
    font-variant-numeric: tabular-nums;
}
.rules .rule-title { font-weight: 650; color: var(--c-primary-dark); }

/* Fußbereich */

.site-footer {
    background: var(--c-primary-dark);
    color: rgba(255, 255, 255, .86);
    font-size: .95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
    gap: 2rem;
    padding-top: 2.6rem;
    padding-bottom: 2rem;
}

.site-footer h2 {
    color: #fff;
    font-size: .95rem;
    letter-spacing: .04em;
    margin: 0 0 .7rem;
}

.site-footer p { margin: 0 0 .6rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 .35rem; }
.footer-logo { width: 112px; height: auto; display: block; margin-bottom: .9rem; opacity: .95; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .4rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .16);
    padding-top: 1rem;
    padding-bottom: 1.4rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .7);
}

/* Varianten */

.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .25rem; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--even > * { margin-top: 0; }
.split--even > .box, .split--even .callout { margin: 0; height: 100%; }
.cards--stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.people { grid-template-columns: repeat(auto-fill, minmax(min(19.5rem, 100%), 1fr)); }
.role { color: var(--c-accent); font-weight: 650; font-size: .95rem; margin: 0 0 .75rem; }
.people .kv { grid-template-columns: 1fr; gap: 0; font-size: .95rem; margin: 0; }
.people .kv dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.people .kv dd { font-weight: 500; margin-bottom: .45rem; }
.figure--plan, .docs--plan { max-width: 52rem; }

/* Fehlerseite */

.error-page { text-align: center; padding: 2rem 0 1rem; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--c-primary-line); line-height: 1; margin-bottom: .5rem; }
.error-page .actions { justify-content: center; }

/* Responsiv */

@media (max-width: 900px) {
    .split, .split--even { grid-template-columns: 1fr; gap: 0; }
    .split--even { gap: 1.25rem; }

    .nav-inner { flex-wrap: wrap; }

    .nav-toggle-label {
        display: flex;
        align-items: center;
        gap: .7rem;
        color: #fff;
        font-weight: 650;
        padding: .8rem 0;
        cursor: pointer;
        user-select: none;
    }

    .burger, .burger::before, .burger::after {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform .2s, background-color .2s;
    }
    .burger { position: relative; }
    .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
    .burger::before { top: -7px; }
    .burger::after { top: 7px; }

    .nav-toggle:checked + .nav-toggle-label .burger { background: transparent; }
    .nav-toggle:checked + .nav-toggle-label .burger::before { top: 0; transform: rotate(45deg); }
    .nav-toggle:checked + .nav-toggle-label .burger::after { top: 0; transform: rotate(-45deg); }
    .nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--c-focus); outline-offset: 2px; }

    .site-nav {
        display: none;
        width: 100%;
        max-height: calc(100vh - 3.2rem);
        overflow-y: auto;
        padding-bottom: .8rem;
    }
    .nav-toggle:checked ~ .site-nav { display: block; }

    .nav-list { flex-direction: column; }
    .nav-item > a { padding: .7rem .25rem; border-top: 1px solid rgba(255, 255, 255, .14); }
    .has-sub > a::after { display: none; }

    .sub {
        position: static;
        display: block;
        width: auto;
        min-width: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0 .45rem 1rem;
    }
    .sub a { color: rgba(255, 255, 255, .88); padding: .38rem .25rem; }
    .sub a:hover { background: transparent; color: #fff; text-decoration: underline; }

    .site-nav .nav-item > a { box-shadow: none !important; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; }
    h1, h2, .card-title { -webkit-hyphens: auto; hyphens: auto; }
    .nowrap-lg { white-space: normal; }
    .page-header h1 { font-size: 1.6rem; }
    .event-body h2 { font-size: 1.3rem; }
    .fact-value { font-size: 1.35rem; }
    .brand { gap: .8rem; }
    .brand-logo { width: 88px; }
    .brand-text { padding-left: .8rem; }
    .brand-name { font-size: 1.2rem; }
    .brand-sub { font-size: .8rem; }
    .header-cta { display: none; }

    .hero-inner { padding-top: 2.6rem; padding-bottom: 6rem; }
    .hero::after { background: linear-gradient(180deg, rgba(9, 30, 46, .5) 0%, rgba(9, 30, 46, .8) 100%); }

    .event-card { grid-template-columns: 1fr; gap: 1rem; padding: 1.3rem 1.2rem; margin-top: -4rem; }
    .event-date { flex-direction: row; gap: .5rem; align-items: baseline; justify-content: flex-start; padding: .55rem .9rem; min-width: 0; }
    .event-day { font-size: 1.6rem; }

    .letter { padding: 1.2rem 1.1rem 1rem; }
    .cards--stack { grid-template-columns: 1fr; }
    .people .kv { grid-template-columns: 1fr; }
    .event-card { padding: 1.1rem 1rem; }
    .event-body h2 { font-size: 1.2rem; }

    .table-stack thead { display: none; }
    .table-stack tr { display: block; padding: .65rem .95rem; border-bottom: 1px solid var(--c-line); }
    .table-stack tbody tr:last-child { border-bottom: 0; }
    .table-stack td { display: block; position: relative; padding: .12rem 0 .12rem 6.9rem; border: 0; }
    .table-stack td::before { content: attr(data-label); position: absolute; left: 0; top: .22rem; width: 6.2rem; color: var(--c-muted); font-size: .85rem; }
    .table-stack td:empty { display: none; }
    .doc-meta { display: none; }
    .kv { grid-template-columns: 1fr; gap: 0; }
    .kv dd { margin-bottom: .45rem; }
}

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

@media print {
    .nav-bar, .skip-link, .actions, .header-cta, .hero-img, .site-footer, .breadcrumb, .event-facts { display: none !important; }
    body { background: #fff; font-size: 10.5pt; color: #000; }
    .wrap { padding: 0; }
    .site-header, .page-header { background: none; border: 0; }
    .header-inner { padding: 0 0 .4rem; }
    .brand-logo { width: 90px; }
    .page-header .wrap { padding-top: .3rem; padding-bottom: .3rem; }
    .page-header h1 { font-size: 19pt; max-width: none; }
    .content { padding: .3rem 0 0; }
    .letter { border: 0; box-shadow: none; padding: 0; margin: 0; }
    .box, .card, .news-item, .figure, .event-fact { box-shadow: none; border-color: #bbb; }
    .table-wrap { border: 0; }
    th, td { padding: .28rem .6rem; }
    .agenda > li { padding: .22rem 0 .22rem 2.3rem; }
    .agenda > li::before { top: .18rem; width: 1.45rem; height: 1.45rem; font-size: 9pt; background: none; color: #000; border: 1px solid #000; }
    h2 { break-after: avoid; }
    tr, .agenda > li, .table-wrap { break-inside: avoid; }
    a { color: inherit; text-decoration: none; }
    .hero, .hero h1, .hero p, .event-date, .doc-badge { color: #000 !important; background: none !important; text-shadow: none; }
    .hero::after { display: none; }
    .hero-inner { padding: .5rem 0 1rem; }
    .event-card { margin-top: 0; box-shadow: none; border: 1px solid #999; }
    .event-date { border: 1px solid #000; }
}
