/* ==========================================================
   STROMMER – TYPO3 EXT:NEWS
   Globales Layout für News + Referenzen, unabhängig von
   Seiten-ID und Content-Element-ID.
   Nur Selektoren innerhalb von .news; keine Header-Frames.
   ========================================================== */

.news {
    --news-red: #c90000;
    --news-red-hover: #a50000;
    --news-ink: #202532;
    --news-muted: #71747a;
    --news-line: #e8e8e8;
    --news-radius: 3px;
    color: var(--news-ink);
    font-family: 'Poppins', Arial, sans-serif;
}
.news *, .news *::before, .news *::after { box-sizing: border-box; }
.news a { text-decoration: none; }

/* ----------------------------------------------------------
   ÜBERSICHT: 3 Spalten, Bild / Meta / Titel / Teaser / Button
   HTML-Reihenfolge ist Titel, Bild, Teaser, Meta.
   Die visuelle Reihenfolge wird per CSS korrigiert.
   ---------------------------------------------------------- */
.news .news-list-view {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 26px;
    width: min(100% - 40px, 1360px);
    margin: 55px auto 75px;
    align-items: stretch;
}
.news .news-list-view > .article {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    height: 100%;
    margin: 0 !important;
    padding: 0 0 25px !important;
    border: 1px solid var(--news-line);
    border-radius: var(--news-radius);
    background: #fff;
    box-shadow: 0 8px 32px rgba(25,30,40,.045);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .3s ease, transform .3s ease;
}
.news .news-list-view > .article:hover {
    box-shadow: 0 18px 44px rgba(25,30,40,.12);
    transform: translateY(-4px);
}
.news .news-list-view > .article > .news-img-wrap {
    order: 0;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    height: 235px;
    margin: 0 0 22px !important;
    padding: 0 !important;
    overflow: hidden;
    background: #eeeeee;
}
.news .news-list-view .news-img-wrap > a {
    display: block;
    width: 100%;
    height: 100%;
}
.news .news-list-view .news-img-wrap img {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}
.news .news-list-view > .article:hover .news-img-wrap img { transform: scale(1.055); }
.news .news-list-view > .article > .footer {
    order: 1;
    float: none !important;
    width: auto !important;
    margin: 0 24px 12px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--news-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.5;
}
.news .news-list-view .footer p { margin: 0; }
.news .news-list-view .news-list-date { margin-right: 10px; }
.news .news-list-view .news-list-category {
    display: inline-block;
    color: var(--news-red);
    text-transform: uppercase;
}
.news .news-list-view > .article > .header {
    order: 2;
    float: none !important;
    width: auto !important;
    margin: 0 24px 13px !important;
    padding: 0 !important;
    background: transparent !important;
}
.news .news-list-view .header h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(19px, 1.5vw, 23px) !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
    letter-spacing: -.025em;
}
.news .news-list-view .header h3 a { color: var(--news-ink) !important; }
.news .news-list-view .header h3 a:hover { color: var(--news-red) !important; }
.news .news-list-view > .article > .teaser-text {
    order: 3;
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 24px !important;
    padding: 0 !important;
    background: transparent !important;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
}
.news .news-list-view .teaser-text [itemprop='description'] {
    width: 100%;
    margin-bottom: 24px;
    color: #62666a;
    font-size: 14px;
    line-height: 1.8;
}
.news .news-list-view .teaser-text [itemprop='description'] p { margin: 0 0 .45em; }

/* Alle News-Buttons, unabhängig von globalen main .more-Regeln */
.news .news-list-view .teaser-text > a.more,
.news .news-backlink-wrap > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 44px;
    margin-top: auto;
    padding: 11px 17px !important;
    border: 1px solid var(--news-red) !important;
    border-radius: 0 !important;
    background: var(--news-red) !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.4;
    letter-spacing: .015em;
    text-transform: uppercase;
    text-decoration: none !important;
    transform: none;
    transition: background .2s ease, border-color .2s ease;
}
.news .news-list-view .teaser-text > a.more::after,
.news .news-backlink-wrap > a::before {
    content: '→';
    display: inline-block;
    font-size: 19px;
    font-weight: 400;
    line-height: 1;
}
.news .news-backlink-wrap > a::before { content: '←'; }
.news .news-list-view .teaser-text > a.more:hover,
.news .news-backlink-wrap > a:hover {
    background: var(--news-red-hover) !important;
    border-color: var(--news-red-hover) !important;
    color: #fff !important;
}
/* Falls ein Artikel kein Vorschaubild hat: nicht künstlich Platz reservieren. */
.news .news-list-view > .article:not(:has(.news-img-wrap)) > .footer { margin-top: 25px !important; }

/* ----------------------------------------------------------
   DETAIL: breite redaktionelle Überschrift, Meta, Galerie,
   Inhaltsbereich und Zurück-Link.
   ---------------------------------------------------------- */
.news.news-single {
    width: min(100% - 40px, 1240px);
    margin: 55px auto 85px;
}
.news.news-single > .article {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
.news.news-single .article > .header {
    margin: 0 0 12px;
    padding: 0;
    background: transparent;
}
.news.news-single .article > .header h1 {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 1080px;
    font-size: clamp(32px, 4vw, 58px) !important;
    font-weight: 800 !important;
    font-style: italic;
    line-height: 1.12;
    letter-spacing: -.035em;
    color: var(--news-ink);
    text-transform: none;
}
.news.news-single .article > .header h1::after { display: none !important; }
.news.news-single .article > .footer {
    margin: 0 0 24px !important;
    padding: 0 0 23px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--news-line) !important;
    background: transparent !important;
    font-size: 12px;
    font-weight: 600;
    color: var(--news-muted);
}
.news.news-single .article > .footer p { margin: 0; }
.news.news-single .news-list-date { margin-right: 18px; }
.news.news-single .news-list-category { color: var(--news-red); text-transform: uppercase; }
.news.news-single .article > .teaser-text {
    float: none !important;
    max-width: 900px;
    margin: 0 0 28px !important;
    padding: 0 !important;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.7;
    font-weight: 400;
    color: #51565b;
}
.news.news-single .teaser-text p { margin: 0 0 .8em; }

/* Galerie: gleich hohe Fotos, responsiv und lichtboxfähig */
.news.news-single .article > .news-img-wrap {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    float: none !important;
    clear: both;
    width: 100% !important;
    max-width: none !important;
    margin: 26px 0 40px !important;
    padding: 0 !important;
}
.news.news-single .news-img-wrap > .outer {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden;
}
.news.news-single .news-img-wrap .mediaelement,
.news.news-single .news-img-wrap .mediaelement-image,
.news.news-single .news-img-wrap .mediaelement a {
    display: block;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
}
.news.news-single .news-img-wrap .mediaelement a {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #ededed;
}
.news.news-single .news-img-wrap img {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease, filter .35s ease;
}
.news.news-single .news-img-wrap a:hover img {
    transform: scale(1.045);
    filter: brightness(.92);
}
.news.news-single .news-text-wrap {
    float: none !important;
    clear: both;
    width: 100% !important;
    max-width: 920px;
    margin: 0 auto 35px !important;
    padding: 0 !important;
    color: #41454b;
    font-size: 16px;
    line-height: 1.9;
}
.news.news-single .news-text-wrap p { margin: 0 0 1.15em; }
.news.news-single .news-text-wrap strong { color: var(--news-ink); font-weight: 700; }
.news.news-single .news-text-wrap a:not(.btn) { color: var(--news-red); text-decoration: underline; text-underline-offset: 3px; }
.news.news-single .news-backlink-wrap {
    clear: both;
    width: 100%;
    max-width: 920px;
    margin: 34px auto 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--news-line);
}
.news.news-single .news-related-wrap:empty { display: none; }

/* Pagination von EXT:news / Bootstrap */
.news .page-navigation,
.news .news-pagination { display: flex; justify-content: center; margin: 35px 0; }
.news .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0; list-style: none; }
.news .pagination .page-link {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--news-line);
    border-radius: 0;
    background: #fff;
    color: var(--news-ink);
    font-weight: 600;
}
.news .pagination .active .page-link,
.news .pagination .page-link:hover {
    border-color: var(--news-red);
    background: var(--news-red);
    color: #fff;
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 1100px) {
    .news .news-list-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news.news-single .article > .news-img-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .news .news-list-view {
        grid-template-columns: 1fr;
        width: min(100% - 28px, 520px);
        gap: 24px;
        margin: 32px auto 45px;
    }
    .news .news-list-view > .article > .news-img-wrap { height: 230px; }
    .news.news-single { width: calc(100% - 30px); margin: 35px auto 60px; }
    .news.news-single .article > .news-img-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .news.news-single .news-text-wrap { font-size: 15px; line-height: 1.8; }
}
@media (max-width: 420px) {
    .news.news-single .article > .news-img-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .news .news-list-view > .article,
    .news .news-list-view img,
    .news.news-single .news-img-wrap img { transition: none !important; }
}


/* ============================================================
   STROMMER / TYPO3 13 / EXT:NEWS – NEWS-ÜBERSICHT + DETAIL
   Scope: ausschließlich body#pageid8, Element #c34
   Datei: /fileadmin/templates/css/news.css
   Bestehende Fluid-Templates bleiben unverändert.
   ============================================================ */

#pageid8 {
  --news-red: #c90000;
  --news-red-dark: #a50000;
  --news-ink: #202532;
  --news-muted: #737373;
  --news-line: #e9e9e9;
}

/* Breite und großzügige Abstände; Titelbild #c31 bleibt unberührt */
#pageid8 #c34 {
  margin: 0;
  padding: clamp(45px, 6vw, 95px) 24px 75px;
}
#pageid8 #c34 .frame-group-container,
#pageid8 #c34 .frame-group-inner,
#pageid8 #c34 .frame-container,
#pageid8 #c34 .frame-inner {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
#pageid8 #c34 .news { width: 100%; min-width: 0; }

/* ---------------- NEWS-LISTE: moderne Karten ---------------- */
#pageid8 #c34 .news-list-view {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: stretch;
}
#pageid8 #c34 .news-list-view > .article {
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 0 25px !important;
  border: 1px solid #ececec;
  background: #fff;
  box-shadow: 0 8px 32px rgba(21, 28, 38, .055);
  transition: transform .3s ease, box-shadow .3s ease;
}
#pageid8 #c34 .news-list-view > .article:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(21, 28, 38, .11);
}
/* Reihenfolge im unveränderten HTML: Foto, Metadaten, Titel, Teaser */
#pageid8 #c34 .news-list-view .article > .news-img-wrap {
  order: 0;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  overflow: hidden;
}
#pageid8 #c34 .news-list-view .news-img-wrap > a {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f1f1;
}
#pageid8 #c34 .news-list-view .news-img-wrap img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}
#pageid8 #c34 .news-list-view .article:hover .news-img-wrap img { transform: scale(1.055); }
#pageid8 #c34 .news-list-view .article > .footer {
  order: 1;
  margin: 23px 25px 9px !important;
  padding: 0 !important;
  background: transparent;
  border: 0;
}
#pageid8 #c34 .news-list-view .footer p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  color: var(--news-muted);
  font-size: 12px;
  line-height: 1.5;
}
#pageid8 #c34 .news-list-view .news-list-category {
  display: inline-block;
  background: #fff0ef;
  color: var(--news-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 9px;
}
#pageid8 #c34 .news-list-view .article > .header {
  order: 2;
  margin: 0 25px 14px !important;
  padding: 0 !important;
  border: 0;
  background: transparent;
}
#pageid8 #c34 .news-list-view .header h3 {
  margin: 0 !important;
  font-family: Poppins, Arial, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.32;
  color: var(--news-ink);
}
#pageid8 #c34 .news-list-view .header h3 a {
  color: inherit !important;
  text-decoration: none !important;
}
#pageid8 #c34 .news-list-view .header h3 a:hover { color: var(--news-red) !important; }
#pageid8 #c34 .news-list-view .article > .teaser-text {
  order: 3;
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0 25px !important;
  padding: 0 !important;
  color: #5d6268;
  font-size: 14px;
  line-height: 1.75;
}
#pageid8 #c34 .news-list-view .teaser-text [itemprop="description"] {
  flex: 1;
  margin-bottom: 23px;
}
#pageid8 #c34 .news-list-view .teaser-text p { margin: 0 0 5px; }
#pageid8 #c34 .news-list-view a.more {
  align-self: flex-start;
  display: inline-flex !important;
  align-items: center;
  gap: 14px;
  margin: auto 0 0;
  padding: 13px 18px !important;
  min-height: 45px;
  background: var(--news-red) !important;
  border: 1px solid var(--news-red) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: white !important;
  text-decoration: none !important;
  font: 700 12px/1.3 Poppins, Arial, sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
#pageid8 #c34 .news-list-view a.more::after {
  content: "\2192";
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}
#pageid8 #c34 .news-list-view a.more:hover {
  background: var(--news-red-dark) !important;
  border-color: var(--news-red-dark) !important;
  color: #fff !important;
}

/* ---------------- NEWS-DETAIL: Artikel und Fotogalerie ---------------- */
#pageid8 #c34 .news-single > .article {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
}
#pageid8 #c34 .news-single .article > .header,
#pageid8 #c34 .news-single .article > .footer,
#pageid8 #c34 .news-single .article > .teaser-text,
#pageid8 #c34 .news-single .article > .news-text-wrap,
#pageid8 #c34 .news-single .article > .news-backlink-wrap {
  max-width: 980px;
  margin-left: auto !important;
  margin-right: auto !important;
}
#pageid8 #c34 .news-single .article > .header {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}
#pageid8 #c34 .news-single .header h1 {
  margin: 0 !important;
  padding: 0 !important;
  font: italic 900 clamp(32px, 4vw, 52px)/1.12 Poppins, Arial, sans-serif;
  letter-spacing: -.035em;
  color: var(--news-ink);
}
#pageid8 #c34 .news-single .header h1::after { display: none !important; }
#pageid8 #c34 .news-single .article > .footer {
  margin-top: 0 !important;
  margin-bottom: 26px !important;
  padding: 0 !important;
  background: transparent;
  border: 0;
}
#pageid8 #c34 .news-single .footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin: 0;
  font-size: 13px;
  color: var(--news-muted);
}
#pageid8 #c34 .news-single .news-list-category {
  display: inline-block;
  color: var(--news-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
#pageid8 #c34 .news-single .article > .teaser-text {
  margin-top: 0 !important;
  margin-bottom: 32px !important;
  padding: 22px 0 6px 22px;
  border-left: 4px solid var(--news-red);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  font-weight: 400;
  color: #484e55;
}
#pageid8 #c34 .news-single .teaser-text p { margin-bottom: 12px; }

/* Fotoreihe: 4 Spalten Desktop, gleich hohe Vorschaubilder */
#pageid8 #c34 .news-single .news-img-wrap {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 25px auto 45px !important;
  padding: 0 !important;
  clear: both;
  float: none !important;
}
#pageid8 #c34 .news-single .news-img-wrap > .outer {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  overflow: hidden;
  border-radius: 0;
  background: #f2f2f2;
}
#pageid8 #c34 .news-single .news-img-wrap .mediaelement,
#pageid8 #c34 .news-single .news-img-wrap a.gallery {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
#pageid8 #c34 .news-single .news-img-wrap a.gallery {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
#pageid8 #c34 .news-single .news-img-wrap a.gallery::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.30);
  color: #fff;
  font: 300 42px/1 Poppins, Arial, sans-serif;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
#pageid8 #c34 .news-single .news-img-wrap a.gallery:hover::after { opacity: 1; }
#pageid8 #c34 .news-single .news-img-wrap img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
#pageid8 #c34 .news-single .news-img-wrap a.gallery:hover img { transform: scale(1.06); }
#pageid8 #c34 .news-single .news-text-wrap {
  font-size: 16px;
  line-height: 1.85;
  color: #454a4f;
}
#pageid8 #c34 .news-single .news-text-wrap p { margin: 0 0 1.35em; }
#pageid8 #c34 .news-single .news-text-wrap strong { color: var(--news-ink); font-weight: 700; }
#pageid8 #c34 .news-single .news-backlink-wrap {
  margin-top: 45px !important;
  padding-top: 26px;
  border-top: 1px solid var(--news-line);
}
#pageid8 #c34 .news-single .news-backlink-wrap a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  color: #fff !important;
  background: var(--news-red);
  border: 1px solid var(--news-red);
  text-decoration: none;
  font: 700 12px/1.3 Poppins, Arial, sans-serif;
  text-transform: uppercase;
  transition: background .25s ease;
}
#pageid8 #c34 .news-single .news-backlink-wrap a::before { content: "\2190"; font-size: 19px; font-weight: 400; }
#pageid8 #c34 .news-single .news-backlink-wrap a:hover { background: var(--news-red-dark); }

/* ---------------- Responsive ---------------- */
@media (max-width: 991.98px) {
  #pageid8 #c34 .news-list-view { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  #pageid8 #c34 .news-single .news-img-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 767.98px) {
  #pageid8 #c34 { padding: 35px 18px 55px; }
  #pageid8 #c34 .news-list-view { grid-template-columns: 1fr; gap: 24px; }
  #pageid8 #c34 .news-list-view .article > .footer { margin: 20px 20px 8px !important; }
  #pageid8 #c34 .news-list-view .article > .header { margin: 0 20px 12px !important; }
  #pageid8 #c34 .news-list-view .article > .teaser-text { margin: 0 20px !important; }
  #pageid8 #c34 .news-single .news-img-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #pageid8 #c34 .news-single .article > .teaser-text { padding-left: 15px; }
  #pageid8 #c34 .news-single .news-text-wrap { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  #pageid8 #c34 .news-list-view > .article,
  #pageid8 #c34 .news-list-view img,
  #pageid8 #c34 .news-single .news-img-wrap img { transition: none; }
}
