/* Öffentliche Website im Stil von gruene.de (Farben, PT Sans, Pillen-Buttons, Karten).
   Wird nur auf Seiten mit [PublicPage] geladen (siehe App.razor); Gazelle selbst nutzt app.css. */

:root {
    --color-primary: #005437;
    --color-primary-dark: #00432C;
    --color-primary-darkest: #002216;
    --color-accent-yellow: #FFF17A;
    --color-accent-soft-green: #99D0B0;
    /* Weitere Farben aus dem Grünen-Farbraum: Sand als Grundton der Seite, Klee und Grashalm als Akzente */
    --color-sand: #F5F1E9;
    --color-klee: #008939;
    --color-grashalm: #8ABD24;
    --color-alert: #E34545;
    --color-focus: #0BA1DD;
    --color-border: #E8EAEA;
    --color-bg-light: #F3F4F6;
    --color-text-primary: #111827;
    --color-text-secondary: #374151;
    --color-text-muted: #6B7280;

    --font-family-base: 'PT Sans', system-ui, sans-serif;
    --container-inner: 1096px;
    --radius-pill: 9999px;
    --radius-md: .5rem;
    --shadow-card: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --shadow-card-lg: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
    --shadow-subtle: 0 10px 40px rgba(0,0,0,.06);
    --transition-fast: 150ms cubic-bezier(.4, 0, .2, 1);
    --transition-base: 300ms cubic-bezier(.4, 0, .2, 1);

    /* Akzentfarbe der gemeinsamen Inhalts-Bausteine (content.css) */
    --content-accent: var(--color-primary);
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
    margin: 0; font-family: var(--font-family-base); font-size: 1.0625rem; line-height: 1.6;
    color: var(--color-text-primary); background: var(--color-sand);
    min-height: 100vh; display: flex; flex-direction: column;
}
.web-main { flex: 1 0 auto; padding-bottom: 4rem; }
/* Endet die Seite mit einem Farbband (Startseite), schließt die Fußzeile direkt an. */
.web-main:has(> .web-band:last-child) { padding-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--font-family-base); font-weight: 700; color: var(--color-primary-darkest); line-height: 1.2; }
img { max-width: 100%; }
a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 4px; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-dark); text-decoration: none; }
*:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.web-container { width: 100%; max-width: var(--container-inner); margin: 0 auto; padding: 0 1rem; }
.web-narrow { max-width: 820px; }

.skip-link { position: absolute; left: -9999px; top: 1rem; z-index: 100; background: var(--color-primary); color: #fff;
    padding: .5rem 1rem; border-radius: .25rem; }
.skip-link:focus { left: 1rem; color: #fff; }

/* ---------- Kopf: Leiste oben, Logo, Hauptmenü ---------- */
.web-topbar { background: var(--color-primary-darkest); color: var(--color-accent-soft-green); font-size: .85rem; }
.web-topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.web-social { display: flex; gap: .75rem; }
.web-social a { color: var(--color-accent-soft-green); display: inline-flex; }
.web-social a:hover { color: var(--color-accent-yellow); }
.web-social svg { width: 18px; height: 18px; fill: currentColor; }

.web-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: var(--shadow-subtle); }
.web-header-inner { display: flex; align-items: stretch; min-height: 84px; }
.web-logo { display: flex; align-items: center; flex: 0 0 auto; padding: 8px 0; }
.web-logo img { display: block; height: 68px; width: auto; }

/* Bildband über dem Menü (Organisation:WebsiteHeaderImages): Foto, großes Logo, Farbkästen. Das Menü darunter bleibt beim
   Scrollen stehen, das Band scrollt weg. Auf der Startseite ist das Band höher. */
.web-masthead { position: relative; overflow: hidden; background: var(--color-primary); }
.web-masthead-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.web-masthead::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(0,34,22,.30), rgba(0,34,22,0) 35%, rgba(0,34,22,0) 60%, rgba(0,34,22,.35)); }
.web-masthead-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: clamp(140px, 11vw, 190px); padding-top: 16px; padding-bottom: 16px; }
.web-masthead-start .web-masthead-inner { min-height: clamp(200px, 15vw, 280px); padding-top: 22px; padding-bottom: 22px; }
.web-masthead-logo img { display: block; height: 108px; width: auto; box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.web-masthead-start .web-masthead-logo img { height: 156px; }
.web-masthead-title { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.web-masthead-title span { background: var(--color-primary); color: #fff; font-weight: 700; font-size: 1.6rem; line-height: 1.1;
    padding: .12em .45em; text-transform: uppercase; letter-spacing: .02em; }
.web-masthead-title span:nth-child(even) { background: var(--color-accent-yellow); color: var(--color-primary-darkest); }
.web-masthead-start .web-masthead-title span { font-size: 2.1rem; }
.web-header-below .web-header-inner { min-height: 60px; }
.web-header-below .web-nav { margin-left: -1rem; } /* ohne Logo davor: Menütext bündig mit dem Logo im Band */
.web-header-name { display: none; }

.web-nav { margin-left: auto; display: flex; }
.web-nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.web-nav-list > li { position: relative; display: flex; }
.web-nav-item {
    display: flex; align-items: center; padding: 0 1rem; font-size: 1.0625rem; font-weight: 700;
    color: var(--color-text-primary); text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}
.web-nav-group > .web-nav-item::after { content: ""; width: .45em; height: .45em; margin-left: .45em; margin-top: -.2em;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.web-nav-item:hover, .web-nav-group:hover > .web-nav-item, .web-nav-group:focus-within > .web-nav-item {
    background: var(--color-primary); color: #fff; }
.web-nav-item.active, .web-nav-group.active > .web-nav-item { box-shadow: inset 0 -4px 0 var(--color-primary); }

.web-sub { list-style: none; margin: 0; padding: .5rem 0; position: absolute; top: 100%; left: 0; min-width: 230px;
    background: #fff; box-shadow: var(--shadow-card-lg); border-top: 4px solid var(--color-primary);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast); }
.web-nav-group:hover > .web-sub, .web-nav-group:focus-within > .web-sub { opacity: 1; visibility: visible; transform: none; }
.web-sub a { display: block; padding: .55rem 1.25rem; color: var(--color-text-primary); text-decoration: none; font-weight: 700; }
.web-sub a:hover, .web-sub a.active { background: var(--color-bg-light); color: var(--color-primary); }

/* Handy-Menü: Checkbox + Label als Schalter (ohne JavaScript) */
.web-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.web-nav-burger { display: none; margin-left: auto; align-self: center; width: 46px; height: 46px; border-radius: var(--radius-pill);
    cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: var(--color-primary); }
.web-nav-burger span { display: block; width: 20px; height: 2px; background: #fff; transition: transform var(--transition-fast), opacity var(--transition-fast); }
.web-nav-toggle:focus-visible + .web-nav-burger { outline: 2px solid var(--color-focus); outline-offset: 2px; }

@media (max-width: 1000px) {
    .web-header-inner { flex-wrap: wrap; min-height: 72px; }
    .web-logo img { height: 56px; }
    .web-nav-burger { display: flex; }
    .web-nav { display: none; flex-basis: 100%; margin: 0 -1rem; padding: .25rem 0 1rem; border-top: 1px solid var(--color-border); }
    .web-nav-toggle:checked ~ .web-nav { display: block; }
    .web-nav-toggle:checked + .web-nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .web-nav-toggle:checked + .web-nav-burger span:nth-child(2) { opacity: 0; }
    .web-nav-toggle:checked + .web-nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .web-nav-list { flex-direction: column; }
    .web-nav-list > li { display: block; }
    .web-nav-item { padding: .7rem 1rem; }
    .web-nav-group > .web-nav-item { cursor: default; }
    .web-nav-group > .web-nav-item::after { display: none; }
    .web-nav-item:hover, .web-nav-group:hover > .web-nav-item, .web-nav-group:focus-within > .web-nav-item { background: none; color: var(--color-text-primary); }
    .web-nav-item.active, .web-nav-group.active > .web-nav-item { box-shadow: inset 4px 0 0 var(--color-primary); }
    .web-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .25rem; }
    .web-sub a { padding: .45rem 1rem .45rem 2rem; font-weight: 400; }
}

@media (max-width: 640px) {
    .web-masthead-inner { min-height: 100px; padding-top: 12px; padding-bottom: 12px; }
    .web-masthead-start .web-masthead-inner { min-height: 130px; padding-top: 14px; padding-bottom: 14px; }
    .web-masthead-logo img { height: 72px; }
    .web-masthead-start .web-masthead-logo img { height: 96px; }
    /* Kästen passen nicht mehr neben das Logo – der Name steht dann einzeilig in der Menüleiste. */
    .web-masthead-title { display: none; }
    .web-header-name { display: flex; align-items: center; font-weight: 700; font-size: 1.1rem;
        color: var(--color-primary-darkest); text-decoration: none; }
}

/* ---------- Seitenkopf: Brotkrumen, Titel im „Balken"-Stil, Banner ---------- */
.web-crumbs { font-size: .875rem; color: var(--color-text-muted); margin: 1.25rem 0 0; }
.web-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.web-crumbs li + li::before { content: "›"; margin-right: .25rem; color: var(--color-text-muted); }
.web-crumbs a { color: var(--color-text-muted); }
.web-crumbs a:hover { color: var(--color-primary); }

.web-page-head { margin: 1.25rem 0 1.75rem; }
.web-title { margin: 0; font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.45; }
.web-title span { background: var(--color-primary); color: #fff; padding: .05em .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.web-lead { font-size: 1.2rem; color: var(--color-text-secondary); max-width: 720px; margin: .75rem 0 0; }

.web-banner { margin: 1.25rem 0 0; }
.web-banner img { display: block; width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius-md); }

.web-section { margin: 2.5rem 0 3.5rem; }
.web-section-title { font-size: 1.75rem; margin: 0 0 1.25rem; }
.web-section-title::after { content: ""; display: block; width: 56px; height: 4px; margin-top: .4rem; background: var(--color-grashalm); }

/* ---------- Farbbänder der Startseite: Abschnitte über die volle Breite ---------- */
.web-band { padding: 2.75rem 0 3rem; }
.web-band .web-actions { margin-bottom: 0; }
.web-band-tanne { background: var(--color-primary); color: #fff; }
.web-band-tanne .web-section-title { color: #fff; }
.web-band-tanne .web-section-title::after { background: var(--color-accent-yellow); }
.web-band-tanne .web-btn.secondary { color: #fff; border-color: #fff; }
.web-band-tanne .web-btn.secondary:hover { background: var(--color-accent-yellow); border-color: var(--color-accent-yellow); color: var(--color-primary-darkest); }
.web-band-tanne .web-event { border-color: transparent; }
/* „Aus der Region" (hellgrün) – grenzt die fremden Beiträge sichtbar von den eigenen Meldungen auf Sand ab */
.web-band-mint { background: #e6f2eb; }

/* Mitmachen-Band (gelb) mit Handlungsaufruf */
.web-band-cta { background: var(--color-accent-yellow); color: var(--color-primary-darkest); padding: 2.25rem 0; }
.web-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 2.5rem; flex-wrap: wrap; }
.web-cta-text { flex: 1 1 380px; }
.web-cta-title { margin: 0 0 .35rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.web-cta-text p { margin: 0; font-size: 1.1rem; max-width: 620px; }
.web-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.web-band-cta .web-btn:hover { background: var(--color-primary-darkest); border-color: var(--color-primary-darkest); color: #fff; }
.web-band-cta .web-btn.secondary:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.web-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.web-article { margin-top: 1.5rem; }
.web-draft-note { margin: 1.25rem 0 0; padding: .75rem 1rem; border-radius: var(--radius-md); background: var(--color-accent-yellow);
    color: var(--color-primary-darkest); font-weight: 700; }

/* Beiträge und Textseiten auf der Website: ohne Gazelle-Kartenrahmen, Website-Schrift */
.web-main .news-article { max-width: none; background: none; box-shadow: none; padding: 0; border-radius: 0; color: var(--color-text-primary); line-height: 1.65; }
.web-main .news-article .news-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: .35rem; }
.web-main .news-article .news-date { color: var(--color-text-muted); }
.web-main .news-article .news-teaser { font-size: 1.15rem; font-weight: 700; color: var(--color-text-secondary); }
.web-main .news-article .news-title-img { max-height: 520px; border-radius: var(--radius-md); }
.web-main .news-body h2 { font-size: 1.6rem; }
.web-main .news-body h3 { font-size: 1.3rem; }

/* ---------- Buttons ---------- */
.web-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .625rem 1.5rem;
    border-radius: var(--radius-pill); border: 2px solid var(--color-primary); background: var(--color-primary); color: #fff;
    font: 700 1rem/1.6 var(--font-family-base); text-decoration: none; cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast); }
.web-btn:hover { background: var(--color-accent-yellow); border-color: var(--color-accent-yellow); color: var(--color-primary-darkest); transform: translateY(-1px); }
.web-btn.secondary { background: transparent; color: var(--color-primary); }
.web-btn.secondary:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.web-btn.small { padding: .375rem 1rem; font-size: .875rem; }
.web-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0; }

/* ---------- Startseite: angeheftete Meldungen ---------- */
.web-top { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; margin: 2rem 0 1rem; }
.web-top-side { display: grid; gap: 1.5rem; align-content: start; }
.web-top-side:empty { display: none; }
.web-top.single { grid-template-columns: 1fr; }
.web-teaser { position: relative; display: block; overflow: hidden; border-radius: var(--radius-md); background: var(--color-primary);
    color: #fff; text-decoration: none; box-shadow: var(--shadow-card); min-height: 200px;
    transition: box-shadow var(--transition-base), transform var(--transition-base); }
.web-teaser:hover { box-shadow: var(--shadow-card-lg); transform: translateY(-2px); color: #fff; }
.web-teaser img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform var(--transition-base); }
.web-teaser:hover img { transform: scale(1.03); }
.web-teaser-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.25rem 1.1rem;
    background: linear-gradient(to top, rgba(0,34,22,.88), rgba(0,34,22,0)); }
/* Kleine Teaser: Text nimmt viel vom Bild ein → durchgehend abdunkeln, damit er lesbar bleibt. */
.web-teaser:not(.large):not(.noimg) .web-teaser-text { top: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 1rem;
    background: linear-gradient(to top, rgba(0,34,22,.92) 35%, rgba(0,34,22,.45)); }
.web-teaser-date { font-size: .85rem; color: var(--color-accent-soft-green); }
.web-teaser-title { margin: 0; color: #fff; font-size: 1.2rem; line-height: 1.3; }
.web-teaser.large .web-teaser-title { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.web-teaser.large .web-teaser-title span { background: var(--color-accent-yellow); color: var(--color-primary-darkest); padding: .05em .3em;
    -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.5; }
.web-teaser.noimg { background: var(--color-primary) url("../img/Logo.png") no-repeat right -40px top -40px / 220px; }
.web-teaser.noimg .web-teaser-text { position: static; background: none; padding-top: 5rem; }

/* ---------- Meldungskarten (Liste) ---------- */
.web-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.web-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
    overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-base), transform var(--transition-base); }
.web-card:hover { box-shadow: var(--shadow-card-lg); transform: translateY(-2px); color: inherit; }
.web-card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--color-bg-light); }
.web-card-img.empty { background: #e6f2eb url("../img/Logo.png") no-repeat center / 96px; }
.web-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.5rem 1.5rem; }
.web-card-date { font-size: .875rem; color: var(--color-text-muted); margin-bottom: .35rem; }
.web-card-title { margin: 0 0 .6rem; font-size: 1.25rem; line-height: 1.3; }
.web-card-teaser { margin: 0 0 1rem; color: var(--color-text-secondary); font-size: 1rem;
    display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.web-card-more { margin-top: auto; font-weight: 700; color: var(--color-primary); }
.web-card:hover .web-card-more { text-decoration: underline; text-underline-offset: 4px; }
.web-empty { color: var(--color-text-muted); }

/* Karten „Aus der Region": Quelle vor dem Datum; Platzhalter ohne Bild etwas dunkler als das hellgrüne Band – mit einer
   Zeitungsseite statt dem Logo des Ortsverbands (der Beitrag stammt von einer anderen Gliederung) */
.web-card-source { font-weight: 700; color: var(--color-klee); }
.web-cards-ext .web-card-img.empty { background: #d3eadb url("../img/region-platzhalter.svg") no-repeat center / auto 72%; }

/* Filter nach Ebene (Alle / Nachbarschaft / Region / Land) */
.web-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; }
.web-filter a { padding: .35rem 1rem; border-radius: var(--radius-pill); border: 2px solid var(--color-primary); color: var(--color-primary);
    font-weight: 700; text-decoration: none; background: #fff; }
.web-filter a:hover { background: var(--color-accent-yellow); border-color: var(--color-accent-yellow); color: var(--color-primary-darkest); }
.web-filter a.active { background: var(--color-primary); color: #fff; }

/* Linkliste der Quellen unter „Aus der Region" */
.web-region-links { margin: 3.5rem 0 1rem; }
.web-region-link-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem 2rem; }
.web-region-link-groups h3 { font-size: 1.05rem; margin: 0 0 .5rem; color: var(--color-primary); }
.web-region-link-groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.web-region-link-groups a { font-weight: 700; }

/* Seitenwechsel */
.web-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.web-pager a, .web-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem;
    padding: 0 .75rem; border-radius: var(--radius-pill); border: 2px solid var(--color-primary); font-weight: 700; text-decoration: none; }
.web-pager a { color: var(--color-primary); }
.web-pager a:hover { background: var(--color-primary); color: #fff; }
.web-pager .current { background: var(--color-primary); color: #fff; }
.web-pager .gap { border-color: transparent; color: var(--color-text-muted); min-width: auto; padding: 0 .25rem; }

/* ---------- Grüne Köpfe ---------- */
.web-main .person-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 1.5rem; }
.web-main .person-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 1.25rem; line-height: 1.5; }
.web-main .person-photo { width: 150px; height: 150px; margin-right: 1.25rem; border-radius: var(--radius-md); }
.web-main .person-name { font-size: 1.2rem; color: var(--color-primary-darkest); }
.web-main .person-function { font-size: .9rem; color: var(--color-primary); }
.web-main .person-bio { font-size: .95rem; color: var(--color-text-secondary); }
.web-main .person-email { font-size: .9rem; }
.web-subgroup { font-size: 1.3rem; margin: 2rem 0 1rem; }
@media (max-width: 560px) { .web-main .person-photo { width: 110px; height: 110px; } }

/* ---------- Termine ---------- */
.web-events { display: flex; flex-direction: column; gap: 1rem; }
.web-events.compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.web-event-month { font-size: 1.3rem; margin: 1.5rem 0 .25rem; color: var(--color-primary); }
.web-event-month:first-child { margin-top: 0; }
.web-event { display: flex; gap: 1.1rem; align-items: flex-start; background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius-md); padding: 1rem 1.25rem; box-shadow: var(--shadow-card); scroll-margin-top: 110px; }
.web-event:target { outline: 3px solid var(--color-accent-yellow); }
.web-event-date { flex: 0 0 auto; width: 4.2rem; text-align: center; border-radius: var(--radius-md); overflow: hidden;
    background: var(--color-primary); color: #fff; line-height: 1.1; padding: .5rem 0 .45rem; border-top: 5px solid var(--event-color, var(--color-accent-yellow)); }
.web-event-date .d { display: block; font-size: 1.7rem; font-weight: 700; }
.web-event-date .m { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.web-event-body { min-width: 0; }
.web-event-meta { font-size: .875rem; color: var(--color-text-muted); }
.web-event-title { margin: .15rem 0 .25rem; font-size: 1.2rem; line-height: 1.3; }
.web-event-title a { text-decoration: none; color: var(--color-primary-darkest); }
.web-event-title a:hover { color: var(--color-primary); text-decoration: underline; }
.web-event-loc { font-size: .95rem; color: var(--color-text-secondary); }
.web-event-desc { white-space: pre-wrap; margin: .5rem 0 0; color: var(--color-text-secondary); font-size: 1rem; }

/* ---------- Suche ---------- */
.web-search { display: flex; align-items: center; }
.web-search input { width: 11rem; font: inherit; font-size: .85rem; padding: .2rem .7rem; border-radius: var(--radius-pill);
    border: 1px solid var(--color-primary-dark); background: rgba(255,255,255,.08); color: #fff; }
.web-search input::placeholder { color: var(--color-accent-soft-green); }
.web-search input:focus { outline: 2px solid var(--color-accent-yellow); background: rgba(255,255,255,.15); }
.web-topbar-tools { display: flex; align-items: center; gap: 1rem; }
.web-search-page form { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.web-search-page input[type=search] { flex: 1; font: inherit; padding: .6rem 1rem; border: 2px solid #c9d1cf; border-radius: var(--radius-pill); background: #fff; }
.web-search-page input[type=search]:focus { outline: none; border-color: var(--color-primary); }
.web-results { list-style: none; margin: 0; padding: 0; }
.web-results li { padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.web-result-kind { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: var(--color-primary); margin-right: .5rem; }
.web-result-title { font-size: 1.15rem; font-weight: 700; }
.web-result-text { margin: .25rem 0 0; color: var(--color-text-secondary); font-size: .95rem; }
@media (max-width: 480px) { .web-search input { width: 7.5rem; } }
/* Viele Social-Media-Kanäle: Leiste oben darf umbrechen (Name links, Suche und Symbole rechts, Symbole ggf. in eine zweite Zeile). */
@media (max-width: 640px) {
    .web-topbar-inner { flex-wrap: wrap; gap: .35rem .75rem; padding-top: .35rem; padding-bottom: .35rem; }
    .web-topbar-tools { flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: .4rem .75rem; }
    .web-social { flex-wrap: wrap; justify-content: flex-end; gap: .55rem .7rem; }
}

/* ---------- Formulare (Kontakt, Spende) ---------- */
.web-form-wrap { margin: 1.5rem 0 2rem; scroll-margin-top: 110px; }
.web-form { background: #fff; border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--shadow-card); }
.web-form h3 { margin: 0 0 1rem; font-size: 1.35rem; }
.web-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.web-span-2 { grid-column: 1 / -1; }
.web-field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.web-field label { font-weight: 700; font-size: .95rem; margin-bottom: .3rem; color: var(--color-primary-darkest); }
.web-form input:not([type=checkbox]):not([type=radio]), .web-form select, .web-form textarea {
    font: inherit; font-size: 1rem; padding: .6rem .75rem; border: 2px solid #c9d1cf; border-radius: .375rem; background: #fff;
    color: var(--color-text-primary); width: 100%; transition: border-color var(--transition-fast); }
.web-form input:focus, .web-form select:focus, .web-form textarea:focus { outline: none; border-color: var(--color-primary); }
.web-form textarea { resize: vertical; min-height: 9rem; }
.web-form .invalid { border-color: var(--color-alert) !important; }
.web-form .validation-message { color: var(--color-alert); font-size: .875rem; margin-top: .25rem; font-weight: 700; }
.web-check { display: flex; gap: .6rem; align-items: flex-start; margin: .5rem 0; font-size: .95rem; line-height: 1.45; cursor: pointer; }
.web-check input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; flex: 0 0 auto; accent-color: var(--color-primary); }
.web-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.25rem; }
.web-choice { display: flex; gap: .6rem; align-items: flex-start; padding: .9rem 1rem; background: #fff; border: 2px solid #c9d1cf;
    border-radius: var(--radius-md); cursor: pointer; line-height: 1.4; transition: border-color var(--transition-fast); }
.web-choice input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: 0 0 auto; accent-color: var(--color-primary); }
.web-choice:has(input:checked) { border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); }
.web-form-success { padding: 1.1rem 1.25rem; border-radius: var(--radius-md); background: #e6f2eb; border-left: 6px solid var(--color-primary);
    color: var(--color-primary-darkest); }
.web-form-success > strong:first-child { display: block; font-size: 1.15rem; margin-bottom: .25rem; }
.web-form-error { padding: .8rem 1rem; border-radius: var(--radius-md); background: #fdecec; border-left: 6px solid var(--color-alert);
    margin-bottom: 1rem; font-weight: 700; }
.web-hint { font-size: .9rem; color: var(--color-text-muted); }
.web-mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .02em; }
/* Verstecktes Spamschutz-Feld: für Menschen unsichtbar, für Bots ein normales Eingabefeld. */
.web-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Spende: Bankverbindung, Lastschrift-Bereich; die Felder wechseln je nach gewählter Option (ohne JavaScript). */
.web-bank-box { border: 2px solid var(--color-primary); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; background: #fff; }
.web-bank-box h3 { margin: 0 0 .5rem; }
.web-bank-box dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.25rem; margin: .75rem 0; }
.web-bank-box dt { font-weight: 700; color: var(--color-text-muted); }
.web-bank-box dd { margin: 0; font-weight: 700; }
.web-sepa { border: 0; padding: 0; margin: .5rem 0 1rem; }
.web-sepa legend { font-weight: 700; font-size: 1.1rem; color: var(--color-primary-darkest); margin-bottom: .75rem; }
.web-mandate { background: var(--color-sand); border-radius: .375rem; padding: .9rem 1.1rem; font-size: .9rem; color: var(--color-text-secondary); margin-bottom: .75rem; }
.web-mandate p { margin: 0 0 .5rem; }
.donation-form:has(input[value="Lastschrift"]:checked) .only-transfer { display: none; }
.donation-form:not(:has(input[value="Lastschrift"]:checked)) .only-sepa { display: none; }
@media (max-width: 640px) {
    .web-form { padding: 1.1rem; }
    .web-bank-box { padding: 1rem 1.1rem; }
    .web-bank-box dl { grid-template-columns: 1fr; gap: 0; }
    .web-bank-box dd { margin-bottom: .5rem; }
    .web-form-grid, .web-choices { grid-template-columns: 1fr; }
}

/* ---------- Fußzeile ---------- */
.web-footer { background: var(--color-primary-darkest); color: #fff; padding: 2.5rem 0 2rem; }
.web-footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem 2rem; align-items: center; }
.web-footer-name { display: flex; align-items: center; gap: .9rem; font-weight: 700; }
.web-footer-name img { width: 48px; height: 48px; }
.web-footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.web-footer a { color: var(--color-accent-soft-green); font-weight: 700; }
.web-footer a:hover { color: var(--color-accent-yellow); }
.web-footer-copy { grid-column: 1 / -1; border-top: 1px solid var(--color-primary-dark); padding-top: 1.25rem; color: var(--color-accent-soft-green); font-size: .875rem; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 820px) {
    .web-top { grid-template-columns: 1fr; }
    .web-footer-inner { grid-template-columns: 1fr; }
    .web-section { margin: 2rem 0 2.5rem; }
    .web-band { padding: 2rem 0 2.25rem; }
    .web-band-cta { padding: 1.75rem 0; }
    /* Startseite am Handy: nur die ersten drei Beiträge aus der Region, der Rest über „Mehr aus der Region" */
    .web-band-mint .web-card:nth-child(n+4) { display: none; }
}
@media (max-width: 480px) {
    .web-topbar-inner > span:first-child { font-size: .8rem; }
    .web-cards { grid-template-columns: 1fr; }
}

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