.newsitem-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
}

/* ---- Gemeinsame Spalten-Grundlage (fuer alle Layout-Varianten) ---- */
.newsitem-col {
    box-sizing: border-box;
    width: 100%;
}
.newsitem-col--padded {
    padding-top: 1.5rem;
}
.newsitem-col--third {
    flex: 1 1 100%;
}
@media (min-width: 48em) {
    .newsitem-col--third {
        flex: 1 1 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
}
@media (min-width: 61.99em) {
    .newsitem-col--third {
        flex: 1 1 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
    }
}

/* ==========================================================================
   LAYOUT 5 - "News List Startpage/Projekte": Bild oben mit Kategorie-
   Badge, Titel, Teaser, Datum, Button "Mehr erfahren".
   ========================================================================== */
.newsitem-card-clean {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.newsitem-card-clean a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.newsitem-card-clean__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.newsitem-card-clean__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Kategorie-Badge, unten rechts auf dem Bild. Grundfarbe Lime; einzelne
   Kategorien lassen sich ueber den kleingeschriebenen Kategorie-Titel
   als Klasse gezielt umfaerben (Klassenname = Kategorie-Titel
   klein geschrieben, z. B. "termine" fuer die Kategorie "Termine"). */
.newsitem-card-clean__badge {
    position: absolute;
    right: 0rem;
    bottom: 0rem;
    z-index: 1;
    padding: 0.5rem 1.1rem;
    border-radius: 0 15px 0 0;
    background: #B1C800;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}
.newsitem-card-clean__badge--termine,
.newsitem-card-clean__badge--veranstaltung,
.newsitem-card-clean__badge--veranstaltungen,
.newsitem-card-clean__badge--event,
.newsitem-card-clean__badge--events {
    background: #003064;
}

.newsitem-card-clean__body {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.25rem 1.5rem;
}
.newsitem-card-clean__title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
    margin: 0 0 0.75rem;
}
.newsitem-card-clean__teaser {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #6a6a6a;
    flex: 1 1 auto;
}
.newsitem-card-clean__date {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #003064;
    margin: 1rem 0 1.25rem;
}
.newsitem-card-clean__button {
    align-self: flex-start;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    background: #B1C800;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}
.newsitem-card-clean:hover .newsitem-card-clean__button {
    background: #9bb000;
    transition: background 0.2s ease;
}
.newsitem-card-clean:hover .newsitem-card-clean__title {
    text-decoration: underline;
}

/* ==========================================================================
   LAYOUT 3 - Karte mit Hintergrundbild (voller Kachel-Hintergrund statt
   separatem Bildbereich).
   ========================================================================== */
.newsitem-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 22rem;
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff;
}
.newsitem-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.75) 100%);
}
.newsitem-card a {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}
.newsitem-card__body {
    padding: 1.5rem;
}
.newsitem-card__date {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.85;
    margin: 0 0 0.35rem;
}
.newsitem-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

/* ==========================================================================
   STANDARD-LAYOUT (else-Zweig) - Bild links, Text mitte, Pfeil rechts,
   nebeneinander in einer Zeile (Ersatz fuer row/col-md-3/col-md-7/
   col-md-1 offset-md-1).
   ========================================================================== */
.newsitem-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.newsitem-row__col {
    box-sizing: border-box;
}
.newsitem-row__col--image {
    flex: 0 0 100%;
}
.newsitem-row__col--content {
    flex: 1 1 100%;
}
.newsitem-row__col--arrow {
    flex: 0 0 auto;
    margin-left: auto;
}
@media (min-width: 48em) {
    .newsitem-row__col--image {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .newsitem-row__col--content {
        flex: 1 1 0;
    }
    .newsitem-row__col--arrow {
        flex: 0 0 auto;
    }
}
.newsitem-arrow-more {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 1.2rem;
}
.newsitem-arrow-more a {
    color: inherit;
}

/* ==========================================================================
   Barrierefreiheit: Fokus-Sichtbarkeit fuer die kompletten Karten-Links
   (ergaenzt die bereits bestehende globale :focus-visible-Regel in
   accessibility.css um den spezifischen Karten-Kontext).
   ========================================================================== */
.newsitem-card-clean a:focus-visible,
.newsitem-card a:focus-visible {
    outline: 3px solid #003064;
    outline-offset: 2px;
    border-radius: 6px;
}

/* DETAIL-SEITE */
.row.newsContent {
  position:relative;
  background:#fff;
  margin-top:-100px;
  padding:50px;
  border-radius: 25px 25px 0 0;
}

.news.news-single .content_holder,
.news.news-single .container {
  max-width:1200px
}
.news-text-wrap {
  margin-top:3rem
}
.blog-detail .contactArea {
  top:150px !important
}
.blog-detail .subscribe {
  padding:0
}

.news.news-single .headerImage {
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  width:100vw;
  height:50vh;
  max-height:500px;
  overflow:hidden;
  z-index:0
}
.news.news-single .headerImage img {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:-1
}

/* Layout 6 (Blog) ohne Headerbild - das Template laesst den Bild-Block
   dann weg (siehe News/Detail.html). Statt des Bildes gibt es Abstand
   nach oben, und der Inhalt ueberlappt nicht mehr (margin-top:-100px
   bei .row.newsContent ist nur fuer das Bild gedacht). */
.news.news-single:has(.blog-detail):not(:has(.headerImage)) {
  margin-top: 150px;
}
.news.news-single .blog-detail:not(:has(.headerImage)) .row.newsContent {
  margin-top: 0;
}
@media (max-width: 61.99em) {
  .news.news-single:has(.blog-detail):not(:has(.headerImage)) {
    margin-top: 60px;
  }
}
/* DETAIL-SEITE */

/* ==========================================================================
   News-Layout 7: "Pressemitteilung" - schmale Zeile mit Rahmen,
   Datum/Kategorie oben, fette Ueberschrift, rechts ein Link.
   ========================================================================== */
.newsitem-simple {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.newsitem-simple:hover,
.newsitem-simple:focus-within {
    border-color: #a6bf00;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.newsitem-simple__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 1.4rem;
    color: inherit;
    text-decoration: none;
}
.newsitem-simple__body {
    min-width: 0;
}
.newsitem-simple__meta {
    display: block;
    color: #6a6a6a;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
.newsitem-simple__title {
    display: block;
    font-weight: 700;
    color: #1a2b5c;
}
.newsitem-simple__cta {
    flex: 0 0 auto;
    font-weight: 700;
    color: #1a2b5c;
    white-space: nowrap;
}
.newsitem-simple:hover .newsitem-simple__cta,
.newsitem-simple:focus-within .newsitem-simple__cta {
    color: #a6bf00;
}
@media (max-width: 34em) {
    .newsitem-simple__link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}