/* =========================================================
   MITGLIEDER – TYPO3 NEWS-LISTE
   ========================================================= */

#c127 .news-list-view {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 28px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px 25px 50px;
}

/* Jede Person als Karte */
#c127 .news-list-view > .article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e9e9e9;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .045);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

#c127 .news-list-view > .article:hover {
  border-color: rgba(187, 0, 0, .3);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .11);
  transform: translateY(-5px);
}

/* Im TYPO3-HTML kommt der Name vor dem Foto:
   mit order wird das Bild zuerst angezeigt. */
#c127 .article .news-img-wrap {
  order: 1;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #f3f3f3;
}

#c127 .article .news-img-wrap > a,
#c127 .article .no-media-element,
#c127 .article .no-media-element > a {
  display: block;
  width: 100%;
}

#c127 .article .news-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 25%;
  transition: transform .4s ease;
}

#c127 .article:hover .news-img-wrap img {
  transform: scale(1.045);
}

/* Platzhalterbild nicht künstlich vergrößern */
#c127 .article .no-media-element {
  background: #f6f6f6;
}

#c127 .article .no-media-element img {
  padding: 18%;
  object-fit: contain;
  transform: none;
}

#c127 .article:hover .no-media-element img {
  transform: none;
}

/* Name */
#c127 .article > .header {
  order: 2;
  display: flex;
  min-height: 105px;
  align-items: center;
  justify-content: center;
  padding: 22px 16px 26px;
  text-align: center;
}

#c127 .article > .header h3 {
  margin: 0;
  font-size: clamp(19px, 1.55vw, 25px);
  font-weight: 500;
  line-height: 1.2;
}

#c127 .article > .header h3 a {
  color: #222;
  text-decoration: none;
  transition: color .2s ease;
}

#c127 .article:hover > .header h3 a,
#c127 .article > .header h3 a:focus-visible {
  color: #bb0000;
}

/* Kleine rote Linie unter jedem Namen */
#c127 .article > .header::after {
  position: absolute;
  content: "";
}

/* Teaser und alte Metadaten gehören bei der
   Mitgliederübersicht nicht zur Kartenansicht */
#c127 .article > .teaser-text,
#c127 .article > .footer {
  display: none;
}

/* Tablet: zwei Karten */
@media (max-width: 991.98px) {
  #c127 .news-list-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
  }
}

/* Handy: eine Karte */
@media (max-width: 575.98px) {
  #c127 .news-list-view {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 25px;
    padding: 10px 15px 35px;
  }

  #c127 .article > .header {
    min-height: 85px;
    padding: 17px 12px 21px;
  }

  #c127 .article > .header h3 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #c127 .article,
  #c127 .article img,
  #c127 .article h3 a {
    transition: none;
  }
}

/* News-Detailseite Mitglieder – nur Seite 18 */
#pageid18 .news-single {
  max-width: 1320px;
  margin: 45px auto 70px;
}

#pageid18 .news-single .article {
  display: grid;
  grid-template-columns: minmax(240px, 34%) minmax(220px, 1fr) minmax(260px, 1fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 20px 32px;
  align-items: start;
}

/* Vorhandene TYPO3-Struktur für das Raster öffnen */
#pageid18 .news-single .footer,
#pageid18 .news-single .footer > p {
  display: contents;
}

/* Foto */
#pageid18 .news-single .news-img-wrap {
  grid-column: 1;
  grid-row: 1 / 4;
  margin: 0;
}

#pageid18 .news-single .news-img-wrap .outer,
#pageid18 .news-single .mediaelement,
#pageid18 .news-single .mediaelement a {
  display: block;
  width: 100%;
}

#pageid18 .news-single .news-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Name */
#pageid18 .news-single .header {
  grid-column: 2;
  grid-row: 1;
  padding-top: 12px;
}

#pageid18 .news-single .header h1 {
  margin: 0;
  color: #252525;
  font-size: clamp(28px, 2.5vw, 43px);
  font-weight: 500;
  line-height: 1.15;
  text-align: left;
}

#pageid18 .news-single .header h1::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 17px;
  background: #bb0000;
}

/* Eintrittsdatum */
#pageid18 .news-single .news-list-date {
  grid-column: 2;
  grid-row: 2;
  color: #555;
  font-size: 19px;
}

#pageid18 .news-single .news-list-date::before {
  content: "Bei den Burghofspielen seit ";
}

#pageid18 .news-single .news-list-category,
#pageid18 .news-single .news-list-author {
  display: none;
}

/* Funktionen */
#pageid18 .news-single .news-list-tags {
  grid-column: 3;
  grid-row: 1 / 3;
  display: block;
  padding: 25px 28px;
  border: 1px solid #e9e9e9;
  background: #fff;
  color: #333;
  font-size: 17px;
  line-height: 1.9;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .035);
}

#pageid18 .news-single .news-list-tags::before {
  content: "Funktionen";
  display: block;
  margin-bottom: 8px;
  color: #222;
  font-size: 22px;
  line-height: 1.3;
}

/* Optionaler Beschreibungstext */
#pageid18 .news-single .news-text-wrap {
  grid-column: 2;
  grid-row: 3;
}

/* Zugehörige Stücke */
#pageid18 .news-single .news-related-wrap {
  grid-column: 3;
  grid-row: 3;
  padding: 25px 28px;
  border: 1px solid #e9e9e9;
  background: #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .035);
}

#pageid18 .news-single .news-related-news h4 {
  margin: 0 0 14px;
  color: #222;
  font-size: 22px;
  font-weight: 500;
}

#pageid18 .news-single .news-related-news ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#pageid18 .news-single .news-related-news li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid #eee;
}

#pageid18 .news-single .news-related-news-date {
  color: #888;
  font-size: 14px;
}

#pageid18 .news-single .news-related-news a {
  color: #bb0000;
  font-weight: 700;
  text-decoration: none;
}

#pageid18 .news-single .news-related-news a:hover {
  text-decoration: underline;
}

/* Zurück-Link */
#pageid18 .news-single .news-backlink-wrap {
  grid-column: 1 / -1;
  grid-row: 4;
  margin-top: 25px;
  text-align: center;
}

#pageid18 .news-single .news-backlink-wrap a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid #bb0000;
  border-radius: 3px;
  background: #bb0000;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

#pageid18 .news-single .news-backlink-wrap a::before {
  content: "←";
  font-size: 20px;
  line-height: 1;
}

#pageid18 .news-single .news-backlink-wrap a:hover {
  background: #fff;
  color: #bb0000;
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  #pageid18 .news-single .article {
    grid-template-columns: minmax(200px, 40%) 1fr;
  }

  #pageid18 .news-single .news-img-wrap {
    grid-column: 1;
    grid-row: 1 / 5;
  }

  #pageid18 .news-single .header,
  #pageid18 .news-single .news-list-date,
  #pageid18 .news-single .news-list-tags,
  #pageid18 .news-single .news-text-wrap,
  #pageid18 .news-single .news-related-wrap {
    grid-column: 2;
    grid-row: auto;
  }

  #pageid18 .news-single .news-backlink-wrap {
    grid-row: auto;
  }
}

@media (max-width: 650px) {
  #pageid18 .news-single {
    margin: 25px auto 50px;
  }

  #pageid18 .news-single .article {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  #pageid18 .news-single .news-img-wrap,
  #pageid18 .news-single .news-list-tags,
  #pageid18 .news-single .news-related-wrap,
  #pageid18 .news-single .news-backlink-wrap {
    width: 100%;
  }

  #pageid18 .news-single .header {
    padding-top: 0;
  }

  #pageid18 .news-single .news-list-tags,
  #pageid18 .news-single .news-related-wrap {
    padding: 20px;
  }

  #pageid18 .news-single .news-backlink-wrap {
    margin-top: 10px;
  }
}

/* News-Übersicht – Seite 23 */
#pageid23 #c49 .news-list-view {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 26px;
  align-items: stretch;
}

#pageid23 #c49 .news-list-view > .article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e9e9e9;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

#pageid23 #c49 .news-list-view > .article:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .11);
}

/* Bild oben in der Karte */
#pageid23 #c49 .news-card-image {
  order: 0;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f0f0f0;
}

#pageid23 #c49 .news-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

#pageid23 #c49 .article:hover .news-card-image img {
  transform: scale(1.045);
}

/* Datum */
#pageid23 #c49 .article > .footer {
  order: 1;
  padding: 22px 24px 0;
}

#pageid23 #c49 .article > .footer p {
  margin: 0;
}

#pageid23 #c49 .news-list-date {
  color: #bb0000;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

/* Überschrift */
#pageid23 #c49 .article > .header {
  order: 2;
  padding: 9px 24px 0;
}

#pageid23 #c49 .article > .header h3 {
  margin: 0;
  font-size: clamp(21px, 1.7vw, 27px);
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}

#pageid23 #c49 .article > .header h3 a {
  color: #222;
  text-decoration: none;
}

#pageid23 #c49 .article > .header h3 a:hover {
  color: #bb0000;
}

/* Kurztext und Weiterlesen */
#pageid23 #c49 .article > .teaser-text {
  order: 3;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px 24px 25px;
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

#pageid23 #c49 .teaser-text p {
  margin: 0 0 12px;
}

#pageid23 #c49 .teaser-text .more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 17px;
  color: #bb0000;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

#pageid23 #c49 .teaser-text .more::after {
  content: "→";
  font-size: 20px;
  line-height: 1;
  transition: transform .2s ease;
}

#pageid23 #c49 .teaser-text .more:hover::after {
  transform: translateX(5px);
}

/* Paginierung: im HTML einmal oberhalb und einmal unterhalb */
#pageid23 #c49 .f3-widget-paginator {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 5px 0;
  padding: 0;
  list-style: none;
}

#pageid23 #c49 .f3-widget-paginator li {
  margin: 0;
}

#pageid23 #c49 .f3-widget-paginator a,
#pageid23 #c49 .f3-widget-paginator .current {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid #e4e4e4;
  border-radius: 3px;
  color: #333;
  text-decoration: none;
}

#pageid23 #c49 .f3-widget-paginator .current,
#pageid23 #c49 .f3-widget-paginator a:hover {
  border-color: #bb0000;
  background: #bb0000;
  color: #fff;
}

@media (max-width: 991px) {
  #pageid23 #c49 .news-list-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  #pageid23 #c49 .news-list-view {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  #pageid23 #c49 .article > .footer,
  #pageid23 #c49 .article > .header {
    padding-left: 20px;
    padding-right: 20px;
  }

  #pageid23 #c49 .article > .teaser-text {
    padding: 15px 20px 22px;
  }
}

/* News-Bilder auf Seite 23 einheitlich zuschneiden */
#pageid23 #c49 .news-list-view > .article img {
  display: block !important;
  width: 100% !important;
  height: 260px !important;
  max-height: 260px !important;
  object-fit: cover !important;
  object-position: center center;
}

/* Abstände und bisherige Bildhöhe zurücksetzen */
#pageid23 #c49 .news-list-view > .article
:is(.news-card-image, .news-img-wrap, figure, picture) {
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  overflow: hidden;
}

@media (max-width: 650px) {
  #pageid23 #c49 .news-list-view > .article img {
    height: 220px !important;
    max-height: 220px !important;
  }
}

/* Weiterlesen-Buttons der News-Karten */
#pageid23 #c49 .news-list-view .article .teaser-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

#pageid23 #c49 .news-list-view .article .teaser-text a.more,
#pageid23 #c49 .news-list-view .article .teaser-text a.more:visited {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: auto !important;
  padding: 13px 22px !important;
  border: 1px solid #bb0000 !important;
  border-radius: 3px !important;
  background: #bb0000 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .05em;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-transform: uppercase;
  box-shadow: none !important;
  transition: background .2s ease, border-color .2s ease;
}

#pageid23 #c49 .news-list-view .article .teaser-text a.more:hover,
#pageid23 #c49 .news-list-view .article .teaser-text a.more:focus-visible {
  border-color: #850000 !important;
  background: #850000 !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

#pageid23 #c49 .news-list-view .article .teaser-text a.more:focus-visible {
  outline: 2px solid #bb0000;
  outline-offset: 3px;
}
/* Weiterlesen-Buttons der News-Karten */
#pageid23 #c49 .news-list-view .article .teaser-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

#pageid23 #c49 .news-list-view .article .teaser-text a.more,
#pageid23 #c49 .news-list-view .article .teaser-text a.more:visited {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: auto !important;
  padding: 13px 22px !important;
  border: 1px solid #bb0000 !important;
  border-radius: 3px !important;
  background: #bb0000 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .05em;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-transform: uppercase;
  box-shadow: none !important;
  transition: background .2s ease, border-color .2s ease;
}

#pageid23 #c49 .news-list-view .article .teaser-text a.more:hover,
#pageid23 #c49 .news-list-view .article .teaser-text a.more:focus-visible {
  border-color: #850000 !important;
  background: #850000 !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

#pageid23 #c49 .news-list-view .article .teaser-text a.more:focus-visible {
  outline: 2px solid #bb0000;
  outline-offset: 3px;
}
/* =========================================
   NEWS-DETAILSEITE – BURGHOFSPIELE
   ========================================= */

#pageid51 #c99 .news-single {
  margin: 45px 0 70px;
}

#pageid51 #c99 .news-single > .article {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  column-gap: clamp(35px, 5vw, 85px);
  row-gap: 14px;
  align-items: start;
}

/* Titel */
#pageid51 #c99 .news-single .header {
  grid-column: 1 / -1;
  grid-row: 1;
}

#pageid51 #c99 .news-single .header h1 {
  margin: 0;
  color: #202020;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 600;
  line-height: 1.12;
  text-align: left;
}

#pageid51 #c99 .news-single .header h1::after {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  margin-top: 20px;
  background: #bb0000;
}

/* Datum */
#pageid51 #c99 .news-single .footer {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0 0 22px;
}

#pageid51 #c99 .news-single .footer p {
  margin: 0;
}

#pageid51 #c99 .news-single .news-list-date {
  color: #bb0000;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

/* Beitragstext */
#pageid51 #c99 .news-single .teaser-text {
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
  color: #414141;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.75;
}

#pageid51 #c99 .news-single .teaser-text p {
  margin: 0 0 25px;
}

#pageid51 #c99 .news-single .teaser-text p:first-child {
  font-size: clamp(17px, 1.35vw, 20px);
}

/* Plakat rechts: vollständig sichtbar, ohne Beschnitt */
#pageid51 #c99 .news-single .news-img-wrap {
  grid-column: 2;
  grid-row: 3;
  width: 100%;
  margin: 0;
}

#pageid51 #c99 .news-single .news-img-wrap .outer,
#pageid51 #c99 .news-single .mediaelement,
#pageid51 #c99 .news-single .mediaelement a {
  display: block;
  width: 100%;
}

#pageid51 #c99 .news-single .news-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
}

/* Leeren Textbereich aus dem News-Template entfernen */
#pageid51 #c99 .news-single .news-text-wrap:empty {
  display: none;
}

/* Verwandte Beiträge */
#pageid51 #c99 .news-single .news-related-wrap {
  grid-column: 1 / -1;
  grid-row: 4;
  margin-top: 55px;
  padding: clamp(25px, 3vw, 42px);
  border-top: 4px solid #bb0000;
  border-radius: 4px;
  background: #f5f5f5;
}

#pageid51 #c99 .news-single .news-related-news h4 {
  margin: 0 0 24px;
  color: #202020;
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 600;
}

#pageid51 #c99 .news-single .news-related-news h4::after {
  content: "";
  display: block;
  width: 45px;
  height: 2px;
  margin-top: 12px;
  background: #bb0000;
}

#pageid51 #c99 .news-single .news-related-news ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#pageid51 #c99 .news-single .news-related-news li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 16px 19px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  background: #fff;
  transition: border-color .2s ease, transform .2s ease;
}

#pageid51 #c99 .news-single .news-related-news li:hover {
  border-color: #bb0000;
  transform: translateY(-2px);
}

#pageid51 #c99 .news-single .news-related-news-date {
  color: #777;
  font-size: 12px;
  letter-spacing: .04em;
}

#pageid51 #c99 .news-single .news-related-news a,
#pageid51 #c99 .news-single .news-related-news a:visited {
  color: #252525;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

#pageid51 #c99 .news-single .news-related-news a:hover {
  color: #bb0000;
}

/* Die Seite hat bereits unten den gestalteten Zurück-Button */
#pageid51 #c99 .news-single .news-backlink-wrap {
  display: none;
}

@media (max-width: 850px) {
  #pageid51 #c99 .news-single > .article {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  #pageid51 #c99 .news-single .header,
  #pageid51 #c99 .news-single .footer,
  #pageid51 #c99 .news-single .news-img-wrap,
  #pageid51 #c99 .news-single .teaser-text,
  #pageid51 #c99 .news-single .news-related-wrap {
    grid-column: 1;
  }

  #pageid51 #c99 .news-single .header {
    grid-row: 1;
  }

  #pageid51 #c99 .news-single .footer {
    grid-row: 2;
    margin-bottom: 0;
  }

  #pageid51 #c99 .news-single .news-img-wrap {
    grid-row: 3;
    max-width: 620px;
  }

  #pageid51 #c99 .news-single .teaser-text {
    grid-row: 4;
  }

  #pageid51 #c99 .news-single .news-related-wrap {
    grid-row: 5;
    margin-top: 25px;
  }
}

@media (max-width: 600px) {
  #pageid51 #c99 .news-single {
    margin: 25px 0 45px;
  }

  #pageid51 #c99 .news-single .news-related-news ul {
    grid-template-columns: 1fr;
  }

  #pageid51 #c99 .news-single .news-related-wrap {
    padding: 22px 18px;
  }
}


/* Gäste – News-Liste #c143 */
#c143 .news-list-view {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

#c143 .news-list-view > .article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e9e9e9;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

#c143 .news-list-view > .article:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
}

/* Porträt */
#c143 .news-list-view .news-img-wrap,
#c143 .news-list-view .news-card-image {
  order: 0;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #eee;
}

#c143 .news-list-view .news-img-wrap .outer,
#c143 .news-list-view .news-img-wrap a,
#c143 .news-list-view .news-img-wrap .mediaelement {
  display: block;
  width: 100%;
}

#c143 .news-list-view > .article img {
  display: block;
  width: 100%;
  height: 330px;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  transition: transform .35s ease;
}

#c143 .news-list-view > .article:hover img {
  transform: scale(1.04);
}

/* Name */
#c143 .news-list-view .article > .header {
  order: 1;
  padding: 22px 22px 0;
}

#c143 .news-list-view .article > .header h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}

#c143 .news-list-view .article > .header h3 a,
#c143 .news-list-view .article > .header h3 a:visited {
  color: #222;
  text-decoration: none;
}

#c143 .news-list-view .article > .header h3 a:hover {
  color: #bb0000;
}

#c143 .news-list-view .article > .header::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 16px;
  background: #bb0000;
}

/* Kurzbeschreibung und Link */
#c143 .news-list-view .article > .teaser-text {
  order: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 17px 22px 25px;
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

#c143 .news-list-view .teaser-text p {
  margin: 0 0 16px;
}

#c143 .news-list-view .teaser-text a.more,
#c143 .news-list-view .teaser-text a.more:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #bb0000;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#c143 .news-list-view .teaser-text a.more::after {
  content: "→";
  font-size: 20px;
}

#c143 .news-list-view .teaser-text a.more:hover {
  color: #850000;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Bei Personen kein Veröffentlichungsdatum anzeigen */
#c143 .news-list-view .article > .footer {
  display: none;
}

#c143 .news-list-view > .f3-widget-paginator {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  #c143 .news-list-view {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  #c143 .news-list-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  #c143 .news-list-view {
    grid-template-columns: 1fr;
  }

  #c143 .news-list-view > .article img {
    height: 390px;
  }
}

/* ==========================================
   NEWS-ÜBERSICHT – RESPONSIVE FIX
   Seite 23 / Content #c49
========================================== */

/* TYPO3-Container */
#pageid23 #c49,
#pageid23 #c49 .frame-container,
#pageid23 #c49 .frame-inner,
#pageid23 #c49 .news {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* News-Raster */
#pageid23 #c49 .news-list-view {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 20px 15px 50px !important;
}

/* Einzelne News-Karten */
#pageid23 #c49 .news-list-view > .article {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* Bildbereich */
#pageid23 #c49 .news-list-view .news-img-wrap,
#pageid23 #c49 .news-list-view .news-img-wrap a,
#pageid23 #c49 .news-list-view .news-card-image {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

/* Einheitliche Bilder */
#pageid23 #c49 .news-list-view > .article img {
    display: block !important;
    width: 100% !important;
    height: 240px !important;
    max-height: 240px !important;
    object-fit: cover !important;
    object-position: center;
}

/* Überschrift */
#pageid23 #c49 .article > .header {
    order: 2;
    width: 100%;
    padding: 15px 22px 0 !important;
}

#pageid23 #c49 .article > .header h3 {
    margin: 0;
    font-size: clamp(20px, 1.7vw, 26px);
    line-height: 1.3;
    overflow-wrap: break-word;
}

/* Datum */
#pageid23 #c49 .article > .footer {
    order: 1;
    width: 100%;
    padding: 20px 22px 0 !important;
}

/* Beschreibung */
#pageid23 #c49 .article > .teaser-text {
    order: 3;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    padding: 15px 22px 25px !important;
    overflow-wrap: anywhere;
}

/* Weiterlesen unten */
#pageid23 #c49 .article .teaser-text a.more {
    margin-top: auto !important;
}

/* Paginierung */
#pageid23 #c49 .f3-widget-paginator {
    grid-column: 1 / -1;
}

/* ==========================================
   TABLET – 2 SPALTEN
========================================== */

@media (max-width: 991.98px) {

    #pageid23 #c49 .news-list-view {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 25px !important;
    }

    #pageid23 #c49 .news-list-view > .article img {
        height: 220px !important;
        max-height: 220px !important;
    }
}

/* ==========================================
   SMARTPHONE – 1 SPALTE
========================================== */

@media (max-width: 575.98px) {

    #pageid23 #c49 .news-list-view {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        padding: 15px 15px 35px !important;
    }

    #pageid23 #c49 .news-list-view > .article img {
        height: 220px !important;
        max-height: 220px !important;
    }

    #pageid23 #c49 .article > .header h3 {
        font-size: 22px;
    }
}

/* ==========================================
   GÄSTE – RESPONSIVE FIX
   Seite 64 / TYPO3 News #c143
========================================== */

/* TYPO3-Container */
#pageid64 #c143,
#pageid64 #c143 .frame-container,
#pageid64 #c143 .frame-inner,
#pageid64 #c143 .news {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Gäste-Raster */
#pageid64 #c143 .news-list-view {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 20px 15px 50px !important;
}

/* Einzelne Karten */
#pageid64 #c143 .news-list-view > .article {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* Bildbereich */
#pageid64 #c143 .news-list-view .news-img-wrap,
#pageid64 #c143 .news-list-view .news-img-wrap a {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

/* Bilder */
#pageid64 #c143 .news-list-view > .article img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 300px !important;
    max-height: 300px !important;
    object-fit: cover !important;
    object-position: center 20%;
}

/* Namen unter dem Bild */
#pageid64 #c143 .article > .header {
    order: 1;
    width: 100% !important;
    min-width: 0;
    padding: 20px 22px 0 !important;
}

#pageid64 #c143 .article > .header h3 {
    margin: 0;
    font-size: clamp(19px, 1.6vw, 24px);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* Beschreibung */
#pageid64 #c143 .article > .teaser-text {
    order: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    padding: 18px 22px 25px !important;
    overflow-wrap: anywhere;
}

/* Weiterlesen am unteren Kartenrand */
#pageid64 #c143 .article .teaser-text a.more {
    margin-top: auto !important;
}

/* Veröffentlichungsdaten ausblenden */
#pageid64 #c143 .article > .footer {
    display: none !important;
}

/* ==========================================
   TABLET – 2 SPALTEN
========================================== */

@media (max-width: 991.98px) {

    #pageid64 #c143 .news-list-view {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 25px !important;
    }

    #pageid64 #c143 .news-list-view > .article img {
        height: 280px !important;
        max-height: 280px !important;
    }
}

/* ==========================================
   SMARTPHONE – 1 SPALTE
========================================== */

@media (max-width: 575.98px) {

    #pageid64 #c143 .news-list-view {
        grid-template-columns: 1fr !important;
        max-width: 420px !important;
        gap: 25px !important;
        padding: 15px 15px 35px !important;
    }

    #pageid64 #c143 .news-list-view > .article img {
        height: 320px !important;
        max-height: 320px !important;
    }

    #pageid64 #c143 .article > .header h3 {
        font-size: 22px;
    }
}

/* =====================================================
   BURGHOFSPIELE – NEWS DETAIL / PRODUKTIONEN
   Seite 18
===================================================== */

/* Gesamter Detailbereich */
#pageid18 .news-single {
    width: 100%;
    max-width: 1320px;
    margin: 40px auto 70px;
    padding: 0 20px;
}

/* Hauptlayout */
#pageid18 .news-single > .article {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 20px 55px;
    align-items: start;
    min-width: 0;
}

/* ==========================================
   BILD LINKS
========================================== */

#pageid18 .news-single .news-img-wrap {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 100%;
    margin: 0;
}

#pageid18 .news-single .news-img-wrap .outer,
#pageid18 .news-single .mediaelement,
#pageid18 .news-single .mediaelement a {
    display: block;
    width: 100%;
}

#pageid18 .news-single .news-img-wrap img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 15px 40px rgba(0,0,0,.10);
}

/* ==========================================
   TITEL RECHTS
========================================== */

#pageid18 .news-single > .article > .header {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 0;
}

#pageid18 .news-single .header h1 {
    margin: 0;
    color: #222;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 600;
    line-height: 1.15;
    text-align: left;
    overflow-wrap: break-word;
}

#pageid18 .news-single .header h1::after {
    content: "";
    display: block;
    width: 65px;
    height: 4px;
    margin-top: 20px;
    background: #bb0000;
}

/* ==========================================
   DATUM / KATEGORIE
========================================== */

#pageid18 .news-single > .article > .footer {
    display: block;
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding: 0;
}

#pageid18 .news-single > .article > .footer p {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 0;
}

#pageid18 .news-single .news-list-date {
    color: #777;
    font-size: 14px;
}

#pageid18 .news-single .news-list-date::before {
    content: "";
}

#pageid18 .news-single .news-list-category {
    display: inline;
    color: #bb0000;
    font-size: 14px;
    font-weight: 600;
}

/* ==========================================
   BESCHREIBUNG RECHTS
========================================== */

#pageid18 .news-single > .article > .teaser-text {
    grid-column: 2;
    grid-row: 3;
    min-width: 0;
    padding: 0;
    color: #444;
    font-size: 17px;
    line-height: 1.75;
}

#pageid18 .news-single .teaser-text p {
    margin: 0 0 18px;
}

/* Alte leere Absatz-Abstände reduzieren */
#pageid18 .news-single .teaser-text p:empty {
    display: none;
}

#pageid18 .news-single .teaser-text p:has(> br:only-child) {
    display: none;
}

/* Spielort */
#pageid18 .news-single .teaser-text blockquote {
    margin: 30px 0;
    padding: 22px 28px;
    border-left: 4px solid #bb0000;
    background: #f6f6f6;
    color: #333;
}

#pageid18 .news-single .teaser-text blockquote p {
    margin: 0;
    text-align: left !important;
}

#pageid18 .news-single .teaser-text blockquote a {
    color: #bb0000;
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================
   ZUSÄTZLICHE TYPO3-INHALTE
========================================== */

/* Ensemble */
#pageid18 .news-single #c113 {
    grid-column: 1 / -1;
    grid-row: auto;
    min-width: 0;
}

/* Leading Team */
#pageid18 .news-single .grafikelement {
    grid-column: 1 / -1;
    grid-row: auto;
    min-width: 0;
}

/* Tickets */
#pageid18 .news-single .blau {
    grid-column: 1 / -1;
    grid-row: auto;
    min-width: 0;
}

/* Bereiche als Karten */
#pageid18 .news-single #c113,
#pageid18 .news-single .grafikelement,
#pageid18 .news-single .blau {
    margin-top: 15px;
    padding: 30px;
    border: 1px solid #e9e9e9;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,.035);
}

#pageid18 .news-single #c113 h3,
#pageid18 .news-single .grafikelement h3,
#pageid18 .news-single .blau h3 {
    margin: 0 0 24px;
    color: #222;
    font-size: 25px;
    font-weight: 600;
}

#pageid18 .news-single #c113 h3::after,
#pageid18 .news-single .grafikelement h3::after,
#pageid18 .news-single .blau h3::after {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    margin-top: 12px;
    background: #bb0000;
}

/* ==========================================
   TABELLEN
========================================== */

#pageid18 .news-single .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

#pageid18 .news-single table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

#pageid18 .news-single table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    overflow-wrap: break-word;
}

#pageid18 .news-single table tr:nth-child(even) {
    background: #fafafa;
}

#pageid18 .news-single table a {
    color: #bb0000;
    text-decoration: none;
}

#pageid18 .news-single table a:hover {
    color: #850000;
    text-decoration: underline;
}

/* ==========================================
   SONSTIGE NEWS-BEREICHE
========================================== */

#pageid18 .news-single > .article > .news-text-wrap {
    grid-column: 1 / -1;
    grid-row: auto;
    min-width: 0;
}

#pageid18 .news-single > .article > .news-backlink-wrap {
    grid-column: 1 / -1;
    grid-row: auto;
}

#pageid18 .news-single > .article > .news-related-wrap {
    grid-column: 1 / -1;
    grid-row: auto;
    min-width: 0;
    margin-top: 25px;
    padding: 30px;
    border: 1px solid #eee;
    border-top: 4px solid #bb0000;
    border-radius: 4px;
    background: #f7f7f7;
}

/* Verwandte News */
#pageid18 .news-single .news-related-news ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#pageid18 .news-single .news-related-news li {
    min-width: 0;
    padding: 15px 20px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fff;
    overflow-wrap: anywhere;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 991.98px) {

    #pageid18 .news-single > .article {
        grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
        gap: 20px 30px;
    }

    #pageid18 .news-single .header h1 {
        font-size: 32px;
    }

    #pageid18 .news-single > .article > .teaser-text {
        font-size: 16px;
    }
}

/* ==========================================
   SMARTPHONE
========================================== */

@media (max-width: 767.98px) {

    #pageid18 .news-single {
        margin: 20px auto 45px;
        padding: 0 15px;
    }

    #pageid18 .news-single > .article {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    #pageid18 .news-single > .article > .header {
        order: 0;
        width: 100%;
    }

    #pageid18 .news-single .header h1 {
        font-size: 30px;
    }

    #pageid18 .news-single .news-img-wrap {
        order: 1;
        width: 100%;
        margin: 0;
    }

    #pageid18 .news-single > .article > .footer {
        order: 2;
        width: 100%;
    }

    #pageid18 .news-single > .article > .teaser-text {
        order: 3;
        width: 100%;
    }

    #pageid18 .news-single #c113 {
        order: 4;
        width: 100%;
    }

    #pageid18 .news-single .grafikelement {
        order: 5;
        width: 100%;
    }

    #pageid18 .news-single .blau {
        order: 6;
        width: 100%;
    }

    #pageid18 .news-single .news-text-wrap {
        order: 7;
        width: 100%;
    }

    #pageid18 .news-single .news-related-wrap {
        order: 8;
        width: 100%;
    }

    #pageid18 .news-single .news-backlink-wrap {
        order: 9;
        width: 100%;
    }

    #pageid18 .news-single #c113,
    #pageid18 .news-single .grafikelement,
    #pageid18 .news-single .blau,
    #pageid18 .news-single .news-related-wrap {
        padding: 20px 15px;
    }

    #pageid18 .news-single .news-related-news ul {
        grid-template-columns: 1fr;
    }

    #pageid18 .news-single table {
        font-size: 14px;
    }

    #pageid18 .news-single table td {
        padding: 10px 8px;
    }

    #pageid18 .news-single .teaser-text blockquote {
        padding: 18px;
    }
}

/* ==========================================
   PERSONENPROFILE – KORREKTUR
   Mitglieder / Gäste
========================================== */

/* Nur Personenprofile ohne Produktions-Teaser */
#pageid18 .news-single > .article:not(:has(> .teaser-text)) {
    display: grid;
    grid-template-columns: minmax(0, 35%) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    gap: 20px 45px;
    align-items: start;
}

/* Bild links */
#pageid18 .news-single > .article:not(:has(> .teaser-text))
> .news-img-wrap {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 100%;
}

/* Name rechts */
#pageid18 .news-single > .article:not(:has(> .teaser-text))
> .header {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
}

/* Datum, Kategorie und Funktionen */
#pageid18 .news-single > .article:not(:has(> .teaser-text))
> .footer {
    grid-column: 2;
    grid-row: 2;
    display: block;
}

/* Metadaten untereinander sauber darstellen */
#pageid18 .news-single > .article:not(:has(> .teaser-text))
> .footer > p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

/* Funktionen wieder normal anzeigen */
#pageid18 .news-single > .article:not(:has(> .teaser-text))
.news-list-tags {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 22px 25px;
    border: 1px solid #e9e9e9;
    background: #fff;
    font-size: 17px;
}

/* Funktionen-Überschrift */
#pageid18 .news-single > .article:not(:has(> .teaser-text))
.news-list-tags::before {
    content: "Funktionen";
    display: block;
    margin-bottom: 10px;
    color: #222;
    font-size: 22px;
    font-weight: 600;
}

/* Autor ausblenden */
#pageid18 .news-single > .article:not(:has(> .teaser-text))
.news-list-author {
    display: none;
}

/* Verwandte Nachrichten volle Breite */
#pageid18 .news-single > .article:not(:has(> .teaser-text))
> .news-related-wrap {
    grid-column: 1 / -1;
    grid-row: auto;
}

/* Zurück-Link */
#pageid18 .news-single > .article:not(:has(> .teaser-text))
> .news-backlink-wrap {
    grid-column: 1 / -1;
    grid-row: auto;
}

/* ==========================================
   TABLET / SMARTPHONE
========================================== */

@media (max-width: 767.98px) {

    #pageid18 .news-single > .article:not(:has(> .teaser-text)) {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    #pageid18 .news-single > .article:not(:has(> .teaser-text))
    > .header {
        order: 0;
        width: 100%;
    }

    #pageid18 .news-single > .article:not(:has(> .teaser-text))
    > .news-img-wrap {
        order: 1;
        width: 100%;
    }

    #pageid18 .news-single > .article:not(:has(> .teaser-text))
    > .footer {
        order: 2;
        width: 100%;
    }

    #pageid18 .news-single > .article:not(:has(> .teaser-text))
    > .news-related-wrap {
        order: 3;
        width: 100%;
    }

    #pageid18 .news-single > .article:not(:has(> .teaser-text))
    > .news-backlink-wrap {
        order: 4;
        width: 100%;
    }
}
