/* Kunden-Feedback – eigenstaendige Gestaltung, unabhaengig vom Design der Seite */
.fb-wurzel, .fb-ui, .fb-ui * {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.35;
}
.fb-wurzel {
  position: absolute; top: 0; left: 0; width: 0; height: 0;
  z-index: 2147483000; pointer-events: none;
}
.fb-ebene {
  position: absolute !important; top: 0; left: 0; display: block !important;
  max-width: none !important; max-height: none !important; min-width: 0; min-height: 0;
  overflow: visible !important; pointer-events: none; transform: none !important;
}
.fb-wurzel svg polyline { visibility: visible; }
.fb-strich { fill: none !important; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.fb-strich.fb-erledigt { opacity: 0.22; }
.fb-notizen { position: absolute; top: 0; left: 0; }

/* Fang-Ebene: nimmt im Stift-/Notizmodus die Eingaben entgegen */
.fb-fang {
  display: none; position: fixed; inset: 0; z-index: 2147483001;
  cursor: crosshair; touch-action: none; background: rgba(20, 30, 60, 0.04);
}
.fb-fang.fb-zeigen { display: block; }
.fb-fang.fb-notizmodus { cursor: copy; }
.fb-fang.fb-radiermodus { cursor: cell; background: rgba(229, 72, 77, 0.04); }

/* Knoepfe allgemein */
.fb-knopf {
  appearance: none; border: 0; margin: 0; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #1d2433;
  background: transparent; border-radius: 10px; padding: 8px 11px;
  transition: background 0.12s, transform 0.12s;
}
.fb-knopf:hover { background: rgba(30, 50, 90, 0.08); }
.fb-knopf:focus-visible { outline: 3px solid #2f6fed; outline-offset: 1px; }
.fb-knopf:disabled { opacity: 0.35; cursor: default; }
.fb-knopf.fb-aktiv { background: #2f6fed; color: #fff; }
.fb-knopf.fb-aus { opacity: 0.45; }

/* Start-Knopf unten links – bewusst auffaellig */
.fb-starter {
  position: fixed; left: 20px; bottom: 20px; z-index: 2147483002;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px;
  font-size: 17px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #ff3d6e 0%, #ff7a1a 100%);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(255, 61, 110, 0.35), 0 14px 34px rgba(255, 70, 60, 0.55);
  animation: fb-puls 2.6s ease-in-out infinite;
}
.fb-starter:hover {
  background: linear-gradient(135deg, #ff2a5f 0%, #ff6a00 100%);
  transform: translateY(-2px) scale(1.03);
  animation-play-state: paused;
}
@keyframes fb-puls {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 61, 110, 0.35), 0 14px 34px rgba(255, 70, 60, 0.55); }
  50%      { box-shadow: 0 0 0 12px rgba(255, 61, 110, 0), 0 14px 34px rgba(255, 70, 60, 0.7); }
}
@media (prefers-reduced-motion: reduce) { .fb-starter { animation: none; } }
.fb-starter.fb-versteckt { display: none; }
.fb-zahl {
  display: none; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 13px; background: #fff; color: #ff3d6e;
  font-size: 14px; font-weight: 900; align-items: center; justify-content: center;
}
.fb-zahl.fb-zeigen { display: inline-flex; }

/* Sprechblase beim ersten Besuch */
.fb-tipp {
  display: none; position: fixed; left: 20px; bottom: 92px; z-index: 2147483002;
  max-width: 260px; padding: 12px 14px; border-radius: 14px;
  font-size: 14px; font-weight: 600; line-height: 1.4; color: #1d2433; background: #fff;
  box-shadow: 0 14px 34px rgba(10, 20, 50, 0.3);
}
.fb-tipp::after {
  content: ""; position: absolute; left: 34px; bottom: -8px;
  border: 8px solid transparent; border-bottom: 0; border-top-color: #fff;
}
.fb-tipp.fb-zeigen { display: block; animation: fb-rein 0.35s ease-out both; }
@keyframes fb-rein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Werkzeugleiste unten mittig */
.fb-leiste {
  display: none; position: fixed; bottom: 18px; left: 0; right: 0; margin-inline: auto; width: max-content;
  z-index: 2147483003; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center;
  max-width: calc(100vw - 24px); padding: 8px;
  background: rgba(255, 255, 255, 0.96); border: 1px solid rgba(20, 30, 60, 0.12);
  border-radius: 16px; box-shadow: 0 18px 50px rgba(10, 20, 50, 0.28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.fb-leiste.fb-zeigen { display: flex; }
.fb-farben { display: inline-flex; gap: 5px; padding: 0 6px; }
.fb-knopf.fb-farbe {
  width: 22px; height: 22px; padding: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}
.fb-knopf.fb-farbe.fb-aktiv { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1d2433; }
.fb-name {
  width: 110px; height: 34px; margin: 0 4px; padding: 0 10px;
  font-size: 14px; color: #1d2433; background: #f3f5f9;
  border: 1px solid rgba(20, 30, 60, 0.12); border-radius: 10px; outline: none;
}
.fb-name:focus { border-color: #2f6fed; }
.fb-zu { color: #6b7385; }

.fb-hinweis {
  display: none; position: fixed; top: 16px; left: 0; right: 0; margin-inline: auto; width: max-content;
  z-index: 2147483003; padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #fff; background: rgba(20, 28, 45, 0.88);
  pointer-events: none; max-width: calc(100vw - 24px); text-align: center;
}
.fb-hinweis.fb-zeigen { display: block; }

/* Notizen */
.fb-notiz {
  position: absolute; width: 230px; pointer-events: auto;
  padding: 10px 12px 8px; border-radius: 4px 14px 14px 14px;
  color: #3a3000; background: #fff3a6;
  box-shadow: 0 10px 26px rgba(80, 60, 0, 0.28), 0 1px 0 rgba(0, 0, 0, 0.05);
  font-size: 14px; transform: rotate(-0.6deg);
}
.fb-notiz::before {
  content: ""; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px;
  border-radius: 50%; background: #e5484d; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.fb-notiz.fb-erledigt { opacity: 0.55; background: #e8f5e9; color: #2b4a2e; }
.fb-notiz.fb-erledigt .fb-notiz-text { text-decoration: line-through; }
.fb-notiz.fb-laedt { opacity: 0.6; pointer-events: none; }
.fb-notiz-kopf {
  display: flex; justify-content: space-between; gap: 6px;
  font-size: 11px; font-weight: 700; opacity: 0.7; margin-bottom: 5px;
}
.fb-notiz-text { white-space: pre-wrap; word-wrap: break-word; }
.fb-notiz-fuss { display: flex; justify-content: flex-end; gap: 4px; margin-top: 8px; }
.fb-knopf.fb-klein { font-size: 12px; padding: 4px 8px; color: inherit; }
.fb-knopf.fb-klein:hover { background: rgba(0, 0, 0, 0.07); }
.fb-knopf.fb-primaer { background: #2f6fed; color: #fff; }
.fb-knopf.fb-primaer:hover { background: #2559c4; }
.fb-notiz-feld {
  display: block; width: 100%; min-height: 80px; resize: vertical;
  padding: 7px 8px; font-size: 14px; color: #2a2300;
  background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(120, 90, 0, 0.25);
  border-radius: 8px; outline: none;
}
.fb-notiz-feld:focus { border-color: #c79a00; }

/* Uebersicht */
.fb-uebersicht {
  display: none; position: fixed; bottom: 84px; left: 0; right: 0; margin-inline: auto;
  z-index: 2147483004; width: min(420px, calc(100vw - 24px)); max-height: 50vh; overflow: auto;
  padding: 12px; background: #fff; color: #1d2433; border-radius: 14px;
  box-shadow: 0 18px 50px rgba(10, 20, 50, 0.3);
}
.fb-uebersicht.fb-zeigen { display: block; }
.fb-ue-titel { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #6b7385; margin-bottom: 8px; }
.fb-ue-zeile {
  display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px;
  border-radius: 9px; color: #1d2433; text-decoration: none; font-size: 14px;
}
.fb-ue-zeile:hover, .fb-ue-zeile.fb-aktiv { background: #eef3ff; }
.fb-ue-pfad { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-ue-zahl { color: #6b7385; white-space: nowrap; }
.fb-ue-leer { font-size: 14px; color: #6b7385; padding: 6px 2px; }

/* Rueckmeldung */
.fb-toast {
  position: fixed; bottom: 90px; left: 0; right: 0; margin-inline: auto; width: max-content; transform: translateY(10px);
  z-index: 2147483005; padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #fff; background: #1a7f37;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.fb-toast.fb-zeigen { opacity: 1; transform: none; }
.fb-toast.fb-fehler { background: #c62828; }

@media print { .fb-ui, .fb-wurzel { display: none !important; } }
@media (max-width: 560px) {
  .fb-starter { left: 12px; bottom: 12px; padding: 13px 19px; font-size: 16px; }
  .fb-tipp { left: 12px; bottom: 80px; }
  .fb-leiste { bottom: 10px; }
  .fb-name { width: 90px; }
}
