/*!
 * PZVS Methodenfinder – Der Ast-o-naut
 * @author WebExperten Online-Marketing GmbH
 * @link   https://www.webexperten.net
 * © 2026 WebExperten Online-Marketing GmbH
 *
 * Farben und Schrift entsprechen den Avada-Theme-Optionen von pzvs.berlin.
 */

@font-face{
  font-family:"Berlin Type";font-style:normal;font-weight:400;font-display:swap;
  src:url("/wp-content/uploads/2024/02/BerlinTypeWeb-Regular.woff2") format("woff2"),
      url("/wp-content/uploads/2024/02/BerlinTypeWeb-Regular.woff") format("woff");
}
@font-face{
  font-family:"Berlin Type";font-style:normal;font-weight:700;font-display:swap;
  src:url("/wp-content/uploads/2024/02/BerlinTypeWeb-Bold.woff2") format("woff2"),
      url("/wp-content/uploads/2024/02/BerlinTypeWeb-Bold.woff") format("woff");
}

.pzvs-mf{
  --pz-weiss:#ffffff;
  --pz-gelb:#f9a912;
  --pz-lila-hell:#946bad;
  --pz-lila-mittel:#643a7d;
  --pz-lila:#4a2660;
  --pz-text:#454545;
  --pz-pastell:#c8a2c8;
  --pz-grau:#f7f7f7;
  --pz-lila-bg:#f9f7ff;
  --pz-radius:16px;
  --pz-schatten:0 4px 12px rgba(74,38,96,.10), 0 18px 44px rgba(74,38,96,.14);
  font:16px/1.5 "Berlin Type",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--pz-text);
}
.pzvs-mf *{box-sizing:border-box}

/* ---------- Chatfenster ---------- */
.pzvs-mf-chat{
  background:var(--pz-weiss);border-radius:var(--pz-radius);box-shadow:var(--pz-schatten);
  display:flex;flex-direction:column;overflow:hidden;
}
.pzvs-mf-chat[hidden]{display:none}
.pzvs-mf--eingebettet .pzvs-mf-chat{
  position:relative;width:100%;max-width:560px;margin:0 auto;height:min(680px, 80vh);
}
.pzvs-mf--schwebend .pzvs-mf-chat{
  position:fixed;right:22px;bottom:22px;z-index:99990;
  width:404px;max-width:calc(100vw - 44px);height:min(660px, calc(100vh - 44px));
}

.pzvs-mf-kopf{
  background:var(--pz-lila);color:#fff;padding:13px 14px;display:flex;align-items:center;gap:11px;flex:none;
}
.pzvs-mf-ava{
  width:46px;height:46px;border-radius:50%;background:var(--pz-weiss);border:2px solid var(--pz-gelb);
  display:grid;place-items:center;flex:none;
}
.pzvs-mf-ava img{width:38px;height:38px;display:block}
/* Seit 13.10.2026 ohne Unterzeile – der Name steht allein und dadurch
   senkrecht mittig neben dem Bild (align-items:center am Kopf). */
.pzvs-mf-kopf .pzvs-mf-titel{margin:0;font-size:17px;font-weight:700;line-height:1.25;color:#fff}
.pzvs-mf-zu{
  margin-left:auto;background:none;border:0;color:#e3d6ee;font-size:24px;line-height:1;
  cursor:pointer;padding:4px 6px;border-radius:8px;font-family:inherit;
}
.pzvs-mf-zu:hover{background:rgba(255,255,255,.14);color:#fff}

.pzvs-mf-fortschritt{height:4px;background:#e6dcf0;flex:none}
.pzvs-mf-fortschritt span{display:block;height:100%;width:0;background:var(--pz-gelb);transition:width .3s ease}

.pzvs-mf-verlauf{
  flex:1;overflow-y:auto;padding:16px 14px 4px;background:var(--pz-weiss);
  display:flex;flex-direction:column;
}
.pzvs-mf-verlauf > :first-child{margin-top:auto}
/* Eingebettet beginnt der Verlauf oben – der Block ist hoch und säße sonst
   mit zwei Zeilen am unteren Rand. Schwebend bleibt es beim Chat-Verhalten. */
.pzvs-mf--eingebettet .pzvs-mf-verlauf > :first-child{margin-top:0}
.pzvs-mf-verlauf::-webkit-scrollbar{width:8px}
.pzvs-mf-verlauf::-webkit-scrollbar-thumb{background:#e0d5ec;border-radius:4px}

/* ---------- Nachrichten ---------- */
.pzvs-mf-zeile{display:flex;gap:9px;margin-bottom:12px;align-items:flex-end}
.pzvs-mf-zeile.neu{animation:pzvs-mf-rein .3s ease both}
@keyframes pzvs-mf-rein{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.pzvs-mf-mini{
  width:30px;height:30px;border-radius:50%;flex:none;background:var(--pz-lila-bg);
  border:1.5px solid var(--pz-pastell);display:grid;place-items:center;overflow:hidden;
}
.pzvs-mf-mini img{width:26px;height:26px;display:block}
.pzvs-mf-blase{
  background:var(--pz-lila-bg);border:1px solid #ece4f5;border-radius:4px 16px 16px 16px;
  padding:10px 14px;max-width:84%;font-size:14.5px;color:var(--pz-text);
}
.pzvs-mf-blase p{margin:0;color:inherit;font-size:inherit;line-height:inherit}
.pzvs-mf-blase p + p{margin-top:7px}
.pzvs-mf-zeile.ich{justify-content:flex-end}
.pzvs-mf-zeile.ich .pzvs-mf-blase{
  background:var(--pz-lila);color:#fff;border-color:var(--pz-lila);
  border-radius:16px 16px 4px 16px;font-weight:700;
}

.pzvs-mf-tippt{display:flex;gap:4px;padding:4px 2px}
.pzvs-mf-tippt i{width:7px;height:7px;border-radius:50%;background:var(--pz-lila-hell);animation:pzvs-mf-hopp 1.1s infinite}
.pzvs-mf-tippt i:nth-child(2){animation-delay:.18s}
.pzvs-mf-tippt i:nth-child(3){animation-delay:.36s}
@keyframes pzvs-mf-hopp{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}

/* ---------- Antwortmöglichkeiten ---------- */
.pzvs-mf-antworten{
  padding:8px 14px 12px;display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end;flex:none;
  max-height:230px;overflow-y:auto;background:var(--pz-weiss);
  box-shadow:0 -6px 10px -8px rgba(74,38,96,.25);
}
.pzvs-mf-antworten:empty{display:none}
.pzvs-mf-chip{
  font:inherit;font-size:14px;font-weight:700;color:var(--pz-lila);background:#fff;
  border:2px solid var(--pz-lila);border-radius:999px;padding:7px 15px;cursor:pointer;
  transition:background .15s,color .15s;line-height:1.3;
}
.pzvs-mf-chip:hover{background:var(--pz-lila);color:#fff}
.pzvs-mf-chip:focus-visible{outline:3px solid var(--pz-gelb);outline-offset:2px}
.pzvs-mf-chip.egal{border-color:var(--pz-lila-hell);color:var(--pz-lila-hell)}
.pzvs-mf-chip.egal:hover{background:var(--pz-lila-hell);color:#fff}

/* ---------- Ergebniskarten ---------- */
.pzvs-mf-treffer{
  display:block;text-decoration:none;color:inherit;background:#fff;
  border:1px solid #e8e0f2;border-left:5px solid var(--pz-gelb);border-radius:12px;
  padding:12px 14px;margin-bottom:9px;transition:box-shadow .15s,transform .12s,border-color .15s;
}
.pzvs-mf-treffer:hover{box-shadow:0 4px 14px rgba(74,38,96,.14);transform:translateY(-1px);border-color:var(--pz-pastell)}
.pzvs-mf-treffer:focus-visible{outline:3px solid var(--pz-gelb);outline-offset:2px}
/* Avada stylt h3 über `.post-content h3` (32 px, eigene Schrift, eigene Zeilenhöhe)
   und wird nach dem Plugin geladen. Bei gleicher Spezifität gewinnt Avada, deshalb
   hier ein Klassenschritt mehr und alle betroffenen Eigenschaften ausdrücklich. */
.pzvs-mf .pzvs-mf-treffer h3{
  margin:0 0 4px;font-size:15.5px;color:var(--pz-lila);font-weight:700;line-height:1.25;
  font-family:inherit;letter-spacing:0;text-transform:none;
}
.pzvs-mf-meta{font-size:12px;color:var(--pz-lila-hell);font-weight:700;margin-bottom:5px}
.pzvs-mf-treffer p{margin:0;font-size:13.5px;line-height:1.45;color:var(--pz-text)}
.pzvs-mf-mehr{display:inline-block;margin-top:7px;font-size:13px;font-weight:700;color:var(--pz-lila)}

/* Nur für Screenreader – kennzeichnet Links, die einen neuen Tab öffnen. */
.pzvs-mf-sr{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ---------- Fußzeile ---------- */
.pzvs-mf-fuss{
  display:flex;gap:6px;align-items:center;padding:9px 14px;border-top:1px solid #eee6f5;
  background:var(--pz-grau);flex:none;
}
.pzvs-mf-fuss button{
  font:inherit;font-size:13px;color:var(--pz-lila-mittel);background:none;border:0;
  padding:6px 9px;border-radius:8px;cursor:pointer;font-weight:700;
}
.pzvs-mf-fuss button:hover{background:#ece4f5}
.pzvs-mf-rest{margin-left:auto;font-size:11.5px;color:#8a7f95;font-weight:400}

/* ---------- Launcher (nur im Modus „schwebend") ---------- */
.pzvs-mf-launcher{
  position:fixed;right:22px;bottom:22px;z-index:99989;
  width:74px;height:74px;border-radius:50%;border:3px solid var(--pz-gelb);
  background:var(--pz-weiss);box-shadow:var(--pz-schatten);cursor:pointer;padding:0;
  display:grid;place-items:center;transition:transform .18s ease;
}
.pzvs-mf-launcher:hover{transform:scale(1.06)}
.pzvs-mf-launcher img{width:60px;height:60px;display:block}
.pzvs-mf-puls{
  position:absolute;inset:-3px;border-radius:50%;border:3px solid var(--pz-gelb);
  animation:pzvs-mf-puls 2.6s ease-out infinite;pointer-events:none;
}
@keyframes pzvs-mf-puls{0%{opacity:.7;transform:scale(1)}70%,100%{opacity:0;transform:scale(1.35)}}

@media (max-width:520px){
  .pzvs-mf--eingebettet .pzvs-mf-chat{height:min(620px, 78vh)}
  .pzvs-mf--schwebend .pzvs-mf-chat{right:0;bottom:0;width:100vw;max-width:100vw;height:100dvh;border-radius:0}
}
@media (prefers-reduced-motion:reduce){
  .pzvs-mf-zeile.neu{animation:none}
  .pzvs-mf-puls{animation:none}
  .pzvs-mf-tippt i{animation:none}
  .pzvs-mf-fortschritt span{transition:none}
}

/* Hinweis, den nur Redakteure sehen (Methoden ohne Einsatz-Paare). */
.pzvs-mf-adminhinweis{
  max-width:560px;margin:0 auto 14px;padding:10px 14px;border-radius:10px;
  background:#fff8e8;border:1px solid #f0dca8;color:#6d5117;font-size:14px;line-height:1.45;
}

/* =====================================================================
   Layout „begleiter": Der Ast-o-naut links neben dem Chat
   Shortcode: [pzvs_methodenfinder layout="begleiter" bewegung="wind"]
   ===================================================================== */
.pzvs-mf-gespann{
  display:grid;grid-template-columns:minmax(230px,1fr) minmax(0,560px);gap:34px;align-items:start;
  max-width:1000px;margin:0 auto;
}
.pzvs-mf-gespann .pzvs-mf--eingebettet .pzvs-mf-chat{max-width:none;height:540px}

.pzvs-mf-begleiter{
  font:16px/1.55 "Berlin Type",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:#454545;
}
.pzvs-mf-portrait{width:100%;max-width:240px;height:auto;display:block}
.pzvs-mf-gespann .pzvs-mf-begleiter h3.pzvs-mf-b-titel{
  font-family:inherit;font-size:22px;line-height:1.32;font-weight:700;letter-spacing:0;
  text-transform:none;color:#4a2660;margin:18px 0 10px;
}
/* Der zweite Satz bekommt eine eigene Zeile. */
.pzvs-mf-gespann .pzvs-mf-begleiter h3.pzvs-mf-b-titel .pzvs-mf-b-zeile{display:block}
.pzvs-mf-gespann .pzvs-mf-b-text{margin:0 0 14px;font-size:15.5px;color:inherit;line-height:1.55}
.pzvs-mf-gespann .pzvs-mf-b-liste{list-style:none;margin:0;padding:0}
.pzvs-mf-gespann .pzvs-mf-b-liste li{
  position:relative;padding-left:26px;margin-bottom:9px;font-size:15px;line-height:1.5;list-style:none;
}
.pzvs-mf-gespann .pzvs-mf-b-liste li::before{
  content:"";position:absolute;left:0;top:7px;width:11px;height:11px;border-radius:50%;
  background:#f9a912;
}

/* ---------- Bewegung ----------
   Figur und Ast sind ein einziges Bild, bewegt wird deshalb das Ganze.
   Zwei ineinandergeschachtelte Ebenen mit unterschiedlichen Taktlängen
   (7,2 s und 5,1 s) – die decken sich nie, dadurch wirkt es nicht wie
   eine Schleife. Ausschlag: rund 8 px senkrecht, 5 px seitlich. */
.pzvs-mf-wiege{display:block;max-width:240px;transform-origin:50% 88%}
.pzvs-mf-gespann[data-bewegung="wind"] .pzvs-mf-wiege{
  animation:pzvs-mf-wiegen 7.2s ease-in-out infinite;
}
.pzvs-mf-gespann[data-bewegung="wind"] .pzvs-mf-portrait,
.pzvs-mf-gespann[data-bewegung="dezent"] .pzvs-mf-portrait{
  animation:pzvs-mf-schweben 5.1s ease-in-out infinite;
}
@keyframes pzvs-mf-wiegen{
  0%,100%{transform:rotate(-1.3deg)}
  50%    {transform:rotate(1.3deg)}
}
@keyframes pzvs-mf-schweben{
  0%,100%{transform:translateY(0)}
  50%    {transform:translateY(-7px)}
}

@media (max-width:860px){
  .pzvs-mf-gespann{grid-template-columns:1fr;gap:22px}
  .pzvs-mf-wiege{margin:0 auto}
  .pzvs-mf-gespann .pzvs-mf-begleiter h3.pzvs-mf-b-titel{font-size:19px}
}
@media (prefers-reduced-motion:reduce){
  .pzvs-mf-wiege,.pzvs-mf-portrait{animation:none !important}
}
