/* Unterseite Vereins-Software
   Illustrationen und Schemata stammen aus der Feature-Übersicht (tsv-moosach) und werden hier
   über die Variablen --c, --cd, --c2, --c3 in Mint eingefärbt. */
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }

.vs {
  --c: #2fbf8f;   /* Fläche */
  --cd: #0f5c45;  /* dunkel */
  --c2: #b6e4d2;  /* hell */
  --c3: #eaf6f0;  /* sehr hell */
}

/* ---------- Einstieg ---------- */
.vs-hero { padding: clamp(7.5rem, 12vw, 9.5rem) 0 clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.vs-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.vs-hero h1 { margin: 1rem 0 1.25rem; max-width: 12ch; }
.crumbs { font: .8rem var(--f-mono); color: var(--muted); margin-bottom: 1.75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--accent-text); }

.vs-mark { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; display: grid; place-items: center; }
.vs-mark::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed var(--line-strong); }
.vs-mark::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); z-index: -1; }
.vs-mark-tile { width: 56%; aspect-ratio: 1; border-radius: 28%; background: linear-gradient(135deg, #e6f2f4, #d4ebe9); display: grid; place-items: center; box-shadow: var(--shadow); }
.vs-mark-tile img { width: 78%; height: auto; border-radius: 22%; box-shadow: 0 14px 30px -16px rgba(15, 92, 69, .55); }
.vs-float { position: absolute; display: inline-flex; align-items: center; gap: .5rem; font: 500 .8rem var(--f-mono); padding: .55rem .85rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); white-space: nowrap; animation: vs-float 6s ease-in-out infinite; }
.vs-float .icon { color: var(--accent-text); font-size: 1.15rem; }
.vs-float.f1 { top: 9%; left: 0; }
.vs-float.f2 { top: 22%; right: -2%; animation-delay: -1.5s; }
.vs-float.f3 { bottom: 20%; left: -4%; animation-delay: -3s; }
.vs-float.f4 { bottom: 6%; right: 6%; animation-delay: -4.5s; }
@keyframes vs-float { 50% { transform: translateY(-10px); } }
.vs-facts { margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 900px) {
  .vs-hero-grid { grid-template-columns: 1fr; }
  .vs-mark { max-width: 360px; }
}
@media (max-width: 420px) { .vs-float { font-size: .7rem; padding: .45rem .7rem; } }

/* ---------- Fünf Gründe ---------- */
.vs-reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.vs-reason { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .55rem; transition: transform .4s var(--ease-out), border-color .3s; }
.vs-reason:nth-child(n+4) { grid-column: span 3; }
.vs-reason:hover { transform: translateY(-4px); border-color: var(--accent); }
.vs-reason .vs-spot { background: var(--c3); border-radius: 16px; padding: .75rem 1rem; margin-bottom: .5rem; }
.vs-reason .vs-spot svg { display: block; width: 100%; max-width: 220px; height: auto; margin: 0 auto; }
.vs-reason h3 { font-size: 1.6rem; }
.vs-reason p { margin: 0; color: var(--muted); font-size: .98rem; }
.vs-nr { font: 500 .78rem var(--f-mono); color: var(--accent-text); letter-spacing: .1em; }
.vs-checks { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.vs-checks li { font: .74rem var(--f-mono); padding: .32rem .65rem; border-radius: 999px; background: var(--accent-soft); color: var(--cd); }
.vs-checks li::before { content: "✓ "; color: var(--accent-text); }
@media (max-width: 1000px) { .vs-reasons { grid-template-columns: 1fr 1fr; } .vs-reason, .vs-reason:nth-child(n+4) { grid-column: span 1; } .vs-reason:last-child { grid-column: 1 / -1; } }
@media (max-width: 620px) { .vs-reasons { grid-template-columns: 1fr; } }

.vs-extra { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.vs-extra h3 { font: 500 .78rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.vs-extra ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.vs-extra li { padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .6); font-size: .92rem; }

/* ---------- Funktionen im Detail ---------- */
.vs-details { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.vs-details > * { min-width: 0; }  /* breite Schemata scrollen in ihrem Rahmen statt die Seite zu verbreitern */
.vs-toc { position: sticky; top: 100px; }
.vs-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; border-left: 1px solid var(--line-strong); }
.vs-toc a { display: grid; grid-template-columns: 2rem 1fr; padding: .5rem .9rem; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: .92rem; line-height: 1.35; transition: color .25s, border-color .25s, background-color .25s; }
.vs-toc a span { font: .75rem var(--f-mono); color: var(--accent-text); padding-top: .12rem; }
.vs-toc a:hover { color: var(--text); background: var(--chip); }
.vs-toc a[aria-current="true"] { color: var(--text); border-left-color: var(--accent); background: var(--accent-soft); }

.vs-area { padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.vs-area:first-child { padding-top: 0; border-top: 0; }
.vs-area-head { display: grid; grid-template-columns: 1fr 200px; gap: 2rem; align-items: center; margin-bottom: 2rem; }
.vs-area-head h3 { margin: .5rem 0 1rem; }
.vs-claim { font: italic 500 clamp(1.25rem, 1.1rem + .6vw, 1.6rem)/1.3 var(--f-display); color: var(--accent-text); margin: 0 0 .75rem; max-width: 34ch; }
.vs-intro { margin: 0; color: var(--muted); max-width: 60ch; }
.vs-area-head .vs-spot { background: var(--c3); border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; padding: 1.25rem; }
.vs-area-head .vs-spot svg { width: 100%; height: auto; }
@media (max-width: 1000px) {
  .vs-details { grid-template-columns: 1fr; }
  .vs-toc { position: static; }
  .vs-toc ol { border-left: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
  .vs-toc a { display: inline-flex; gap: .45rem; border: 1px solid var(--line-strong); border-radius: 999px; padding: .4rem .8rem; margin: 0; font-size: .85rem; }
  .vs-toc a[aria-current="true"] { border-color: var(--accent); }
}
@media (max-width: 620px) {
  .vs-area-head { grid-template-columns: 1fr; }
  .vs-area-head .vs-spot { width: 150px; order: -1; }
}

/* Schemata */
.grafik { margin: 0 0 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 2.5vw, 1.75rem); box-shadow: var(--shadow); }
.grafik-scroll { overflow-x: auto; }
.grafik svg { display: block; width: 100%; min-width: 560px; height: auto; }
.grafik figcaption { margin-top: .9rem; font-size: .9rem; color: var(--muted); }
@media (max-width: 620px) { .grafik figcaption::after { content: " Grafik seitlich wischen."; } }
.grafik svg text { font-family: Arial, Helvetica, sans-serif; font-size: 10px; fill: #1f2937; }
.grafik svg .ue { font-family: "Oswald", Arial, sans-serif; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; fill: var(--cd); }
.grafik svg .w { fill: #fff; } .grafik svg .kl { font-size: 8.5px; fill: #4b5563; } .grafik svg .f { font-weight: bold; }
.grafik svg .k { fill: #fff; stroke: var(--c2); stroke-width: 1.2; } .grafik svg .kg { fill: var(--c3); stroke: var(--c2); }
.grafik svg .d { fill: var(--cd); fill-opacity: .85; } .grafik svg .dd { fill: var(--cd); } .grafik svg .h { fill: var(--c); fill-opacity: .78; }
.grafik svg .pf { stroke: #6b7280; stroke-width: 1.3; fill: none; marker-end: url(#pfeil); }
.grafik svg .pfs { stroke: #9ca3af; stroke-width: 1.2; fill: none; stroke-dasharray: 3 3; marker-end: url(#pfeil); }
.grafik svg .linie { stroke: var(--c2); stroke-width: 1; fill: none; }
.grafik svg .ok { fill: #e6f2e8; stroke: #1c7331; } .grafik svg .gelb { fill: #fff6cc; stroke: #ecc94b; } .grafik svg .blau { fill: #e6f0fb; stroke: #6a9bd8; }
.grafik svg .orange { fill: #fff1e2; stroke: #f4a26b; } .grafik svg .rot { fill: #fde4e4; stroke: #e08a8a; }

/* Spot-Illustrationen */
.spot .s1 { fill: var(--c); } .spot .sd { fill: var(--cd); } .spot .s2 { fill: var(--c2); } .spot .s3 { fill: var(--c3); } .spot .sw { fill: #fff; }
.spot .sk { stroke: var(--c2); stroke-width: 1.4; }
.spot .sl { stroke: var(--c); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.spot .sl2 { stroke: var(--c2); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.spot .sld { stroke: var(--cd); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.spot .slw { stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.spot .sgz { stroke: var(--cd); }
.spot .swt { fill: #fff; font-family: Arial, sans-serif; } .spot .sdt { fill: var(--cd); font-family: Arial, sans-serif; } .spot .s1t { fill: var(--c); font-family: Arial, sans-serif; }
.vs-area-head .spot circle.s3:first-child { fill: #fff; }  /* Kreis der Illustration hebt sich vom Hintergrund ab */

/* Vorteile */
.vs-benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vs-benefit { background: rgba(255, 255, 255, .72); padding: 1.4rem 1.4rem 1.5rem; }
.vs-benefit h4 { margin: 0 0 .45rem; font: 600 1.05rem/1.3 var(--f-sans); display: grid; grid-template-columns: 22px 1fr; gap: .6rem; align-items: start; }
.vs-benefit h4::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: .8rem; display: grid; place-items: center; margin-top: .05rem; }
.vs-benefit p { margin: 0; color: var(--muted); font-size: .95rem; padding-left: calc(22px + .6rem); }
@media (max-width: 1100px) { .vs-benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .vs-benefits { grid-template-columns: 1fr; } }

/* Lighthouse-Messwerte (Inhalt aus der Feature-Übersicht, Ringe in den Farben der Website) */
.vs-lh { container-type: inline-size; margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.5rem, 3vw, 2.25rem); background: rgba(255, 255, 255, .72); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.vs-lh h3 { margin: 0 0 .5rem; scroll-margin-top: 110px; }
.vs-lh-unter { margin: 0 0 1.5rem; color: var(--muted); max-width: 62ch; }
.vs-lh-zeilen { list-style: none; margin: 0; padding: 0; }
.vs-lh-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "was kennz" "ringe ringe"; gap: .9rem 1.25rem; align-items: center; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.vs-lh-was b { display: block; font: 600 1.05rem/1.3 var(--f-sans); }
.vs-lh-was span { font: .78rem/1.4 var(--f-mono); color: var(--muted); }
.vs-lh-ringe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.vs-lh-ring { min-width: 0; hyphens: auto; overflow-wrap: break-word; text-align: center; font-size: .76rem; line-height: 1.25; color: var(--muted); }
.vs-lh-ring svg { display: block; width: 56px; height: 56px; margin: 0 auto .4rem; }
.vs-lh-ring .spur { fill: var(--accent-soft); stroke: var(--line); stroke-width: 4.5; }
.vs-lh-ring .wert { fill: none; stroke: var(--accent); stroke-width: 4.5; stroke-linecap: round; }
.vs-lh-ring text { font: 600 15px var(--f-sans); fill: var(--accent-text); }
.vs-lh-ring.is-mittel .spur { fill: rgba(217, 119, 6, .12); }
.vs-lh-ring.is-mittel .wert { stroke: #d97706; }
.vs-lh-ring.is-mittel text { fill: #a14f05; }
.vs-lh-ring.is-schwach .spur { fill: var(--error-bg); }
.vs-lh-ring.is-schwach .wert { stroke: var(--error); }
.vs-lh-ring.is-schwach text { fill: var(--error); }
.vs-lh-kennz { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.vs-lh-kennz b { color: var(--text); }
.vs-lh-fuss { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
@media (max-width: 420px) {
  .vs-lh-ring { font-size: .75rem; }
  .vs-lh-ring svg { width: 48px; height: 48px; }
}
.vs-lh-was { grid-area: was; } .vs-lh-ringe { grid-area: ringe; } .vs-lh-kennz { grid-area: kennz; text-align: right; }
@container (min-width: 760px) {
  .vs-lh-zeile { grid-template-columns: 9rem minmax(0, 1fr) 11.5rem; grid-template-areas: "was ringe kennz"; }
  .vs-lh-kennz { text-align: left; }
}
@container (max-width: 440px) {
  .vs-lh-zeile { grid-template-columns: 1fr; grid-template-areas: "was" "ringe" "kennz"; }
  .vs-lh-kennz { text-align: left; }
}
