/* ==========================================================
   Startseite
   ========================================================== */

/* ---------- Hero-Karussell ---------- */
.hero {
    position: relative;
    height: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--navy);
}
.hero__slides { position: absolute; inset: 0; }
.hero__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.04);
    transition: opacity 1s var(--ease), transform 7s linear;
}
.hero__img.is-active { opacity: 1; transform: scale(1); }
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(var(--deep-rgb), .80) 0%, rgba(var(--deep-rgb), .40) 55%, rgba(var(--deep-rgb), .05) 100%);
}
.hero__overlay {
    position: absolute; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: center;
    max-width: 620px; padding: 40px 52px;
    color: #fff;
}
.hero__eyebrow {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 600;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(6px);
}
.hero h1 { margin: 16px 0 10px; font-size: 44px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.hero p { margin: 0 0 26px; font-size: 16px; color: rgba(255, 255, 255, .88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__controls {
    position: absolute; z-index: 2; right: 24px; bottom: 58px;
    display: flex; align-items: center; gap: 10px;
}
.hero__nav {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    color: #fff; font-size: 13px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(6px);
    transition: background .15s;
}
.hero__nav:hover { background: rgba(255, 255, 255, .3); }
.hero__dots { display: flex; gap: 6px; }
.hero__dot {
    width: 8px; height: 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .5);
    transition: width .3s var(--ease), background .3s;
}
.hero__dot.is-active { width: 24px; background: #fff; }

/* ---------- Schnell-Infos ---------- */
.facts {
    position: relative; z-index: 3;
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin: -36px 28px 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.fact { display: flex; align-items: center; gap: 12px; padding: 18px 20px; }
.fact + .fact { border-left: 1px solid var(--border-soft); }
.fact__icon {
    width: 42px; height: 42px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 12px;
    color: var(--accent); background: var(--accent-50);
    font-size: 17px;
}
.fact strong { display: block; font-size: 14px; color: var(--navy); }
.fact span { font-size: 13px; color: var(--text-muted); }

/* ---------- Abschnitte ---------- */
.section { margin-top: 48px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.section__head h2 { margin: 2px 0 0; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; color: var(--navy); }
.section__link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }
.section__link i { font-size: 12px; transition: transform .15s; }
.section__link:hover i { transform: translateX(3px); }

.row { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; }
.row--events { grid-template-columns: 8fr 4fr; }

/* ---------- Sparten ---------- */
.sparten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sparte {
    position: relative; display: block;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--navy);
}
.sparte img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.sparte::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(var(--deep-rgb), .85) 0%, rgba(var(--deep-rgb), .25) 50%, transparent 75%);
}
.sparte:hover img { transform: scale(1.06); }
.sparte__body {
    position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; gap: 2px;
    padding: 18px; color: #fff;
}
.sparte__icon {
    width: 36px; height: 36px; margin-bottom: 8px;
    display: grid; place-items: center; border-radius: 10px;
    background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .25);
}
.sparte strong { font-size: 18px; }
.sparte__body > span:last-child { font-size: 13px; color: rgba(255, 255, 255, .82); line-height: 1.4; }

/* ---------- Treffpunkte ---------- */
.treffs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.treff { border: 1px solid var(--accent-100); border-radius: var(--radius); overflow: hidden; background: var(--accent-25); }
.treff img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.treff__body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.treff__body strong { color: var(--navy); }
.treff__body > span { font-size: 13px; color: var(--text-muted); }
.treff__when { margin-top: 6px; }
.treff__when i { color: var(--accent); margin-right: 4px; }
.treff__map { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.treff__map:hover { text-decoration: underline; }

/* ---------- Stammtisch ---------- */
.card--stammtisch { display: flex; flex-direction: column; }
.datebig {
    flex: 1;
    display: flex; align-items: center; gap: 20px;
    padding: 20px; margin-bottom: 18px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent-50), var(--accent-25));
    border: 1px solid var(--accent-100);
}
.datebig__cal {
    width: 92px; flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center;
    border-radius: 14px; overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.datebig__m { width: 100%; padding: 4px 0; text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.datebig__d { font-size: 38px; font-weight: 800; line-height: 1.1; padding-top: 4px; color: var(--navy); }
.datebig__w { font-size: 12px; font-weight: 600; color: var(--text-muted); padding-bottom: 6px; }
.datebig > div:last-child { display: flex; flex-direction: column; gap: 4px; }
.datebig strong { font-size: 18px; color: var(--navy); }
.datebig .muted { font-size: 13px; }
.badge {
    align-self: flex-start;
    padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
    color: var(--accent-ink); background: var(--surface);
    border: 1px solid var(--accent-100);
}

/* ---------- Termine ---------- */
.events { list-style: none; margin: 0; padding: 0; }
.events li + li { border-top: 1px solid var(--border-soft); }
.event {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius);
    transition: background .15s;
}
.event:hover { background: var(--accent-25); }
.event__date {
    width: 56px; height: 60px; flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--accent-50);
    color: var(--accent-ink);
}
.event__date span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.event__date strong { font-size: 22px; line-height: 1; color: var(--navy); }
.event__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.event__body > strong { color: var(--navy); font-size: 15px; }
.event__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--text-muted); }
.event__meta i { color: var(--text-soft); margin-right: 4px; }
.event__arrow { color: var(--text-soft); font-size: 12px; transition: transform .15s, color .15s; }
.event:hover .event__arrow { color: var(--accent); transform: translateX(3px); }

.tag { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag--verein  { color: var(--accent-ink); background: var(--accent-50); }
.tag--fahrtag { color: #0f7a4a; background: #e6f7ee; }
.tag--extern  { color: #8a5a0b; background: #fdf3e2; }

/* ---------- Highlight Modellbautag ---------- */
.card--highlight {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: flex-start;
    color: #fff; border: 0;
    background:
        radial-gradient(320px 220px at 100% 0%, rgba(255, 255, 255, .22), transparent 60%),
        linear-gradient(150deg, var(--accent) 0%, var(--accent-ink) 55%, var(--navy) 100%);
    box-shadow: 0 12px 30px rgba(var(--accent-rgb), .30);
}
.card--highlight__eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    background: rgba(255, 255, 255, .16);
}
.card--highlight h3 { margin: 14px 0 6px; font-size: 24px; font-weight: 800; }
.card--highlight p { margin: 0 0 16px; color: rgba(255, 255, 255, .88); font-size: 14px; }
.hl-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.hl-list i { width: 18px; margin-right: 6px; opacity: .85; }
.card--highlight .btn { margin-top: auto; position: relative; z-index: 1; }
.card--highlight__deco { position: absolute; right: -20px; bottom: -24px; font-size: 140px; opacity: .08; }

/* ---------- Projekte ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.project {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), box-shadow .2s;
}
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.project__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project:hover .project__img img { transform: scale(1.05); }
.project__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.project__body strong { font-size: 16px; color: var(--navy); }
.project__body .muted { font-size: 14px; line-height: 1.5; }
/* ---------- Galerie ---------- */
.gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 16px;
}
.gallery__item { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); }
.gallery__item:first-child { grid-row: span 2; }
.gallery__item:nth-child(4) { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__label {
    position: absolute; left: 12px; bottom: 12px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 600; color: var(--navy);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-sm);
}
.gallery__label i { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .facts { grid-template-columns: repeat(2, 1fr); }
    .fact:nth-child(3) { border-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--border-soft); }
    .row, .row--events { grid-template-columns: 1fr; }
    .sparten { grid-template-columns: repeat(2, 1fr); }
    .sparte { aspect-ratio: 16 / 10; }
}


@media (max-width: 640px) {
    .hero { height: auto; min-height: 460px; }
    .hero::after { background: linear-gradient(0deg, rgba(var(--deep-rgb), .88) 0%, rgba(var(--deep-rgb), .45) 60%, rgba(var(--deep-rgb), .15) 100%); }
    .hero__overlay { position: relative; min-height: 460px; justify-content: flex-end; padding: 24px 24px 72px; }
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 15px; }
    .hero__controls { left: 24px; right: auto; bottom: 20px; }

    .facts { grid-template-columns: 1fr; margin: 16px 0 0; }
    .fact + .fact { border-left: 0; border-top: 1px solid var(--border-soft); }
    .fact { padding: 14px 16px; }

    .section { margin-top: 36px; }
    .section__head h2 { font-size: 22px; }
    .section__head { align-items: flex-start; flex-direction: column; gap: 6px; }

    .sparten { grid-template-columns: 1fr 1fr; gap: 12px; }
    .sparte { aspect-ratio: 3 / 4; }
    .sparte__body { padding: 12px; }
    .sparte__body > span:last-child { display: none; }
    .sparte strong { font-size: 16px; }

    .card { padding: 18px; }
    .card--flush { padding: 4px; }
    .treffs { grid-template-columns: 1fr; }
    .datebig { padding: 16px; gap: 14px; }
    .datebig__cal { width: 76px; }
    .datebig__d { font-size: 30px; }

    .event { padding: 12px; gap: 12px; align-items: flex-start; }
    .event .tag, .event__arrow { display: none; }
    .event__meta span:last-child { display: none; }

    .projects { grid-template-columns: 1fr; }

    .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 130px 130px; gap: 12px; }
    .gallery__item:first-child { grid-row: auto; grid-column: span 2; }
    .gallery__item:nth-child(4) { grid-column: span 2; }

}

@media (prefers-reduced-motion: reduce) {
    .hero__img { transition: opacity .3s; transform: none !important; }
    .sparte img, .project__img img, .gallery__item img { transition: none; }
}

/* ---------- Daten-Zustände ---------- */
.badge--muted { color: var(--text-muted); border-color: var(--border); }
.datebig__place { font-size: 14px; font-weight: 600; color: var(--navy); }
.datebig__place i { color: var(--accent); margin-right: 4px; }
.hl-motto { margin: -2px 0 8px !important; font-style: italic; color: #fff !important; }




.project__img--empty { display: grid; place-items: center; font-size: 34px; color: var(--accent); background: linear-gradient(135deg, var(--accent-50), var(--accent-25)); }

.gallery__label em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; color: var(--accent-ink); background: var(--accent-50); }
.gallery--1 { grid-template-columns: 1fr; grid-template-rows: 320px; }
.gallery--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 300px; }
.gallery--3 { grid-template-columns: 2fr 1fr; }
.gallery--1 .gallery__item, .gallery--2 .gallery__item { grid-row: auto !important; grid-column: auto !important; }

/* Terminkarte: füllt die Höhe, "Regelmäßig"-Block bei wenigen Terminen */
.card--events { display: flex; flex-direction: column; }
.events__more {
    flex: 1;
    display: flex; flex-direction: column; justify-content: center; gap: 10px;
    margin: 6px; padding: 18px 20px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent-50), var(--accent-25));
    border: 1px dashed var(--accent-100);
}
.events__more-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.events__more-title i { margin-right: 6px; }
.events__regular { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--text-muted); }
.events__regular strong { color: var(--navy); margin-right: 4px; }
.events__more .section__link { align-self: flex-start; }
.project__img--wide img { object-position: center 40%; }
.project__img { position: relative; }
.project__icon { display: none; }
.project__img--empty .project__icon { display: block; }

/* "Regelmäßig"-Block: großes, blasses Kalender-Symbol statt leerer Fläche */
.events__more { position: relative; overflow: hidden; }
.events__more::after {
    content: '\f073'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; right: 24px; bottom: -18px;
    font-size: 150px; line-height: 1; color: var(--accent); opacity: .08;
    pointer-events: none;
}
.events__more > * { position: relative; z-index: 1; }
