/* ============================================================
   STARTSEITE MODERN (23.11.2026) - wird NUR von index.php geladen
   1) leicht grauer Seitenhintergrund, Bloecke als weisse Karten mit weichem Schatten
   2) Bereichskoepfe im Kicker-Stil: rote Leiste links statt dicker Linie darunter,
      ganz blasses Wappen als Wasserzeichen
   3) Uhr-Knopf "Letzte Themen" als Umschalter (aktiv = rot)
   Ueberschreibt kicker_seiten.css (html body.kk-seite ...) per hoeherer Spezifitaet.
   ============================================================ */

html body.kk-seite, html body { background:#f3f4f6 !important; }

/* ---- 1) Karten ---- */
html body .index-container .forum-block {
  background:#fff !important;
  border:0 !important;
  border-radius:12px !important;
  box-shadow:0 1px 2px rgba(17,24,39,.05), 0 6px 20px rgba(17,24,39,.06) !important;
  padding:0 20px 16px !important;
  margin:0 0 22px !important;
  overflow:hidden !important;
}
html body .index-container { padding-top:18px !important; }
html body .index-container .forum-block:first-of-type { margin-top:0 !important; }

/* ---- 2) Koepfe ---- */
html body.kk-seite .index-container .forum-block > .block-header,
html body .index-container .forum-block > .block-header {
  position:relative !important;
  overflow:hidden !important;
  background:transparent !important;
  border-bottom:2px solid #CE2C2C !important;
  padding:16px 0 13px !important;
  margin:0 0 12px !important;
  font-size:1rem !important;
  letter-spacing:.03em;
}
/* rote Leiste links vor dem Titel */
html body .index-container .forum-block > .block-header > div:first-child {
  display:flex; align-items:center; gap:8px; position:relative; z-index:1;
}
html body .index-container .forum-block > .block-header > div:first-child::before {
  content:''; display:inline-block; width:4px; height:20px; border-radius:2px; background:#CE2C2C; flex-shrink:0; margin-right:2px;
}
html body .index-container .forum-block > .block-header > div:last-child { position:relative; z-index:1; }
/* blasses Wappen als Wasserzeichen */
html body.kk-seite .index-container .forum-block > .block-header::after,
html body .index-container .forum-block > .block-header::after {
  content:'' !important; display:block !important; position:absolute !important;
  left:auto !important; right:34% !important; top:-22px !important; bottom:auto !important; width:96px !important; height:96px !important;
  background:url('/wasserzeichen.png') center/contain no-repeat !important;
  opacity:.07; transform:rotate(-12deg); pointer-events:none; z-index:0;
  border:0 !important; box-shadow:none !important;
}

/* Rechte Kopf-Knoepfe einheitlich rund und hell */
html body .index-container .forum-block > .block-header :is(.mark-read-icon, .btn-sieben-tage) {
  width:32px !important; height:32px !important; padding:0 !important; border-radius:50% !important;
  display:inline-flex !important; align-items:center; justify-content:center;
  background:#fff !important; border:1px solid #e2e4e8 !important; box-shadow:none !important;
  cursor:pointer; transition:background .15s, border-color .15s, transform .15s;
}
html body .index-container .forum-block > .block-header :is(.mark-read-icon, .btn-sieben-tage):hover {
  border-color:#CE2C2C !important; transform:translateY(-1px);
}
html body .index-container .forum-block > .block-header .btn-sieben-tage.aktiv {
  background:#CE2C2C !important; border-color:#CE2C2C !important;
}
html body .index-container .forum-block > .block-header .btn-sieben-tage.aktiv i { color:#fff !important; }
html body .index-container .forum-block > .block-header .badge {
  min-width:32px; height:28px; display:inline-flex !important; align-items:center; justify-content:center;
  border-radius:6px !important; border:1px solid #e2e4e8 !important; background:#f7f8fa !important; font-weight:800;
}

/* Kicker-Regeln mit ID (#ungelesene-themen-block/#feed-block) setzen dicke rote Linien - hier neutralisieren */
html body.kk-seite .index-container :is(#ungelesene-themen-block, #feed-block) > .block-header { border-bottom:2px solid #CE2C2C !important; }
html body.kk-seite .index-container .artikel-slider-wrap { border-bottom:0 !important; padding-bottom:4px !important; }

/* ---- Inhalte in der Karte ---- */
html body .index-container #feed-block .feed-wrap { background:transparent !important; padding:0 !important; }
html body .index-container .feed-card { border-radius:8px !important; border:0 !important; border-bottom:1px solid #f0f1f3 !important; }
html body .index-container .feed-card:hover { background:#fafafa !important; }
html body .index-container #ungelesene-themen-block .empty-state { padding:18px 10px 8px !important; }

/* Letzte Themen (Umschalter) */
html body .index-container #ungelesene-themen-block { transition:opacity .2s; }
html body .index-container #ungelesene-themen-block.themen-laedt { opacity:.5; pointer-events:none; }
html body .index-container .themen-alle-link {
  display:flex; align-items:center; justify-content:center; gap:6px; margin:10px 0 0; padding:10px;
  border-top:1px solid #f0f1f3; font-weight:700; font-size:.85rem; text-decoration:none !important;
}
html body .index-container .themen-alle-link i { font-size:.7rem; }

/* ---- Mobil ---- */
@media (max-width:640px) {
  html body .index-container { padding:12px 8px 0 !important; }
  html body .index-container .forum-block { padding:0 12px 12px !important; border-radius:10px !important; margin-bottom:14px !important; }
  html body .index-container .forum-block > .block-header { padding:13px 0 11px !important; font-size:.9rem !important; }
  html body .index-container .forum-block > .block-header::after { width:70px !important; height:70px !important; top:-14px !important; right:42% !important; }
  html body .index-container .forum-block > .block-header :is(.mark-read-icon, .btn-sieben-tage) { width:30px !important; height:30px !important; }
}

/* ============================================================
   RUNDE 2 (23.11.2026): Forum-Chip, groessere Videos, rote Hover-Leiste,
   Artikel-Kacheln, "neu seit letztem Besuch", Lade-Platzhalter
   ============================================================ */

/* ---- Feed: Forum als grauer Chip ueber dem Thementitel ---- */
html body .index-container .feed-forum-zeile { display:flex; min-width:0; margin:3px 0 1px; }
html body .index-container .feed-forum-chip {
  display:inline-flex; align-items:center; gap:6px; max-width:100%; min-width:0;
  background:#f1f2f4; color:#4b5563; border-radius:999px; padding:2px 10px 2px 3px;
  font-size:11.5px; font-weight:700; line-height:1.5;
}
html body .index-container .feed-forum-chip img { width:18px; height:18px; border-radius:50%; object-fit:cover; background:#fff; flex-shrink:0; }
html body .index-container .feed-forum-chip i { font-size:10px; color:#9ca3af; margin-left:6px; }
html body .index-container .feed-forum-chip span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
html body .index-container .feed-thema { font-size:16px !important; margin-top:2px; }

/* ---- Feed: rote Leiste links beim Darueberfahren ---- */
html body .index-container .feed-card { position:relative; transition:background .15s, box-shadow .15s; }
html body .index-container .feed-card::before {
  content:''; position:absolute; left:0; top:8px; bottom:8px; width:3px; border-radius:2px;
  background:#CE2C2C; transform:scaleY(0); transition:transform .18s ease; pointer-events:none;
}
html body .index-container .feed-card:hover::before { transform:scaleY(1); }

/* ---- Feed: Videos/Bilder groesser (volle Breite 16:9, max 560 px) ---- */
html body .index-container .feed-medien-1 { max-width:560px !important; width:100%; }
html body .index-container .feed-medien-2, html body .index-container .feed-medien-3 { max-width:560px !important; width:100%; }
html body .index-container .feed-medium { border-radius:10px !important; background:#1f232b; }
html body .index-container .feed-medium-image { background:#f1f2f4; }
html body .index-container .feed-medien-1 .feed-play { width:58px; height:58px; font-size:21px; }

/* ---- Lade-Platzhalter (grau, leicht schimmernd) ---- */
@keyframes rweSchimmer { 0% { background-position:-200% 0; } 100% { background-position:200% 0; } }
html body .index-container .feed-medium.laedt,
html body .index-container .artikel-slide-bildrahmen:not(.geladen) {
  background:linear-gradient(90deg, #eceef1 0%, #f6f7f9 50%, #eceef1 100%) !important;
  background-size:200% 100% !important; animation:rweSchimmer 1.3s linear infinite;
}
html body .index-container .feed-medium.laedt img,
html body .index-container .artikel-slide-bildrahmen:not(.geladen) img { opacity:0; }
html body .index-container .feed-medium img, html body .index-container .artikel-slide-bildrahmen img { transition:opacity .25s, transform .3s ease; }
@media (prefers-reduced-motion:reduce) {
  html body .index-container .feed-medium.laedt, html body .index-container .artikel-slide-bildrahmen:not(.geladen) { animation:none; }
}

/* ---- Neueste Artikel: runde Ecken, Bild-Zoom beim Darueberfahren ---- */
html body.kk-seite .index-container .artikel-slide { position:relative; border-radius:10px !important; }
html body .index-container .artikel-slide-bildrahmen,
html body .index-container .artikel-slide-kachel {
  display:block; position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; border-radius:10px; flex-shrink:0;
}
html body .index-container .artikel-slide-bildrahmen .artikel-slide-bild { width:100% !important; height:100% !important; object-fit:cover; }
html body .index-container .artikel-slide:hover .artikel-slide-bildrahmen .artikel-slide-bild { transform:scale(1.05); }

/* Text-Kachel fuer Artikel ohne eigenes Foto (statt immer gleichem Logo-Bild) */
html body .index-container .artikel-slide-kachel {
  color:#fff; display:flex !important; flex-direction:column; justify-content:space-between; padding:12px 14px;
  background:linear-gradient(135deg, #CE2C2C 0%, #8f1d1d 100%);
}
html body .index-container .artikel-slide-kachel.kachel-v1 { background:linear-gradient(135deg, #2b2f38 0%, #11141a 100%); }
html body .index-container .artikel-slide-kachel.kachel-v2 { background:linear-gradient(160deg, #a82424 0%, #CE2C2C 55%, #e05a5a 100%); }
html body .index-container .artikel-slide-kachel.kachel-v3 { background:linear-gradient(135deg, #3a3f4a 0%, #CE2C2C 140%); }
html body .index-container .artikel-slide-kachel::after {
  content:''; position:absolute; right:-18px; bottom:-22px; width:110px; height:110px;
  background:url('/wasserzeichen.png') center/contain no-repeat; opacity:.16; transform:rotate(-12deg);
  transition:transform .3s ease;
}
html body .index-container .artikel-slide:hover .artikel-slide-kachel::after { transform:rotate(-12deg) scale(1.08); }
html body .index-container .artikel-slide-kachel .kachel-quelle {
  position:relative; z-index:1; font-size:.78rem; font-weight:900; text-transform:uppercase; letter-spacing:.06em;
  background:rgba(255,255,255,.16); align-self:flex-start; padding:3px 8px; border-radius:4px;
}
html body .index-container .artikel-slide-kachel i { position:relative; z-index:1; font-size:1.5rem; color:rgba(255,255,255,.55) !important; }

/* Roter Punkt: neu seit deinem letzten Besuch */
html body .index-container .artikel-slide .neu-punkt {
  position:absolute; top:8px; right:8px; z-index:4; width:14px; height:14px; border-radius:50%;
  background:#CE2C2C; border:3px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.35), 0 0 0 0 rgba(255,255,255,.7); animation:rweNeuPuls 2s ease-out infinite;
}
@keyframes rweNeuPuls { 0% { box-shadow:0 1px 4px rgba(0,0,0,.35), 0 0 0 0 rgba(255,255,255,.75); } 70% { box-shadow:0 1px 4px rgba(0,0,0,.35), 0 0 0 9px rgba(255,255,255,0); } 100% { box-shadow:0 1px 4px rgba(0,0,0,.35), 0 0 0 0 rgba(255,255,255,0); } }

@media (max-width:640px) {
  html body .index-container .feed-medien-1, html body .index-container .feed-medien-2, html body .index-container .feed-medien-3 { max-width:100% !important; }
  html body .index-container .feed-forum-chip { font-size:11px; }
}
