:root{
    --ink:#1B232E;
    --body:#5A5F66;
    --muted:#A7ACB3;
    --line:#D4D8DD;
    --blue:#0099CC;
    --blue-dark:#0086B3;
    --blue-tint:#E8F2FC;
    --grey-bg:#EEEEEE;
    --cream:#F4F1EA;
    --white:#ffffff;
    --radius:8px;
    --radius-img:12px;
    --serif:'Fraunces',Georgia,serif;
    --sans:'Segoe UI',system-ui,-apple-system,Roboto,'Helvetica Neue',Arial,sans-serif;
  }
  :is(#beri,.beri-root) *{box-sizing:border-box;margin:0;padding:0;}
  :is(#beri,.beri-root){
    font-family:var(--sans);
    color:var(--ink);
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
    background:var(--white);
  }
  :is(#beri,.beri-root) h1,:is(#beri,.beri-root) h2,:is(#beri,.beri-root) h3,:is(#beri,.beri-root) h4{
    font-family:var(--serif);
    font-weight:300;
    line-height:1.1;
    letter-spacing:-0.01em;
    color:var(--ink);
  }
  :is(#beri,.beri-root) em{font-style:italic;color:var(--blue);font-weight:300;text-decoration:none;}
  :is(#beri,.beri-root) a em, :is(#beri,.beri-root) em a{text-decoration:none;font-weight:400;}
  :is(#beri,.beri-root) .faq-cta a.inline{color:var(--blue);font-weight:400;font-style:italic;text-decoration:none;}
  :is(#beri,.beri-root) .faq-cta a.inline:hover{text-decoration:underline;}
  :is(#beri,.beri-root) a{color:inherit;text-decoration:none;transition:color .15s ease;}
  :is(#beri,.beri-root) img{max-width:100%;display:block;}
  :is(#beri,.beri-root) .wrap{max-width:1320px;margin:0 auto;padding:0 48px;}
  :is(#beri,.beri-root) .eyebrow{
    font-size:14px;letter-spacing:0.14em;text-transform:uppercase;
    color:var(--body);font-weight:400;margin-bottom:16px;display:block;
  }

  /* buttons */
  :is(#beri,.beri-root) .btn{
    display:inline-flex;align-items:center;gap:9px;
    padding:15px 27px;border-radius:999px;
    font-size:16px;font-weight:600;font-family:var(--sans);
    cursor:pointer;border:1px solid transparent;
    transition:all .18s ease;white-space:nowrap;line-height:1;
  }
  :is(#beri,.beri-root) .btn svg{width:15px;height:15px;flex-shrink:0;}
  :is(#beri,.beri-root) .btn-primary{background:var(--blue);color:#fff;}
  :is(#beri,.beri-root) .btn-primary:hover{background:var(--blue-dark);transform:translateY(-1px);}
  :is(#beri,.beri-root) .btn-outline{background:transparent;border-color:#cdd2d7;color:var(--ink);}
  :is(#beri,.beri-root) .btn-outline:hover{border-color:var(--ink);background:rgba(0,0,0,.02);}
  :is(#beri,.beri-root) .btn-white{background:#fff;color:var(--blue);}
  :is(#beri,.beri-root) .btn-white:hover{background:var(--blue-tint);}

  /* placeholder image blocks */
  :is(#beri,.beri-root) .ph{
    background:
      linear-gradient(135deg,#e6edf0 0%,#d3dee3 100%);
    display:flex;align-items:center;justify-content:center;
    color:#93a2ab;font-size:12px;font-weight:600;
    letter-spacing:.08em;text-transform:uppercase;
    position:relative;overflow:hidden;
  }
  :is(#beri,.beri-root) .ph::after{
    content:"";position:absolute;inset:0;
    background:repeating-linear-gradient(45deg,transparent,transparent 14px,rgba(255,255,255,.25) 14px,rgba(255,255,255,.25) 15px);
  }
  :is(#beri,.beri-root) .ph span{position:relative;z-index:1;}

  /* ============ HEADER ============ */
  :is(#beri,.beri-root) header{
    border-bottom:1px solid var(--line);
    background:rgba(255,255,255,.92);
    backdrop-filter:saturate(150%) blur(8px);
    position:sticky;top:0;z-index:100;
  }
  :is(#beri,.beri-root) .nav-inner{
    display:flex;align-items:center;justify-content:space-between;
    max-width:1320px;margin:0 auto;padding:18px 48px;
  }
:is(#beri,.beri-root) .logo-link{display:inline-flex;align-items:center;}
  :is(#beri,.beri-root) .logo-img{height:42px;width:auto;display:block;}
  :is(#beri,.beri-root) .foot-logo-img{height:46px;width:auto;display:block;margin-bottom:18px;}

  :is(#beri,.beri-root) .logo b{font-weight:500;}
  :is(#beri,.beri-root) .logo .r{color:var(--blue);}
  :is(#beri,.beri-root) .nav-links{display:flex;gap:32px;font-size:16px;font-weight:400;}
  :is(#beri,.beri-root) .nav-links a{color:var(--ink);}
  :is(#beri,.beri-root) .nav-links a:hover{color:var(--blue);}
  :is(#beri,.beri-root) .nav-right{display:flex;align-items:center;gap:26px;}
  :is(#beri,.beri-root) .phone{display:flex;align-items:center;gap:9px;font-size:15px;color:var(--ink);white-space:nowrap;}
  :is(#beri,.beri-root) .phone .dot{width:8px;height:8px;border-radius:50%;background:var(--blue);flex-shrink:0;}

  /* ============ HERO ============ */
  :is(#beri,.beri-root) .hero{padding:64px 0 0;}
  :is(#beri,.beri-root) .hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:56px;align-items:center;}
  :is(#beri,.beri-root) .hero h1{font-size:64px;max-width:760px;margin-bottom:28px;font-weight:300;}
  :is(#beri,.beri-root) .hero h1 .l1,:is(#beri,.beri-root) .hero h1 .l2,:is(#beri,.beri-root) .hero h1 .l3{display:block;}
  :is(#beri,.beri-root) .hero p{font-size:17px;color:var(--body);max-width:470px;margin-bottom:34px;line-height:1.65;}
  :is(#beri,.beri-root) .hero-actions{display:flex;gap:14px;flex-wrap:wrap;}
  :is(#beri,.beri-root) .hero-visual{position:relative;border-radius:var(--radius-img);overflow:hidden;}
  :is(#beri,.beri-root) .hero-visual .ph{aspect-ratio:5/4.4;}
  :is(#beri,.beri-root) .hero-badge{
    position:absolute;left:24px;right:24px;bottom:24px;
    background:var(--blue);color:#fff;border-radius:8px;
    padding:18px 22px;display:flex;align-items:center;gap:18px;
    box-shadow:0 12px 30px rgba(0,153,204,.28);
  }
  :is(#beri,.beri-root) .hero-badge .num{font-family:var(--serif);font-size:34px;font-weight:400;line-height:1;flex-shrink:0;}
  :is(#beri,.beri-root) .hero-badge .lbl{font-size:14px;line-height:1.45;}
  :is(#beri,.beri-root) .hero-badge .lbl b{font-weight:600;display:block;margin-bottom:2px;}

  /* ============ QUICK-NAV STRIP ============ */
  :is(#beri,.beri-root) .strip{background:var(--grey-bg);margin-top:52px;}
  :is(#beri,.beri-root) .strip-inner{
    max-width:1320px;margin:0 auto;padding:18px 48px;
    display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;
    font-size:14px;font-weight:400;
  }
  :is(#beri,.beri-root) .strip a{display:flex;gap:8px;color:var(--body);}
  :is(#beri,.beri-root) .strip a:hover{color:var(--ink);}
  :is(#beri,.beri-root) .strip a .n{color:var(--blue);font-weight:600;}

  /* ============ TRUST BAR ============ */
  :is(#beri,.beri-root) .trust{padding:52px 0 40px;}
  :is(#beri,.beri-root) .trust-grid{
    display:grid;grid-template-columns:repeat(4,1fr);
    border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  }
  :is(#beri,.beri-root) .trust-cell{padding:30px 28px;border-right:1px solid var(--line);}
  :is(#beri,.beri-root) .trust-cell:last-child{border-right:none;}
  :is(#beri,.beri-root) .trust-cell .ic{width:26px;height:26px;color:var(--blue);margin-bottom:18px;}
  :is(#beri,.beri-root) .trust-cell h3{font-family:var(--serif);font-size:24px;font-weight:400;margin-bottom:10px;letter-spacing:-0.01em;}
  :is(#beri,.beri-root) .trust-cell p{font-size:14px;color:var(--body);line-height:1.5;}

  /* ============ SERVICES ============ */
  :is(#beri,.beri-root) .services{background:var(--grey-bg);padding:60px 0 68px;}
  :is(#beri,.beri-root) .services-head{display:grid;grid-template-columns:1.25fr 1fr;gap:56px;align-items:end;margin-bottom:44px;}
  :is(#beri,.beri-root) .services-head h2{font-size:50px;line-height:1.1;}
  :is(#beri,.beri-root) .services-head p{font-size:16px;color:var(--body);line-height:1.6;}
  :is(#beri,.beri-root) .services-grid{
    display:grid;grid-template-columns:repeat(3,1fr);
    border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;
  }
  :is(#beri,.beri-root) .svc{padding:30px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);}
  :is(#beri,.beri-root) .svc:nth-child(3n){border-right:none;}
  :is(#beri,.beri-root) .svc .num{font-size:13px;color:var(--body);font-weight:500;margin-bottom:8px;display:block;letter-spacing:.02em;}
  :is(#beri,.beri-root) .svc h3{font-family:var(--serif);font-size:28px;margin-bottom:12px;font-weight:400;letter-spacing:-0.01em;}
  :is(#beri,.beri-root) .svc>p{font-size:15px;color:var(--body);margin-bottom:18px;line-height:1.55;}
  :is(#beri,.beri-root) .svc ul{list-style:none;font-size:14px;margin-bottom:20px;}
  :is(#beri,.beri-root) .svc li{padding:6px 0;color:var(--ink);position:relative;padding-left:16px;}
  :is(#beri,.beri-root) .svc li::before{content:"•";position:absolute;left:0;color:var(--blue);}
  :is(#beri,.beri-root) .svc .svc-img{aspect-ratio:16/9;border-radius:var(--radius-img);}
  :is(#beri,.beri-root) .svc.hl{background:var(--blue-tint);border-right:none;display:flex;flex-direction:column;justify-content:center;}
  :is(#beri,.beri-root) .svc.hl .tag{font-size:12px;color:var(--blue);font-weight:600;text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px;}
  :is(#beri,.beri-root) .svc.hl h3{color:var(--ink);}
  :is(#beri,.beri-root) .svc.hl p{color:var(--body);margin-bottom:24px;}

  /* ============ WHY US ============ */
  :is(#beri,.beri-root) .why{padding:80px 0;}
  :is(#beri,.beri-root) .why-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:64px;align-items:start;}
  :is(#beri,.beri-root) .why h2{font-size:50px;margin-bottom:44px;}
  :is(#beri,.beri-root) .why-left{display:flex;flex-direction:column;}
  :is(#beri,.beri-root) .why-img{aspect-ratio:16/10;border-radius:var(--radius-img);width:100%;object-fit:cover;}
  :is(#beri,.beri-root) .why-list{display:flex;flex-direction:column;gap:36px;}
  :is(#beri,.beri-root) .why-item{display:flex;gap:22px;}
  :is(#beri,.beri-root) .why-item .n{font-family:var(--serif);color:var(--blue);font-size:16px;font-weight:500;min-width:26px;padding-top:4px;}
  :is(#beri,.beri-root) .why-item h3{font-family:var(--serif);font-size:28px;margin-bottom:10px;font-weight:400;letter-spacing:-0.01em;}
  :is(#beri,.beri-root) .why-item p{font-size:16px;color:var(--body);line-height:1.65;}

  /* ============ REFERENCE / CASE STUDY ============ */
  :is(#beri,.beri-root) .ref{padding:60px 0 80px;}
  :is(#beri,.beri-root) .ref-head{display:grid;grid-template-columns:1.25fr 1fr;gap:56px;align-items:end;margin-bottom:36px;}
  :is(#beri,.beri-root) .ref-head h2{font-size:50px;}
  :is(#beri,.beri-root) .ref-head p{font-size:15px;color:var(--body);line-height:1.6;}
  :is(#beri,.beri-root) .ref-visual{position:relative;border-radius:var(--radius);overflow:hidden;}
  :is(#beri,.beri-root) .ref-visual .ph{aspect-ratio:16/7.5;background:linear-gradient(135deg,#1c2b33,#0e1a20);}
  :is(#beri,.beri-root) .ref-visual .ph span{color:#5a6d78;}
  :is(#beri,.beri-root) .ref-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
  :is(#beri,.beri-root) .ref-scrim{position:absolute;left:0;right:0;bottom:0;height:60%;background:linear-gradient(to top,rgba(10,16,20,.78),rgba(10,16,20,0));pointer-events:none;}
  :is(#beri,.beri-root) .ref-overlay{position:absolute;left:40px;right:40px;bottom:34px;z-index:2;display:flex;justify-content:space-between;align-items:flex-end;gap:40px;}
  :is(#beri,.beri-root) .ref-quote{font-family:var(--serif);font-size:30px;color:#fff;font-style:italic;font-weight:400;line-height:1.2;max-width:360px;text-shadow:0 2px 18px rgba(0,0,0,.45);}
  :is(#beri,.beri-root) .ref-right{flex-shrink:0;}
  :is(#beri,.beri-root) .ref-caption{color:#eef2f4;font-size:15px;line-height:1.5;max-width:420px;margin-bottom:20px;font-family:var(--sans);}
  :is(#beri,.beri-root) .ref-stats{display:flex;gap:48px;}
  :is(#beri,.beri-root) .ref-stats .sn{font-family:var(--serif);font-size:36px;color:var(--blue);display:block;line-height:1;margin-bottom:8px;font-weight:400;}
  :is(#beri,.beri-root) .ref-stats .sl{font-size:14px;color:#dbe2e6;letter-spacing:.01em;}

  /* ============ PROCESS ============ */
  :is(#beri,.beri-root) .proc{padding:80px 0;}
  :is(#beri,.beri-root) .proc h2{font-size:50px;margin-bottom:44px;}
  :is(#beri,.beri-root) .proc-grid{
    display:grid;grid-template-columns:repeat(4,1fr);
    border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  }
  :is(#beri,.beri-root) .proc-cell{padding:32px 28px;border-right:1px solid var(--line);}
  :is(#beri,.beri-root) .proc-cell:last-child{border-right:none;}
  :is(#beri,.beri-root) .proc-cell .n{font-family:var(--serif);color:var(--blue);font-size:56px;font-weight:300;display:block;margin-bottom:22px;line-height:1;}
  :is(#beri,.beri-root) .proc-cell h3{font-family:var(--serif);font-weight:400;font-size:30px;margin-bottom:12px;letter-spacing:-0.01em;}
  :is(#beri,.beri-root) .proc-cell p{font-size:16px;color:var(--body);line-height:1.55;}

  /* ============ FAQ ============ */
  :is(#beri,.beri-root) .faq{background:var(--grey-bg);padding:80px 0;}
  :is(#beri,.beri-root) .faq-head{display:grid;grid-template-columns:1.25fr 1fr;gap:56px;align-items:end;margin-bottom:40px;}
  :is(#beri,.beri-root) .faq-head h2{font-size:52px;}
  :is(#beri,.beri-root) .faq-head p{font-size:15px;color:var(--body);line-height:1.6;}
  :is(#beri,.beri-root) details.faq-item{
    background:#fff;border-radius:8px;margin-bottom:14px;
    padding:0;overflow:hidden;transition:box-shadow .15s ease;
  }
  :is(#beri,.beri-root) details.faq-item[open]{box-shadow:0 4px 20px rgba(0,0,0,.05);}
  :is(#beri,.beri-root) details.faq-item summary{
    list-style:none;cursor:pointer;padding:22px 26px;
    display:flex;justify-content:space-between;align-items:center;gap:20px;
    font-family:var(--serif);font-size:19px;font-weight:400;color:var(--ink);
  }
  :is(#beri,.beri-root) details.faq-item summary::-webkit-details-marker{display:none;}
  :is(#beri,.beri-root) details.faq-item .q-num{color:var(--blue);font-size:13px;font-weight:600;font-family:var(--sans);margin-right:12px;}
  :is(#beri,.beri-root) details.faq-item .chev{color:var(--blue);font-size:14px;transition:transform .2s ease;flex-shrink:0;}
  :is(#beri,.beri-root) details.faq-item[open] .chev{transform:rotate(180deg);}
  :is(#beri,.beri-root) details.faq-item .ans{padding:0 26px 24px;font-size:15px;color:var(--body);line-height:1.65;max-width:760px;}
  :is(#beri,.beri-root) .faq-cta{
    display:flex;justify-content:space-between;align-items:center;
    background:#fff;border-radius:8px;padding:22px 26px;margin-top:28px;gap:16px;flex-wrap:wrap;
  }
  :is(#beri,.beri-root) .faq-cta p{font-size:15px;color:var(--body);}
  :is(#beri,.beri-root) .faq-cta a.inline{color:var(--blue);font-weight:600;text-decoration:underline;}

  /* ============ CTA BANNER ============ */
  :is(#beri,.beri-root) .cta-wrap{padding:0 0 80px;}
  :is(#beri,.beri-root) .cta-banner{
    position:relative;border-radius:var(--radius);overflow:hidden;
    min-height:230px;display:flex;align-items:center;
    background:linear-gradient(120deg,#c7d3d8,#aebcc3);
  }
  :is(#beri,.beri-root) .cta-banner .ph{position:absolute;inset:0;}
  :is(#beri,.beri-root) .cta-banner::after{content:"";position:absolute;inset:0;background:rgba(18,26,31,.42);}
  :is(#beri,.beri-root) .cta-content{
    position:relative;z-index:2;padding:0 48px;width:100%;
    display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;
  }
  :is(#beri,.beri-root) .cta-content h2{color:#fff;font-size:48px;line-height:1.15;font-weight:300;}
  :is(#beri,.beri-root) .cta-content h2 em{color:#fff;}

  /* ============ CONTACT ============ */
  :is(#beri,.beri-root) .contact{padding:0 0 90px;}
  :is(#beri,.beri-root) .contact-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:70px;align-items:start;}
  :is(#beri,.beri-root) .contact h2{font-size:55px;margin-bottom:0;}
  :is(#beri,.beri-root) form{margin-top:34px;}
  :is(#beri,.beri-root) .f-row{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px;}
  :is(#beri,.beri-root) label{display:block;font-size:13px;font-weight:600;color:var(--blue);margin-bottom:7px;}
  :is(#beri,.beri-root) input,:is(#beri,.beri-root) textarea{
    width:100%;border:1px solid var(--line);border-radius:4px;
    padding:13px 15px;font-family:inherit;font-size:15px;color:var(--ink);
    transition:border-color .15s ease;background:#fff;
  }
  :is(#beri,.beri-root) input:focus,:is(#beri,.beri-root) textarea:focus{outline:none;border-color:var(--blue);}
  :is(#beri,.beri-root) input::placeholder,:is(#beri,.beri-root) textarea::placeholder{color:#a8adb2;}
  :is(#beri,.beri-root) textarea{min-height:120px;resize:vertical;margin-bottom:18px;}
  :is(#beri,.beri-root) .consent{display:flex;align-items:flex-start;gap:10px;font-size:14px;color:var(--body);margin-bottom:26px;line-height:1.5;}
  :is(#beri,.beri-root) .consent input{width:auto;margin-top:3px;flex-shrink:0;}
  :is(#beri,.beri-root) .consent a{color:var(--blue);text-decoration:underline;}
  :is(#beri,.beri-root) .contact-info .lead{font-size:15px;color:var(--body);margin-bottom:36px;line-height:1.65;}
  :is(#beri,.beri-root) .info-row{display:flex;gap:16px;padding:20px 0;border-bottom:1px solid var(--line);}
  :is(#beri,.beri-root) .info-row:last-child{border-bottom:none;}
  :is(#beri,.beri-root) .info-row .ic{color:var(--blue);flex-shrink:0;margin-top:3px;width:20px;height:20px;}
  :is(#beri,.beri-root) .info-row .rl{font-size:13px;color:var(--body);margin-bottom:4px;}
  :is(#beri,.beri-root) .info-row .rv{font-weight:600;font-size:16px;}
  :is(#beri,.beri-root) .info-row .rs{font-size:14px;color:var(--body);margin-top:3px;}

  /* ============ FOOTER ============ */
  :is(#beri,.beri-root) footer{background:var(--cream);padding:64px 0 28px;}
  :is(#beri,.beri-root) .foot-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:44px;padding-bottom:44px;border-bottom:1px solid #e2ded4;}
  :is(#beri,.beri-root) .foot-logo{font-family:var(--serif);font-size:26px;font-weight:500;margin-bottom:18px;letter-spacing:-0.02em;}
  :is(#beri,.beri-root) .foot-logo .r{color:var(--blue);}
  :is(#beri,.beri-root) .foot-brand p{font-size:14px;color:var(--body);margin-bottom:24px;max-width:290px;line-height:1.6;}
  :is(#beri,.beri-root) footer .foot-col h4{font-family:var(--sans)!important;font-size:15px;font-weight:700!important;margin-bottom:18px;letter-spacing:0;color:var(--ink);}
  :is(#beri,.beri-root) .foot-col a{display:block;font-size:14px;color:var(--body);margin-bottom:12px;}
  :is(#beri,.beri-root) .foot-col a:hover{color:var(--blue);}
  :is(#beri,.beri-root) .foot-bottom{display:flex;justify-content:space-between;padding-top:24px;font-size:13px;color:var(--body);flex-wrap:wrap;gap:12px;}
  :is(#beri,.beri-root) .foot-bottom .fb-links{display:flex;gap:24px;}

  /* ============ RESPONSIVE ============ */
  @media(max-width:900px){
    :is(#beri,.beri-root) .wrap,:is(#beri,.beri-root) .nav-inner,:is(#beri,.beri-root) .strip-inner,:is(#beri,.beri-root) .cta-content{padding-left:24px;padding-right:24px;}
    :is(#beri,.beri-root) .nav-links{display:none;}
    :is(#beri,.beri-root) .hero{padding:40px 0 0;}
    :is(#beri,.beri-root) .hero-grid,:is(#beri,.beri-root) .services-head,:is(#beri,.beri-root) .why-grid,:is(#beri,.beri-root) .ref-head,:is(#beri,.beri-root) .faq-head,:is(#beri,.beri-root) .contact-grid{grid-template-columns:1fr;gap:36px;}
    :is(#beri,.beri-root) .why-list{padding-top:0!important;gap:32px;}
    :is(#beri,.beri-root) .hero h1{font-size:38px;}
    :is(#beri,.beri-root) .services-head h2,:is(#beri,.beri-root) .why h2,:is(#beri,.beri-root) .ref-head h2,:is(#beri,.beri-root) .proc h2,:is(#beri,.beri-root) .faq-head h2,:is(#beri,.beri-root) .contact h2{font-size:30px;}
    :is(#beri,.beri-root) .trust-grid,:is(#beri,.beri-root) .services-grid,:is(#beri,.beri-root) .proc-grid{grid-template-columns:1fr 1fr;}
    :is(#beri,.beri-root) .svc:nth-child(3n),:is(#beri,.beri-root) .trust-cell,:is(#beri,.beri-root) .proc-cell{border-right:none;}
    :is(#beri,.beri-root) .foot-grid{grid-template-columns:1fr 1fr;}
    :is(#beri,.beri-root) .f-row{grid-template-columns:1fr;}
    :is(#beri,.beri-root) .strip-inner{overflow-x:auto;flex-wrap:nowrap;}
    :is(#beri,.beri-root) .ref-overlay{left:20px;right:20px;bottom:20px;flex-direction:column;align-items:flex-start;gap:20px;}
    :is(#beri,.beri-root) .ref-quote{font-size:22px;}
    :is(#beri,.beri-root) .ref-caption{font-size:14px;margin-bottom:16px;}
    :is(#beri,.beri-root) .ref-stats{gap:24px;}
    :is(#beri,.beri-root) .ref-stats .sn{font-size:28px;}
  }
  @media(max-width:560px){
    :is(#beri,.beri-root) .trust-grid,:is(#beri,.beri-root) .services-grid,:is(#beri,.beri-root) .proc-grid,:is(#beri,.beri-root) .foot-grid{grid-template-columns:1fr;}
    :is(#beri,.beri-root) .svc,:is(#beri,.beri-root) .trust-cell,:is(#beri,.beri-root) .proc-cell{border-right:none;border-bottom:1px solid var(--line);}
  }
/* ============================================================
   GUTENBERG COMPATIBILITY
   The design CSS above assumes plain divs. Core blocks bring
   their own margins, max-widths and layout classes, which shift
   spacing and collapse the grids. These rules neutralise that
   inside :is(#beri,.beri-root) only, so the rest of the site is untouched.
   ============================================================ */

:is(#beri,.beri-root) :where(.wp-block-group,.wp-block-image,.wp-block-heading,.wp-block-buttons,
             .wp-block-columns,.wp-block-column,p,h1,h2,h3,h4,ul,ol,figure){
  margin-top:0;
  margin-bottom:0;
}

:is(#beri,.beri-root) :where(.is-layout-constrained) > :where(*){max-width:none;margin-left:0;margin-right:0;}
:is(#beri,.beri-root) :where(.is-layout-flow) > :where(*){margin-block-start:0;margin-block-end:0;}

:is(#beri,.beri-root) .trust-grid,:is(#beri,.beri-root) .services-grid,:is(#beri,.beri-root) .proc-grid,:is(#beri,.beri-root) .foot-grid,
:is(#beri,.beri-root) .hero-grid,:is(#beri,.beri-root) .why-grid,:is(#beri,.beri-root) .ref-head,:is(#beri,.beri-root) .services-head,
:is(#beri,.beri-root) .faq-head,:is(#beri,.beri-root) .contact-grid,:is(#beri,.beri-root) .f-row{display:grid;}

:is(#beri,.beri-root) figure.wp-block-image{margin:0;line-height:0;}
:is(#beri,.beri-root) figure.wp-block-image img{width:100%;height:auto;display:block;}
:is(#beri,.beri-root) figure.svc-img img{aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius-img);}
:is(#beri,.beri-root) figure.why-img img{aspect-ratio:16/10;object-fit:cover;border-radius:var(--radius-img);}
:is(#beri,.beri-root) figure.hero-img img{aspect-ratio:5/4.4;object-fit:cover;}
:is(#beri,.beri-root) figure.hero-img{border-radius:var(--radius-img);overflow:hidden;}

:is(#beri,.beri-root) .wp-block-buttons{display:flex;gap:14px;flex-wrap:wrap;}
:is(#beri,.beri-root) .wp-block-button__link{
  display:inline-flex;align-items:center;gap:9px;
  padding:15px 27px;border-radius:999px;
  font-size:16px;font-weight:600;font-family:var(--sans);
  border:1px solid transparent;line-height:1;
  transition:all .18s ease;white-space:nowrap;text-decoration:none;
}
:is(#beri,.beri-root) .btn-primary > .wp-block-button__link{background:var(--blue);color:#fff;}
:is(#beri,.beri-root) .btn-primary > .wp-block-button__link:hover{background:var(--blue-dark);}
:is(#beri,.beri-root) .btn-outline > .wp-block-button__link{background:transparent;border-color:#cdd2d7;color:var(--ink);}
:is(#beri,.beri-root) .btn-outline > .wp-block-button__link:hover{border-color:var(--ink);}
:is(#beri,.beri-root) .btn-white > .wp-block-button__link{background:#fff;color:var(--blue);}
:is(#beri,.beri-root) .btn-white > .wp-block-button__link:hover{background:var(--blue-tint);}

:is(#beri,.beri-root) .svc ul.wp-block-list{list-style:none;font-size:14px;margin-bottom:20px;padding-left:0;}
:is(#beri,.beri-root) .svc ul.wp-block-list li{padding:6px 0 6px 16px;color:var(--ink);position:relative;}
:is(#beri,.beri-root) .svc ul.wp-block-list li::before{content:"\2022";position:absolute;left:0;color:var(--blue);}

:is(#beri,.beri-root) .wp-block-details.faq-item{
  background:#fff;border-radius:8px;margin-bottom:14px;padding:0;overflow:hidden;
}
:is(#beri,.beri-root) .wp-block-details.faq-item summary{
  list-style:none;cursor:pointer;padding:22px 26px;
  font-family:var(--serif);font-size:19px;font-weight:400;color:var(--ink);
}
:is(#beri,.beri-root) .wp-block-details.faq-item summary::-webkit-details-marker{display:none;}
:is(#beri,.beri-root) .wp-block-details.faq-item summary::marker{content:"";}
:is(#beri,.beri-root) .wp-block-details.faq-item > *:not(summary){
  padding:0 26px 24px;font-size:15px;color:var(--body);line-height:1.65;max-width:760px;
}
:is(#beri,.beri-root) .wp-block-details.faq-item[open]{box-shadow:0 4px 20px rgba(0,0,0,.05);}
:is(#beri,.beri-root) .wp-block-details.faq-item summary .q-num{color:var(--blue);font-size:13px;font-weight:600;font-family:var(--sans);margin-right:12px;}

:is(#beri,.beri-root) h1,:is(#beri,.beri-root) h2,:is(#beri,.beri-root) h3,:is(#beri,.beri-root) h4{font-family:var(--serif);}
:is(#beri,.beri-root) footer .foot-col h4{font-family:var(--sans);font-weight:700;}
/* ------------------------------------------------------------
   Block conversion turned several <span>s into <p>s. Section
   rules like ":is(#beri,.beri-root) .services-head p" (0,1,1 + id) now outrank
   the flat ":is(#beri,.beri-root) .eyebrow" (0,1,0 + id) and win on specificity.
   Re-assert the design values with matching element+class weight.
   ------------------------------------------------------------ */
:is(#beri,.beri-root) p.eyebrow{
  font-size:14px;letter-spacing:0.14em;text-transform:uppercase;
  color:var(--body);font-weight:400;margin-bottom:16px;display:block;
  line-height:1.55;
}
:is(#beri,.beri-root) .svc p.num{font-size:13px;color:var(--body);font-weight:500;margin-bottom:8px;letter-spacing:.02em;}
:is(#beri,.beri-root) .svc.hl p.tag{font-size:12px;color:var(--blue);font-weight:600;text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px;}
:is(#beri,.beri-root) .hero-badge p.num{font-family:var(--serif);font-size:34px;font-weight:400;line-height:1;flex-shrink:0;}
:is(#beri,.beri-root) .hero-badge p.lbl{font-size:14px;line-height:1.45;}
:is(#beri,.beri-root) .proc-cell p.n{font-family:var(--serif);color:var(--blue);font-size:56px;font-weight:300;margin-bottom:22px;line-height:1;}
:is(#beri,.beri-root) .why-item p.n{font-family:var(--serif);color:var(--blue);font-size:16px;font-weight:500;min-width:26px;padding-top:4px;}
:is(#beri,.beri-root) .ref-stats p.sn{font-family:var(--serif);font-size:36px;color:var(--blue);line-height:1;margin-bottom:8px;font-weight:400;}
:is(#beri,.beri-root) .ref-stats p.sl{font-size:14px;color:#dbe2e6;letter-spacing:.01em;}
:is(#beri,.beri-root) p.ref-quote{font-family:var(--serif);font-size:30px;color:#fff;font-style:italic;font-weight:400;line-height:1.2;max-width:360px;text-shadow:0 2px 18px rgba(0,0,0,.45);}
:is(#beri,.beri-root) p.ref-caption{color:#eef2f4;font-size:15px;line-height:1.5;max-width:420px;margin-bottom:20px;font-family:var(--sans);}
:is(#beri,.beri-root) .contact-info p.lead{font-size:15px;color:var(--body);margin-bottom:36px;line-height:1.65;}

/* Arrow glyph replaces the inline SVG so buttons stay core/button
   blocks and remain editable in the block editor. */
:is(#beri,.beri-root) .btn-arrow > .wp-block-button__link::after{content:"\2192";font-size:15px;line-height:1;}

/* Reference overlay: scrim as a pseudo-element instead of a div,
   so the overlay text can stay editable blocks. */
:is(#beri,.beri-root) .ref-visual{position:relative;border-radius:var(--radius);overflow:hidden;}
:is(#beri,.beri-root) .ref-visual::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:60%;
  background:linear-gradient(to top,rgba(10,16,20,.78),rgba(10,16,20,0));
  pointer-events:none;z-index:1;
}
:is(#beri,.beri-root) .ref-overlay{
  position:absolute;left:40px;right:40px;bottom:34px;z-index:2;
  display:flex;justify-content:space-between;align-items:flex-end;gap:40px;
}
:is(#beri,.beri-root) .ref-right{flex-shrink:0;}
:is(#beri,.beri-root) .ref-stats{display:flex;gap:48px;}

/* Cover block stands in for the CTA banner div. */
:is(#beri,.beri-root) .wp-block-cover.cta-banner{
  border-radius:var(--radius);overflow:hidden;min-height:230px;
  display:flex;align-items:center;padding:0;
}
:is(#beri,.beri-root) .cta-banner .wp-block-cover__inner-container{width:100%;}
:is(#beri,.beri-root) .cta-content{
  padding:0 48px;width:100%;
  display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;
}
:is(#beri,.beri-root) .cta-content h2{color:#fff;font-size:48px;line-height:1.15;font-weight:300;}
:is(#beri,.beri-root) .cta-content h2 em{color:#fff;}

/* Footer link columns: anchors inside one paragraph need to stack. */
:is(#beri,.beri-root) .foot-col p a{display:block;font-size:14px;color:var(--body);margin-bottom:12px;}
:is(#beri,.beri-root) .foot-col p a:hover{color:var(--blue);}
:is(#beri,.beri-root) .foot-brand figure.foot-logo-fig img{height:46px;width:auto;margin-bottom:18px;}
:is(#beri,.beri-root) .foot-bottom{display:flex;justify-content:space-between;padding-top:24px;font-size:13px;color:var(--body);flex-wrap:wrap;gap:12px;}
:is(#beri,.beri-root) .foot-bottom p.fb-links{display:flex;gap:24px;}
:is(#beri,.beri-root) .foot-bottom p.fb-links a{color:var(--body);}

/* Hero badge is a flex row of two paragraphs. */
:is(#beri,.beri-root) .hero-badge{display:flex;align-items:center;gap:18px;}
:is(#beri,.beri-root) .why-item{display:flex;gap:22px;}
/* ------------------------------------------------------------
   The original design absolutely positioned .ref-visual img on
   top of a .ph placeholder div that supplied the height. The
   placeholder is gone (replaced by the real image), so the
   container collapsed to 0px. Put the image back in flow and
   let its aspect ratio define the height.
   ------------------------------------------------------------ */
:is(#beri,.beri-root) .ref-visual figure.ref-img{position:static;width:100%;}
:is(#beri,.beri-root) .ref-visual figure.ref-img img{
  position:static;inset:auto;
  width:100%;height:auto;
  aspect-ratio:16/7.5;object-fit:cover;
  border-radius:var(--radius);
}
/* ============================================================
   ICONS AS STYLING, NOT CONTENT
   Previously these were inline <svg> inside core/html blocks,
   which locked the surrounding cell out of the block editor.
   An SVG path is design, not client-editable copy, so it moves
   into CSS. Every cell is now a plain editable group block.
   ============================================================ */

:is(#beri,.beri-root) .trust-cell::before,
:is(#beri,.beri-root) .info-row::before{
  content:"";display:block;flex-shrink:0;
  background-repeat:no-repeat;background-position:center;background-size:contain;
}
:is(#beri,.beri-root) .trust-cell::before{width:26px;height:26px;margin-bottom:18px;}
:is(#beri,.beri-root) .info-row::before{width:20px;height:20px;margin-top:3px;}

/* Trust bar — shield, clock, panel, house */
:is(#beri,.beri-root) .ic-shield::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%230099CC' stroke-width='1.4'%3E%3Cpath d='M14 2L4 7v7c0 6 4.4 10.7 10 12 5.6-1.3 10-6 10-12V7L14 2Z'/%3E%3Cpath d='m9.5 14 3 3 6-6'/%3E%3C/svg%3E");}
:is(#beri,.beri-root) .ic-clock::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%230099CC' stroke-width='1.4'%3E%3Ccircle cx='14' cy='14' r='11'/%3E%3Cpath d='M14 7v7l4 3'/%3E%3C/svg%3E");}
:is(#beri,.beri-root) .ic-panel::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%230099CC' stroke-width='1.4'%3E%3Crect x='3' y='6' width='22' height='16' rx='1.5'/%3E%3Cpath d='M3 11h22M8 17h6'/%3E%3C/svg%3E");}
:is(#beri,.beri-root) .ic-house::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%230099CC' stroke-width='1.4'%3E%3Cpath d='M5 21V11l9-7 9 7v10'/%3E%3Cpath d='M11 21v-7h6v7'/%3E%3C/svg%3E");}

/* Contact info — phone, mail, pin, clock */
:is(#beri,.beri-root) .ic-phone::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230099CC' stroke-width='1.8'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .3 2 .7 2.9a2 2 0 0 1-.4 2.1L8.1 9.9a16 16 0 0 0 6 6l1.2-1.2a2 2 0 0 1 2.1-.4c.9.4 1.9.6 2.9.7a2 2 0 0 1 1.7 2Z'/%3E%3C/svg%3E");}
:is(#beri,.beri-root) .ic-mail::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230099CC' stroke-width='1.8'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E");}
:is(#beri,.beri-root) .ic-pin::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230099CC' stroke-width='1.8'%3E%3Cpath d='M21 10c0 7-9 12-9 12S3 17 3 10a9 9 0 0 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");}
:is(#beri,.beri-root) .ic-emergency::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230099CC' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/svg%3E");}

/* --- stat numbers over the reference image: shadow for legibility --- */
:is(#beri,.beri-root) .ref-stats .sn{text-shadow:0 1px 10px rgba(0,0,0,.6),0 0 3px rgba(0,0,0,.45);}

/* --- legal / Datenschutz page --- */
:is(#beri,.beri-root) .legal-page{max-width:820px;margin:0 auto;padding:56px 24px 90px;font-family:var(--sans);color:var(--body);line-height:1.75;font-size:16px;}
:is(#beri,.beri-root) .legal-page .legal-back{font-size:14px;margin:0 0 28px;}
:is(#beri,.beri-root) .legal-page .legal-back a{color:var(--blue);text-decoration:none;}
:is(#beri,.beri-root) .legal-page h1{font-family:var(--serif);font-weight:400;font-size:clamp(30px,5vw,42px);line-height:1.1;color:var(--ink);margin:0 0 8px;}
:is(#beri,.beri-root) .legal-page .legal-updated{font-size:14px;color:var(--body);margin:0 0 34px;}
:is(#beri,.beri-root) .legal-page h2{font-family:var(--serif);font-weight:400;font-size:24px;color:var(--ink);margin:38px 0 10px;}
:is(#beri,.beri-root) .legal-page h3{font-family:var(--sans);font-weight:600;font-size:16px;color:var(--ink);margin:22px 0 6px;}
:is(#beri,.beri-root) .legal-page p{margin:0 0 14px;}
:is(#beri,.beri-root) .legal-page a{color:var(--blue);}
:is(#beri,.beri-root) .legal-page ul{margin:0 0 16px;padding-left:20px;}
:is(#beri,.beri-root) .legal-page li{margin:0 0 6px;}

/* --- footer credit: Made with ♥ by Clickservice (heart in site blue) --- */
:is(#beri,.beri-root) .foot-bottom .made-by{width:100%;text-align:center;margin-top:14px;font-size:13px;color:var(--body);}
:is(#beri,.beri-root) .foot-bottom .made-by .mb-heart{color:var(--blue);font-style:normal;}
:is(#beri,.beri-root) .foot-bottom .made-by a{color:inherit;text-decoration:none;}
:is(#beri,.beri-root) .foot-bottom .made-by a:hover{color:var(--blue);}

/* ---- header rebuilt from blocks ---- */
:is(#beri,.beri-root) .site-header{
  border-bottom:1px solid var(--line);background:rgba(255,255,255,.92);
  backdrop-filter:saturate(150%) blur(8px);position:sticky;top:0;z-index:100;
}
:is(#beri,.beri-root) .nav-inner{
  display:flex;align-items:center;justify-content:space-between;
  max-width:1320px;margin:0 auto;padding:18px 48px;
}
:is(#beri,.beri-root) .nav-inner figure.logo-fig{margin:0;}
:is(#beri,.beri-root) .nav-inner figure.logo-fig img{height:42px;width:auto;display:block;}
:is(#beri,.beri-root) .nav-links{display:flex;gap:32px;align-items:center;}
:is(#beri,.beri-root) .nav-links p{font-size:16px;font-weight:400;margin:0;}
:is(#beri,.beri-root) .nav-links p a{color:var(--ink);text-decoration:none;}
:is(#beri,.beri-root) .nav-links p a:hover{color:var(--blue);}
:is(#beri,.beri-root) .nav-right{display:flex;align-items:center;gap:26px;}
:is(#beri,.beri-root) p.phone{display:flex;align-items:center;gap:9px;font-size:15px;color:var(--ink);white-space:nowrap;margin:0;}
:is(#beri,.beri-root) p.phone::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--blue);flex-shrink:0;display:block;}
:is(#beri,.beri-root) .nav-right .wp-block-buttons{margin:0;}

/* ---- quick-nav strip rebuilt from blocks ---- */
:is(#beri,.beri-root) .strip{background:var(--grey-bg);margin-top:52px;}
:is(#beri,.beri-root) .strip-inner{
  max-width:1320px;margin:0 auto;padding:18px 48px;
  display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;
}
:is(#beri,.beri-root) .strip-inner p{font-size:14px;font-weight:400;color:var(--body);margin:0;}
:is(#beri,.beri-root) .strip-inner p a{color:var(--body);text-decoration:none;}
:is(#beri,.beri-root) .strip-inner p a:hover{color:var(--ink);}
:is(#beri,.beri-root) .strip-inner p strong{color:var(--blue);font-weight:600;margin-right:6px;}

/* ---- contact info rows rebuilt from blocks ---- */
:is(#beri,.beri-root) .info-row{display:flex;gap:16px;padding:20px 0;border-bottom:1px solid var(--line);}
:is(#beri,.beri-root) .info-row:last-child{border-bottom:none;}
:is(#beri,.beri-root) .info-row p.rl{font-size:13px;color:var(--body);margin-bottom:4px;}
:is(#beri,.beri-root) .info-row p.rv{font-weight:600;font-size:16px;margin:0;}
:is(#beri,.beri-root) .info-row p.rs{font-size:14px;color:var(--body);margin-top:3px;}
/* ------------------------------------------------------------
   Hero badge: the blue card sets color:#fff on itself, but the
   paragraphs inside are block-level elements that pick up the
   theme's text colour instead of inheriting. Set it explicitly.
   ------------------------------------------------------------ */
:is(#beri,.beri-root) .hero-badge{color:#fff;}
:is(#beri,.beri-root) .hero-badge p.num,
:is(#beri,.beri-root) .hero-badge p.lbl,
:is(#beri,.beri-root) .hero-badge p.lbl b{color:#fff;}
:is(#beri,.beri-root) .hero-badge p.lbl b{font-weight:600;display:block;margin-bottom:2px;}

/* Same inheritance issue over the reference photo. */
:is(#beri,.beri-root) .ref-overlay p.ref-quote,
:is(#beri,.beri-root) .ref-overlay p.ref-caption{color:#fff;}
:is(#beri,.beri-root) .ref-stats p.sl{color:#dbe2e6;}
/* ------------------------------------------------------------
   CTA banner: was a core/cover block, whose hand-written markup
   did not match core's save() output and would flag as an
   invalid block in the editor. It is now a plain group, with the
   photo and dark scrim supplied by CSS instead.
   ------------------------------------------------------------ */
:is(#beri,.beri-root) .cta-banner{
  position:relative;border-radius:var(--radius);overflow:hidden;
  min-height:230px;display:flex;align-items:center;
  background-image:url("/wp-content/uploads/2026/07/Referenz-Komplettbad-Bonn-Bad-Godesberg.png");
  background-size:cover;background-position:center;
}
:is(#beri,.beri-root) .cta-banner::before{
  content:"";position:absolute;inset:0;background:rgba(18,26,31,.55);z-index:1;
}
:is(#beri,.beri-root) .cta-banner > .cta-content{position:relative;z-index:2;}
/* ------------------------------------------------------------
   FAQ summary: the design flexed <summary> because its question
   text was wrapped in a single <span> with the chevron beside
   it. That wrapper is gone (it would fight rich-text editing),
   so flex was spreading every text node and <em> across the row.
   Back to normal text flow, chevron as a positioned pseudo.
   ------------------------------------------------------------ */
:is(#beri,.beri-root) .wp-block-details.faq-item summary{
  display:block;position:relative;
  padding:22px 60px 22px 26px;
  font-family:var(--serif);font-size:19px;font-weight:400;color:var(--ink);
  line-height:1.45;
}
:is(#beri,.beri-root) .wp-block-details.faq-item summary::after{
  content:"\25BC";
  position:absolute;right:26px;top:24px;
  color:var(--blue);font-size:13px;line-height:1;
  display:inline-block;transition:transform .2s ease;
  font-family:var(--sans);
}
:is(#beri,.beri-root) .wp-block-details.faq-item[open] summary::after{transform:rotate(180deg);}
:is(#beri,.beri-root) .wp-block-details.faq-item summary em{font-style:italic;color:var(--blue);}
/* ------------------------------------------------------------
   Twenty Twenty-Five's global styles set font-weight:300 and
   letter-spacing:-0.1px on body text. The design assumes 400 and
   normal tracking, and the lighter/tighter face packs more words
   per line — the process paragraphs wrapped to 3 lines instead
   of 4. Reassert the design's metrics; :where() keeps these at
   zero specificity so component rules (.rv 600, .btn 600, the
   300-weight headings) still win.
   ------------------------------------------------------------ */
:is(#beri,.beri-root){font-weight:400;letter-spacing:normal;}
:is(#beri,.beri-root) :where(p,li,td,dd,figcaption,label,summary,input,textarea,button,a){letter-spacing:normal;}
:is(#beri,.beri-root) :where(p,li,td,dd,figcaption){font-weight:400;}

/* Headings keep the design's own weight and tracking. */
:is(#beri,.beri-root) :where(h1,h2,h3,h4){font-weight:300;letter-spacing:-0.01em;}

/* FAQ summary: design line-height is 1.55, not the 1.45 I used. */
:is(#beri,.beri-root) .wp-block-details.faq-item summary{line-height:1.55;}

/* The design's trust icon was an inline <svg>, so it sat on a text
   baseline and contributed descender space. A display:block pseudo
   does not, losing 6px per cell. */
:is(#beri,.beri-root) .trust-cell::before{display:inline-block;vertical-align:baseline;}
/* ------------------------------------------------------------
   Contact form inside the core/html block.
   Gutenberg previews html blocks in a sandboxed iframe with no
   page context, so the markup carries its own .beri-root wrapper
   and these rules target it directly. On the front end the
   wrapper is simply a passthrough.
   ------------------------------------------------------------ */
.beri-form-wrap{margin-top:34px;}
.beri-form-wrap form{margin:0;}
.beri-root .f-row{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px;}
.beri-root label{display:block;font-size:13px;font-weight:600;color:var(--blue);margin-bottom:7px;}
.beri-root input,.beri-root textarea{
  width:100%;border:1px solid var(--line);border-radius:4px;
  padding:13px 15px;font-family:var(--sans);font-size:15px;color:var(--ink);
  background:#fff;transition:border-color .15s ease;
}
.beri-root input:focus,.beri-root textarea:focus{outline:none;border-color:var(--blue);}
.beri-root textarea{min-height:120px;resize:vertical;margin-bottom:18px;}
.beri-root label.consent{
  display:flex;align-items:flex-start;gap:10px;font-size:14px;color:var(--body);
  margin-bottom:26px;line-height:1.5;font-weight:400;
}
.beri-root label.consent input{width:auto;margin-top:3px;flex-shrink:0;}
.beri-root label.consent a{color:var(--blue);text-decoration:underline;}
.beri-root button.btn{
  display:inline-flex;align-items:center;gap:9px;width:auto;
  padding:15px 27px;border-radius:999px;border:1px solid transparent;
  font-size:16px;font-weight:600;font-family:var(--sans);line-height:1;
  cursor:pointer;white-space:nowrap;background:var(--blue);color:#fff;
}
.beri-root button.btn:hover{background:var(--blue-dark);}
.beri-root button.btn svg{width:15px;height:15px;flex-shrink:0;}
/* ------------------------------------------------------------
   Three fidelity fixes found by diffing computed styles against
   the reference design.
   ------------------------------------------------------------ */

/* 1. Twenty Twenty-Five puts 50px of root padding on <body>, which
      inset every full-bleed band (grey services block, quick-nav
      strip, cream footer) by 50px a side. The design runs them
      edge to edge. Scoped to this template so the rest of the
      site keeps the theme's padding. */
body.page-template-beri-canvas{padding-left:0;padding-right:0;}
body.page-template-beri-canvas .wp-site-blocks,
body.page-template-beri-canvas .wp-block-post-content{max-width:none;margin-left:0;margin-right:0;}

/* 2. The theme's fluid typography leaves containers at 21.5px, so
      any text without an explicit size renders oversized and every
      line-box inflates. The design assumes a 16px base. */
:is(#beri,.beri-root){font-size:16px;}

/* 3. Hero badge is a two-column row (big number, then label), not
      a stack. Block layout was overriding the flex direction. */
:is(#beri,.beri-root) .hero-badge{
  display:flex;flex-direction:row;align-items:center;gap:18px;flex-wrap:nowrap;
}
:is(#beri,.beri-root) .hero-badge p.num{flex:0 0 auto;}
:is(#beri,.beri-root) .hero-badge p.lbl{flex:1 1 auto;}
/* The design's ".hero p{margin-bottom:34px}" targets the hero intro
   paragraph. The badge lives inside .hero and its contents were
   <span>s in the original markup, so the rule never reached them.
   As editable paragraph blocks they now match it, adding 34px of
   margin each and inflating the badge from 99px to 133px. */
:is(#beri,.beri-root) .hero-badge p{margin-bottom:0;max-width:none;}
/* Reference stat labels were inline <span>s, so their line box used
   the parent's 24.8px strut rather than their own 14px line-height. */
:is(#beri,.beri-root) .ref-stats p.sl{line-height:24.8px;}
/* ------------------------------------------------------------
   Editor sandbox only.
   Gutenberg previews the core/html block in an iframe roughly
   535px wide, so the design's <=900px rule fires and the paired
   fields stack. Inside that sandbox the wrapper is a direct child
   of <body>; on the front end it is nested deep inside #beri, so
   this selector can never match there. The id in :is() gives it
   enough weight to beat the media query without !important.
   ------------------------------------------------------------ */
body > :is(#beri,.beri-root).beri-form-wrap .f-row{
  grid-template-columns:1fr 1fr;gap:20px;
}
body > :is(#beri,.beri-root).beri-form-wrap{padding:0;margin:0;}

/* Editor: keep the forced hero line breaks at the design's 1.1
   line-height. The spans are display:block, and the editor's own
   block styles were adding leading between them. */
.editor-styles-wrapper :is(#beri,.beri-root) .hero h1{line-height:1.1;}
.editor-styles-wrapper :is(#beri,.beri-root) .hero h1 span{
  display:block;line-height:1.1;margin:0;padding:0;
}
/* ------------------------------------------------------------
   Paired form fields, take two.
   The "body >" discriminator failed because Gutenberg nests the
   sandbox content rather than parenting it to <body> directly.
   Distinguish on the #beri ancestor instead: it exists on the
   front end and never inside the sandbox.
     (1,2,0) pairs the fields wherever the form renders,
     (2,2,0) restores single-column on the real front end below
     900px, where #beri is an ancestor.
   ------------------------------------------------------------ */
:is(#beri,.beri-root).beri-form-wrap .f-row{grid-template-columns:1fr 1fr;gap:20px;}

@media (max-width:900px){
  #beri :is(#beri,.beri-root).beri-form-wrap .f-row{grid-template-columns:1fr;}
}
/* ------------------------------------------------------------
   Restore the design's responsive behaviour.
   The rebuilt header, strip, CTA and reference-overlay rules were
   appended after the design's media queries. Same specificity,
   later in the file, so they won at every width and the mobile
   layout silently stopped working. These re-assert it last.
   ------------------------------------------------------------ */
@media (max-width:900px){
  :is(#beri,.beri-root) .nav-links{display:none;}
  :is(#beri,.beri-root) .nav-inner,
  :is(#beri,.beri-root) .strip-inner,
  :is(#beri,.beri-root) .cta-content{padding-left:24px;padding-right:24px;}
  :is(#beri,.beri-root) .strip-inner{overflow-x:auto;flex-wrap:nowrap;}
  :is(#beri,.beri-root) .ref-overlay{
    left:20px;right:20px;bottom:20px;
    flex-direction:column;align-items:flex-start;gap:20px;
  }
  :is(#beri,.beri-root) .ref-stats{gap:24px;}
  :is(#beri,.beri-root) .cta-content{padding-top:28px;padding-bottom:28px;}
}
/* CTA banner photo: the showroom panorama replaces the dark
   blue-hour bathroom. It is a much brighter, busier image, so the
   flat 55% scrim tuned for the dark shot no longer holds white
   text. A left-weighted gradient keeps the heading legible while
   letting the right of the photo stay visible behind the button. */
:is(#beri,.beri-root) .cta-banner{
  background-image:url("/wp-content/uploads/2026/07/BeRi-Showroom-Panorama.webp");
  background-size:cover;background-position:center 60%;
}
:is(#beri,.beri-root) .cta-banner::before{
  background:linear-gradient(90deg,rgba(12,20,26,.82) 0%,rgba(12,20,26,.68) 45%,rgba(12,20,26,.45) 100%);
}
/* ------------------------------------------------------------
   CTA banner, corrected against the Figma export.
   Measured: the mockup banner's mean luminance is 92.8 and the
   supplied photo's is 91.7 - implied overlay alpha ~0. The file
   already carries its darkening, so any scrim we add stacks on
   top of one that is already there. Hence: no overlay at all.
   Banner height in the mockup is 338px, not the 230px min-height
   the reference stylesheet carried.
   ------------------------------------------------------------ */
:is(#beri,.beri-root) .cta-banner{min-height:338px;}
:is(#beri,.beri-root) .cta-banner::before{background:none;}
/* ============================================================
   FIGMA-ACCURATE TYPOGRAPHY
   The supplied beri-styles.css and the brief's token table both
   disagree with the Figma export in a dozen places (hero H1 64
   vs 78, FAQ questions 19 vs 30, header button 16 vs 24, and so
   on). Values below come from text_styles.json, the Figma REST
   dump, and are confirmed against mockup-full-page.png.
   ============================================================ */

/* Header */
:is(#beri,.beri-root) .nav-links p{font-size:20px;}
:is(#beri,.beri-root) p.phone{font-size:22px;}
:is(#beri,.beri-root) .nav-right .wp-block-button__link{font-size:24px;padding:17px 30px;}

/* Hero */
:is(#beri,.beri-root) .hero h1{font-size:78px;line-height:1.13;max-width:none;}
:is(#beri,.beri-root) .hero > .wrap > .hero-grid > .hero-copy > p{font-size:18px;max-width:560px;}
:is(#beri,.beri-root) .hero-badge p.num{font-size:28px;}
:is(#beri,.beri-root) .hero-badge p.lbl{font-size:16px;}

/* Hero photo renders at its natural ratio in the mockup, not the
   5/4.4 crop the stylesheet applied. This is what makes the hero
   716px tall instead of 501px. */
:is(#beri,.beri-root) figure.hero-img img{aspect-ratio:auto;height:auto;object-fit:contain;}

/* Trust bar */
:is(#beri,.beri-root) .trust-cell h3{font-size:30px;}
:is(#beri,.beri-root) .trust-cell p{font-size:16px;}

/* Services */
:is(#beri,.beri-root) .svc h3{font-size:30px;}
:is(#beri,.beri-root) .svc p.num{font-size:14px;}
:is(#beri,.beri-root) .svc > p:not(.num):not(.tag){font-size:16px;}

/* Why us */
:is(#beri,.beri-root) .why-item h3{font-size:30px;}

/* Reference */
:is(#beri,.beri-root) .ref-stats p.sn{font-size:38px;}

/* FAQ */
:is(#beri,.beri-root) .faq-head h2{font-size:56px;}
:is(#beri,.beri-root) .wp-block-details.faq-item summary{font-size:30px;line-height:1.25;}
:is(#beri,.beri-root) .faq-cta p{font-family:var(--serif);font-size:18px;}

/* Contact */
:is(#beri,.beri-root) .info-row p.rl{font-size:11px;}
:is(#beri,.beri-root) .info-row p.rv{font-size:22px;}
.beri-root label{font-size:11px;}
/* Section backgrounds corrected against the mockup's colour bands.
   The reference section and the CTA band both sit on --grey-bg in
   the design; the supplied stylesheet left them white. */
:is(#beri,.beri-root) .ref{background:var(--grey-bg);}
:is(#beri,.beri-root) .cta-wrap{background:var(--grey-bg);}
/* Service cards, corrected against the mockup.
   The photos are placed at their natural 337x116 proportion, not
   cropped to 16/9 - that crop was adding ~80px per grid row. The
   feature lists carry a hairline divider under each item. */
:is(#beri,.beri-root) figure.svc-img img{
  aspect-ratio:auto;height:auto;object-fit:contain;width:100%;
}
:is(#beri,.beri-root) .svc ul.wp-block-list li{
  border-bottom:1px solid var(--line);
  padding:10px 0 10px 16px;
}
/* The 16/9 crop lives on the <figure> (.svc .svc-img), which
   outranks any rule on the <img>. Clear it there so the photo
   keeps its natural 337x116 proportion as in the mockup. */
:is(#beri,.beri-root) .svc figure.svc-img{aspect-ratio:auto;height:auto;}
:is(#beri,.beri-root) .why-left figure.why-img{aspect-ratio:auto;height:auto;}
:is(#beri,.beri-root) .why-left figure.why-img img{aspect-ratio:auto;height:auto;object-fit:contain;}
/* REVERT: natural-aspect images.
   Letting the photos keep their intrinsic ratio inside the
   equal-height service grid left the cards stretched with the
   images stranded mid-card. Restoring the fixed crops, which
   were verified correct earlier. The mockup does show the photos
   uncropped and bottom-anchored, but that needs the card to be a
   flex column with the figure pushed to the end - not to be
   attempted again until image loading can be verified. */
:is(#beri,.beri-root) .svc figure.svc-img{aspect-ratio:16/9;height:auto;}
:is(#beri,.beri-root) figure.svc-img img{
  aspect-ratio:16/9;height:100%;width:100%;object-fit:cover;border-radius:var(--radius-img);
}
:is(#beri,.beri-root) .why-left figure.why-img{aspect-ratio:16/10;}
:is(#beri,.beri-root) .why-left figure.why-img img{
  aspect-ratio:16/10;height:100%;width:100%;object-fit:cover;border-radius:var(--radius-img);
}
:is(#beri,.beri-root) figure.hero-img img{
  aspect-ratio:5/4.4;height:100%;width:100%;object-fit:cover;
}
/* Hero photo: the mockup renders it at its true 534x582 portrait
   ratio, not the 5/4.4 landscape crop the stylesheet applied.
   That crop is what made the hero 501px instead of the design's
   715px. Declared as an explicit aspect-ratio rather than relying
   on the intrinsic size, so layout is identical whether or not
   the image has finished loading.
   Service cards intentionally keep their 16/9 crop - the natural
   ratio broke the equal-height grid there. */
:is(#beri,.beri-root) figure.hero-img{aspect-ratio:534/582;height:auto;overflow:hidden;border-radius:var(--radius-img);}
:is(#beri,.beri-root) figure.hero-img img{
  aspect-ratio:534/582;width:100%;height:100%;object-fit:cover;
}
/* Container width.
   In the mockup the content spans x=60..1380 at a 1440 frame:
   1320px of usable width. The supplied stylesheet used
   max-width:1320 WITH 48px padding, giving only 1224 - every
   section 96px too narrow, so text wrapped early and blocks ran
   tall. Widening the box to 1416 keeps the 48px gutter and the
   60px page margin while restoring 1320 of content. */
:is(#beri,.beri-root) .wrap,
:is(#beri,.beri-root) .nav-inner,
:is(#beri,.beri-root) .strip-inner{max-width:1416px;}
/* Service card lists: no dividers between bullets. I added those
   from a misread of the mockup - the items are plain bulleted
   lines with tighter spacing. */
:is(#beri,.beri-root) .svc ul.wp-block-list li{
  border-bottom:0;
  padding:6px 0 6px 16px;
}

/* Buttons stay fully rounded pills everywhere, including inside
   the block editor where the theme's own button radius applies. */
:is(#beri,.beri-root) .wp-block-button .wp-block-button__link,
:is(#beri,.beri-root) .wp-block-button__link.wp-element-button,
:is(#beri,.beri-root) button.btn,
.beri-root button.btn{
  border-radius:999px;
}
/* Hero headline: the three forced lines were rendering ~1.9
   line-height instead of the design's 1.13. The .l1/.l2/.l3 spans
   are display:block, so each forms its own line box and was
   inheriting a line-height from the theme rather than the
   heading. Pin it on the heading and the spans, with element +
   class weight so nothing generic outranks it. */
:is(#beri,.beri-root) .hero h1.wp-block-heading,
:is(#beri,.beri-root) .hero h1.wp-block-heading span,
:is(#beri,.beri-root) .hero h1 .l1,
:is(#beri,.beri-root) .hero h1 .l2,
:is(#beri,.beri-root) .hero h1 .l3{
  line-height:1.13;
  margin:0;
  padding:0;
  display:block;
}
/* Service card photos: short banners anchored to the bottom of
   the card, as in the mockup. Earlier I cleared the aspect-ratio
   and let the images size naturally, which stretched the cards
   and stranded the photos mid-card. The fix is to keep an
   explicit ratio AND make the card a flex column so the figure
   is pushed to the end - the cards still stretch to equal height,
   but the slack lands above the photo instead of below it. */
:is(#beri,.beri-root) .svc{display:flex;flex-direction:column;}
:is(#beri,.beri-root) .svc figure.svc-img{
  aspect-ratio:337/116;height:auto;width:100%;margin-top:auto;
}
:is(#beri,.beri-root) figure.svc-img img{
  aspect-ratio:337/116;width:100%;height:100%;object-fit:cover;
  border-radius:var(--radius-img);
}
/* "Warum BeRi" section, measured off the Figma export.
   In the mockup the four blue numbers sit at y=140/280/420/560
   relative to the section top - 140px apart - and the first one
   starts well below the eyebrow, so the list reads as offset
   against the heading rather than starting level with it.
   Mine had them 132px apart starting at y=80.
   The showroom photo is also placed at its natural 535x277
   proportion, not the 16/10 crop, which made it 57px too tall. */
:is(#beri,.beri-root) .why-list{
  gap:44px;
  padding-top:54px;
}
:is(#beri,.beri-root) .why-left figure.why-img{aspect-ratio:535/277;}
:is(#beri,.beri-root) .why-left figure.why-img img{
  aspect-ratio:535/277;width:100%;height:100%;object-fit:cover;
}
/* ------------------------------------------------------------
   BUTTONS - sizes measured from the Figma export, plus a radius
   override.
   WordPress emits an inline rule ".wp-block-button__link{
   border-radius:8px !important}" from global styles, which beat
   every scoped rule I had. Buttons were rendering as 8px
   rectangles despite the stylesheet saying 999px, so this needs
   !important to win. Measured design sizes:
     hero primary  225 x 57
     CTA banner    431 x 85 (24px type)
   ------------------------------------------------------------ */
:is(#beri,.beri-root) .wp-block-button__link,
:is(#beri,.beri-root) .wp-block-button .wp-block-button__link,
:is(#beri,.beri-root) button.btn,
.beri-root button.btn{
  border-radius:999px !important;
}

/* Hero buttons: taller pills, 57px in the design vs 48px before. */
:is(#beri,.beri-root) .hero-actions .wp-block-button__link{
  padding:20px 26px;
  font-size:16px;
  line-height:1;
}

/* CTA banner button: the design's is nearly twice the size of a
   body button - 431x85 with 24px type. */
:is(#beri,.beri-root) .cta-content .wp-block-button__link{
  font-size:24px;
  line-height:1;
  padding:30px 48px;
  min-width:431px;
  justify-content:center;
  gap:14px;
}
:is(#beri,.beri-root) .cta-content .btn-arrow > .wp-block-button__link::after{
  font-size:22px;
}
/* ------------------------------------------------------------
   THE SQUARE-BUTTON BUG.
   In the original design .btn-primary / .btn-outline / .btn-white
   were classes on the <a> itself. After the block conversion they
   sit on the wrapper <div class="wp-block-button btn-primary">,
   so the design's ".btn-primary{background:var(--blue)}" painted
   the WRAPPER - a square div - while the real <a> inside kept its
   999px radius and its own blue fill on top. The visible square
   was the wrapper showing past the rounded link.
   Strip all painting from the wrapper; the link carries the look.
   ------------------------------------------------------------ */
:is(#beri,.beri-root) .wp-block-button.btn-primary,
:is(#beri,.beri-root) .wp-block-button.btn-outline,
:is(#beri,.beri-root) .wp-block-button.btn-white,
:is(#beri,.beri-root) .wp-block-button.btn-arrow,
:is(#beri,.beri-root) .wp-block-button.btn-phone{
  background:none;
  border:0;
  padding:0;
  box-shadow:none;
  border-radius:999px;
  display:inline-flex;
}

/* Make sure the link itself carries fill, text colour and radius. */
:is(#beri,.beri-root) .btn-primary > .wp-block-button__link{background:var(--blue);color:#fff;border-color:transparent;}
:is(#beri,.beri-root) .btn-outline > .wp-block-button__link{background:transparent;border:1px solid #cdd2d7;color:var(--ink);}
:is(#beri,.beri-root) .btn-white   > .wp-block-button__link{background:#fff;color:var(--blue);border-color:transparent;}
/* CTA banner: the original stylesheet darkens the banner with
   BOTH a ::before and a ::after overlay. I only cleared ::before,
   so a 42% wash was still sitting over the photo - the design
   shows the showroom bright and unobscured, because the supplied
   image already carries its own darkening. Clear the second one. */
:is(#beri,.beri-root) .cta-banner::after{background:none;content:none;}

/* Button label is weight 400 in the Figma text styles, not 600. */
:is(#beri,.beri-root) .cta-content .wp-block-button__link{font-weight:400;}
/* Reference quote: Figma lists it at 46px weight 300 Fraunces,
   upright - not the 30px italic 400 the supplied stylesheet used.
   The wider max-width lets it break after "technisch" as in the
   design instead of after "klar,". */
:is(#beri,.beri-root) p.ref-quote{
  font-size:46px;
  font-weight:300;
  font-style:normal;
  line-height:1.15;
  max-width:580px;
}
/* Reference photo: no scrim. The supplied stylesheet darkened the
   bottom 60% with a gradient, but the Figma export shows the photo
   unobscured - the white tub at bottom right stays bright and the
   caption sits straight on it. The quote is legible because the
   vanity behind it is naturally dark. */
:is(#beri,.beri-root) .ref-visual::after{background:none;content:none;}
/* Services section, corrected against the Figma export.

   1. Divider lines under each bullet ARE in the design. They were
      removed earlier on request; the mockup shows them, so they
      are back. Flagged rather than silently reverted.
   2. The highlight card heading "Wartung & Notdienst" is blue in
      the design, not ink.
   3. Its "+ Service" tag is not uppercased in the design. */
:is(#beri,.beri-root) .svc ul.wp-block-list li{
  border-bottom:1px solid var(--line);
  padding:10px 0 10px 16px;
}
:is(#beri,.beri-root) .svc ul.wp-block-list li:last-child{border-bottom:0;}

:is(#beri,.beri-root) .svc.hl h3{color:var(--blue);}
:is(#beri,.beri-root) .svc.hl p.tag{text-transform:none;letter-spacing:0;font-size:13px;}
/* Bullet lists: the design carries a divider under EVERY item,
   including the last one before the photo. I had suppressed the
   final border. */
:is(#beri,.beri-root) .svc ul.wp-block-list li:last-child{
  border-bottom:1px solid var(--line);
}

/* Highlight card ("Wartung & Notdienst"): in the design the copy
   sits at the top of the card and the button is pushed to the
   bottom edge, rather than the whole block being centred. */
:is(#beri,.beri-root) .svc.hl{
  justify-content:flex-start;
}
:is(#beri,.beri-root) .svc.hl .wp-block-buttons{
  margin-top:auto;
}
/* Service card bullets, per direct instruction (overrides the
   mockup, which shows blue dots with dividers):
   no divider lines, and the bullet marker is dark rather than
   blue. */
:is(#beri,.beri-root) .svc ul.wp-block-list li,
:is(#beri,.beri-root) .svc ul.wp-block-list li:last-child{
  border-bottom:0;
  padding:6px 0 6px 16px;
}
:is(#beri,.beri-root) .svc ul.wp-block-list li::before{
  color:var(--ink);
}
/* Trust bar spacing, measured off the Figma export.
   The design leaves a wide gap between each card title and its
   body copy (~48px) and a tighter one between icon and title
   (~12px). The supplied stylesheet had 18px and 10px, which
   bunched the three elements together. */
:is(#beri,.beri-root) .trust-cell::before{margin-bottom:12px;}
:is(#beri,.beri-root) .trust-cell h3{margin-bottom:48px;}
/* Process section, measured against the Figma export.
   Grid columns already matched exactly (borders at 59/390/718/
   1049/1378). What differed:
     - section padding 80/80 vs the design's ~57 top / ~39 bottom
     - heading line spacing: ink-to-ink 61px in the design vs 50
       here, i.e. line-height ~1.22 not 1.1
     - cell side padding 28px vs the design's ~46px, which is why
       the body copy ran 3 lines instead of 4 */
:is(#beri,.beri-root) .proc{padding-top:57px;padding-bottom:39px;}
:is(#beri,.beri-root) .proc h2{line-height:1.22;}
:is(#beri,.beri-root) .proc-cell{padding-left:46px;padding-right:46px;}
/* Footer, measured against the Figma export.
     - footer logo renders 188x56 in the design; mine was 141x42
     - the brand paragraph is 16px there, not 14px, and wraps to
       four lines within ~330px
     - the brand column is narrower: col 2 starts at x=485 in the
       design vs 518 here, i.e. 1.42fr rather than 1.6fr */
:is(#beri,.beri-root) .foot-brand figure.foot-logo-fig img{height:56px;}
:is(#beri,.beri-root) .foot-brand p{font-size:16px;max-width:330px;}
:is(#beri,.beri-root) .foot-grid{grid-template-columns:1.42fr 1fr 1fr 1fr;}
/* Footer type scale. Measured ink heights in the Figma export:
   column headings ~20px ink (mine 11), links ~12px ink (mine 9),
   link rows 36px apart (mine 33). The whole footer is set larger
   than the supplied stylesheet assumed. Logo ink is 56px tall in
   the design, which needs a 61px element height. */
:is(#beri,.beri-root) .foot-brand figure.foot-logo-fig img{height:61px;}
:is(#beri,.beri-root) footer .foot-col h4{font-size:20px;margin-bottom:22px;}
:is(#beri,.beri-root) .foot-col p a{font-size:16px;margin-bottom:11px;}
/* FAQ, measured against the Figma export.
   Collapsed rows sit 114px apart in the design vs 95px here, so
   the summary needs ~31px vertical padding rather than 22. The
   heading block also starts 26px lower and its lines are set at
   ~1.21 rather than 1.1. Finally the design leaves only ~47px of
   grey below the CTA banner; mine left 130. */
:is(#beri,.beri-root) .faq{padding-top:106px;}
:is(#beri,.beri-root) .faq-head h2{line-height:1.21;}
:is(#beri,.beri-root) .wp-block-details.faq-item summary{padding-top:31px;padding-bottom:31px;}
:is(#beri,.beri-root) .cta-wrap{padding-bottom:47px;}
/* ============================================================
   SECTION HEIGHT RECONCILIATION
   Each value below closes a measured gap against the Figma
   export's colour bands (design height -> previous build):
     header   84 <- 97     hero    715 <- 642+
     services 1241 <- 1282 why     713 <- 703
     ref      976 <- 934   proc    566 <- 588
     faq     1266 <- 1315  contact 784 <- 740
     footer   466 <- 440
   ============================================================ */

/* header: nav row is 13px taller than the design */
:is(#beri,.beri-root) .nav-inner{padding-top:12px;padding-bottom:12px;}

/* hero: 14px short */
:is(#beri,.beri-root) .hero{padding-top:78px;}

/* services: cards run 20px tall each over two rows */
:is(#beri,.beri-root) .svc{padding:20px 30px;}

/* why: 10px short */
:is(#beri,.beri-root) .why{padding-top:85px;padding-bottom:85px;}

/* reference: 42px short below the photo */
:is(#beri,.beri-root) .ref{padding-bottom:122px;}

/* process: 22px over */
:is(#beri,.beri-root) .proc{padding-top:46px;padding-bottom:28px;}

/* faq: rows accumulate ~44px of drift over six items */
:is(#beri,.beri-root) .wp-block-details.faq-item summary{padding-top:28px;padding-bottom:28px;}
:is(#beri,.beri-root) .wp-block-details.faq-item > *:not(summary){padding-bottom:16px;}

/* contact + footer: short by 44 and 26 */
:is(#beri,.beri-root) .contact{padding-bottom:134px;}
:is(#beri,.beri-root) footer{padding-bottom:54px;}
/* ------------------------------------------------------------
   HEADER NAV + HERO BADGE, measured against the Figma export.

   Nav: word widths are 0.8x mine, i.e. 16px not 20px. I had
   misread the Figma dump - the 20px "Leistungen" entry is the
   FOOTER column heading, not the nav link. Gaps are 38px.

   Header button: 376x54 in the design (mine 288x60).

   Hero badge: the design's shrinks to its content (371px wide,
   inset 28px from the photo edge) instead of stretching the full
   width; "Jahre Erfahrung" is regular weight, not bold; and the
   fill is #2691CC - a separate documented token in colors.json,
   not the brand #0099CC.
   ------------------------------------------------------------ */
:is(#beri,.beri-root) .nav-links{gap:38px;}
:is(#beri,.beri-root) .nav-links p{font-size:16px;}
:is(#beri,.beri-root) .nav-right .wp-block-button__link{
  padding:15px 24px;min-width:376px;justify-content:center;
}

:is(#beri,.beri-root) .hero-badge{
  left:28px;
  right:auto;
  width:max-content;
  max-width:371px;
  background:#2691CC;
  padding:14px 20px;
}
:is(#beri,.beri-root) .hero-badge p.lbl b{font-weight:400;}
/* Badge label needs ~280px to break after "Privat-" as the design
   does; the 371px cap left it 266px and it wrapped a word early. */
:is(#beri,.beri-root) .hero-badge{max-width:392px;gap:15px;}
/* ------------------------------------------------------------
   CONTACT FORM, measured against the Figma export.
     input height   62px  (was 47) -> 21px vertical padding
     row gap        25px total incl. the next label (was 48), so
                    .f-row margin-bottom drops to ~2px
     textarea      160px  (was 119)
   The design also rules a divider ABOVE the first info row on the
   right, which the supplied stylesheet omitted.
   ------------------------------------------------------------ */
.beri-root input,
.beri-root textarea{padding:21px 15px;}
.beri-root .f-row{margin-bottom:2px;}
.beri-root textarea{min-height:160px;margin-bottom:12px;}
.beri-root label{margin-bottom:6px;}

:is(#beri,.beri-root) .info-row:first-child{border-top:1px solid var(--line);}
/* Contact form, take two.
   The previous block used plain ".beri-root input" (0,1,1) which
   loses to the rescoped originals ":is(#beri,.beri-root) input"
   (1,0,1) - the ID inside :is() carries ID weight. Nothing applied.
   Same scope here, placed later, so these win on the tie.
   Figma: input 62px tall, textarea 160px, rows nearly touching
   (25px from one field's bottom to the next field's top, which is
   just the label), labels 11px. */
:is(#beri,.beri-root) input,
:is(#beri,.beri-root) textarea{padding:21px 15px;}
:is(#beri,.beri-root) textarea{min-height:160px;margin-bottom:12px;}
:is(#beri,.beri-root) .f-row{margin-bottom:2px;}
:is(#beri,.beri-root) label{font-size:11px;margin-bottom:6px;}
:is(#beri,.beri-root) label.consent{font-size:14px;margin-bottom:26px;}
/* Taller fields grew the section by 18px; trim the bottom padding
   to hold the design's 784px contact band. */
:is(#beri,.beri-root) .contact{padding-bottom:116px;}
/* ------------------------------------------------------------
   HEADER CORRECTION.
   My earlier "design button = 376px wide" measurement was wrong:
   the blue-pixel scan had swallowed the phone's blue dot, which
   sits ~190px to the left of the button. Rescanning the solid
   fill alone gives 189x54. Forcing min-width:376px was squeezing
   the nav links leftwards, which is why the header looked off.

   Design header, measured:
     logo    61..204
     nav     329..848   (16px links, 38px gaps)
     phone  1004..1165  (text ink 143px wide, 14px tall -> 15px)
     button 1191..1379  (189 x 54)

   The 22px phone and 24px button came from the same Figma-dump
   mix-up as the nav: those entries belong to the contact info
   rows and the CTA banner button, not the header.
   ------------------------------------------------------------ */
:is(#beri,.beri-root) .nav-right .wp-block-button__link{
  font-size:16px;
  padding:18px 20px;
  min-width:0;
}
:is(#beri,.beri-root) p.phone{font-size:15px;}
/* Header button label is regular weight in the design, not 600. */
:is(#beri,.beri-root) .nav-right .wp-block-button__link{font-weight:400;}
/* CTA banner photo now loads from the theme folder rather than the
   media library. A url() inside a stylesheet resolves relative to
   the stylesheet, so this survives being moved to any site without
   a search-replace - the previous /wp-content/uploads/2026/07/
   path broke whenever the target site filed the upload under a
   different year/month. */
:is(#beri,.beri-root) .cta-banner{
  background-image:url("./cta-showroom.webp");
}
/* Trust bar: "Alles aus einer Hand" wraps to two lines while the
   other three titles fit on one, so their body copy started at
   different heights. Reserve two lines in every cell (30px type at
   1.1 line-height = 33px per line) so all four bodies line up. */
:is(#beri,.beri-root) .trust-cell h3{min-height:66px;}
/* Trust bar, reconciled against the Figma export.
   Measured design positions (relative to the section top):
     icon ink 102, title ink 144, body ink 223 - and all four
     bodies align at 223 regardless of title length.
   The min-height that reserves two title lines was stacking on
   top of the old 48px margin, pushing the body 23px too low, and
   the section started 20px too high. */
:is(#beri,.beri-root) .trust{padding-top:72px;padding-bottom:48px;}
:is(#beri,.beri-root) .trust-cell h3{margin-bottom:15px;}
/* The icon pseudo-element is inline-block, so its line box carries
   baseline descender space and pushed the title ~9px below the
   design. Trim the icon margin to compensate and give the space
   back at the bottom so the 380px section height holds. */
:is(#beri,.beri-root) .trust-cell::before{margin-bottom:3px;}
:is(#beri,.beri-root) .trust{padding-bottom:57px;}
/* ============================================================
   SITE NAV v3 — native Gutenberg blocks (Group/Image/Paragraph/
   Buttons), fully click-to-edit. Only the burger is Custom HTML
   (a <button> with an inline onclick toggling .nav-open on the
   header) because Gutenberg has no native mobile-menu primitive.
   Deliberately uses NEW .beri-* classes so none of the legacy
   .nav-links rules (incl. the old mobile display:none) apply.
   Collapses to the hamburger at <=1100px.
   ============================================================ */
:is(#beri,.beri-root) .beri-nav-inner{
  display:flex;align-items:center;justify-content:space-between;gap:28px;
  max-width:1416px;margin:0 auto;padding:14px 48px;
}
:is(#beri,.beri-root) .beri-logo{display:inline-flex;align-items:center;flex-shrink:0;margin:0;}
:is(#beri,.beri-root) .beri-logo img{height:42px;width:auto;display:block;}

/* desktop: the nav panel spreads its two groups (menu + phone/CTA)
   apart, and itself sits between the logo and... nothing, since
   .beri-nav-inner already space-betweens logo | panel. */
:is(#beri,.beri-root) .beri-navpanel{
  display:flex;align-items:center;justify-content:space-between;flex:1;gap:28px;
}
:is(#beri,.beri-root) .beri-menu{display:flex;align-items:center;gap:30px;}
:is(#beri,.beri-root) .beri-has-dd{position:relative;}
:is(#beri,.beri-root) .beri-top{
  font-size:16px;font-weight:400;color:var(--ink);white-space:nowrap;margin:0;
}
:is(#beri,.beri-root) .beri-top a{
  display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:none;
  line-height:1;padding:6px 0;
}
:is(#beri,.beri-root) .beri-top a:hover{color:var(--blue);}
:is(#beri,.beri-root) .beri-caret{font-size:11px;display:inline-block;transition:transform .2s ease;}
:is(#beri,.beri-root) .beri-ext{font-size:12px;opacity:.6;}

/* dropdown */
:is(#beri,.beri-root) .beri-dd{
  position:absolute;top:calc(100% + 10px);left:-14px;min-width:236px;
  padding:8px;margin:0;
  background:#fff;border:1px solid var(--line);border-radius:14px;
  box-shadow:0 16px 40px rgba(12,20,26,.14);
  display:flex;flex-direction:column;gap:2px;
  opacity:0;visibility:hidden;transform:translateY(6px);
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
  z-index:200;
}
:is(#beri,.beri-root) .beri-dd::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px;}
:is(#beri,.beri-root) .beri-has-dd:hover .beri-dd,
:is(#beri,.beri-root) .beri-has-dd:focus-within .beri-dd{opacity:1;visibility:visible;transform:translateY(0);}
:is(#beri,.beri-root) .beri-has-dd:hover .beri-caret,
:is(#beri,.beri-root) .beri-has-dd:focus-within .beri-caret{transform:rotate(180deg);}
:is(#beri,.beri-root) .beri-dd p{margin:0;}
:is(#beri,.beri-root) .beri-dd a{
  display:block;padding:11px 14px;border-radius:9px;
  font-size:15px;color:var(--ink);text-decoration:none;white-space:nowrap;
}
:is(#beri,.beri-root) .beri-dd a:hover{background:var(--grey-bg);color:var(--blue);}

/* right cluster: phone + CTA */
:is(#beri,.beri-root) .beri-nav-cta{display:flex;align-items:center;gap:22px;}
:is(#beri,.beri-root) .beri-phone{
  font-size:16px;font-weight:500;color:var(--ink);white-space:nowrap;margin:0;
}
:is(#beri,.beri-root) .beri-phone a{display:inline-flex;align-items:center;gap:9px;color:inherit;text-decoration:none;}
:is(#beri,.beri-root) .beri-phone a::before{
  content:"";width:8px;height:8px;border-radius:50%;background:var(--blue);flex-shrink:0;display:block;
}
:is(#beri,.beri-root) .beri-nav-cta .wp-block-buttons{margin:0;}
:is(#beri,.beri-root) .wp-block-button.beri-btn-b{background:none;border:0;padding:0;box-shadow:none;border-radius:999px;display:inline-flex;}
:is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link{
  background:var(--blue);color:#fff;border-color:transparent;
  font-size:16px;font-weight:600;line-height:1;
  padding:14px 26px;border-radius:999px;white-space:nowrap;
  transition:background .18s ease,transform .18s ease;
}
:is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link:hover{background:var(--blue-dark);transform:translateY(-1px);}

/* burger — Custom HTML <button>, hidden until the mobile breakpoint */
:is(#beri,.beri-root) .beri-burger{
  display:none;background:none;border:0;padding:0;cursor:pointer;
}

/* ---------------- mobile / tablet ---------------- */
@media (max-width:1100px){
  :is(#beri,.beri-root) .beri-nav-inner{padding:12px 24px;flex-wrap:wrap;}
  :is(#beri,.beri-root) .beri-burger{
    display:flex;flex-direction:column;justify-content:center;gap:6px;
    width:46px;height:40px;flex-shrink:0;
  }
  :is(#beri,.beri-root) .beri-burger span{
    display:block;width:26px;height:2px;background:var(--ink);border-radius:2px;
    margin:0 auto;transition:transform .25s ease,opacity .2s ease;
  }
  :is(#beri,.beri-root) .beri-navpanel{
    flex-direction:column;align-items:stretch;gap:0;
    order:3;width:100%;
    background:#fff;border-top:1px solid var(--line);
    padding:6px 0 22px;margin-top:0;
    max-height:0;overflow:hidden;opacity:0;visibility:hidden;
    transition:max-height .3s ease,opacity .2s ease,visibility .3s ease;
  }
  :is(#beri,.beri-root) .site-header.nav-open .beri-navpanel{
    max-height:85vh;overflow-y:auto;opacity:1;visibility:visible;
  }
  :is(#beri,.beri-root) .beri-menu{flex-direction:column;align-items:stretch;gap:0;width:100%;}
  :is(#beri,.beri-root) .beri-top{border-bottom:1px solid var(--line);}
  :is(#beri,.beri-root) .beri-top a{padding:15px 2px;font-size:18px;}
  :is(#beri,.beri-root) .beri-caret{display:none;}
  /* dropdown becomes an always-open indented sublist */
  :is(#beri,.beri-root) .beri-dd{
    position:static;opacity:1;visibility:visible;transform:none;
    border:0;box-shadow:none;border-radius:0;min-width:0;padding:0 0 10px 14px;
  }
  :is(#beri,.beri-root) .beri-dd::before{display:none;}
  :is(#beri,.beri-root) .beri-dd a{padding:9px 6px;font-size:16px;color:var(--body);}
  :is(#beri,.beri-root) .beri-dd a:hover{background:none;color:var(--blue);}
  :is(#beri,.beri-root) .beri-nav-cta{
    flex-direction:column;align-items:stretch;gap:14px;width:100%;padding-top:18px;
  }
  :is(#beri,.beri-root) .beri-phone{font-size:19px;}
  :is(#beri,.beri-root) .beri-phone a{justify-content:center;}
  :is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link{justify-content:center;padding:16px 26px;font-size:17px;display:flex;}
  /* burger -> X when open */
  :is(#beri,.beri-root) .site-header.nav-open .beri-burger span:nth-child(1){transform:translateY(8px) rotate(45deg);}
  :is(#beri,.beri-root) .site-header.nav-open .beri-burger span:nth-child(2){opacity:0;}
  :is(#beri,.beri-root) .site-header.nav-open .beri-burger span:nth-child(3){transform:translateY(-8px) rotate(-45deg);}
  :is(#beri,.beri-root) .beri-burger:focus-visible{outline:2px solid var(--blue);outline-offset:4px;border-radius:6px;}
}/* ============================================================
   MOTION PASS — scroll progress, button shine, hover life.
   Scroll-driven bits use native CSS scroll timelines (no JS).
   Written so a browser WITHOUT timeline support lands on the
   FINISHED state, never a blank one: no base rule sets
   opacity:0, and the reveal uses fill-mode `both` so a 0s
   duration snaps straight to the "to" frame.
   ============================================================ */
:is(#beri,.beri-root){scroll-behavior:smooth;}

/* ---- 1. scroll progress line under the sticky header ---- */
@keyframes beri-scrollprogress{from{transform:scaleX(0);}to{transform:scaleX(1);}}
:is(#beri,.beri-root) .site-header::after{
  content:"";position:absolute;left:0;right:0;bottom:-2px;height:3px;
  background:linear-gradient(90deg,var(--blue) 0%,#46c8ee 55%,var(--blue-dark) 100%);
  transform:scaleX(0);transform-origin:0 50%;
  box-shadow:0 0 10px rgba(0,153,204,.5);
  z-index:130;pointer-events:none;
  animation:beri-scrollprogress linear;
  animation-timeline:scroll(root block);
}

/* ---- 2. shine sweep across buttons on hover ---- */
@keyframes beri-shine{from{left:-140%;}to{left:140%;}}
:is(#beri,.beri-root) .wp-block-button__link,
:is(#beri,.beri-root) .beri-btn{position:relative;overflow:hidden;}
:is(#beri,.beri-root) .wp-block-button__link::before,
:is(#beri,.beri-root) .beri-btn::before{
  content:"";position:absolute;top:0;bottom:0;left:-140%;width:55%;
  background:linear-gradient(100deg,transparent 0%,rgba(255,255,255,.6) 50%,transparent 100%);
  transform:skewX(-18deg);pointer-events:none;
}
:is(#beri,.beri-root) .wp-block-button__link:hover::before,
:is(#beri,.beri-root) .beri-btn:hover::before{animation:beri-shine .8s ease-out;}
/* on white/outline buttons a white sweep is invisible — tint it blue */
:is(#beri,.beri-root) .btn-white > .wp-block-button__link::before,
:is(#beri,.beri-root) .btn-outline > .wp-block-button__link::before{
  background:linear-gradient(100deg,transparent 0%,rgba(0,153,204,.28) 50%,transparent 100%);
}
/* every button lifts */
:is(#beri,.beri-root) .wp-block-button__link,
:is(#beri,.beri-root) .beri-btn{
  transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease;
}
:is(#beri,.beri-root) .wp-block-button__link:hover,
:is(#beri,.beri-root) .beri-btn:hover{
  transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,153,204,.28);
}
:is(#beri,.beri-root) .wp-block-button__link:active,
:is(#beri,.beri-root) .beri-btn:active{transform:translateY(0);}
/* arrow nudges forward */
:is(#beri,.beri-root) .btn-arrow > .wp-block-button__link::after,
:is(#beri,.beri-root) .beri-btn::after{transition:transform .2s ease;}
:is(#beri,.beri-root) .btn-arrow > .wp-block-button__link:hover::after,
:is(#beri,.beri-root) .beri-btn:hover::after{transform:translateX(4px);}

/* ---- 3. nav links: underline wipes in ---- */
:is(#beri,.beri-root) .beri-menu > li > a,
:is(#beri,.beri-root) .beri-top a{
  background-image:linear-gradient(var(--blue),var(--blue));
  background-size:0% 2px;background-position:0 100%;background-repeat:no-repeat;
  transition:background-size .28s ease,color .18s ease;
}
:is(#beri,.beri-root) .beri-menu > li > a:hover,
:is(#beri,.beri-root) .beri-top a:hover{background-size:100% 2px;}
:is(#beri,.beri-root) .beri-dd a{transition:background .18s ease,color .18s ease,padding-left .18s ease;}
:is(#beri,.beri-root) .beri-dd a:hover{padding-left:20px;}
/* live dot on the phone number */
@keyframes beri-pulse{
  0%{box-shadow:0 0 0 0 rgba(0,153,204,.55);}
  70%{box-shadow:0 0 0 7px rgba(0,153,204,0);}
  100%{box-shadow:0 0 0 0 rgba(0,153,204,0);}
}
:is(#beri,.beri-root) .beri-phone::before,
:is(#beri,.beri-root) p.beri-phone::before{animation:beri-pulse 2.4s ease-out infinite;}

/* ---- 4. cards + images come alive on hover ---- */
:is(#beri,.beri-root) .svc,
:is(#beri,.beri-root) .trust-cell,
:is(#beri,.beri-root) .proc-cell{transition:transform .28s ease,box-shadow .28s ease;}
:is(#beri,.beri-root) .svc:hover,
:is(#beri,.beri-root) .trust-cell:hover,
:is(#beri,.beri-root) .proc-cell:hover{
  transform:translateY(-6px);box-shadow:0 18px 40px rgba(12,20,26,.10);
}
:is(#beri,.beri-root) figure.svc-img,
:is(#beri,.beri-root) .why-left figure.why-img,
:is(#beri,.beri-root) figure.hero-img,
:is(#beri,.beri-root) .ref-visual{overflow:hidden;}
:is(#beri,.beri-root) figure.svc-img img,
:is(#beri,.beri-root) .why-left figure.why-img img,
:is(#beri,.beri-root) figure.hero-img img,
:is(#beri,.beri-root) .ref-visual img{transition:transform .55s cubic-bezier(.2,.7,.3,1);}
:is(#beri,.beri-root) .svc:hover figure.svc-img img,
:is(#beri,.beri-root) .why-left figure.why-img:hover img,
:is(#beri,.beri-root) figure.hero-img:hover img,
:is(#beri,.beri-root) .ref-visual:hover img{transform:scale(1.06);}
/* linked service photos read as clickable */
:is(#beri,.beri-root) figure.svc-img a{display:block;cursor:pointer;}
/* blue number ticks over on card hover */
:is(#beri,.beri-root) .svc p.num{transition:color .22s ease,transform .22s ease;}
:is(#beri,.beri-root) .svc:hover p.num{color:var(--blue);transform:translateX(3px);}
/* FAQ rows */
:is(#beri,.beri-root) .wp-block-details.faq-item summary{transition:color .18s ease,padding-left .22s ease;cursor:pointer;}
:is(#beri,.beri-root) .wp-block-details.faq-item summary:hover{color:var(--blue);padding-left:6px;}
/* footer links */
:is(#beri,.beri-root) .foot-col p a{transition:color .18s ease,transform .18s ease;display:inline-block;}
:is(#beri,.beri-root) .foot-col p a:hover{color:var(--blue);transform:translateX(4px);}
/* hero badge drifts gently */
@keyframes beri-float{0%,100%{transform:translateY(0);}50%{transform:translateY(-7px);}}
:is(#beri,.beri-root) .hero-badge{animation:beri-float 5.5s ease-in-out infinite;}

/* ---- 5. sections reveal as they scroll into view ---- */
@keyframes beri-reveal{
  from{opacity:0;transform:translateY(26px);}
  to{opacity:1;transform:none;}
}
:is(#beri,.beri-root) .services .svc,
:is(#beri,.beri-root) .trust-cell,
:is(#beri,.beri-root) .why-item,
:is(#beri,.beri-root) .proc-cell,
:is(#beri,.beri-root) .wp-block-details.faq-item,
:is(#beri,.beri-root) .ref-visual,
:is(#beri,.beri-root) .cta-banner,
:is(#beri,.beri-root) .foot-col{
  animation:beri-reveal .01s linear both;
  animation-timeline:view();
  animation-range:entry 0% entry 55%;
}

/* ---- 6. respect reduced-motion ---- */
@media (prefers-reduced-motion:reduce){
  :is(#beri,.beri-root),
  :is(#beri,.beri-root) *{animation:none !important;scroll-behavior:auto;}
  :is(#beri,.beri-root) .site-header::after{transform:scaleX(1);}
  :is(#beri,.beri-root) .wp-block-button__link:hover,
  :is(#beri,.beri-root) .beri-btn:hover,
  :is(#beri,.beri-root) .svc:hover,
  :is(#beri,.beri-root) .trust-cell:hover,
  :is(#beri,.beri-root) .proc-cell:hover{transform:none;}
}
/* ------------------------------------------------------------
   HEADER HEIGHT TRIM. The bar sat too tall and the logo ate the
   left third of it. Shorter row + smaller mark, applied to both
   nav flavours (Custom HTML and native-block).
   ------------------------------------------------------------ */
:is(#beri,.beri-root) .beri-nav-inner{padding-top:8px;padding-bottom:8px;}
:is(#beri,.beri-root) .beri-logo img,
:is(#beri,.beri-root) .beri-logo figure img,
:is(#beri,.beri-root) figure.beri-logo img{height:30px;width:auto;}
:is(#beri,.beri-root) figure.beri-logo{margin:0;}
/* trim the pills so they don't re-inflate the row */
:is(#beri,.beri-root) .beri-btn,
:is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link{padding:11px 22px;font-size:15px;}
:is(#beri,.beri-root) .beri-phone,
:is(#beri,.beri-root) p.beri-phone{font-size:15px;}
@media (max-width:1100px){
  :is(#beri,.beri-root) .beri-nav-inner{padding-top:6px;padding-bottom:6px;}
  :is(#beri,.beri-root) .beri-logo img,
  :is(#beri,.beri-root) figure.beri-logo img{height:26px;}
}
/* CORRECTION: the height trim also moved the links sideways.
   The bar is a 3-way space-between (logo | menu | phone+CTA), so
   shrinking the logo and the pills changed those side widths and
   the menu drifted. Keep the SMALLER logo but reserve its original
   ~150px slot, and restore the pill/phone sizes, so the links land
   exactly where they were before the trim. Height stays reduced. */
:is(#beri,.beri-root) .beri-logo,
:is(#beri,.beri-root) figure.beri-logo{width:150px;flex:0 0 150px;}
:is(#beri,.beri-root) .beri-logo img,
:is(#beri,.beri-root) figure.beri-logo img{height:30px;width:auto;}
:is(#beri,.beri-root) .beri-btn,
:is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link{padding:14px 26px;font-size:16px;}
:is(#beri,.beri-root) .beri-phone,
:is(#beri,.beri-root) p.beri-phone{font-size:16px;}
@media (max-width:1100px){
  :is(#beri,.beri-root) .beri-logo,
  :is(#beri,.beri-root) figure.beri-logo{width:auto;flex:0 0 auto;}
}
/* TRUE CENTERING, take two.
   Absolutely positioning the menu at left:50% did centre it, but it
   left the flow — so at normal widths it overlapped the phone/CTA
   cluster on the right. That was the breakage.
   Correct approach: keep the menu IN flow and give the two side
   clusters an equal flex basis. Equal sides => the middle item is
   genuinely centred on the bar, and overlap is impossible because
   flex still reserves every item's width. Desktop only. */
@media (min-width:1101px){
  :is(#beri,.beri-root) .beri-logo,
  :is(#beri,.beri-root) figure.beri-logo{
    flex:1 1 0;width:auto;min-width:0;
    display:flex;justify-content:flex-start;align-items:center;
  }
  :is(#beri,.beri-root) .beri-menu{flex:0 0 auto;}
  :is(#beri,.beri-root) .beri-nav-cta{
    flex:1 1 0;min-width:0;justify-content:flex-end;
  }
}
/* ============================================================
   MINIPAGE SECTION LIBRARY  (.mp-*)
   Section types for the service minipages (/sanitaer/, /heizung/,
   /solar/, /wasseraufbereitung/), modelled on the reference pages:
     mp-hero   photo hero with overlaid title      (cover block)
     mp-tabs   sticky in-page anchor strip
     mp-row    alternating text|photo row          (columns block)
     mp-band   full-bleed dark chapter divider
     mp-steps  numbered step list
   All built on core blocks (cover/columns/group) so every part
   stays click-to-edit in Gutenberg.
   ============================================================ */

/* ---- hero: core cover block ---- */
:is(#beri,.beri-root) .mp-hero{
  min-height:420px;align-items:center;margin:0;
}
:is(#beri,.beri-root) .mp-hero .wp-block-cover__inner-container{
  max-width:1416px;margin:0 auto;padding:0 48px;width:100%;
}
:is(#beri,.beri-root) .mp-hero h1{
  color:#fff;font-size:64px;line-height:1.1;margin:0 0 14px;
  text-shadow:0 2px 24px rgba(0,0,0,.35);
}
:is(#beri,.beri-root) .mp-hero p{
  color:rgba(255,255,255,.92);font-size:19px;max-width:640px;margin:0;
}

/* ---- sticky in-page tab strip ---- */
:is(#beri,.beri-root) .mp-tabs{
  background:var(--white);border-bottom:1px solid var(--line);
  position:sticky;top:56px;z-index:90;
}
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner{
  max-width:1416px;margin:0 auto;padding:0 48px;
  display:flex;gap:34px;flex-wrap:wrap;
}
:is(#beri,.beri-root) .mp-tabs p{margin:0;}
:is(#beri,.beri-root) .mp-tabs a{
  display:inline-block;padding:16px 0;
  font-size:14px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--body);text-decoration:none;
  border-bottom:2px solid transparent;
  transition:color .18s ease,border-color .18s ease;
}
:is(#beri,.beri-root) .mp-tabs a:hover{color:var(--blue);border-bottom-color:var(--blue);}

/* ---- alternating content row (core columns) ---- */
:is(#beri,.beri-root) .mp-row{
  max-width:1416px;margin:0 auto;padding:78px 48px;gap:64px;align-items:center;
}
:is(#beri,.beri-root) .mp-row .mp-row-text h2{font-size:40px;line-height:1.15;margin:0 0 18px;}
:is(#beri,.beri-root) .mp-row .mp-row-text h3{font-size:30px;line-height:1.2;margin:0 0 16px;}
:is(#beri,.beri-root) .mp-row .mp-row-text p{color:var(--body);font-size:17px;line-height:1.7;margin:0 0 14px;}
:is(#beri,.beri-root) .mp-row .mp-row-text ul{margin:18px 0 0;padding:0;list-style:none;}
:is(#beri,.beri-root) .mp-row .mp-row-text ul li{
  position:relative;padding:8px 0 8px 26px;color:var(--body);font-size:16px;
  border-bottom:1px solid var(--line);
}
:is(#beri,.beri-root) .mp-row .mp-row-text ul li::before{
  content:"";position:absolute;left:4px;top:17px;
  width:8px;height:8px;border-radius:50%;background:var(--blue);
}
:is(#beri,.beri-root) .mp-row figure{margin:0;}
:is(#beri,.beri-root) .mp-row figure img{
  width:100%;height:100%;object-fit:cover;
  aspect-ratio:4/3;border-radius:var(--radius-img);display:block;
}
/* tighter rhythm when rows run back to back */
:is(#beri,.beri-root) .mp-row + .mp-row{padding-top:0;}
/* soft grey row, for visual alternation */
:is(#beri,.beri-root) .mp-row-tint{background:var(--grey-bg);}
:is(#beri,.beri-root) .mp-row-tint .mp-row{padding-top:78px;}

/* ---- dark chapter band ---- */
:is(#beri,.beri-root) .mp-band{background:var(--ink);}
:is(#beri,.beri-root) .mp-band .mp-band-inner{
  max-width:1416px;margin:0 auto;padding:34px 48px;
}
:is(#beri,.beri-root) .mp-band .eyebrow,
:is(#beri,.beri-root) .mp-band p.eyebrow{
  color:rgba(255,255,255,.6);margin-bottom:6px;
}
:is(#beri,.beri-root) .mp-band h2{color:#fff;font-size:34px;line-height:1.2;margin:0;}

/* ---- numbered steps ---- */
:is(#beri,.beri-root) .mp-steps{
  max-width:1416px;margin:0 auto;padding:70px 48px;
  display:flex;flex-direction:column;gap:26px;
}
:is(#beri,.beri-root) .mp-step{
  display:grid;grid-template-columns:44px 1fr;gap:20px;align-items:start;
}
:is(#beri,.beri-root) .mp-step .mp-step-num{
  width:36px;height:36px;border-radius:50%;
  background:var(--blue);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:15px;font-weight:600;margin:0;flex-shrink:0;
}
:is(#beri,.beri-root) .mp-step h3{font-size:24px;margin:0 0 6px;color:var(--blue);}
:is(#beri,.beri-root) .mp-step p:not(.mp-step-num){color:var(--body);font-size:16px;line-height:1.7;margin:0;}

/* ---- responsive ---- */
@media (max-width:900px){
  :is(#beri,.beri-root) .mp-hero{min-height:300px;}
  :is(#beri,.beri-root) .mp-hero h1{font-size:38px;}
  :is(#beri,.beri-root) .mp-hero p{font-size:17px;}
  :is(#beri,.beri-root) .mp-hero .wp-block-cover__inner-container,
  :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner,
  :is(#beri,.beri-root) .mp-band .mp-band-inner,
  :is(#beri,.beri-root) .mp-steps{padding-left:24px;padding-right:24px;}
  :is(#beri,.beri-root) .mp-row{padding:44px 24px;gap:30px;}
  :is(#beri,.beri-root) .mp-row + .mp-row{padding-top:0;}
  :is(#beri,.beri-root) .mp-row .mp-row-text h2{font-size:30px;}
  :is(#beri,.beri-root) .mp-band h2{font-size:26px;}
  :is(#beri,.beri-root) .mp-tabs{top:50px;}
  :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner{gap:20px;flex-wrap:nowrap;overflow-x:auto;}
  /* photo above text on narrow screens, whatever the source order */
  :is(#beri,.beri-root) .mp-row{display:flex;flex-direction:column;}
  :is(#beri,.beri-root) .mp-row .mp-row-img{order:-1;}
}
/* tab strip sticks directly under the (now shorter) header */
:is(#beri,.beri-root) .mp-tabs{top:60px;}
@media (max-width:900px){:is(#beri,.beri-root) .mp-tabs{top:52px;}}
/* ============================================================
   MINIPAGE HERO v2 — modelled on the Lion Home Service hero:
   full-bleed photo, left-weighted dark gradient, big headline,
   supporting paragraph, a ROW OF ACTION PILLS, and a white
   curved "wave" that cuts up into the section below.
   Typeface stays BeRi's Fraunces (not Lion's uppercase sans) so
   the minipage hero still matches the homepage hero.
   ============================================================ */
:is(#beri,.beri-root) .mp-hero{
  min-height:560px;align-items:center;position:relative;
}
/* left-weighted scrim instead of the cover block's flat dim, so the
   copy stays legible while the right of the photo stays visible */
:is(#beri,.beri-root) .mp-hero .wp-block-cover__background{
  background:linear-gradient(95deg,
    rgba(12,20,26,.86) 0%,
    rgba(12,20,26,.70) 42%,
    rgba(12,20,26,.32) 72%,
    rgba(12,20,26,.18) 100%) !important;
  opacity:1 !important;
}
:is(#beri,.beri-root) .mp-hero .wp-block-cover__inner-container{
  max-width:1416px;margin:0 auto;padding:40px 48px 120px;width:100%;
}
:is(#beri,.beri-root) .mp-hero h1{
  color:#fff;font-size:66px;line-height:1.08;margin:0 0 20px;max-width:15ch;
  text-shadow:0 2px 30px rgba(0,0,0,.4);
}
:is(#beri,.beri-root) .mp-hero p{
  color:rgba(255,255,255,.94);font-size:19px;line-height:1.65;
  max-width:600px;margin:0;text-shadow:0 1px 14px rgba(0,0,0,.45);
}

/* --- the action-pill row --- */
:is(#beri,.beri-root) .mp-hero-actions{
  display:flex;flex-wrap:wrap;gap:14px;margin-top:32px;
}
:is(#beri,.beri-root) .mp-hero-actions .wp-block-button{margin:0;background:none;border:0;padding:0;}
:is(#beri,.beri-root) .mp-hero-actions .wp-block-button__link{
  display:inline-flex;align-items:center;gap:10px;
  font-size:16px;font-weight:600;line-height:1;
  padding:17px 28px;border-radius:999px;white-space:nowrap;
  box-shadow:0 6px 22px rgba(0,0,0,.22);
}
/* primary = brand blue */
:is(#beri,.beri-root) .mp-pill-primary > .wp-block-button__link{
  background:var(--blue);color:#fff;border:0;
}
:is(#beri,.beri-root) .mp-pill-primary > .wp-block-button__link:hover{background:var(--blue-dark);}
/* phone + tool pills = white pills, as in the reference */
:is(#beri,.beri-root) .mp-pill-phone > .wp-block-button__link,
:is(#beri,.beri-root) .mp-pill-planner > .wp-block-button__link,
:is(#beri,.beri-root) .mp-pill-rechner > .wp-block-button__link{
  background:#fff;color:var(--ink);border:0;
}
:is(#beri,.beri-root) .mp-pill-phone > .wp-block-button__link:hover,
:is(#beri,.beri-root) .mp-pill-planner > .wp-block-button__link:hover,
:is(#beri,.beri-root) .mp-pill-rechner > .wp-block-button__link:hover{
  background:var(--blue-tint);color:var(--blue-dark);
}
/* blue dot on the phone pill, matching the header treatment */
:is(#beri,.beri-root) .mp-pill-phone > .wp-block-button__link::after{
  content:"";width:8px;height:8px;border-radius:50%;background:var(--blue);
  order:-1;flex-shrink:0;
}

/* --- white wave into the next section --- */
:is(#beri,.beri-root) .mp-hero::after{
  content:"";position:absolute;left:-6%;right:-6%;bottom:-2px;height:92px;
  background:#fff;
  border-radius:50% 50% 0 0 / 100% 100% 0 0;
  pointer-events:none;
}

@media (max-width:900px){
  :is(#beri,.beri-root) .mp-hero{min-height:440px;}
  :is(#beri,.beri-root) .mp-hero .wp-block-cover__inner-container{padding:32px 24px 84px;}
  :is(#beri,.beri-root) .mp-hero h1{font-size:36px;max-width:none;}
  :is(#beri,.beri-root) .mp-hero p{font-size:17px;}
  :is(#beri,.beri-root) .mp-hero-actions{gap:10px;margin-top:24px;}
  :is(#beri,.beri-root) .mp-hero-actions .wp-block-button__link{padding:15px 22px;font-size:15px;}
  :is(#beri,.beri-root) .mp-hero::after{height:52px;}
}
/* WAVE FIX. Two core-cover rules were killing it:
     1. .wp-block-cover__background and __inner-container both carry
        z-index:1, and my ::after had none — so the white arc painted
        UNDERNEATH the dark gradient and was invisible.
     2. core sets ".wp-block-cover::after{min-height:inherit}", which
        stretched the arc to the hero's full 560px.
   Lift it above the overlay and cancel the inherited min-height. */
:is(#beri,.beri-root) .mp-hero::after{
  z-index:2;
  min-height:0;
  display:block;
  font-size:0;
}
/* REAL WAVE. border-radius can only produce a single dome (the
   "quarter circle"). An actual multi-curve wave needs a path, so
   the arc is replaced by an inline SVG data-URI: rises left of
   centre, dips right of it, lifts again at the far edge. Still
   pure CSS — no markup change, no external asset. */
:is(#beri,.beri-root) .mp-hero::after{
  border-radius:0;
  left:0;right:0;
  height:120px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,78 C150,26 310,14 470,44 C640,76 790,110 960,100 C1130,90 1300,52 1440,38 L1440,120 L0,120 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size:100% 100%;
}
@media (max-width:900px){
  :is(#beri,.beri-root) .mp-hero::after{height:64px;}
}
/* ============================================================
   HERO POLISH — closing the gap to the Lion reference.
   Changes: heavier + larger headline, icons on the action pills,
   a lighter gradient that lets the right of the photo breathe,
   a taller/gentler wave, and a slow Ken-Burns drift on the photo.
   ============================================================ */
:is(#beri,.beri-root) .mp-hero{min-height:640px;}

/* headline with more presence — Fraunces at a heavier weight, tighter */
:is(#beri,.beri-root) .mp-hero h1{
  font-size:76px;font-weight:400;letter-spacing:-.02em;line-height:1.02;
  margin-bottom:22px;max-width:16ch;
  text-shadow:0 3px 40px rgba(0,0,0,.55);
}
:is(#beri,.beri-root) .mp-hero p{
  font-size:20px;max-width:560px;
  text-shadow:0 2px 18px rgba(0,0,0,.6);
}

/* lighter, more natural scrim: dark where the text sits, almost
   clear on the right so the photo actually reads as a photo */
:is(#beri,.beri-root) .mp-hero .wp-block-cover__background{
  background:linear-gradient(100deg,
    rgba(8,14,20,.90) 0%,
    rgba(8,14,20,.74) 34%,
    rgba(8,14,20,.40) 62%,
    rgba(8,14,20,.10) 100%) !important;
}
/* slow drift so the hero isn't a dead still */
@keyframes beri-kenburns{from{transform:scale(1);}to{transform:scale(1.08);}}
:is(#beri,.beri-root) .mp-hero .wp-block-cover__image-background{
  animation:beri-kenburns 22s ease-out forwards;
}

/* --- icons on the pills (::after + order:-1, because ::before is
       already the shine sweep). mask => icon inherits text colour. --- */
:is(#beri,.beri-root) .mp-hero-actions .wp-block-button__link::after{
  content:"";width:17px;height:17px;flex-shrink:0;order:-1;
  background-color:currentColor;border-radius:0;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:contain;mask-size:contain;
}
/* calendar */
:is(#beri,.beri-root) .mp-pill-primary > .wp-block-button__link::after{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zM5 9h14v10H5V9z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zM5 9h14v10H5V9z'/%3E%3C/svg%3E");
}
/* phone handset */
:is(#beri,.beri-root) .mp-pill-phone > .wp-block-button__link::after{
  width:16px;height:16px;background-color:var(--blue);
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.1 21 3 13.9 3 5c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.4 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.1 21 3 13.9 3 5c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.4 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E");
}
/* calculator — both tool pills (Bad-Budget Planer, Heizungsrechner) */
:is(#beri,.beri-root) .mp-pill-planner > .wp-block-button__link::after,
:is(#beri,.beri-root) .mp-pill-rechner > .wp-block-button__link::after{
  background-color:var(--blue);
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm0 4v3h10V6H7zm0 5v2h2v-2H7zm4 0v2h2v-2h-2zm4 0v2h2v-2h-2zm-8 4v2h2v-2H7zm4 0v2h2v-2h-2zm4 0v2h2v-2h-2z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm0 4v3h10V6H7zm0 5v2h2v-2H7zm4 0v2h2v-2h-2zm4 0v2h2v-2h-2zm-8 4v2h2v-2H7zm4 0v2h2v-2h-2zm4 0v2h2v-2h-2z'/%3E%3C/svg%3E");
}
/* chunkier pills, like the reference */
:is(#beri,.beri-root) .mp-hero-actions .wp-block-button__link{
  padding:18px 30px;font-size:16px;box-shadow:0 8px 28px rgba(0,0,0,.3);
}

/* taller, gentler wave */
:is(#beri,.beri-root) .mp-hero::after{
  height:150px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,104 C220,44 420,32 640,62 C840,90 1020,124 1220,112 C1320,106 1390,88 1440,74 L1440,150 L0,150 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size:100% 100%;
}
@media (max-width:900px){
  :is(#beri,.beri-root) .mp-hero{min-height:480px;}
  :is(#beri,.beri-root) .mp-hero h1{font-size:38px;max-width:none;}
  :is(#beri,.beri-root) .mp-hero p{font-size:17px;}
  :is(#beri,.beri-root) .mp-hero::after{height:70px;}
}
/* LAYERED WAVE. The Lion wave isn't one curve — it's two stacked
   shapes: a soft grey one peeking out from behind a white one.
   That offset is what gives it depth; a single flat path always
   reads as a cheap cut. Both paths live in one SVG data-URI, so
   it's still a single background with no extra requests.
   Front white curve rises left-of-centre and sinks to the right;
   the grey sits ~30px above it, visible only at the crest. */
:is(#beri,.beri-root) .mp-hero::after{
  height:190px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%23e9edf1' d='M0,78 C220,26 440,42 680,84 C920,126 1160,158 1440,130 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23f6f8fa' d='M0,96 C215,46 435,62 675,102 C915,142 1155,174 1440,148 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23ffffff' d='M0,118 C210,68 430,84 670,124 C910,164 1150,192 1440,168 L1440,200 L0,200 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size:100% 100%;
}
@media (max-width:900px){
  :is(#beri,.beri-root) .mp-hero::after{height:88px;}
}
/* WAVE, PROPERLY THIS TIME.
   Previous attempt failed three ways:
     1. amplitude was ~40 units inside a 200-unit viewBox, so once
        stretched it flattened into a diagonal line, not a wave;
     2. the three tints (#e9edf1/#f6f8fa/#fff) were within a few
        percent of each other = no visible layering;
     3. the hero's bottom padding was shorter than the wave, so it
        sliced through the action pills.
   Now: real S-curve (high at both edges, deep dip through the
   centre, ~90 of 200 units of travel), three clearly distinct
   blue-grey tints, and enough bottom padding to clear the pills. */
:is(#beri,.beri-root) .mp-hero .wp-block-cover__inner-container{
  padding-bottom:225px;
}
:is(#beri,.beri-root) .mp-hero::after{
  height:185px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%23a8cadd' d='M0,22 C240,4 470,96 720,96 C970,96 1200,14 1440,34 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23d8e9f2' d='M0,56 C240,36 470,130 720,130 C970,130 1200,48 1440,68 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23ffffff' d='M0,92 C240,70 470,164 720,164 C970,164 1200,82 1440,102 L1440,200 L0,200 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size:100% 100%;
}
@media (max-width:900px){
  :is(#beri,.beri-root) .mp-hero .wp-block-cover__inner-container{padding-bottom:120px;}
  :is(#beri,.beri-root) .mp-hero::after{height:90px;}
}
/* WAVE v4 — organic, not sinusoidal.
   v3 read as "round" because it was a textbook sine: one symmetric
   high-dip-high, every segment the same width and tension. Real
   design waves (Lion's included) are irregular — long near-flat
   runs broken by inflections of DIFFERENT widths, and the stacked
   layers are not parallel offsets of each other.
   So: 4 bezier segments per path, each a different span, starting
   almost flat on the left; and each layer hand-shifted rather than
   translated, so the gap between crests varies across the width. */
:is(#beri,.beri-root) .mp-hero::after{
  height:185px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%23a8cadd' d='M0,104 C150,100 230,58 360,48 C520,36 630,88 770,104 C910,120 1040,74 1170,52 C1290,32 1375,44 1440,58 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23d8e9f2' d='M0,130 C120,128 215,88 350,74 C505,58 645,110 785,126 C925,142 1035,100 1165,80 C1285,62 1372,70 1440,86 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23ffffff' d='M0,150 C135,148 205,110 345,96 C515,80 640,130 780,146 C920,162 1030,124 1155,102 C1275,82 1368,92 1440,108 L1440,200 L0,200 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size:100% 100%;
}
/* WAVE v5 — closer to Lion.
   v4 still wasn't it: multiple undulations across the width read as
   "wavy", but Lion's is ONE broad asymmetric dune — a long shallow
   rise from the left, a wide almost-flat crest just past centre,
   then a shorter fall to the right edge. Amplitude is restrained;
   the shape is elongated rather than bulbous (that's the "less
   round" part). Tones are near-white greys, not blue.  */
:is(#beri,.beri-root) .mp-hero::after{
  height:195px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%23d3dde5' d='M0,150 C300,138 560,88 845,80 C1085,73 1270,95 1440,112 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23eaf1f6' d='M0,162 C298,150 558,101 840,93 C1080,86 1268,107 1440,124 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23ffffff' d='M0,174 C302,162 560,113 842,105 C1082,98 1270,119 1440,136 L1440,200 L0,200 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size:100% 100%;
}
@media (max-width:900px){
  :is(#beri,.beri-root) .mp-hero::after{height:95px;}
}
/* WAVE v6 — layered blue strata, not a wave.
   Brief: keep the blues, MORE shades, LESS curve, layered and more
   complex. So: five near-straight blue bands (amplitude only ~30 of
   200 units, so they read as tilted planes rather than waves), and
   crucially they CROSS each other — consecutive layers tilt opposite
   ways, so each pair leaves a thin lens-shaped sliver of the one
   behind. That intersection is what creates the complexity; parallel
   bands would just look like stripes. Blues run deep -> pale -> white
   so the eye resolves it as depth receding into the section below. */
:is(#beri,.beri-root) .mp-hero::after{
  height:172px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%2379b5d2' d='M0,86 C480,58 980,44 1440,66 L1440,200 L0,200 Z'/%3E%3Cpath fill='%2396c6dc' d='M0,64 C420,92 1000,96 1440,72 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23b6d9ea' d='M0,106 C460,80 1020,74 1440,102 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23d6eaf5' d='M0,92 C500,118 980,122 1440,96 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23eef6fb' d='M0,132 C440,112 1000,108 1440,134 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23ffffff' d='M0,150 C520,168 960,170 1440,148 L1440,200 L0,200 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size:100% 100%;
}
@media (max-width:900px){
  :is(#beri,.beri-root) .mp-hero::after{height:86px;}
}
/* WAVE v7 — v6 with ~15% more curvature.
   Same six crossing blue strata, same crossing points and tilt
   directions (that composition was right). Only change: each
   path's control points are pushed further from its endpoints,
   which deepens the bow without moving where the layers meet —
   so it curves more but the layered structure is preserved. */
:is(#beri,.beri-root) .mp-hero::after{
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%2379b5d2' d='M0,88 C480,52 980,36 1440,66 L1440,200 L0,200 Z'/%3E%3Cpath fill='%2396c6dc' d='M0,62 C420,98 1000,103 1440,71 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23b6d9ea' d='M0,108 C460,74 1020,67 1440,103 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23d6eaf5' d='M0,90 C500,125 980,130 1440,95 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23eef6fb' d='M0,134 C440,105 1000,100 1440,136 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23ffffff' d='M0,149 C520,176 960,178 1440,147 L1440,200 L0,200 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size:100% 100%;
}
/* WAVE v8 — curve the PHOTO, put the strata underneath it.
   Until now the blue layers were painted ON TOP of a rectangular
   photo. Now the photo itself gets a curved bottom edge (via a mask
   on the cover image AND its gradient overlay), and the layered
   strata sit BELOW that edge instead of over it.
   The mask's bottom curve is the same path as the topmost strata
   layer, remapped into the mask's coordinate space, so the photo's
   edge and the first blue band meet seamlessly with no gap.
   Only the image + overlay are masked — ::after (the strata) is a
   sibling pseudo and stays unclipped. */
:is(#beri,.beri-root) .mp-hero{background-color:transparent !important;}
:is(#beri,.beri-root) .mp-hero .wp-block-cover__image-background,
:is(#beri,.beri-root) .mp-hero .wp-block-cover__background{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1000' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0,0 H1440 V820 C980,779 480,801 0,849 Z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1000' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0,0 H1440 V820 C980,779 480,801 0,849 Z'/%3E%3C/svg%3E");
  -webkit-mask-size:100% 100%;mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:top center;mask-position:top center;
}
/* WAVE v9 — restore v6 strata + give the PHOTO its own curve above them.
   Two corrections:
   1. Revert to the v6 paths (the "these are perfect" set). v7's +15%
      curvature is undone.
   2. v8's photo mask was invisible because its curve sat inside the
      172px strata band, which is opaque — so the masked-away pixels
      were hidden behind the wave regardless. The photo's curve now
      ends ABOVE the band and only dips slightly into it, so you see:
      curved photo edge -> strata tucked underneath it. */
:is(#beri,.beri-root) .mp-hero .wp-block-cover__image-background,
:is(#beri,.beri-root) .mp-hero .wp-block-cover__background{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1000' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0,0 H1440 V735 C1010,690 470,716 0,790 Z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1000' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0,0 H1440 V735 C1010,690 470,716 0,790 Z'/%3E%3C/svg%3E");
  -webkit-mask-size:100% 100%;mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:top center;mask-position:top center;
}
/* strata: exactly the v6 geometry again */
:is(#beri,.beri-root) .mp-hero::after{
  height:172px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%2379b5d2' d='M0,86 C480,58 980,44 1440,66 L1440,200 L0,200 Z'/%3E%3Cpath fill='%2396c6dc' d='M0,64 C420,92 1000,96 1440,72 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23b6d9ea' d='M0,106 C460,80 1020,74 1440,102 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23d6eaf5' d='M0,92 C500,118 980,122 1440,96 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23eef6fb' d='M0,132 C440,112 1000,108 1440,134 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23ffffff' d='M0,150 C520,168 960,170 1440,148 L1440,200 L0,200 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size:100% 100%;
}
@media (max-width:900px){
  :is(#beri,.beri-root) .mp-hero::after{height:86px;}
}
/* WAVE v10 — photo edge = the wave's own curve, lifted.
   The previous mask was a hand-drawn single bezier: one control
   pair = a dome ("half circle"), and it shared no geometry with the
   strata, so the two shapes disagreed.
   Derivation instead of guesswork: take the top strata path
   (M0,86 C480,58 980,44 1440,66 in its 200-unit band), convert it
   to page pixels (band = 172px at the foot of a 640px hero, so
   y_px = 468 + y*0.86), lift the whole thing 60px, then express it
   in the mask's 1000-unit space (x1.5625):
     (0,542) (480,518) (980,506) (1440,525)  -60px-> x1.5625
     (0,753) (480,716) (980,697) (1440,727)
   Same curve as the wave, exactly 60px above it — so the photo's
   edge and the strata are parallel and the gap never varies. */
:is(#beri,.beri-root) .mp-hero .wp-block-cover__image-background,
:is(#beri,.beri-root) .mp-hero .wp-block-cover__background{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1000' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0,0 H1440 V727 C980,697 480,716 0,753 Z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1000' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0,0 H1440 V727 C980,697 480,716 0,753 Z'/%3E%3C/svg%3E");
  -webkit-mask-size:100% 100%;mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:top center;mask-position:top center;
}
/* REVERT to v6. Dropping the photo mask entirely (v8/v9/v10) and the
   +15% curvature (v7). Back to: rectangular photo, six crossing blue
   strata painted over its foot — the version that was right. */
:is(#beri,.beri-root) .mp-hero .wp-block-cover__image-background,
:is(#beri,.beri-root) .mp-hero .wp-block-cover__background{
  -webkit-mask-image:none;mask-image:none;
}
:is(#beri,.beri-root) .mp-hero::after{
  height:172px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%2379b5d2' d='M0,86 C480,58 980,44 1440,66 L1440,200 L0,200 Z'/%3E%3Cpath fill='%2396c6dc' d='M0,64 C420,92 1000,96 1440,72 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23b6d9ea' d='M0,106 C460,80 1020,74 1440,102 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23d6eaf5' d='M0,92 C500,118 980,122 1440,96 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23eef6fb' d='M0,132 C440,112 1000,108 1440,134 L1440,200 L0,200 Z'/%3E%3Cpath fill='%23ffffff' d='M0,150 C520,168 960,170 1440,148 L1440,200 L0,200 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size:100% 100%;
}
@media (max-width:900px){
  :is(#beri,.beri-root) .mp-hero::after{height:86px;}
}
/* ============================================================
   SECTION LIBRARY II — variety blocks, from the reference set.
     .mp-collage   overlapping rounded photos + text  (Absolute Home)
     .mp-card      photo-background card w/ tint      (Bone Dry Solar)
     .mp-ctaband   full-bleed accent call band        (Ace Hardware)
     .mp-steps-split  numbered steps beside a photo   (Ace gas leak)
   All are core blocks (Cover / Columns / Group), so still editable.
   ============================================================ */

/* ---- 1. collage intro: two overlapping rounded photos ---- */
:is(#beri,.beri-root) .mp-collage{
  max-width:1416px;margin:0 auto;padding:86px 48px;gap:72px;align-items:center;
}
:is(#beri,.beri-root) .mp-collage-imgs{position:relative;padding-bottom:40px;}
:is(#beri,.beri-root) .mp-collage-imgs figure{margin:0;}
:is(#beri,.beri-root) .mp-collage-imgs figure:first-child img{
  width:100%;aspect-ratio:4/3.2;object-fit:cover;
  border-radius:120px 24px 24px 24px;display:block;
}
:is(#beri,.beri-root) .mp-collage-imgs figure:nth-child(2){
  position:absolute;right:-18px;bottom:0;width:50%;
}
:is(#beri,.beri-root) .mp-collage-imgs figure:nth-child(2) img{
  width:100%;aspect-ratio:4/2.6;object-fit:cover;
  border-radius:24px;border:9px solid #fff;display:block;
  box-shadow:0 18px 40px rgba(12,20,26,.14);
}
:is(#beri,.beri-root) .mp-collage-text .mp-place{
  display:flex;align-items:center;gap:8px;
  font-size:15px;color:var(--blue);font-weight:500;margin:0 0 14px;
}
:is(#beri,.beri-root) .mp-collage-text .mp-place::before{
  content:"";width:15px;height:19px;background-color:var(--blue);flex-shrink:0;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
:is(#beri,.beri-root) .mp-collage-text h2{font-size:46px;line-height:1.13;margin:0 0 20px;}
:is(#beri,.beri-root) .mp-collage-text h2 em{font-style:normal;color:var(--blue);}
:is(#beri,.beri-root) .mp-collage-text p{color:var(--body);font-size:17px;line-height:1.7;margin:0 0 14px;}

/* ---- 2. photo-background cards ---- */
:is(#beri,.beri-root) .mp-cards{
  max-width:1416px;margin:0 auto;padding:0 48px 20px;
}
:is(#beri,.beri-root) .mp-cards .wp-block-columns{gap:26px;margin-bottom:26px;}
:is(#beri,.beri-root) .mp-card{
  min-height:310px;justify-content:flex-start;align-items:flex-start;
  border-radius:0;margin:0;
}
:is(#beri,.beri-root) .mp-card .wp-block-cover__background{
  background:linear-gradient(180deg,rgba(11,72,99,.90) 0%,rgba(11,72,99,.80) 100%) !important;
  opacity:1 !important;
}
:is(#beri,.beri-root) .mp-card.mp-card-dark .wp-block-cover__background{
  background:linear-gradient(180deg,rgba(14,22,30,.93) 0%,rgba(14,22,30,.86) 100%) !important;
}
:is(#beri,.beri-root) .mp-card .wp-block-cover__inner-container{padding:34px 36px;}
:is(#beri,.beri-root) .mp-card h3{
  color:#fff;font-size:27px;line-height:1.2;margin:0 0 12px;
}
:is(#beri,.beri-root) .mp-card p{
  color:rgba(255,255,255,.88);font-size:15px;line-height:1.65;margin:0 0 10px;
}
:is(#beri,.beri-root) .mp-card .mp-more{
  display:inline-flex;align-items:center;gap:9px;margin-top:6px;
  font-size:13px;letter-spacing:.10em;text-transform:uppercase;
  color:#fff;text-decoration:none;font-weight:600;
}
:is(#beri,.beri-root) .mp-card .mp-more::after{content:"\2192";transition:transform .2s ease;}
:is(#beri,.beri-root) .mp-card:hover .mp-more::after{transform:translateX(5px);}
:is(#beri,.beri-root) .mp-card .wp-block-cover__image-background{transition:transform .6s cubic-bezier(.2,.7,.3,1);}
:is(#beri,.beri-root) .mp-card:hover .wp-block-cover__image-background{transform:scale(1.06);}

/* ---- 3. accent call band ---- */
:is(#beri,.beri-root) .mp-ctaband{
  background:var(--blue);text-align:center;
}
:is(#beri,.beri-root) .mp-ctaband .mp-ctaband-inner{
  max-width:1000px;margin:0 auto;padding:52px 48px;
}
:is(#beri,.beri-root) .mp-ctaband .eyebrow{color:rgba(255,255,255,.75);margin-bottom:10px;}
:is(#beri,.beri-root) .mp-ctaband h2{color:#fff;font-size:38px;line-height:1.2;margin:0 0 24px;}
:is(#beri,.beri-root) .mp-ctaband .wp-block-buttons{justify-content:center;}
:is(#beri,.beri-root) .mp-ctaband .wp-block-button__link{
  background:#fff;color:var(--blue-dark);font-weight:600;padding:16px 32px;
}
:is(#beri,.beri-root) .mp-ctaband .wp-block-button__link:hover{background:var(--blue-tint);}

/* ---- 4. numbered steps beside a photo ---- */
:is(#beri,.beri-root) .mp-steps-split{
  max-width:1416px;margin:0 auto;padding:74px 48px;gap:64px;align-items:center;
}
:is(#beri,.beri-root) .mp-steps-split .mp-steps{padding:0;max-width:none;gap:22px;}
:is(#beri,.beri-root) .mp-steps-split figure{margin:0;}
:is(#beri,.beri-root) .mp-steps-split figure img{
  width:100%;aspect-ratio:4/3.4;object-fit:cover;border-radius:var(--radius-img);display:block;
}

@media (max-width:900px){
  :is(#beri,.beri-root) .mp-collage{padding:48px 24px;gap:34px;display:flex;flex-direction:column;}
  :is(#beri,.beri-root) .mp-collage-imgs{order:-1;padding-bottom:26px;}
  :is(#beri,.beri-root) .mp-collage-imgs figure:first-child img{border-radius:70px 18px 18px 18px;}
  :is(#beri,.beri-root) .mp-collage-text h2{font-size:30px;}
  :is(#beri,.beri-root) .mp-cards{padding:0 24px 12px;}
  :is(#beri,.beri-root) .mp-cards .wp-block-columns{gap:16px;margin-bottom:16px;}
  :is(#beri,.beri-root) .mp-card{min-height:250px;}
  :is(#beri,.beri-root) .mp-card .wp-block-cover__inner-container{padding:26px 24px;}
  :is(#beri,.beri-root) .mp-ctaband .mp-ctaband-inner{padding:38px 24px;}
  :is(#beri,.beri-root) .mp-ctaband h2{font-size:26px;}
  :is(#beri,.beri-root) .mp-steps-split{padding:44px 24px;gap:30px;display:flex;flex-direction:column;}
  :is(#beri,.beri-root) .mp-steps-split figure{order:-1;}
}
/* TILES replace the tinted photo-cards.
   The .mp-card treatment (80-90% blue wash over a photo so white
   text could sit on it) made every image murky and grey — removed.
   These show the photograph at full colour with the copy in a clean
   white body underneath, so nothing is obscured. */
:is(#beri,.beri-root) .mp-cards{display:none;}
:is(#beri,.beri-root) .mp-tiles{
  max-width:1416px;margin:0 auto;padding:64px 48px 24px;
}
:is(#beri,.beri-root) .mp-tiles .wp-block-columns{gap:28px;margin-bottom:28px;align-items:stretch;}
:is(#beri,.beri-root) .mp-tiles .wp-block-column{display:flex;}
:is(#beri,.beri-root) .mp-tile{
  display:flex;flex-direction:column;width:100%;
  background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;
  transition:transform .26s ease,box-shadow .26s ease,border-color .26s ease;
}
:is(#beri,.beri-root) .mp-tile:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 44px rgba(12,20,26,.13);
  border-color:transparent;
}
:is(#beri,.beri-root) figure.mp-tile-img{margin:0;overflow:hidden;}
:is(#beri,.beri-root) figure.mp-tile-img img{
  width:100%;aspect-ratio:16/10;object-fit:cover;display:block;border-radius:0;
  transition:transform .55s cubic-bezier(.2,.7,.3,1);
}
:is(#beri,.beri-root) .mp-tile:hover figure.mp-tile-img img{transform:scale(1.06);}
:is(#beri,.beri-root) .mp-tile-body{
  padding:26px 28px 30px;display:flex;flex-direction:column;flex:1;
}
:is(#beri,.beri-root) .mp-tile-body h3{
  font-size:25px;line-height:1.22;margin:0 0 10px;color:var(--ink);
}
:is(#beri,.beri-root) .mp-tile:hover .mp-tile-body h3{color:var(--blue);}
:is(#beri,.beri-root) .mp-tile-body p{
  color:var(--body);font-size:16px;line-height:1.68;margin:0;
}
:is(#beri,.beri-root) .mp-tile-body p.mp-more{margin-top:16px;}
:is(#beri,.beri-root) .mp-tile-body p.mp-more a{
  display:inline-flex;align-items:center;gap:8px;
  font-size:13px;letter-spacing:.09em;text-transform:uppercase;font-weight:600;
  color:var(--blue);text-decoration:none;
}
:is(#beri,.beri-root) .mp-tile-body p.mp-more a::after{content:"\2192";transition:transform .2s ease;}
:is(#beri,.beri-root) .mp-tile:hover .mp-tile-body p.mp-more a::after{transform:translateX(5px);}
@media (max-width:900px){
  :is(#beri,.beri-root) .mp-tiles{padding:40px 24px 12px;}
  :is(#beri,.beri-root) .mp-tiles .wp-block-columns{gap:18px;margin-bottom:18px;}
  :is(#beri,.beri-root) .mp-tile-body{padding:20px 22px 24px;}
  :is(#beri,.beri-root) .mp-tile-body h3{font-size:22px;}
}
/* EDITORIAL LIST replaces the tile grid.
   Third approach for the services block. Not a grid of boxes at all:
   full-width horizontal rows, each a wide thumbnail beside a
   numbered heading and copy, separated by hairlines. Reads as a
   scannable index rather than a card wall, and the wider thumb
   suits landscape bathroom photos better than a square-ish tile. */
:is(#beri,.beri-root) .mp-tiles{display:none;}
:is(#beri,.beri-root) .mp-list{
  max-width:1416px;margin:0 auto;padding:56px 48px 20px;
}
:is(#beri,.beri-root) .mp-lrow{
  gap:44px;align-items:center;margin:0;
  padding:26px 22px;border-radius:14px;
  border-bottom:1px solid var(--line);
  transition:background .24s ease,transform .24s ease;
}
:is(#beri,.beri-root) .mp-lrow:last-child{border-bottom:0;}
:is(#beri,.beri-root) .mp-lrow:hover{background:#f4f9fc;transform:translateX(6px);}
:is(#beri,.beri-root) .mp-lrow-img{flex-grow:0;}
:is(#beri,.beri-root) .mp-lrow-img figure{margin:0;overflow:hidden;border-radius:10px;}
:is(#beri,.beri-root) .mp-lrow-img figure img{
  width:100%;aspect-ratio:16/10;object-fit:cover;display:block;
  transition:transform .5s cubic-bezier(.2,.7,.3,1);
}
:is(#beri,.beri-root) .mp-lrow:hover .mp-lrow-img figure img{transform:scale(1.07);}
:is(#beri,.beri-root) .mp-lrow-text p.mp-lnum{
  font-size:13px;font-weight:600;letter-spacing:.16em;
  color:var(--blue);margin:0 0 8px;
}
:is(#beri,.beri-root) .mp-lrow-text h3{
  font-size:30px;line-height:1.18;margin:0 0 10px;color:var(--ink);
  transition:color .2s ease;
}
:is(#beri,.beri-root) .mp-lrow:hover .mp-lrow-text h3{color:var(--blue);}
:is(#beri,.beri-root) .mp-lrow-text p:not(.mp-lnum){
  color:var(--body);font-size:16px;line-height:1.7;margin:0;max-width:70ch;
}
@media (max-width:900px){
  :is(#beri,.beri-root) .mp-list{padding:34px 24px 8px;}
  :is(#beri,.beri-root) .mp-lrow{
    display:flex;flex-direction:column;gap:16px;padding:22px 0;
  }
  :is(#beri,.beri-root) .mp-lrow:hover{transform:none;}
  :is(#beri,.beri-root) .mp-lrow-img{flex-basis:auto !important;width:100%;}
  :is(#beri,.beri-root) .mp-lrow-text h3{font-size:24px;}
}
/* ============================================================
   CTA GLOW — a lighter-blue light that travels around the button.
   Applied ONLY to call-to-action buttons (nav CTA, hero primary
   pill, primary buttons, CTA-banner button) — not to every button
   on the page.
   Built on the wp-block-button WRAPPER's ::before, because on the
   link itself ::before is already the shine sweep and ::after is
   the icon/arrow. A conic gradient rotating behind a blurred halo
   reads as a light travelling round the pill.
   ============================================================ */
@keyframes beri-glow-spin{to{transform:rotate(360deg);}}
@keyframes beri-glow-pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(94,200,240,.55),0 0 18px 2px rgba(94,200,240,.45);}
  50%{box-shadow:0 0 0 6px rgba(94,200,240,0),0 0 30px 8px rgba(94,200,240,.65);}
}
:is(#beri,.beri-root) .wp-block-button.btn-primary,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary,
:is(#beri,.beri-root) .cta-content .wp-block-button{
  position:relative;isolation:isolate;
}
:is(#beri,.beri-root) .wp-block-button.btn-primary::before,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b::before,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary::before,
:is(#beri,.beri-root) .cta-content .wp-block-button::before{
  content:"";position:absolute;inset:-7px;border-radius:999px;
  background:conic-gradient(from 0deg,
    rgba(94,200,240,0) 0deg,
    rgba(94,200,240,.95) 55deg,
    rgba(160,225,250,.9) 95deg,
    rgba(94,200,240,0) 165deg,
    rgba(94,200,240,0) 360deg);
  filter:blur(11px);
  opacity:.85;
  z-index:-1;
  animation:beri-glow-spin 3.4s linear infinite;
  pointer-events:none;
}
:is(#beri,.beri-root) .wp-block-button.btn-primary:hover::before,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b:hover::before,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary:hover::before,
:is(#beri,.beri-root) .cta-content .wp-block-button:hover::before{
  opacity:1;filter:blur(14px);animation-duration:1.8s;
}
/* keep the pill opaque so the halo only shows around the edge */
:is(#beri,.beri-root) .btn-primary > .wp-block-button__link,
:is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link,
:is(#beri,.beri-root) .mp-pill-primary > .wp-block-button__link,
:is(#beri,.beri-root) .cta-content .wp-block-button__link{
  position:relative;z-index:1;
}
/* the homepage nav CTA is a bare <a> (Custom HTML nav), so it has no
   wrapper to hang the conic on — give it the pulsing halo instead */
:is(#beri,.beri-root) a.beri-btn{
  animation:beri-glow-pulse 2.8s ease-in-out infinite;
}
/* CTA GLOW v2 — a small travelling dot, not a halo.
   v1 blurred a rotating conic gradient behind the pill, which read
   as a big glow bleeding outside the button. Replaced with a single
   small dot that runs around the pill itself, using a CSS motion
   path (offset-path:border-box traces the wrapper's rounded border
   box, so the dot follows the pill shape at any width).
   Gated behind @supports: where motion paths aren't available the
   dot is simply not rendered, rather than parked in a corner. */
:is(#beri,.beri-root) .wp-block-button.btn-primary::before,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b::before,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary::before,
:is(#beri,.beri-root) .cta-content .wp-block-button::before{
  content:none;
}
:is(#beri,.beri-root) a.beri-btn{animation:none;}

@keyframes beri-dot-run{to{offset-distance:100%;}}

@supports (offset-path: border-box){
  :is(#beri,.beri-root) .wp-block-button.btn-primary,
  :is(#beri,.beri-root) .wp-block-button.beri-btn-b,
  :is(#beri,.beri-root) .wp-block-button.mp-pill-primary,
  :is(#beri,.beri-root) .cta-content .wp-block-button{
    position:relative;border-radius:999px;
  }
  :is(#beri,.beri-root) .wp-block-button.btn-primary::before,
  :is(#beri,.beri-root) .wp-block-button.beri-btn-b::before,
  :is(#beri,.beri-root) .wp-block-button.mp-pill-primary::before,
  :is(#beri,.beri-root) .cta-content .wp-block-button::before{
    content:"";position:absolute;
    width:7px;height:7px;border-radius:50%;
    background:#bdeaff;
    box-shadow:0 0 6px 2px rgba(150,225,255,.95),0 0 12px 4px rgba(120,205,245,.55);
    offset-path:border-box;
    offset-distance:0%;
    offset-rotate:0deg;
    animation:beri-dot-run 3.2s linear infinite;
    z-index:3;pointer-events:none;
  }
  :is(#beri,.beri-root) .wp-block-button.btn-primary:hover::before,
  :is(#beri,.beri-root) .wp-block-button.beri-btn-b:hover::before,
  :is(#beri,.beri-root) .wp-block-button.mp-pill-primary:hover::before,
  :is(#beri,.beri-root) .cta-content .wp-block-button:hover::before{
    animation-duration:1.5s;
  }
}
/* CTA GLOW v3 — a soft light drifting INSIDE the pill, and beating.
   v2 ran a dot around the perimeter; wrong again. This is a blurred
   light-blue blob living inside the button, clipped to the pill by
   overflow+radius on the wrapper, drifting slowly left->right (7s)
   while its intensity beats (2.2s). mix-blend-mode:screen means it
   lightens the blue fill instead of sitting on top of it as a patch.
   Applied to the blue CTAs only — on the white CTA-banner button a
   screen blend would just blow out to white. */
@supports (offset-path: border-box){
  :is(#beri,.beri-root) .wp-block-button.btn-primary::before,
  :is(#beri,.beri-root) .wp-block-button.beri-btn-b::before,
  :is(#beri,.beri-root) .wp-block-button.mp-pill-primary::before,
  :is(#beri,.beri-root) .cta-content .wp-block-button::before{
    offset-path:none;animation:none;content:none;
  }
}
:is(#beri,.beri-root) .cta-content .wp-block-button::before{content:none;}

@keyframes beri-blob-drift{
  0%   {transform:translateX(-40%);}
  50%  {transform:translateX(140%);}
  100% {transform:translateX(-40%);}
}
@keyframes beri-blob-beat{
  0%,100%{opacity:.45;}
  50%    {opacity:1;}
}
:is(#beri,.beri-root) .wp-block-button.btn-primary,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary{
  position:relative;border-radius:999px;overflow:hidden;
}
:is(#beri,.beri-root) .wp-block-button.btn-primary::before,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b::before,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary::before{
  content:"";position:absolute;
  top:-60%;left:0;width:46%;height:220%;
  border-radius:50%;
  background:radial-gradient(circle,
    rgba(178,232,255,.95) 0%,
    rgba(130,208,245,.55) 42%,
    rgba(130,208,245,0) 72%);
  filter:blur(7px);
  mix-blend-mode:screen;
  animation:beri-blob-drift 7s ease-in-out infinite,
            beri-blob-beat 2.2s ease-in-out infinite;
  z-index:2;pointer-events:none;
}
/* the wrapper now clips, so the 2px hover lift would be shaved off
   the top — swap it for the shadow alone on these three */
:is(#beri,.beri-root) .btn-primary > .wp-block-button__link:hover,
:is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link:hover,
:is(#beri,.beri-root) .mp-pill-primary > .wp-block-button__link:hover{
  transform:none;
}
/* CTA GLOW v4 — smaller, behind the text, uppercase label.
   To get the glow UNDER the label the paint order had to change: the
   link was an opaque blue box, so anything behind it was hidden and
   anything in front covered the text. Fix: move the blue fill (and
   its hover state) onto the WRAPPER and make the link transparent.
   Stack is then  wrapper fill -> glow blob -> link text, so the light
   passes behind the words instead of washing over them. */
:is(#beri,.beri-root) .wp-block-button.btn-primary,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary{
  background:var(--blue);
  transition:background .18s ease,box-shadow .18s ease;
}
:is(#beri,.beri-root) .wp-block-button.btn-primary:hover,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b:hover,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary:hover{
  background:var(--blue-dark);
}
:is(#beri,.beri-root) .btn-primary > .wp-block-button__link,
:is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link,
:is(#beri,.beri-root) .mp-pill-primary > .wp-block-button__link{
  background:transparent !important;
  color:#fff;
  z-index:2;
  text-transform:uppercase;
  letter-spacing:.07em;
  font-weight:600;
}
:is(#beri,.beri-root) .btn-primary > .wp-block-button__link:hover,
:is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link:hover,
:is(#beri,.beri-root) .mp-pill-primary > .wp-block-button__link:hover{
  background:transparent !important;
}
/* smaller light, now sitting between the fill and the text */
:is(#beri,.beri-root) .wp-block-button.btn-primary::before,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b::before,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary::before{
  top:-25%;width:20%;height:150%;
  filter:blur(6px);
  mix-blend-mode:normal;
  background:radial-gradient(circle,
    rgba(190,238,255,.85) 0%,
    rgba(140,214,248,.42) 45%,
    rgba(140,214,248,0) 72%);
  z-index:1;
}
/* CTA GLOW v5 — wandering, not a straight line.
   CSS has no randomness, but you can fake it: drive the horizontal
   and vertical motion as SEPARATE properties (left / top) on two
   animations whose periods don't divide into each other — 9.3s and
   6.7s. Because they drift out of phase the combined path only
   repeats after their common multiple (~62s), so it reads as
   aimless wandering rather than a loop. Each keyframe set also uses
   uneven stops (18%, 33%, 52%...) so neither axis feels sinusoidal.
   The beat stays on its own third cycle (2.2s), independent again. */
@keyframes beri-blob-x{
  0%  {left:3%;}
  18% {left:57%;}
  33% {left:25%;}
  52% {left:74%;}
  68% {left:38%;}
  84% {left:9%;}
  100%{left:3%;}
}
@keyframes beri-blob-y{
  0%  {top:-22%;}
  22% {top:-4%;}
  41% {top:-36%;}
  59% {top:-11%;}
  77% {top:-29%;}
  100%{top:-22%;}
}
:is(#beri,.beri-root) .wp-block-button.btn-primary::before,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b::before,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary::before{
  transform:none;
  animation:beri-blob-x 9.3s ease-in-out infinite,
            beri-blob-y 6.7s ease-in-out infinite,
            beri-blob-beat 2.2s ease-in-out infinite;
}
/* CTA GLOW v6 — flatter core, 20% smaller, more vertical travel;
   and the white shine streak is switched off on these buttons.
   The "white line" was the hover shine sweep (a skewed white band
   on .wp-block-button__link::before, added in the motion pass). On a
   CTA it now collides with the glow, so it's removed there only —
   every other button keeps it. Note the shine lives on the LINK's
   ::before while the glow lives on the WRAPPER's, so killing one
   leaves the other intact. */
:is(#beri,.beri-root) .btn-primary > .wp-block-button__link::before,
:is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link::before,
:is(#beri,.beri-root) .mp-pill-primary > .wp-block-button__link::before{
  content:none;
}
/* wider vertical wander */
@keyframes beri-blob-y{
  0%  {top:-26%;}
  22% {top:2%;}
  41% {top:-32%;}
  59% {top:-4%;}
  77% {top:-22%;}
  100%{top:-26%;}
}
:is(#beri,.beri-root) .wp-block-button.btn-primary::before,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b::before,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary::before{
  width:16%;height:120%;
  filter:blur(5px);
  /* holds its brightness across the core, then falls off quickly —
     reads as an even light rather than a hotspot with a long tail */
  background:radial-gradient(circle,
    rgba(196,240,255,.72) 0%,
    rgba(186,236,255,.68) 48%,
    rgba(150,220,250,.40) 70%,
    rgba(150,220,250,0) 85%);
}
/* CTA GLOW v7 — only the core carries colour; the rest melts into
   the blue. v6's flat 68-72% plateau made the whole blob read as a
   pale patch sitting on the button. Now: a small bright core that
   falls away quickly and then trails off over a long, low-alpha
   tail, and the tail colour is pulled toward the button's own blue
   rather than toward white — so the edges dissolve into the fill
   instead of ending on a visible rim. Slightly more blur helps the
   boundary disappear. */
:is(#beri,.beri-root) .wp-block-button.btn-primary::before,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b::before,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary::before{
  filter:blur(7px);
  background:radial-gradient(circle,
    rgba(168,230,255,.62) 0%,
    rgba(140,215,250,.34) 26%,
    rgba(96,186,230,.16) 48%,
    rgba(70,170,215,.06) 68%,
    rgba(70,170,215,0) 84%);
}
/* CTA GLOW v8 — three lights, and no hover speed-up.
   Earlier versions shortened animation-duration on hover; that's
   removed so the drift stays constant whether or not you're on it.
   Two more blobs added. Only three pseudo-elements exist per button,
   so they're allocated:
       wrapper::before  blob 1  (largest)
       wrapper::after   blob 2
       link::before     blob 3  (free again since the shine was cut)
   The link's ::after is left alone — that's the hero pill icon.
   Each blob reuses the same wander keyframes but at different
   periods AND negative delays, so all three start mid-path and
   never sync with one another. */

/* kill every hover-speed rule from v1/v2 */
:is(#beri,.beri-root) .wp-block-button.btn-primary:hover::before,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b:hover::before,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary:hover::before,
:is(#beri,.beri-root) .cta-content .wp-block-button:hover::before{
  animation-duration:9.3s,6.7s,2.2s;
  filter:blur(7px);
  opacity:1;
}

/* shared look for all three lights */
:is(#beri,.beri-root) .wp-block-button.btn-primary::before,
:is(#beri,.beri-root) .wp-block-button.btn-primary::after,
:is(#beri,.beri-root) .btn-primary > .wp-block-button__link::before,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b::before,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b::after,
:is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link::before,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary::before,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary::after,
:is(#beri,.beri-root) .mp-pill-primary > .wp-block-button__link::before{
  content:"";position:absolute;border-radius:50%;
  transform:none;pointer-events:none;
  filter:blur(7px);
  background:radial-gradient(circle,
    rgba(168,230,255,.62) 0%,
    rgba(140,215,250,.34) 26%,
    rgba(96,186,230,.16) 48%,
    rgba(70,170,215,.06) 68%,
    rgba(70,170,215,0) 84%);
  z-index:1;
}

/* blob 2 — wrapper::after, a touch smaller, slower, offset in time */
:is(#beri,.beri-root) .wp-block-button.btn-primary::after,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b::after,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary::after{
  width:13%;height:105%;
  animation:beri-blob-x 11.7s ease-in-out infinite -4.2s,
            beri-blob-y 8.3s ease-in-out infinite -2.6s,
            beri-blob-beat 2.9s ease-in-out infinite -1.1s;
}

/* blob 3 — link::before, smallest and quickest across */
:is(#beri,.beri-root) .btn-primary > .wp-block-button__link::before,
:is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link::before,
:is(#beri,.beri-root) .mp-pill-primary > .wp-block-button__link::before{
  width:11%;height:95%;
  animation:beri-blob-x 7.9s ease-in-out infinite -6.4s,
            beri-blob-y 10.1s ease-in-out infinite -5.3s,
            beri-blob-beat 3.4s ease-in-out infinite -2.4s;
}
/* CTA GLOW v9 — genuinely independent paths.
   v8's three blobs all animated beri-blob-x / beri-blob-y, so they
   traced the SAME route and just started at different points — which
   is why they still drifted the same way at the same time. Now each
   blob has its own x and y keyframe set with a different number of
   waypoints, different stop percentages, and a different opening
   direction (1 starts left and heads right, 2 starts right and heads
   left, 3 starts mid and breaks left). Their beats get separate
   keyframes too, with different floors and peaks, so no two pulse
   alike. Nothing shares a period with anything else. */

/* blob 1 — opens left, 7 x-stops / 6 y-stops */
@keyframes beri-x1{0%{left:4%;}17%{left:52%;}31%{left:22%;}49%{left:71%;}66%{left:35%;}83%{left:11%;}100%{left:4%;}}
@keyframes beri-y1{0%{top:-24%;}21%{top:0%;}44%{top:-31%;}61%{top:-6%;}79%{top:-20%;}100%{top:-24%;}}
@keyframes beri-beat1{0%,100%{opacity:.45;}50%{opacity:1;}}

/* blob 2 — opens right, 8 x-stops / 7 y-stops */
@keyframes beri-x2{0%{left:70%;}14%{left:30%;}29%{left:63%;}46%{left:8%;}61%{left:44%;}78%{left:18%;}92%{left:58%;}100%{left:70%;}}
@keyframes beri-y2{0%{top:-8%;}19%{top:-30%;}37%{top:-2%;}55%{top:-26%;}72%{top:-12%;}88%{top:-34%;}100%{top:-8%;}}
@keyframes beri-beat2{0%,100%{opacity:.62;}45%{opacity:.95;}}

/* blob 3 — opens mid, 8 x-stops / 6 y-stops */
@keyframes beri-x3{0%{left:38%;}12%{left:9%;}27%{left:66%;}41%{left:47%;}58%{left:14%;}73%{left:74%;}89%{left:28%;}100%{left:38%;}}
@keyframes beri-y3{0%{top:-18%;}26%{top:-35%;}43%{top:-9%;}64%{top:1%;}81%{top:-27%;}100%{top:-18%;}}
@keyframes beri-beat3{0%,100%{opacity:.38;}55%{opacity:.9;}}

:is(#beri,.beri-root) .wp-block-button.btn-primary::before,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b::before,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary::before,
:is(#beri,.beri-root) .wp-block-button.btn-primary:hover::before,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b:hover::before,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary:hover::before{
  width:16%;height:120%;
  animation:beri-x1 9.3s ease-in-out infinite,
            beri-y1 6.7s ease-in-out infinite,
            beri-beat1 2.2s ease-in-out infinite;
}
:is(#beri,.beri-root) .wp-block-button.btn-primary::after,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b::after,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary::after{
  width:13%;height:105%;
  animation:beri-x2 12.4s cubic-bezier(.5,.05,.4,.95) infinite -3.7s,
            beri-y2 8.9s ease-in-out infinite -5.1s,
            beri-beat2 3.1s ease-in-out infinite -1.4s;
}
:is(#beri,.beri-root) .btn-primary > .wp-block-button__link::before,
:is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link::before,
:is(#beri,.beri-root) .mp-pill-primary > .wp-block-button__link::before{
  width:11%;height:95%;
  animation:beri-x3 7.6s cubic-bezier(.35,.1,.6,.9) infinite -6.2s,
            beri-y3 10.7s ease-in-out infinite -2.9s,
            beri-beat3 2.6s ease-in-out infinite -0.8s;
}
/* CTA GLOW v10 — bold label, glows 20% stronger.
   Alphas raised ~20% at every gradient stop (.62->.74, .34->.41,
   .16->.19, .06->.07) so the lights read brighter while keeping the
   same falloff shape — the core stays the only fully coloured part
   and the tail still dissolves into the button's blue. */
:is(#beri,.beri-root) .btn-primary > .wp-block-button__link,
:is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link,
:is(#beri,.beri-root) .mp-pill-primary > .wp-block-button__link{
  font-weight:700;
}
:is(#beri,.beri-root) .wp-block-button.btn-primary::before,
:is(#beri,.beri-root) .wp-block-button.btn-primary::after,
:is(#beri,.beri-root) .btn-primary > .wp-block-button__link::before,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b::before,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b::after,
:is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link::before,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary::before,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary::after,
:is(#beri,.beri-root) .mp-pill-primary > .wp-block-button__link::before{
  background:radial-gradient(circle,
    rgba(168,230,255,.74) 0%,
    rgba(140,215,250,.41) 26%,
    rgba(96,186,230,.19) 48%,
    rgba(70,170,215,.07) 68%,
    rgba(70,170,215,0) 84%);
}
/* CTA GLOW v11 — de-sync each CTA, glow +15%.
   The three blobs were independent of EACH OTHER, but every button
   carrying the same class started its animations at page load, so
   the nav CTA and the hero/primary CTAs ran in lockstep with one
   another. Fixed by giving each CTA class its own negative delays,
   so every button starts partway through its own cycle.
   The :hover selectors are restated because an earlier rule sets the
   `animation` shorthand on hover, which would otherwise reset the
   delay to 0 and make the lights jump when the cursor lands. */

/* nav CTA */
:is(#beri,.beri-root) .wp-block-button.beri-btn-b::before,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b:hover::before{animation-delay:-3.1s,-5.6s,-1.2s;}
:is(#beri,.beri-root) .wp-block-button.beri-btn-b::after{animation-delay:-8.4s,-1.9s,-2.7s;}
:is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link::before{animation-delay:-1.7s,-7.3s,-2.1s;}

/* primary buttons in the body */
:is(#beri,.beri-root) .wp-block-button.btn-primary::before,
:is(#beri,.beri-root) .wp-block-button.btn-primary:hover::before{animation-delay:-6.9s,-2.4s,-0.6s;}
:is(#beri,.beri-root) .wp-block-button.btn-primary::after{animation-delay:-2.2s,-6.8s,-2.0s;}
:is(#beri,.beri-root) .btn-primary > .wp-block-button__link::before{animation-delay:-4.8s,-3.1s,-1.5s;}

/* hero pill */
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary::before,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary:hover::before{animation-delay:-8.2s,-0.9s,-1.9s;}
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary::after{animation-delay:-5.5s,-4.3s,-0.4s;}
:is(#beri,.beri-root) .mp-pill-primary > .wp-block-button__link::before{animation-delay:-3.3s,-9.1s,-2.3s;}

/* +15% on every stop (.74->.85, .41->.47, .19->.22, .07->.08) */
:is(#beri,.beri-root) .wp-block-button.btn-primary::before,
:is(#beri,.beri-root) .wp-block-button.btn-primary::after,
:is(#beri,.beri-root) .btn-primary > .wp-block-button__link::before,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b::before,
:is(#beri,.beri-root) .wp-block-button.beri-btn-b::after,
:is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link::before,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary::before,
:is(#beri,.beri-root) .wp-block-button.mp-pill-primary::after,
:is(#beri,.beri-root) .mp-pill-primary > .wp-block-button__link::before{
  background:radial-gradient(circle,
    rgba(168,230,255,.85) 0%,
    rgba(140,215,250,.47) 26%,
    rgba(96,186,230,.22) 48%,
    rgba(70,170,215,.08) 68%,
    rgba(70,170,215,0) 84%);
}
/* ============================================================
   SCROLL SNAP + PROGRESS RAIL  (minipages only)
   TikTok-style: the page locks onto each mini-section, and a
   vertical rail on the right fills as you pass each point.
   Scoped with html:has(.mp-hero) so only minipages snap — the
   homepage keeps free scrolling.
   ============================================================ */
html:has(.mp-hero){scroll-snap-type:y mandatory;}
html:has(.mp-hero) body{overflow-x:hidden;}

:is(#beri,.beri-root) .mp-hero,
:is(#beri,.beri-root) #ueberblick,
:is(#beri,.beri-root) .mp-lrow,
:is(#beri,.beri-root) .mp-ctaband,
:is(#beri,.beri-root) #service,
:is(#beri,.beri-root) .faq,
:is(#beri,.beri-root) .cta-wrap{
  scroll-snap-align:start;
  scroll-snap-stop:always;
  scroll-margin-top:104px;   /* header + sticky tab strip */
}
/* a snap area taller than the viewport would trap the scroll, so
   let the long ones align to whichever edge is reachable */
:is(#beri,.beri-root) .faq,
:is(#beri,.beri-root) .mp-collage{scroll-snap-align:start none;}

/* ---- the rail ---- */
:is(#beri,.beri-root) .mp-rail{
  position:fixed;right:26px;top:50%;transform:translateY(-50%);
  z-index:80;pointer-events:none;
  display:flex;
}
:is(#beri,.beri-root) .mp-rail-track,
:is(#beri,.beri-root) .mp-rail-inner{
  display:flex;flex-direction:column;justify-content:space-between;
  align-items:center;height:46vh;min-height:280px;
}
/* the hairline behind the dots */
:is(#beri,.beri-root) .mp-rail-track{
  position:relative;
  background:linear-gradient(var(--line),var(--line)) center/2px 100% no-repeat;
}
:is(#beri,.beri-root) .mp-rail-track i{
  width:9px;height:9px;border-radius:50%;
  background:#fff;border:2px solid var(--line);
  display:block;position:relative;z-index:1;
}
/* the blue overlay: identical geometry, revealed top-down by a
   scroll-driven height animation. overflow:hidden on the outer box
   with a fixed-height inner keeps the dots pinned in place while
   the fill grows past them, so each dot "lights up" as it's passed */
:is(#beri,.beri-root) .mp-rail-fill{
  position:absolute;top:0;left:0;right:0;
  height:0;overflow:hidden;
  animation:beri-rail-fill linear;
  animation-timeline:scroll(root block);
}
@keyframes beri-rail-fill{from{height:0;}to{height:100%;}}
:is(#beri,.beri-root) .mp-rail-inner{
  background:linear-gradient(var(--blue),var(--blue)) center/2px 100% no-repeat;
}
:is(#beri,.beri-root) .mp-rail-inner i{
  width:9px;height:9px;border-radius:50%;
  background:var(--blue);border:2px solid var(--blue);
  display:block;box-shadow:0 0 0 4px rgba(0,153,204,.18);
}
@media (max-width:1100px){
  :is(#beri,.beri-root) .mp-rail{display:none;}
  html:has(.mp-hero){scroll-snap-type:none;}  /* no forced snap on touch */
}
@media (prefers-reduced-motion:reduce){
  html:has(.mp-hero){scroll-snap-type:none;}
}
/* ============================================================
   TAB STRIP AS PROGRESS LINE
   The tab strip becomes the progress indicator: a track runs
   through it with a point under each mini-section, and a blue fill
   sweeps left->right as you scroll, lighting each point as it
   passes. Built as two stacked copies of the strip — grey base and
   a blue duplicate revealed by an animated clip-path driven by the
   scroll timeline. clip-path (not width) so the duplicate's own
   centring/padding stays pixel-identical to the base underneath.
   The vertical rail is dropped in favour of this.
   ============================================================ */
:is(#beri,.beri-root) .mp-rail{display:none;}

:is(#beri,.beri-root) .mp-tabs{position:relative;overflow:hidden;}
/* the track */
:is(#beri,.beri-root) .mp-tabs::before{
  content:"";position:absolute;left:0;right:0;bottom:0;height:2px;
  background:var(--line);z-index:1;
}
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner{position:relative;z-index:2;}
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p{position:relative;}
/* a point under each section */
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p::after{
  content:"";position:absolute;left:50%;bottom:-5px;
  transform:translateX(-50%);
  width:10px;height:10px;border-radius:50%;
  background:#fff;border:2px solid var(--line);
  z-index:3;
}
/* the blue duplicate, revealed by scroll */
@keyframes beri-tabfill{
  from{clip-path:inset(0 100% 0 0);}
  to  {clip-path:inset(0 0 0 0);}
}
:is(#beri,.beri-root) .mp-tabs-prog{
  position:absolute;inset:0;z-index:4;pointer-events:none;
  clip-path:inset(0 100% 0 0);
  animation:beri-tabfill linear;
  animation-timeline:scroll(root block);
}
:is(#beri,.beri-root) .mp-tabs-prog::before{
  content:"";position:absolute;left:0;right:0;bottom:0;height:2px;
  background:var(--blue);
}
:is(#beri,.beri-root) .mp-tabs-prog .mp-tabs-inner{
  max-width:1416px;margin:0 auto;padding:0 48px;
  display:flex;gap:34px;flex-wrap:wrap;
}
:is(#beri,.beri-root) .mp-tabs-prog p{margin:0;position:relative;}
:is(#beri,.beri-root) .mp-tabs-prog a{
  display:inline-block;padding:16px 0;
  font-size:14px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--blue);font-weight:600;text-decoration:none;
  border-bottom:2px solid transparent;
}
:is(#beri,.beri-root) .mp-tabs-prog p::after{
  content:"";position:absolute;left:50%;bottom:-5px;
  transform:translateX(-50%);
  width:10px;height:10px;border-radius:50%;
  background:var(--blue);border:2px solid var(--blue);
  box-shadow:0 0 0 4px rgba(0,153,204,.20);
}
@media (max-width:900px){
  :is(#beri,.beri-root) .mp-tabs-prog .mp-tabs-inner{
    padding:0 24px;gap:20px;flex-wrap:nowrap;
  }
}
/* ============================================================
   SNAP FIX + CENTRED SECTIONS + PERSISTENT GRADIENT RAIL
   THE BUG: I had put `overflow-x:hidden` on <body>. That turns the
   body into its own scroll container, which (a) stops the
   scroll-snap-type declared on <html> from ever applying, and
   (b) breaks position:sticky for everything inside — so the tab
   strip scrolled away and nothing snapped. Removed; overflow-x is
   handled with `clip`, which does NOT create a scroll container.
   ============================================================ */
html:has(.mp-hero) body{overflow-x:clip;}
html:has(.mp-hero){scroll-snap-type:y mandatory;scroll-behavior:smooth;}

/* sections centre in the viewport and get room to breathe */
:is(#beri,.beri-root) #ueberblick,
:is(#beri,.beri-root) .mp-lrow,
:is(#beri,.beri-root) #service,
:is(#beri,.beri-root) .mp-ctaband{
  scroll-snap-align:center;
  scroll-snap-stop:always;
  scroll-margin-top:0;
  min-height:74vh;
  display:flex;
  align-items:center;
}
:is(#beri,.beri-root) .mp-lrow{padding:40px 22px;}
:is(#beri,.beri-root) .mp-list{padding:24px 48px;}
:is(#beri,.beri-root) .mp-ctaband{justify-content:center;}
:is(#beri,.beri-root) .mp-hero{scroll-snap-align:start;scroll-snap-stop:always;}
/* long ones must not trap the scroll */
:is(#beri,.beri-root) .faq,
:is(#beri,.beri-root) .cta-wrap{scroll-snap-align:none;}

/* ---- rail visible at all times ---- */
:is(#beri,.beri-root) .mp-tabs{
  position:sticky;top:60px;z-index:90;
  overflow:visible;              /* was hidden: it clipped the points */
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(150%) blur(8px);
  border-bottom:0;
}
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner a,
:is(#beri,.beri-root) .mp-tabs-prog a{padding:16px 0 24px;}
/* track + points now sit INSIDE the strip so nothing is cut off */
:is(#beri,.beri-root) .mp-tabs::before{
  bottom:11px;height:2px;
  background:linear-gradient(90deg,#dfe4e9,var(--line),#dfe4e9);
}
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p::after{bottom:7px;}
:is(#beri,.beri-root) .mp-tabs-prog p::after{bottom:7px;}

/* ---- gradient fill ---- */
:is(#beri,.beri-root) .mp-tabs-prog::before{
  bottom:11px;height:2px;
  background:linear-gradient(90deg,
    var(--blue-dark) 0%,
    var(--blue) 45%,
    #5ec8f0 80%,
    #9fe4ff 100%);
  box-shadow:0 0 8px rgba(0,153,204,.45);
}
:is(#beri,.beri-root) .mp-tabs-prog p::after{
  background:linear-gradient(140deg,var(--blue),#6fd2f2);
  border-color:var(--blue);
}
@media (max-width:900px){
  :is(#beri,.beri-root) #ueberblick,
  :is(#beri,.beri-root) .mp-lrow,
  :is(#beri,.beri-root) #service,
  :is(#beri,.beri-root) .mp-ctaband{min-height:auto;}
  :is(#beri,.beri-root) .mp-tabs{top:52px;}
}
/* ============================================================
   CORRECTION — I misread "centered and spaced": that was about the
   LINKS in the rail, not the page sections. So:
   1. undo the section min-height / vertical-centring from the last
      pass (snapping itself stays);
   2. centre the links in the strip and open up the spacing;
   3. retire the old thin progress line under the header — the rail
      with the points replaces it.
   ============================================================ */

/* 1. sections back to their natural height and flow */
:is(#beri,.beri-root) #ueberblick,
:is(#beri,.beri-root) .mp-lrow,
:is(#beri,.beri-root) #service,
:is(#beri,.beri-root) .mp-ctaband{
  min-height:0;
  scroll-snap-align:start;
  scroll-margin-top:112px;   /* header + rail */
}
:is(#beri,.beri-root) #ueberblick,
:is(#beri,.beri-root) .mp-lrow,
:is(#beri,.beri-root) #service{display:flex;align-items:center;}
:is(#beri,.beri-root) .mp-ctaband{display:block;}
:is(#beri,.beri-root) .mp-lrow{padding:26px 22px;}
:is(#beri,.beri-root) .mp-list{padding:56px 48px 20px;}

/* 2. links centred in the rail, wider apart */
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner,
:is(#beri,.beri-root) .mp-tabs-prog .mp-tabs-inner{
  justify-content:center;
  gap:58px;
}

/* 3. the old header progress line is now redundant */
:is(#beri,.beri-root) .site-header::after{content:none;}

@media (max-width:900px){
  :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner,
  :is(#beri,.beri-root) .mp-tabs-prog .mp-tabs-inner{
    justify-content:flex-start;gap:26px;
  }
  :is(#beri,.beri-root) .mp-lrow{display:flex;flex-direction:column;}
}
/* ============================================================
   END CAP + STRICT SNAPPING
   1. The rail gets a terminating point at the right-hand end, so
      the line reads as start -> points -> end. It fills only when
      the scroll reaches 100%.
   2. "Impossible to rest between two points": with mandatory
      snapping the browser always settles on a snap target, so the
      fix is to make sure EVERY band of the page is a target. Any
      section left out (the FAQ and CTA were) becomes a dead zone
      the scroll skips past or stalls in. All top-level sections are
      now targets with scroll-snap-stop:always, which also forbids
      flinging past one in a single gesture.
   ============================================================ */
:is(#beri,.beri-root) .mp-tabs::after{
  content:"";position:absolute;right:0;bottom:7px;
  width:10px;height:10px;border-radius:50%;
  background:#fff;border:2px solid var(--line);
  z-index:3;
}
:is(#beri,.beri-root) .mp-tabs-prog::after{
  content:"";position:absolute;right:0;bottom:7px;
  width:10px;height:10px;border-radius:50%;
  background:linear-gradient(140deg,var(--blue),#6fd2f2);
  border:2px solid var(--blue);
  box-shadow:0 0 0 4px rgba(0,153,204,.20);
  z-index:4;
}

/* every band is a snap target — no gaps to stall in */
:is(#beri,.beri-root) .mp-hero,
:is(#beri,.beri-root) #ueberblick,
:is(#beri,.beri-root) .mp-band,
:is(#beri,.beri-root) .mp-lrow,
:is(#beri,.beri-root) .mp-ctaband,
:is(#beri,.beri-root) #service,
:is(#beri,.beri-root) .faq,
:is(#beri,.beri-root) .cta-wrap,
:is(#beri,.beri-root) footer{
  scroll-snap-align:start;
  scroll-snap-stop:always;
  scroll-margin-top:112px;
}
:is(#beri,.beri-root) .mp-hero{scroll-margin-top:0;}
/* the thin dark bands are decoration — let them ride with the
   section under them rather than eating a whole scroll step */
:is(#beri,.beri-root) .mp-band{scroll-snap-align:none;}

html:has(.mp-hero){
  scroll-snap-type:y mandatory;
  scroll-behavior:smooth;
}
/* ============================================================
   BACK TO ALTERNATING ROWS — sized as snap screens.
   The editorial list is replaced by image-one-side / text-other
   rows again, because with snap scrolling each stop should be a
   self-contained screen; a list of thin rows gave the scroll
   nothing meaningful to land on. Rows alternate sides and are
   tall enough to fill the viewport between the sticky rail and
   the fold, so one swipe = one service.
   ============================================================ */
:is(#beri,.beri-root) .mp-list{display:none;}

:is(#beri,.beri-root) .mp-row{
  max-width:1416px;margin:0 auto;padding:64px 48px;gap:70px;
  align-items:center;
  min-height:calc(100vh - 112px);
  scroll-snap-align:start;
  scroll-snap-stop:always;
  scroll-margin-top:112px;
}
:is(#beri,.beri-root) .mp-row + .mp-row{padding-top:64px;}
:is(#beri,.beri-root) .mp-row .mp-row-text .eyebrow{
  color:var(--blue);font-weight:600;letter-spacing:.16em;margin-bottom:10px;
}
:is(#beri,.beri-root) .mp-row .mp-row-text h2{font-size:44px;line-height:1.13;margin:0 0 20px;}
:is(#beri,.beri-root) .mp-row .mp-row-text p{font-size:17px;line-height:1.72;margin:0 0 14px;color:var(--body);}
:is(#beri,.beri-root) .mp-row figure{margin:0;overflow:hidden;border-radius:var(--radius-img);}
:is(#beri,.beri-root) .mp-row figure img{
  width:100%;aspect-ratio:4/3.1;object-fit:cover;display:block;
  transition:transform .6s cubic-bezier(.2,.7,.3,1);
}
:is(#beri,.beri-root) .mp-row figure:hover img{transform:scale(1.05);}

@media (max-width:900px){
  :is(#beri,.beri-root) .mp-row{
    min-height:0;padding:44px 24px;gap:28px;
    display:flex;flex-direction:column;
  }
  :is(#beri,.beri-root) .mp-row .mp-row-img{order:-1;}
  :is(#beri,.beri-root) .mp-row .mp-row-text h2{font-size:29px;}
}
/* rail: points distributed evenly across the line, not clustered
   in the middle. space-evenly rather than space-between so the
   first and last labels keep clearance from the strip edges — the
   end cap sits out at the far right as the terminus. */
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner,
:is(#beri,.beri-root) .mp-tabs-prog .mp-tabs-inner{
  justify-content:space-evenly;
  gap:0;
  padding-left:60px;
  padding-right:60px;
}
@media (max-width:900px){
  :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner,
  :is(#beri,.beri-root) .mp-tabs-prog .mp-tabs-inner{
    justify-content:flex-start;gap:24px;
    padding-left:24px;padding-right:24px;
  }
}
/* ============================================================
   RAIL: START CAP + END CAP AS REAL POINTS, AND LABEL SPACING
   Both terminals are now drawn by the TRACK pseudo-element itself
   as two radial-gradient dots pinned to its left and right ends,
   rather than as separate elements. One pseudo carries line + both
   caps, which matters for the fill: because the blue copy uses the
   same construction, the start cap lights the moment you begin
   scrolling and the end cap only lights at 100%.
   Labels also get nowrap and a minimum gap — with space-evenly and
   gap:0 the longer German words were running into each other.
   ============================================================ */
:is(#beri,.beri-root) .mp-tabs::after{content:none;}      /* superseded */
:is(#beri,.beri-root) .mp-tabs-prog::after{content:none;}

:is(#beri,.beri-root) .mp-tabs::before{
  content:"";position:absolute;left:0;right:0;bottom:6px;height:12px;
  z-index:1;
  background:
    radial-gradient(circle at center, #fff 0 3px, var(--line) 3px 5px, transparent 5px) left center/12px 12px no-repeat,
    radial-gradient(circle at center, #fff 0 3px, var(--line) 3px 5px, transparent 5px) right center/12px 12px no-repeat,
    linear-gradient(var(--line),var(--line)) center/100% 2px no-repeat;
}
:is(#beri,.beri-root) .mp-tabs-prog::before{
  content:"";position:absolute;left:0;right:0;bottom:6px;height:12px;
  z-index:1;
  background:
    radial-gradient(circle at center, var(--blue) 0 5px, transparent 5px) left center/12px 12px no-repeat,
    radial-gradient(circle at center, #5ec8f0 0 5px, transparent 5px) right center/12px 12px no-repeat,
    linear-gradient(90deg,var(--blue-dark) 0%,var(--blue) 45%,#5ec8f0 80%,#9fe4ff 100%) center/100% 2px no-repeat;
  filter:drop-shadow(0 0 5px rgba(0,153,204,.45));
}
/* section points sit on the same baseline as the caps */
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p::after,
:is(#beri,.beri-root) .mp-tabs-prog p::after{bottom:7px;}

/* labels: never wrap, never touch */
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner,
:is(#beri,.beri-root) .mp-tabs-prog .mp-tabs-inner{
  gap:18px;flex-wrap:nowrap;
}
:is(#beri,.beri-root) .mp-tabs a,
:is(#beri,.beri-root) .mp-tabs-prog a{white-space:nowrap;}
@media (max-width:1200px){
  :is(#beri,.beri-root) .mp-tabs a,
  :is(#beri,.beri-root) .mp-tabs-prog a{font-size:13px;letter-spacing:.04em;}
}
/* ============================================================
   RAIL FIXES
   a) THE WEIRD TEXT: the blue overlay was font-weight:600 while the
      grey base underneath was 400. Different weight = different
      glyph widths, so the two copies didn't sit exactly on top of
      each other and the labels looked doubled/blurred. Both are
      now the same weight — only the colour differs.
   b) No glow on the line (drop-shadow removed).
   c) The line no longer spans the viewport: it's drawn on
      .mp-tabs-inner, so it starts and ends with the content column.
   d) The fill is handed to JS so each point lights when its section
      is actually reached — a scroll-timeline fill is linear across
      total page height, which never lines up with sections of
      unequal height. Timeline animation stays as a no-JS fallback.
   ============================================================ */
:is(#beri,.beri-root) .mp-tabs::before,
:is(#beri,.beri-root) .mp-tabs-prog::before{content:none;}

:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner,
:is(#beri,.beri-root) .mp-tabs-prog .mp-tabs-inner{position:relative;}

/* track + both caps, confined to the content column */
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::before{
  content:"";position:absolute;left:0;right:0;bottom:6px;height:12px;z-index:0;
  background:
    radial-gradient(circle at center,#fff 0 3px,var(--line) 3px 5px,transparent 5px) left center/12px 12px no-repeat,
    radial-gradient(circle at center,#fff 0 3px,var(--line) 3px 5px,transparent 5px) right center/12px 12px no-repeat,
    linear-gradient(var(--line),var(--line)) center/100% 2px no-repeat;
}
:is(#beri,.beri-root) .mp-tabs-prog .mp-tabs-inner::before{
  content:"";position:absolute;left:0;right:0;bottom:6px;height:12px;z-index:0;
  background:
    radial-gradient(circle at center,var(--blue) 0 5px,transparent 5px) left center/12px 12px no-repeat,
    radial-gradient(circle at center,#5ec8f0 0 5px,transparent 5px) right center/12px 12px no-repeat,
    linear-gradient(90deg,var(--blue-dark),var(--blue) 55%,#5ec8f0) center/100% 2px no-repeat;
  filter:none;                      /* no glow */
}
/* identical typography in both layers so they register exactly */
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner a,
:is(#beri,.beri-root) .mp-tabs-prog a{
  font-weight:600;
  font-size:14px;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:16px 0 24px;
  border-bottom:0;
  white-space:nowrap;
  text-decoration:none;
}
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner a{color:var(--body);}
:is(#beri,.beri-root) .mp-tabs-prog a{color:var(--blue-dark);}
/* points sit above the track */
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p::after,
:is(#beri,.beri-root) .mp-tabs-prog p::after{bottom:7px;z-index:2;}
:is(#beri,.beri-root) .mp-tabs-prog p::after{box-shadow:none;}

/* JS drives the fill; keep the timeline version only as fallback */
:is(#beri,.beri-root) .mp-tabs-prog{transition:clip-path .22s ease;}
html.beri-railjs :is(#beri,.beri-root) .mp-tabs-prog{animation:none;}
/* ============================================================
   HARD SNAP + COLOURED POINTS
   WHY HALFWAY WAS STILL POSSIBLE: per spec, when a snap area is
   TALLER than the viewport the browser deliberately relaxes
   snapping inside it — otherwise the overflowing content would be
   unreachable. My rows used min-height, so once padding + content
   pushed them past 100vh they became free-scroll zones.
   Fix: the service rows get a FIXED height of exactly one viewport
   minus the header+rail, and their media is capped so nothing
   overflows. A section that fits the snapport cannot be parked
   halfway.
   ============================================================ */
:is(#beri,.beri-root) .mp-row{
  height:calc(100vh - 112px);
  min-height:0;
  padding:28px 48px;
  gap:56px;
  overflow:hidden;
}
:is(#beri,.beri-root) .mp-row figure img{
  max-height:calc(100vh - 240px);
  aspect-ratio:auto;
  height:auto;
}
:is(#beri,.beri-root) .mp-row .mp-row-text h2{font-size:38px;margin-bottom:14px;}
:is(#beri,.beri-root) .mp-row .mp-row-text p{font-size:16px;margin-bottom:10px;}
:is(#beri,.beri-root) .mp-row .mp-row-text ul{margin-top:12px;}
:is(#beri,.beri-root) #ueberblick,
:is(#beri,.beri-root) #service{
  min-height:calc(100vh - 112px);
}

/* ---- points carry colour in BOTH states ---- */
/* unreached: soft blue, not white/grey */
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p::after{
  background:#d3e7f2;
  border:2px solid #a9cfe3;
}
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::before{
  background:
    radial-gradient(circle at center,#d3e7f2 0 3px,#a9cfe3 3px 5px,transparent 5px) left center/12px 12px no-repeat,
    radial-gradient(circle at center,#d3e7f2 0 3px,#a9cfe3 3px 5px,transparent 5px) right center/12px 12px no-repeat,
    linear-gradient(#c8dceb,#c8dceb) center/100% 2px no-repeat;
}
/* reached: solid brand blue */
:is(#beri,.beri-root) .mp-tabs-prog p::after{
  background:var(--blue);
  border:2px solid var(--blue-dark);
}

@media (max-width:900px){
  :is(#beri,.beri-root) .mp-row{height:auto;overflow:visible;padding:40px 24px;}
  :is(#beri,.beri-root) .mp-row figure img{max-height:none;}
  :is(#beri,.beri-root) #ueberblick,
  :is(#beri,.beri-root) #service{min-height:0;}
}
/* gradient restored on BOTH lines — I flattened the track to plain
   light blue when colouring the dots, which wasn't asked for.
   Track: a soft blue gradient. Fill: the full brand gradient. */
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::before{
  background:
    radial-gradient(circle at center,#d3e7f2 0 3px,#a9cfe3 3px 5px,transparent 5px) left center/12px 12px no-repeat,
    radial-gradient(circle at center,#d3e7f2 0 3px,#a9cfe3 3px 5px,transparent 5px) right center/12px 12px no-repeat,
    linear-gradient(90deg,#bcd6e6 0%,#cfe3ef 50%,#bcd6e6 100%) center/100% 2px no-repeat;
}
:is(#beri,.beri-root) .mp-tabs-prog .mp-tabs-inner::before{
  background:
    radial-gradient(circle at center,var(--blue-dark) 0 5px,transparent 5px) left center/12px 12px no-repeat,
    radial-gradient(circle at center,#5ec8f0 0 5px,transparent 5px) right center/12px 12px no-repeat,
    linear-gradient(90deg,var(--blue-dark) 0%,var(--blue) 45%,#5ec8f0 78%,#9fe4ff 100%) center/100% 2px no-repeat;
  filter:none;
}
/* ============================================================
   ONE POINT = ONE STOP  (the actual root cause)
   The page had ~13 snap stops but the rail only listed 6 points,
   so scrolling kept landing on sections with no point and the fill
   had nothing correct to indicate — hence "extra sections" and
   points that didn't match where you were.
   Two rules now hold:
     1. the ONLY snap stops are the 8 sections the rail names
        (+ hero as the start cap and footer as the end cap);
     2. every one of those 8 is EXACTLY one viewport tall, so equal
        scroll distance per stop maps 1:1 onto the evenly-spaced
        points. Unequal heights are why evenly-spaced points could
        never line up before.
   ============================================================ */

/* --- only these snap --- */
:is(#beri,.beri-root) .mp-hero,
:is(#beri,.beri-root) #ueberblick,
:is(#beri,.beri-root) .mp-row,
:is(#beri,.beri-root) #service,
:is(#beri,.beri-root) .faq,
:is(#beri,.beri-root) footer{
  scroll-snap-align:start;
  scroll-snap-stop:always;
  scroll-margin-top:112px;
}
:is(#beri,.beri-root) .mp-hero{scroll-margin-top:0;}
/* everything else must NOT create a stop */
:is(#beri,.beri-root) .mp-band,
:is(#beri,.beri-root) .mp-ctaband,
:is(#beri,.beri-root) .cta-wrap,
:is(#beri,.beri-root) .mp-list,
:is(#beri,.beri-root) .mp-tiles,
:is(#beri,.beri-root) .mp-cards{scroll-snap-align:none;}

/* --- equal height: one viewport per stop --- */
:is(#beri,.beri-root) #ueberblick,
:is(#beri,.beri-root) .mp-row,
:is(#beri,.beri-root) #service,
:is(#beri,.beri-root) .faq{
  height:calc(100vh - 112px);
  min-height:0;
  overflow:hidden;
  display:flex;
  align-items:center;
}
:is(#beri,.beri-root) .faq{padding:0;flex-direction:column;justify-content:center;}
:is(#beri,.beri-root) .faq > .wrap{width:100%;}
:is(#beri,.beri-root) .faq .faq-head{margin-bottom:18px;}
:is(#beri,.beri-root) .faq .faq-head h2{font-size:38px;}
:is(#beri,.beri-root) .wp-block-details.faq-item summary{
  font-size:20px;padding-top:16px;padding-bottom:16px;
}
:is(#beri,.beri-root) #service{padding-top:0;padding-bottom:0;}

/* --- 8 labels have to fit on one line --- */
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner,
:is(#beri,.beri-root) .mp-tabs-prog .mp-tabs-inner{
  padding-left:40px;padding-right:40px;gap:10px;
}
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner a,
:is(#beri,.beri-root) .mp-tabs-prog a{font-size:12px;letter-spacing:.05em;}
@media (max-width:1300px){
  :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner a,
  :is(#beri,.beri-root) .mp-tabs-prog a{font-size:11px;letter-spacing:.02em;}
}
@media (max-width:900px){
  :is(#beri,.beri-root) #ueberblick,
  :is(#beri,.beri-root) .mp-row,
  :is(#beri,.beri-root) #service,
  :is(#beri,.beri-root) .faq{height:auto;overflow:visible;display:block;}
  :is(#beri,.beri-root) .mp-row{display:flex;flex-direction:column;}
}
/* ============================================================
   RAIL v2 — one strip, equal slots, state by class.
   TWO FIXES:
   a) "space evenly" = the LABELS. With justify-content:space-evenly
      the GAPS were equal but the labels aren't the same width
      ("Modernisierung" vs "FAQ"), so the dots under them were NOT
      evenly spaced. Each item now gets flex:1 1 0 with centred text,
      i.e. an equal-width slot — so the points are truly evenly
      distributed and map 1:1 onto the equal-height sections.
   b) The blue duplicate strip is gone. It caused the doubled text
      and every alignment mismatch, and a clip-path could only ever
      half-cover the active label. Now there is ONE strip; the fill
      is a single bar sized in px to land exactly on the current
      point, and the labels/dots colour themselves via .is-done /
      .is-current classes. Tapping Überblick fills to Überblick.
   ============================================================ */
:is(#beri,.beri-root) .mp-tabs-prog{display:none !important;}

:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner{
  position:relative;
  display:flex;
  justify-content:flex-start;
  gap:0;
  padding-left:40px;padding-right:40px;
  flex-wrap:nowrap;
}
/* equal-width slots => evenly spaced points */
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p{
  flex:1 1 0;min-width:0;text-align:center;position:relative;margin:0;
}
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner a{
  display:inline-block;padding:16px 0 24px;
  font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;
  color:var(--body);text-decoration:none;white-space:nowrap;
  transition:color .2s ease;
}

/* track: line + start cap (::before) and end cap (::after) */
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::before{
  content:"";position:absolute;left:0;right:0;bottom:6px;height:12px;z-index:0;
  background:
    radial-gradient(circle at center,#d3e7f2 0 3px,#a9cfe3 3px 5px,transparent 5px) left center/12px 12px no-repeat,
    linear-gradient(90deg,#bcd6e6,#cfe3ef 50%,#bcd6e6) center/100% 2px no-repeat;
}
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::after{
  content:"";position:absolute;right:0;bottom:6px;width:12px;height:12px;z-index:2;
  background:radial-gradient(circle at center,#d3e7f2 0 3px,#a9cfe3 3px 5px,transparent 5px) center/12px 12px no-repeat;
}
:is(#beri,.beri-root) .mp-tabs.is-end .mp-tabs-inner::after{
  background:radial-gradient(circle at center,#5ec8f0 0 5px,transparent 5px) center/12px 12px no-repeat;
}

/* the fill bar — width set in px by the script */
:is(#beri,.beri-root) .mp-tabs-fill{
  position:absolute;left:0;bottom:6px;height:12px;width:0;
  z-index:1;pointer-events:none;
  background:
    radial-gradient(circle at center,var(--blue-dark) 0 5px,transparent 5px) left center/12px 12px no-repeat,
    linear-gradient(90deg,var(--blue-dark),var(--blue) 60%,#5ec8f0) center/100% 2px no-repeat;
  transition:width .26s cubic-bezier(.4,0,.2,1);
}

/* point states */
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p::after{
  content:"";position:absolute;left:50%;bottom:7px;transform:translateX(-50%);
  width:10px;height:10px;border-radius:50%;
  background:#d3e7f2;border:2px solid #a9cfe3;
  z-index:3;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
}
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p.is-done::after{
  background:var(--blue);border-color:var(--blue-dark);
}
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p.is-current::after{
  background:var(--blue);border-color:var(--blue-dark);
  box-shadow:0 0 0 5px rgba(0,153,204,.20);
}
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p.is-done a{color:var(--blue);}
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p.is-current a{color:var(--blue-dark);}
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner a:hover{color:var(--blue);}

@media (max-width:1300px){
  :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner a{font-size:11px;letter-spacing:.02em;}
}
@media (max-width:900px){
  :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner{
    padding-left:24px;padding-right:24px;overflow-x:auto;
  }
  :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p{flex:0 0 auto;padding:0 14px;}
}
/* rail: the bar is a DISCRETE indicator, not a measurement of page
   height. It is given the slot centre of the active section as a
   percentage and moves there in one quick sweep, so it always rests
   exactly on a dot and never between two. Fast, firm easing. */
:is(#beri,.beri-root) .mp-tabs-fill{
  transition:width .2s cubic-bezier(.35,0,.15,1);
}
/* make sure nothing clips it and it always has somewhere to sit */
:is(#beri,.beri-root) .mp-tabs{overflow:visible;}
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner{position:relative;overflow:visible;}
/* ============================================================
   RAIL — AUTHORITATIVE BLOCK. Supersedes every earlier .mp-tabs
   rule in this file (there are a dozen generations of them and
   they were overriding each other, which is why the line vanished).
   Every property is stated explicitly here and the selectors carry
   an extra `html` for specificity, so nothing above can win.
   Structure:  strip > inner > [ p.slot x N ] + span.fill
               inner::before = track line + START cap
               inner::after  = END cap
   ============================================================ */
html :is(#beri,.beri-root) .mp-tabs{
  position:sticky;top:60px;z-index:90;
  display:block;
  overflow:visible;
  background:rgba(255,255,255,.96);
  backdrop-filter:saturate(150%) blur(8px);
  border:0;
  padding:0;
}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner{
  position:relative;
  display:flex;
  flex-wrap:nowrap;
  justify-content:flex-start;
  gap:0;
  max-width:1416px;
  margin:0 auto;
  padding:14px 44px 26px;
  overflow:visible;
}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p{
  flex:1 1 0;min-width:0;margin:0;padding:0;
  position:relative;text-align:center;
}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p a{
  display:inline-block;padding:0 0 18px;
  font-family:var(--sans);
  font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;
  color:var(--body);text-decoration:none;white-space:nowrap;border:0;
  transition:color .2s ease;
}
/* --- track: 2px line across the full inner width + start cap --- */
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::before{
  content:"";
  position:absolute;
  left:44px;right:44px;bottom:8px;
  height:12px;
  z-index:0;
  background:
    radial-gradient(circle at center,#dff0f8 0 3px,#9cc7de 3px 5px,transparent 5px) left center/12px 12px no-repeat,
    linear-gradient(90deg,#b4d2e4,#d2e6f1 50%,#b4d2e4) center center/100% 2px no-repeat;
}
/* --- end cap --- */
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::after{
  content:"";
  position:absolute;
  right:44px;bottom:8px;
  width:12px;height:12px;
  z-index:2;
  background:radial-gradient(circle at center,#dff0f8 0 3px,#9cc7de 3px 5px,transparent 5px) center/12px 12px no-repeat;
}
html :is(#beri,.beri-root) .mp-tabs.is-end .mp-tabs-inner::after{
  background:radial-gradient(circle at center,#5ec8f0 0 5px,transparent 5px) center/12px 12px no-repeat;
}
/* --- the moving fill: starts at the track's left edge --- */
html :is(#beri,.beri-root) .mp-tabs-fill{
  position:absolute;
  left:44px;bottom:8px;
  height:12px;width:0;
  z-index:1;pointer-events:none;display:block;
  background:
    radial-gradient(circle at center,var(--blue-dark) 0 5px,transparent 5px) left center/12px 12px no-repeat,
    linear-gradient(90deg,var(--blue-dark),var(--blue) 60%,#5ec8f0) center center/100% 2px no-repeat;
  transition:width .2s cubic-bezier(.35,0,.15,1);
}
/* --- points --- */
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p::after{
  content:"";
  position:absolute;left:50%;bottom:9px;transform:translateX(-50%);
  width:10px;height:10px;border-radius:50%;
  background:#dff0f8;border:2px solid #9cc7de;
  z-index:3;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p.is-done::after,
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p.is-current::after{
  background:var(--blue);border-color:var(--blue-dark);
}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p.is-current::after{
  box-shadow:0 0 0 5px rgba(0,153,204,.20);
}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p.is-done a{color:var(--blue);}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p.is-current a{color:var(--blue-dark);}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p a:hover{color:var(--blue);}
/* kill the retired duplicate strip for good */
html :is(#beri,.beri-root) .mp-tabs-prog{display:none !important;}

@media (max-width:1300px){
  html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p a{font-size:11px;letter-spacing:.02em;}
}
@media (max-width:900px){
  html :is(#beri,.beri-root) .mp-tabs{top:52px;}
  html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner{padding:12px 20px 24px;overflow-x:auto;}
  html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p{flex:0 0 auto;padding:0 16px;}
  html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::before{left:20px;right:20px;}
  html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::after{right:20px;}
  html :is(#beri,.beri-root) .mp-tabs-fill{left:20px;}
}
/* DOT/LINE ALIGNMENT.
   The track is positioned from .mp-tabs-inner's bottom edge, but the
   dots are p::after and so are positioned from the PARAGRAPH's bottom
   edge — which stops where the inner's 26px bottom padding starts.
   Result: every dot floated exactly one padding-height above the line.
   Solving for equal centres:
       line centre = bottom_of_inner + B + 6
       dot  centre = bottom_of_inner + P + D + 5
       => D = B + 1 - P
   With P=26 and B=8 that gives D=-17px. Padding is pinned to 26px at
   both breakpoints so the single offset stays valid. */
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner{
  padding-top:14px;padding-bottom:26px;
}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p::after{
  bottom:-17px;
}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p a{
  padding-bottom:6px;
}
@media (max-width:900px){
  html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner{
    padding-top:12px;padding-bottom:26px;
  }
}
/* the hero must be reachable as the very top of the page: give it
   snap-align start with no margin so a fresh load rests at 0 rather
   than being pulled down to the next snap point. */
html :is(#beri,.beri-root) .mp-hero{
  scroll-snap-align:start;
  scroll-snap-stop:always;
  scroll-margin-top:0;
}
/* make the fill unmistakably visible over the track */
html :is(#beri,.beri-root) .mp-tabs-fill{
  z-index:2;
}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p::after{z-index:4;}
/* ============================================================
   RAIL FILL v2 — drawn INSIDE the track, not as a separate span.
   The <span class="mp-tabs-fill"> approach kept failing to show, so
   it's abandoned. Track and fill are now five background layers on
   ONE pseudo-element; earlier layers paint on top, so the blue cap
   and blue line sit over the grey ones. Its length is a single
   custom property the script writes, registered via @property so it
   can be transitioned rather than jumping.
   ============================================================ */
@property --railfill{
  syntax:'<length>';
  inherits:false;
  initial-value:0px;
}
html :is(#beri,.beri-root) .mp-tabs-fill{display:none !important;}

html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner{
  --railfill:0px;
  transition:--railfill .22s cubic-bezier(.35,0,.15,1);
}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::before{
  content:"";
  position:absolute;
  left:44px;right:44px;bottom:8px;
  height:12px;
  z-index:1;
  background:
    /* blue start cap (top layer) */
    radial-gradient(circle at center,var(--blue-dark) 0 5px,transparent 5px) left center/12px 12px no-repeat,
    /* blue fill line, length = --railfill */
    linear-gradient(90deg,var(--blue-dark),var(--blue) 55%,#5ec8f0) left center/var(--railfill) 3px no-repeat,
    /* grey caps */
    radial-gradient(circle at center,#eaf5fa 0 3px,#9cc7de 3px 5px,transparent 5px) left center/12px 12px no-repeat,
    radial-gradient(circle at center,#eaf5fa 0 3px,#9cc7de 3px 5px,transparent 5px) right center/12px 12px no-repeat,
    /* grey track */
    linear-gradient(90deg,#b4d2e4,#d2e6f1 50%,#b4d2e4) center center/100% 2px no-repeat;
}
/* end cap turns blue only at the very bottom of the page */
html :is(#beri,.beri-root) .mp-tabs.is-end .mp-tabs-inner::after{
  background:radial-gradient(circle at center,#5ec8f0 0 5px,transparent 5px) center/12px 12px no-repeat;
}
/* ============================================================
   THE INVISIBLE-FILL BUG, FOUND.
   @property --railfill was declared `inherits:false`. The script
   sets it on .mp-tabs-inner, but the line is painted by that
   element's ::before — and a pseudo-element inherits from its
   originating element. With inheritance off it never saw the value
   and fell back to initial-value:0px, so the blue line was always
   exactly zero pixels wide. Re-declared with inherits:true.
   ============================================================ */
@property --railfill{
  syntax:'<length>';
  inherits:true;
  initial-value:0px;
}

/* ---- dots and line share one origin ----
   Alignment previously depended on the strip's padding-bottom (the
   dots hang off the paragraph, the line off the strip). Removing
   that coupling: the strip has NO bottom padding, the breathing room
   lives inside the link instead, so paragraph-bottom == strip-bottom
   and both dot and line are measured from the same edge. */
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner{
  padding-top:14px;
  padding-bottom:0;
}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p a{
  padding:0 0 30px;
}
/* line centre = 8 + 6 = 14 ; dot centre = 9 + 5 = 14 */
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::before{bottom:8px;}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::after{bottom:8px;}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p::after{bottom:9px;}

/* ---- the page must be able to rest at scroll 0 ----
   The sticky header sits in normal flow and occupies ~60px, so the
   hero starts at offset 60. Snapping to the hero's start therefore
   parked the page at 60px and mandatory snapping refused to let you
   back above it. Giving the hero a scroll-margin equal to the header
   height makes its snap position resolve to 0. */
html :is(#beri,.beri-root) .mp-hero{
  scroll-snap-align:start;
  scroll-snap-stop:always;
  scroll-margin-top:60px;
}
/* ============================================================
   RAIL GEOMETRY, EXACT.
   Three faults being corrected:
   1. The line ran the FULL track width (0 -> 1328) while the outer
      caps are centred 6px in from each end, so the line poked past
      the first and last dots. Line now spans cap-centre to
      cap-centre: from 6px to (100% - 6px).
   2. The fill started at 0 for the same reason; it now starts at
      6px (the start cap's centre) so it emerges FROM the first dot.
   3. The end cap was #5ec8f0 — lighter than the dots, so it read as
      unfilled even when lit. All caps now use exactly the dot
      colours: var(--blue) core with a var(--blue-dark) ring, and the
      same 3px/5px radii, so caps and points are indistinguishable.
   The redundant grey end-cap background layer is dropped; the ::after
   element is the single end cap (it sits above ::before anyway).
   ============================================================ */
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::before{
  content:"";
  position:absolute;
  left:44px;right:44px;bottom:8px;
  height:12px;
  z-index:1;
  background:
    /* 1. blue start cap (top) */
    radial-gradient(circle at center,var(--blue) 0 3px,var(--blue-dark) 3px 5px,transparent 5px)
      left center/12px 12px no-repeat,
    /* 2. blue fill: from the start cap's centre to the active dot */
    linear-gradient(90deg,var(--blue-dark),var(--blue) 55%,#37b6e4)
      left 6px center/max(0px,var(--railfill) - 6px) 3px no-repeat,
    /* 3. grey start cap */
    radial-gradient(circle at center,#dff0f8 0 3px,#9cc7de 3px 5px,transparent 5px)
      left center/12px 12px no-repeat,
    /* 4. grey track: cap centre -> cap centre */
    linear-gradient(90deg,#b4d2e4,#cfe3ef 50%,#b4d2e4)
      left 6px center/calc(100% - 12px) 2px no-repeat;
}
/* single end cap, same look as a point */
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::after{
  content:"";
  position:absolute;
  right:44px;bottom:8px;
  width:12px;height:12px;
  z-index:2;
  background:radial-gradient(circle at center,#dff0f8 0 3px,#9cc7de 3px 5px,transparent 5px)
    center/12px 12px no-repeat;
}
html :is(#beri,.beri-root) .mp-tabs.is-end .mp-tabs-inner::after{
  background:radial-gradient(circle at center,var(--blue) 0 3px,var(--blue-dark) 3px 5px,transparent 5px)
    center/12px 12px no-repeat;
}
/* ============================================================
   DOT SIZE / CENTRING — the last real bug here.
   The dots are width:10px with a 2px border. The global
   `:is(#beri,.beri-root) *{box-sizing:border-box}` uses the
   universal selector, which does NOT match pseudo-elements, so
   p::after fell back to content-box and rendered 14px wide, not 10.
   Two consequences: the dot sat 2px ABOVE the line centre (the
   "line touches a bit under" symptom), and the points were visibly
   fatter than the 10px end caps. Forcing border-box makes the dot
   exactly 10px — a 6px core inside a 2px ring, identical to the
   caps — and drops its centre onto the line.
   ============================================================ */
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p::after{
  box-sizing:border-box;
}
/* the current point grows via its halo only, so it cannot shift the
   geometry the way a size change would */
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p.is-current::after{
  box-shadow:0 0 0 4px rgba(0,153,204,.22);
}
/* ============================================================
   RAIL — BIGGER POINTS + WHOLE-PIXEL GEOMETRY
   The residual "line sits high" was sub-pixel: the strip's height
   came out at 66.59px because the link's line-height was fractional,
   so every centre landed on .59 of a pixel and the 2px line and the
   round dot rounded to different rows. Pinning line-height makes the
   strip exactly 60px tall and every centre an integer.
   Sizes, all sharing one centre line 16px above the strip's bottom:
     dot   14px box, 2px ring  -> bottom 9  (9 + 7  = 16)
     track 18px box            -> bottom 7  (7 + 9  = 16)
     caps  14px circle in that 18px box, centres 9px in from each end
   ============================================================ */
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p a{
  line-height:16px;
  padding:0 0 30px;
}
/* track + caps, 14px circles to match the points */
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::before{
  left:44px;right:44px;bottom:7px;height:18px;
  background:
    radial-gradient(circle at center,var(--blue) 0 5px,var(--blue-dark) 5px 7px,transparent 7px)
      left center/18px 18px no-repeat,
    linear-gradient(90deg,var(--blue-dark),var(--blue) 55%,#37b6e4)
      left 9px center/max(0px,var(--railfill) - 9px) 3px no-repeat,
    radial-gradient(circle at center,#dff0f8 0 5px,#9cc7de 5px 7px,transparent 7px)
      left center/18px 18px no-repeat,
    linear-gradient(90deg,#b4d2e4,#cfe3ef 50%,#b4d2e4)
      left 9px center/calc(100% - 18px) 2px no-repeat;
}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::after{
  right:44px;bottom:7px;width:18px;height:18px;
  background:radial-gradient(circle at center,#dff0f8 0 5px,#9cc7de 5px 7px,transparent 7px)
    center/18px 18px no-repeat;
}
html :is(#beri,.beri-root) .mp-tabs.is-end .mp-tabs-inner::after{
  background:radial-gradient(circle at center,var(--blue) 0 5px,var(--blue-dark) 5px 7px,transparent 7px)
    center/18px 18px no-repeat;
}
/* the points */
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p::after{
  box-sizing:border-box;
  width:14px;height:14px;bottom:9px;
  border:2px solid #9cc7de;background:#dff0f8;
}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p.is-done::after,
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p.is-current::after{
  background:var(--blue);border-color:var(--blue-dark);
}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p.is-current::after{
  box-shadow:0 0 0 5px rgba(0,153,204,.22);
}
/* ============================================================
   HERO FILLS THE FIRST SCREEN
   Header (60px) + hero = exactly 100vh, so the wave lands on the
   fold and the rail with its points sits just below it — nothing of
   the rail shows until you scroll. The wave is the hero's ::after,
   so it rides the new height automatically.
   ============================================================ */
html :is(#beri,.beri-root) .mp-hero{
  min-height:calc(100vh - 60px);
  height:auto;
}
/* keep the copy clear of the taller wave */
html :is(#beri,.beri-root) .mp-hero .wp-block-cover__inner-container{
  padding-bottom:210px;
}
@media (max-width:900px){
  html :is(#beri,.beri-root) .mp-hero{
    /* svh = the small viewport height, so mobile browser chrome
       appearing/disappearing doesn't leave a gap or overflow */
    min-height:calc(100svh - 52px);
  }
  html :is(#beri,.beri-root) .mp-hero .wp-block-cover__inner-container{
    padding-bottom:110px;
  }
}
/* The Cover block emits its minHeight as an INLINE style
   (style="min-height:420px"), which outranks any stylesheet rule —
   that is why the hero ignored every min-height set above. Inline
   styles can only be beaten with !important. */
html :is(#beri,.beri-root) .mp-hero{
  min-height:calc(100vh - 60px) !important;
}
@media (max-width:900px){
  html :is(#beri,.beri-root) .mp-hero{
    min-height:calc(100svh - 52px) !important;
  }
}
/* ============================================================
   RAIL WITHOUT END CAPS
   The start/end caps are gone; the line now simply runs from the
   FIRST point to the LAST point. Its start and span are written by
   the script as --railstart / --railtrack, because those positions
   depend on the slot width and can't be expressed as a background
   percentage (percentages in background-position resolve against
   container-minus-image, not the container).
   Scroll reach is unaffected: the caps were decoration only. The
   hero is still a snap target with scroll-margin 0 (so scroll 0 is
   reachable) and the footer is still the final snap target.
   ============================================================ */
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::after{content:none;}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::before{
  left:44px;right:44px;bottom:7px;height:18px;
  background:
    linear-gradient(90deg,var(--blue-dark),var(--blue) 55%,#37b6e4)
      left var(--railstart,0px) center/max(0px,var(--railfill) - var(--railstart,0px)) 3px no-repeat,
    linear-gradient(90deg,#b4d2e4,#cfe3ef 50%,#b4d2e4)
      left var(--railstart,0px) center/var(--railtrack,0px) 2px no-repeat;
}

/* ============================================================
   TRANSPARENT NAV OVER THE HERO
   Only on pages that actually have a dark cover hero — the
   homepage hero is light, and white nav text there would vanish.
   :has() scopes it to minipages.
   The hero is pulled up under the header so there is something to
   be transparent OVER; without that the "transparent" bar would
   just show the white page background.
   ============================================================ */
html :is(#beri,.beri-root):has(.mp-hero) .mp-hero{
  margin-top:-60px;
  min-height:100vh !important;
}
html :is(#beri,.beri-root):has(.mp-hero) .site-header{
  background:transparent;
  backdrop-filter:none;
  border-bottom:0;
  transition:background .28s ease,backdrop-filter .28s ease,box-shadow .28s ease;
}
/* white text while over the photo */
html :is(#beri,.beri-root):has(.mp-hero) .site-header:not(.is-scrolled) .beri-top a,
html :is(#beri,.beri-root):has(.mp-hero) .site-header:not(.is-scrolled) .beri-phone,
html :is(#beri,.beri-root):has(.mp-hero) .site-header:not(.is-scrolled) .beri-phone a,
html :is(#beri,.beri-root):has(.mp-hero) .site-header:not(.is-scrolled) .beri-menu > li > a{
  color:#fff;
}
html :is(#beri,.beri-root):has(.mp-hero) .site-header:not(.is-scrolled) .beri-top a{
  text-shadow:0 1px 10px rgba(0,0,0,.35);
}
html :is(#beri,.beri-root):has(.mp-hero) .site-header:not(.is-scrolled) .beri-caret,
html :is(#beri,.beri-root):has(.mp-hero) .site-header:not(.is-scrolled) .beri-ext{
  color:#fff;
}
/* logo sits on a small white pill so it stays legible on the photo */
html :is(#beri,.beri-root):has(.mp-hero) .site-header:not(.is-scrolled) .beri-logo{
  background:#fff;
  padding:5px 13px;
  border-radius:999px;
  box-shadow:0 2px 14px rgba(0,0,0,.18);
}
html :is(#beri,.beri-root):has(.mp-hero) .beri-logo{
  transition:background .28s ease,padding .28s ease,box-shadow .28s ease;
}
/* scrolled: back to the normal solid bar */
html :is(#beri,.beri-root):has(.mp-hero) .site-header.is-scrolled{
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(150%) blur(8px);
  box-shadow:0 1px 0 var(--line);
}
/* The pill was painted on .beri-logo, but that element is flex:1 1 0
   (it has to be, to keep the menu centred), so the background spread
   across the whole slot. Move it onto the <a> inside, which shrinks
   to the logo itself. */
html :is(#beri,.beri-root):has(.mp-hero) .site-header:not(.is-scrolled) .beri-logo{
  background:none;
  padding:0;
  box-shadow:none;
}
html :is(#beri,.beri-root):has(.mp-hero) .beri-logo a{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  transition:background .28s ease,padding .28s ease,box-shadow .28s ease;
}
html :is(#beri,.beri-root):has(.mp-hero) .site-header:not(.is-scrolled) .beri-logo a{
  background:#fff;
  padding:6px 14px;
  box-shadow:0 2px 14px rgba(0,0,0,.20);
}
/* ============================================================
   NAV ALIGNMENT — FINAL
   Measured findings this is based on:
   * Vertical was already exact (header/pill/logo/links/CTA all
     centred on the same axis, delta 0) — nothing to fix there.
   * The logo LOOKED off-centre because the PNG itself is lopsided:
     its opaque pixels stop 9px from the right edge but 1px from the
     left, and 7px from the bottom but 0 from the top. Optically it
     therefore sits up and to the left. Compensated with a sub-pixel
     nudge instead of re-cutting the file.
   * The menu sat 37px left of centre and, at the old spacing, could
     NOT be centred: the right cluster (phone + CTA) needs 444px, so
     centring wanted 2x444 + 505 = 1394px inside a 1320px row. The
     gaps below free up the ~74px that makes it fit.
   Header height is now a variable, because the rail offset, hero
   pull-up and every scroll-margin are derived from it.
   ============================================================ */
html :is(#beri,.beri-root){
  --beri-head:65px;   /* 8px top padding + 3 extra, + content + 8 */
  --beri-rail:65px;   /* the points strip */
}
/* +3px breathing room above, as asked */
html :is(#beri,.beri-root) .beri-nav-inner{
  padding:11px 24px 8px;
}
/* free the width the menu needs to actually reach the centre */
html :is(#beri,.beri-root) .beri-menu{gap:24px;}
html :is(#beri,.beri-root) .beri-nav-cta{gap:16px;}

/* optical centring of the logo inside its pill */
html :is(#beri,.beri-root):has(.mp-hero) .site-header:not(.is-scrolled) .beri-logo img{
  transform:translate(1.5px,1.3px);
}

/* everything that hangs off the header height */
html :is(#beri,.beri-root) .mp-tabs{top:var(--beri-head);}
html :is(#beri,.beri-root):has(.mp-hero) .mp-hero{
  margin-top:calc(-1 * var(--beri-head));
  min-height:100vh !important;
  scroll-margin-top:var(--beri-head);
}
html :is(#beri,.beri-root) #ueberblick,
html :is(#beri,.beri-root) .mp-row,
html :is(#beri,.beri-root) #service,
html :is(#beri,.beri-root) .faq,
html :is(#beri,.beri-root) footer{
  scroll-margin-top:calc(var(--beri-head) + var(--beri-rail));
}
/* min-height, not height.
   These four are the snap panels — one viewport per stop — and a
   fixed height is how that was expressed. But they also carry
   `overflow:hidden` and `align-items:center` from the "equal
   height" block above, so content taller than one viewport was
   neither scrolled nor spilled: it was cropped, silently, at
   BOTH ends, because centring splits the excess between them.

   The FAQ heading is where it showed. "Was Sie / vorher wissen /
   sollten." is three lines at 38px, and the panel runs short of
   its own content by a measured 5px at 1440 and 1280 and 18px at
   1100 and below — enough to take the top off "Was Sie" and read
   as a missing line. The same trap sits under #ueberblick,
   .mp-row and #service on the minipages, so all four are fixed
   together.

   height:auto + min-height keeps the panel exactly one viewport
   tall wherever the content fits — identical to before — and
   lets it grow instead of cutting where it does not. */
html :is(#beri,.beri-root) #ueberblick,
html :is(#beri,.beri-root) .mp-row,
html :is(#beri,.beri-root) #service,
html :is(#beri,.beri-root) .faq{
  height:auto;
  min-height:calc(100vh - var(--beri-head) - var(--beri-rail));
}
@media (max-width:900px){
  html :is(#beri,.beri-root) .beri-nav-inner{padding:9px 18px 6px;}
  /* min-height:0 as well as height:auto — without it the rule
     above would newly force every section to a full viewport on
     mobile, where snapping is off and the sections are short. */
  html :is(#beri,.beri-root) #ueberblick,
  html :is(#beri,.beri-root) .mp-row,
  html :is(#beri,.beri-root) #service,
  html :is(#beri,.beri-root) .faq{height:auto;min-height:0;}
}
/* last 2px: the right cluster is fractionally wider than the logo
   side, so 4px more padding on the left balances the two regions
   and lands the menu dead centre. */
html :is(#beri,.beri-root) .beri-nav-inner{
  padding:11px 24px 8px 28px;
}
/* Symmetric horizontal padding. The earlier 4px nudge was aimed at a
   problem that the tighter gaps had already solved: with those, the
   two side regions come out equal (410.4 / 410.5) and the menu is
   centred in the content box on its own. The asymmetric padding was
   then the ONLY thing offsetting it from the visual bar centre. */
html :is(#beri,.beri-root) .beri-nav-inner{
  padding:11px 24px 8px;
}
/* The right cluster settles ~4px under its flex share (its content is
   at min-width), so the logo side absorbs the difference and the menu
   ends up ~2px right of centre. 4px of margin on the menu's right is
   split evenly by the two flex:1 sides, moving it back by exactly 2. */
html :is(#beri,.beri-root) .beri-menu{margin-right:4px;}
/* 4px overshot to -2.06; 2px lands it on centre. */
html :is(#beri,.beri-root) .beri-menu{margin-right:2px;}
/* Rail fill: sky blue at the start deepening to brand blue at the
   end, so progress reads as "getting stronger" left to right. */
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::before{
  background:
    linear-gradient(90deg,#7fd9f7 0%,#35bced 45%,var(--blue) 78%,var(--blue-dark) 100%)
      left var(--railstart,0px) center/max(0px,var(--railfill) - var(--railstart,0px)) 3px no-repeat,
    linear-gradient(90deg,#b4d2e4,#cfe3ef 50%,#b4d2e4)
      left var(--railstart,0px) center/var(--railtrack,0px) 2px no-repeat;
}
/* ============================================================
   SUBPAGE, TONED DOWN
   /sanitaer/ is a subpage, not the homepage — it shouldn't out-shout
   the entry point. Hero drops to 75vh (snap scrolling stays), and
   the scrim over the photo goes from a heavy left-weighted ramp
   (.90 -> .10 across the frame) to a light, near-flat wash, so the
   photograph reads evenly instead of being half-blacked-out.
   ============================================================ */
html :is(#beri,.beri-root):has(.mp-hero) .mp-hero{
  min-height:75vh !important;
}
html :is(#beri,.beri-root) .mp-hero .wp-block-cover__background{
  background:linear-gradient(180deg,
    rgba(10,16,22,.46) 0%,
    rgba(10,16,22,.38) 30%,
    rgba(10,16,22,.36) 100%) !important;
  opacity:1 !important;
}
/* the copy loses the deep scrim behind it, so it leans on its own
   shadow a little more to stay readable on the lighter areas */
html :is(#beri,.beri-root) .mp-hero h1{
  text-shadow:0 2px 26px rgba(0,0,0,.55),0 1px 3px rgba(0,0,0,.35);
}
html :is(#beri,.beri-root) .mp-hero p{
  text-shadow:0 1px 14px rgba(0,0,0,.6),0 1px 2px rgba(0,0,0,.4);
}
html :is(#beri,.beri-root) .mp-hero .wp-block-cover__inner-container{
  padding-bottom:150px;
}

/* ---- points take the line's colour at their own position ----
   --dotcolour is written per point by the script, sampled from the
   same gradient stops the fill uses, so the dot and the line meeting
   it are always the identical shade. */
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p.is-done::after,
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p.is-current::after{
  background:var(--dotcolour,var(--blue));
  border-color:var(--dotcolour,var(--blue));
}
html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p.is-current::after{
  box-shadow:0 0 0 5px color-mix(in srgb,var(--dotcolour,var(--blue)) 25%,transparent);
}
/* ============================================================
   MENU CENTRING — THE ACTUAL STRUCTURE
   Measured: .beri-nav-inner had only TWO laid-out children, the logo
   (554px) and .beri-navpanel (786px), because .beri-navpanel is
   display:flex — so the menu and the CTA live INSIDE it instead of
   being siblings of the logo. Every centring rule I wrote assumed
   three siblings (logo | menu | cta) and therefore never applied to
   the real layout; the menu ended up 142px right of centre.
   Fix: display:contents on the panel dissolves that wrapper, so the
   menu and CTA really are siblings of the logo. Then equal flex on
   the two outer items centres the menu for real.
   Mobile keeps the panel as a real box — it's the drawer there.
   ============================================================ */
@media (min-width:1101px){
  html :is(#beri,.beri-root) .beri-navpanel{
    display:contents;
  }
  html :is(#beri,.beri-root) .beri-logo,
  html :is(#beri,.beri-root) figure.beri-logo{
    flex:1 1 0;min-width:0;
    display:flex;align-items:center;justify-content:flex-start;
  }
  html :is(#beri,.beri-root) .beri-menu{
    flex:0 0 auto;margin:0;
  }
  html :is(#beri,.beri-root) .beri-nav-cta{
    flex:1 1 0;min-width:0;
    display:flex;align-items:center;justify-content:flex-end;
  }
}
/* ============================================================
   LEGAL PAGES (Datenschutz, Impressum, AGB)
   Deliberately quiet: no photo hero, no rail, no snap. A legal page
   is for reading and for finding one clause quickly, so it gets a
   plain title band, a measured prose column, and a sticky index of
   its sections. Brand colours only as accents.
   ============================================================ */
html :is(#beri,.beri-root) .legal-head{
  background:var(--grey-bg);
  border-bottom:1px solid var(--line);
}
html :is(#beri,.beri-root) .legal-head-inner{
  max-width:1416px;margin:0 auto;padding:54px 48px 46px;
}
html :is(#beri,.beri-root) .legal-head .eyebrow{color:var(--blue);margin-bottom:10px;}
html :is(#beri,.beri-root) .legal-head h1{
  font-size:52px;line-height:1.1;margin:0;
}
html :is(#beri,.beri-root) .legal-head .legal-updated{
  margin:14px 0 0;font-size:15px;color:var(--body);
}

html :is(#beri,.beri-root) .legal-wrap{
  max-width:1416px;margin:0 auto;padding:56px 48px 88px;gap:64px;
  align-items:flex-start;
}

/* sticky section index */
html :is(#beri,.beri-root) .legal-toc{
  position:sticky;top:88px;flex-grow:0;
}
html :is(#beri,.beri-root) .legal-toc .legal-toc-title{
  font-size:12px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted);margin:0 0 14px;font-weight:600;
}
html :is(#beri,.beri-root) .legal-toc p{margin:0;}
html :is(#beri,.beri-root) .legal-toc p a{
  display:block;padding:7px 0 7px 14px;
  border-left:2px solid var(--line);
  font-size:14px;line-height:1.45;color:var(--body);text-decoration:none;
  transition:color .18s ease,border-color .18s ease,padding-left .18s ease;
}
html :is(#beri,.beri-root) .legal-toc p a:hover{
  color:var(--blue);border-left-color:var(--blue);padding-left:18px;
}

/* the prose column */
html :is(#beri,.beri-root) .legal-body{max-width:76ch;}
html :is(#beri,.beri-root) .legal-body h2{
  font-size:26px;line-height:1.25;margin:44px 0 14px;
  padding-top:26px;border-top:1px solid var(--line);
  scroll-margin-top:96px;
}
html :is(#beri,.beri-root) .legal-body > *:first-child,
html :is(#beri,.beri-root) .legal-body h2:first-child{margin-top:0;border-top:0;padding-top:0;}
html :is(#beri,.beri-root) .legal-body h3{
  font-size:19px;margin:26px 0 8px;color:var(--ink);
}
html :is(#beri,.beri-root) .legal-body p{
  font-size:16px;line-height:1.78;color:var(--body);margin:0 0 14px;
}
html :is(#beri,.beri-root) .legal-body a{
  color:var(--blue);text-decoration:underline;text-underline-offset:2px;
}
html :is(#beri,.beri-root) .legal-body a:hover{color:var(--blue-dark);}
html :is(#beri,.beri-root) .legal-body ul{margin:0 0 16px;padding-left:0;list-style:none;}
html :is(#beri,.beri-root) .legal-body ul li{
  position:relative;padding:5px 0 5px 20px;
  font-size:16px;line-height:1.7;color:var(--body);
}
html :is(#beri,.beri-root) .legal-body ul li::before{
  content:"";position:absolute;left:2px;top:15px;
  width:6px;height:6px;border-radius:50%;background:var(--blue);
}

@media (max-width:900px){
  html :is(#beri,.beri-root) .legal-head-inner{padding:36px 24px 30px;}
  html :is(#beri,.beri-root) .legal-head h1{font-size:32px;}
  html :is(#beri,.beri-root) .legal-wrap{
    padding:32px 24px 56px;gap:28px;display:flex;flex-direction:column;
  }
  html :is(#beri,.beri-root) .legal-toc{
    position:static;flex-basis:auto !important;width:100%;
    background:var(--grey-bg);border-radius:12px;padding:18px 20px;
  }
  html :is(#beri,.beri-root) .legal-body h2{font-size:22px;margin-top:32px;}
}
/* ============================================================
   404 PAGE
   Same restraint as the legal pages: no photo, no rail. A big quiet
   numeral, one clear sentence, and the two things someone who hit a
   dead link actually wants — the way home and the phone number —
   plus direct links to the four services.
   ============================================================ */
html :is(#beri,.beri-root) .err-page{
  min-height:calc(100vh - 60px);
  display:flex;align-items:center;
  background:
    radial-gradient(1200px 520px at 50% -10%, #eaf4fa 0%, rgba(234,244,250,0) 70%),
    var(--white);
}
html :is(#beri,.beri-root) .err-inner{
  max-width:760px;margin:0 auto;padding:70px 48px 90px;text-align:center;
}
html :is(#beri,.beri-root) .err-code{
  font-family:var(--serif);
  font-size:118px;line-height:1;font-weight:300;
  color:var(--blue);opacity:.22;
  margin:0 0 -14px;letter-spacing:.02em;
}
html :is(#beri,.beri-root) .err-page h1{
  font-size:46px;line-height:1.12;margin:0 0 16px;
}
html :is(#beri,.beri-root) .err-page h1 em{
  font-style:normal;color:var(--blue);
}
html :is(#beri,.beri-root) .err-lead{
  font-size:17px;line-height:1.7;color:var(--body);
  max-width:52ch;margin:0 auto 30px;
}
html :is(#beri,.beri-root) .err-actions{
  display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-bottom:44px;
}
html :is(#beri,.beri-root) .err-or{
  font-size:13px;letter-spacing:.10em;text-transform:uppercase;
  color:var(--muted);margin:0 0 16px;
}
html :is(#beri,.beri-root) .err-links{
  display:flex;gap:10px;justify-content:center;flex-wrap:wrap;
}
html :is(#beri,.beri-root) .err-links p{margin:0;}
html :is(#beri,.beri-root) .err-links p a{
  display:inline-block;padding:9px 18px;border-radius:999px;
  border:1px solid var(--line);background:#fff;
  font-size:14px;color:var(--ink);text-decoration:none;
  transition:border-color .18s ease,color .18s ease,transform .18s ease;
}
html :is(#beri,.beri-root) .err-links p a:hover{
  border-color:var(--blue);color:var(--blue);transform:translateY(-2px);
}
@media (max-width:900px){
  html :is(#beri,.beri-root) .err-inner{padding:48px 24px 64px;}
  html :is(#beri,.beri-root) .err-code{font-size:78px;}
  html :is(#beri,.beri-root) .err-page h1{font-size:30px;}
}
/* ============================================================
   404 — BOLDER
   The first pass was too polite: a faint numeral and a light serif
   heading read as an empty page rather than a deliberate one. The
   numeral is now a large solid brand-blue mark behind the heading,
   the heading is heavier and tighter, and the section sits on a
   tinted band so it holds the screen.
   ============================================================ */
html :is(#beri,.beri-root) .err-page{
  background:
    radial-gradient(900px 460px at 50% 0%, #dff0f9 0%, rgba(223,240,249,0) 72%),
    linear-gradient(180deg,#f4fafd 0%, var(--white) 60%);
}
html :is(#beri,.beri-root) .err-inner{
  max-width:860px;position:relative;padding:96px 48px 104px;
}
/* the numeral becomes a big graphic mark sitting behind the headline */
html :is(#beri,.beri-root) .err-code{
  font-family:var(--sans);
  font-size:210px;
  font-weight:800;
  letter-spacing:-.045em;
  line-height:.82;
  color:var(--blue);
  opacity:1;
  margin:0 0 -46px;
  background:linear-gradient(180deg,#7fd9f7 0%,var(--blue) 55%,var(--blue-dark) 100%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 10px 26px rgba(0,153,204,.22));
}
html :is(#beri,.beri-root) .err-page h1{
  font-size:56px;font-weight:400;letter-spacing:-.02em;line-height:1.06;
  margin:0 0 18px;position:relative;
}
html :is(#beri,.beri-root) .err-page h1 em{
  font-style:normal;color:var(--blue);
}
html :is(#beri,.beri-root) .err-lead{
  font-size:18px;max-width:50ch;margin:0 auto 34px;
}
html :is(#beri,.beri-root) .err-actions{margin-bottom:52px;}
html :is(#beri,.beri-root) .err-actions .wp-block-button__link{
  font-size:16px;padding:17px 30px;
}
html :is(#beri,.beri-root) .err-links p a{
  padding:11px 20px;font-weight:500;
}
@media (max-width:900px){
  html :is(#beri,.beri-root) .err-inner{padding:56px 24px 68px;}
  html :is(#beri,.beri-root) .err-code{font-size:120px;margin-bottom:-26px;}
  html :is(#beri,.beri-root) .err-page h1{font-size:32px;}
  html :is(#beri,.beri-root) .err-lead{font-size:16px;}
}
/* 404 numeral: it was pulled up by a negative margin to sit "behind" the
   headline, but at this weight it just collided with it and both became
   unreadable. Stack them instead — the mark stays big and solid, the
   headline sits clearly beneath it. */
html :is(#beri,.beri-root) .err-code{
  font-size:150px;
  line-height:1;
  margin:0 0 6px;
}
html :is(#beri,.beri-root) .err-page h1{
  font-size:48px;
  margin-top:0;
}
@media (max-width:900px){
  html :is(#beri,.beri-root) .err-code{font-size:104px;margin-bottom:2px;}
  html :is(#beri,.beri-root) .err-page h1{font-size:30px;}
}
/* Heizungsrechner: the calculator is a third-party iframe (Meister1), so the
   page just gives it a clean, centred container and stays out of its way. */
html :is(#beri,.beri-root) .calc-wrap{background:var(--white);}
html :is(#beri,.beri-root) .calc-inner{
  max-width:1000px;margin:0 auto;padding:64px 48px 88px;
}
html :is(#beri,.beri-root) .calc-inner .eyebrow{color:var(--blue);margin-bottom:10px;}
html :is(#beri,.beri-root) .calc-inner h2{font-size:40px;line-height:1.15;margin:0 0 14px;}
html :is(#beri,.beri-root) .calc-inner > p{
  color:var(--body);font-size:17px;line-height:1.7;max-width:62ch;margin:0 0 30px;
}
html :is(#beri,.beri-root) #meister1_MEIN_LIZENZCODE{
  border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;
  min-height:420px;
}
html :is(#beri,.beri-root) #meister1_MEIN_LIZENZCODE iframe{
  display:block;width:100%;border:0;
}
@media (max-width:900px){
  html :is(#beri,.beri-root) .calc-inner{padding:40px 20px 60px;}
  html :is(#beri,.beri-root) .calc-inner h2{font-size:28px;}
}
/* Heizungsrechner header — a tool page, so a plain band rather than a photo
   hero with the wave. Dropping .mp-hero also takes this page out of the
   forced snap scrolling, which is scoped to pages that have one. */
html :is(#beri,.beri-root) .calc-head{
  background:var(--grey-bg);
  border-bottom:1px solid var(--line);
}
html :is(#beri,.beri-root) .calc-head-inner{
  max-width:1000px;margin:0 auto;padding:56px 48px 48px;
}
html :is(#beri,.beri-root) .calc-head .eyebrow{color:var(--blue);margin-bottom:10px;}
html :is(#beri,.beri-root) .calc-head h1{font-size:50px;line-height:1.1;margin:0;}
html :is(#beri,.beri-root) .calc-head .calc-lead{
  margin:16px 0 0;font-size:17px;line-height:1.7;color:var(--body);max-width:60ch;
}
html :is(#beri,.beri-root) .calc-wrap .calc-inner{padding-top:44px;}
@media (max-width:900px){
  html :is(#beri,.beri-root) .calc-head-inner{padding:36px 24px 30px;}
  html :is(#beri,.beri-root) .calc-head h1{font-size:32px;}
}

/* ============================================================
   CTA MAGNET — the three lights fly to the cursor on hover.
   ============================================================
   The blobs wander by animating `left` / `top` percentages, so
   the pull can't be done by overriding those: it would fight the
   keyframes. `transform` is untouched by the animation, so the
   attraction rides on top of it as a pure translate — the wander
   keeps running underneath and the two compose.
   beri-rail.js measures each blob's live position (getComputedStyle
   reads the ANIMATED value of a pseudo-element) and writes the
   delta to the cursor into --m1x/--m1y … each frame while hovered.
   An earlier rule sets transform:none on these, hence the `html`
   prefix + !important to outrank it. */
html :is(#beri,.beri-root) .wp-block-button.btn-primary::before,
html :is(#beri,.beri-root) .wp-block-button.beri-btn-b::before,
html :is(#beri,.beri-root) .wp-block-button.mp-pill-primary::before{
  transform:translate(var(--m1x,0px),var(--m1y,0px)) !important;
}
html :is(#beri,.beri-root) .wp-block-button.btn-primary::after,
html :is(#beri,.beri-root) .wp-block-button.beri-btn-b::after,
html :is(#beri,.beri-root) .wp-block-button.mp-pill-primary::after{
  transform:translate(var(--m2x,0px),var(--m2y,0px)) !important;
}
html :is(#beri,.beri-root) .btn-primary > .wp-block-button__link::before,
html :is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link::before,
html :is(#beri,.beri-root) .mp-pill-primary > .wp-block-button__link::before{
  transform:translate(var(--m3x,0px),var(--m3y,0px)) !important;
}

/* While the cursor is inside, the lights gather and burn brighter —
   the beat keyframes stay, only the opacity ceiling is lifted. */
html :is(#beri,.beri-root) .wp-block-button.is-magnet::before,
html :is(#beri,.beri-root) .wp-block-button.is-magnet::after,
html :is(#beri,.beri-root) .wp-block-button.is-magnet > .wp-block-button__link::before{
  filter:blur(7px) brightness(1.18);
}

@media (prefers-reduced-motion:reduce){
  html :is(#beri,.beri-root) .wp-block-button.btn-primary::before,
  html :is(#beri,.beri-root) .wp-block-button.beri-btn-b::before,
  html :is(#beri,.beri-root) .wp-block-button.mp-pill-primary::before,
  html :is(#beri,.beri-root) .wp-block-button.btn-primary::after,
  html :is(#beri,.beri-root) .wp-block-button.beri-btn-b::after,
  html :is(#beri,.beri-root) .wp-block-button.mp-pill-primary::after,
  html :is(#beri,.beri-root) .btn-primary > .wp-block-button__link::before,
  html :is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link::before,
  html :is(#beri,.beri-root) .mp-pill-primary > .wp-block-button__link::before{
    transform:none !important;
  }
}

/* ============================================================
   Google Maps embed in the Kontakt column
   ============================================================
   The iframe ships with width/height attributes; they're overridden
   so it fills the column and keeps a fixed ratio instead. */
html :is(#beri,.beri-root) .contact-map{
  margin-top:26px;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(8,32,48,.10);
  border:1px solid var(--line,#e3ecf2);
}
html :is(#beri,.beri-root) .contact-map iframe{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16/10;
  min-height:240px;
  border:0;
  /* the default Maps tile is a touch loud next to the blue palette */
  filter:saturate(.88);
}
@media (max-width:900px){
  html :is(#beri,.beri-root) .contact-map iframe{aspect-ratio:4/3;}
}

/* ============================================================
   Partnerschaften band (Uber uns)
   ============================================================ */
/* .mp-band is declared scroll-snap-align:none (it's meant for the
   thin decorative strips), but Partnerschaften is a full rail point
   on Uber uns — the rail can only track it if it's a snap screen of
   the same height as the mp-rows around it. */
html :is(#beri,.beri-root) .partner-band{
  scroll-snap-align:start;
  scroll-snap-stop:always;
  scroll-margin-top:112px;
  min-height:calc(100vh - 112px);
  display:flex;
  align-items:center;
  padding:64px 48px;
}
html :is(#beri,.beri-root) .partner-band .mp-band-inner{
  max-width:1100px;margin:0 auto;width:100%;text-align:center;
}
html :is(#beri,.beri-root) .partner-band .eyebrow{
  color:var(--blue);font-weight:600;letter-spacing:.16em;margin-bottom:10px;
}
html :is(#beri,.beri-root) .partner-band h2{
  font-size:44px;line-height:1.13;margin:0;
}
html :is(#beri,.beri-root) .partner-band .partner-lead{
  max-width:74ch;margin:14px auto 0;
  color:var(--muted,#5a6b78);
}
html :is(#beri,.beri-root) .partner-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-top:34px;
}
html :is(#beri,.beri-root) .partner-card{
  background:#fff;
  border:1px solid var(--line,#e3ecf2);
  border-radius:14px;
  padding:26px 20px;
  text-align:center;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
html :is(#beri,.beri-root) .partner-card:hover{
  transform:translateY(-4px);
  border-color:#bfe0ef;
  box-shadow:0 14px 34px rgba(8,32,48,.10);
}
html :is(#beri,.beri-root) .partner-card .pc-name{
  margin:0;
  font-family:var(--serif,'Fraunces',Georgia,serif);
  font-size:20px;
  line-height:1.25;
  color:var(--ink,#12212b);
}
html :is(#beri,.beri-root) .partner-card .pc-what{
  margin:8px 0 0;
  font-size:13.5px;
  letter-spacing:.02em;
  color:var(--muted,#5a6b78);
}
@media (max-width:900px){
  html :is(#beri,.beri-root) .partner-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:520px){
  html :is(#beri,.beri-root) .partner-grid{grid-template-columns:1fr;}
}

/* The band sits on .mp-band's dark ground, so the inherited muted
   greys read too faint — lift the copy and centre each card's
   content so the four sit on a common baseline despite the
   different wrap counts. */
html :is(#beri,.beri-root) .partner-band .partner-lead{
  color:rgba(255,255,255,.74);
  font-size:16.5px;line-height:1.72;
}
html :is(#beri,.beri-root) .partner-card{
  display:flex;flex-direction:column;justify-content:center;
  min-height:150px;
}
html :is(#beri,.beri-root) .partner-card .pc-what{
  color:#6d8394;
}

/* Footer link columns: one link per line.
   An earlier rule switched these to inline-block so the hover
   translateX would take (transforms don't apply to inline boxes),
   which also let them flow together — "Sanitär & BäderbauHeizungSolar"
   on one line. block + fit-content keeps the transform AND the
   one-per-row stack. */
html :is(#beri,.beri-root) .foot-col p a{
  display:block;
  width:fit-content;
}

/* The map made the contact column much taller than the form beside
   it, leaving a large empty block above the footer. Shorter map,
   and the two columns hang from the top so the gap is shared. */
html :is(#beri,.beri-root) .contact-map iframe{
  aspect-ratio:auto;
  height:250px;
  min-height:0;
}

/* ============================================================
   Partner cards with real logos
   ============================================================
   The four wordmarks have wildly different aspect ratios and
   built-in padding (Viessmann ships on a solid red square, Geberit
   is a wide black lockup, hansgrohe is a long green wordmark). A
   fixed height would make some tiny and others enormous, so each
   sits in a common optical box and is contained inside it —
   the BOX is uniform, the logo just fits within it.
   On the dark band the cards stay white so every mark keeps the
   light background its brand guidelines assume. */
html :is(#beri,.beri-root) .partner-card.has-logo{
  padding:22px 20px 18px;
  gap:14px;
}
html :is(#beri,.beri-root) .partner-logo{
  margin:0;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
}
html :is(#beri,.beri-root) .partner-logo img{
  max-height:100%;
  max-width:78%;
  width:auto;
  height:auto;
  object-fit:contain;
  /* muted at rest so four different brand colours don't shout over
     each other, full colour when you single one out */
  filter:grayscale(1);
  opacity:.72;
  transition:filter .25s ease,opacity .25s ease;
}
html :is(#beri,.beri-root) .partner-card:hover .partner-logo img{
  filter:none;
  opacity:1;
}
/* the name is redundant once the mark is there — keep it for
   screen readers and for any card still missing its logo */
html :is(#beri,.beri-root) .partner-card.has-logo .pc-name{
  position:absolute;
  width:1px;height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
html :is(#beri,.beri-root) .partner-card.has-logo{position:relative;}

/* Partner logos, take two — sized against TRIMMED artwork.
   The originals carried very different amounts of dead margin
   (hansgrohe's wordmark filled 38% of its canvas height, Geberit's
   12%), so a shared box rendered them at wildly different optical
   sizes. The uploads are now cropped to the ink, which means the box
   below finally means what it says.
   Both a height and a width cap apply and each mark hits whichever
   comes first: the long wordmarks are held by width and land shorter,
   the square Viessmann mark is held by height — which is the correct
   optical result, not a bug.
   Greyscale is gone: Viessmann is white type on a solid red square,
   and desaturating it turned the card into a dead grey block. */
html :is(#beri,.beri-root) .partner-logo{
  height:46px;
}
html :is(#beri,.beri-root) .partner-logo img{
  max-height:100%;
  max-width:86%;
  filter:none;
  opacity:1;
  transition:transform .25s ease;
}
html :is(#beri,.beri-root) .partner-card:hover .partner-logo img{
  transform:scale(1.05);
}
html :is(#beri,.beri-root) .partner-card.has-logo{
  min-height:164px;
  padding:26px 18px 20px;
}


/* Partnerschaften on small screens.
   The desktop band is a full-height snap screen with a 44px serif
   heading; on a phone that heading breaks over three lines and the
   lead runs to fourteen, so the section became several screens tall.
   Snap is already off on touch, so the height floor can go too. */
@media (max-width:820px){
  html :is(#beri,.beri-root) .partner-band{
    min-height:0;
    padding:56px 22px;
  }
  html :is(#beri,.beri-root) .partner-band h2{font-size:30px;}
  html :is(#beri,.beri-root) .partner-band .partner-lead{
    font-size:15px;line-height:1.62;margin-top:12px;
  }
  html :is(#beri,.beri-root) .partner-grid{margin-top:26px;gap:12px;}
}
@media (max-width:520px){
  /* two up, not one — the marks are small and a single column made
     the strip four screens long */
  html :is(#beri,.beri-root) .partner-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  html :is(#beri,.beri-root) .partner-card.has-logo{min-height:126px;padding:18px 12px 14px;}
  html :is(#beri,.beri-root) .partner-logo{height:34px;}
  html :is(#beri,.beri-root) .partner-card .pc-what{font-size:12px;}
}

/* ============================================================
   PLACEHOLDER MARKER — .needs-data
   ============================================================
   Marks copy that was invented for the mockup and must be replaced
   with something the client can actually stand behind. The previous
   wording ("25+ Jahre", "1.200 Projekte", the Bonn case study) read
   as finished, which is exactly why it survived so long unnoticed —
   so these are deliberately loud. Delete the class once the real
   figure is in; there is no other behaviour attached to it. */
html :is(#beri,.beri-root) .needs-data{
  position:relative;
  outline:2px dashed #e8a33d;
  outline-offset:3px;
  background:rgba(232,163,61,.10);
  border-radius:3px;
}
html :is(#beri,.beri-root) .needs-data::before{
  content:"PLATZHALTER";
  position:absolute;
  top:-9px;left:-2px;
  font-family:var(--sans);
  font-size:9px;
  font-weight:700;
  letter-spacing:.12em;
  line-height:1;
  padding:2px 5px;
  border-radius:3px;
  background:#e8a33d;
  color:#3a2a08;
  pointer-events:none;
  z-index:5;
}
/* the hero badge sits on a blue field — keep the tag legible there */
html :is(#beri,.beri-root) .hero-badge .needs-data{
  outline-color:#ffd894;
  background:rgba(255,255,255,.14);
}

/* One switch to see the finished look: add class "hide-placeholders"
   to the <body> (or drop this rule) to preview without the markers.
   Kept separate so nobody has to hunt through the rules above. */
html body.hide-placeholders :is(#beri,.beri-root) .needs-data{
  outline:none;background:none;
}
html body.hide-placeholders :is(#beri,.beri-root) .needs-data::before{
  content:none;
}

/* ============================================================
   SERVICE PAGES — quieter section breaks
   ============================================================
   mp-band began as a "full-bleed dark chapter divider". With two of
   them plus the blue CTA slab, a service page read as a stack of
   heavy horizontal bars with the actual content squeezed between —
   the rows never got to breathe and the eye had nowhere to rest.
   The label still earns its place; the black slab does not. So the
   band becomes a quiet header: hairline above, generous air, brand
   blue eyebrow, ink heading on the page's own white.

   .partner-band is excluded — it is a real dark section on Über uns,
   not a divider, and its copy is styled for a dark ground. */
html :is(#beri,.beri-root) .mp-band:not(.partner-band){
  background:transparent;
  border-top:1px solid var(--line,#e3ecf2);
}
html :is(#beri,.beri-root) .mp-band:not(.partner-band) .mp-band-inner{
  max-width:1416px;
  margin:0 auto;
  padding:74px 48px 6px;
}
html :is(#beri,.beri-root) .mp-band:not(.partner-band) .eyebrow,
html :is(#beri,.beri-root) .mp-band:not(.partner-band) p.eyebrow{
  color:var(--blue);
  font-weight:600;
  letter-spacing:.16em;
  margin-bottom:10px;
}
html :is(#beri,.beri-root) .mp-band:not(.partner-band) h2{
  color:var(--ink);
  font-size:38px;
  line-height:1.14;
  margin:0;
  max-width:20ch;
}

/* The first row after a header shouldn't re-open the full section
   gap — the header already provided it. */
html :is(#beri,.beri-root) .mp-band:not(.partner-band) + .mp-row{
  padding-top:26px;
  min-height:0;
}

@media (max-width:900px){
  html :is(#beri,.beri-root) .mp-band:not(.partner-band) .mp-band-inner{
    padding:48px 22px 4px;
  }
  html :is(#beri,.beri-root) .mp-band:not(.partner-band) h2{font-size:27px;}
}

/* ============================================================
   SERVICE ROWS — one consistent picture shape
   ============================================================
   The row images had no shape of their own: each rendered at its
   source aspect, so a 960x319 file made a letterbox strip and a
   square made a block, and rows that should read as siblings had
   wildly different weight. Several sources are also upscaled and
   soft, which a fixed frame at least stops from stretching further.

   A shared 4:3 frame with object-fit:cover means the layout no
   longer depends on what a photo happens to measure — swap a file
   and the page keeps its rhythm. */
html :is(#beri,.beri-root) .mp-row .mp-row-img figure{
  margin:0;
}
html :is(#beri,.beri-root) .mp-row .mp-row-img img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4/3;
  object-fit:cover;
  object-position:center;
  border-radius:18px;
  box-shadow:0 18px 44px rgba(8,32,48,.13);
}
/* the text column reads better held to a measure than stretched
   across half a 1440px screen */
html :is(#beri,.beri-root) .mp-row .mp-row-text{
  max-width:56ch;
}
html :is(#beri,.beri-root) .mp-row .mp-row-text .eyebrow{
  font-size:13px;
  letter-spacing:.18em;
}

/* Rows sit on a full snap screen, so short copy left a lot of empty
   air above and below. Tightening the floor keeps one row per swipe
   without the content island floating in the middle of nothing. */
html :is(#beri,.beri-root) .mp-row{
  min-height:calc(100vh - 190px);
  padding:48px 48px;
  gap:64px;
}

@media (max-width:900px){
  html :is(#beri,.beri-root) .mp-row{
    min-height:0;
    padding:34px 22px;
    gap:26px;
  }
  html :is(#beri,.beri-root) .mp-row .mp-row-img img{aspect-ratio:16/10;}
  html :is(#beri,.beri-root) .mp-row .mp-row-text{max-width:none;}
}

/* 4:3 at half of a 1440px screen is a 700x525 slab that swamped the
   two short paragraphs beside it. 3:2 with a ceiling keeps the photo
   substantial but lets the text hold the row. */
html :is(#beri,.beri-root) .mp-row .mp-row-img img{
  aspect-ratio:3/2;
  max-height:430px;
}
html :is(#beri,.beri-root) .mp-row .mp-row-img{
  display:flex;
  justify-content:center;
}
html :is(#beri,.beri-root) .mp-row .mp-row-img figure{width:100%;}
@media (max-width:900px){
  html :is(#beri,.beri-root) .mp-row .mp-row-img img{max-height:none;}
}

/* ============================================================
   MOBILE LAYER
   ============================================================
   Why this sits at the very bottom of the file:

   The responsive block near the top (lines ~289-311) was correct
   when written, but every later design pass re-declared the same
   selectors unconditionally. `.hero h1{font-size:78px}` (line 781)
   and `.foot-grid{grid-template-columns:1.42fr 1fr 1fr 1fr}`
   (line 1103) both come AFTER it at equal specificity, so on a
   phone the h1 computed to 78px and the footer kept four columns.
   Measured at 375px: the hero column resolved to 394.78px inside a
   327px container and the document scrolled sideways to 805px.

   Rather than chase every future override, the mobile rules live
   last and carry the `html` prefix so they outrank anything above.

   Two things that matter specifically for German:
   - Compound nouns ("Wasseraufbereitung", "Heizungsunterstuetzung")
     set a min-content width no `1fr` track can shrink below, which
     is what actually forced the overflow. Hence break-word plus
     hyphens, which only became useful once <html lang="de"> was
     set and the browser had the right hyphenation dictionary.
   - `minmax(0,1fr)` rather than a bare `1fr`: an fr track refuses
     to go under min-content, so one long word widens the grid.
   ============================================================ */

@media (max-width:900px){

  /* ---- guard rail --------------------------------------------
     The causes are fixed below; this stops any FUTURE stray
     element becoming a sideways scroll on a real phone. `clip`
     not `hidden`: hidden creates a scroll container, which breaks
     position:sticky and the minipage snap scrolling. */
  html:has(#beri) body,
  html:has(.beri-root) body{ overflow-x:clip; }

  /* ---- long German words ------------------------------------ */
  html :is(#beri,.beri-root) h1,
  html :is(#beri,.beri-root) h2,
  html :is(#beri,.beri-root) h3,
  html :is(#beri,.beri-root) h4,
  html :is(#beri,.beri-root) p,
  html :is(#beri,.beri-root) li,
  html :is(#beri,.beri-root) a{
    overflow-wrap:break-word;
    hyphens:auto;
  }

  /* ---- multi-column grids collapse ---------------------------
     minmax(0,...) is the load-bearing part, not the column count. */
  html :is(#beri,.beri-root) .hero-grid,
  html :is(#beri,.beri-root) .foot-grid,
  html :is(#beri,.beri-root) .why-grid,
  html :is(#beri,.beri-root) .ref-head,
  html :is(#beri,.beri-root) .services-head,
  html :is(#beri,.beri-root) .faq-head,
  html :is(#beri,.beri-root) .contact-grid,
  html :is(#beri,.beri-root) .f-row{
    grid-template-columns:minmax(0,1fr);
    gap:28px;
  }
  html :is(#beri,.beri-root) .trust-grid,
  html :is(#beri,.beri-root) .services-grid,
  html :is(#beri,.beri-root) .proc-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
  }

  /* ---- type scale --------------------------------------------
     clamp() keeps shrinking between 375 and 900 instead of
     stepping once at the breakpoint. */
  html :is(#beri,.beri-root) .hero h1{
    font-size:clamp(30px,8.2vw,44px);
    line-height:1.12;
    max-width:none;
    margin-bottom:18px;
  }
  /* The three spans carry NO whitespace between them in the markup --
     they rely on display:block for the line breaks. Switching them to
     inline ran the words together ("zuverlaessigerPartner"), so they
     stay blocks; at the clamped size the designed breaks still fit. */
  html :is(#beri,.beri-root) .hero h1 .l1,
  html :is(#beri,.beri-root) .hero h1 .l2,
  html :is(#beri,.beri-root) .hero h1 .l3{
    display:block;
  }

  /* A later desktop refinement pins the badge to width:max-content
     with max-width:371px -- wider than the entire 339px mobile column,
     so it sized to its text and was cut off at the screen edge. Back
     to a two-sided inset, which can only be as wide as its parent,
     and stacked: a 34px numeral plus a sentence do not fit side by
     side at this width. */
  html :is(#beri,.beri-root) .hero-badge{
    left:16px;right:16px;bottom:16px;
    width:auto;max-width:none;
    flex-direction:column;align-items:flex-start;gap:8px;
    padding:14px 16px;
  }
  html :is(#beri,.beri-root) .hero-badge p.num{font-size:26px;}
  html :is(#beri,.beri-root) .hero-badge p.lbl{font-size:14px;}
  html :is(#beri,.beri-root) .hero > .wrap > .hero-grid > .hero-copy > p,
  html :is(#beri,.beri-root) .hero p{
    font-size:16px;line-height:1.6;max-width:none;
  }
  html :is(#beri,.beri-root) .services-head h2,
  html :is(#beri,.beri-root) .why h2,
  html :is(#beri,.beri-root) .ref-head h2,
  html :is(#beri,.beri-root) .proc h2,
  html :is(#beri,.beri-root) .faq-head h2,
  html :is(#beri,.beri-root) .contact h2,
  html :is(#beri,.beri-root) .cta-banner h2{
    font-size:clamp(24px,6.4vw,32px);
    line-height:1.18;
  }

  /* ---- containers -------------------------------------------- */
  html :is(#beri,.beri-root) .wrap,
  html :is(#beri,.beri-root) .cta-content,
  html :is(#beri,.beri-root) .strip-inner{
    padding-left:20px;padding-right:20px;
  }
  html :is(#beri,.beri-root) .hero{padding:28px 0 0;}

  /* ---- touch targets -----------------------------------------
     48px is the guideline, 44 the practical floor. min-height plus
     centring so a short label ("Solar") still gets a full hit area. */
  html :is(#beri,.beri-root) .wp-block-button__link,
  html :is(#beri,.beri-root) .btn,
  html :is(#beri,.beri-root) button{
    min-height:48px;
    display:inline-flex;align-items:center;justify-content:center;
  }
  html :is(#beri,.beri-root) .foot-col p a,
  html :is(#beri,.beri-root) .fb-links a,
  html :is(#beri,.beri-root) .legal-toc a,
  html :is(#beri,.beri-root) .err-links a{
    min-height:44px;
    display:flex;align-items:center;
    width:auto;
  }

  /* ---- footer ------------------------------------------------ */
  html :is(#beri,.beri-root) .foot-grid{gap:22px;padding-bottom:28px;}
  html :is(#beri,.beri-root) .foot-bottom{
    flex-direction:column;align-items:flex-start;gap:14px;text-align:left;
  }
  html :is(#beri,.beri-root) .foot-bottom .fb-links{gap:18px;flex-wrap:wrap;}

  /* ---- minipage hero -----------------------------------------
     The header sits transparent OVER the hero photo, so the hero's
     own top padding has to clear it — at 32px the logo landed on
     top of the H1. --beri-head is the header height. */
  html :is(#beri,.beri-root) .mp-hero .wp-block-cover__inner-container{
    padding-top:calc(var(--beri-head,65px) + 26px);
  }
  html :is(#beri,.beri-root) .mp-hero h1{
    font-size:clamp(28px,7.6vw,38px);line-height:1.14;
  }
  html :is(#beri,.beri-root) .mp-hero-actions{
    flex-direction:column;align-items:stretch;gap:10px;
  }
  html :is(#beri,.beri-root) .mp-hero-actions .wp-block-button{width:100%;}
  html :is(#beri,.beri-root) .mp-hero-actions .wp-block-button__link{
    width:100%;padding:14px 18px;font-size:15px;
  }

  /* ---- the rail ----------------------------------------------
     Stays a horizontal scroller — the right pattern for a step
     indicator on a phone — but gets edge padding so the first and
     last labels aren't jammed against the screen edge. */
  html :is(#beri,.beri-root) .mp-tabs .mp-tabs-inner{
    padding-left:20px;padding-right:20px;
    scroll-padding-inline:20px;
  }

  /* ---- contact form ------------------------------------------ */
  html :is(#beri,.beri-root) .beri-form-wrap .f-row{grid-template-columns:minmax(0,1fr);}
  html :is(#beri,.beri-root) .beri-form-wrap input,
  html :is(#beri,.beri-root) .beri-form-wrap textarea,
  html :is(#beri,.beri-root) .beri-form-wrap select{
    /* below 16px, iOS Safari zooms the whole page on focus */
    font-size:16px;
    min-height:48px;
  }
  html :is(#beri,.beri-root) .beri-form-wrap textarea{min-height:120px;}
  html :is(#beri,.beri-root) .beri-form-wrap .consent input{
    min-height:22px;min-width:22px;   /* the checkbox measured 13x13 */
  }
}

/* ---- phone -------------------------------------------------- */
@media (max-width:560px){
  html :is(#beri,.beri-root) .trust-grid,
  html :is(#beri,.beri-root) .services-grid,
  html :is(#beri,.beri-root) .proc-grid{
    grid-template-columns:minmax(0,1fr);
  }
  html :is(#beri,.beri-root) .wrap,
  html :is(#beri,.beri-root) .cta-content{padding-left:18px;padding-right:18px;}
  html :is(#beri,.beri-root) .ref-stats{gap:18px;flex-wrap:wrap;}
  html :is(#beri,.beri-root) .foot-bottom{font-size:12.5px;}
}

/* ============================================================
   MOBILE LAYER, PART 2 — drawer, snap, back-to-top
   ============================================================ */

@media (max-width:1100px){
  /* ---- the drawer was a clipped column on the right ----------
     Measured with it open: .beri-navpanel came out 124px wide at
     x=227, so every label was cut ("Sanitär & Bäde…"). The mobile
     rule already said width:100%, but the panel computes
     flex:1 1 0% inside the flex header — and a flex basis beats a
     width. Pinning the basis is what actually makes it wrap to a
     full-width row under the logo. */
  html :is(#beri,.beri-root) .beri-navpanel{
    flex:0 0 100%;
    width:100%;
    max-width:100%;
  }
  html :is(#beri,.beri-root) .beri-menu,
  html :is(#beri,.beri-root) .beri-nav-cta{
    flex:0 0 auto;
    width:100%;
    max-width:100%;
    margin-right:0;   /* the 2px desktop centring nudge */
  }
  html :is(#beri,.beri-root) .beri-navpanel .beri-top a,
  html :is(#beri,.beri-root) .beri-navpanel .beri-dd a{
    display:flex;align-items:center;
    width:100%;
    white-space:normal;
  }
  /* the drawer scrolls itself if the menu outgrows the screen */
  html :is(#beri,.beri-root) .site-header.nav-open .beri-navpanel{
    max-height:calc(100vh - var(--beri-head,65px));
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
}

/* ============================================================
   NO FORCED SCROLL ON TOUCH
   ============================================================
   The minipages snap section-to-section, which is right with a
   mouse wheel but hostile on a phone: momentum scrolling fights
   the snap, short flicks get yanked back, and a section taller
   than the viewport becomes unreachable.

   Rules at ~2848 already turned this off for touch, but the later
   passes at ~2930 and ~3082 re-declared `scroll-snap-type:y
   mandatory` unconditionally and won. Measured at 375px it was
   still `y mandatory`. These rules are last, so they hold.
   ============================================================ */
@media (max-width:900px), (hover:none), (pointer:coarse){
  html:has(.mp-hero),
  html:has(.beri-root){
    scroll-snap-type:none;
    scroll-behavior:auto;
  }
  html :is(#beri,.beri-root) .mp-hero,
  html :is(#beri,.beri-root) .mp-row,
  html :is(#beri,.beri-root) .mp-band,
  html :is(#beri,.beri-root) .mp-lrow,
  html :is(#beri,.beri-root) .mp-ctaband,
  html :is(#beri,.beri-root) .mp-collage,
  html :is(#beri,.beri-root) .mp-steps-split,
  html :is(#beri,.beri-root) .partner-band,
  html :is(#beri,.beri-root) #ueberblick,
  html :is(#beri,.beri-root) #service,
  html :is(#beri,.beri-root) .faq,
  html :is(#beri,.beri-root) .cta-wrap,
  html :is(#beri,.beri-root) footer{
    scroll-snap-align:none;
    scroll-snap-stop:normal;
  }
  /* with snapping gone, sections no longer need to be screen-tall */
  html :is(#beri,.beri-root) .mp-row,
  html :is(#beri,.beri-root) .partner-band,
  html :is(#beri,.beri-root) #ueberblick,
  html :is(#beri,.beri-root) .mp-collage{
    min-height:0;
  }
}

/* ============================================================
   BACK TO TOP
   ============================================================
   Injected by beri-rail.js so it exists on every page without
   editing nine pages of block markup.

   Mobile only: on desktop the header is pinned and always one
   glance away, so a floating button would be clutter. On a phone
   the header scrolls off and these pages run to 8000px.

   Sits above the iOS home indicator via safe-area-inset, and
   clears the rail's own sticky strip.
   ============================================================ */
html :is(#beri,.beri-root) .beri-totop{
  position:fixed;
  right:16px;
  bottom:calc(16px + env(safe-area-inset-bottom,0px));
  width:48px;height:48px;          /* full touch target */
  border:0;border-radius:50%;
  background:var(--blue);
  box-shadow:0 6px 20px rgba(8,32,48,.28);
  cursor:pointer;
  z-index:60;
  display:none;
  align-items:center;justify-content:center;
  /* hidden state: fade + drop, so it arrives rather than blinks */
  opacity:0;
  transform:translateY(10px);
  transition:opacity .22s ease,transform .22s ease,background .18s ease;
}
html :is(#beri,.beri-root) .beri-totop::before{
  content:"";
  width:18px;height:18px;
  background-color:#fff;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l-8 8h5v8h6v-8h5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l-8 8h5v8h6v-8h5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
html :is(#beri,.beri-root) .beri-totop.is-on{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
html :is(#beri,.beri-root) .beri-totop:active{background:var(--blue-dark);}
html :is(#beri,.beri-root) .beri-totop:focus-visible{
  outline:3px solid var(--blue-dark);outline-offset:3px;
}
@media (max-width:900px){
  html :is(#beri,.beri-root) .beri-totop{display:flex;}
}
@media (prefers-reduced-motion:reduce){
  html :is(#beri,.beri-root) .beri-totop{transition:none;transform:none;}
}

/* ============================================================
   OPEN DRAWER MUST BE OPAQUE AND READABLE
   ============================================================
   On the minipages the header floats transparent over the hero
   photo, so the top-level links are painted white (rule ~3923).
   That styling has no idea the drawer exists — open it and the
   panel is white, the links are white, and "Leistungen",
   "Über uns", "Heizungsrechner" vanish. Only the dropdown
   children stayed readable because they carry their own colour.

   So: while .nav-open is set, the whole header becomes a solid
   surface and everything inside it goes back to ink.
   ============================================================ */
@media (max-width:1100px){
  html :is(#beri,.beri-root) .site-header.nav-open{
    background:#fff;
    box-shadow:0 10px 30px rgba(8,32,48,.12);
  }
  html :is(#beri,.beri-root):has(.mp-hero) .site-header.nav-open:not(.is-scrolled) .beri-top a,
  html :is(#beri,.beri-root):has(.mp-hero) .site-header.nav-open:not(.is-scrolled) .beri-phone,
  html :is(#beri,.beri-root):has(.mp-hero) .site-header.nav-open:not(.is-scrolled) .beri-phone a,
  html :is(#beri,.beri-root) .site-header.nav-open .beri-top a,
  html :is(#beri,.beri-root) .site-header.nav-open .beri-navpanel a{
    color:var(--ink);
    text-shadow:none;
  }
  html :is(#beri,.beri-root) .site-header.nav-open .beri-dd a{
    color:var(--body);
  }
  html :is(#beri,.beri-root):has(.mp-hero) .site-header.nav-open:not(.is-scrolled) .beri-caret,
  html :is(#beri,.beri-root):has(.mp-hero) .site-header.nav-open:not(.is-scrolled) .beri-ext{
    color:var(--blue);
  }
  /* the CTA keeps its blue fill and white label */
  html :is(#beri,.beri-root) .site-header.nav-open .beri-btn-b > .wp-block-button__link{
    color:#fff;
  }
  /* the logo's white pill is only there to lift it off the photo —
     pointless once the bar itself is white */
  html :is(#beri,.beri-root):has(.mp-hero) .site-header.nav-open:not(.is-scrolled) .beri-logo{
    background:none;box-shadow:none;
  }
  /* burger bars are drawn with the ink colour; on the photo they are
     white, and they have to flip back too or the X disappears */
  html :is(#beri,.beri-root) .site-header.nav-open .beri-burger span{
    background:var(--ink);
  }
}

/* ============================================================
   HEADER HEIGHT — the collapsed drawer was padding the bar
   ============================================================
   Measured on mobile: .site-header was 124px tall with the menu
   CLOSED. 95px of that is the logo row; the other 29 came from
   .beri-navpanel, which hides with max-height:0 — and max-height
   clamps the CONTENT box only. Its padding (6px + 22px) and its
   1px top border kept taking space.

   The sticky rail was pinned at top:65px (the --beri-head value),
   so 59px of it sat behind the header and only a sliver showed.

   Zeroing the box while closed fixes the height; beri-rail.js then
   measures whatever the bar actually is and writes --beri-head /
   --beri-rail, so the rail lands right at every width.
   ============================================================ */
@media (max-width:1100px){
  html :is(#beri,.beri-root) .beri-navpanel{
    padding-top:0;
    padding-bottom:0;
    border-top-width:0;
  }
  html :is(#beri,.beri-root) .site-header.nav-open .beri-navpanel{
    padding-top:6px;
    padding-bottom:22px;
    border-top-width:1px;
  }
}

/* The rail follows the measured header rather than a hardcoded 65px. */
html :is(#beri,.beri-root) .mp-tabs{
  top:var(--beri-head,65px);
}

/* ============================================================
   NO RAIL ON MOBILE
   ============================================================
   The tab strip (the gradient line with the dots) is a
   desktop-only device. On a phone it can only ever show three of
   seven labels, so it becomes a horizontal scroller inside a
   vertical page — two competing scroll directions in a 66px band,
   and a progress indicator you have to scroll sideways to read is
   not a progress indicator.

   With forced snapping gone as well, the minipages are now plain
   vertical documents on mobile: header, hero, sections, footer.
   Navigation is the hamburger, and the back-to-top button handles
   the long way home.

   Kept in the DOM rather than removed from the markup: it is still
   the desktop navigation, and the pages are shared.
   ============================================================ */
@media (max-width:900px){
  html :is(#beri,.beri-root) .mp-tabs{
    display:none;
  }
  /* nothing needs to clear the strip any more — only the header */
  html :is(#beri,.beri-root) .mp-hero,
  html :is(#beri,.beri-root) .mp-row,
  html :is(#beri,.beri-root) .mp-band,
  html :is(#beri,.beri-root) .mp-collage,
  html :is(#beri,.beri-root) .mp-steps-split,
  html :is(#beri,.beri-root) .partner-band,
  html :is(#beri,.beri-root) #ueberblick,
  html :is(#beri,.beri-root) #service,
  html :is(#beri,.beri-root) .faq{
    scroll-margin-top:calc(var(--beri-head,95px) + 12px);
  }
}

/* ============================================================
   LAST OF THE SMALL TAP TARGETS
   ============================================================
   Inline links inside a sentence are deliberately left alone —
   WCAG 2.5.8 exempts them, and padding them out would wreck the
   line spacing. These three are standalone controls, so they have
   no such excuse:
     .beri-logo a   the logo link, 30px
     .rv a          phone / e-mail / address in the Kontakt column
     .consent input the checkbox, 22px (2.5.8 asks for 24)
   ============================================================ */
@media (max-width:900px){
  html :is(#beri,.beri-root) .beri-logo a{
    display:flex;align-items:center;
    min-height:44px;
  }
  html :is(#beri,.beri-root) .contact-info .rv a,
  html :is(#beri,.beri-root) .info-row .rv a{
    display:inline-flex;align-items:center;
    min-height:44px;
  }
  html :is(#beri,.beri-root) .beri-form-wrap .consent input,
  html :is(#beri,.beri-root) label.consent input{
    min-width:24px;min-height:24px;
    flex-shrink:0;
  }
}

/* ============================================================
   HAMBURGER OVER THE HERO PHOTO
   ============================================================
   On the minipages the header floats transparent over a dark
   photo. Every other item in the bar was given a white treatment
   for that state — the burger was not, so its bars stayed ink
   (measured rgb(27,35,46)) and all but disappeared against the
   Sanitär hero.

   Only for pages that have a .mp-hero: the homepage header sits
   on white, where dark bars are correct. Once .is-scrolled adds
   the solid background, the bars go back to ink on their own.
   ============================================================ */
@media (max-width:1100px){
  html :is(#beri,.beri-root):has(.mp-hero) .site-header:not(.is-scrolled):not(.nav-open) .beri-burger span{
    background:#fff;
    box-shadow:0 1px 3px rgba(0,0,0,.35);
  }
}

/* ============================================================
   TIGHTER MOBILE HEADER — 95px down to 64px
   ============================================================
   .beri-nav-inner is flex-wrap:wrap with gap:28px. The drawer is
   a third child at width:100%, so it always wraps onto a second
   flex line — and a row-gap is applied between lines whether or
   not the second line has any height. With the drawer closed that
   line is 0px tall and the 28px gap was pure dead space:

       11 (pad-top) + 48 (burger) + 28 (row-gap) + 0 + 8 = 95

   Zeroing the row gap and evening the padding gives 8 + 48 + 8 =
   64. The 48px burger sets the floor and stays — it is the touch
   target. The column gap is untouched, so the logo and burger
   keep their spacing.

   Open, the panel supplies its own separation (1px border plus
   6px padding), so no row gap is wanted there either.
   ============================================================ */
@media (max-width:1100px){
  html :is(#beri,.beri-root) .beri-nav-inner{
    row-gap:0;
    padding-top:8px;
    padding-bottom:8px;
  }
}

/* ============================================================
   ONE CTA SYSTEM
   ============================================================
   Measured across the site, the same "request a consultation"
   action appeared as five different objects:

     nav      46px tall, 16px, UPPERCASE, arrow typed into the text
     hero     58px tall, 16px, UPPERCASE, CSS arrow
     mp-hero  53px tall, 16px, UPPERCASE, no arrow
     banner   86px tall, 24px, sentence case, CSS arrow
     inline   48px tall, 16px, UPPERCASE, CSS arrow

   The banner one was the real fault: at 431px wide it did not fit
   a 375px phone and the label was clipped mid-word ("anfrager|").
   It only escaped the overflow audit because the body carries
   overflow-x:clip on mobile, which hid it.

   The rules below settle it:
   - filled buttons (primary / white / nav) are UPPERCASE; outline
     buttons stay sentence case, so casing carries the hierarchy
   - one size ramp, with the banner as emphasis rather than a
     different species
   - the arrow always comes from CSS, never from the label text
   ============================================================ */

/* ---- the closing banner button ------------------------------
   Was 24px/86px. 18px with the same padding rhythm as the other
   filled buttons keeps it the biggest without being a different
   thing, and lets it fit a phone. */
html :is(#beri,.beri-root) .cta-content .wp-block-button.btn-white > .wp-block-button__link,
html :is(#beri,.beri-root) .cta-banner .wp-block-button.btn-white > .wp-block-button__link{
  font-size:18px;
  padding:19px 34px;
  text-transform:uppercase;
  letter-spacing:.07em;
  font-weight:700;
}
html :is(#beri,.beri-root) .cta-content .btn-arrow > .wp-block-button__link::after{
  font-size:17px;
}

/* ---- nav CTA: arrow from CSS, matching every other one ------- */
html :is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link::after{
  content:"\2192";
  font-size:15px;
  line-height:1;
  transition:transform .2s ease;
}
html :is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link:hover::after{
  transform:translateX(4px);
}

/* ---- filled buttons share one treatment --------------------- */
html :is(#beri,.beri-root) .btn-white > .wp-block-button__link,
html :is(#beri,.beri-root) .btn-primary > .wp-block-button__link,
html :is(#beri,.beri-root) .mp-pill-primary > .wp-block-button__link,
html :is(#beri,.beri-root) .beri-btn-b > .wp-block-button__link{
  text-transform:uppercase;
  letter-spacing:.07em;
  font-weight:700;
}

/* ---- mobile: every CTA is full width and thumb-sized --------- */
@media (max-width:900px){
  html :is(#beri,.beri-root) .cta-content .wp-block-button.btn-white,
  html :is(#beri,.beri-root) .cta-banner .wp-block-button.btn-white{
    width:100%;
  }
  html :is(#beri,.beri-root) .cta-content .wp-block-button.btn-white > .wp-block-button__link,
  html :is(#beri,.beri-root) .cta-banner .wp-block-button.btn-white > .wp-block-button__link{
    width:100%;
    font-size:16px;
    padding:16px 20px;
    min-height:52px;
  }
  html :is(#beri,.beri-root) .cta-content .wp-block-buttons{
    width:100%;
    justify-content:stretch;
  }
  /* a long German label must wrap inside the button rather than
     push it past the screen edge */
  html :is(#beri,.beri-root) .wp-block-button__link{
    white-space:normal;
    text-align:center;
  }
}

/* The banner button carried min-width:431px, taken straight from the
   desktop comp ("431x85"). A fixed floor like that cannot survive a
   375px screen — it beat the width:100% above it and the label was
   clipped mid-word. min() keeps the intended presence where there is
   room and collapses to the container where there isn't; 340px suits
   the 18px type better than 431 did anyway. */
html :is(#beri,.beri-root) .cta-content .wp-block-button__link{
  min-width:min(340px,100%);
}
@media (max-width:900px){
  html :is(#beri,.beri-root) .cta-content .wp-block-button__link{
    min-width:0;
    width:100%;
  }
}

/* ============================================================
   CLOSING CTA BAND — right photo, right proportions
   ============================================================
   Three faults stacked here, which is why it read as washed out
   and empty even after the button was fixed:

   1. WRONG PHOTO. The background is hardcoded in CSS to the
      bathroom showroom panorama, so /heizung/ asked "Bereit für
      Ihre neue Heizung?" over a picture of bathroom furniture,
      and /solar/ did the same. Each page now points at its own
      subject via the modifier class on the block.

   2. IMPOSSIBLE CROP. BeRi-Showroom-Panorama.webp is 2000x509.
      In a 339x338 near-square mobile box, background-size:cover
      scales to fit the HEIGHT and shows a ~510px-wide slice of a
      2000px panorama — a meaningless sliver of wall. The new
      images are 3:2 and 16:9, and the band is much wider than it
      is tall on mobile now, so the crop is a real picture.

   3. DEAD SPACE. min-height was a flat 338px while the content
      measured 189px, leaving ~150px of empty scrim.

   The scrim also changes: the desktop gradient runs left-to-right
   because the desktop layout puts text on the left. On mobile the
   content is centred, so a horizontal gradient just looks like
   uneven grey. A vertical one matches the stacked layout.
   ============================================================ */

/* ---- per-page photo ---------------------------------------- */
html :is(#beri,.beri-root) .cta-banner.cta-sanitaer{
  background-image:url("/wp-content/uploads/2026/08/s2-ueberblick-a.jpg");
}
html :is(#beri,.beri-root) .cta-banner.cta-heizung{
  background-image:url("/wp-content/uploads/2026/08/h1-hero.jpg");
}
html :is(#beri,.beri-root) .cta-banner.cta-solar{
  background-image:url("/wp-content/uploads/2026/08/p1-hero.jpg");
}
html :is(#beri,.beri-root) .cta-banner.cta-wasser{
  background-image:url("/wp-content/uploads/2026/08/w1-hero.jpg");
}
html :is(#beri,.beri-root) .cta-banner.cta-rechner{
  background-image:url("/wp-content/uploads/2026/08/h2-ueberblick-a.jpg");
}
/* Über uns keeps the showroom — "get to know us" is the one place
   the Ausstellung panorama is actually the subject. */

/* ---- mobile proportions and scrim --------------------------- */
@media (max-width:900px){
  html :is(#beri,.beri-root) .cta-banner{
    min-height:0;
    background-position:center;
  }
  html :is(#beri,.beri-root) .cta-content{
    padding:34px 22px;
    text-align:center;
    align-items:center;
    gap:20px;
    width:100%;
  }
  html :is(#beri,.beri-root) .cta-banner h2{
    text-align:center;
    font-size:clamp(21px,5.8vw,26px);
    line-height:1.2;
    max-width:22ch;
    margin-inline:auto;
  }
  /* even, vertical scrim — the horizontal one is for the desktop
     layout where the text sits on the left */
  html :is(#beri,.beri-root) .cta-banner::before{
    background:linear-gradient(180deg,
      rgba(12,20,26,.52) 0%,
      rgba(12,20,26,.66) 55%,
      rgba(12,20,26,.78) 100%);
  }
  html :is(#beri,.beri-root) .cta-wrap{
    padding-bottom:34px;
  }
}

/* 166px was tight — the heading sat almost on the band's edge and
   the photo had no room to read as a photo. A floor plus a little
   more padding gives the picture something to show without
   bringing back the dead scrim. */
@media (max-width:900px){
  html :is(#beri,.beri-root) .cta-banner{min-height:210px;}
  html :is(#beri,.beri-root) .cta-content{padding:40px 24px;}
}

/* ============================================================
   SCRIM FOR THE NEW BANNER PHOTOS
   ============================================================
   Line ~765 sets .cta-banner::before{background:none} — the scrim
   was deliberately dropped because the showroom panorama already
   carried its own darkening, so an overlay would have stacked on
   one that was baked in.

   That reasoning does not survive the photo swap: h1-hero and
   p1-hero are bright, and the heading is white. On /heizung/ the
   headline landed white-on-white-plaster and was barely legible.

   Scoped to the modifier classes only, so the two banners still
   on the pre-darkened panorama (homepage and Über uns) are not
   double-darkened. Left-weighted because the desktop layout puts
   the heading on the left and the white button on the right.
   ============================================================ */
html :is(#beri,.beri-root) .cta-banner.cta-sanitaer::before,
html :is(#beri,.beri-root) .cta-banner.cta-heizung::before,
html :is(#beri,.beri-root) .cta-banner.cta-solar::before,
html :is(#beri,.beri-root) .cta-banner.cta-wasser::before,
html :is(#beri,.beri-root) .cta-banner.cta-rechner::before{
  background:linear-gradient(90deg,
    rgba(10,18,24,.80) 0%,
    rgba(10,18,24,.66) 45%,
    rgba(10,18,24,.42) 100%);
}
/* on mobile the content is centred, so the scrim runs vertically */
@media (max-width:900px){
  html :is(#beri,.beri-root) .cta-banner.cta-sanitaer::before,
  html :is(#beri,.beri-root) .cta-banner.cta-heizung::before,
  html :is(#beri,.beri-root) .cta-banner.cta-solar::before,
  html :is(#beri,.beri-root) .cta-banner.cta-wasser::before,
  html :is(#beri,.beri-root) .cta-banner.cta-rechner::before{
    background:linear-gradient(180deg,
      rgba(10,18,24,.55) 0%,
      rgba(10,18,24,.68) 55%,
      rgba(10,18,24,.80) 100%);
  }
}

/* The generic mobile scrim was written for the bright new photos and
   then also landed on the two banners still using the pre-darkened
   showroom file (homepage, Über uns) — darkening on top of darkening,
   so the picture turned to mud. Those two get a much lighter one; the
   modifier rule above still supplies the stronger scrim where the
   photo is bright. */
@media (max-width:900px){
  html :is(#beri,.beri-root) .cta-banner:not([class*="cta-sanitaer"]):not([class*="cta-heizung"]):not([class*="cta-solar"]):not([class*="cta-wasser"]):not([class*="cta-rechner"])::before{
    background:linear-gradient(180deg,
      rgba(10,18,24,.22) 0%,
      rgba(10,18,24,.36) 60%,
      rgba(10,18,24,.48) 100%);
  }
}

/* ============================================================
   NUMBERED SERVICE STEPS — spacing
   ============================================================
   Measured on mobile: the steps sat 22px apart while each step is
   140-170px tall, so three blocks of text ran together as one
   grey mass with no clear boundary between them. The 36px badge
   was also top-aligned against a 24px heading whose line box is
   28px, leaving it 8px taller and reading as if it floated above
   the title rather than beside it.
   ============================================================ */
@media (max-width:900px){
  /* Also matched at .mp-steps-split depth: line 2184 sets gap:22px
     with two classes, which outranks one class plus an element no
     matter that this rule comes later. */
  html :is(#beri,.beri-root) .mp-steps,
  html :is(#beri,.beri-root) .mp-steps-split .mp-steps{
    gap:34px;              /* was 22 — has to beat the 6px row gap
                              inside a step for the grouping to read */
  }
  html :is(#beri,.beri-root) .mp-step{
    column-gap:16px;
    row-gap:6px;
    align-items:start;
  }
  /* centre the badge on the heading's first line rather than its
     box top: (28px line - 36px badge) / 2 */
  html :is(#beri,.beri-root) .mp-step > :first-child{
    margin-top:-4px;
  }
  html :is(#beri,.beri-root) .mp-step h3,
  html :is(#beri,.beri-root) .mp-step h4{
    font-size:20px;
    line-height:1.25;
    margin-bottom:6px;
  }
  html :is(#beri,.beri-root) .mp-step p{
    font-size:15.5px;
    line-height:1.62;
  }
}

/* ============================================================
   CTA BAND — let the photo be a photo
   ============================================================
   Measured: band 339x210, content 339x178. That left exactly 16px
   of image above and below — a grey frame, not a picture, which
   is why swapping in the right photo still did not help.

   Two changes: the band gets real height so the image reads, and
   the button goes back to its own width. Full-width made a white
   slab across the middle that covered what little photo there was.
   ============================================================ */
@media (max-width:900px){
  html :is(#beri,.beri-root) .cta-banner{
    min-height:300px;
  }
  html :is(#beri,.beri-root) .cta-content{
    padding:44px 24px;
    gap:22px;
  }
  html :is(#beri,.beri-root) .cta-banner h2{
    font-size:clamp(22px,6.2vw,27px);
  }
  /* auto width, centred — not the full column */
  html :is(#beri,.beri-root) .cta-content .wp-block-buttons{
    justify-content:center;
    width:auto;
  }
  html :is(#beri,.beri-root) .cta-content .wp-block-button.btn-white,
  html :is(#beri,.beri-root) .cta-banner .wp-block-button.btn-white{
    width:auto;
  }
  html :is(#beri,.beri-root) .cta-content .wp-block-button__link,
  html :is(#beri,.beri-root) .cta-banner .wp-block-button.btn-white > .wp-block-button__link{
    width:auto;
    padding:16px 26px;
  }
}

/* The steps section had no breathing room at either end:

   - .mp-steps-split computes to display:block on mobile, so its
     gap:30px was inert — `gap` only does anything in flex or grid.
     The image therefore started at the exact pixel the last step's
     text ended.
   - the .mp-band header above it carries only 4px of bottom
     padding (on desktop the following rows bring their own), so
     "Reparatur & Notdienst" sat directly on top of step 1.

   Making the split a flex column restores the gap it already asks
   for, rather than inventing new margins. */
@media (max-width:900px){
  /* Asked the browser which rule was winning rather than guessing:
     this element is also #service, and two ID-weighted selectors
     (:is(#beri,...) plus #service) set display:block and zero the
     vertical padding. A class selector cannot reach that, so the
     id is named here too. */
  html :is(#beri,.beri-root) .mp-steps-split,
  html :is(#beri,.beri-root) #service.mp-steps-split{
    display:flex;
    flex-direction:column;
    gap:26px;
    padding-top:24px;
    padding-bottom:8px;
  }
}

/* ============================================================
   HEIZUNG — one closing image on mobile
   ============================================================
   On a phone the page ran the service photo and then the CTA
   banner photo immediately under it: two large images, stacked,
   saying much the same thing. On desktop they sit side by side in
   different parts of the layout and read fine, so this is a
   mobile-only change — the markup keeps the column, the stylesheet
   hides it under 900px and promotes its photo to the banner.

   background-position is 30% from the top rather than centre: the
   file is 4:3 (1600x1200) and the banner crops to a wide band,
   which at centre would slice through the technician's face.
   ============================================================ */
@media (max-width:900px){
  /* The service photo column — only on the page whose banner then
     carries that same photo. Scoped with :has(.cta-heizung): the
     first version hid it on all four service pages, but Solar,
     Sanitär and Wasseraufbereitung keep their own banner image, so
     there it just deleted a photo and gained nothing. */
  html :is(#beri,.beri-root):has(.cta-heizung) #service.mp-steps-split > .wp-block-column:last-child:not(:only-child){
    display:none;
  }
  html :is(#beri,.beri-root) .cta-banner.cta-heizung{
    background-image:url("/wp-content/uploads/2026/08/h9-service.jpg");
    /* X, not Y. The file is 4:3 (1600x1200) in a 339x300 band, so
       `cover` scales to the HEIGHT (0.25) and renders 400x300 — all
       the slack is horizontal, 61px of it, and a vertical position
       does nothing at all. Biasing left brings the boiler and the
       red pipework behind the centred heading and slides the
       technician's face clear of it. */
    background-position:26% center;
  }
  /* the photo column is gone, but the banner still needs air above it
     — at padding-bottom:0 the last step's text touched the band */
  html :is(#beri,.beri-root):has(.cta-heizung) #service.mp-steps-split{
    padding-bottom:26px;
    gap:0;
  }
}

/* ============================================================
   MOBILE PASS 2 — 2026-08-12
   ============================================================
   A second sweep at 320 and 375, driven by measurement rather
   than by eye: every element's rect compared against the
   viewport, every tappable measured, every font size collected.

   Four things came back that the first pass missed, because
   three of them do not produce horizontal scroll — the symptom
   the first pass was hunting — and the fourth only shows up
   when you look at the numbers rather than the page.
   ============================================================ */


/* ------------------------------------------------------------
   1. REFERENZ — the overlay was taller than its own photo
   ------------------------------------------------------------
   .ref-overlay is absolutely positioned inside .ref-visual with
   `bottom:20px; left:20px; right:20px` and no top. On desktop
   the photo is ~500px tall and the overlay ~230px, so it sits in
   the lower third exactly as designed.

   On a 375px screen the photo collapses to 159px while the
   overlay content still needs 373px. With only `bottom` pinned,
   the box grows upward: measured top was -234px. The quote and
   the three stats were rendered 234px ABOVE the photo, on the
   cream section background, in the white they were given for
   the dark image — "Werktage", "Grundfläche" and
   "Ansprechpartner" were white-on-cream and effectively
   invisible, the numerals were half cut off by the photo's top
   edge, and ~180px of empty space sat below the image where the
   overlay should have been.

   .ref-visual::after — the dark scrim that would have made
   white text legible — was switched off earlier
   (content:none, line ~1032), so there was nothing to rescue it.

   Rather than shrink the type until it fits a 159px band, the
   overlay stops overlaying below 900px. The section becomes
   three stacked objects:

       [ photo, rounded                    ]
       ( pill: quote + one short line      )
         14      Werktage
         12 m²   Grundfläche
         1       Ansprechpartner

   The pill holds the quote and the caption. The three stats
   come out from under it and stand on the section background
   as their own list.

   Markup problem: the pill wants .ref-quote + .ref-caption, but
   the caption is nested one level deeper, inside .ref-right,
   together with the stats that must stay OUT of the pill. A
   background on any single existing element covers either too
   little or too much.

   display:contents on .ref-right dissolves that wrapper for
   layout purposes, so .ref-overlay's children become quote,
   caption and stats as siblings. The pill is then painted as
   two adjacent halves — quote takes the top radius, caption the
   bottom, same fill, no gap between them — which reads as one
   shape while leaving the stats outside it.
   ------------------------------------------------------------ */
@media (max-width:900px){
  /* the photo goes back to being just a photo */
  html :is(#beri,.beri-root) #projekte .ref-visual{
    background:none;
    overflow:visible;
  }
  html :is(#beri,.beri-root) #projekte figure.ref-img img{
    border-radius:var(--radius-img);
    display:block;
  }
  /* inset:auto resets all four offsets in one go — `top` is the
     computed one doing the damage, but leaving left/right/bottom
     behind on a static box would be dead declarations. */
  html :is(#beri,.beri-root) #projekte .ref-overlay{
    position:static;
    inset:auto;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:0;
    margin-top:16px;
  }
  html :is(#beri,.beri-root) #projekte .ref-right{
    display:contents;
  }

  /* ---- the pill: two halves, one shape ---------------------- */
  /* max-width:580px from the desktop rule, in a 299px column:
     the quote alone was 369px wide and hung out of the card.
     Two IDs in the selector (#beri + #projekte) to outrank it. */
  html :is(#beri,.beri-root) #projekte p.ref-quote{
    max-width:none;
    margin:0;
    background:var(--ink);
    border-radius:32px 32px 0 0;
    padding:22px 26px 8px;
    font-size:20px;
    line-height:1.32;
    text-shadow:none;
  }
  html :is(#beri,.beri-root) #projekte p.ref-caption{
    max-width:none;
    margin:0 0 26px;
    background:var(--ink);
    border-radius:0 0 32px 32px;
    padding:0 26px 22px;
    font-size:15px;
    line-height:1.55;
  }

  /* ---- the three points ------------------------------------- */
  /* Out of the pill they sit on the grey section background, so
     the two colours written for a dark ground have to change:
     .sl was #dbe2e6, which is invisible on #EEEEEE. .sn keeps
     its blue — 3.1:1 on this grey, which clears 3:1 because at
     28px it counts as large text.

     A row of three cannot work here: "Ansprechpartner" alone is
     ~105px of a 339px column. Stacked rows instead, numeral and
     label on one baseline, hairline rules between them. */
  html :is(#beri,.beri-root) #projekte .ref-stats{
    display:flex;
    flex-direction:column;
    gap:0;
  }
  html :is(#beri,.beri-root) #projekte .ref-stats > *{
    display:flex;
    align-items:baseline;
    gap:16px;
    padding:12px 4px;
    border-top:1px solid var(--line);
  }
  html :is(#beri,.beri-root) #projekte .ref-stats > *:last-child{
    border-bottom:1px solid var(--line);
  }
  html :is(#beri,.beri-root) #projekte .ref-stats p.sn{
    flex:0 0 76px;
    margin:0;
    font-size:28px;
    /* the shadow existed to lift the numeral off a photograph.
       On flat grey it only smears the edge. */
    text-shadow:none;
  }
  html :is(#beri,.beri-root) #projekte .ref-stats p.sl{
    margin:0;
    color:var(--body);
    font-size:15px;
  }
}


/* ------------------------------------------------------------
   2. THE SECTION STRIP — hyphenated into a wall
   ------------------------------------------------------------
   .strip-inner is already `flex-wrap:nowrap; overflow-x:auto`,
   so the intent was a horizontal rail of seven section links.
   But its items kept `flex:0 1 auto` — shrinkable — and the
   root sets `hyphens:auto`. Flex duly squeezed every item to
   its minimum content width and German did the rest:

       Sa-      Hei-     So-    Hei-
       ni-      zung     lar    zungs-
       tär                      rech-
                                ner

   Four lines of hyphenated fragments, a 144px-tall strip, and
   scrollWidth only 540 of the 766 the labels actually want —
   the container was not scrolling because the content had been
   crushed to fit instead.

   flex:0 0 auto plus white-space:nowrap gives each label its
   full width back and lets the rail scroll as designed. The
   links were also 22px tall; they get the 44px floor the rest
   of the site already has, and the strip gets a scroll-snap
   and a fade at the right edge so it reads as scrollable
   rather than as a truncated list.
   ------------------------------------------------------------ */
@media (max-width:900px){
  html :is(#beri,.beri-root) .strip-inner{
    scroll-snap-type:x proximity;
    align-items:center;
    gap:6px;
    padding-top:6px;
    padding-bottom:6px;
    /* signals "there is more to the right". Applied to the
       scroll container, so it stays put while content moves. */
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 30px),transparent);
    mask-image:linear-gradient(90deg,#000 calc(100% - 30px),transparent);
  }
  html :is(#beri,.beri-root) .strip-inner p{
    flex:0 0 auto;
    white-space:nowrap;
    hyphens:none;
    -webkit-hyphens:none;
    scroll-snap-align:start;
  }
  html :is(#beri,.beri-root) .strip-inner p a{
    display:inline-flex;
    align-items:center;
    min-height:44px;
    padding:0 10px;
    white-space:nowrap;
  }
}


/* ------------------------------------------------------------
   3. CONTACT FORM — 11px labels and a limping rhythm
   ------------------------------------------------------------
   Every CTA on the site lands here, so it is the last place to
   economise on legibility. The labels were 11px — below the
   13px the same rule uses on desktop, and small enough that
   "Ihre Nachricht *" is a squint. The inputs are already 16px,
   which is what keeps iOS from zooming on focus, so only the
   labels needed lifting.

   The spacing was also uneven in a way that looks like a bug
   because it is one: the two .f-row grids space their own
   cells 20px apart but carry only margin-bottom:2px between
   rows, so the gaps down the form ran 20, 2, 20, 2. Matching
   the row margin to the internal gap makes one even ladder.
   ------------------------------------------------------------ */
@media (max-width:900px){
  html :is(#beri,.beri-root) form label{
    font-size:13px;
    margin-bottom:7px;
  }
  /* .consent is a sentence, not a field label — it has its own
     14px and must not be pulled down to 13. */
  html :is(#beri,.beri-root) form label.consent{
    font-size:14px;
  }
  html :is(#beri,.beri-root) form .f-row{
    margin-bottom:20px;
  }
}


/* ------------------------------------------------------------
   4. BACK-TO-TOP SITTING ON THE LAST LINE OF THE FOOTER
   ------------------------------------------------------------
   The button is fixed at bottom:16px/right:16px, 48px square,
   so it occupies 311–359 x 748–796. The "Made with ♥ …" credit
   is centred at y=738–758 and runs to x≈357: at the very
   bottom of the page, where the button can no longer scroll
   away from anything, it overlaps the credit line.

   54px of footer padding was not enough to clear a 48px button
   with a 16px offset. 88px is.
   ------------------------------------------------------------ */
@media (max-width:900px){
  html :is(#beri,.beri-root) footer{
    padding-bottom:88px;
  }
}


/* ------------------------------------------------------------
   5. REFERENZ — 122px of nothing under the card
   ------------------------------------------------------------
   With the overlay lifted out of the photo (1), the section's
   real content finally ends where it looks like it ends — and
   the desktop padding-bottom:122px, which used to be filled by
   the absolutely-positioned overlay hanging below the image,
   became a visible dead band on a phone.

   60px top / 122px bottom was never symmetric by intent; it was
   compensation. Matched to the top padding now that there is
   nothing left to compensate for.
   ------------------------------------------------------------ */
@media (max-width:900px){
  html :is(#beri,.beri-root) #projekte{
    padding-bottom:60px;
  }
}


/* ------------------------------------------------------------
   6. TWO LEFTOVERS FROM THE MEASURED SWEEP
   ------------------------------------------------------------
   .beri-dd a — the four Leistungen links in the drawer — came
   back at 43px: 16px text on 9px of padding, one pixel under
   the floor. Not something an eye would ever catch, and not
   something to leave sitting at 43 either.

   The footer's copyright line was 12.5px. The links around it
   were raised to 14 in the first pass; the sentence they sit
   next to was missed, so the block read at two sizes.
   ------------------------------------------------------------ */
@media (max-width:1100px){
  html :is(#beri,.beri-root) .beri-dd a{
    min-height:44px;
  }
}
@media (max-width:900px){
  html :is(#beri,.beri-root) .foot-bottom > p,
  html :is(#beri,.beri-root) .foot-bottom p.made-by{
    font-size:14px;
    line-height:1.5;
  }
}


/* The hero badge and the Referenz section were held back from
   hide-placeholders while their claims were still flagged. Released on
   request 2026-08-13: every .needs-data marker is now silenced site-wide by
   the switch in functions.php. The class itself stays on the markup, so
   `grep needs-data` still lists exactly which copy was never verified —
   "25+ Jahre", "1.200 Projekte" and the whole Bonn-Bad Godesberg reference
   among them. Nothing about the copy changed; only the amber chrome is gone. */



/* ============================================================
   FORCED SCROLL — mandatory snap, on sections too tall for it
   ============================================================
   Symptom: land on a section and its heading is gone. Everything
   below the heading is there; the title is above the top edge.

   Cause is `scroll-snap-type:y mandatory` on the minipages
   (html:has(.mp-hero)) combined with sections that do not fit
   the snapport. The snapport is the viewport minus the sticky
   header and rail — 130px — and measured section heights run
   past it on any normal laptop:

       1366x657   #ueberblick  164px too tall
                  #neubau / #sanierung / … 15px each
       1440x768   #ueberblick   73px too tall

   The spec says that when a snap area is LARGER than the
   snapport, every position where the area still covers the
   snapport is a valid snap position. So on a tall section the
   browser is free to rest bottom-aligned — which parks the
   heading above the viewport and shows the rest. That is the
   reported bug exactly. On sections that do fit, mandatory also
   makes the overflowing bottom strip unreachable, because no
   resting position exists between two stops.

   `proximity` fixes both without giving up the design: sections
   that fit still snap and still read as one-screen stops;
   sections that do not are simply scrollable, and the browser
   never yanks you to a position nobody asked for.

   Scoped to the inverse of the touch/mobile block above, which
   already sets `none` — this must not switch snapping back on
   for phones.
   ============================================================ */
@media (min-width:901px) and (hover:hover) and (pointer:fine){
  /* .mp-hero only, not .beri-root: the homepage never had snapping
     and has no snap targets, so widening the selector would only
     risk switching it on by accident later. */
  html:has(.mp-hero){
    scroll-snap-type:y proximity;
  }
}


/* ============================================================
   THE STEPS SECTION AND ITS TITLE ARE TWO ELEMENTS
   ============================================================
   #service (.mp-steps-split) has no heading inside it. Its title
   — "Reparatur & Notdienst" — is a separate .mp-band sibling
   above it, 156px tall, deliberately given scroll-snap-align:none
   at ~3079 so it would "ride with the section under it".

   It does not ride. #service is its own snap stop at
   scroll-margin-top:130px, so landing there puts the band's whole
   156px above the viewport and the section arrives untitled. On
   /heizung/ that is "Reparatur & Notdienst" gone; the same pair
   exists on every service page.

   The gap is the second half of it. #service inherits
   align-items:center from the equal-height block, and at
   min-height:638px its content only needs ~306px — so the first
   step was measured starting 166px below the section top, which
   is what reads as the title being miles from its own content.

   Fix is to treat the pair as the single unit it always was:
   the stop moves up onto the band, the steps stop being a stop,
   and the panel sizes to its content instead of centring in a
   viewport it does not fill.
   ============================================================ */
@media (min-width:901px) and (hover:hover) and (pointer:fine){
  html :is(#beri,.beri-root) .mp-band:has(+ .mp-steps-split),
  html :is(#beri,.beri-root) .mp-band:has(+ #service){
    scroll-snap-align:start;
  }
  /* two IDs plus a class, to clear both the id-weighted
     equal-height rule and the snap-align set on #service */
  html :is(#beri,.beri-root) #service.mp-steps-split,
  html :is(#beri,.beri-root) .mp-band + .mp-steps-split{
    scroll-snap-align:none;
    min-height:0;
    align-items:center;
    padding-top:10px;
    /* min-height:0 removed the centring slack that used to sit under
       the photo, so the photo's bottom edge landed flush on the CTA
       band below it — two images touching with no seam. 48px is not a
       new number: every sibling row on these pages (#neubau,
       #sanierung, #modernisierung, #installation, #einrichtung) already
       closes on 48px, so the steps now sit in the same rhythm.
       The top stays tight at 10px on purpose — this section's heading
       lives in the .mp-band directly above it. */
    padding-bottom:48px;
  }
}
@media (min-width:901px) and (hover:hover) and (pointer:fine){
  /* The last 115px of that gap is not the panel, it is the two
     columns: both carry Gutenberg's is-vertically-aligned-center,
     whose align-self:center beats the align-items:flex-start set
     on the flex container above. The steps column is 304px, the
     photo beside it 534px, so the text was centred against the
     photo and dropped (534-304)/2 = 115px below the heading.

     The photo is the taller of the two and therefore sets the
     row height — top-aligning it changes nothing — so both can
     simply go to the top and the steps start under their title. */
  html :is(#beri,.beri-root) #service.mp-steps-split > .wp-block-column,
  html :is(#beri,.beri-root) .mp-band + .mp-steps-split > .wp-block-column{
    align-self:center;
  }
  /* The photo is what unbalanced the row. Uncapped it rendered 534px
     against 304px of steps, so whichever way the columns aligned one
     of them looked stranded: centred, the text sat 115px below its own
     heading; top-aligned, it left a 230px hole under itself.

     Capping the photo is the fix that serves both. At 420px the two
     columns are close enough that centring costs only ~58px, which
     keeps the steps beside their heading AND balanced against the
     photo. object-fit:cover was already on the image, so the crop is
     the one the photo pass chose, just shorter. */
  html :is(#beri,.beri-root) #service.mp-steps-split > .wp-block-column:last-child img,
  html :is(#beri,.beri-root) .mp-band + .mp-steps-split > .wp-block-column:last-child img{
    max-height:420px;
    width:100%;
    object-fit:cover;
  }
}


/* ============================================================
   ANCHOR TARGETS ON THE FRONT PAGE
   ============================================================
   Every in-page jump on the homepage landed under the sticky
   header, because none of its targets carried a
   scroll-margin-top. Measured with the anchor actually followed:

       #kontakt      29px of the heading hidden (desktop and mobile)
       #s-sanitaer   17px
       #s-heizung    17px
       #s-solar      16px
       #s-rundgang   17px

   #kontakt is the one every CTA on the page points at, so the
   contact form's own headline — "Schreiben Sie uns. Wir hören
   zu." — was clipped every single time somebody clicked
   "Beratung anfragen".

   The minipages never showed this: they were given
   scroll-margin-top:130px during the rail work, which is why the
   audit of the other eight pages comes back clean.

   --beri-head is kept in step with the real header height by
   beri-rail.js, so this follows the header when it shrinks from
   95px to 64px on mobile rather than hard-coding either. The
   fallback covers the moment before that script runs.

   Scoped with :not(:has(.mp-hero)) — the front page is the one
   page without a minipage hero, and the minipages must keep the
   larger value that also clears their rail.
   ============================================================ */
html :is(#beri,.beri-root):not(:has(.mp-hero)) [id]{
  scroll-margin-top:calc(var(--beri-head,66px) + 16px);
}


/* ============================================================
   .mp-row NO LONGER HAS TO FILL A SCREEN
   ============================================================
   The alternating image/text rows were sized as snap screens —
   min-height:calc(100vh - header - rail) — back when snapping was
   `y mandatory` and every stop had to be exactly one viewport.

   Snapping is `proximity` now, so that floor buys nothing and
   costs a lot. Measured on /ueber-uns/ at 1920x950:

       #solarenergie   content 430px image + 230px text
                       panel forced to 760px
                       => 173px of white above, 157px below

   The same applies to #heizungen and #team on that page, and to
   every row on the service pages at large viewport heights: the
   taller the screen, the more empty band the rule invents.

   With the floor gone the rows size to their own content and the
   vertical rhythm comes from their padding (64/48), which is
   where it should have come from once the snap stopped being
   mandatory. Rows that genuinely fill a screen are unaffected —
   they were never being stretched.

   Desktop only: below 900px .mp-row is already min-height:0.
   ============================================================ */
@media (min-width:901px){
  html :is(#beri,.beri-root) .mp-row{
    min-height:0;
  }
}


/* ============================================================
   THE RAIL DOTS ARE PART OF THE LINK
   ============================================================
   Each rail stop is:

       p            position:relative, 190x51   ::after = the 14px dot
         a          inline-block, 66x46         the label

   The dot is painted by the PARAGRAPH's ::after, so it hit-tests
   as the paragraph. Only the 66x46 label was ever clickable, and
   aiming at the dot — the obvious target, it is the thing the
   line joins — did nothing at all.

   Rather than move the dot onto the anchor (six rules across the
   current/done/hover states would have to move with it), the
   anchor is given a transparent ::before that fills the stop.
   Because the anchor is static, the pseudo resolves against the
   paragraph, so inset:0 covers the label AND the dot, and every
   click in that column now activates the link it belongs to.

   Side effect worth having: the hit area goes from 66x46 to
   190x51, comfortably past the 44px floor.
   ============================================================ */
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p,
:is(#beri,.beri-root) .mp-tabs-prog .mp-tabs-inner p{
  position:relative;
}
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p > a,
:is(#beri,.beri-root) .mp-tabs-prog .mp-tabs-inner p > a{
  position:static;
}
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p > a::before,
:is(#beri,.beri-root) .mp-tabs-prog .mp-tabs-inner p > a::before{
  content:"";
  position:absolute;
  inset:0;
  /* above the track line so the whole column is reachable, below
     nothing that needs its own clicks — the rail has no others */
  z-index:2;
}
/* The dot and the track line are decoration and must not swallow the
   click. Measured: a probe at the dot's centre returned the <p>, not
   the <a> — the paragraph's ::after was hit-testing above the anchor's
   overlay. pointer-events:none lets both fall through to it. */
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner p::after,
:is(#beri,.beri-root) .mp-tabs-prog .mp-tabs-inner p::after,
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::before,
:is(#beri,.beri-root) .mp-tabs-prog .mp-tabs-inner::before,
:is(#beri,.beri-root) .mp-tabs .mp-tabs-inner::after,
:is(#beri,.beri-root) .mp-tabs-prog .mp-tabs-inner::after{
  pointer-events:none;
}
/* Naming each decorative pseudo individually kept missing one — the
   rail draws its track, its progress fill and its dots across several
   ::before/::after layers on three different elements, and whichever
   was left out went on swallowing the click.
   Categorical instead: nothing in the rail takes pointer events, then
   the anchors take them back. Their ::before overlay inherits auto, so
   the whole 190x51 stop stays clickable. The rail contains no other
   interactive element, so there is nothing else to re-enable. */
:is(#beri,.beri-root) .mp-tabs,
:is(#beri,.beri-root) .mp-tabs-prog{
  pointer-events:none;
}
:is(#beri,.beri-root) .mp-tabs a,
:is(#beri,.beri-root) .mp-tabs-prog a{
  pointer-events:auto;
}


/* ============================================================
   CTA BANNER — one page wrapped and the others did not
   ============================================================
   .cta-content is flex / wrap / space-between: heading left,
   button right. That holds while the heading fits beside the
   button, and on five of the six banners it does:

       "Bereit für Ihr Traumbad?"            512px
       "Bereit für Ihre neue Heizung?"       600px
       "Bereit für Ihre eigene Solaranlage"  704px
       "Lernen Sie uns persönlich kennen"    691px
       "Lieber persönlich beraten werden?"   708px
       "Bereit für Warmwasser aus Sonnen…"   891px   <-- wraps

   At 891px the heading plus a 318px button no longer fit the
   ~1224px content row, so the flex line wrapped and the button
   dropped underneath, left-aligned. One page silently using a
   different layout than the other five, purely because its
   sentence is longer.

   nowrap plus min-width:0 on the heading fixes the cause: the
   heading can shrink and break over two lines, which it has room
   for, and the button keeps its place on the right everywhere.
   min-width:0 is the part that matters — a flex item defaults to
   min-width:auto and refuses to shrink below its longest line,
   which is exactly what forced the wrap.

   Desktop only. Below 900px the banner is deliberately stacked
   and full-width, and must stay that way.
   ============================================================ */
@media (min-width:901px){
  html :is(#beri,.beri-root) .cta-content{
    flex-wrap:nowrap;
    gap:32px;
  }
  html :is(#beri,.beri-root) .cta-content > :first-child,
  html :is(#beri,.beri-root) .cta-content h2{
    min-width:0;
  }
  /* the button must not be squeezed by a long heading */
  html :is(#beri,.beri-root) .cta-content .wp-block-buttons,
  html :is(#beri,.beri-root) .cta-content .wp-block-button{
    flex:0 0 auto;
  }
}


/* ============================================================
   FORCED SNAP, BACK — but only where it cannot misbehave
   ============================================================
   `proximity` was set earlier because sections taller than the
   snapport let the browser rest bottom-aligned, which parked
   their headlines above the top edge. Since then .mp-row lost
   its full-viewport floor and sections size to content, so the
   picture has changed. Measured:

       viewport 900px   0 of 9 stops exceed the snapport
       viewport 768px   2 of 9 do, by 65-127px
                        (#ueberblick, #neubau/#loesungen,
                         #bereiche, #standort)

   So the fault is not gone, it is height-dependent. Mandatory
   returns above 860px of viewport height, where every stop
   fits; below that proximity still holds and nothing gets
   yanked past its own heading.

   860 rather than 800: the tallest stop plus its 130px
   scroll-margin comes to ~830, and a little slack keeps a
   browser chrome change from tipping it over.
   ============================================================ */
@media (min-width:901px) and (min-height:860px) and (hover:hover) and (pointer:fine){
  html:has(.mp-hero){
    scroll-snap-type:y mandatory;
  }
}
