/* Projektseite Villagers: Repurposed auf cvluis.com. Baut auf ../style.css (Glas, Buttons, Navigation) auf. */

.villagers-page .doc-nav { width: min(1000px, 100%); }
.villagers-page .vp-nav { display: flex; gap: 2px; }
.villagers-page .vp-nav a {
  padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 700;
  color: var(--muted); text-decoration: none;
}
.villagers-page .vp-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.villagers { width: min(1080px, 100% - 32px); margin: 0 auto; padding: 110px 0 30px; }
.villagers .skip-link { position: fixed; }

.vp-section { margin-top: 64px; scroll-margin-top: 100px; }
.vp-section h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: 0.4em; }
.vp-section .eyebrow { margin-bottom: 0.7em; }
.vp-intro { max-width: 46em; font-size: 1.07rem; }
.villagers h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.4em; }
.villagers code {
  padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.35);
  font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; color: var(--accent);
}

/* Hero */
.vp-hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center;
  padding: clamp(24px, 4vw, 40px); border-radius: 34px;
}
.vp-hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); line-height: 1.02; margin-bottom: 0.3em; }
.vp-lead { font-size: clamp(1.02rem, 1.8vw, 1.2rem); max-width: 30em; color: rgba(236, 242, 255, 0.86); }
.vp-hero .tags { margin: 14px 0 22px; }
.vp-hero .row { gap: 12px; }
.btn--big { padding: 13px 22px; font-size: 16px; }
.vp-status { display: flex; align-items: center; gap: 9px; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.vp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(143, 245, 200, 0.8); animation: vpPulse 2.4s ease-in-out infinite; }
@keyframes vpPulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.vp-hero__media { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); background: #0b1020; }
.vp-hero__media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* Karten */
.vp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.vp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.vp-card { padding: 22px 24px; border-radius: 24px; }
.vp-card p { margin: 0; }
.vp-card__no { font: 600 12px var(--pixel); letter-spacing: 0.1em; color: var(--dim); margin-bottom: 0.7em !important; }
.vp-new { margin-top: 16px; }
.vp-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.vp-list--num { padding-left: 22px; }
.vp-links { margin: 14px 0 0 !important; }
.vp-links a, .vp-note a, .vp-section .vp-card a:not(.btn), .vp-hero .vp-status a { color: var(--accent); }

/* Fortschritt */
.vp-progress { margin-top: 26px; padding: clamp(20px, 3vw, 30px); border-radius: 28px; }
.vp-progress__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: flex-end; }
.vp-progress__big { font: 700 clamp(2.6rem, 6vw, 3.6rem) / 1 var(--pixel); color: var(--accent); margin-right: 10px; text-shadow: 0 0 22px rgba(143, 245, 200, 0.4); }
.vp-progress__head > div > span { font-size: 16px; font-weight: 700; color: var(--muted); }
.vp-progress__meta { margin: 0; font-size: 14px; color: var(--dim); }
.vp-bar { height: 16px; margin: 18px 0 24px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4); }
.vp-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #8ff5c8, #46d6e8); box-shadow: 0 0 14px rgba(143, 245, 200, 0.6); transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vp-groups { display: grid; gap: 10px; }
.vp-grp { border-radius: 16px; background: rgba(5, 8, 20, 0.35); border: 1px solid rgba(255, 255, 255, 0.12); }
.vp-grp[open] { background: rgba(5, 8, 20, 0.5); }
.vp-grp > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 13px 16px; align-items: center; }
.vp-grp > summary::-webkit-details-marker { display: none; }
.vp-grp > summary b { font-size: 15.5px; color: #fff; }
.vp-grp__count { font-size: 14px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.vp-grp__count em { font-style: normal; color: var(--accent); }
.vp-grp__bar { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.vp-grp__bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); }
.vp-grp ul { list-style: none; margin: 0; padding: 4px 16px 14px; display: grid; gap: 9px; }
.vp-item { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.vp-item__head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vp-item__head b { font-size: 14.5px; color: #fff; }
.vp-pill { font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.vp-pill--done { color: #04160e; background: var(--accent); }
.vp-pill--open { color: #ffd9a0; background: rgba(255, 179, 71, 0.14); border: 1px solid rgba(255, 179, 71, 0.4); }
.vp-item p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.vp-item p.vp-gap { color: #ffd9a0; }
.vp-note { margin: 18px 0 0 !important; font-size: 13px; color: var(--dim); }
.vp-progress--error .vp-progress__head, .vp-progress--error .vp-bar, .vp-progress--error .vp-groups, .vp-progress--error .vp-note { display: none; }

/* Download */
.vp-dl { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 26px; padding: 26px; border-radius: 26px; }
.vp-dl p { margin: 0 0 6px; }
.vp-dl__ver { font-size: 1.1rem; color: #fff; }
.vp-dl__ver span { color: var(--dim); font-weight: 600; font-size: 14px; }
.vp-dl__file { font-size: 14px; }

/* Rückmeldung */
.vp-section--last { margin-bottom: 20px; }
.vp-feedback { padding: clamp(28px, 5vw, 46px); border-radius: 32px; text-align: center; }
.vp-feedback h2 { margin-bottom: 0.4em; }
.vp-feedback p:not(.eyebrow) { max-width: 36em; margin: 0 auto 1.4em; }
.vp-feedback .eyebrow { margin-bottom: 0.6em; }

/* Kleine Bildschirme */
@media (max-width: 900px) {
  .vp-hero { grid-template-columns: 1fr; }
  .vp-cards { grid-template-columns: 1fr; }
  .vp-two { grid-template-columns: 1fr; }
  .vp-nav a { padding: 6px 9px; font-size: 13px; }
}
@media (max-width: 640px) {
  .villagers { width: min(1080px, 100% - 32px); padding-top: 100px; }
  .vp-hero { padding: 22px; border-radius: 26px; }
  .vp-hero .row .btn { width: 100%; justify-content: center; }
  .vp-dl .btn { width: 100%; justify-content: center; }
  .vp-section { margin-top: 48px; }
  .villagers-page .doc-nav { flex-wrap: wrap; }
  .villagers-page .vp-nav { order: 3; width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .vp-dot { animation: none; }
  .vp-bar i { transition: none; }
}

/* Versionen (wie auf den anderen Projektseiten, Daten von /api/releases) */
.pj-timeline { margin-top: 26px; }
.pj-timeline__list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.pj-rel { padding: 18px 22px; border-radius: 22px; }
.pj-rel__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.pj-rel__ver { font: 700 20px var(--pixel); color: #fff; text-decoration: none; }
a.pj-rel__ver:hover { color: var(--accent); }
.pj-rel__head .sbadge { margin-left: 0; }
.pj-rel__date { margin-left: auto; font-size: 13px; color: var(--dim); }
.pj-rel__changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.pj-rel__changes li { font-size: 14.5px; color: var(--muted); }
.pj-rel__changes li::before { content: "· "; color: var(--accent); }
.pj-rel__more { margin: 8px 0 0; font-size: 13px; color: var(--dim); }
@media (max-width: 700px) { .pj-rel__date { margin-left: 0; width: 100%; } }
