:root {
    --red: #d7141f;
    --red-d: #a80e17;
    --ink: #14171c;
    --ink-2: #20252c;
    --ink-3: #333a44;
    --paper: #f6f3ee;
    --white: #fff;
    --line: #ddd8cf;
    --muted: #626871;
    --on-dark: #b9bec6;
    --wrap: 1240px;
    --head: "Barlow Condensed", Impact, sans-serif;
    --body: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font: 400 17px/1.6 var(--body);
    overflow-x: hidden;
}

main { flex: 1 0 auto; }

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

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

.wrap {
    width: min(100% - 48px, var(--wrap));
    margin-inline: auto;
}

h1, h2, h3 {
    font-family: var(--head);
    line-height: .98;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .005em;
}

h1 { font-size: clamp(54px, 8.4vw, 116px); font-weight: 800; }
h2 { font-size: clamp(38px, 5vw, 64px); font-weight: 800; }
h3 { font-size: 28px; font-weight: 700; }

p { margin: 0 0 1em; }

.eyebrow {
    font: 700 15px/1 var(--head);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.eyebrow:before {
    content: "";
    width: 26px;
    height: 10px;
    background: repeating-linear-gradient(115deg, var(--red) 0 5px, transparent 5px 9px);
}

.dark .eyebrow,
.hero .eyebrow,
.pagehead .eyebrow { color: #ff5a60; }

.dark .eyebrow:before,
.hero .eyebrow:before,
.pagehead .eyebrow:before {
    background: repeating-linear-gradient(115deg, #ff5a60 0 5px, transparent 5px 9px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 24px;
    background: var(--red);
    color: #fff;
    border: 2px solid var(--red);
    font: 700 19px/1 var(--head);
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: .15s;
}

.btn:hover { background: var(--red-d); border-color: var(--red-d); color: #fff; }

.btn.ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn.ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light { background: #fff; color: var(--red-d); border-color: #fff; }
.btn.light:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.alert { background: var(--ink); color: #d7dae0; font-size: 14px; }
.alert .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.alert b { color: #fff; }
.alert a { text-decoration: none; }
.alert .tel { color: #ff6a70; font: 800 18px/1.2 var(--head); letter-spacing: .04em; }

header.site {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand strong { display: block; font: 800 25px/.95 var(--head); text-transform: uppercase; }
.brand span { display: block; font-size: 13px; color: var(--muted); line-height: 1.25; margin-top: 3px; }

nav.main { display: flex; align-items: center; gap: 2px; }

nav.main a,
nav.main button.nav-parent {
    padding: 10px 12px;
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    color: inherit;
    font: 700 18px/1 var(--head);
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

nav.main a:hover,
nav.main a.on,
nav.main button.nav-parent:hover,
nav.main button.nav-parent.on { color: var(--red); border-color: var(--red); }

nav.main a.cta {
    margin-left: 10px;
    background: var(--red);
    color: #fff;
    border: 0;
    padding: 13px 18px;
}

nav.main a.cta:hover,
nav.main a.cta.on { background: var(--red-d); color: #fff; }

nav.main button.nav-parent:after {
    content: "";
    display: inline-block;
    margin-left: 7px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    vertical-align: 2px;
}

nav.main .drop { position: relative; }

nav.main .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--red);
    padding: 6px 0;
    z-index: 40;
}

nav.main .drop:hover > .menu,
nav.main .drop:focus-within > .menu { display: block; }

nav.main .menu a {
    display: block;
    border: 0;
    padding: 11px 16px;
    font-family: var(--body);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
}

nav.main .menu a:hover,
nav.main .menu a.on { background: var(--paper); }

.burger {
    display: none;
    width: 48px;
    height: 48px;
    background: var(--ink);
    border: 0;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

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

.hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 62%;
    filter: saturate(1.1) contrast(1.05) brightness(1.2);
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(14, 16, 20, .94) 0, rgba(14, 16, 20, .72) 44%, rgba(14, 16, 20, .18) 100%),
        linear-gradient(0deg, rgba(14, 16, 20, .7), transparent 42%);
}

.hero .wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 48px;
    align-items: end;
    min-height: 690px;
    padding-block: 72px 56px;
}

.hero p.lead {
    font-size: 21px;
    max-width: 560px;
    color: #e8e9ec;
    margin: 22px 0 28px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.panel {
    background: rgba(20, 23, 28, .9);
    border-top: 4px solid var(--red);
    padding: 20px 20px 12px;
    backdrop-filter: blur(6px);
}

.panel h3 {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel .more { display: block; padding: 12px 0 4px; color: #ff7277; }

.live {
    font: 600 12px/1 var(--body);
    color: #ffb3b6;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: none;
    letter-spacing: 0;
}

.op {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.op:last-child { border: 0; }

.tag {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    font: 800 19px/1 var(--head);
    color: #fff;
    background: var(--red);
}

.tag.H { background: #b85a00; }
.tag.I { background: #40617f; }

.op b { display: block; font-weight: 600; line-height: 1.2; }
.op small { color: var(--on-dark); font-size: 14px; }
.op time { font-size: 13px; color: var(--on-dark); white-space: nowrap; }

section { padding-block: clamp(64px, 8vw, 104px); }

.dark { background: var(--ink); color: #fff; }
.dark p { color: #c9cdd3; }
.white { background: var(--white); }

.head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 42px;
}

.head p { max-width: 520px; margin: 0; color: var(--muted); }
.dark .head p { color: var(--on-dark); }

.more {
    font: 700 18px/1 var(--head);
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--red);
    text-decoration: none;
    white-space: nowrap;
}

.more:hover { text-decoration: underline; }

.split {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(32px, 6vw, 88px);
}

.tasks { border-top: 2px solid var(--ink); }

.task {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 10px;
    padding: 21px 0;
    border-bottom: 1px solid var(--line);
}

.task span { font: 800 30px/1 var(--head); color: var(--red); }
.task h3 { margin-bottom: 6px; }
.task p { margin: 0; color: var(--muted); }

.units {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #333;
}

.unit {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 430px;
    padding: clamp(26px, 4vw, 46px);
    background: var(--ink-2);
    color: #fff;
    text-decoration: none;
    transition: .18s;
    overflow: hidden;
}

.unit:hover { background: var(--red-d); color: #fff; }
.unit .num { font: 800 clamp(92px, 12vw, 158px)/.82 var(--head); color: #fff; }
.unit small { display: block; font-weight: 600; color: #ffb3b6; margin-top: 10px; }
.unit:hover small { color: #fff; }
.unit h3 { font-size: 40px; margin-bottom: 10px; }
.unit p { margin-bottom: 18px; max-width: 480px; }
.unit:hover p { color: #fff; }
.unit em {
    font: 700 18px/1 var(--head);
    text-transform: uppercase;
    font-style: normal;
    letter-spacing: .05em;
}

.news { display: grid; grid-template-columns: 7fr 5fr; gap: 28px; }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 28px;
    color: var(--ink);
}

.feature {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 390px;
    background:
        linear-gradient(0deg, rgba(14, 16, 20, .95), rgba(14, 16, 20, .25)),
        url("https://fotos.verwaltungsportal.de/mandate/logo/gross/gh_sued_mit_fahrzeuge.jpg") center/cover;
    color: #fff;
    padding: 32px;
    text-decoration: none;
}

.feature h3 { font-size: 42px; margin: 6px 0 12px; }
.feature span { color: #ffb3b6; font-weight: 600; }
.feature p { max-width: 560px; color: #fff; }
.feature .more { color: #fff; }

.news-more {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 28px;
}

.news-more h3 { font-size: 28px; margin: 8px 0 12px; }
.news-more p { color: var(--muted); }

.cal-h {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

.cal-h h3 { font-size: 24px; text-transform: none; }

.cal-h button {
    width: 40px;
    height: 40px;
    background: var(--paper);
    border: 1px solid var(--line);
    cursor: pointer;
}

.cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    text-align: center;
    font-size: 15px;
}

.cal b { font-size: 12px; color: var(--muted); padding: 3px; font-weight: 700; }
.cal i { font-style: normal; padding: 6px 0; background: var(--paper); }
.cal i.e { background: none; }
.cal i.has { color: var(--red); font-weight: 700; }
.cal i.t { background: var(--red); color: #fff; font-weight: 700; }

.event-list { margin-top: 8px; }

.event-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.event-item:last-child { border-bottom: 0; }
.event-item b { display: block; font: 800 22px/1 var(--head); color: var(--red); }
.event-item small { display: block; color: var(--muted); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.event-item p { margin: 0; font-weight: 600; }
.event-item span { display: block; color: var(--muted); font-size: 14px; }

.empty {
    padding: 14px 16px;
    background: var(--paper);
    border-left: 4px solid var(--red);
    margin-top: 16px;
    font-size: 16px;
}

.join {
    position: relative;
    background: var(--red);
    color: #fff;
    overflow: hidden;
}

.join:before {
    content: "";
    position: absolute;
    right: -60px;
    top: 0;
    bottom: 0;
    width: 44%;
    background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .14) 0 34px, transparent 34px 68px);
}

.join .wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 36px;
    align-items: center;
}

.join p { font-size: 20px; max-width: 640px; margin: 18px 0 0; color: #fff; }

.pagehead {
    background: var(--ink);
    color: #fff;
    padding-block: 64px 58px;
    border-bottom: 6px solid var(--red);
}

.pagehead h1 { font-size: clamp(48px, 7vw, 92px); }
.pagehead p { font-size: 20px; max-width: 720px; color: #d4d7dc; margin: 18px 0 0; }
.pagehead .actions { margin-top: 28px; }

.prose { max-width: 760px; }
.prose h2 { font-size: 38px; margin: 34px 0 14px; }
.prose h3 { font-size: 26px; margin: 26px 0 10px; }
.prose ul, .prose ol { margin: 0 0 1em 1.25em; }
.prose li { margin: .25em 0; }
.prose a { color: var(--red-d); font-weight: 600; text-decoration: underline; }
.prose img { margin: 1em 0; height: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose blockquote { margin: 0 0 1em; padding-left: 16px; border-left: 4px solid var(--red); color: var(--muted); }

.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 2px solid var(--ink);
    margin-bottom: 48px;
}

.facts div { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); }
.facts b { display: block; font: 800 clamp(40px, 5vw, 62px)/1 var(--head); color: var(--red); }
.facts span { font-size: 15px; color: var(--muted); }

.people {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.person {
    background: var(--white);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.ph {
    aspect-ratio: 4/4.4;
    background: var(--ink-2);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ph span { font: 800 66px/1 var(--head); color: #59616c; }
.person div.t { padding: 16px 18px 18px; }
.person h3 { font-size: 25px; margin-bottom: 6px; }
.person p { font-size: 15px; color: var(--muted); line-height: 1.35; margin: 0 0 8px; }
.person a { font-size: 14px; color: var(--red-d); font-weight: 600; display: block; word-break: break-word; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.filters button {
    min-height: 44px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    font-weight: 600;
    cursor: pointer;
}

.filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.table { background: var(--white); border: 1px solid var(--line); }

.row {
    display: grid;
    grid-template-columns: 48px 1.5fr 1fr 130px;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.row:last-child { border: 0; }
.row.is-hidden { display: none; }
.row small { display: block; color: var(--muted); }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: 15px; }

.form input,
.form select,
.form textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #aaa49a;
    border-radius: 0;
}

.form .btn { justify-self: start; }

.form-error {
    background: #fdecec;
    border-left: 4px solid var(--red);
    padding: 12px 14px;
}

.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; }
.dl p { margin-bottom: 18px; }
.dl b {
    display: block;
    font: 700 15px/1.3 var(--head);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.narrow { width: min(100% - 48px, 640px); margin-inline: auto; }

footer {
    background: #0e1014;
    color: #c1c5cc;
    padding-block: 58px 24px;
    font-size: 15px;
}

.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.fgrid h3 { font-size: 19px; color: #fff; margin-bottom: 12px; letter-spacing: .06em; }
.fgrid a { display: block; text-decoration: none; padding: 3px 0; }
.fgrid a:hover { color: #fff; text-decoration: underline; }
.fbrand { display: flex; gap: 14px; }
.fbrand img { width: 62px; height: 62px; background: #fff; padding: 4px; object-fit: contain; }
.fgrid p { color: #c1c5cc; }

.legal {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid #2b3038;
    margin-top: 38px;
    padding-top: 18px;
    font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

@media (max-width: 1060px) {
    .burger { display: block; }

    nav.main {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-bottom: 4px solid var(--red);
        padding: 10px 24px 20px;
        flex-direction: column;
        align-items: stretch;
    }

    nav.main.open { display: flex; }

    nav.main a,
    nav.main button.nav-parent {
        padding: 14px 4px;
        border-bottom: 1px solid var(--line);
        font-size: 21px;
        text-align: left;
    }

    nav.main a.cta { margin: 12px 0 0; text-align: center; }

    nav.main .menu {
        display: block;
        position: static;
        border: 0;
        min-width: 0;
        padding: 0 0 8px 12px;
    }

    nav.main .menu a { font-size: 18px; border-bottom: 0; padding: 8px 4px; }

    .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 96px; }
    .people { grid-template-columns: repeat(2, 1fr); }
    .fgrid { grid-template-columns: 1fr 1fr; }
    .news-more { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .wrap, .narrow { width: calc(100% - 32px); }
    .alert span.hide { display: none; }
    .brand strong { font-size: 21px; }
    .brand span { display: none; }
    .bar { min-height: 68px; }
    .brand img { width: 46px; height: 46px; }
    .hero .wrap { padding-block: 64px 24px; }
    .hero:after { background: linear-gradient(0deg, rgba(14, 16, 20, .97) 15%, rgba(14, 16, 20, .55)); }
    .hero p.lead { font-size: 18px; }
    .actions .btn { flex: 1 1 100%; }
    .split, .news, .units, .join .wrap, .contact { grid-template-columns: 1fr; }
    .unit { min-height: 360px; }
    .head { display: block; }
    .head .more { display: inline-block; margin-top: 14px; }
    .facts { grid-template-columns: 1fr 1fr; }
    .people { gap: 10px; }
    .person h3 { font-size: 21px; }
    .person div.t { padding: 12px; }
    .row { grid-template-columns: 40px 1fr auto; }
    .row .place { display: none; }
    .row small.m { display: block; }
    .fgrid { grid-template-columns: 1fr; }
    .legal { display: block; }
    .news > * { min-width: 0; }
    .feature { padding: 22px; }
    .card { padding: 20px; }
    .feature h3 { font-size: 29px; overflow-wrap: anywhere; hyphens: auto; }
}

@media (min-width: 761px) {
    .row small.m { display: none; }
}
