/* BVH Mitgliedschaftsassistent, Design 2 (Fira Sans, Nacht #002325, Electric Blue #0019FF, Flaechen 10 px, Fenster 15 px, Pills 148 px) */
.bvh-ma{
  --ma-nacht:#002325;--ma-nacht-2:#0C3E3F;--ma-blau:#0019FF;--ma-blau-tief:#0013C2;--ma-text:#2B3536;--ma-leise:#4C5D5E;--ma-label:#5F6A6B;
  --ma-grau:#F6F7F7;--ma-linie:#DDE3E3;--ma-mint:#DCEBE9;--ma-rand:24px;--ma-unten:24px;--ma-knopf:52px;--ma-luecke:10px;
  --ma-schatten:0 10px 30px rgba(0,35,37,.2);--ma-fenster-schatten:0 24px 60px rgba(0,35,37,.22),0 4px 14px rgba(0,35,37,.08);
  --ma-ease:cubic-bezier(.19,1,.22,1);
  position:fixed;right:calc(var(--ma-rand) + env(safe-area-inset-right,0px));bottom:calc(var(--ma-unten) + env(safe-area-inset-bottom,0px));z-index:150;
  font-family:'Fira Sans','Helvetica Neue',Arial,sans-serif;color:var(--ma-text);color-scheme:light;
  -webkit-font-smoothing:antialiased;
}
.bvh-ma *,.bvh-ma *::before,.bvh-ma *::after{box-sizing:border-box;}
.bvh-ma button{font:inherit;letter-spacing:normal;text-transform:none;}
.bvh-ma svg{display:block;flex:none;}
.bvh-ma [hidden]{display:none!important;}

/* ---------- Launcher ---------- */
.bvh-ma{display:flex;flex-direction:column;align-items:flex-end;}
.bvh-ma__knopf{position:relative;display:inline-flex;align-items:center;gap:10px;height:var(--ma-knopf);margin:0;padding:0 22px 0 16px;border:0;border-radius:148px;background:var(--ma-nacht);color:#fff;box-shadow:var(--ma-schatten);cursor:pointer;
  font-size:16px!important;font-weight:500!important;line-height:1;white-space:nowrap;
  opacity:0;transform:translateY(8px);transition:opacity .4s ease,transform .5s var(--ma-ease),background-color .25s ease,color .25s ease,box-shadow .25s ease;}
.bvh-ma__knopf-ic{position:relative;display:grid;place-items:center;width:24px;height:24px;flex:none;}
.bvh-ma__knopf-text{display:block;}
.bvh-ma.ist-bereit .bvh-ma__knopf{opacity:1;transform:none;}
/* Sobald "Nach oben" erscheint, rueckt der Assistent bündig links daneben */
body:has(.bvh-totop.is-on) .bvh-ma.ist-bereit .bvh-ma__knopf{transform:translateX(calc(-1 * (var(--ma-knopf) + var(--ma-luecke))));}
html.v2-menue-offen body .bvh-ma.ist-bereit .bvh-ma__knopf{transform:none;}
.bvh-ma__knopf:hover{background:var(--ma-blau);}
.bvh-ma__knopf:focus-visible{outline:3px solid var(--ma-blau);outline-offset:3px;}
.bvh-ma__knopf .bvh-ma__ic{position:absolute;transition:opacity .2s ease,transform .3s var(--ma-ease);}
.bvh-ma__knopf .bvh-ma__ic--zu{opacity:0;transform:rotate(-45deg) scale(.8);}
.bvh-ma.ist-offen .bvh-ma__knopf .bvh-ma__ic--chat{opacity:0;transform:rotate(45deg) scale(.8);}
.bvh-ma.ist-offen .bvh-ma__knopf .bvh-ma__ic--zu{opacity:1;transform:none;}

/* ---------- Einladung ---------- */
.bvh-ma__einladung{position:absolute;right:0;bottom:calc(var(--ma-knopf) + 14px);width:372px;max-width:calc(100vw - 2 * var(--ma-rand));padding:20px 20px 18px;background:#fff;border-radius:15px;box-shadow:var(--ma-fenster-schatten);
  opacity:0;transform:translateY(18px) scale(.86);transform-origin:calc(100% - 40px) 100%;transition:opacity .3s ease,transform .55s cubic-bezier(.34,1.4,.64,1);}
.bvh-ma__einladung.ist-da{opacity:1;transform:none;}
.bvh-ma__einladung::after{content:"";position:absolute;right:36px;transition:right .5s var(--ma-ease);bottom:-6px;width:12px;height:12px;background:#fff;transform:rotate(45deg);border-radius:0 0 3px 0;}
.bvh-ma__wer{display:flex;align-items:center;gap:10px;margin:0 32px 12px 0;}
.bvh-ma__avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--ma-nacht);overflow:hidden;flex:none;}
.bvh-ma__avatar img{width:26px;height:26px;object-fit:contain;opacity:.95;}
.bvh-ma__wer-text{display:flex;flex-direction:column;min-width:0;line-height:1.25;}
.bvh-ma__wer-text strong{font-size:14px;font-weight:500;color:var(--ma-nacht);}
.bvh-ma__wer-text span{font-size:12.5px;color:var(--ma-label);}
.bvh-ma__gruss{margin:0 0 4px;font-size:17px;font-weight:500;line-height:1.35;color:var(--ma-nacht);}
.bvh-ma__satz{margin:0;font-size:15px;line-height:1.55;color:var(--ma-text);}
.bvh-ma__satz--kurz{display:none;}
.bvh-ma__wahl{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:16px;}
.bvh-ma__wahl .bvh-ma__pill{padding:10px 16px;}
.bvh-ma__wahl .bvh-ma__leise{font-size:14px;padding:10px 4px;}
.bvh-ma__x{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:32px;height:32px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ma-leise);cursor:pointer;transition:background-color .15s ease,color .15s ease;}
.bvh-ma__x:hover{background:var(--ma-grau);color:var(--ma-nacht);}
.bvh-ma__x:focus-visible{outline:2px solid var(--ma-blau);outline-offset:1px;}
.bvh-ma__zeit{position:absolute;left:20px;right:20px;bottom:8px;height:3px;border-radius:3px;background:var(--ma-mint);overflow:hidden;pointer-events:none;}
.bvh-ma__zeit::before{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--ma-nacht);transform-origin:0 50%;transform:scaleX(1);}
.bvh-ma__einladung.ist-da .bvh-ma__zeit::before{animation:bvh-ma-zeit var(--ma-dauer,9s) linear forwards;}
.bvh-ma__einladung.ist-angehalten .bvh-ma__zeit::before{animation-play-state:paused;}
@keyframes bvh-ma-zeit{to{transform:scaleX(0);}}

/* Knoepfe */
.bvh-ma__pill{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0;padding:11px 20px;border:0;border-radius:148px;background:var(--ma-blau);color:#fff!important;font-size:15px;font-weight:500;line-height:1.2;text-decoration:none!important;cursor:pointer;transition:background-color .15s ease,transform .15s ease;}
.bvh-ma__pill:hover{background:var(--ma-blau-tief);}
.bvh-ma__pill:focus-visible{outline:3px solid var(--ma-blau);outline-offset:3px;}
.bvh-ma__pill svg{transition:transform .2s var(--ma-ease);}
.bvh-ma__pill:hover svg{transform:translateX(2px);}
.bvh-ma__leise{min-height:44px;margin:0;padding:10px 4px;border:0;background:none;color:var(--ma-leise);font-size:15px;line-height:1.2;cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px;transition:color .15s ease,text-decoration-color .15s ease;}
.bvh-ma__leise:hover{color:var(--ma-nacht);text-decoration-color:currentColor;}
.bvh-ma__leise:focus-visible{outline:2px solid var(--ma-blau);outline-offset:2px;border-radius:4px;}

/* ---------- Fenster ---------- */
.bvh-ma__fenster{position:absolute;right:0;bottom:calc(var(--ma-knopf) + 14px);display:flex;flex-direction:column;width:392px;max-width:calc(100vw - 2 * var(--ma-rand));
  height:min(640px,calc(100vh - var(--ma-knopf) - var(--ma-unten) - 40px));height:min(640px,calc(100dvh - var(--ma-knopf) - var(--ma-unten) - 40px));
  background:#fff;border-radius:15px;box-shadow:var(--ma-fenster-schatten);overflow:hidden;
  opacity:0;transform:translateY(12px) scale(.985);transform-origin:100% 100%;transition:opacity .3s ease,transform .45s var(--ma-ease);}
.bvh-ma__fenster.ist-da{opacity:1;transform:none;}
.bvh-ma__kopf{position:relative;display:flex;align-items:center;gap:12px;min-height:72px;padding:14px 12px 14px 20px;background:var(--ma-nacht);color:#fff;overflow:hidden;flex:none;}
.bvh-ma__kopf-siegel{position:absolute;right:-40px;top:50%;width:170px;height:170px;transform:translateY(-50%);opacity:.08;pointer-events:none;}
.bvh-ma__kopf .bvh-ma__avatar{width:40px;height:40px;background:var(--ma-nacht-2);}
.bvh-ma__kopf .bvh-ma__avatar img{width:32px;height:32px;}
.bvh-ma__titel{position:relative;display:flex;flex-direction:column;flex:1 1 auto;min-width:0;margin:0!important;padding:0;font-size:16px!important;font-weight:400!important;line-height:1.25!important;letter-spacing:normal!important;text-transform:none;outline:0;}
.bvh-ma__titel strong{font-size:16px;font-weight:500;color:#fff;letter-spacing:0;}
.bvh-ma__titel span{font-size:13px;font-weight:400;color:rgba(255,255,255,.72);letter-spacing:0;}
.bvh-ma__kopf-knopf{position:relative;display:grid;place-items:center;width:40px;height:40px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer;transition:background-color .15s ease;}
.bvh-ma__kopf-knopf:hover{background:rgba(255,255,255,.12);}
.bvh-ma__kopf-knopf:focus-visible{outline:2px solid #fff;outline-offset:1px;}

.bvh-ma__verlauf{position:relative;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:22px 20px 8px;scroll-behavior:auto;}
.bvh-ma__runde{margin:0 0 18px;outline:0;}
.bvh-ma__runde:last-child{margin-bottom:12px;}
.bvh-ma__blase{max-width:92%;margin:0 0 8px;padding:12px 16px;background:var(--ma-grau);border-radius:4px 15px 15px 15px;font-size:15px;line-height:1.55;color:var(--ma-text);}
.bvh-ma__blase + .bvh-ma__blase{border-top-left-radius:15px;}
.bvh-ma__hinweis{max-width:92%;margin:4px 0 10px;padding:0 4px;font-size:13.5px;line-height:1.5;color:var(--ma-leise);}
.bvh-ma__ich{display:flex;justify-content:flex-end;margin:0 0 16px;}
.bvh-ma__ich span{max-width:80%;padding:10px 16px;background:var(--ma-nacht);color:#fff;border-radius:15px 15px 4px 15px;font-size:15px;line-height:1.45;}

/* Liste mit Symbolen */
.bvh-ma__liste{display:grid;gap:4px;margin:4px 0 10px;padding:0;list-style:none;}
.bvh-ma__liste li{display:grid;grid-template-columns:36px 1fr;gap:12px;align-items:start;padding:10px 4px;}
.bvh-ma__liste li + li{border-top:1px solid var(--ma-linie);}
.bvh-ma__sym{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--ma-mint);color:var(--ma-nacht);}
.bvh-ma__liste strong{display:block;margin:1px 0 2px;font-size:15px;font-weight:500;color:var(--ma-nacht);}
.bvh-ma__liste p{margin:0;font-size:14px;line-height:1.5;color:var(--ma-leise);}

/* Tarifkarten */
.bvh-ma__karten{display:grid;gap:8px;margin:4px 0 10px;}
.bvh-ma__karte{padding:14px 16px 12px;border:1px solid var(--ma-linie);border-radius:10px;background:#fff;}
.bvh-ma__karte-kopf{display:flex;align-items:baseline;justify-content:space-between;gap:12px;}
.bvh-ma__karte-name{font-size:15px;font-weight:500;color:var(--ma-nacht);}
.bvh-ma__preis{white-space:nowrap;font-size:13px;color:var(--ma-leise);}
.bvh-ma__preis b{font-size:20px;font-weight:700;color:var(--ma-nacht);letter-spacing:-.2px;}
.bvh-ma__preis--text b{font-size:14px;font-weight:500;letter-spacing:0;}
.bvh-ma__karte ul{margin:8px 0 0;padding:0;list-style:none;}
.bvh-ma__karte li{position:relative;padding:3px 0 3px 22px;font-size:14px;line-height:1.45;color:var(--ma-text);}
.bvh-ma__karte li svg{position:absolute;left:0;top:5px;color:var(--ma-blau);}

/* Schritte */
.bvh-ma__schritte{margin:4px 0 10px;padding:0;list-style:none;counter-reset:ma;}
.bvh-ma__schritte li{position:relative;display:grid;grid-template-columns:28px 1fr;gap:12px;padding:0 0 14px;}
.bvh-ma__schritte li::before{counter-increment:ma;content:counter(ma);display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--ma-nacht);color:#fff;font-size:13px;font-weight:500;}
.bvh-ma__schritte li:not(:last-child)::after{content:"";position:absolute;left:13.5px;top:32px;bottom:4px;width:1px;background:var(--ma-linie);}
.bvh-ma__schritte strong{display:block;margin:3px 0 2px;font-size:15px;font-weight:500;color:var(--ma-nacht);}
.bvh-ma__schritte p{margin:0;font-size:14px;line-height:1.5;color:var(--ma-leise);}

/* Optionen */
.bvh-ma__optionen{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:12px 0 0;}
.bvh-ma__option{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;margin:0;padding:11px 14px 11px 16px;border:1px solid var(--ma-linie);border-radius:10px;background:#fff;color:var(--ma-nacht)!important;font-size:15px;font-weight:500;line-height:1.35;text-align:left;text-decoration:none!important;cursor:pointer;
  transition:border-color .15s ease,color .15s ease,background-color .15s ease;}
.bvh-ma__option:hover{border-color:var(--ma-blau);color:var(--ma-blau)!important;}
.bvh-ma__option:focus-visible{outline:3px solid var(--ma-blau);outline-offset:2px;}
.bvh-ma__option .bvh-ma__opt-ic{color:var(--ma-leise);transition:color .15s ease;}
.bvh-ma__option:hover .bvh-ma__opt-ic{color:var(--ma-blau);}
.bvh-ma__option-text{flex:1 1 auto;}
.bvh-ma__option .bvh-ma__pfeil{margin-left:auto;color:var(--ma-leise);transition:transform .2s var(--ma-ease),color .15s ease;}
.bvh-ma__option:hover .bvh-ma__pfeil{transform:translateX(2px);color:var(--ma-blau);}
.bvh-ma__optionen .bvh-ma__pill{align-self:stretch;justify-content:center;min-height:48px;margin:0 0 4px;}
.bvh-ma__pill .bvh-ma__option-text{flex:0 0 auto;}

/* Tippen */
.bvh-ma__tippt{display:inline-flex;gap:4px;margin:0 0 8px;padding:14px 16px;background:var(--ma-grau);border-radius:4px 15px 15px 15px;}
.bvh-ma__tippt i{width:6px;height:6px;border-radius:50%;background:var(--ma-label);opacity:.4;animation:bvh-ma-tippt 1s infinite ease-in-out;}
.bvh-ma__tippt i:nth-child(2){animation-delay:.15s;}
.bvh-ma__tippt i:nth-child(3){animation-delay:.3s;}
@keyframes bvh-ma-tippt{0%,80%,100%{opacity:.35;transform:none;}40%{opacity:1;transform:translateY(-2px);}}

.bvh-ma__neu{animation:bvh-ma-rein .4s var(--ma-ease) both;}
@keyframes bvh-ma-rein{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:none;}}

.bvh-ma__fuss{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 20px 12px;flex:none;}
.bvh-ma__fuss p{margin:0;font-size:12px;line-height:1.4;color:var(--ma-label);}
.bvh-ma__neustart{flex:none;margin:0;padding:6px 2px;border:0;background:none;color:var(--ma-leise);font-size:13px;cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;}
.bvh-ma__neustart:hover{color:var(--ma-nacht);text-decoration-color:currentColor;}
.bvh-ma__neustart:focus-visible{outline:2px solid var(--ma-blau);outline-offset:2px;border-radius:4px;}
.bvh-ma__sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}

/* Nacheinander erscheinen */
.bvh-ma__wartet{display:none!important;}
.bvh-ma__pop{animation:bvh-ma-pop .38s var(--ma-ease) both;transform-origin:0 0;}
@keyframes bvh-ma-pop{from{opacity:0;transform:translateY(8px) scale(.97);}to{opacity:1;transform:none;}}
.bvh-ma__runde .bvh-ma__tippt{display:flex;width:max-content;}

/* Stichworteingabe */
.bvh-ma__eingabe{display:flex;align-items:center;gap:8px;margin:0;padding:12px 12px 10px 16px;border-top:1px solid var(--ma-linie);flex:none;}
.bvh-ma__eingabe input{flex:1 1 auto;min-width:0;height:44px;margin:0;padding:0 16px;border:1px solid var(--ma-linie);border-radius:148px;background:#fff;color:var(--ma-nacht);font:inherit;font-size:15px;line-height:1.2;box-shadow:none;outline:0;transition:border-color .15s ease,box-shadow .15s ease;}
.bvh-ma__eingabe input::placeholder{color:var(--ma-label);opacity:1;}
.bvh-ma__eingabe input:focus{border-color:var(--ma-blau);box-shadow:0 0 0 3px rgba(0,25,255,.14);}
.bvh-ma__senden{display:grid;place-items:center;width:44px;height:44px;flex:none;margin:0;padding:0;border:0;border-radius:50%;background:var(--ma-blau);color:#fff;cursor:pointer;transition:background-color .15s ease;}
.bvh-ma__senden:hover{background:var(--ma-blau-tief);}
.bvh-ma__senden:focus-visible{outline:3px solid var(--ma-blau);outline-offset:2px;}
.bvh-ma__kicker{display:block;margin:0 0 2px;font-size:11.5px;font-weight:500;letter-spacing:.05em;text-transform:uppercase;color:var(--ma-label);}

/* Helle Knoepfe auf dunklem Untergrund */
html.bvh-ma-hell-r .bvh-ma__knopf{background:#fff;color:var(--ma-nacht);box-shadow:0 10px 30px rgba(0,0,0,.3);}
html.bvh-ma-hell-r .bvh-ma__knopf:hover{background:var(--ma-mint);}
body.bvh-ma-an .bvh-totop{transition:opacity .3s ease,transform .3s ease,visibility .3s,background-color .25s ease,color .25s ease,box-shadow .25s ease!important;}
html.bvh-ma-hell-o body .bvh-totop{background:#fff!important;color:#002325!important;box-shadow:0 10px 30px rgba(0,0,0,.3)!important;}
html.bvh-ma-hell-o body .bvh-totop:hover{background:#DCEBE9!important;}
body.bvh-ma-an .bvh-cookie:not(.bvh-cookie--text){transition:background-color .25s ease,color .25s ease,border-color .25s ease;}
html.bvh-ma-hell-l body .bvh-cookie:not(.bvh-cookie--text){background:#fff!important;color:#07262D!important;border-color:#fff!important;}

/* Platz fuer "Nach oben" schaffen */
body.bvh-ma-an .bvh-totop{right:calc(24px + env(safe-area-inset-right,0px))!important;bottom:calc(24px + env(safe-area-inset-bottom,0px))!important;width:52px!important;height:52px!important;}
body:has(.bvh-totop.is-on) .bvh-ma__einladung::after{right:calc(36px + var(--ma-knopf) + var(--ma-luecke));}

/* Nicht stoeren: Menue, Suche, Merkzettel-Meldung, Druck */
html.v2-menue-offen .bvh-ma,body.bvh-navopen .bvh-ma{visibility:hidden;}
body:has(.v2-merk-meldung.is-da) .bvh-ma__knopf{opacity:0;pointer-events:none;}
@media print{.bvh-ma{display:none!important;}}

/* ---------- Smartphone ---------- */
@media (max-width:640px){
  .bvh-ma{--ma-rand:16px;--ma-unten:16px;--ma-knopf:48px;--ma-luecke:8px;}
  .bvh-ma__knopf{padding:0 18px 0 14px;gap:8px;font-size:15px!important;}
  body.bvh-ma-an .bvh-totop{right:calc(16px + env(safe-area-inset-right,0px))!important;bottom:calc(16px + env(safe-area-inset-bottom,0px))!important;width:48px!important;height:48px!important;}
  .bvh-ma__einladung{width:min(340px,calc(100vw - 2 * var(--ma-rand)));max-width:none;padding:16px 16px 14px;}
  .bvh-ma__wer{margin-bottom:8px;}
  .bvh-ma__gruss{font-size:16px;}
  .bvh-ma__satz--lang{display:none;}
  .bvh-ma__satz--kurz{display:block;font-size:15px;}
  .bvh-ma__wahl{margin-top:12px;}
  .bvh-ma__fenster{position:fixed;left:8px;right:8px;width:auto;max-width:none;
    top:calc(8px + env(safe-area-inset-top,0px));bottom:calc(var(--ma-unten) + var(--ma-knopf) + 10px + env(safe-area-inset-bottom,0px));height:auto;border-radius:15px;}
  .bvh-ma__kopf{min-height:64px;padding:10px 8px 10px 16px;}
  .bvh-ma__verlauf{padding:18px 16px 8px;}
  .bvh-ma__blase,.bvh-ma__hinweis{max-width:100%;}
  .bvh-ma__fuss{padding:8px 16px 10px;}
  .bvh-ma__option{min-height:50px;}
  .bvh-ma__eingabe{padding:10px 10px 8px 12px;}
  .bvh-ma__eingabe input{font-size:16px;}
}
@media (max-width:640px) and (max-height:560px){
  .bvh-ma__fenster{top:8px;}
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion:reduce){
  .bvh-ma *,.bvh-ma *::before,.bvh-ma *::after{animation:none!important;transition:none!important;}
  .bvh-ma__einladung,.bvh-ma__fenster{transform:none!important;}
  .bvh-ma__zeit{display:none;}
}

/* ---------- Hoher Kontrast ---------- */
@media (forced-colors:active){
  .bvh-ma__knopf,.bvh-ma__einladung,.bvh-ma__fenster,.bvh-ma__option,.bvh-ma__karte{border:1px solid CanvasText;}
}
