:root {
  --green: #1c6f47;
  --green-dark: #10482d;
  --gold: #d7b15b;
  --cream: #f7f3e8;
  --paper: #ffffff;
  --ink: #17211b;
  --muted: #637169;
  --shadow: 0 24px 70px rgba(23, 33, 27, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

body.aktuelles-redesign {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(
      circle at top left,
      rgba(215, 177, 91, 0.18),
      transparent 30rem
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.86),
      rgba(247, 243, 232, 0.96)
    ),
    url("bilder/site-bg.jpg");
  background-size: auto, auto, cover;
  background-attachment: fixed;
  line-height: 1.6;
}

img {
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.redesign-header {
  min-height: 96px;
  width: 100%;
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  gap: 20px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #16573a 0%, #1c6f47 50%, #16573a 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  z-index: 20;
}

.redesign-header__watermark {
  position: absolute;
  right: -54px;
  top: -72px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: url("bilder/SG_Wappen.jpg") center / contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.redesign-header__crest {
  justify-self: start;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  position: relative;
  z-index: 2;
}

.redesign-header__crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.redesign-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.redesign-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.95rem;
  font-weight: 800;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.redesign-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.redesign-social {
  justify-self: end;
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.redesign-social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-dark);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.redesign-social img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}
.redesign-social a:first-child img {
  width: 28px;
  height: 28px;
}

.redesign-nav-toggle,
.redesign-nav-toggle-label {
  display: none;
}

/* Hero */
.news-hero {
  min-height: 430px;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  isolation: isolate;
  position: relative;
  overflow: hidden;
}

.news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("bilder/majestaeten2023.JPG") center 38% / cover no-repeat;
  transform: scale(1.03);
  z-index: -3;
}

.news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at center,
      rgba(28, 111, 71, 0.1),
      rgba(8, 18, 12, 0.72)
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.58));
  z-index: -2;
}

.news-hero__inner {
  width: min(100% - 32px, 950px);
  padding: 54px 20px;
}

.kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 900;
}

.news-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.news-hero p {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
}

.btn.primary {
  background: var(--gold);
  color: #2d2308;
}
.btn.secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(8px);
}
.btn.green {
  background: var(--green);
  color: #fff;
}

/* Content */
main {
  width: min(100% - 32px, var(--content));
  margin: 0 auto;
  padding: 0 0 76px;
}

.stats-band {
  margin: -38px auto 0;
  position: relative;
  z-index: 4;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(28, 111, 71, 0.1);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.stats-band div {
  padding: 24px 18px;
  text-align: center;
  border-right: 1px solid rgba(28, 111, 71, 0.1);
}

.stats-band div:last-child {
  border-right: 0;
}

.stats-band strong {
  display: block;
  color: var(--green);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 900;
}

.stats-band span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.parade-highlight,
.section {
  margin-top: 64px;
}

.parade-highlight {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  background: linear-gradient(
    135deg,
    rgba(28, 111, 71, 0.96),
    rgba(16, 72, 45, 0.98)
  );
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.parade-highlight::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -180px;
  width: 520px;
  height: 520px;
  background: url("bilder/SG_Wappen.jpg") center / contain no-repeat;
  opacity: 0.055;
  pointer-events: none;
}

.parade-copy {
  position: relative;
  z-index: 1;
}

.parade-highlight h2,
.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.parade-highlight p:not(.kicker) {
  max-width: 780px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.top-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* Drei aktuelle Meldungen sauber darstellen:
   erste Meldung breit, die beiden weiteren darunter zweispaltig. */
.top-news-grid .news-card:first-child {
  grid-column: 1 / -1;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.news-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(28, 111, 71, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 86px rgba(23, 33, 27, 0.2);
}

.news-image {
  height: 230px;
  background: #edf2ef;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at center,
      rgba(215, 177, 91, 0.28),
      transparent 50%
    ),
    linear-gradient(135deg, #1c6f47, #10482d);
}

.news-body {
  padding: 24px;
}

.news-date {
  display: inline-flex;
  color: var(--green);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-body h3 {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.news-body p {
  margin: 12px 0 0;
  color: var(--muted);
}

details {
  margin-top: 18px;
}

summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.article-full {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(28, 111, 71, 0.14);
  color: var(--ink);
}

.article-full img {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.article-full figure {
  margin: 1rem 0;
}

.article-full figcaption {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 940px) {
  .redesign-header {
    min-height: 88px;
    grid-template-columns: 88px 1fr 56px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .redesign-header__crest {
    width: 72px;
    height: 72px;
  }
  .redesign-social {
    display: none;
  }

  .redesign-nav-toggle-label {
    justify-self: end;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    gap: 5px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.14);
    position: relative;
    z-index: 30;
  }

  .redesign-nav-toggle-label span {
    width: 22px;
    height: 2px;
    background: #fff;
    display: block;
    border-radius: 2px;
  }

  .redesign-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    background: #fff;
    padding: 14px;
    border-radius: 22px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    z-index: 50;
  }

  .redesign-nav a {
    color: var(--green);
    justify-content: flex-start;
    padding: 0 14px;
  }

  .redesign-nav-toggle:checked ~ .redesign-nav {
    display: flex;
  }

  .stats-band,
  .top-news-grid,
  .archive-grid,
  .parade-highlight {
    grid-template-columns: 1fr;
  }

  .stats-band div {
    border-right: 0;
    border-bottom: 1px solid rgba(28, 111, 71, 0.1);
  }

  .stats-band div:last-child {
    border-bottom: 0;
  }

  .parade-highlight .btn {
    width: max-content;
  }
}

@media (max-width: 540px) {
  body.aktuelles-redesign {
    background-attachment: scroll;
  }
  .news-hero {
    min-height: 380px;
  }
  .news-hero h1 {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .news-body {
    padding: 20px;
  }
  .parade-highlight,
  .section {
    margin-top: 48px;
  }
  .news-image,
  .top-news-grid .news-card:first-child .news-image {
    height: 240px;
  }
}

/* Datenbasierte Aktuelles-Seite */
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card .news-image {
  height: 230px;
  overflow: hidden;
}
.featured-card .news-image {
  height: 320px;
}
.empty-news-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(28, 111, 71, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 42px);
}
.empty-news-card p:not(.kicker) {
  color: var(--muted);
  margin-top: 10px;
}
.article-full {
  margin-top: 14px;
}
.article-full p + p {
  margin-top: 12px;
}
@media (max-width: 768px) {
  .news-card .news-image,
  .featured-card .news-image {
    height: 210px;
  }
}

/* Mehrere Bilder pro Aktuelles-Beitrag */
.article-gallery {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-gallery__item {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #edf2ef;
}

.article-gallery__link {
  display: block;
  cursor: zoom-in;
}

.article-gallery__item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.18s ease;
}

.article-gallery__link:hover img {
  transform: scale(1.03);
}

.news-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(7, 15, 10, 0.88);
}

.news-lightbox.is-open {
  display: flex;
}

.news-lightbox__image {
  max-width: min(100%, 1200px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.news-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-dark);
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.news-lightbox__close:hover {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .news-lightbox {
    padding: 12px;
  }

  .news-lightbox__image {
    max-height: 82vh;
    border-radius: 14px;
  }
}

@media (max-width: 768px) {
  .article-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .article-gallery__item img {
    height: 210px;
  }
}

/* Termine */
.events-section {
  margin-top: -50px;
  position: relative;
  z-index: 5;
}

.events-section .section-heading {
  margin-bottom: 18px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.event-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(28, 111, 71, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.event-card__date {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px 14px;
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  color: #fff;
  text-align: center;
}

.event-card__date strong {
  font-size: 1.05rem;
  line-height: 1;
}

.event-card__date span {
  font-size: 0.8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.84);
}

.event-card__body {
  padding: 18px;
}

.event-card__body h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.event-card__body p {
  margin: 8px 0 0;
  color: var(--muted);
}

.event-card__place {
  color: var(--green) !important;
  font-weight: 900;
}

.article-full--inline {
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 940px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .events-section {
    margin-top: 44px;
  }
  .event-card {
    grid-template-columns: 1fr;
  }
  .event-card__date {
    padding: 14px;
  }
  .event-card__body {
    padding: 16px;
  }
}

.news-image__link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.news-image__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Weiterlesen-Button im geöffneten Artikel unter den vollständigen Text setzen */
.news-readmore {
  margin-top: 18px;
}

.news-readmore summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  list-style: none;
}

.news-readmore summary::-webkit-details-marker {
  display: none;
}

.news-readmore[open] {
  display: flex;
  flex-direction: column;
}

.news-readmore[open] .article-full {
  order: 1;
}

.news-readmore[open] summary {
  order: 2;
  align-self: flex-start;
  margin-top: 18px;
  background: #edf6f0;
  color: var(--green-dark);
}

.label-close {
  display: none;
}

details[open] .label-open {
  display: none;
}

details[open] .label-close {
  display: inline;
}

.mini-series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mini-series-grid .news-card .news-image {
  height: 220px;
}

.mini-series-grid .news-body h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

@media (max-width: 768px) {
  .mini-series-grid {
    grid-template-columns: 1fr;
  }
}

.mini-series-intro {
  max-width: 760px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #5f665f;
  margin-top: 12px;
}

.news-card--long:has(details[open]) {
  grid-column: 1 / -1;
}

.news-card--long:has(details[open]) .news-body {
  max-width: 920px;
  margin: 0 auto;
}

.news-card--long:has(details[open]) .article-full {
  font-size: 1.08rem;
  line-height: 1.85;
}

.news-card--long:has(details[open]) h3 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.news-card--long:has(details[open]) .news-image {
  max-height: 520px;
}

@media (max-width: 940px) {
  .news-card--long:has(details[open]) {
    grid-column: auto;
  }
}

.news-card {
  scroll-margin-top: 120px;
}

/* Magazin-Layout innerhalb geöffneter Artikel: keine Karten, nur ruhige Artikel-Elemente */
.article-full .article-split {
  max-width: 920px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}

.article-full .article-split.image-right {
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
}

.article-full .article-split figure,
.article-full .article-split .article-photo {
  margin: 0;
  max-width: none;
}

.article-full .article-split__text p:first-child {
  margin-top: 0;
}

.article-full .article-split__text p {
  max-width: none;
}

.article-full .article-image-pair {
  max-width: 920px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.article-full .article-image-pair figure,
.article-full .article-image-pair .article-photo {
  margin: 0;
  max-width: none;
}

.article-full .article-image-pair img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.article-full blockquote {
  max-width: 760px;
  margin: 2rem auto;
  padding: 1.25rem 1.5rem;
  border-left: 5px solid var(--gold);
  background: rgba(215, 177, 91, 0.08);
  border-radius: 12px;
  font-style: italic;
}

@media (max-width: 760px) {
  .article-full .article-split,
  .article-full .article-split.image-right,
  .article-full .article-image-pair {
    grid-template-columns: 1fr;
  }

  .article-full .article-image-pair img {
    height: auto;
  }
}

/* Mobile Overflow Fix Aktuelles */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body.aktuelles-redesign {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.aktuelles-redesign * {
  max-width: 100%;
}

.mini-series-grid,
.top-news-grid,
.archive-grid,
.events-grid,
.news-card,
.section,
main {
  min-width: 0;
}
