/* news.css — Uebersicht und Artikel der Neuigkeiten.
   Eigene Datei, damit web.css unberuehrt bleibt: daran arbeiten mehrere gleichzeitig.
   Keine Farbe steht hier direkt — alles kommt aus tokens.css. */

/* ================================================================== Gemeinsam */

.nw-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nw-meta { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--txt-4); font-weight: 600;
           font-variant-numeric: tabular-nums; }
.nw-meta svg { width: 13px; height: 13px; }
.nw-meta-hell { color: var(--txt-2); }

.nw-autor { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--txt-3); }
.nw-autor b { color: var(--txt-2); font-weight: 700; }

/* ================================================================== Uebersicht */

/* Karten sind hier Verweise. Ein <a> ist von Haus aus inline, also bringt JEDE Kartenart
   ihr eigenes display mit (.nw-top, .nw-card) — eine gemeinsame Regel wie `.nw .card`
   waere spezifischer als diese Klassen und wuerde sie wieder ueberschreiben. */

/* ---- Der neueste Eintrag ueber die volle Breite */

.nw-top { display: grid; grid-template-columns: 42% 1fr; overflow: hidden; }
.nw-top-art { position: relative; }
.nw-top-art img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; transition: transform var(--t-slow); }
.nw-top:hover .nw-top-art img { transform: scale(1.04); }
/* Der Verlauf nach rechts laesst das Bild in die Karte laufen, statt an einer Kante zu enden. */
.nw-top-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, color-mix(in srgb, var(--card-bottom) 80%, transparent) 100%); }

.nw-top-txt { display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
              gap: 13px; padding: 30px 34px; min-width: 0; }
.nw-top-txt h2 { font-size: 30px; line-height: 1.18; transition: color var(--t); }
.nw-top:hover h2 { color: var(--blue-lite); }
.nw-top-txt p { font-size: 15px; line-height: 1.65; color: var(--txt-2); max-width: 54ch; }
.nw-btn { margin-top: 5px; }

.nw-sect-head { margin-top: 34px; margin-bottom: 16px; }
.nw-sect-head h2 { font-size: 19px; }

/* ---- Die uebrigen als Raster */

.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }

.nw-card { display: flex; flex-direction: column; overflow: hidden; }
.nw-card-art { overflow: hidden; }
.nw-card-art img { width: 100%; height: 170px; object-fit: cover; transition: transform var(--t-slow); }
.nw-card:hover .nw-card-art img { transform: scale(1.05); }
.nw-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
                padding: 16px 18px 16px; flex: 1; min-width: 0; }
.nw-card-body h3 { font-size: 16px; font-weight: 700; line-height: 1.3; transition: color var(--t); }
.nw-card:hover .nw-card-body h3 { color: var(--blue-lite); }
/* Zwei Zeilen Anriss: laenger wird das Raster unruhig, kuerzer sagt der Anriss nichts. */
.nw-teaser { font-size: 13px; line-height: 1.55; color: var(--txt-3);
             display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
             -webkit-box-orient: vertical; overflow: hidden; }

.nw-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px;
           padding: 12px 18px 14px; border-top: 1px solid var(--line-soft); margin-top: auto; }
.nw-date { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--txt-4); font-variant-numeric: tabular-nums; }
.nw-date svg { width: 12px; height: 12px; }
.nw-more { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700;
           color: var(--txt-3); transition: color var(--t); }
.nw-more svg { width: 13px; height: 13px; }
.nw-card:hover .nw-more { color: var(--blue-lite); }

/* ================================================================== Artikel */

.nw-hero { position: relative; min-height: 340px; overflow: hidden; display: flex; align-items: flex-end;
           border-bottom: 1px solid var(--line-soft); }
.nw-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Ohne diesen Verlauf steht weisse Schrift auf einem hellen Bildausschnitt — je nach Bild
   mal lesbar, mal nicht. Mit ihm immer. */
.nw-hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-deep) 20%, transparent) 0%,
                                      color-mix(in srgb, var(--bg-deep) 66%, transparent) 55%,
                                      var(--bg) 100%); }
.nw-hero-in { position: relative; z-index: 2; width: 100%; padding: 28px 0 30px;
              display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.nw-hero-in h1 { font-size: 42px; line-height: 1.12; max-width: 22ch;
                 text-shadow: 0 5px 26px color-mix(in srgb, var(--bg-deep) 75%, transparent); }
.nw-zurueck { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--txt-2);
              padding: 6px 12px 6px 9px; border-radius: var(--r-pill);
              background: color-mix(in srgb, var(--bg-deep) 55%, transparent); border: 1px solid var(--line);
              transition: color var(--t), border-color var(--t); }
.nw-zurueck svg { width: 14px; height: 14px; }
.nw-zurueck:hover { color: var(--txt); border-color: var(--line-strong); }

.nw-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }

/* ---- Der Text selbst: mehr Luft als eine Karte sonst hat, weil man ihn LIEST */

.nw-text { font-size: 15.5px; line-height: 1.85; color: var(--txt-2); padding: 30px 36px 26px; }
.nw-lead { font-size: 18px; line-height: 1.65; color: var(--txt); font-weight: 600;
           padding-bottom: 20px; margin-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.nw-text p { margin: 18px 0; max-width: 68ch; }
.nw-text b { color: var(--txt); font-weight: 700; }
/* Zwischenueberschrift mit kurzem blauem Strich davor — genug, um beim Ueberfliegen
   haengen zu bleiben, ohne wie ein neuer Artikel auszusehen. */
.nw-text h3 { position: relative; margin: 34px 0 12px; padding-top: 14px; font-size: 19px; color: var(--txt);
              scroll-margin-top: calc(var(--head-h) + 20px); }
.nw-text h3::before { content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 3px; border-radius: 3px;
                      background: var(--blue); box-shadow: 0 0 10px var(--blue-glow); }
.nw-text ul { margin: 14px 0 18px; display: flex; flex-direction: column; gap: 9px; max-width: 68ch; }
/* Eigener Aufzaehlungspunkt statt list-style: der Standardpunkt sitzt auf dunklem Grund
   zu hoch und nimmt die Textfarbe nicht an. */
.nw-text li { position: relative; padding-left: 22px; }
.nw-text li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px;
                      border-radius: 50%; background: var(--blue); }
.nw-ende { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
           margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.nw-ende .nw-autor { font-size: 13px; }

/* ---- Inhaltsleiste rechts */

.nw-side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: calc(var(--head-h) + 16px); }

.nw-info { display: flex; flex-direction: column; gap: 14px; }
.nw-info-autor { display: flex; align-items: center; gap: 12px; }
.nw-info-autor span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.nw-info-autor i { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--txt-4); }
.nw-info-autor b { font-size: 15px; font-weight: 800; transition: color var(--t); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-info-autor:hover b { color: var(--blue-lite); }
.nw-info-liste { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.nw-info-liste > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.nw-info-liste > div + div { border-top: 1px solid var(--line-soft); }
.nw-info-liste dt { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--txt-3); }
.nw-info-liste dt svg { width: 14px; height: 14px; color: var(--txt-4); }
.nw-info-liste dd { font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.nw-info-liste dd i { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--txt-4); }

.nw-inhalt { padding: 8px; }
.nw-inhalt a { height: 38px; font-size: 13px; }
.nw-inhalt a i { width: 20px; flex: none; font-style: normal; font-size: 11px; font-weight: 800; color: var(--txt-4);
                 font-variant-numeric: tabular-nums; }

/* ---- Discord: getoente Karte, damit sie sich vom Rest der Spalte abhebt */
.nw-dc { display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
         background: linear-gradient(180deg, color-mix(in srgb, var(--purple) 14%, var(--card-top)),
                                             color-mix(in srgb, var(--purple) 6%, var(--card-bottom)));
         border-color: color-mix(in srgb, var(--purple) 34%, transparent); }
.nw-dc-ico { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center;
             background: color-mix(in srgb, var(--purple) 20%, transparent); color: var(--purple);
             border: 1px solid color-mix(in srgb, var(--purple) 34%, transparent); }
.nw-dc-ico svg { width: 21px; height: 21px; }
.nw-dc h3 { font-size: 15.5px; }
.nw-dc p { font-size: 13px; line-height: 1.6; color: var(--txt-2); }
.nw-dc .btn { margin-top: 6px; }

/* ---- Weitere Nachrichten unter dem Artikel */
.nw-mehr { margin-top: 40px; }
.nw-mehr .sect-head h2 { font-size: 21px; }

/* ================================================================== Schmale Fenster */

@media (max-width: 1000px) {
  .nw-top { grid-template-columns: 1fr; }
  .nw-top-art img { height: 210px; min-height: 0; }
  .nw-top-art::after { background: linear-gradient(180deg, transparent 50%,
                        color-mix(in srgb, var(--card-bottom) 85%, transparent) 100%); }
  .nw-top-txt { padding: 22px 24px 26px; }
  .nw-top-txt h2 { font-size: 24px; }
  .nw-body { grid-template-columns: 1fr; }
  .nw-side { position: static; }
  .nw-text { padding: 24px 22px 22px; }
}
@media (max-width: 640px) {
  .nw-hero { min-height: 260px; }
  .nw-hero-in h1 { font-size: 28px; }
  .nw-grid { grid-template-columns: 1fr; }
  .nw-text { font-size: 15px; padding: 20px 18px 18px; }
  .nw-lead { font-size: 16px; }
}

/* ================================================================== Release-Post (23.09.2026) */
/* Enrico: "die Seite muss riesig wirken, oben groß das Bild vom Banner". Der Release-Beitrag bekommt
   das Banner der Startseite in voller Höhe und den Titel in der Schrift des Schriftzugs. */
.nw-hero-release { min-height: min(62vh, 560px); }
.nw-hero-release > img { object-position: 50% 38%; }
.nw-hero-release .nw-hero-in { padding: 40px 0 44px; }
.nw-hero-release .nw-hero-in h1 {
  max-width: 18ch; font: 800 clamp(40px, 5vw, 72px)/.98 'Changa', var(--f-head); text-transform: uppercase;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(180deg, #ffffff 0%, #eef2f7 42%, #bcc7d7 100%);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .6)); text-shadow: none;
}
.badge-release { color: #1c1204; background: linear-gradient(180deg, #ffe07a 0%, #f0a524 100%); box-shadow: 0 0 16px rgba(240, 165, 36, .55); letter-spacing: .08em; }
