@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* DIE HOFSTATT Berater — v1.0.0
   Namespace: .hofs-root / hofs-* — kein Konflikt */

.hofs-root,#hofs-popup,#hofs-btn {
  --a:  #c54982;   /* DIE HOFSTATT Akzent */
  --a2: #a63a6c;   /* Akzent dunkel (Hover) */
  --g:  #000000;   /* Sekundärfarbe Schwarz (Flächen/Chips) */
  --g2: #000000;   /* Schwarz */
  --b:  #000000;
  --b2: #1a1a1a;
  --b3: #2d2d2d;
  --br: #2a2a2a;
  --br2:#3a3a3a;
  --w:  #ffffff;
  --f:  'Open Sans',-apple-system,sans-serif;
}
.hofs-root,.hofs-root * { box-sizing:border-box; font-family:var(--f); }

/* ── Widget ── */
.hofs-root { background:var(--b); border:1px solid var(--br); overflow:hidden; color:var(--w); }

/* Header — Akzent */
.hofs-hdr   { background:var(--a); padding:20px; }
.hofs-eye   { display:block; font-size:9px; letter-spacing:.18em; text-transform:uppercase; color:rgba(255,255,255,.7); margin-bottom:6px; font-weight:400; }
.hofs-title { font-size:17px; font-weight:300; color:var(--w); line-height:1.3; }

/* Check body */
.hofs-check-body { padding:22px 20px 10px; background:var(--b); min-height:200px; overflow-y:auto; }

/* Intro */
.hofs-intro { font-size:13px; color:rgba(255,255,255,.4); line-height:1.75; margin-bottom:18px; padding-bottom:16px; border-bottom:1px solid var(--br); font-weight:300; }

/* Progress */
.hofs-prog-row  { display:flex; justify-content:space-between; font-size:11px; color:rgba(255,255,255,.3); margin-bottom:6px; }
.hofs-prog-bar  { height:2px; background:var(--br); margin-bottom:18px; }
.hofs-prog-fill { height:100%; background:var(--a); transition:width .4s; } /* Akzent progress */
.hofs-q         { font-size:15px; font-weight:600; color:var(--w); margin-bottom:14px; line-height:1.4; }

/* Options */
.hofs-opts { display:flex; flex-direction:column; }
.hofs-opt  { width:100%; text-align:left; padding:12px 14px; border:1px solid var(--br); border-top:none; background:var(--b2); cursor:pointer; font-size:13px; color:rgba(255,255,255,.65); display:flex; align-items:center; gap:12px; font-weight:300; transition:all .15s; font-family:var(--f); }
.hofs-opts .hofs-opt:first-child { border-top:1px solid var(--br); }
.hofs-opt:hover { background:#1e1622; color:var(--w); }
.hofs-opt.sel   { background:rgba(235,81,43,.2); color:var(--w); border-color:var(--a); }
.hofs-opt-box   { width:16px; height:16px; flex-shrink:0; border:2px solid var(--br2); display:flex; align-items:center; justify-content:center; transition:all .15s; }
.hofs-opt.sel .hofs-opt-box { background:var(--a); border-color:var(--a); }
.hofs-opt.sel .hofs-opt-box::after { content:''; width:4px; height:8px; border-right:2px solid #fff; border-bottom:2px solid #fff; transform:rotate(40deg) translateY(-1px); display:block; }

/* Nav */
.hofs-check-nav { display:flex; align-items:center; justify-content:space-between; padding:12px 20px; border-top:1px solid var(--br); background:#0d0d0d; }
.hofs-btn-back  { font-size:12px; color:rgba(255,255,255,.3); background:none; border:none; cursor:pointer; font-family:var(--f); padding:6px 0; }
.hofs-btn-back:disabled { opacity:.3; cursor:not-allowed; }
.hofs-btn-next  { padding:11px 24px; background:var(--a); color:#fff; border:none; cursor:pointer; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; font-family:var(--f); transition:background .15s; }
.hofs-btn-next:disabled { background:#2a2a2a; color:#444; cursor:not-allowed; }
.hofs-btn-next:not(:disabled):hover { background:var(--a2); }

/* Result */
.hofs-result   { background:var(--b); }
.hofs-res-badge{ background:var(--a); padding:18px 20px; } /* Akzent badge */
.hofs-res-kicker{ display:block; font-size:10px; letter-spacing:.16em; text-transform:uppercase; color:rgba(255,255,255,.7); margin-bottom:5px; }
.hofs-res-title { font-size:19px; font-weight:300; color:var(--w); }
.hofs-res-body  { padding:20px; }
.hofs-res-sum   { font-size:13px; color:rgba(255,255,255,.55); line-height:1.8; margin-bottom:18px; font-weight:300; }
.hofs-topics    { border:1px solid var(--br); margin-bottom:16px; }
.hofs-topics-hdr{ padding:9px 16px; background:var(--b2); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.3); border-bottom:1px solid var(--br); }
.hofs-topics-list{ padding:12px 16px; display:flex; flex-wrap:wrap; gap:7px; background:#111; }
.hofs-tag       { padding:5px 12px; border:1px solid var(--a); font-size:11.5px; color:var(--a); background:var(--g); } /* Schwarzer Chip, orange Kontur */
.hofs-disc      { border-left:3px solid var(--a); padding:10px 14px; font-size:11.5px; color:rgba(255,255,255,.35); line-height:1.65; margin-bottom:18px; background:var(--b2); font-weight:300; }

/* Lead form */
.hofs-lead-sec { border-top:1px solid var(--br); padding-top:18px; margin-bottom:16px; }
.hofs-lead-ttl { font-size:14px; font-weight:600; margin-bottom:4px; color:var(--w); }
.hofs-lead-sub { font-size:12.5px; color:rgba(255,255,255,.4); line-height:1.6; margin-bottom:14px; font-weight:300; }

/* Dark inputs */
.hofs-root input.hofs-field {
  display:block; width:100%; margin-bottom:4px;
  border:1px solid var(--br2) !important;
  padding:12px 14px !important;
  font-size:13.5px; font-family:var(--f); font-weight:300;
  color:#fff !important; background:var(--b3) !important;
  -webkit-text-fill-color:#fff !important;
  outline:none; transition:border-color .15s;
  border-radius:0 !important; box-shadow:none !important;
}
.hofs-root input.hofs-field::placeholder { color:rgba(255,255,255,.3) !important; }
.hofs-root input.hofs-field:focus { border-color:var(--a) !important; }

/* Checkbox */
.hofs-consent { display:flex; align-items:flex-start; gap:10px; margin:14px 0 18px; }
.hofs-cbox    { width:18px; height:18px; flex-shrink:0; margin-top:1px; border:2px solid var(--br2); background:var(--b3); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .15s; }
.hofs-cbox.on { background:var(--a); border-color:var(--a); }
.hofs-cbox.on::after { content:''; width:4px; height:8px; border-right:2px solid #fff; border-bottom:2px solid #fff; transform:rotate(40deg) translateY(-1px); display:block; }
.hofs-consent label { font-size:11.5px; color:rgba(255,255,255,.4); line-height:1.55; cursor:pointer; font-weight:300; }
.hofs-consent a { color:rgba(255,255,255,.6); text-decoration:underline; }

/* CTAs */
.hofs-cta-pri { display:block; width:100%; padding:14px; background:var(--a); color:#fff; border:none; cursor:pointer; font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; text-align:center; text-decoration:none; font-family:var(--f); margin-bottom:8px; transition:background .15s; }
.hofs-cta-pri:hover:not(:disabled) { background:var(--a2); }
.hofs-cta-pri:disabled { background:#2a2a2a; color:#444; cursor:not-allowed; }
.hofs-cta-sec { display:block; width:100%; padding:12px; background:none; color:rgba(255,255,255,.45); border:1px solid #333; cursor:pointer; font-size:11px; text-align:center; text-decoration:none; font-family:var(--f); margin-bottom:8px; transition:all .15s; }
.hofs-cta-sec:hover { border-color:var(--a); color:var(--a); }
.hofs-restart { display:block; margin:10px auto 0; font-size:11.5px; color:rgba(255,255,255,.2); background:none; border:none; cursor:pointer; text-decoration:underline; font-family:var(--f); }

/* Footer */
.hofs-foot { padding:11px 20px; border-top:1px solid var(--br); display:flex; align-items:center; justify-content:space-between; background:#0d0d0d; font-size:10.5px; color:rgba(255,255,255,.25); }
.hofs-foot strong { color:rgba(255,255,255,.5); font-weight:600; }
.hofs-foot a { font-size:10.5px; color:rgba(255,255,255,.25); text-decoration:none; margin-left:12px; }

/* ══════════════════════════
   FLOAT BUTTON & POPUP
══════════════════════════ */
#hofs-btn {
  position:fixed; top:50%; right:0; transform:translateY(-50%);
  z-index:9999; width:44px; height:130px;
  background:var(--a); border:none; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  box-shadow:-3px 2px 20px rgba(0,0,0,.4);
  transition:background .2s; border-radius:4px 0 0 4px;
}
#hofs-btn:hover,#hofs-btn.open { background:var(--a2); }
#hofs-btn .hofs-lbl { color:#fff; font-size:9px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; font-family:'Open Sans',sans-serif; writing-mode:vertical-rl; transform:rotate(180deg); line-height:1; }
#hofs-btn.open .hofs-lbl  { display:none; }
#hofs-btn .ico-open  { display:flex; }
#hofs-btn .ico-close { display:none; }
#hofs-btn.open .ico-open  { display:none; }
#hofs-btn.open .ico-close { display:flex; }
#hofs-notif { position:absolute; top:8px; right:8px; width:8px; height:8px; background:var(--g); border-radius:50%; border:2px solid rgba(255,255,255,.85); display:none; }
#hofs-notif.on { display:block; }

#hofs-popup {
  position:fixed; top:50%; right:44px;
  transform:translateY(-50%) scale(.97);
  transform-origin:center right;
  z-index:9998; width:340px; max-width:calc(100vw - 56px);
  background:#111; border:1px solid #2a2a2a;
  box-shadow:-8px 0 40px rgba(0,0,0,.6);
  display:flex; flex-direction:column; max-height:min(70vh,560px);
  opacity:0; pointer-events:none;
  transition:opacity .24s ease,transform .24s ease;
  overflow:hidden; border-radius:4px 0 0 4px;
  overscroll-behavior:contain;
}
#hofs-popup.open { opacity:1; pointer-events:all; transform:translateY(-50%) scale(1); }

/* Popup header — Akzent */
.hofs-ph { background:var(--a); padding:13px 15px 11px; flex-shrink:0; }
.hofs-ph-eye   { display:block; font-size:9px; letter-spacing:.18em; text-transform:uppercase; color:rgba(255,255,255,.75); margin-bottom:4px; font-family:'Open Sans',sans-serif; }
.hofs-ph-title { font-size:13px; font-weight:700; color:#fff; line-height:1.3; letter-spacing:.06em; text-transform:uppercase; font-family:'Open Sans',sans-serif; }
.hofs-ph-sub   { display:block; font-size:10px; color:rgba(255,255,255,.7); margin-top:3px; font-family:'Open Sans',sans-serif; }

/* Events/News Link-Buttons */
.hofs-links { display:flex; gap:8px; padding:10px 12px; background:#0d0d0d; border-bottom:1px solid #2a2a2a; flex-shrink:0; }
.hofs-linkbtn { flex:1; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:9px 10px; border:1px solid var(--a); color:var(--a); background:var(--g); font-size:11.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; text-decoration:none; font-family:'Open Sans',sans-serif; transition:background .15s,color .15s; }
.hofs-linkbtn:hover { background:var(--a); color:#fff; }
.hofs-linkbtn-i { flex-shrink:0; display:block; }

/* Messages */
.hofs-msgs { flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; padding:12px 12px 6px; display:flex; flex-direction:column; gap:9px; background:#111; min-height:80px; }
.hofs-msgs::-webkit-scrollbar { width:2px; }
.hofs-msgs::-webkit-scrollbar-thumb { background:#2a2a2a; }

.hofs-msg   { display:flex; gap:6px; align-items:flex-start; animation:hofsF .22s ease; }
.hofs-msg.u { flex-direction:row-reverse; }
@keyframes hofsF { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:translateY(0)} }
@keyframes hofsB { 0%,60%,100%{transform:translateY(0);opacity:.4} 30%{transform:translateY(-5px);opacity:1} }

.hofs-av   { width:26px; height:26px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:7px; font-weight:700; font-family:'Open Sans',sans-serif; }
.hofs-av.b { background:#1a1a1a; border:1px solid #333; color:var(--a); } /* Akzent avatar text */
.hofs-av.u { background:#c54982; color:#fff; }
.hofs-bub  { max-width:80%; padding:9px 12px; font-size:12.5px; line-height:1.65; word-break:break-word; font-family:'Open Sans',sans-serif; font-weight:300; }
.hofs-bub p { margin:0 0 6px; } .hofs-bub p:last-child { margin:0; }
.hofs-bub.b { background:#1e1e1e; border:1px solid #2a2a2a; color:rgba(255,255,255,.85); }
.hofs-bub.u { background:#241726; border:1px solid #3a2440; color:rgba(255,255,255,.85); }
.hofs-link  { font-size:11px; color:var(--a); font-weight:600; text-decoration:none; display:inline-block; margin-top:4px; }
.hofs-link:hover { text-decoration:underline; }

/* Typing */
.hofs-typing { display:flex; gap:3px; align-items:center; padding:9px 12px; }
.hofs-dot    { width:5px; height:5px; background:var(--a); border-radius:50%; animation:hofsB 1.2s infinite; }
.hofs-dot:nth-child(2){animation-delay:.2s} .hofs-dot:nth-child(3){animation-delay:.4s}

/* Suggestions */
.hofs-suggs { padding:8px 12px; display:flex; flex-wrap:wrap; gap:5px; background:#1a1a1a; border-top:1px solid #2a2a2a; flex-shrink:0; }
.hofs-sugg  { font-size:10.5px; padding:4px 8px; border:1px solid #333; background:#111; color:rgba(255,255,255,.5); cursor:pointer; font-family:'Open Sans',sans-serif; transition:all .15s; }
.hofs-sugg:hover { border-color:#c54982; color:var(--a); }

/* Input */
.hofs-ibar { padding:10px 12px 12px; background:#1a1a1a; border-top:1px solid #2a2a2a; flex-shrink:0; overflow:hidden; }
.hofs-inp  { display:block; width:100%; border:1px solid #3a3a3a !important; padding:9px 10px !important; font-size:13px; font-family:'Open Sans',sans-serif; font-weight:300; color:#fff !important; background:#2d2d2d !important; -webkit-text-fill-color:#fff !important; outline:none; resize:none; height:40px; max-height:70px; line-height:1.5; margin-bottom:8px; transition:border-color .15s; border-radius:0 !important; box-shadow:none !important; }
.hofs-inp::placeholder { color:rgba(255,255,255,.3) !important; }
.hofs-inp:focus { border-color:#c54982 !important; }
.hofs-send { display:block; width:100%; padding:10px; background:#c54982; color:#fff; border:none; cursor:pointer; font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; font-family:'Open Sans',sans-serif; transition:background .15s; }
.hofs-send:hover:not(:disabled) { background:#a63a6c; }
.hofs-send:disabled { background:#2a2a2a; color:#444; cursor:not-allowed; }

.hofs-more { padding:8px 12px; border-top:1px solid #2a2a2a; background:#0d0d0d; text-align:center; flex-shrink:0; }
.hofs-more a { font-size:10.5px; color:rgba(255,255,255,.25); text-decoration:none; font-family:'Open Sans',sans-serif; }
.hofs-more a:hover { color:rgba(255,255,255,.5); }

/* ── Mobile — alle Fixes aus ZTM/SLD übertragen ── */
@media(max-width:480px){

  #hofs-btn {
    width:36px;
    height:110px;
  }
  #hofs-btn .hofs-lbl {
    font-size:8px;
    letter-spacing:.12em;
  }

  /* Popup: gleicher Abstand links und rechts */
  #hofs-popup {
    right:36px;
    left:36px;
    width:auto;
    max-width:none;
    max-height:60vh;
    top:50%;
    transform:translateY(-50%) scale(0.96);
    border-radius:4px 0 0 4px;
    overflow:hidden;
    overscroll-behavior:contain;
  }
  #hofs-popup.open {
    opacity:1;
    pointer-events:all;
    transform:translateY(-50%) scale(1);
  }
  #hofs-popup * {
    box-sizing:border-box !important;
    max-width:100% !important;
  }

  /* font-size 16px verhindert iOS Auto-Zoom */
  .hofs-inp {
    width:100% !important;
    font-size:16px !important;
  }
  .hofs-send { width:100% !important; }
  .hofs-ibar { padding:8px 10px 10px; }
  .hofs-suggs { padding:6px 10px; gap:4px; }
  .hofs-sugg  { font-size:10px; padding:3px 7px; }
}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
