/* Lieblingsportal conversion UI v1 — 2026-09-19
   Scoped CRO controls for Strom/Gas consumption selection and vertical CTA identity. */
.lp-consumption-field{position:relative!important;min-width:0}
.lp-consumption-native-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;opacity:0!important;pointer-events:none!important}
.lp-consumption-trigger{
  width:100%!important;min-width:0!important;height:48px!important;min-height:48px!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;
  padding:8px 13px!important;background:#fff!important;border:1.5px solid #cdd9e4!important;border-radius:10px!important;
  color:#16335d!important;text-align:left!important;cursor:pointer!important;box-shadow:0 1px 3px rgba(20,45,75,.04)!important;
  font-family:Inter,system-ui,sans-serif!important
}
.lp-consumption-trigger:hover{border-color:#aebfce!important;background:#fff!important}
.lp-consumption-trigger:focus-visible{outline:none!important;border-color:var(--lp-cro-accent,#08a7ae)!important;box-shadow:0 0 0 3px var(--lp-cro-focus,rgba(8,167,174,.12))!important}
.lp-consumption-trigger-copy{min-width:0;display:flex;flex-direction:column;gap:1px}
.lp-consumption-trigger-label{font-size:10px;line-height:1.15;font-weight:700;color:#718399}
.lp-consumption-trigger-value{font-size:14px;line-height:1.2;font-weight:760;color:#16335d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-consumption-chevron{font-size:13px;color:#698099;transition:transform .16s ease}
.lp-consumption-trigger[aria-expanded="true"] .lp-consumption-chevron{transform:rotate(180deg)}
.lp-consumption-popover{
  position:absolute!important;z-index:10040!important;top:calc(100% + 8px)!important;left:0!important;
  width:min(430px,calc(100vw - 28px))!important;box-sizing:border-box!important;padding:16px!important;
  background:#fff!important;border:1px solid #d8e3eb!important;border-radius:14px!important;
  box-shadow:0 20px 50px rgba(13,37,67,.18)!important;color:#17365f!important
}
.lp-consumption-popover[hidden]{display:none!important}
.lp-consumption-popover-title{font-family:Sora,Inter,system-ui,sans-serif;font-size:15px;font-weight:780;line-height:1.25;color:#0b2854;margin:0 0 3px}
.lp-consumption-popover-sub{font-size:11.5px;line-height:1.4;color:#718399;margin:0 0 12px}
.lp-consumption-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:12px}
.lp-consumption-options.lp-consumption-options-gas{grid-template-columns:repeat(4,minmax(0,1fr))}
.lp-consumption-option{
  min-width:0!important;min-height:50px!important;padding:7px 5px!important;border:1px solid #d8e3eb!important;border-radius:10px!important;
  background:#f9fbfd!important;color:#17365f!important;box-shadow:none!important;cursor:pointer!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important
}
.lp-consumption-option:hover{border-color:var(--lp-cro-accent,#08a7ae)!important;background:var(--lp-cro-soft,#eefafa)!important}
.lp-consumption-option.is-selected{border-color:var(--lp-cro-accent,#08a7ae)!important;background:var(--lp-cro-soft,#eefafa)!important;box-shadow:inset 0 0 0 1px var(--lp-cro-accent,#08a7ae)!important}
.lp-consumption-option strong{font-size:12.5px;line-height:1.15;color:#12325b}
.lp-consumption-option span{font-size:9.5px;line-height:1.15;color:#788aa0}
.lp-consumption-manual-label{display:block;font-size:10.5px;font-weight:730;color:#526b85;margin:0 0 5px}
.lp-consumption-manual{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.lp-consumption-manual input{
  width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;box-sizing:border-box!important;
  border:1.5px solid #cdd9e4!important;border-radius:9px!important;background:#fff!important;color:#16335d!important;
  padding:8px 11px!important;font-size:13px!important;font-weight:650!important
}
.lp-consumption-manual input:focus{outline:none!important;border-color:var(--lp-cro-accent,#08a7ae)!important;box-shadow:0 0 0 3px var(--lp-cro-focus,rgba(8,167,174,.12))!important}
.lp-consumption-apply{
  min-width:104px!important;height:44px!important;min-height:44px!important;padding:0 14px!important;border:0!important;border-radius:9px!important;
  background:var(--lp-cro-accent,#08a7ae)!important;color:#fff!important;font-size:12px!important;font-weight:760!important;cursor:pointer!important;box-shadow:none!important
}
.lp-consumption-note{font-size:9.5px;line-height:1.35;color:#8695a7;margin:8px 0 0}

/* Vertical identity. Never force every product into the same green CTA. */
body.lp-city-strom{--lp-cro-accent:#08a7ae;--lp-cro-soft:#eefafa;--lp-cro-focus:rgba(8,167,174,.13)}
body.lp-city-gas{--lp-cro-accent:#147fe3;--lp-cro-soft:#eef6ff;--lp-cro-focus:rgba(20,127,227,.13)}
body.lp-city-internet{--lp-cro-accent:#6d4aff;--lp-cro-soft:#f3f0ff;--lp-cro-focus:rgba(109,74,255,.13)}
body.lp-city-mietwagen{--lp-cro-accent:#f28a00;--lp-cro-soft:#fff5e8;--lp-cro-focus:rgba(242,138,0,.13)}

/* City comparison cards: balanced input/action geometry. */
@media(min-width:901px){
  body.lp-city-strom .cbox,body.lp-city-gas .cbox,body.lp-city-internet .cbox{
    grid-template-columns:minmax(0,1fr) minmax(230px,280px)!important;column-gap:14px!important
  }
  body.lp-city-strom .cbox>.bcta,body.lp-city-gas .cbox>.bcta,body.lp-city-internet .cbox>.bcta{
    width:100%!important;max-width:none!important;min-width:0!important;height:48px!important;min-height:48px!important
  }
  body.lp-city-gas .cbox>.ig{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body.lp-city-mietwagen .cbox{
    display:block!important
  }
  body.lp-city-mietwagen .cbox>.ig{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px 12px!important
  }
  body.lp-city-mietwagen .cbox>.bcta{
    display:flex!important;width:100%!important;max-width:none!important;min-width:0!important;height:49px!important;min-height:49px!important;
    margin:12px 0 0!important;background:linear-gradient(90deg,#f28a00,#ff9f1a)!important;
    box-shadow:0 8px 20px rgba(242,138,0,.18)!important
  }
  body.lp-city-mietwagen .cbox>.cnote{margin:7px 0 0!important;text-align:left!important}
}

/* Main product pages: preserve their own brand actions and straight alignment. */
body:not(.lp-city-modern) #mwf-cta.bcta{
  width:100%!important;max-width:none!important;min-width:0!important;
  background:linear-gradient(90deg,#f28a00,#ff9f1a)!important;box-shadow:0 8px 20px rgba(242,138,0,.18)!important
}
body:not(.lp-city-modern) #mwf-cta.bcta:hover{background:linear-gradient(90deg,#df7400,#f28a00)!important}
body:not(.lp-city-modern) #inetCalcBtn.bcta-calc{
  width:100%!important;max-width:none!important;min-width:0!important;height:48px!important;min-height:48px!important;align-self:end!important
}
body:not(.lp-city-modern) #gasCalcBtn.bcta-calc{
  width:100%!important;max-width:none!important;min-width:0!important;height:48px!important;min-height:48px!important
}

/* Late dark PLZ block: copy and field should read as one unit on wide screens. */
@media(min-width:901px){
  body.lp-city-modern .ob .oi{
    max-width:1120px!important;display:grid!important;grid-template-columns:minmax(0,500px) minmax(250px,330px)!important;
    justify-content:start!important;align-items:end!important;gap:32px!important;padding-left:28px!important;padding-right:28px!important
  }
  body.lp-city-modern .ob .oi>.of{width:100%!important}
  body.lp-city-modern .ob .oi>.of .field{width:100%!important;max-width:none!important}
}

/* Ultrawide: use the screen instead of marooning content in the centre. */
@media(min-width:1600px){
  body:not(.lp-city-modern) .hero-in{max-width:1560px!important;padding-left:52px!important;padding-right:52px!important}
  body:not(.lp-city-modern) .rechner-mit-experte-in,
  body:not(.lp-city-modern) .strom-hub-rechner-in{max-width:1400px!important}
}

/* Pull the four product homepages tighter above the fold without crushing the hero photography. */
@media(min-width:981px){
  body:not(.lp-city-modern) .hero{min-height:520px!important;padding-bottom:124px!important}
  body:not(.lp-city-modern) .rechner-mit-experte,
  body:not(.lp-city-modern) .strom-hub-rechner{margin-top:-104px!important}
}

/* Mobile popovers stay in the viewport and actions remain thumb-friendly. */
@media(max-width:700px){
  .lp-consumption-popover{position:fixed!important;left:14px!important;right:14px!important;top:auto!important;bottom:14px!important;width:auto!important;max-height:min(76vh,620px)!important;overflow:auto!important}
  .lp-consumption-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lp-consumption-options.lp-consumption-options-gas{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lp-consumption-manual{grid-template-columns:1fr}
  .lp-consumption-apply{width:100%!important}
  body.lp-city-mietwagen .cbox>.bcta,body:not(.lp-city-modern) #mwf-cta.bcta{width:100%!important;max-width:none!important}
}

/* CONVERSION UI V2 — legacy-green kill switch for city actions / 2026-09-19 */
body.lp-city-modern{--green:var(--city-accent)!important;--green-dark:var(--city-accent)!important}
body.lp-city-modern .hbtn,
body.lp-city-modern .sticky-cta{background:linear-gradient(135deg,var(--city-accent),var(--city-accent2))!important;color:#fff!important;border-color:transparent!important;box-shadow:0 10px 24px var(--city-glow)!important}
body.lp-city-modern .hbtn:hover,
body.lp-city-modern .sticky-cta:hover{background:linear-gradient(135deg,var(--city-accent),var(--city-accent2))!important;filter:saturate(1.08) brightness(.96)!important}
body.lp-city-modern a[style*="background:#10B981"],
body.lp-city-modern a[style*="background: #10B981"],
body.lp-city-modern a[style*="background:#10b981"],
body.lp-city-modern button[style*="background:#10B981"],
body.lp-city-modern button[style*="background: #10B981"],
body.lp-city-modern button[style*="background:#10b981"]{background:linear-gradient(135deg,var(--city-accent),var(--city-accent2))!important;color:#fff!important;border-color:transparent!important;box-shadow:0 9px 22px var(--city-glow)!important}
body.lp-city-modern a[style*="color:#10B981"],
body.lp-city-modern a[style*="color: #10B981"],
body.lp-city-modern a[style*="color:#10b981"],
body.lp-city-modern button[style*="color:#10B981"],
body.lp-city-modern button[style*="color: #10B981"],
body.lp-city-modern button[style*="color:#10b981"]{color:var(--city-accent)!important;border-color:var(--city-accent)!important}
body.lp-city-modern a[href*="/vergleich/"][style*="background:#10B981"],
body.lp-city-modern a[href*="/vergleich/"][style*="background:#10b981"]{background:linear-gradient(135deg,var(--city-accent),var(--city-accent2))!important;color:#fff!important}

/* CONVERSION UI V3 — benchmark-grade widgets + balanced city evidence / 2026-09-19 */

/* Larger, more readable consumption chooser. */
.lp-consumption-popover{
  width:min(560px,calc(100vw - 28px))!important;
  padding:18px!important;border-radius:16px!important;
  box-shadow:0 24px 64px rgba(13,37,67,.22)!important
}
.lp-consumption-popover-title{font-size:17px!important;line-height:1.25!important;margin-bottom:4px!important}
.lp-consumption-popover-sub{font-size:13px!important;line-height:1.45!important;margin-bottom:14px!important}
.lp-consumption-options{gap:9px!important;margin-bottom:15px!important}
.lp-consumption-options.lp-consumption-options-gas{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.lp-consumption-option{
  min-height:72px!important;padding:10px 7px!important;border-radius:11px!important;
  transition:border-color .15s ease,background .15s ease,transform .15s ease!important
}
.lp-consumption-option:hover{transform:translateY(-1px)}
.lp-consumption-option strong{font-size:14.5px!important;line-height:1.2!important}
.lp-consumption-option span{font-size:12.5px!important;line-height:1.25!important;margin-top:3px!important}
.lp-consumption-manual-label{font-size:12px!important;margin-bottom:7px!important}
.lp-consumption-manual{gap:9px!important}
.lp-consumption-manual input{height:48px!important;min-height:48px!important;font-size:14px!important}
.lp-consumption-apply{height:48px!important;min-height:48px!important;min-width:128px!important;font-size:13px!important}
.lp-consumption-note{font-size:10.5px!important;line-height:1.45!important;margin-top:9px!important}

/* Internet: one consistent address interaction on hub and city pages. */
.lp-internet-native-hidden{display:none!important}
.lp-internet-widget{display:grid;gap:10px;margin-top:2px}
.lp-internet-intents{display:flex;flex-wrap:wrap;gap:8px;border:0;padding:0;margin:0}
.lp-internet-intent{position:relative}
.lp-internet-intent input{position:absolute;opacity:0;pointer-events:none}
.lp-internet-intent label{
  display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:7px 11px;
  border:1px solid #d9e2ec;border-radius:999px;background:#fff;color:#435b75;
  font-size:11.5px;font-weight:700;cursor:pointer
}
.lp-internet-intent label::before{
  content:'';width:11px;height:11px;border-radius:50%;border:1.5px solid #9cadbd;background:#fff;
  box-shadow:inset 0 0 0 3px #fff
}
.lp-internet-intent input:checked+label{
  border-color:#6d4aff;background:#f3f0ff;color:#3f2ea6
}
.lp-internet-intent input:checked+label::before{border-color:#6d4aff;background:#6d4aff}
.lp-address-field{position:relative}
.lp-address-trigger{
  width:100%!important;min-height:52px!important;padding:8px 14px!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;
  background:#fff!important;border:1.5px solid #cdd9e4!important;border-radius:11px!important;
  text-align:left!important;color:#16335d!important;cursor:pointer!important;box-shadow:0 1px 3px rgba(20,45,75,.05)!important
}
.lp-address-trigger:focus-visible{outline:none!important;border-color:#6d4aff!important;box-shadow:0 0 0 3px rgba(109,74,255,.12)!important}
.lp-address-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.lp-address-kicker{font-size:10px;font-weight:750;color:#718399}
.lp-address-summary{font-size:14px;font-weight:760;color:#16335d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-address-chevron{font-size:13px;color:#698099;transition:transform .16s ease}
.lp-address-trigger[aria-expanded="true"] .lp-address-chevron{transform:rotate(180deg)}
.lp-address-popover{
  position:absolute;z-index:10060;top:calc(100% + 8px);left:0;width:min(510px,calc(100vw - 28px));
  padding:16px;background:#fff;border:1px solid #d8e3eb;border-radius:15px;
  box-shadow:0 24px 60px rgba(13,37,67,.2);box-sizing:border-box
}
.lp-address-popover[hidden]{display:none!important}
.lp-address-title{font-size:16px;font-weight:780;color:#0b2854;margin:0 0 12px}
.lp-address-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(90px,1fr);gap:9px}
.lp-address-loc-wrap{grid-column:1/-1;position:relative}
.lp-address-popover label{display:block;font-size:10.5px;font-weight:750;color:#526b85;margin:0 0 5px}
.lp-address-popover input{
  width:100%;height:46px;box-sizing:border-box;border:1.5px solid #cdd9e4;border-radius:9px;
  padding:9px 11px;font-size:13.5px;font-weight:650;color:#16335d;background:#fff;outline:none
}
.lp-address-popover input:focus{border-color:#6d4aff;box-shadow:0 0 0 3px rgba(109,74,255,.11)}
.lp-address-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:11px}
.lp-address-done{
  min-height:46px;border:0;border-radius:10px;background:linear-gradient(90deg,#6d4aff,#3478f6);
  color:#fff;font:760 13px/1 Inter,system-ui,sans-serif;cursor:pointer
}
.lp-internet-tv{display:flex;align-items:center;gap:8px;font-size:11.5px;color:#526b85;font-weight:650}
.lp-internet-tv input{width:16px;height:16px;accent-color:#6d4aff}

/* Shared autocomplete list (Internet + Mietwagen). */
.lp-suggest-host{position:relative}
.lp-suggest-list{
  position:absolute;z-index:10080;left:0;right:0;top:calc(100% + 5px);
  background:#fff;border:1px solid #d8e3eb;border-radius:11px;box-shadow:0 18px 42px rgba(13,37,67,.18);
  padding:5px;max-height:290px;overflow:auto
}
.lp-suggest-list[hidden]{display:none!important}
.lp-suggest-item{
  width:100%;display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;align-items:center;
  border:0;background:#fff;border-radius:8px;padding:8px 9px;text-align:left;cursor:pointer;color:#17365f
}
.lp-suggest-item:hover,.lp-suggest-item:focus-visible{background:#f3f6fb;outline:none}
.lp-suggest-icon{width:30px;height:30px;border-radius:8px;background:#f3f6fb;display:grid;place-items:center;font-size:14px}
.lp-suggest-main{display:block;font-size:12.5px;font-weight:750;line-height:1.25}
.lp-suggest-meta{display:block;font-size:10.5px;color:#7b8da1;margin-top:2px}

/* Mietwagen pickup autocomplete should sit above the rest of the calculator. */
.mwf-portal-form>div:first-child,.mwf-return-wrap,.cbox .field{position:relative}
body.lp-city-mietwagen .lp-suggest-list{min-width:min(440px,calc(100vw - 32px))}
#mwf-pickup,#mwf-return,#mwOrt,#mwRkOrt{padding-right:36px!important}

/* City evidence modules: shared JS assigns real cards to the shorter column. */
@media(min-width:769px){
  .uvp-balance-grid[data-lp-balanced="1"]{align-items:start!important}
  .uvp-balance-grid[data-lp-balanced="1"]>.uvp-balance-column{align-self:start!important}
  .uvp-balance-grid[data-lp-balanced="1"]>.uvp-balance-column>.uvp-block{margin:0!important}
  .uvp-balance-grid[data-lp-balanced="1"]>.uvp-balance-column>.uvp-block+.uvp-block{margin-top:18px!important}
}

/* Never keep a duplicate fact/source card visible when the authoritative city overview exists. */
body.lp-city-modern .lp-fact-src[data-lp-duplicate-fact="1"]{display:none!important}

/* Responsive accessibility. */
@media(max-width:700px){
  .lp-consumption-popover,.lp-address-popover{
    position:fixed!important;left:14px!important;right:14px!important;top:auto!important;bottom:14px!important;
    width:auto!important;max-height:min(80vh,660px)!important;overflow:auto!important
  }
  .lp-consumption-options{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .lp-consumption-options.lp-consumption-options-gas{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .lp-consumption-option{min-height:68px!important}
  .lp-address-grid{grid-template-columns:minmax(0,2fr) minmax(84px,1fr)}
  .lp-suggest-list{position:static;margin-top:5px;max-height:220px}
}

/* V3.1 — special evidence-rich cities use one continuous full-width stack.
   This intentionally mirrors the compact Ulm layout and removes empty half-columns. */
@media(min-width:769px){
  .uvp-balance-grid[data-lp-balanced="stack"]{grid-template-columns:1fr!important;gap:18px!important}
  .uvp-balance-grid[data-lp-balanced="stack"]>.uvp-balance-column{display:contents!important}
  .uvp-balance-grid[data-lp-balanced="stack"] .uvp-block{grid-column:1/-1!important;width:100%!important;margin:0!important;box-sizing:border-box!important}
  .uvp-balance-grid[data-lp-balanced="stack"] [data-uvp-block="local-index-atlas"]{display:flow-root!important}
  .uvp-balance-grid[data-lp-balanced="stack"] [data-uvp-block="local-index-atlas"] .lp-city-visual{
    float:right!important;width:min(48%,525px)!important;max-width:525px!important;margin:-4px -4px 14px 20px!important
  }
  .uvp-balance-grid[data-lp-balanced="stack"] [data-uvp-block="local-index-atlas"] .lp-city-visual img{
    width:100%!important;height:auto!important;max-height:380px!important;object-fit:contain!important;background:#e2e8f0!important
  }
}

/* V3.2 — no-JS fallback: all former two-column late evidence layouts become continuous stacks. */
@media(min-width:769px){
  body.lp-city-modern .uvp-balance-grid:not(.uvp-balance-sparse){grid-template-columns:1fr!important;gap:18px!important}
  body.lp-city-modern .uvp-balance-grid:not(.uvp-balance-sparse)>.uvp-balance-column{display:contents!important}
  body.lp-city-modern .uvp-balance-grid:not(.uvp-balance-sparse) .uvp-block{grid-column:1/-1!important;width:100%!important;margin:0!important;box-sizing:border-box!important}
  body.lp-city-modern .uvp-balance-grid:not(.uvp-balance-sparse) [data-uvp-block="local-index-atlas"]{display:flow-root!important}
  body.lp-city-modern .uvp-balance-grid:not(.uvp-balance-sparse) [data-uvp-block="local-index-atlas"] .lp-city-visual{float:right!important;width:min(48%,525px)!important;max-width:525px!important;margin:-4px -4px 14px 20px!important}
  body.lp-city-modern .uvp-balance-grid:not(.uvp-balance-sparse) [data-uvp-block="local-index-atlas"] .lp-city-visual img{width:100%!important;height:auto!important;max-height:380px!important;object-fit:contain!important;background:#e2e8f0!important}
}
