:root {
    --navy: #10233b;
    --navy-2: #183553;
    --red: #c92f35;
    --red-dark: #a92328;
    --green: #28704f;
    --green-soft: #e7f4ed;
    --blue-soft: #e8f1ff;
    --gold-soft: #fff4d9;
    --ink: #1b2735;
    --muted: #667486;
    --line: #dfe5eb;
    --surface: #ffffff;
    --surface-soft: #f4f6f8;
    --page: #eef2f5;
    --shadow-sm: 0 4px 16px rgba(16, 35, 59, .07);
    --shadow-md: 0 14px 36px rgba(16, 35, 59, .12);
    --radius: 16px;
    --radius-sm: 10px;
    --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

h1, h2, h3, h4 {
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -.025em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(16,35,59,.09);
    box-shadow: 0 6px 24px rgba(16,35,59,.05);
    backdrop-filter: blur(14px);
}
.sport-stripe {
    height: 4px;
    background: linear-gradient(90deg, var(--red) 0 44%, var(--navy) 44% 76%, var(--green) 76% 100%);
}
.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: auto; max-height: 64px; }
.brand-text { font-weight: 900; color: var(--navy); font-size: 1.35rem; }
.site-nav { margin-left: auto; }
.site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
    margin: 0;
}
.site-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--ink);
    font-size: .94rem;
    font-weight: 750;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.site-nav a:hover,
.site-nav a.active {
    background: var(--surface-soft);
    color: var(--red);
}
.site-nav a:hover { transform: translateY(-1px); }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    padding: 10px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-main { min-height: 62vh; padding: 34px 0 56px; }

/* Startseite */
.home-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--navy), #163a5c 72%);
    color: #fff;
    border-radius: 24px;
    padding: clamp(32px, 6vw, 64px);
    box-shadow: var(--shadow-md);
    isolation: isolate;
}
.home-hero::before,
.home-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    transform: rotate(-12deg);
    border-radius: 999px;
}
.home-hero::before {
    width: 420px; height: 84px;
    right: -90px; top: 60px;
    background: rgba(201,47,53,.78);
}
.home-hero::after {
    width: 330px; height: 58px;
    right: 30px; bottom: 54px;
    background: rgba(40,112,79,.8);
}
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: .78rem;
    font-weight: 850;
    color: rgba(255,255,255,.8);
    margin-bottom: 16px;
}
.hero-kicker::before { content: ""; width: 28px; height: 3px; background: var(--red); border-radius: 9px; }
.home-hero .cms-content { max-width: 850px; position: relative; z-index: 2; }
.home-hero .cms-content h1,
.home-hero .cms-content h2,
.home-hero .cms-content h3 { color: #fff !important; }
.home-hero .cms-content h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 0 0 18px; }
.home-hero .cms-content p { color: rgba(255,255,255,.9) !important; font-size: clamp(1rem, 2vw, 1.12rem); max-width: 800px; }
.home-hero .cms-content a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.home-hero .cms-content strong { color: #fff; }

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 34px 0 16px;
}
.section-head h2 { margin: 0; }
.section-kicker { margin: 0 0 5px; color: var(--red); text-transform: uppercase; letter-spacing: .1em; font-weight: 850; font-size: .76rem; }

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
    gap: 20px;
}
.widget,
.content-card,
.event-card,
.news-card,
.album-item {
    background: var(--surface);
    border: 1px solid rgba(16,35,59,.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.widget { padding: clamp(20px, 3vw, 30px); }
.widget-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.widget-title h2 { margin: 0; font-size: 1.35rem; }
.widget-title::after { content: ""; flex: 1; height: 2px; max-width: 68px; background: var(--red); border-radius: 2px; }
.widget-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    font-weight: 800;
    font-size: .92rem;
}

.news-mini-list { list-style: none; padding: 0; margin: 0; }
.news-mini-list li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.news-mini-list li:first-child { padding-top: 0; }
.news-mini-list li:last-child { border-bottom: 0; }
.news-mini-list a { color: var(--navy); font-weight: 800; }
.news-mini-list time { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; }

.event-list { list-style: none; padding: 0; margin: 0; }
.event-row {
    display: grid;
    grid-template-columns: 58px minmax(0,1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.event-row:first-child { padding-top: 0; }
.event-row:last-child { border-bottom: 0; padding-bottom: 0; }
.event-date {
    min-height: 52px;
    display: grid;
    place-content: center;
    text-align: center;
    border-radius: 11px;
    background: var(--navy);
    color: #fff;
    line-height: 1;
}
.event-date strong { display: block; font-size: 1.18rem; }
.event-date span { display: block; margin-top: 4px; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.75); }
.event-info { min-width: 0; }
.event-title { color: var(--navy); font-weight: 850; line-height: 1.3; }
.event-meta { margin-top: 3px; color: var(--muted); font-size: .82rem; white-space: normal; }
.event-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}
.badge--event { color: #176947; background: var(--green-soft); border-color: #bde6d2; }
.badge--tournament { color: #114c9d; background: var(--blue-soft); border-color: #bfd6ff; }
.badge--landesliga { color: #114c9d; background: var(--blue-soft); border-color: #bfd6ff; }
.badge--unterliga { color: #176947; background: var(--green-soft); border-color: #bde6d2; }
.badge--sonstige { color: #8a5c00; background: var(--gold-soft); border-color: #f0d18a; }

.home-info {
    margin-top: 22px;
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border-radius: var(--radius);
    border-left: 5px solid var(--red);
    padding: clamp(24px, 4vw, 38px);
    box-shadow: var(--shadow-sm);
}
.home-info::after {
    content: "";
    position: absolute;
    width: 160px; height: 160px;
    right: -70px; bottom: -75px;
    border-radius: 50%;
    border: 28px solid rgba(40,112,79,.08);
}

/* Allgemeine Inhaltsseiten */
.page-header { margin-bottom: 22px; }
.page-header .eyebrow { color: var(--red); font-weight: 850; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.page-header h1 { margin-top: 4px; }
.page-header p { color: var(--muted); max-width: 720px; margin: 0; }
.content-card { padding: clamp(22px, 4vw, 40px); }
.cms-content { overflow-wrap: anywhere; }
.cms-content img { max-width: 100% !important; height: auto; }
.cms-content table { max-width: 100%; }
.cms-content h2, .cms-content h3 { margin-top: 1.4em; }
.cms-content p:first-child { margin-top: 0; }
.cms-content p:last-child { margin-bottom: 0; }

/* Kalender */
.calendar-list { display: grid; gap: 14px; }
.calendar-card {
    display: grid;
    grid-template-columns: 82px minmax(0,1fr) auto;
    gap: 18px;
    align-items: center;
    background: var(--surface);
    border: 1px solid rgba(16,35,59,.08);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
.calendar-date {
    border-radius: 13px;
    padding: 13px 8px;
    text-align: center;
    background: var(--navy);
    color: white;
}
.calendar-date .day { font-size: 1.7rem; font-weight: 900; line-height: 1; }
.calendar-date .month { margin-top: 5px; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.75); }
.calendar-content h3 { margin: 0 0 6px; font-size: 1.12rem; }
.calendar-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .9rem; }
.calendar-meta strong { color: var(--ink); }
.calendar-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

/* News */
.news-list { display: grid; gap: 14px; }
.news-card { padding: 24px; transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.news-card h2 { font-size: 1.35rem; margin: 4px 0 8px; }
.news-card h2 a { color: var(--navy); }
.news-date { color: var(--muted); font-size: .84rem; font-weight: 700; }
.news-excerpt { color: #475668; }
.news-detail { max-width: 860px; }
.back-link { display: inline-flex; margin-top: 22px; font-weight: 800; }

/* Galerie */
.album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
}
.album-item { overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.album-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.album-item a { display: block; color: var(--navy); }
.album-cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: #dfe5eb; }
.album-title { padding: 14px 16px 16px; font-weight: 850; }
.gallery-container { columns: 3 260px; column-gap: 14px; }
.gallery-container a { display: block; break-inside: avoid; margin: 0 0 14px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-container img { width: 100%; height: auto; display: block; transition: transform .25s ease; }
.gallery-container a:hover img { transform: scale(1.02); }
.lightbox { display: none; position: fixed; inset: 0; z-index: 2000; padding: 40px; background: rgba(8,18,30,.92); align-items: center; justify-content: center; }
.lightbox:target { display: flex; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 86vh; width: auto; height: auto; border-radius: 10px; }
.lightbox .close { position: absolute; top: 18px; right: 26px; color: white; font-size: 38px; font-weight: 300; }

/* Leere Zustände */
.empty-state { padding: 28px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed #cbd3dc; border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.82); padding: 34px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 30px; align-items: center; }
.footer-brand strong { display: block; color: #fff; font-size: 1.05rem; }
.footer-brand span { font-size: .82rem; color: rgba(255,255,255,.58); }
.footer-weather { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .84rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.footer-links a { color: rgba(255,255,255,.82); font-size: .82rem; font-weight: 700; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 22px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: .78rem; }

@media (max-width: 900px) {
    .container { width: min(100% - 28px, var(--container)); }
    .header-inner { min-height: 74px; }
    .brand img { max-height: 54px; }
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: fixed;
        inset: 78px 14px auto;
        max-height: calc(100vh - 96px);
        overflow: auto;
        padding: 14px;
        background: rgba(255,255,255,.99);
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow-md);
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { display: grid; gap: 4px; }
    .site-nav a { padding: 12px 14px; font-size: 1rem; }
    .home-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 18px; }
    .footer-links { justify-content: flex-start; }
    .calendar-card { grid-template-columns: 70px minmax(0,1fr); }
    .calendar-tags { grid-column: 2; justify-content: flex-start; }
    .album-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 620px) {
    .site-main { padding-top: 20px; }
    .home-hero { border-radius: 18px; padding: 28px 22px; }
    .home-hero::before { opacity: .45; }
    .home-hero::after { opacity: .55; }
    .section-head { margin-top: 24px; }
    .event-row { grid-template-columns: 52px minmax(0,1fr); gap: 10px; }
    .event-badges { grid-column: 2; justify-content: flex-start; }
    .event-date { min-height: 48px; }
    .calendar-card { grid-template-columns: 62px minmax(0,1fr); gap: 12px; padding: 14px; }
    .calendar-date .day { font-size: 1.45rem; }
    .calendar-meta { display: grid; gap: 2px; }
    .content-card { border-radius: 13px; }
    .album-grid { grid-template-columns: 1fr; }
    .gallery-container { columns: 2 140px; }
}

@media (max-width: 420px) {
    .container { width: min(100% - 20px, var(--container)); }
    .brand img { max-width: 210px; max-height: 48px; }
    .home-hero .cms-content h2 { font-size: 1.9rem; }
    .gallery-container { columns: 1; }
}
