:root{
  --blue-dark:#000a1b;
  --blue-light:#1296ff;

  --card-radius:2px;
  --card-gap:14px;
  --shadow: 0 10px 24px rgba(0,0,0,.22);
  --shadow-hover: 0 16px 40px rgba(0,0,0,.32);
}

/* GRID */
.mycn-news-wrapper{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:var(--card-gap);
}

/* CARD */
.mycn-news-item{
  position:relative;
  overflow:hidden;
  border-radius:var(--card-radius);
  background:#0b1222;
  box-shadow:var(--shadow);
  transform:translateZ(0);
}

.mycn-news-link{
  display:block;
  height:100%;
  text-decoration:none;
  color:#fff;
}

/* Bildfläche */
.mycn-news-bg{
  position:relative;
  width:100%;
  height:320px;
  overflow:hidden;
}

.mycn-news-bg-img{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transition:transform .35s ease, filter .35s ease;
  transform:scale(1);
}

/* subtiler Dark-Layer für Lesbarkeit */
.mycn-news-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to top,
    rgba(0,10,27,.92) 0%,
    rgba(0,10,27,.55) 35%,
    rgba(0,10,27,.10) 70%,
    rgba(0,10,27,0) 100%
  );
  pointer-events:none;
}

/* Badge */
.mycn-news-tag{
  position:absolute;
  top:14px;
  left:14px;
  z-index:3;

  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:6px 10px;
  border-radius:999px;

  background:rgba(18,150,255,.92);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);

  font-size:.78rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  max-width:calc(100% - 28px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Overlay unten */
.mycn-news-overlay{
  position:absolute;
  left:0; right:0; bottom:0;
  z-index:2;

  padding:18px 18px 16px;
  display:flex;
  flex-direction:column;
  gap:6px;

  /* weg mit der Vollfläche, wirkt direkt besser */
  background:transparent;
  height:auto;
}

.mycn-news-date{
  font-family:'Oxanium',sans-serif !important;
  font-size:.9rem;
  opacity:.92;
  margin:0;
}

.mycn-news-title{
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:1.15rem;
  font-weight:650;
  line-height:1.2;
  margin:0;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Readmore Button unten rechts in der Kachel */
.mycn-readmore{
  position:absolute;
  right:14px;
  bottom:14px;
  z-index:4;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:52px;
  height:44px;

  border-radius:2px;
  background:rgba(0,10,27,.88);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;

  transition:transform .2s ease, background .2s ease, border-color .2s ease;
}

.mycn-readmore i{ font-size:1.05rem; }

/* Hover */
.mycn-news-link:hover .mycn-news-bg-img{
  transform:scale(1.06);
  filter:saturate(1.05);
}
.mycn-news-link:hover .mycn-news-item{
  box-shadow:var(--shadow-hover);
}
.mycn-news-link:hover .mycn-readmore{
  transform:translateY(-2px);
  border-color:rgba(18,150,255,.6);
}

/* Footer brauchst du eigentlich nicht mehr – kann leer bleiben */
.mycn-news-footer{
  display:none;
}

/* Pager rechts unten UNTER dem Grid */
.mycn-news-pager{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:14px;
}

.mycn-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:2px;

  background:rgba(0,10,27,.88);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  text-decoration:none;

  transition:transform .15s ease, border-color .15s ease;
}
.mycn-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(18,150,255,.6);
}
	
.mycn-news-item{
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.mycn-news-footer{
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  background: transparent !important;
  padding: 0;
  margin: 0;
  display: block;
}

.mycn-readmore{
  position: static;           
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 44px;
  border-radius: 2px;        
  background: rgba(0,10,27,.9);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  transition: transform .15s ease, border-color .15s ease;
}

.mycn-news-link:hover .mycn-readmore{
  transform: translateY(-1px);
  border-color: rgba(18,150,255,.7);
}
	
.mycn-news-overlay{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;

  /* Lesbarkeit + wirkt trotzdem modern */
  background: linear-gradient(
    to top,
    rgba(0,10,27,.92) 0%,
    rgba(0,10,27,.72) 55%,
    rgba(0,10,27,0) 100%
  );

  height: auto;
  min-height: 140px;
}

.mycn-news-tag{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;

  padding: 6px 10px;
  border-radius: 2px;                 
  max-width: calc(100% - 24px);

  background: rgba(0,10,27,.88);     
  border: 1px solid rgba(18,150,255,.85);
  color: #ffffff;

  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mycn-news-bg-img{
  transition: transform .35s ease;
}
.mycn-news-link:hover .mycn-news-bg-img{
  transform: scale(1.05);
}

	
/* Mobil */
@media (max-width:768px){
  .mycn-news-wrapper{ grid-template-columns:1fr; }
  .mycn-news-bg{ height:300px; }
}

.mycn-news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mycn-news-row-link {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    text-decoration: none;
    color: #fff;
    align-items: stretch;
}

.mycn-news-row-thumb {
    background-color: #222;
    background-size: cover;
    background-position: center;
    height: 140px;
}

.mycn-news-row-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mycn-news-row-tag {
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    background: var(--blue-light);
    border: 1px solid var(--blue-dark);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .75rem;
}

.mycn-news-row-date {
    font-size: .85rem;
    opacity: .85;
}

.mycn-news-row-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
}

.mycn-news-row-excerpt {
    opacity: .9;
    line-height: 1.4;
}

.mycn-news-row-more {
    margin-top: 6px;
    color: var(--blue-light);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .8rem;
}

.mycn-news-list-nav {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.mycn-news-list-nav a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-light);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .mycn-news-row-link {
        grid-template-columns: 1fr;
    }
    .mycn-news-row-thumb {
        height: 180px;
    }
}

/* =========================
   NEWS LIST (Variante 1)
   Fix: keine unlesbaren blue-on-blue Farben
   ========================= */

.mycn-news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Jede Zeile als "Card" auf dunklem Hintergrund */
.mycn-news-row {
    background: var(--blue-dark, #000a1b);
}

/* Link-Farben in der Liste hart setzen */
.mycn-news-row-link,
.mycn-news-row-link:visited,
.mycn-news-row-link:hover,
.mycn-news-row-link:focus {
    color: #ffffff !important;
    text-decoration: none;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    align-items: stretch;
    padding: 12px;
}

/* Thumbnail */
.mycn-news-row-thumb {
    background-color: #111;
    background-size: cover;
    background-position: center;
    height: 140px;
}

/* Content */
.mycn-news-row-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Unterkategorie-Badge: Hintergrund blue-light, Text weiß (fix) */
.mycn-news-row-tag {
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    background: var(--blue-light, #1a74bb);
    border: 1px solid var(--blue-dark, #000a1b);
    color: #ffffff !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Datum */
.mycn-news-row-date {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.85rem;
}

/* Titel */
.mycn-news-row-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
    color: #ffffff !important;
}

/* Excerpt */
.mycn-news-row-excerpt {
    color: rgba(255,255,255,0.9) !important;
    line-height: 1.4;
}

/* Weiterlesen: NICHT blau auf blau -> weiß, optional Icon blue-light */
.mycn-news-row-more {
    margin-top: 6px;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    opacity: 0.9;
}

.mycn-news-row-more i {
    color: var(--blue-light, #1a74bb) !important;
    margin-left: 6px;
}

/* Navigation unten rechts */
.mycn-news-list-nav {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.mycn-news-list-nav a,
.mycn-news-list-nav a:visited {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-light, #1a74bb);
    color: #ffffff !important;
    text-decoration: none;
}

/* Mobil */
@media (max-width: 768px) {
    .mycn-news-row-link {
        grid-template-columns: 1fr;
    }
    .mycn-news-row-thumb {
        height: 180px;
    }
}

/* ===== Hover-Effekt für die News-Liste (dezent, gut lesbar) ===== */

.mycn-news-row-link {
    transition: background-color 0.15s ease;
}

.mycn-news-row-link:hover,
.mycn-news-row-link:focus {
    background-color: rgba(255, 255, 255, 0.05);
    outline: none;
}

/* Optional: kleines Zoom im Bild beim Hover */
.mycn-news-row-thumb {
    transition: transform 0.2s ease;
}

.mycn-news-row-link:hover .mycn-news-row-thumb,
.mycn-news-row-link:focus .mycn-news-row-thumb {
    transform: scale(1.03);
}

/* Optional: "Weiterlesen" etwas stärker sichtbar */
.mycn-news-row-more {
    transition: opacity 0.15s ease;
    opacity: 0.85;
}

.mycn-news-row-link:hover .mycn-news-row-more,
.mycn-news-row-link:focus .mycn-news-row-more {
    opacity: 1;
}
