/* slxt.org – Visitenkarte (11.11.2026), Zusatz zu style.css: Online-Knopf + Live-Status, Rückseite (QR, Kontakt),
   Umdrehen der Glaskarte. Gleiche Tokens wie style.css (--card, --tile, --accent …). */
:root {
  --gut: #157a35; --gut-flaeche: #e3f7e8; --gut-rand: rgba(21, 122, 53, .28); --gut-punkt: #22a447;
  --warn: #8a5300; --warn-flaeche: #fff1d6; --warn-punkt: #e09b00;
  --auf-accent: #ffffff;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
:root[data-modus="dunkel"] {
  --gut: #6ee69a; --gut-flaeche: rgba(46, 204, 113, .14); --gut-rand: rgba(110, 230, 154, .35); --gut-punkt: #3ddc6f;
  --warn: #ffcf66; --warn-flaeche: rgba(255, 190, 60, .14); --warn-punkt: #ffbe3c;
  --auf-accent: #0b0b10;
}

/* ---------- Knopf-Zeile unter dem Namen ---------- */
.schnell { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.pille {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--card-line); background: var(--tile); color: var(--text); font: 600 .9rem var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), background .2s, box-shadow .2s;
}
.pille:hover { background: var(--tile-hover); transform: translateY(-2px); }
.pille:active { transform: scale(.96); }
.pille svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pille.haupt { background: var(--accent); color: var(--auf-accent); border-color: transparent; }
.pille.haupt:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }

/* Der grüne Online-Knopf */
.pille.online { color: var(--gut); background: var(--gut-flaeche); border-color: var(--gut-rand); }
.pille.online:hover { background: color-mix(in srgb, var(--gut-flaeche) 70%, var(--tile-hover)); }
.pille.online[aria-expanded="true"] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gut-punkt) 25%, transparent); }
.pille.online[data-zustand="teil"] { color: var(--warn); background: var(--warn-flaeche); border-color: color-mix(in srgb, var(--warn-punkt) 35%, transparent); }
.punkt { position: relative; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gut-punkt); flex: none; }
.punkt::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: puls 2.2s cubic-bezier(.2, .6, .3, 1) infinite; }
@keyframes puls { from { transform: scale(1); opacity: .7; } 75%, to { transform: scale(2.8); opacity: 0; } }
.pille.online[data-zustand="teil"] .punkt { background: var(--warn-punkt); }

/* ---------- Live-Status (klappt in der Karte auf) ---------- */
.status { margin-top: 14px; padding: 14px 14px 12px; border-radius: 18px; background: var(--tile); border: 1px solid var(--card-line); text-align: left; }
.status.auf { animation: blatt .45s cubic-bezier(.2, 1.1, .3, 1); }
@keyframes blatt { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.status-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.status h3 { margin: 0; font: 700 .95rem var(--display); }
.status-zeit { font: .75rem var(--mono); color: var(--sec); }
.status-satz { margin: 4px 0 0; color: var(--sec); font-size: .875rem; }
.status-liste { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 6px; }
.status-liste li { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 10px; border-radius: 10px; background: var(--tile); border: 1px solid var(--card-line); font-size: .85rem; }
.status-liste .punkt::after { animation: none; }
.status-liste li[data-ok="false"] .punkt { background: var(--warn-punkt); }
.status-liste .ms { margin-left: auto; font: .72rem var(--mono); color: var(--sec); }
.status-fuss { margin: 10px 0 0; font-size: .75rem; color: var(--sec); }

/* Kleiner Live-Punkt je Projekt-Kachel */
.projects a[data-ok]::after { content: ""; position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--gut-punkt);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gut-punkt) 18%, transparent); }
.projects a[data-ok="false"]::after { background: var(--warn-punkt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn-punkt) 18%, transparent); }
.projects .wide a[data-ok]::after { display: none; }

/* ---------- Rückseite: die Visitenkarte ---------- */
.seite-hinten { text-align: center; padding-bottom: 2px; }
.vk-kopf { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left; }
.avatar-box.klein { width: 64px; height: 64px; }
.avatar-box.klein .avatar { width: 64px; height: 64px; }
.vk-name { margin: 0; font: 800 1.5rem/1.1 var(--display); letter-spacing: -.02em; text-transform: none; color: var(--text); }
.vk-rolle { margin: 3px 0 0; color: var(--sec); font-size: .9rem; line-height: 1.35; }
.vk-qr { width: min(200px, 60vw); aspect-ratio: 1; margin: 20px auto 0; padding: 12px; border-radius: 20px; background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18), 0 0 0 1px var(--card-line); }
.vk-qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.vk-qr-text { margin: 10px 0 0; font-size: .875rem; color: var(--sec); }
.vk-qr-text b { color: var(--text); }
.zurueck { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px;
  background: none; color: var(--sec); font: 500 .85rem var(--font); cursor: pointer; }
.zurueck:hover { color: var(--text); background: var(--tile); }
.zurueck svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Umdrehen: Karte dreht sich auf die Kante, Inhalt wechselt, dreht zurück (kein 3D-Rückseiten-Trick → Glas-Unschärfe bleibt) */
.card-float { perspective: 1400px; }
.card.dreht { transition: transform .26s cubic-bezier(.5, 0, .9, .5), scale .25s, rotate .2s, box-shadow .25s; transform: rotateY(90deg); }
.card.dreht-zurueck { animation: dreh-ein .5s cubic-bezier(.15, .9, .35, 1.15); }
@keyframes dreh-ein { from { transform: rotateY(-90deg); } }

/* Hinweis unten */
.toast {
  position: fixed; z-index: 30; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); translate: -50% 16px; opacity: 0; margin: 0;
  max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 14px; background: var(--text); color: var(--sky1);
  font: 600 .9rem var(--font); box-shadow: var(--shadow); pointer-events: none; transition: translate .35s cubic-bezier(.3, 1.3, .4, 1), opacity .25s;
}
.toast.an { translate: -50% 0; opacity: 1; }

@media (max-width: 420px) {
  .pille { padding: 0 13px; font-size: .875rem; }
  .vk-name { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .punkt::after { animation: none; }
  .card.dreht, .card.dreht-zurueck { transform: none; animation: none; }
}
