/* Salvi Design, Animationen für Angebot und Über mich.
   Anfangszustände nur unter html.anim, das setzt anim.js, und nie bei reduzierter Bewegung. */

/* ---------- 1 Angebot: die Liste hakt sich ab, dann wird der Preis markiert ---------- */
.anim .paket .ticks li { opacity: .35; transition: opacity .4s ease-out, translate .4s ease-out; translate: -6px 0; }
.anim .paket .ticks li::before { scale: 0; transition: scale .35s cubic-bezier(.3, 1.6, .5, 1); }
.anim .paket .ticks li.an { opacity: 1; translate: 0 0; }
.anim .paket .ticks li.an::before { scale: 1; }
.paket-price strong { background: linear-gradient(var(--flieder), var(--flieder)) no-repeat 0 88% / 100% .32em; }
.anim .paket-price strong { background-size: 0 .32em; transition: background-size .7s cubic-bezier(.65, 0, .35, 1); }
.anim .paket-price.an strong { background-size: 100% .32em; }

/* ---------- 2 Angebot: Zeitstrahl, die Linie wächst mit dem Scrollen ---------- */
.zeitstrahl { --p: 1; position: relative; list-style: none; margin: 8px 0 0; padding: 0 0 0 52px; display: grid; gap: 34px; }
.zeitstrahl::before, .zeitstrahl::after { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--linie); }
.zeitstrahl::after { background: var(--violett); transform-origin: 50% 0; transform: scaleY(var(--p)); }
.zeitstrahl li { position: relative; }
.zeitstrahl li::before { content: ""; position: absolute; left: -40px; top: .35em; z-index: 1; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 3px solid var(--linie); box-sizing: border-box; transition: background-color .3s, border-color .3s, scale .3s cubic-bezier(.3, 1.6, .5, 1); }
.zeitstrahl li.erreicht::before { background: var(--violett); border-color: var(--violett); scale: 1.15; }
.zeitstrahl h3 { margin: 0 0 4px; font-size: clamp(1.2rem, 2vw, 1.45rem); color: var(--see); }
.zeitstrahl p { margin: 0; color: var(--grau); }
.anim .zeitstrahl li { opacity: .45; transition: opacity .4s ease-out; }
.anim .zeitstrahl li.erreicht { opacity: 1; }

/* ---------- 3 Angebot: eine Mail, und die Website ändert sich ---------- */
.mail-grid { display: grid; gap: 36px; }
@media (min-width: 980px) { .mail-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; } }
.mail-grid .h2 { max-width: 16ch; }
.mail-grid > div > p { color: var(--grau); max-width: 40ch; }
.md-nochmals { min-height: 44px; padding: 0 2px; border: 0; background: none; font: inherit; font-size: 1rem; font-weight: 650; color: var(--violett); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.md-nochmals[hidden] { display: none; }
.mail-demo { margin: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .mail-demo { grid-template-columns: 1fr 1fr; align-items: start; } }
.md-karte { background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 24px 48px -26px rgba(11, 42, 44, .45); overflow: hidden; font-size: .95rem; }
.md-kopf { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--linie); font-weight: 650; color: var(--see); }
.md-kopf .md-chip { margin-left: auto; }
.md-zeile { display: flex; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--linie); color: var(--tinte); }
.md-zeile small { color: var(--grau); min-width: 4.5em; font-size: .85rem; padding-top: .1em; }
.md-text { padding: 12px 14px 16px; min-height: 7.4em; line-height: 1.5; white-space: pre-wrap; }
.md-cur { display: inline-block; width: 2px; height: 1.1em; vertical-align: -.2em; background: var(--violett); animation: md-blink 1s steps(1) infinite; }
@keyframes md-blink { 50% { opacity: 0; } }
.md-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--nebel); color: var(--grau); transition: background-color .3s, color .3s, opacity .3s; }
.md-chip.ok { background: #23704F; color: #fff; }
.md-chip.weg { opacity: 0; }
.md-web .md-kopf { background: var(--nebel); }
.md-web-titel { margin: 0; padding: 14px 14px 6px; font-weight: 750; font-size: 1.1rem; color: var(--see); }
.md-zeiten { list-style: none; margin: 0; padding: 0 14px 14px; }
.md-zeiten li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; border-bottom: 1px solid var(--linie); transition: background-color .4s; }
.md-zeiten li.neu { background: rgba(201, 184, 255, .45); }
.md-zeiten b { font-weight: 600; }

/* ---------- 8 Über mich: von Hand geprüft, Haken für Haken ---------- */
.pruef { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.principles .pruef li, .pruef li { border-top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--linie); font-size: .92rem; font-weight: 600; color: var(--see); }
.pruef i { position: relative; width: 20px; height: 20px; border-radius: 6px; background: var(--violett); flex: none; transition: background-color .3s; }
.pruef i::after { content: ""; position: absolute; left: 6px; top: 3px; width: 6px; height: 10px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; rotate: 45deg; transition: scale .3s cubic-bezier(.3, 1.6, .5, 1); }
.pruef li.online i { background: #23704F; }
.anim .pruef i { background: #fff; box-shadow: inset 0 0 0 2px var(--linie); }
.anim .pruef i::after { scale: 0; }
.anim .pruef li.an i { background: var(--violett); box-shadow: none; }
.anim .pruef li.online.an i { background: #23704F; }
.anim .pruef li.an i::after { scale: 1; }

@media (prefers-reduced-motion: reduce) {
  .md-cur { animation: none; }
}
