/* ============================================================
   VKARTE — die digitale Visitenkarte auf /karte
   ------------------------------------------------------------
   Aufbau nach dem Vorbild der MKurti-Visitenkarte, aber in den
   Farben von ZL: ein Blatt im Telefonformat auf ruhigem Grund,
   oben ein Deckbild, darüber der Signet-Kreis, darunter die
   Angaben. Die Seite wird per QR-Code geöffnet — sie ist die
   ganze Ansicht, nicht ein Abschnitt in einer Seite.

   Farben und Schriften kommen aus style.css (--acc, --hd, --fd,
   --fb). Hier steht nichts fest verdrahtet, was dort schon
   definiert ist.
   ============================================================ */

/* Der Grund. Zwei weiche Lichter statt einer Fläche, damit das
   weisse Blatt darauf steht und nicht darin verschwindet. */
body.ist-karte{
  padding-bottom:0;
  background:
    radial-gradient(circle at 14% 8%, rgba(204,0,0,.09), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(13,27,62,.10), transparent 36%),
    linear-gradient(150deg, #f6f7fa, #eceff5 52%, #f7f8fb);
}

.vkarte{
  min-height:100svh;
  display:grid; place-items:center;
  padding:clamp(16px,4vw,40px) clamp(12px,3.5vw,24px);
}

/* Der Rahmen ist die halbdurchsichtige Fassung um das Blatt —
   er macht aus der Karte einen Gegenstand statt eines Kastens. */
.vkarte-rahmen{
  width:min(100%,430px);
  padding:7px;
  border-radius:38px;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 30px 85px rgba(13,27,62,.18);
}
.vkarte-blatt{
  overflow:hidden;
  border-radius:32px;
  background:var(--card);
}

/* ---------- Deckbild ---------- */
.vkarte-deck{
  position:relative; height:300px;
  background-size:cover; background-position:center 34%;
}
/* Nach unten dunkler, damit der Signet-Kreis und die weisse
   Schrift oben auf jedem Foto lesbar bleiben — nicht auf gut
   Glück, sondern als eigene Fläche. */
.vkarte-deck::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,
    rgba(13,27,62,.55) 0%, rgba(13,27,62,.12) 38%, rgba(13,27,62,.62) 100%);
}
.vkarte-deck-top{
  position:relative; z-index:1;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:18px 19px 0; color:#fff;
}
.vkarte-marke{
  display:inline-flex; align-items:center; gap:9px;
  font-family:var(--fd); font-size:11px; font-weight:800;
  text-transform:uppercase; letter-spacing:.09em;
  color:rgba(255,255,255,.9);
}
.vkarte-punkt{
  width:10px; height:10px; border-radius:999px; flex:none;
  background:var(--acc); box-shadow:0 0 0 7px rgba(204,0,0,.16);
}
.vkarte-mini{display:flex; gap:10px; align-items:center}
.vkarte-mini a{
  width:38px; height:38px; display:grid; place-items:center;
  border-radius:999px;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22);
  backdrop-filter:blur(14px);
}
.vkarte-mini svg{width:16px; height:16px; color:#fff}

/* ---------- Inhalt ---------- */
.vkarte-inhalt{position:relative; padding:0 clamp(18px,5vw,27px) 24px}

.vkarte-reihe{
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:14px; margin-top:-46px; margin-bottom:18px;
}
.vkarte-signet{
  width:92px; height:92px; flex:none;
  border-radius:999px; display:grid; place-items:center;
  background:var(--acc); color:var(--acc-ink);
  border:7px solid var(--card);
  box-shadow:0 12px 30px rgba(13,27,62,.18);
  font-family:var(--fd); font-size:27px; font-weight:800; letter-spacing:.02em;
}

/* Der Speichern-Knopf ist der Grund, warum es diese Seite gibt.
   Deshalb Vollton und ein echtes Tippziel, nicht ein Symbol. */
.vkarte-sichern{
  margin-top:30px;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:46px; padding:0 17px; border-radius:999px;
  background:var(--hd); color:#fff; border:1px solid var(--hd);
  font-family:var(--fd); font-weight:700; font-size:13px;
  box-shadow:0 14px 24px rgba(13,27,62,.18);
  transition:background .18s ease, transform .18s ease;
}
.vkarte-sichern svg{width:17px; height:17px; flex:none}
@media (hover:hover){
  .vkarte-sichern:hover{background:var(--acc); border-color:var(--acc); transform:translateY(-1px)}
}

.vkarte-name{
  font-family:var(--fd); font-size:clamp(24px,6vw,29px); font-weight:800;
  line-height:1.1; color:var(--hd); display:flex; align-items:center; gap:9px;
}
.vkarte-siegel{
  width:19px; height:19px; flex:none; display:grid; place-items:center;
  border-radius:999px; background:var(--acc); color:#fff;
}
.vkarte-siegel svg{width:12px; height:12px}
.vkarte-griff{
  display:block; margin-top:7px;
  font-family:var(--fd); font-size:11px; font-weight:700;
  letter-spacing:.16em; text-transform:uppercase; color:var(--tx-mut);
}
.vkarte-bio{
  margin-top:13px; font-size:14.5px; line-height:1.6; color:var(--tx);
}

/* Der Status sagt einen ganzen Satz — «Jetzt geöffnet, bis 18:00
   Uhr». Ein blosses «offen» zwingt zum Weiterlesen und ergibt
   vorgelesen nichts. Ohne JavaScript stehen hier die Bürozeiten. */
.vkarte-status{
  margin-top:15px;
  display:inline-flex; align-items:center; gap:9px;
  padding:9px 15px; border-radius:999px;
  border:1px solid var(--line-2); background:var(--pg);
  font-size:13.5px; font-weight:600; color:var(--hd);
}
.vkarte-status::before{
  content:""; width:9px; height:9px; border-radius:50%; flex:none;
  background:var(--tx-mut);
}
.vkarte-status--offen{border-color:rgba(30,122,76,.35); background:rgba(30,122,76,.10)}
.vkarte-status--offen::before{background:var(--ok)}
.vkarte-status--zu{border-color:rgba(204,0,0,.3); background:var(--acc-soft)}
.vkarte-status--zu::before{background:var(--acc)}

/* ---------- Zwei Kennzahlen ---------- */
.vkarte-werte{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px;
  margin-top:20px;
}
.vkarte-wert{
  padding:13px 14px; border-radius:16px;
  background:var(--pg); border:1px solid var(--line);
}
.vkarte-wert b{
  display:block; font-family:var(--fd); font-size:19px; font-weight:800;
  color:var(--hd); line-height:1.1;
}
.vkarte-wert span{
  display:block; margin-top:4px; font-size:11.5px; font-weight:600;
  color:var(--tx-mut); line-height:1.35;
}

/* ---------- Vier Schnellaktionen ---------- */
.vkarte-akt{
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px;
  margin-top:18px;
}
.vkarte-akt a{
  height:54px; display:grid; place-items:center;
  border-radius:18px; background:var(--card);
  border:1px solid var(--line); box-shadow:0 8px 18px rgba(13,27,62,.05);
  transition:border-color .18s ease, transform .18s ease;
}
.vkarte-akt svg{width:21px; height:21px; color:var(--hd)}
.vkarte-akt a.ist-erste{background:var(--acc); border-color:var(--acc)}
.vkarte-akt a.ist-erste svg{color:var(--acc-ink)}
@media (hover:hover){
  .vkarte-akt a:hover{border-color:var(--acc); transform:translateY(-2px)}
}

/* ---------- Rubriken und Zeilen ---------- */
.vkarte-rubrik{
  display:block; margin:24px 0 9px;
  font-family:var(--fd); font-size:10px; font-weight:800;
  text-transform:uppercase; letter-spacing:.11em; color:var(--tx-mut);
}
.vkarte-liste{display:grid; border-top:1px solid var(--line)}
.vkarte-zeile{
  display:grid; grid-template-columns:25px 1fr; align-items:center;
  gap:11px; min-height:52px; padding:11px 0;
  border-bottom:1px solid var(--line);
}
.vkarte-zeile svg{width:18px; height:18px; color:var(--acc)}
.vkarte-zeile small{
  display:block; font-size:11px; font-weight:700; color:var(--tx-mut);
  margin-bottom:2px;
}
.vkarte-zeile b{
  display:block; font-size:13.5px; font-weight:600; color:var(--hd);
  line-height:1.3; overflow-wrap:anywhere;
}

/* ---------- Bürozeiten ---------- */
.vkarte-zeiten{display:grid; border-top:1px solid var(--line)}
.vkarte-tag{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  min-height:44px; padding:9px 2px; font-size:14px; color:var(--tx);
  border-bottom:1px solid var(--line);
}
.vkarte-tag b{font-weight:700; color:var(--hd); white-space:nowrap}
.vkarte-tag--heute{
  background:var(--acc-soft); border-radius:10px;
  padding-inline:10px; border-bottom-color:transparent;
}
.vkarte-tag--heute span,.vkarte-tag--heute b{color:var(--acc-2)}
.vkarte-tag--heute span::after{
  content:" · heute"; font-size:11.5px; font-weight:700; letter-spacing:.03em;
}

/* ---------- Abschluss ---------- */
.vkarte-cta{
  display:flex; align-items:center; justify-content:center; gap:9px;
  min-height:52px; margin-top:22px; border-radius:16px;
  background:var(--acc); color:var(--acc-ink); border:1px solid var(--acc);
  font-family:var(--fd); font-weight:700; font-size:15px;
  transition:background .18s ease;
}
.vkarte-cta svg{width:18px; height:18px}
@media (hover:hover){ .vkarte-cta:hover{background:var(--acc-2)} }

.vkarte-fuss{
  margin-top:20px; padding-top:16px; border-top:1px solid var(--line);
  display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center;
  font-size:12px; color:var(--tx-mut);
}
.vkarte-fuss a{min-height:34px; display:inline-flex; align-items:center}
@media (hover:hover){ .vkarte-fuss a:hover{color:var(--acc-2)} }

/* ---------- Kleine Geräte ---------- */
@media (max-width:400px){
  .vkarte-deck{height:250px}
  .vkarte-signet{width:80px; height:80px; font-size:24px; border-width:6px}
  .vkarte-reihe{margin-top:-40px}
  .vkarte-sichern{margin-top:26px; padding:0 14px; font-size:12.5px}
  .vkarte-akt a{height:50px}
}

@media (prefers-reduced-motion:reduce){
  .vkarte-akt a,.vkarte-sichern,.vkarte-cta{transition:none}
  .vkarte-akt a:hover,.vkarte-sichern:hover{transform:none}
}

/* ---------- Leistungen als Chips ----------
   Sie stehen hier nicht in .prose, brauchen also keine Gegenwehr gegen
   `.prose a:not(.btn)` — anders als in der früheren Fassung. */
.vk-chips{display:flex; flex-wrap:wrap; gap:8px}
.vk-chips a.vk-chip{
  display:inline-flex; align-items:center; min-height:38px;
  padding:8px 13px; border-radius:999px;
  border:1px solid var(--line-2); color:var(--tx);
  font-family:var(--fd); font-weight:600; font-size:12.5px; letter-spacing:.03em;
  transition:border-color .18s ease, color .18s ease, background .18s ease;
}
@media (hover:hover){
  .vk-chips a.vk-chip:hover{border-color:var(--acc); color:var(--acc-2); background:var(--acc-soft)}
}

/* ---------- Tippziele ----------
   Alles Antippbare misst mindestens 44px Höhe. Gemessen am gerenderten
   Kasten, nicht geschätzt: Markenzeile, Kanal-Kreise, Chips und die
   Fusszeile lagen bei 19 bis 39px und wären im Testlauf durchgefallen. */
.vkarte-marke{min-height:44px}
.vkarte-mini a{width:44px; height:44px}
.vk-chips a.vk-chip{min-height:44px}
.vkarte-fuss a{min-height:44px}
.vkarte-fuss{gap:0 14px}
