/* Neuigkeiten (28.10.2026) - /community/articles und /community/article/{slug}, nach Vorlage des Betreibers.
   Kopfkasten wie Fotos/Einstellungen, grosse Bildkarten, Artikel mit Liste links und Kopfkarte. Farben nur ueber
   Theme-Marken (--th-*), Rueckfall = hell. */

.nw-seite { display: flex; flex-direction: column; gap: 14px; }
.nw-karte { background: var(--th-karte, #fff); border: 1px solid var(--th-rand, #dcdad5); border-radius: 14px; box-shadow: var(--th-schatten, 0 2px 0 rgba(0, 0, 0, .05)); color: var(--th-text, #222); }
.nw-leer { margin: 0; padding: 22px; text-align: center; color: var(--th-text-leise, #8a8a8a); font-size: 13px; }
.nw-leise { color: var(--th-text-leise, #8a8a8a); font-size: 13px; }
.nw-mitte { text-align: center; padding: 10px 0; }

/* Kopf mit Suche rechts */
.nw-kopf { display: flex; align-items: center; gap: 14px; padding: 14px 18px; flex-wrap: wrap; }
/* Kreis fest 54 x 54, Symbol unskaliert mittig (object-fit: none) - nicht quadratische Symbole machten den Kreis
   sonst zum Oval und ragten heraus (Betreiber: "das ist auch nicht ganz drin") */
.nw-kopf > img { flex: none; width: 54px; height: 54px; object-fit: none; padding: 0; border-radius: 50%; background: var(--th-flaeche, #eef1f6); }
/* News-Symbol des Betreibers so gross wie die Kamera der Fotos-Seite (Betreiber: "das von Neuigkeiten so gross machen
   wie bei Fotos"): news-symbol.png 44 x 45, hochwertig aus news.png (87 x 89) verkleinert, im 60er-Kreis */
.nw-kopf > img.nw-symbol { width: 60px; height: 60px; object-fit: none; padding: 0; border-radius: 50%; background: var(--th-flaeche, #eef1f6); margin: 0; }
.nw-kopftext { flex: 1; min-width: 200px; }
.nw-kopf h1 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; }
.nw-kopf p { margin: 2px 0 0; font-size: 13px; color: var(--th-text-leise, #8a8a8a); }
.nw-suche { width: 100%; max-width: 330px; height: 40px; box-sizing: border-box; padding: 0 14px; border-radius: 10px; font: inherit; font-size: 13.5px;
    background: var(--th-feld, #fff); border: 1px solid var(--th-feld-rand, #d7d5cf); color: var(--th-text, #222); }
.nw-suche::placeholder { color: var(--th-text-blass, #9a9a9a); }
.nw-suche:focus, .nw-suche:focus-visible { outline: none; border-color: var(--th-auswahl-rand, #7fb5cc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--th-auswahl-rand, #7fb5cc) 25%, transparent); }

/* Karten */
/* Drei grosse Karten je Reihe wie in der Vorlage ("man sieht mehr von den News, sie sind groesser") */
.nw-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .nw-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .nw-raster { grid-template-columns: 1fr; } }
.nw-artikel { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.nw-artikel[hidden] { display: none; }
.nw-artikel:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.nw-bild { display: block; aspect-ratio: 16 / 9; background: var(--th-flaeche, #f1f1ee) center / cover no-repeat; }  /* weich skaliert - "nicht verpixelt" */
.nw-rumpf { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 16px; }
.nw-rumpf small { font-size: 12px; color: var(--th-text-leise, #8a8a8a); }
.nw-rumpf b { font-size: 17px; line-height: 1.3; color: var(--th-text, #222); }
.nw-lesen { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--th-text-leise, #666); }
.nw-lesen i { font-style: normal; margin-left: auto; order: 2; transition: transform .15s; }
.nw-artikel:hover .nw-lesen i { transform: translateX(3px); }
.nw-herzzahl { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 700; color: #ed4956; }
.nw-herzzahl svg { width: 14px; height: 14px; fill: #ed4956; }
.nw-seiten:empty { display: none; }

/* Artikelseite */
.nw-zurueck { align-self: flex-start; display: inline-flex; padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 700; text-decoration: none;
    background: var(--th-karte, #fff); border: 1px solid var(--th-rand, #dcdad5); color: var(--th-text, #222); }
.nw-zurueck:hover { border-color: var(--th-rand-hover, #b9b6af); }
.nw-artikelseite { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .nw-artikelseite { grid-template-columns: 1fr; } .nw-liste { order: 2; } }

.nw-liste { padding: 14px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 14px; }
.nw-liste h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.nw-liste .nw-suche { max-width: none; height: 36px; }
.nw-liste nav { display: flex; flex-direction: column; gap: 2px; max-height: 70vh; overflow-y: auto; }
.nw-eintrag { display: flex; align-items: center; gap: 10px; padding: 7px; border-radius: 10px; text-decoration: none; color: var(--th-text, #222); }
.nw-eintrag[hidden] { display: none; }
.nw-eintrag:hover { background: var(--th-hover, #f3f2ee); }
.nw-eintrag.ist-an { background: var(--th-flaeche, #f1f1ee); }
.nw-mini { flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--th-flaeche, #e6e4df) center / cover no-repeat; }
.nw-eintrag span:last-child { min-width: 0; display: flex; flex-direction: column; }
.nw-eintrag small { font-size: 11px; color: var(--th-text-leise, #8a8a8a); }
.nw-eintrag b { font-size: 12.5px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.nw-hauptteil { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.nw-marke { font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--th-text-leise, #8a8a8a); }
/* Kopfkarte als Bild-Banner: Bild ueber die ganze Breite, Verlauf von links fuer die Schrift (in jedem Design gleich) */
.nw-banner { position: relative; overflow: hidden; min-height: 230px; display: flex; align-items: center; color: #fff;  /* Text mittig ("das muss hoeher") */
    background: #1d1830 center / cover no-repeat; }
.nw-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 8, 20, .88) 0%, rgba(10, 8, 20, .62) 45%, rgba(10, 8, 20, .08) 100%); }
.nw-banner-text { position: relative; z-index: 1; max-width: 620px; padding: 26px 28px 22px; display: flex; flex-direction: column; gap: 6px; }
.nw-banner h1 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.15; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.nw-banner .nw-kurz { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .85); }
.nw-banner .nw-autor { margin-top: 12px; align-self: flex-start; padding: 5px 14px 5px 5px; border-radius: 30px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(4px); }
.nw-banner .nw-autor small { color: rgba(255, 255, 255, .75); }
.nw-banner .nw-autor a, .nw-banner .nw-autor b { color: #fff; }
.nw-banner .nw-kopfbild { background: rgba(255, 255, 255, .2); }
.nw-banner .nw-alter { z-index: 1; }
@media (max-width: 640px) { .nw-banner { min-height: 200px; } .nw-banner h1 { font-size: 22px; } .nw-banner-text { padding: 18px; } }
.nw-kopfbild { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--th-flaeche, #f1f1ee); display: flex; align-items: center; justify-content: center; }
.nw-kopfbild img { flex: none; }

.nw-text { padding: 22px 26px; }
.nw-inhalt { font-size: 14px; line-height: 1.7; color: var(--th-text, #333); overflow-wrap: anywhere; }
.nw-inhalt h1, .nw-inhalt h2, .nw-inhalt h3 { margin: 18px 0 8px; line-height: 1.3; color: var(--th-text, #222); }
.nw-inhalt h1 { font-size: 22px; } .nw-inhalt h2 { font-size: 19px; } .nw-inhalt h3 { font-size: 16px; }
.nw-inhalt > :first-child { margin-top: 0; }
.nw-inhalt p { margin: 0 0 12px; }
.nw-inhalt a { color: var(--th-verweis, #1e6f93); }
.nw-inhalt img { max-width: 100%; height: auto; border-radius: 10px; }
.nw-inhalt ul, .nw-inhalt ol { margin: 0 0 12px; padding-left: 22px; }
.nw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.nw-tags span { padding: 2px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 700; color: #fff; }

/* Herz */
.nw-herzleiste { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--th-rand, #e6e4df); font-size: 13.5px; }
.nw-herz { width: 42px; height: 42px; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; color: var(--th-text, #222); }
.nw-herz:hover:not(:disabled) { background: var(--th-hover, #f3f2ee); }
.nw-herz:disabled { cursor: default; opacity: .6; }
.nw-herz svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.nw-herz.ist-an svg { fill: #ed4956; stroke: #ed4956; }
.nw-poch { animation: nw-poch .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes nw-poch { 0% { transform: scale(1); } 30% { transform: scale(1.3); } 60% { transform: scale(.9); } 100% { transform: scale(1); } }

/* Kommentare */
.nw-kommentare { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.nw-kommentare h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; }
.nw-zahl { min-width: 22px; padding: 0 7px; border-radius: 9px; font-size: 12px; line-height: 20px; text-align: center; background: var(--th-flaeche, #f1f1ee); border: 1px solid var(--th-rand, #e6e4df); }
.nw-schreiben { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--th-flaeche, #f7f7f5); border: 1px solid var(--th-rand, #e6e4df); }
.nw-schreiben-rumpf { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.nw-schreiben-rumpf > b { display: inline-flex; align-items: center; font-size: 13.5px; }
.nw-schreiben textarea { width: 100%; min-height: 80px; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; resize: vertical; font: inherit; font-size: 13.5px;
    background: var(--th-feld, #fff); border: 1px solid var(--th-feld-rand, #d7d5cf); color: var(--th-text, #222); }
.nw-schreiben textarea::placeholder { color: var(--th-text-blass, #9a9a9a); }
.nw-schreiben textarea:focus { outline: none; border-color: var(--th-auswahl-rand, #7fb5cc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--th-auswahl-rand, #7fb5cc) 25%, transparent); }
.nw-schreiben-fuss { display: flex; align-items: center; justify-content: space-between; }
.nw-schreiben-fuss small { font-size: 11.5px; color: var(--th-text-leise, #8a8a8a); }
.nw-schreiben-fuss button { height: 36px; padding: 0 16px; border: 0; border-radius: 9px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; background: #3BA800; color: #fff; }
.nw-schreiben-fuss button:disabled { background: var(--th-rand, #d7d5cf); color: var(--th-text-blass, #8a8a8a); cursor: default; }
.nw-fehler { margin: 0; font-size: 12.5px; color: var(--th-schlecht-text, #c0392b); }
.nw-kommentarliste { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.nw-kommentar { display: flex; gap: 12px; align-items: flex-start; }
.nw-kommentar-rumpf { flex: 1; min-width: 0; }
.nw-kommentar-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nw-kommentar-kopf a { font-weight: 700; font-size: 13.5px; color: var(--th-text, #222); text-decoration: none; display: inline-flex; align-items: center; }
.nw-kommentar-kopf a:hover { text-decoration: underline; }
.nw-kommentar-kopf small { font-size: 11.5px; color: var(--th-text-leise, #8a8a8a); }
.nw-kommentar-kopf form { margin: 0 0 0 auto; }
.nw-loeschen { border: 0; background: none; padding: 0; font: inherit; font-size: 11.5px; font-weight: 700; color: var(--th-text-leise, #8a8a8a); cursor: pointer; }
.nw-loeschen:hover { color: #d33a3a; }
.nw-kommentar p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .nw-poch { animation: none; } .nw-artikel { transition: none; } }

/* Banner: Alter oben rechts, Autor (Kopf + zwei Zeilen) */
.nw-alter { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 9px; font-size: 11.5px; font-weight: 700; background: rgba(255, 255, 255, .92); color: #222; }
.nw-autor { display: flex; align-items: center; gap: 10px; }
.nw-autor > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.nw-autor small { font-size: 11px; }
.nw-autor a, .nw-autor b { font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; }
.nw-autor a:hover { text-decoration: underline; }
