/* Zeitfuchs — Website-Chat (Fuchs). Eigenständig, damit er auf jeder Seite gleich aussieht. */
.zfc {
  --zfc-paper: #F6F3EC; --zfc-paper-2: #EFE9DD; --zfc-card: #fff; --zfc-ink: #33261B; --zfc-taupe: #6F5F51;
  --zfc-orange: #E8590C; --zfc-orange-dark: #C2410C; --zfc-peach: #FCE7D6; --zfc-rule: #E6DECF; --zfc-live: #37D07A;
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 260;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.5; color: var(--zfc-ink); -webkit-font-smoothing: antialiased;
}
.zfc *, .zfc *::before, .zfc *::after { box-sizing: border-box; }
.zfc button, .zfc input, .zfc textarea { font: inherit; color: inherit; }
.zfc :focus-visible { outline: 3px solid var(--zfc-orange); outline-offset: 2px; border-radius: 8px; }

/* Startknopf: klein und ruhig */
.zfc-start { display: flex; align-items: center; gap: 10px; flex-direction: row-reverse; }
.zfc-knopf {
  position: relative; width: 56px; height: 56px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--zfc-card); border: 1px solid var(--zfc-rule);
  box-shadow: 0 2px 4px rgba(60,40,20,.06), 0 16px 30px -14px rgba(80,50,25,.35);
  display: grid; place-items: center; transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
}
.zfc-knopf:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(60,40,20,.08), 0 20px 34px -14px rgba(80,50,25,.42); }
.zfc-knopf img { width: 36px; height: 36px; object-fit: contain; } /* ganz zeigen: nie rund beschneiden, sonst fehlen die Ohren */
.zfc-knopf::after { /* grüner Punkt: "da" */
  content: ""; position: absolute; right: 3px; bottom: 3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--zfc-live); border: 2px solid var(--zfc-card);
}
.zfc-hinweis {
  background: var(--zfc-card); border: 1px solid var(--zfc-rule); border-radius: 14px; padding: 8px 12px; font-size: 14px; font-weight: 600;
  color: var(--zfc-ink); box-shadow: 0 10px 24px -14px rgba(80,50,25,.4); opacity: 0; transform: translateX(6px);
  transition: opacity .35s, transform .35s; pointer-events: none; white-space: nowrap;
}
.zfc-hinweis.an { opacity: 1; transform: none; }

/* Fenster */
.zfc-fenster {
  position: absolute; right: 0; bottom: 0; width: min(380px, calc(100vw - 32px)); height: min(580px, calc(100dvh - 40px));
  display: flex; flex-direction: column; background: var(--zfc-card); border: 1px solid var(--zfc-rule); border-radius: 22px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(60,40,20,.06), 0 34px 64px -26px rgba(80,50,25,.42);
  transform-origin: bottom right; animation: zfc-auf .32s cubic-bezier(.22,1,.36,1);
}
.zfc-fenster[hidden], .zfc-start[hidden] { display: none; }
@keyframes zfc-auf { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

.zfc-kopf { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; background: var(--zfc-paper); border-bottom: 1px solid var(--zfc-rule); }
.zfc-kopf img { width: 42px; height: 42px; padding: 7px; border-radius: 50%; background: var(--zfc-peach); object-fit: contain; flex: none; }
.zfc-titel { flex: 1; min-width: 0; }
.zfc-titel b { display: block; font-family: "Fredoka", "Hanken Grotesk", sans-serif; font-weight: 600; font-size: 17px; line-height: 1.15; }
.zfc-titel span { font-size: 12.5px; color: var(--zfc-taupe); }
.zfc-icon { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--zfc-taupe); }
.zfc-icon:hover { background: var(--zfc-paper-2); color: var(--zfc-ink); }

.zfc-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--zfc-paper); overscroll-behavior: contain; scroll-behavior: smooth; }
.zfc-msg { max-width: 86%; padding: 9px 13px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; animation: zfc-ein .25s ease-out; }
.zfc-msg.bot { align-self: flex-start; background: var(--zfc-card); border: 1px solid var(--zfc-rule); border-bottom-left-radius: 5px; }
.zfc-msg.ich { align-self: flex-end; background: var(--zfc-orange-dark); color: #fff; border-bottom-right-radius: 5px; }
.zfc-msg.team { border-left: 3px solid var(--zfc-orange); background: #FFF8F1; }
.zfc-msg.team::before { content: "Team"; display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--zfc-orange-dark); margin-bottom: 2px; }
.zfc-knopf.neu::after { background: var(--zfc-orange); animation: zfc-puls 1.6s infinite; }
@keyframes zfc-puls { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.zfc-msg a { color: var(--zfc-orange-dark); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
@keyframes zfc-ein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.zfc-tipp { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--zfc-card); border: 1px solid var(--zfc-rule); border-radius: 16px; border-bottom-left-radius: 5px; }
.zfc-tipp i { width: 6px; height: 6px; border-radius: 50%; background: var(--zfc-taupe); opacity: .5; animation: zfc-punkt 1.1s infinite ease-in-out; }
.zfc-tipp i:nth-child(2) { animation-delay: .15s; } .zfc-tipp i:nth-child(3) { animation-delay: .3s; }
@keyframes zfc-punkt { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }

.zfc-vorschlaege { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px 0 4px; }
.zfc-vorschlaege button {
  border: 1px solid var(--zfc-peach-line, #F1C6A4); background: var(--zfc-peach); color: #9A3412; border-radius: 999px;
  padding: 6px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .2s;
}
.zfc-vorschlaege button:hover { background: #F9D9BE; }

.zfc-mensch { align-self: stretch; background: var(--zfc-card); border: 1px solid var(--zfc-rule); border-radius: 16px; padding: 12px; display: grid; gap: 8px; animation: zfc-ein .25s ease-out; }
.zfc-mensch p { font-size: 14px; color: var(--zfc-taupe); line-height: 1.4; }
.zfc-mensch b { color: var(--zfc-ink); }
.zfc-mensch input:not(.zfc-falle), .zfc-mensch textarea { width: 100%; border: 1px solid var(--zfc-rule); border-radius: 10px; padding: 9px 11px; background: var(--zfc-paper); resize: none; }
.zfc-mensch input:not(.zfc-falle):focus, .zfc-mensch textarea:focus { outline: none; border-color: var(--zfc-orange); box-shadow: 0 0 0 3px rgba(232,89,12,.16); }
.zfc-mensch .zfc-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zfc-mensch .zfc-fehler { color: #B42318; font-size: 13.5px; font-weight: 600; }
.zfc .zfc-senden { border: 0; border-radius: 10px; background: var(--zfc-orange-dark); color: #fff; font-weight: 700; padding: 10px 14px; cursor: pointer; transition: background .2s; }
.zfc-senden:hover { background: #9A3412; }
.zfc-senden:disabled { opacity: .55; cursor: default; }

.zfc-eingabe { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 6px; background: var(--zfc-card); border-top: 1px solid var(--zfc-rule); }
.zfc-eingabe textarea {
  flex: 1; resize: none; max-height: 110px; border: 1px solid var(--zfc-rule); border-radius: 14px; padding: 9px 12px; background: var(--zfc-paper); line-height: 1.4;
}
.zfc-eingabe textarea:focus { outline: none; border-color: var(--zfc-orange); box-shadow: 0 0 0 3px rgba(232,89,12,.16); }
.zfc-eingabe .zfc-los { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--zfc-orange); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; transition: background .2s, transform .2s; }
.zfc-eingabe .zfc-los:hover { background: var(--zfc-orange-dark); }
.zfc-eingabe .zfc-los:disabled { opacity: .5; cursor: default; }
.zfc-fuss { padding: 2px 14px 10px; font-size: 11.5px; color: var(--zfc-taupe); line-height: 1.35; background: var(--zfc-card); }
.zfc-fuss a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 520px) {
  .zfc { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .zfc-knopf { width: 52px; height: 52px; }
  .zfc-hinweis { display: none; }
  .zfc input, .zfc textarea { font-size: 16px; } /* unter 16 px zoomt iOS beim Fokus die Seite */
  .zfc-fenster { width: calc(100vw - 24px); height: min(76dvh, 600px); }
}
@media (prefers-reduced-motion: reduce) {
  .zfc *, .zfc *::before, .zfc *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .zfc { display: none; } }
