/* AGX language selector. Independent of WordPress theme and Elementor layout. */
.agx-lang-switch{position:relative;display:inline-flex;flex:0 0 auto;align-items:center;z-index:100;line-height:1.2;font-family:inherit;min-width:0}
.agx-lang-switch .agx-lang-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:70px;height:42px;padding:8px 10px;border:1px solid #e6e3dd;border-radius:9px;background:#fff;color:#18191b;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;box-shadow:none;line-height:1}
.agx-lang-switch .agx-lang-button:hover,.agx-lang-switch.agx-lang-open .agx-lang-button{border-color:#c51e2b;color:#c51e2b}
.agx-lang-switch .agx-lang-chevron{transition:transform .17s}
.agx-lang-switch.agx-lang-open .agx-lang-chevron{transform:rotate(180deg)}
.agx-lang-switch .agx-lang-options{display:none;position:absolute;top:calc(100% + 8px);right:0;width:176px;max-width:calc(100vw - 32px);padding:7px;border-radius:12px;background:rgba(255,255,255,.97);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid #e6e3dd;box-shadow:0 12px 35px #18191b20;z-index:2147483647}
.agx-lang-switch.agx-lang-open .agx-lang-options{display:grid;gap:2px}
.agx-lang-switch .agx-lang-option{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left;padding:11px 12px;min-height:43px;cursor:pointer;background:transparent;border:0;color:#18191b;font-family:inherit;font-size:14px;font-weight:550;border-radius:7px;line-height:1.3;box-shadow:none}
.agx-lang-switch .agx-lang-option:hover,.agx-lang-switch .agx-lang-option[aria-selected="true"]{background:#f8efef;color:#9e1829}
.agx-lang-switch .agx-lang-check{font-size:17px;font-weight:800;color:#c51e2b}
.agx-lang-switch :focus-visible{outline:2px solid #c51e2b;outline-offset:3px}
/* Placed beside the join button for desktop Elementor and shell headers. */
.agx-shell-bar-inner>.agx-lang-header,.agx-header-row>.agx-lang-header{margin-left:auto}
.agx-shell-bar-inner>.agx-lang-header+.agx-shell-join,.agx-header-row>.agx-lang-header+.agx-header-cta{margin-left:0}
/* Footer language selector after the bottom legal area, or after the existing builder footer content. */
.agx-shell-footer-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}
.agx-lang-footer{margin-left:auto}
.agx-lang-footer .agx-lang-button{background:rgba(255,255,255,.07);color:#fff;border-color:rgba(255,255,255,.22)}
.agx-lang-footer .agx-lang-button:hover,.agx-lang-footer.agx-lang-open .agx-lang-button{color:#fff;border-color:#ffbec4}
.agx-lang-footer .agx-lang-options{top:auto;bottom:calc(100% + 8px)}
.agx-shell-footer>.agx-lang-footer,.elementor-location-footer>.agx-lang-footer{display:flex;justify-content:flex-end;max-width:1240px;margin:0 auto;padding:0 24px 18px}
/* Native mobile overlay and Elementor-generated dialog. */
.agx-lang-mobile{display:none}
@media(max-width:1024px){
  .agx-shell-bar-inner>.agx-lang-header,.agx-header-row>.agx-lang-header{margin-left:auto}
  .agx-shell-bar-inner>.agx-lang-header+.agx-shell-menu-toggle,.agx-header-row>.agx-lang-header+.agx-mobile-toggle{margin-left:0}
  .agx-lang-header .agx-lang-button{min-width:43px;width:43px;height:43px;padding:9px;gap:3px}
  .agx-lang-header .agx-lang-code{display:none}
  .agx-lang-header .agx-lang-chevron{width:10px}
  .agx-lang-mobile{display:inline-flex;margin-bottom:10px;align-self:flex-start}
  .agx-lang-mobile .agx-lang-options{left:0;right:auto}
  .agx-shell-mobile-head .agx-lang-mobile{margin:0 0 0 auto}
  .agx-mobile-dialog .agx-lang-mobile{z-index:2147483647}
}
@media(max-width:480px){.agx-lang-footer{margin:12px 0 0}.agx-shell-footer-bottom{justify-content:flex-start}}


/* AGX 1.3.1 | Mobiles Sprachmenü: breites, gut bedienbares Auswahlfeld im Popup. */
@media(max-width:1024px){
  .agx-shell-mobile-panel .agx-lang-mobile,
  .agx-mobile-dialog .agx-lang-mobile{
    display:flex!important;flex-direction:column;align-items:stretch!important;
    width:100%;max-width:100%;margin:22px 0 6px!important;
    box-sizing:border-box;padding:17px 16px 16px;
    background:rgba(255,255,255,.7);
    border:1px solid rgba(24,25,27,.12);border-radius:13px;
    box-shadow:0 3px 18px rgba(24,25,27,.035);
    z-index:1;
  }
  .agx-lang-mobile .agx-lang-mobile-title{
    margin:0 0 12px!important;color:#6a5b5b!important;
    font-size:11px!important;line-height:1.4!important;
    letter-spacing:.1em;font-weight:700!important;text-transform:uppercase;
  }
  .agx-lang-mobile .agx-lang-mobile-options{
    width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;min-width:0;
  }
  .agx-lang-mobile .agx-lang-mobile-option,
  .agx-shell-mobile-panel .agx-lang-mobile-option,
  .agx-mobile-dialog .agx-lang-mobile-option{
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:4px;min-width:0;min-height:65px;padding:8px 4px;
    border:1px solid #ddd7d4;border-radius:9px;
    background:rgba(255,255,255,.88);color:#18191b;
    font-family:inherit;text-align:center;line-height:1.2;
    cursor:pointer;box-sizing:border-box;box-shadow:none;
    transition:background .15s,color .15s,border-color .15s;
  }
  .agx-lang-mobile-option strong{font-size:15px;font-weight:750;line-height:1.2;color:inherit}
  .agx-lang-mobile-option span{font-size:11px;font-weight:500;line-height:1.3;color:inherit;overflow-wrap:anywhere}
  .agx-lang-mobile .agx-lang-mobile-option[aria-pressed="true"],
  .agx-lang-mobile .agx-lang-mobile-option[aria-pressed="true"]:hover{
    background:#c51e2b!important;color:#fff!important;border-color:#c51e2b!important;
  }
  .agx-lang-mobile .agx-lang-mobile-option:hover:not([aria-pressed="true"]){
    background:#f8eeee!important;color:#9e1829!important;border-color:#e9b6bc!important;
  }
  .agx-lang-mobile .agx-lang-mobile-option:focus-visible{outline:2px solid #c51e2b;outline-offset:2px}
  .agx-shell-mobile-panel .agx-shell-mobile-join,
  .agx-mobile-dialog .agx-mobile-member{margin-top:16px}
}
@media(max-width:360px){
  .agx-shell-mobile-panel .agx-lang-mobile,
  .agx-mobile-dialog .agx-lang-mobile{padding:14px 10px}
  .agx-lang-mobile .agx-lang-mobile-options{gap:5px}
  .agx-lang-mobile-option span{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  .agx-lang-mobile .agx-lang-mobile-option{transition:none}
}
