/* Offenes Dorf — DGM CI; loaded after site.css and events.css. */
:root { --blue:#002060; --orange:#ff9933; --ink:#182742; }
body { background:#fff; font:400 1.125rem/1.6 system-ui,-apple-system,"Segoe UI",sans-serif; }
.shell { width:100%; max-width:100rem; padding-inline:clamp(1rem,3vw,3rem); }
.site-header { background:#fff; border-bottom:2px solid var(--orange); box-shadow:none; }
.site-header .header-inner { max-width:100rem; margin-inline:auto; padding:.8rem clamp(1rem,3vw,3rem); align-items:center; min-height:6.5rem; }
.site-header .brand { max-width:19rem; }
.site-header .brand img { max-height:5rem; width:auto; }
.main-nav a { font-size:1rem; font-weight:650; white-space:normal; }
.main-nav .nav-submenu { border-top:3px solid var(--orange); border-radius:0 0 .5rem .5rem; }
.page-layout { padding-top:0; }
.village-welcome { display:grid; grid-template-columns:1.05fr 1fr; gap:clamp(1.5rem,4vw,4rem); align-items:center; padding-block:clamp(2rem,4vw,4rem); }
.village-eyebrow { margin:0; font-size:.8rem; letter-spacing:.1em; text-transform:uppercase; font-weight:750; color:var(--blue); }
.village-welcome h1 { color:var(--blue); font-size:clamp(2.3rem,4vw,4.3rem); line-height:1.08; letter-spacing:-.04em; margin:1rem 0 1.25rem; }
.village-welcome p:not(.village-eyebrow) { max-width:48ch; }
.village-actions { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1.5rem; }
.village-button { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:.65rem 1rem; background:var(--blue); color:white; border:1px solid var(--blue); border-radius:.4rem; text-decoration:none; font-size:1rem; font-weight:700; }
.village-button-secondary { background:white; color:var(--blue); }
.village-photo { min-width:0; }
.village-photo .frame,.village-photo .ce-gallery,.village-photo .ce-row,.village-photo .ce-column { margin:0; float:none; width:100%; }
.village-photo img { display:block; width:100%; height:clamp(15rem,25vw,25rem); object-fit:cover; border-radius:.8rem; }
.village-photo:empty { display:none; }
.jumbotron { background:white; min-height:0; padding:1rem 0; text-align:center; }
.jumbotron:has(.frame):not(:has(img)) { padding:0; }
.jumbotron img { display:block; margin-inline:auto; }
.page-1 .jumbotron:empty { display:none; }
.content-columns,.page-1 .content-columns,.page-3 .content-columns { grid-template-columns:minmax(0,1fr) minmax(17rem,22rem); padding:0; gap:2rem; background:white; box-shadow:none; border-radius:0; margin-bottom:2rem; }
.content-columns:has(.side-content:empty) { grid-template-columns:1fr; }
.main-content,.side-content { min-width:0; }
.page-1 .main-content { gap:1.5rem; align-content:start; }
.page-1 .main-content > .frame { margin:0; padding:1.25rem; background:#f3f6fc; border-radius:.6rem; }
.page-1 .main-content > .frame h1,.page-1 .main-content > .frame h2 { font-size:clamp(1.25rem,1.6vw,1.65rem); margin:0 0 .8rem; overflow-wrap:anywhere; }
.page-1 .main-content > .frame img { width:min(100%,20rem); height:auto; aspect-ratio:4/3; object-fit:cover; border-radius:.35rem; }
.side-content,.page-1 .side-content { position:static; background:transparent; border:0; padding:0; font-size:1rem; }
.side-content > .frame,.pinned-news { padding:1.25rem; background:#f3f6fc; border-radius:.6rem; border-left:3px solid var(--orange); }
.side-content h2,.side-content h3 { font-size:1.3rem; line-height:1.3; overflow-wrap:anywhere; }
.side-content a,.main-content h1,.main-content h2,.main-content h3 { overflow-wrap:anywhere; }
.page-1 .main-content > .news-feed,.page-1 .main-content > .dgm-events { grid-column:1/-1; margin:0; padding:1.5rem 0; background:white; border:0; }
.news-feed-heading { gap:1rem; flex-wrap:wrap; }
.news-feed .news-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.news-feed .news-card { display:grid; grid-template-columns:7rem minmax(0,1fr); gap:.5rem 1rem; padding:1rem; background:#f3f6fc; border:0; border-radius:.6rem; }
.news-card .news-card-image { grid-column:1; grid-row:1/4; width:auto; margin:0; }
.news-card .news-card-image img { display:block; width:100%; height:8rem; object-fit:cover; }
.news-card h2,.news-card h3 { grid-column:2; margin:0; font-size:1.15rem; line-height:1.35; }
.news-card > p,.news-card > .news-card-link { grid-column:2; margin:0; font-size:.95rem; }
.news-card:not(:has(.news-card-image)) { grid-template-columns:1fr; }
.news-card:not(:has(.news-card-image)) > * { grid-column:1; }
.dgm-events-list,.page-1 .dgm-events-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.dgm-events-list > .dgm-event,.page-1 .dgm-events-list > .dgm-event { min-width:0; display:grid; grid-template-columns:3.75rem minmax(0,1fr); gap:.9rem; padding:1rem; background:#f3f6fc; border:0; border-radius:.6rem; }
.dgm-event-details h2,.dgm-event-details h3 { font-size:1.15rem; overflow-wrap:anywhere; }
.dgm-event-date { background:var(--blue); color:white; border-radius:.35rem; }
.dgm-events-full { max-width:none; }
.dgh-documents { padding:1.5rem 0; background:white; border-top:2px solid var(--orange); }
.site-footer { margin-top:2rem; background:var(--blue); color:white; border-top:3px solid var(--orange); }
.site-footer .shell { padding-block:1.25rem; }
.site-footer .shell span,.site-footer .shell a { font-size:.9rem; font-weight:400; }
@media(min-width:1201px) {
 .header-reserve { height:7.1rem; flex:none; }
 .site-header { position:fixed; top:0; left:0; right:0; z-index:100; }
 .site-header.is-compact .header-inner { min-height:4.5rem; padding-block:.4rem; }
 .site-header.is-compact .brand img { max-height:3.5rem; }
}
@media(max-width:1200px) {
 .header-reserve { height:auto; }
 .site-header,.site-header.is-compact { position:static; }
 .content-columns,.page-1 .content-columns,.page-3 .content-columns { grid-template-columns:1fr; }
 .side-content { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
 .side-content > .frame { margin:0; }
}
@media(max-width:700px) {
 .village-welcome { grid-template-columns:1fr; padding-block:1.75rem; gap:1.25rem; }
 .village-photo img { height:15rem; }
 .site-header .brand { max-width:calc(100% - 7rem); }
 .site-header .header-inner { min-height:0; gap:.75rem; }
 .site-header .brand img { max-height:4rem; }
 .page-1 .main-content,.side-content,.news-feed .news-cards,.dgm-events-list,.page-1 .dgm-events-list { grid-template-columns:1fr; }
 .news-feed .news-card { grid-template-columns:5.5rem minmax(0,1fr); }
 .news-card .news-card-image img { height:7rem; }
 .news-feed-heading h2 { font-size:1.6rem; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; } }

/* Keep the existing banner and make anchor targets clear of the fixed header. */
.site-footer a { color:inherit; }
.skip-link { z-index:101; }
.village-welcome:has(.village-photo:empty) { grid-template-columns:1fr; }
@media(min-width:1201px) { html { scroll-padding-top:8rem; } }
