/* ToolWissen v1.0 – zentraler, komponentenübergreifender Währungsumschalter. */
.tw-currency-price-unavailable [data-tw-currency-main]{text-decoration:none}
[data-tw-currency-original][hidden]{display:none!important}

html.tw-currency-modal-open,
body.tw-currency-modal-open{overflow:hidden!important}

.tw-currency-modal[hidden]{display:none!important}
.tw-currency-modal{
  position:fixed;
  inset:0;
  z-index:100060;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:clamp(24px,6vh,52px) 18px 18px;
  box-sizing:border-box;
}
.tw-currency-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(8,23,47,.22);
  backdrop-filter:blur(1.5px);
  -webkit-backdrop-filter:blur(1.5px);
}
.tw-currency-modal__panel{
  position:relative;
  z-index:1;
  box-sizing:border-box;
  width:min(390px,calc(100vw - 36px));
  max-height:calc(100dvh - 70px);
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  margin:0;
  padding:17px 18px 16px;
  border:1px solid #d6e1ee;
  border-radius:18px;
  background:#fff;
  color:#17233d;
  box-shadow:0 18px 54px rgba(7,24,48,.18);
  font-family:inherit;
}
.tw-currency-modal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin:0 0 10px;
  padding:0 0 10px;
  border-bottom:1px solid #e6edf5;
}
.tw-currency-modal__eyebrow{
  display:block;
  margin:0 0 3px;
  color:#5c728a;
  font-size:10.5px;
  line-height:1.15;
  font-weight:850;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.tw-currency-modal__head h2{
  margin:0;
  color:#0b1d3b;
  font-size:20px;
  line-height:1.08;
  font-weight:900;
  letter-spacing:-.02em;
}
.tw-currency-modal__close{
  appearance:none;
  -webkit-appearance:none;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:34px;
  height:34px;
  margin:0;
  padding:0;
  border:1px solid #d4dfec;
  border-radius:10px;
  background:#fff;
  color:#38536f;
  box-shadow:none;
  cursor:pointer;
}
.tw-currency-modal__close:hover{border-color:#bfd0e3;background:#f7faff}
.tw-currency-modal__close:focus:not(:focus-visible),
.tw-currency-modal__close:active{outline:none;box-shadow:none}
.tw-currency-modal__close:focus-visible{outline:2px solid rgba(7,95,247,.25);outline-offset:2px}
.tw-currency-modal__close svg{
  display:block;
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
}
.tw-currency-modal__description{
  margin:0 0 13px;
  color:#4b5e76;
  font-size:12.7px;
  line-height:1.48;
  font-weight:550;
}
.tw-currency-modal__choices{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.tw-currency-modal__choice{
  appearance:none;
  -webkit-appearance:none;
  box-sizing:border-box;
  display:flex;
  min-width:0;
  align-items:center;
  justify-content:space-between;
  gap:9px;
  min-height:48px;
  margin:0;
  padding:9px 11px;
  border:1px solid #d9e3ef;
  border-radius:12px;
  background:#fff;
  color:#1a2e49;
  text-align:left;
  box-shadow:none;
  cursor:pointer;
}
.tw-currency-modal__choice:hover{border-color:#b8cee7;background:#f7faff}
.tw-currency-modal__choice:focus:not(:focus-visible),
.tw-currency-modal__choice:active{outline:none;box-shadow:none}
.tw-currency-modal__choice:focus-visible{outline:2px solid rgba(7,95,247,.24);outline-offset:2px}
.tw-currency-modal__choice.is-active{
  border-color:#91b8eb;
  background:#eef6ff;
  box-shadow:inset 0 0 0 1px rgba(7,95,247,.08);
}
.tw-currency-modal__choice strong{
  flex:0 0 auto;
  color:#0b3f7b;
  font-size:12.5px;
  line-height:1.1;
  font-weight:900;
}
.tw-currency-modal__choice span{
  min-width:0;
  color:#62738a;
  font-size:11.2px;
  line-height:1.22;
  font-weight:650;
  text-align:right;
}
.tw-currency-modal__choice.is-active:after{
  content:"✓";
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#075ff7;
  color:#fff;
  font-size:11px;
  font-weight:900;
}
.tw-currency-modal__choice.is-active span{display:none}

.tw-currency-modal__more{margin-top:9px}
.tw-currency-modal__more-toggle{
  appearance:none;
  -webkit-appearance:none;
  display:flex;
  width:100%;
  min-height:40px;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0;
  padding:8px 10px 8px 11px;
  border:1px solid #d9e3ef;
  border-radius:11px;
  background:#f9fbfe;
  color:#284968;
  font:inherit;
  font-size:11.8px;
  font-weight:800;
  line-height:1.2;
  text-align:left;
  cursor:pointer;
}
.tw-currency-modal__more-toggle:hover{border-color:#b8cee7;background:#f4f8fd}
.tw-currency-modal__more-toggle[aria-expanded="true"]{border-color:#c5d7ea;background:#f6faff}
.tw-currency-modal__more-toggle:focus:not(:focus-visible),
.tw-currency-modal__more-toggle:active{outline:none;box-shadow:none}
.tw-currency-modal__more-toggle:focus-visible{outline:2px solid rgba(7,95,247,.24);outline-offset:2px}
.tw-currency-modal__more-chevron{
  display:grid;
  place-items:center;
  flex:0 0 20px;
  width:20px;
  height:20px;
  margin-left:auto;
  color:#38536f;
  line-height:1;
  transform-origin:center;
  transition:transform .15s ease;
}
.tw-currency-modal__more-chevron svg{
  display:block;
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.tw-currency-modal__more-toggle[aria-expanded="true"] .tw-currency-modal__more-chevron{transform:rotate(180deg)}
.tw-currency-modal__more-choices{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  max-height:min(270px,34vh);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  margin-top:8px;
  padding-right:3px;
}
.tw-currency-modal__more-choices[hidden]{display:none!important}
.tw-currency-modal__more-choices .tw-currency-modal__choice{min-height:43px;padding:7px 9px}
.tw-currency-modal__more-choices .tw-currency-modal__choice strong{font-size:11.8px}
.tw-currency-modal__more-choices .tw-currency-modal__choice span{font-size:10.2px}
.tw-currency-modal__note{
  margin:12px 0 0;
  padding-top:10px;
  border-top:1px solid #e8eef5;
  color:#6b7b90;
  font-size:10.8px;
  line-height:1.4;
  font-weight:600;
}

@media(max-width:767px){
  .tw-currency-modal{padding:12px}
  .tw-currency-modal__panel{
    width:min(360px,calc(100vw - 24px));
    max-height:calc(100dvh - 24px);
    padding:15px;
    border-radius:16px;
  }
  .tw-currency-modal__head h2{font-size:18px}
  .tw-currency-modal__description{font-size:12.2px}
  .tw-currency-modal__choice{min-height:45px;padding:8px 10px}
  .tw-currency-modal__choice strong{font-size:12px}
  .tw-currency-modal__choice span{font-size:10.7px}
  .tw-currency-modal__more-choices{max-height:min(230px,36vh)}
}

@media(max-width:359px){
  .tw-currency-modal__choices,
  .tw-currency-modal__more-choices{grid-template-columns:1fr}
  .tw-currency-modal__choice.is-active span{display:block}
  .tw-currency-modal__choice.is-active:after{margin-left:auto}
}

@media(prefers-reduced-motion:reduce){
  .tw-currency-modal__backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}
  .tw-currency-modal__more-chevron{transition:none}
}
