:root {
  --betze-rot: #e30511;
  --news-bg: linear-gradient(180deg, #eee, #eee, #fff, #fff);
  --news-shadow: 2px 2px 6px rgba(0,0,0,0.06);
  --news-shadow-hover: 4px 4px 8px rgba(0,0,0,0.08);
  --news-radius: 10px;
}

.news-board {
  max-width: 100%;
  margin: 0 auto 0px;
  padding: 1px 1px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 960px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
}

.news-card {
  background: var(--news-bg)!important;
  border-radius: var(--news-radius);
  box-shadow: var(--news-shadow);
  border: 1px solid #e3e3e3;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
  height: auto !important;
}
.news-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--news-shadow-hover);
}

.news-body {
  padding: 24px 26px 40px;
  text-align: center;
  overflow: hidden;
  max-height: 260px;
  transition: max-height 0.35s ease, padding-bottom 0.35s ease;
}
.news-card.expanded .news-body {
  max-height: 2000px;
  padding-bottom: 20px;
}

.news-title {
  margin: 0 0 12px;
  font-family: "Roboto Slab", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--betze-rot) !important;
}

/* Meta unter Titel */
.news-meta{
  margin: -6px 0 14px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  text-align: center;
}
.news-meta .news-author{ color: var(--betze-rot); font-weight: 700; }
.news-meta .news-separator{ margin: 0 4px; color:#333; }
.news-meta .news-date{ color:#333; font-weight: 600; }

.news-text {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  font-family: "Roboto Slab", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #333;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;  /* 5 Zeilen */
  overflow: hidden;
  text-align: center;
}
.news-text p { margin: 0; }

.news-card.expanded .news-text {
  -webkit-line-clamp: unset;
  max-height: none;
}

.news-toggle-hint {
  margin-top: 14px;
  font-size: 10px;
  font-weight: 500;
  color: #333;
  display: block;
}

.news-tags {
  display: none;
  padding: 10px 24px 18px;
  text-align: center;
}
.news-card.expanded .news-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.news-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1.5px solid #e30511;
  font-size: 12px;
  font-weight: 500;
  background: #fff;
  color: #e30511;
}

/* Footer nur Likebar */
.news-footer {
  border-top: 1px solid #e3e3e3;
  padding: 10px 22px 12px;
  font-size: 10px;
  color: #333;
  text-align: center;
}

/* Likebar */
.news-likebar{
  display:inline-flex;
  gap: 6px;
  vertical-align: middle;
}
.news-like-btn{
  border: 1.5px solid #e3e3e3;
  background: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
  line-height: 1.2;
}
.news-like-btn.is-active{ border-color: var(--betze-rot); }
.news-like-btn:focus{
  outline: none;
  box-shadow: 0 0 0 2px rgba(227,5,17,0.18);
}

/* =========================================================
   Content-Boxen (Fade/Slide) – Option 1 (pixelperfekt)
   ========================================================= */
.news-box{
  border-radius: 10px;
  border: 1px solid #e3e3e3;
  background: #fff;
  padding: 10px 12px;
}

/* closed */
.news-boxes{
  display: grid;
  gap: 10px;
  text-align: left;

  margin-top: 0;
  max-height: 0;
  overflow: hidden;

  opacity: 0;
  transform: none;          /* pixelperfekt */
  visibility: hidden;
  pointer-events: none;

  transition: opacity .25s ease, max-height .35s ease, margin-top .25s ease, visibility 0s linear .35s;
}

/* expanded */
.news-card.expanded .news-boxes{
  margin-top: 14px;
  max-height: 2000px;

  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;

  transition: opacity .25s ease, max-height .35s ease, margin-top .25s ease, visibility 0s;
}

/* Link / CTA */
.news-box--link{
  display:block;
  text-decoration:none !important;
  border: 1.5px solid var(--betze-rot);
  background: rgba(227,5,17,0.04);
}
.news-box--link:hover{
  background: rgba(227,5,17,0.06);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.06);
}
.news-box-title{
  font-family: "Roboto Slab", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--betze-rot);
  line-height: 1.2;
}
.news-box-desc{
  margin-top: 4px;
  font-family: "Roboto Slab", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11.5px;
  color: #333;
  line-height: 1.2;
}

/* Bild */
.news-box--image{
  border: 1px solid var(--betze-rot);
  background: rgba(227,5,17,0.03);
}
.news-box--image a{ display:block; text-decoration:none !important; }
.news-box--image img{
  width: 100%;
  height: auto;
  display:block;
  border-radius: 10px;
  border: 0px solid rgba(0,0,0,0.08);
}
.news-box-caption{
  margin-top: 6px;
  font-size: 12px;
  color:#333;
  font-family: "Roboto Slab", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================================================
   Musik-Box – Playerbutton 1:1 wie Sidebar
   ========================================================= */
.news-box--music{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  border: 1px solid rgba(227,5,17,0.18);
  background: rgba(227,5,17,0.03);
  cursor: pointer;
  user-select: none;
}

.news-music-left{
  display:flex;
  align-items:center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.news-music-head{ min-width:0; }

.news-music-title{
  font-weight: 800;
  font-size: 13px;
  color:#e30511;
}
.news-music-desc{
  margin-top: 2px;
  font-size: 11.5px;
  color:#333;
  line-height: 1.35;
}

/* Button wie Sidebar */
.news-audio-play-btn{
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid var(--betze-rot);
  background: #ffffff;
  color: var(--betze-rot);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  flex: 0 0 auto;
}
.news-audio-play-btn:hover{
  background-color: var(--betze-rot);
  color: #ffffff;
  border-color: var(--betze-rot);
}

/* Icon-Basis */
.news-audio-icon{
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
}

/* PLAY */
.news-audio-play-btn:not(.is-playing) .news-audio-icon{
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}

/* PAUSE */
.news-audio-play-btn.is-playing .news-audio-icon{
  width: 12px;
  height: 12px;
}
.news-audio-play-btn.is-playing .news-audio-icon::before,
.news-audio-play-btn.is-playing .news-audio-icon::after{
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 3px;
  background: currentColor;
}
.news-audio-play-btn.is-playing .news-audio-icon::before{ left: 1px; }
.news-audio-play-btn.is-playing .news-audio-icon::after{ right: 1px; }

/* Code – clean hell (ohne schwarzen Rahmen) */
.news-box--code{
  background: #f6f7f7;
  border: 0;
  box-shadow: none;
  color: #222;
}
.news-box--code pre{
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  color: #222;
}

/* Zitat */
.news-box--quote{
  border-left: 4px solid var(--betze-rot);
  background: rgba(227,5,17,0.03);
}
.news-quote{
  margin: 0;
  font-family: "Roboto Slab", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color:#333;
}
.news-quote-source{
  margin-top: 6px;
  font-size: 11px;
  color:#333;
  font-weight: 600;
}

/* Info/Hinweis */
.news-box--info{ background: rgba(0,0,0,0.02); }
.news-box--info-info{ border-left: 4px solid #333; }
.news-box--info-warn{
  border-left: 4px solid var(--betze-rot);
  background: rgba(227,5,17,0.03);
}
.news-box--info-ok{
  border-left: 4px solid #1f7a1f;
  background: rgba(31,122,31,0.06);
}
.news-info-head{
  font-weight: 700;
  font-size: 12px;
  color:#111;
  margin-bottom: 4px;
}
.news-info-text{
  font-size: 12px;
  color:#333;
  line-height: 1.45;
}

/* Termin (ICS) */
.news-box--event{
  border: 1.5px solid var(--betze-rot);
  background: rgba(227,5,17,0.02);
}
.news-event-title{ font-weight: 700; font-size: 13px; color: #e30511; }
.news-event-meta{ margin-top: 4px; font-size: 11.5px; color:#333; }
.news-event-desc{ margin-top: 8px; font-size: 11.5px; color:#333; line-height: 1.45; }
.news-event-ics{
  display:inline-block;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 18px!important;
  border: 1.5px solid var(--betze-rot);
  color: var(--betze-rot);
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none !important;
}
.news-event-ics:hover{ background: var(--betze-rot); color: #fff!important; }

/* Button-Box */
.news-box--button{
  text-align:center;
  background: rgba(227,5,17,0.03);
  border: 1px solid rgba(227,5,17,0.18);
}
.news-btn{
  display:inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--betze-rot);
  background: #fff;
  color: var(--betze-rot);
  font-weight: 700;
  font-size: 12px;
  text-decoration:none !important;
}
.news-btn:hover{ background: var(--betze-rot); color:#fff; }
.news-btn-desc{ margin-top: 6px; font-size: 11px; color:#333; }

/* Download */
.news-box--download{
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.02);
}
.news-download-link{ display:block; text-decoration:none !important; }
.news-download-title{ font-weight: 800; font-size: 13px; color:#111; }
.news-download-desc{ margin-top: 4px; font-size: 12px; color:#333; }

/* Kontakt */
.news-box--contact{
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.02);
}
.news-contact-row{ display:flex; gap: 10px; align-items:flex-start; }
.news-contact-avatar{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.12);
  flex: 0 0 auto;
}
.news-contact-name{ font-weight: 800; font-size: 13px; color:#111; }
.news-contact-role{ margin-top: 2px; font-size: 12px; color:#333; }
.news-contact-links{
  margin-top: 6px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.news-contact-links a{
  font-size: 12px;
  color: var(--betze-rot);
  font-weight: 700;
  text-decoration:none !important;
}
.news-contact-note{ margin-top: 6px; font-size: 11px; color:#333; }

/* Lightbox */
.news-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.74);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999999;
}
.news-lightbox.is-open{ display:flex; }
.news-lightbox img{
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
}
.news-lightbox-close{
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  user-select:none;
}

/* SETTINGS: Spalten – am Ende der Datei, damit es garantiert gewinnt */
.news-board.cols-1 .news-grid{
  grid-template-columns: 1fr !important;
}

.news-board.cols-2 .news-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}