/* Doing-IT Tux — Seitenbänder, Blog-Cover und Footer-Figur. */

/* ---------- Seitenband ---------- */
.tux-band { padding: 2.5rem 0 1rem }
.tux-band-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.6rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1rem;
}
.tux-band-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.9rem;
}
.tux-band-copy { padding: 0.6rem 1.1rem 0.6rem 0.2rem }
.tux-band-copy .eyebrow { margin-bottom: 0.7rem }
.tux-band-copy h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); line-height: 1.05; margin-bottom: 0.6rem }
.tux-band-copy p { color: var(--muted-foreground); max-width: 48ch; margin-bottom: 1.1rem }
.tux-band.reverse .tux-band-media { order: 2 }
.tux-band.reverse .tux-band-copy { order: 1; padding: 0.6rem 0.2rem 0.6rem 1.1rem }
@media (max-width: 820px) {
  .tux-band { padding: 1.8rem 0 0.5rem }
  .tux-band-inner { grid-template-columns: 1fr; gap: 0.6rem; padding: 0.75rem }
  .tux-band-copy, .tux-band.reverse .tux-band-copy { padding: 0.9rem 0.6rem 1rem }
  .tux-band.reverse .tux-band-media { order: 0 }
  .tux-band.reverse .tux-band-copy { order: 1 }
}

/* ---------- Blog- und Artikel-Cover mit Bild ---------- */
.post-cover.tux-cover { background: #090b10 }
.post-cover.tux-cover::before { display: none }
.post-cover.tux-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  width: auto;
  background: linear-gradient(180deg, transparent 52%, rgb(0 0 0 / 0.48));
  opacity: 1;
}
.tux-cover-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-cover.tux-cover .post-cover-tag,
.post-cover.tux-cover .post-cover-num { z-index: 3 }
.post-cover.tux-cover .post-cover-tag { background: rgb(5 6 8 / 0.62) }
.post-cover.tux-cover .post-cover-num { text-shadow: 0 4px 22px rgb(0 0 0 / 0.55) }
.post-cover.tux-cover .post-cover-thesis { display: none }
.article-cover { aspect-ratio: 16 / 9 }

/* ---------- Startseiten-Blogkarten ---------- */
.home-cover.tux-cover { background: #090b10 }
.home-cover.tux-cover .home-cover-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-cover.tux-cover .home-cover-tag,
.home-cover.tux-cover .home-cover-num { z-index: 3 }
.home-cover.tux-cover .home-cover-thesis { display: none }
.home-cover.tux-cover .home-cover-glyph { display: none }

/* ---------- Footer-Figur ---------- */
.foot-tux {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0.45rem;
  margin-top: -2px;
  display: inline-block;
}
