/* Visitenkarte A13 (30.10.2026): nur die Aenderungen gegenueber a9.css ... a12.css. Davids Worte zu A12:
   (1) "noch immer keine Animationen": David oeffnet die Dateien aus Telegram. Telegram iOS zeigt .html in Apples Quick Look
       (Quellcode Telegram-iOS, quellen-a13.md); dort lief kein JavaScript, und alle Auftritte hingen an der Klasse .js bzw. ist-da,
       die erst JavaScript setzt. Jetzt: Auftritte und Dauer-Animationen als reines CSS (@keyframes mit Verzoegerung beim Laden).
       Ohne JavaScript bleibt nichts unsichtbar: Keyframes nur mit fill "backwards" (wirkt nur in der Wartezeit), Endzustand = Grundstil.
       Mit JavaScript bleibt das bisherige Auftauchen beim Scrollen (a9.css/a11.css, Klasse .js), dann sind diese Regeln aus.
   (2) Graz-Gutschein wie der echte (Huelle + Scheine), (3) Foto groesser wie im Nachtsignal (124 px statt 96 px).
   Bewegung reduzieren: ganz unten, alles aus. */

/* ---------- Kopf: Foto gross wie im Nachtsignal ---------- */
.foto, .foto img { width: 124px; height: 124px; border-radius: 34px; }
.foto::after { border-radius: 38px; }
.person::before { top: -52px; height: 320px; }
.marke { margin-top: 16px; }

/* Kopf kommt weich herein, ohne JavaScript und mit (beim Seitenwechsel steht er schon: data-richtung / vt-rein).
   A12 setzte die Staffel per nth-child, die Kurzschreibweise "animation" hob sie wieder auf (alle vier gleichzeitig). */
.person > :nth-child(1) { --k: 0; }
.person > :nth-child(2) { --k: 1; }
.person > :nth-child(3) { --k: 2; }
.person > :nth-child(4) { --k: 3; }
html:not([data-richtung]) .person.person > * { animation: a12-auf 760ms var(--feder-seite) calc(var(--k, 0) * 90ms) backwards; }
/* Lichtpunkt laeuft zweimal um das Foto, dann Ruhe (WCAG 2.2.2: unter 5 s je Lauf, endet von selbst) */
html:not([data-richtung]) .foto::after { animation: a12-strahl 2600ms cubic-bezier(0.45, 0, 0.25, 1) 700ms 2 both; }
.vt-rein .person > *, .vt-rein .foto::after { animation: none !important; }

/* ---------- Auftritt der Bloecke ohne JavaScript ----------
   Reihenfolge je Seite (Kind-Nummer in .seite; 1 ist der versteckte Seitentitel), 90 ms Staffel ab 280 ms. */
.seite > :nth-child(2) { --b: 0; }
.seite > :nth-child(3) { --b: 1; }
.seite > :nth-child(4) { --b: 2; }
.seite > :nth-child(5) { --b: 3; }
.seite > :nth-child(6) { --b: 4; }
.seite > :nth-child(7) { --b: 5; }
.seite > :nth-child(8) { --b: 6; }
.seite > :nth-child(n+9) { --b: 7; }
.a9-auf { --auf-verz: calc(280ms + var(--b, 7) * 90ms); }
html:not(.js) .a9-auf { animation: a13-auf 700ms var(--feder-seite) var(--auf-verz) backwards; }
@keyframes a13-auf { from { opacity: 0; transform: translateY(20px); filter: blur(8px); } }

/* Listen nacheinander (Zeilen, Kacheln, Haken), Staffel 55 ms wie mit JavaScript */
html:not(.js) .a9-auf .liste > * { animation: a13-zeile 560ms var(--feder-seite) calc(var(--auf-verz) + 140ms + var(--i, 0) * 55ms) backwards; }
@keyframes a13-zeile { from { opacity: 0; transform: translateY(12px); } }
.kacheln > :nth-child(6) { --i: 5; }
.schritte > li:nth-child(1) { --i: 0; }
.schritte > li:nth-child(2) { --i: 1; }
.schritte > li:nth-child(3) { --i: 2; }
.schritte > li:nth-child(4) { --i: 3; }
html:not(.js) .a9-auf .schritte > li { animation: a13-zeile 560ms var(--feder-seite) calc(var(--auf-verz) + 140ms + var(--i, 0) * 80ms) backwards; }

/* Haken zeichnen sich selbst (pathLength 1): Grundstil gezeichnet, nur die Wartezeit zeigt den leeren Strich */
html:not(.js) .liste.haken .i, html:not(.js) .fakten .i { stroke-dasharray: 1;
    animation: a13-strich 480ms cubic-bezier(0.65, 0, 0.35, 1) calc(var(--auf-verz) + 380ms + var(--i, 0) * 110ms) backwards; }
@keyframes a13-strich { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Graz-Gutschein wie der echte (Holding Graz): gruene Huelle, Scheine schauen oben heraus ----------
   Farben aus den Fotos gemessen: Huelle/Scheinfeld #80aa38 bis #88b950, Schein violett-grau #8685ad. Fuer weisse Schrift
   (Kontrast mindestens 3 fuer grosse Schrift) ist die Huelle etwas dunkler (#5a8a24, Kontrast 4,1). */
.gg { --gg-gruen: #5a8a24; --gg-hell: #86b94a; position: relative; height: 220px; max-width: 420px; margin: 0 auto; perspective: 900px; }
.gg-huelle { position: absolute; left: 0; right: 0; bottom: 0; height: 156px; z-index: 3; overflow: hidden; border-radius: 6px;
    display: grid; grid-template-columns: 1fr; align-content: space-between; padding: 16px 18px 16px 20px; color: #fff;
    background-color: var(--gg-gruen);
    background-image:
        linear-gradient(104deg, rgba(255, 255, 255, 0) 0 57%, rgba(255, 255, 255, 0.07) 57% 63%, rgba(255, 255, 255, 0.13) 63% 67%, rgba(255, 255, 255, 0) 67%),
        radial-gradient(120% 140% at 100% 0%, rgba(134, 185, 74, 0.55), rgba(134, 185, 74, 0) 60%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 -1px 0 rgba(0, 0, 0, 0.25) inset, 0 18px 36px rgba(0, 0, 0, 0.45);
    transform-origin: 50% 100%; }
.gg-titel { font-family: Futura, "Avenir Next", "Century Gothic", var(--font); font-size: 24px; line-height: 25px; font-weight: 500;
    letter-spacing: 0.05em; }
.gg-betrag { font-size: 44px; line-height: 46px; font-weight: 800; letter-spacing: -0.03em; }
.gg-turm { position: absolute; right: 10px; bottom: -6px; width: 104px; height: 146px; fill: none; stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.gg-stempel { position: absolute; left: 152px; bottom: 22px; display: inline-grid; place-items: center; padding: 2px 9px;
    border: 2px solid currentColor; border-radius: 9px; font-size: 20px; line-height: 26px; font-weight: 800; letter-spacing: 0.06em;
    text-transform: uppercase; color: #fff; opacity: 0.94; transform: rotate(-12deg); }
/* Glanz streicht zweimal ueber die Huelle (wie das Ticket) */
.gg-huelle::after { content: ""; position: absolute; top: -30%; bottom: -30%; left: -45%; width: 30%; pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)); transform: skewX(-18deg); opacity: 0; }

/* Scheine: gruenes Feld links (mit "10"), violett-graues Uhrturm-Bild, schillerndes Hologramm oben rechts */
.gg-schein { position: absolute; left: 9%; right: 9%; top: 4px; height: 128px; z-index: 1; display: grid; grid-template-columns: 34% 1fr;
    overflow: hidden; border-radius: 3px; background: linear-gradient(180deg, #c9c6e4, #9d9bc4 70%, #8685ad);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); transform-origin: 50% 100%; }
.gg-schein-1 { z-index: 2; transform: rotate(-5deg) translateX(-4px); }
.gg-schein-2 { transform: rotate(4deg) translate(8px, 6px); filter: brightness(0.82); }
.gg-feld { position: relative; background: linear-gradient(160deg, #8fc24f, #6fa634); clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
.gg-feld i { position: absolute; left: 12px; top: 8px; font: 800 38px/40px Futura, "Avenir Next", "Century Gothic", var(--font); font-style: normal;
    color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9); letter-spacing: 0.02em; }
.gg-bild { position: relative; background: radial-gradient(90% 80% at 40% 100%, rgba(70, 72, 92, 0.55), rgba(70, 72, 92, 0) 70%); }
.gg-turm-foto { position: absolute; left: 8%; top: 8px; width: 66px; height: 92px; fill: none; stroke: #3f3e55; stroke-width: 2.2; }
.gg-feld b { position: absolute; left: 13px; top: 46px; font: 700 10px/12px Futura, "Avenir Next", "Century Gothic", var(--font); letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.92); }
.gg-holo { position: absolute; right: 10px; top: 8px; width: 40px; height: 30px; border-radius: 6px; opacity: 0.85;
    background: linear-gradient(115deg, #7fe0c8, #a99cff, #e7f59a, #7fd0ff, #7fe0c8) 0 0 / 300% 100%; mix-blend-mode: screen; }

/* Schmale Handys (360 px): Uhrturm kleiner, damit der Stempel daneben frei steht */
@media (max-width: 374px) {
    .gg-turm { right: 6px; width: 84px; height: 118px; }
    .gg-stempel { left: 152px; bottom: 24px; padding: 1px 6px; font-size: 19px; }
}

/* Bewegung (reines CSS, beim Laden; Grundstil ist der Endzustand) */
.gg { --gg-verz: 380ms; }
html:not([data-richtung]) .gg-huelle { animation: a13-huelle 900ms var(--feder-pille) var(--gg-verz) backwards; }
@keyframes a13-huelle { from { opacity: 0; transform: translateY(26px) rotateX(18deg) scale(0.96); } }
.gg-schein-1 { animation: a13-schein-1 820ms var(--feder-pille) calc(var(--gg-verz) + 620ms) backwards; }
.gg-schein-2 { animation: a13-schein-2 820ms var(--feder-pille) calc(var(--gg-verz) + 760ms) backwards; }
@keyframes a13-schein-1 { from { opacity: 0; transform: translateY(68px) rotate(0deg); } 25% { opacity: 1; } }
@keyframes a13-schein-2 { from { opacity: 0; transform: translateY(68px) rotate(0deg); } 25% { opacity: 1; } }
.gg-turm { stroke-dasharray: 1; animation: a13-strich 1500ms cubic-bezier(0.45, 0, 0.25, 1) calc(var(--gg-verz) + 450ms) backwards; }
.gg-stempel { animation: a13-stempel 520ms cubic-bezier(0.2, 1.6, 0.4, 1) calc(var(--gg-verz) + 1500ms) backwards; }
@keyframes a13-stempel { from { opacity: 0; transform: rotate(-12deg) scale(1.8); } 60% { opacity: 1; } }
.gg-huelle::after { animation: a13-glanz 1500ms var(--kc-kurve) calc(var(--gg-verz) + 2100ms) 2; }
@keyframes a13-glanz { 0% { opacity: 1; transform: translateX(0) skewX(-18deg); } 100% { opacity: 1; transform: translateX(560%) skewX(-18deg); } }
.gg-holo { animation: a13-holo 2400ms linear calc(var(--gg-verz) + 1200ms) 2; }
@keyframes a13-holo { to { background-position: 100% 0; } }
/* Ankunft per Seitenwechsel: die Huelle gleitet mit der Seite herein, Scheine, Stempel und Glanz laufen trotzdem */
.vt-rein .gg-huelle { animation: none !important; }

/* ---------- Kleine Handys (iPhone SE 375 x 667): Foto so gross wie moeglich, Ticket UND "Kontakt speichern" im ersten Bild ---------- */
@media (max-height: 700px) and (orientation: portrait) {
    .foto, .foto img { width: 100px; height: 100px; border-radius: 28px; }
    .foto::after { border-radius: 32px; }
    .marke { margin-top: 10px; }
}
/* Quer: Foto wie A12 (Kopf links) */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 640px) {
    .foto, .foto img { width: 96px; height: 96px; border-radius: 28px; }
    .foto::after { border-radius: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .person > *, .foto::after, .a9-auf, .a9-auf .liste > *, .a9-auf .schritte > li, .liste.haken .i, .fakten .i,
    .gg-huelle, .gg-huelle::after, .gg-schein, .gg-turm, .gg-stempel, .gg-holo { animation: none !important; }
    .gg-turm, html:not(.js) .liste.haken .i, html:not(.js) .fakten .i { stroke-dasharray: none; }
}
