/* tipps-post.css – Design der Tipps-/Blog-Seiten (identisch zu den handgeschriebenen Tipps-Seiten).
   Wird von den automatisch erzeugten Autopilot-Beitraegen eingebunden. */
.post-page {
  padding: 18px 0 40px;
}

.post-shell {
  margin: 0 auto;
}

.post-head {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 1.8rem 1.75rem;
  position: relative;
}

.post-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: .85rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .62rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fafcff;
  font-weight: 700;
  color: #0e2a58;
  font-size: .88rem;
}

.pill.orange {
  background: #5A9BF1;
  color: #ffffff;
}

.post-head h1 {
  margin: .3rem 0 .9rem;
  font-size: 2.05rem;
  line-height: 1.15;
}

.post-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: none;
}

.post-actions {
  position: absolute;
  top: 1.2rem;
  right: 1.25rem;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
}

@media (max-width: 860px) {
  .post-actions {
    position: static;
    margin-top: 1rem;
    justify-content: flex-start;
  }

  .post-head-main {
    padding-right: 0;
  }
}

.rank-wrap {
  margin-top: 14px;
}

.rank {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.rank ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.rank li {
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.rank li:last-child {
  border-bottom: 0;
}

.rank-card {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
  align-items: stretch;
}

.rank-text h2 {
  margin: 0 0 .35rem;
  font-size: 1.22rem;
  display: flex;
  gap: .6rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.numb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: rgba(90, 155, 241, .14);
  border: 1px solid rgba(90, 155, 241, .28);
  font-weight: 900;
  color: #0e2a58;
  flex: 0 0 auto;
}

.where {
  color: var(--muted);
  font-weight: 700;
  font-size: .95rem;
}

.meta-line {
  margin: .05rem 0 .6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: rgba(15, 42, 88, .04);
  border: 1px solid rgba(15, 42, 88, .10);
  color: #0e2a58;
  font-weight: 800;
  font-size: .82rem;
  line-height: 1.1;
  white-space: nowrap;
}

.rank-text p {
  margin: .1rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.rank-cta {
  margin-top: .9rem;
}

.rank-cta .btn,
.rank-cta .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  text-decoration: none;
}

.rank-media {
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #f3f8fe;
  box-shadow: var(--shadow-sm);
  position: relative;
  min-height: 160px;
}

.rank-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rank-media .img-cap {
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: auto;
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  padding: .32rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(15, 42, 88, .12);
  color: #0e2a58;
  font-weight: 800;
  font-size: .82rem;
  backdrop-filter: blur(6px);
}

@media (max-width: 860px) {
  .rank-card {
    grid-template-columns: 1fr;
  }

  .rank-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .rank-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 540px) {
  .rank-media {
    aspect-ratio: 4 / 3;
  }
}
  
.post-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.65;
}

.post-list li {
  margin: .35rem 0;
}

.post-list a {
  font-weight: 700;
}

.post-stand {
  margin: .9rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}
