:root{--blue:#002060;--orange:#ff9933;--ink:#182742}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font:400 1.1rem/1.65 system-ui,-apple-system,"Segoe UI",sans-serif;background:#f6f5ee url('/fileadmin/images/19-01-hintergrund-50.jpg') center top/cover fixed no-repeat}a{color:var(--blue)}a:focus-visible{outline:4px solid #b34515;outline-offset:3px}.shell{width:min(100% - 2rem,74rem);margin-inline:auto}.skip-link{position:absolute;top:-6rem;left:1rem;z-index:10;background:white;padding:.6rem 1rem;font-weight:700}.skip-link:focus{top:1rem}.site-header{background:white;border-bottom:4px solid var(--orange);box-shadow:0 2px 12px #00206018}.header-inner{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;min-height:7.5rem;flex-wrap:wrap;padding-block:.75rem}.brand{display:inline-flex;align-items:center;max-width:min(100%,23rem);font-size:1.25rem;font-weight:800;text-decoration:none}.brand img{max-width:100%;max-height:7rem;object-fit:contain}.brand span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.main-nav ul{display:flex;flex-wrap:wrap;list-style:none;gap:.35rem 1.2rem;padding:0;margin:0}.main-nav a{display:inline-block;padding:.45rem .1rem;font-weight:750;text-decoration:none}.main-nav a:hover,.main-nav a.current{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:.25rem}.page-layout{min-height:65vh}.jumbotron{min-height:clamp(9rem,24vw,20rem);padding:2rem 1rem;color:var(--blue);display:grid;align-content:end}.jumbotron img{max-width:100%;height:auto}.content-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(13rem,1fr);gap:1.5rem;background:rgba(255,255,255,.94);padding:clamp(1rem,3vw,2.25rem);border-radius:.45rem;box-shadow:0 5px 28px #00206019;margin-bottom:2rem}.main-content,.side-content{min-width:0}.side-content{background:#ffff3318;padding:1rem;border-left:4px solid var(--orange)}.side-content:empty{display:none}.content-columns:has(.side-content:empty){grid-template-columns:1fr}.main-content img,.side-content img{max-width:100%;height:auto}.main-content h1,.main-content h2,.side-content h2{line-height:1.25;color:var(--blue)}.main-content a,.side-content a{text-decoration-thickness:2px;text-underline-offset:.15em}.site-footer{background:#ffff33eb;color:var(--blue);border-top:3px solid var(--orange)}.site-footer .shell{display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem;padding-block:1.2rem}.site-footer a{font-weight:700}.frame{margin-bottom:1.5rem}@media(max-width:800px){body{background-attachment:scroll}.header-inner{min-height:auto}.main-nav{width:100%}.content-columns{grid-template-columns:1fr}.side-content{border-left:0;border-top:4px solid var(--orange)}.jumbotron{min-height:11rem}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.page-layout {
  flex: 1;
}
.site-header .header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: .5rem 1rem;
  align-items: flex-start;
  min-height: 0;
}
.shell {
  width: 100%;
  max-width: none;
  padding-inline: clamp(1rem, 2vw, 2rem);
}
.site-header .header-inner {
  padding-inline: clamp(1rem, 2vw, 2rem);
}
/* Startseite: die beiden übernommenen Bildkacheln */
.page-1 .main-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}
.page-1 .main-content > * {
  min-width: 0;
  margin: 0;
}
.page-1 .main-content figure,
.page-1 .main-content .ce-gallery {
  margin: 0;
}
.page-1 .main-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (max-width: 700px) {
  .page-1 .main-content {
    grid-template-columns: 1fr;
  }
}
/* Kleines Hausbild nicht künstlich vergrößern */
.page-1 .main-content > :nth-child(2) img {
  width: auto;
  height: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}
.page-1 .main-content > :nth-child(2) img {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.side-content {
  background: transparent;
  border: 0;
  padding: 0;
}
.side-content > * {
  background: #fffde9;
  border-left: 4px solid var(--orange);
  border-radius: .35rem;
  padding: clamp(1rem, 2vw, 1.5rem);
}
.side-content > * + * {
  margin-top: 1rem;
}
.side-content h2,
.side-content h3 {
  margin-top: 0;
}
.news-feed {
  margin: 0 0 2rem;
  padding: clamp(1rem, 2vw, 2rem);
  background: rgba(255, 255, 255, .96);
  border-radius: .45rem;
}
.news-feed-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.news-feed h1,
.news-feed h2 {
  color: var(--blue);
  margin-top: 0;
}
.news-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}
.news-card {
  padding: 1.25rem;
  background: #fffde9;
  border-top: 4px solid var(--orange);
  border-radius: .3rem;
}
.news-card h2,
.news-card h3 {
  margin: 0 0 .75rem;
  line-height: 1.25;
}
.news-card-link {
  font-weight: 700;
}
.page-4 .content-columns {
  display: none;
}
.news-card-image {
  display: block;
  height: 12rem;
  margin: -1.25rem -1.25rem 1rem;
  background: #f4f1e7;
  overflow: hidden;
}
.news-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.news-card-image {
  display: block;
  height: 12rem;
  margin: -1.25rem -1.25rem 1rem;
  background: #f4f1e7;
  overflow: hidden;
}
.news-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Kompakte Beitragskarten statt vollbreiter Plakatfläche */
.news-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.news-card {
  flex: 0 1 36rem;
  min-width: 0;
}
.news-card:has(.news-card-image) {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: .4rem 1rem;
  align-content: start;
}
.news-card-image {
  grid-row: 1 / span 3;
  height: 13rem;
  margin: 0;
  border-radius: .25rem;
}
.news-card h2,
.news-card h3 {
  margin: 0;
}
.news-card p {
  margin: .25rem 0;
}
@media (max-width: 550px) {
  .news-card:has(.news-card-image) {
    grid-template-columns: 1fr;
  }
  .news-card-image {
    grid-row: auto;
    height: 12rem;
  }
}
/* Feed in der linken Spalte, Infospalte bleibt beim Scrollen sichtbar */
.page-1 .main-content > .news-feed {
  grid-column: 1 / -1;
  margin: 0;
}
.page-1 .side-content {
  position: sticky;
  top: 1rem;
  align-self: start;
}
@media (max-width: 800px) {
  .page-1 .side-content {
    position: static;
  }
}
/* Leeren Kopfbereich ohne Slider nicht reservieren */
.jumbotron:empty {
  display: none;
}
.page-layout {
  padding-top: 5px;
}
.page-layout {
  padding-top: 10px;
}
.page-layout {
  padding-bottom: 10px;
}
.content-columns,
.page-layout > .news-feed {
  margin-bottom: 0;
}
@media (min-width: 801px) {
  .side-content {
    position: sticky;
    top: 1rem;
    align-self: start;
  }
}

/* Grundrisse und andere Galerien mit drei Bildern */
.ce-gallery[data-ce-columns="3"] .ce-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.ce-gallery[data-ce-columns="3"] .ce-column {
  min-width: 0;
}
.ce-gallery[data-ce-columns="3"] img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 480px) {
  .ce-gallery[data-ce-columns="3"] .ce-row {
    grid-template-columns: 1fr;
  }
}

/* Aufklappbare DGH-Unterlagen */
.dgh-accordion {
  margin-bottom: .5rem;
  border: 1px solid #d7dce5;
  border-radius: .4rem;
  background: #fff;
  overflow: hidden;
}
.dgh-accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.1rem;
  color: #002060;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.dgh-accordion summary::-webkit-details-marker {
  display: none;
}
.dgh-accordion summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
}
.dgh-accordion[open] summary::after {
  content: "−";
}
.dgh-accordion summary:hover,
.dgh-accordion summary:focus-visible {
  background: #f2f5fa;
}
.dgh-accordion-content {
  padding: 1rem 1.1rem;
  border-top: 1px solid #d7dce5;
}

/* DGH-Mietanfrage */
.tx-form form {
  max-width: 760px;
}
.tx-form form label {
  display: block;
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.tx-form form input:not([type="checkbox"]),
.tx-form form select,
.tx-form form textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #aeb8c5;
  border-radius: 6px;
  font: inherit;
}
.tx-form form textarea {
  min-height: 130px;
}
.tx-form form button,
.tx-form form input[type="submit"] {
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: 6px;
  background: #17376b;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.tx-form form input[type="checkbox"] {
  width: auto;
}

/* DGH-Mietanfrage: TYPO3-Formular ohne .tx-form-Container */
form[id^="dGH-Mietanfrage-"] {
  max-width: 760px;
}
form[id^="dGH-Mietanfrage-"] label {
  display: block;
  margin: 0 0 0.35rem;
  font-weight: 600;
}
form[id^="dGH-Mietanfrage-"] input:not([type="checkbox"]):not([type="hidden"]):not([type="submit"]),
form[id^="dGH-Mietanfrage-"] select,
form[id^="dGH-Mietanfrage-"] textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #aeb8c5;
  border-radius: 6px;
  font: inherit;
}
form[id^="dGH-Mietanfrage-"] textarea {
  min-height: 130px;
}
form[id^="dGH-Mietanfrage-"] button,
form[id^="dGH-Mietanfrage-"] input[type="submit"] {
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: 6px;
  background: #17376b;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

/* Bestätigungen der DGH-Mietanfrage */
form[id^="dGH-Mietanfrage-"] .form-check-wrapping-label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}
form[id^="dGH-Mietanfrage-"] .form-check-input {
  flex: 0 0 auto;
  margin: 0.3rem 0 0;
}
form[id^="dGH-Mietanfrage-"] .form-check-label {
  display: block;
  margin: 0;
  font-weight: 400;
}

/* Formular nutzt die verfügbare Inhaltsbreite */
form[id^="dGH-Mietanfrage-"] {
  width: 100%;
  max-width: none;
}

/* Zwei Feldpaare nebeneinander */
@media (min-width: 700px) {
  form[id^="dGH-Mietanfrage-"] > .form-element:has(input[id$="-text-1"]),
  form[id^="dGH-Mietanfrage-"] > .form-element:has(input[id$="-text-2"]),
  form[id^="dGH-Mietanfrage-"] > .form-element:has(input[id$="-telephone-1"]),
  form[id^="dGH-Mietanfrage-"] > .form-element:has(input[id$="-email-1"]) {
    display: inline-block;
    vertical-align: top;
    width: calc(50% - 1rem);
  }

  form[id^="dGH-Mietanfrage-"] > .form-element:has(input[id$="-text-1"]),
  form[id^="dGH-Mietanfrage-"] > .form-element:has(input[id$="-telephone-1"]) {
    margin-right: 1rem;
  }
}

/* Footer */
.site-footer {
  background: #102d58;
  color: #fff;
  border-top: 3px solid #f2d83b;
}
.site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.site-footer .shell a {
  color: #fff;
}
.site-footer .shell a:hover,
.site-footer .shell a:focus-visible {
  color: #ffe45c;
}
.site-footer .shell a:first-of-type {
  margin-left: auto;
}
@media (max-width: 650px) {
  .site-footer .shell a:first-of-type {
    margin-left: 0;
  }
  .site-footer .shell span {
    flex-basis: 100%;
  }
}

.site-footer .shell {
  font-size: 0.95rem;
  line-height: 1.5;
}
.site-footer .shell > span,
.site-footer .shell > a {
  font-size: inherit;
  font-weight: 400;
}

/* Hauptnavigation */
.site-header .main-nav {
  align-self: center;
  margin-left: auto;
}
.site-header .main-nav ul {
  align-items: center;
  gap: 0.35rem;
}
.site-header .main-nav a {
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: 0.55rem;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible {
  background: #edf1f8;
  text-decoration: none;
}
.site-header .main-nav a.current {
  background: #edf1f8;
  box-shadow: inset 0 -3px var(--orange);
  text-decoration: none;
}
@media (max-width: 800px) {
  .site-header .main-nav {
    margin-left: 0;
  }
  .site-header .main-nav ul {
    gap: 0.25rem;
  }
}

/* Rechte Spalte auf der DGH-Seite */
.page-3 .side-content {
  background: #f5f7fb;
  border-left: 0;
  border-radius: 0.6rem;
  padding: clamp(1rem, 2vw, 1.5rem);
}
.page-3 .dgh-calendar {
  margin: 0;
}
.page-3 .dgh-calendar h2 {
  margin-top: 0;
  font-size: 1.35rem;
}
.page-3 .dgh-calendar p {
  margin: 0 0 1rem;
}
.page-3 .dgh-calendar button {
  display: inline-block;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.45rem;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.page-3 .dgh-calendar button:hover {
  background: #173d80;
}
.page-3 .dgh-calendar iframe {
  width: 100%;
  min-height: 620px;
  border: 0;
  border-radius: 0.4rem;
}
.page-3 .dgh-section-divider {
  border: 0;
  border-top: 2px solid #d7dfec;
  margin: 1.5rem 0;
}

/* Rechte Spalte auf der DGH-Seite */
.page-3 .side-content {
  background: #f5f7fb;
  border-left: 0;
  border-radius: 0.6rem;
  padding: clamp(1rem, 2vw, 1.5rem);
}
.page-3 .dgh-calendar {
  margin: 0;
}
.page-3 .dgh-calendar h2 {
  margin-top: 0;
  font-size: 1.35rem;
}
.page-3 .dgh-calendar p {
  margin: 0 0 1rem;
}
.page-3 .dgh-calendar button {
  display: inline-block;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.45rem;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.page-3 .dgh-calendar button:hover {
  background: #173d80;
}
.page-3 .dgh-calendar iframe {
  width: 100%;
  min-height: 620px;
  border: 0;
  border-radius: 0.4rem;
}
.page-3 .dgh-section-divider {
  border: 0;
  border-top: 2px solid #d7dfec;
  margin: 1.5rem 0;
}

/* DGH-Kopfbild mittig auf weißem Hintergrund */
.page-3 .jumbotron {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  text-align: center;
}

.page-3 .jumbotron .frame {
  margin: 0;
}

.page-3 .jumbotron img {
  display: block;
  margin-inline: auto;
}

/* DGH: Dokumente unter beiden Spalten */
.page-3 .content-columns {
  margin-bottom: 0;
  border-radius: .45rem .45rem 0 0;
}
.page-3 .dgh-documents {
  background: rgba(255, 255, 255, .94);
  padding: 0 clamp(1rem, 3vw, 2.25rem) clamp(1rem, 3vw, 2.25rem);
  border-radius: 0 0 .45rem .45rem;
  margin-bottom: 2rem;
}
.page-3 .dgh-documents::before {
  content: "";
  display: block;
  border-top: 2px solid #d7dfec;
  margin-bottom: 1.5rem;
}

/* Ettenbüttel: aufklappbare Einträge */
.ettenbuettel-list {
  max-width: 76rem;
}

.ettenbuettel-item {
  border: 1px solid #d3ddea;
  border-radius: .4rem;
  margin: 1rem 0;
  background: #fff;
}

.ettenbuettel-item summary {
  cursor: pointer;
  padding: .85rem 1rem;
  color: var(--blue);
  font-weight: 700;
}

.ettenbuettel-item summary::marker {
  color: var(--orange);
}

.ettenbuettel-entry {
  padding: 0 1rem 1rem;
}

.ettenbuettel-entry:has(img) {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 1.25rem;
}

.ettenbuettel-entry img {
  width: 100%;
  height: auto;
  border-radius: .35rem;
}

@media (max-width: 650px) {
  .ettenbuettel-entry:has(img) {
    grid-template-columns: 1fr;
  }

  .ettenbuettel-entry img {
    max-width: 18rem;
  }
}

/* Hauptnavigation: Untermenüs */
.main-nav > ul > li {
  position: relative;
}

.main-nav .nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 15rem;
  max-width: min(22rem, 90vw);
  padding: .4rem;
  margin: 0;
  background: #fff;
  border: 1px solid #d7dfec;
  border-radius: .45rem;
  box-shadow: 0 10px 24px #00206030;
}

.main-nav .has-submenu:hover > .nav-submenu,
.main-nav .has-submenu:focus-within > .nav-submenu {
  display: block;
}

.main-nav .nav-submenu li {
  display: block;
}

.main-nav .nav-submenu a {
  display: block;
  padding: .55rem .7rem;
  border-radius: .3rem;
  line-height: 1.35;
}

.main-nav .nav-submenu a:hover,
.main-nav .nav-submenu a:focus-visible {
  background: #edf2fa;
}

@media (max-width: 800px) {
  .main-nav > ul {
    display: block;
  }

  .main-nav .nav-submenu {
    display: block;
    position: static;
    min-width: 0;
    max-width: none;
    margin: 0 0 .5rem .75rem;
    border: 0;
    border-left: 2px solid var(--orange);
    border-radius: 0;
    box-shadow: none;
  }
}

/* Desktop-Header beim Scrollen */
@media (min-width: 801px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
  }

  .site-header .header-inner,
  .site-header .brand img {
    transition: padding .2s ease, max-height .2s ease;
  }

  .site-header.is-compact .header-inner {
    padding-top: .2rem;
    padding-bottom: .2rem;
  }

  .site-header.is-compact .brand img {
    max-height: 3.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .header-inner,
  .site-header .brand img {
    transition: none;
  }
}

/* Mobile Navigation */
.menu-toggle { display: none; }

@media (max-width: 800px) {
  .site-header { position: relative !important; }
  .site-header .header-inner { align-items: center; }
  .site-header .brand { max-width: min(72vw, 20rem); }
  .site-header .brand img { max-height: 5rem; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-left: auto;
    padding: .55rem .8rem;
    border: 2px solid #002060;
    border-radius: .4rem;
    background: white;
    color: #002060;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  .menu-toggle:focus-visible {
    outline: 3px solid #ff9933;
    outline-offset: 2px;
  }
  .site-header .main-nav {
    display: none;
    width: 100%;
  }
  .site-header .main-nav.is-open { display: block; }
  .site-header .main-nav > ul {
    display: block;
    padding: .5rem 0;
  }
  .site-header .main-nav > ul > li { margin: .25rem 0; }
  .site-header .main-nav a {
    display: block;
    padding: .45rem .25rem;
  }
  .site-header .nav-submenu {
    position: static;
    display: block;
    width: auto;
    margin: .15rem 0 .5rem .8rem;
    padding: 0 0 0 .8rem;
    border-left: 3px solid #ff9933;
    box-shadow: none;
  }
  .site-header .nav-submenu a { font-size: .95em; }
}


/* Bilder auf der Seite vergrößern */
img.dgm-zoomable { cursor: zoom-in; }
img.dgm-zoomable:focus-visible { outline: 3px solid #ff9933; outline-offset: 3px; }
.dgm-image-viewer {
  position: fixed;
  inset: 0;
  width: min(96vw, 1500px);
  max-width: none;
  max-height: 94vh;
  padding: 2.5rem 1rem 1rem;
  border: 0;
  border-radius: .5rem;
  background: #fff;
  text-align: center;
}
.dgm-image-viewer::backdrop { background: rgba(0, 0, 0, .85); }
.dgm-image-viewer img {
  display: block;
  max-width: 100%;
  max-height: calc(94vh - 3.5rem);
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;
}
.dgm-image-close {
  position: absolute;
  top: .2rem;
  right: .5rem;
  border: 0;
  background: transparent;
  color: #002060;
  font-size: 2rem;
  cursor: pointer;
}

/* Beitragsseite: Herbstferienprogramm */
.page-5 .main-content {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}
.page-5 .main-content .ce-gallery,
.page-5 .main-content figure {
  text-align: center;
}
.page-5 .main-content .ce-gallery img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}
.page-5 .main-content p {
  max-width: 75ch;
  margin-inline: auto;
}

/* Plakat im Herbstferien-Beitrag kompakt anzeigen */
.page-5 .main-content .ce-gallery img {
  width: auto;
  max-width: 100%;
  max-height: min(65vh, 650px);
  object-fit: contain;
}


/* Beitragskarten füllen die verfügbare Breite */
.news-feed .news-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
  gap: 1rem;
}
.news-feed .news-card {
  min-width: 0;
  width: 100%;
  margin: 0;
}

/* Dezenter Archivlink neben „Alle Beiträge“ */
.news-heading-links {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .4rem 1rem;
}
.news-heading-links .archive-link {
  font-size: .82em;
  font-weight: 400;
  opacity: .7;
  text-decoration: none;
}
.news-heading-links .archive-link:hover,
.news-heading-links .archive-link:focus-visible {
  opacity: 1;
  text-decoration: underline;
}


/* Zeitlich begrenzte Beiträge in der rechten Spalte der Startseite */
.pinned-news h2 { margin: 0 0 .8rem; }
.pinned-news-card + .pinned-news-card { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #d8d8bb; }
.pinned-news-card h3 { margin: .4rem 0; font-size: 1.1rem; line-height: 1.3; }
.pinned-news-card img { display: block; width: 100%; height: auto; max-height: 12rem; object-fit: cover; border-radius: .25rem; }
.pinned-news-card p { margin: .3rem 0 0; font-size: .96rem; line-height: 1.45; }

/* Startseite: Bildkacheln in moderater Größe */
.page-1 .main-content > :nth-child(-n+2) img {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Tablets und kleinere Laptop-Fenster */
@media (min-width: 801px) and (max-width: 1450px) {
  .content-columns,
  .page-3 .content-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .side-content,
  .page-1 .side-content {
    position: static;
    width: 100%;
  }

  .main-content,
  .side-content,
  .page-1 .main-content > * {
    min-width: 0;
  }

  .main-content h1,
  .main-content h2,
  .side-content h2,
  .side-content h3 {
    overflow-wrap: anywhere;
  }
}

/* Hochkant-Tablet: Navigation einklappen */
@media (min-width: 801px) and (max-width: 1200px) {
  .site-header .header-inner {
    align-items: center;
  }

  .site-header .brand img {
    max-height: 5rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: .55rem .8rem;
    border: 2px solid var(--blue);
    border-radius: .4rem;
    background: #fff;
    color: var(--blue);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .site-header .main-nav {
    display: none;
    width: 100%;
  }

  .site-header .main-nav.is-open {
    display: block;
  }

  .site-header .main-nav > ul {
    display: block;
    padding: .5rem 0;
  }

  .site-header .main-nav > ul > li {
    margin: .25rem 0;
  }

  .site-header .main-nav a {
    display: block;
    padding: .45rem .25rem;
  }

  .site-header .nav-submenu {
    position: static;
    display: block;
    width: auto;
    margin: .15rem 0 .5rem .8rem;
    padding: 0 0 0 .8rem;
    border-left: 3px solid var(--orange);
    box-shadow: none;
  }
}

/* Startseite: kompakter Einstieg auf großen Bildschirmen */
@media (min-width: 1451px) {
  .page-1 .content-columns {
    padding: 1.25rem 1.5rem;
    gap: 1.25rem;
  }

  .page-1 .main-content {
    gap: 1rem 1.5rem;
  }

  .page-1 .main-content > :nth-child(-n+2) img {
    width: min(100%, 18rem);
  }

  .page-1 .main-content > :nth-child(-n+2) .frame-header {
    margin-bottom: .5rem;
  }

  .page-1 .main-content > .news-feed {
    padding: 1rem 1.25rem;
  }

  .page-1 .news-feed-heading {
    margin-bottom: .5rem;
  }
}

/* DGM-SEITENLAYOUT-KONSOLIDIERT */

/* Einheitliche Seitenbreite */
main.page-layout.shell {
    width: min(100% - 3rem, 1440px);
    max-width: none;
    margin-inline: auto;
}

.page-layout .main-content {
    min-width: 0;
}

/* Standard: Hauptinhalt und Seitenleiste */
@media (min-width: 1100px) {
    .page-layout .content-columns {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 2rem;
    }
}

/* Leere Seitenleiste ausblenden */
.page-layout .content-columns > .side-content:not(:has(
    section,
    article,
    .frame,
    iframe,
    img,
    p,
    a,
    button
)) {
    display: none;
}

/* Ohne Seitenleiste keine ungenutzte Spalte */
.page-layout .content-columns:not(:has(> .side-content:not(:empty))) {
    grid-template-columns: minmax(0, 1fr);
}

/* Auch ausgeblendete leere Seitenleisten berücksichtigen */
.page-layout .content-columns:not(:has(
    > .side-content section,
    > .side-content article,
    > .side-content .frame,
    > .side-content iframe,
    > .side-content img,
    > .side-content p,
    > .side-content a,
    > .side-content button
)) {
    grid-template-columns: minmax(0, 1fr);
}

/* Tablet und Smartphone */
@media (max-width: 1099px) {
    .page-layout .content-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 800px) {
    main.page-layout.shell {
        width: calc(100% - 2rem);
    }
}

/* DGM-DESIGN-FEINSCHLIFF-20261115 */

/* Dorfgemeinschaftshaus: Bild abrunden */
.page-3 .main-content img {
    border-radius: 10px;
}

/* Dorfgemeinschaftshaus: Seitenleiste kompakter */
.page-3 .side-content {
    align-self: start;
}


/* DGM-DESIGN-FEINSCHLIFF-V2 */

/* Dorfgemeinschaftshaus: Titelbild abrunden */
.page-3 .jumbotron img {
    border-radius: 10px;
}

/* Dorfgemeinschaftshaus: Belegungsplan kompakter */
.page-3 .dgh-calendar {
    padding: 1rem;
    border-radius: 10px;
}

.page-3 .dgh-calendar h2 {
    margin-top: 0;
    margin-bottom: .75rem;
}

.page-3 .dgh-calendar p {
    margin: .6rem 0;
    line-height: 1.5;
}

/* Beitragsbilder: Hochkantplakate größer darstellen */
.dgm-article-cover img {
    width: auto;
    max-width: 260px;
    max-height: 420px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* Mobilgeräte */
@media (max-width: 600px) {
    .dgm-article-cover img {
        max-width: 100%;
        max-height: 360px;
    }
}
