/* Kostenrechner und Galerie „Einblicke“ – wie auf jaso24-pflege.de (Stand 15.11.2026) */

/* ---------- Kostenrechner ---------- */
.kostenrechner{margin-block:var(--s-80-40,clamp(2.5rem,1.4286rem + 2.9762vw,5rem));scroll-margin-top:120px}
.kostenrechner__inner{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(1.25rem,.7143rem + 1.4881vw,2.5rem) clamp(2.5rem,1.9643rem + 1.4881vw,3.75rem);width:min(1320px,100%);margin-inline:auto;padding:clamp(2.5rem,1.9643rem + 1.4881vw,3.75rem) clamp(1.25rem,.7143rem + 1.4881vw,2.5rem);border:1px solid #ece3e8;border-radius:16px;background:#fffbfe;text-align:left}
.kostenrechner__col{display:flex;flex-direction:column;gap:24px;min-width:0}
@media (max-width:959px){
  .kostenrechner__inner{display:flex;flex-direction:column;gap:24px;border-radius:12px}
  .kostenrechner__inner>*,.kostenrechner__inner .kostenrechner__col>*{min-width:0}
  .kostenrechner__col{display:contents}
}
.kostenrechner__form{order:1}
.kostenrechner__result{order:2}
.kostenrechner .kostenrechner__heading{margin:0;padding:0;border:0;font-family:var(--ff-secondary);font-size:clamp(1.5rem,1.2857rem + .5952vw,2rem);font-weight:400;line-height:1.2;color:#400a22}
.kostenrechner .kostenrechner__intro{width:auto;margin:14px 0 0;font-size:clamp(.9375rem,.9107rem + .0744vw,1rem);line-height:1.6;color:#684454}
.kostenrechner__grades{margin:28px 0 0;padding:0;border:0;min-width:0}
.kostenrechner__legend-row{position:relative;display:flex;gap:6px;align-items:center;margin-bottom:10px}
.kostenrechner__legend{padding:0;font-size:clamp(.9375rem,.9107rem + .0744vw,1rem);font-weight:700;color:#400a22}
.kostenrechner__info-btn{cursor:pointer;position:relative;display:grid;flex:none;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;color:#795164;background:none;transition:color .15s linear}
.kostenrechner__info-btn[hidden]{display:none}
.kostenrechner__info-btn::before{content:"";position:absolute;inset:-8px}
.kostenrechner__info-btn[aria-expanded=true]{color:#400a22}
@media (hover:hover){.kostenrechner__info-btn:hover{color:#400a22}}
.kostenrechner__info-btn:focus-visible{outline:3px solid #c86373;outline-offset:1px}
.kostenrechner__info{position:absolute;z-index:5;bottom:calc(100% + 10px);left:0;width:min(440px,100%);padding:16px 18px;border:1px solid #ece3e8;border-radius:12px;background:#fff;box-shadow:0 18px 40px -18px rgba(64,10,34,.45),0 2px 8px rgba(64,10,34,.08);scroll-margin:120px 0 16px}
.kostenrechner__info[hidden]{display:none}
.kostenrechner__info:focus{outline:none}
.kostenrechner__info::after{content:"";position:absolute;bottom:-7px;left:calc(var(--kr-info-x,104px) - 6px);width:12px;height:12px;border-right:1px solid #ece3e8;border-bottom:1px solid #ece3e8;background:#fff;transform:rotate(45deg)}
.kostenrechner__info--below{top:calc(100% + 10px);bottom:auto}
.kostenrechner__info--below::after{top:-7px;bottom:auto;transform:rotate(225deg)}
@media (prefers-reduced-motion:no-preference){.kostenrechner__info{animation:kr-info-in .14s ease-out}}
.kostenrechner .kostenrechner__info p{width:auto;margin:0 0 8px;font-size:clamp(.8125rem,.7857rem + .0744vw,.875rem);line-height:1.55;color:#684454}
.kostenrechner .kostenrechner__info p:last-child{margin-bottom:0}
.kostenrechner .kostenrechner__info .kostenrechner__info-title{font-size:clamp(.9375rem,.9107rem + .0744vw,1rem);font-weight:700;color:#400a22}
.kostenrechner__nowrap{white-space:nowrap}
.kostenrechner__options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.kostenrechner__option{cursor:pointer;position:relative;display:block;margin:0}
.kostenrechner__option input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.kostenrechner__option span{display:grid;place-items:center;min-height:56px;border:2px solid #795164;border-radius:12px;font-size:clamp(1.125rem,1.0714rem + .1488vw,1.25rem);font-weight:700;color:#400a22;background:#fff;transition:.15s linear;transition-property:background-color,color,border-color}
.kostenrechner__option input:checked+span{border-color:#400a22;color:#fff;background:#400a22}
.kostenrechner__option input:focus-visible+span{outline:3px solid #c86373;outline-offset:2px}
@media (hover:hover){.kostenrechner__option:hover input:not(:checked)+span{background:#fff6f5}}
.kostenrechner__tax{cursor:pointer;display:flex;gap:12px;align-items:flex-start;margin-top:22px;font-size:clamp(.9375rem,.9107rem + .0744vw,1rem);line-height:1.5;color:#684454}
.kostenrechner__tax input{flex:0 0 28px;margin:0}
.kostenrechner__tax span{padding-top:3px}
.kostenrechner__rows{margin:0}
.kostenrechner__row{display:flex;gap:16px;align-items:baseline;justify-content:space-between;padding-block:12px;border-bottom:1px solid rgba(64,10,34,.12);font-size:clamp(1rem,.9464rem + .1488vw,1.125rem);color:#684454}
.kostenrechner__row[hidden]{display:none}
.kostenrechner__row dt,.kostenrechner__row dd{margin:0}
.kostenrechner__row dd{font-weight:700;color:#400a22;white-space:nowrap;font-variant-numeric:tabular-nums}
.kostenrechner__row--total{align-items:center;border-bottom:0}
.kostenrechner__row--total dt{font-weight:700;color:#400a22}
.kostenrechner__row--total dd{font-family:var(--ff-secondary);font-size:clamp(1.75rem,1.4286rem + .8929vw,2.5rem);font-weight:400;line-height:1.1;font-variant-numeric:lining-nums tabular-nums}
.kostenrechner__hint{font-size:clamp(.8125rem,.7857rem + .0744vw,.875rem);white-space:nowrap}
.kostenrechner__compare{order:3;padding:18px 20px;border-radius:12px;background:#fff}
.kostenrechner .kostenrechner__compare-title{width:auto;margin:0 0 12px;font-size:clamp(.8125rem,.7857rem + .0744vw,.875rem);font-weight:700;line-height:1.4;color:#400a22}
.kostenrechner__bars{display:grid;gap:8px}
.kostenrechner__bar{overflow:hidden;display:flex;align-items:center;width:100%;min-height:30px;border-radius:6px;font-size:clamp(.8125rem,.7857rem + .0744vw,.875rem);font-weight:600;white-space:nowrap;color:#400a22;background:#ece3e8}
.kostenrechner__bar>span{padding-inline:10px}
.kostenrechner__bar--home{width:var(--kr-w,55%);min-width:140px;color:#fff;background:#c86373;transition:width .3s ease-out}
@media (prefers-reduced-motion:reduce){.kostenrechner__bar--home{transition:none}}
.kostenrechner .kostenrechner__saving{width:auto;margin:12px 0 0;font-size:clamp(.9375rem,.9107rem + .0744vw,1rem);line-height:1.55;color:#684454}
.kostenrechner .kostenrechner__saving[hidden]{display:none}
.kostenrechner .kostenrechner__saving strong{color:#400a22;white-space:nowrap}
.kostenrechner .kostenrechner__note{order:6;width:auto;margin:0;font-size:.75rem;line-height:1.55;color:#795164}

/* Formular im Rechner */
.kostenrechner__contact{order:4;container:kr-contact/inline-size;scroll-margin-top:120px;padding:22px 24px 24px;border-radius:12px;background:#fff}
@media (max-width:575px){.kostenrechner__contact{padding:18px 16px 20px}}
.kostenrechner .kostenrechner__contact-heading{margin:0 0 6px;font-family:var(--ff-secondary);font-size:clamp(1.25rem,1.1429rem + .2976vw,1.5rem);font-weight:400;line-height:1.25;color:#400a22}
.kostenrechner__contact .form__wrapper{display:flex;flex-direction:column;gap:6px}
.kostenrechner__contact .form__wrapper label{display:block;margin:0}
.kostenrechner__contact input[type=text],.kostenrechner__contact input[type=email],.kostenrechner__contact input[type=tel]{display:block;width:100%;padding:10px 0;border:0;border-bottom:1px solid rgba(64,10,34,.22);border-radius:0;font-family:var(--ff-primary);font-size:1rem;font-weight:500;line-height:1.5;color:#400a22;background:none}
.kostenrechner__contact input[type=text]::placeholder,.kostenrechner__contact input[type=email]::placeholder,.kostenrechner__contact input[type=tel]::placeholder{font-family:inherit;font-weight:400;color:#795164;opacity:1}
.kostenrechner__contact input[type=text]:focus,.kostenrechner__contact input[type=email]:focus,.kostenrechner__contact input[type=tel]:focus{border-bottom-color:#400a22;outline:none}
.kostenrechner__contact .form__footer{display:block;margin-top:14px}
.kostenrechner__contact .form__consent{margin:0 0 16px}
.kostenrechner__contact .form__consent-label{font-size:12px;line-height:1.5}
.kostenrechner__contact .form__consent-label span{padding-top:5px}
.kostenrechner__contact .form__footer .btn{display:flex;gap:12px;align-items:center;justify-content:center;width:100%;min-height:56px;margin:0;padding:8px 24px;border:1px solid #400a22;border-radius:60px;font-family:var(--ff-primary);font-size:1rem;font-weight:700;line-height:1.2;white-space:nowrap;color:#fff;background:#400a22;box-shadow:0 12px 26px -14px rgba(64,10,34,.7),0 2px 6px rgba(64,10,34,.12)}
.kostenrechner__contact .form__footer .btn:hover,.kostenrechner__contact .form__footer .btn:focus-visible,.kostenrechner__contact .form__footer .btn:active{border-color:#684454;color:#fff;background:#684454}
.kostenrechner__contact .form__footer .btn:focus-visible{outline:3px solid #c86373;outline-offset:3px}
@media (max-width:430px){.kostenrechner__contact .form__footer .btn{gap:8px;padding-inline:12px;font-size:.9375rem}}
@media (max-width:339px){.kostenrechner__contact .form__footer .btn{white-space:normal}}
.kostenrechner__submit-arrow{flex:none;color:#eda3b0;transition:transform .2s ease}
.btn:hover .kostenrechner__submit-arrow{transform:translateX(3px)}
@media (max-width:389px){.kostenrechner__submit-arrow{display:none}}
.kostenrechner .kostenrechner__contact-intro{width:auto;margin:10px 0 0;font-size:clamp(.8125rem,.7857rem + .0744vw,.875rem);line-height:1.5;color:#684454;text-align:center;text-wrap:balance}
@media (min-width:350px){.kostenrechner .kostenrechner__contact-intro span{white-space:nowrap}}
@container kr-contact (min-width:380px){.kostenrechner .kostenrechner__contact-intro{font-size:min(clamp(.8125rem,.7857rem + .0744vw,.875rem),3.125cqi);white-space:nowrap}}

/* Telefon unter dem Formular */
.kostenrechner__phone{margin-top:12px}
.hero-cta{--hcta-wine:#400a22;--hcta-pink:#c86373;--hcta-muted:#795164;--hcta-outline:rgba(64,10,34,.35);--hcta-h:56px;--hcta-fs:1rem;--hcta-pad:24px;--hcta-icon:38px;--hcta-number:1.0625rem;max-width:100%}
.kostenrechner__phone .hero-cta{width:100%;margin-top:0}
.hero-cta__actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.hero-cta__cta{display:inline-flex;flex:1 1 auto;gap:12px;align-items:center;justify-content:center;min-height:var(--hcta-h);border-radius:999px;font-family:var(--ff-primary);font-size:var(--hcta-fs);font-weight:700;line-height:1.2;text-decoration:none;white-space:nowrap;transition:background-color .2s ease,border-color .2s ease,color .2s ease}
.hero-cta__cta:focus-visible{outline:3px solid var(--hcta-pink);outline-offset:3px}
.hero-cta__cta--phone,.hero-cta__cta--phone:link,.hero-cta__cta--phone:visited{gap:10px;padding:0 calc(var(--hcta-pad) - 2px) 0 calc((var(--hcta-h) - var(--hcta-icon))/2 - 1.5px);border:1.5px solid var(--hcta-outline);color:var(--hcta-wine);background:transparent}
.hero-cta__cta--phone:hover,.hero-cta__cta--phone:focus-visible,.hero-cta__cta--phone:active{border-color:var(--hcta-wine);color:var(--hcta-wine);background:#fff;text-decoration:none}
.hero-cta__icon{display:grid;flex:none;place-items:center;width:var(--hcta-icon);height:var(--hcta-icon);border-radius:50%;background:var(--hcta-pink)}
.hero-cta__icon svg{width:calc(var(--hcta-icon)*.44);height:auto;fill:#fff}
.hero-cta__phone-text{display:flex;flex-direction:column;align-items:flex-start;text-align:left}
.hero-cta__kicker{font-size:var(--hcta-kicker,.75rem);font-weight:600;letter-spacing:.02em;line-height:1.25;color:var(--hcta-muted)}
.hero-cta__number{font-size:var(--hcta-number);font-weight:800;letter-spacing:.005em;line-height:1.25}
@media (min-width:960px) and (max-width:1279px){.hero-cta{--hcta-h:47px;--hcta-fs:.84375rem;--hcta-pad:18px;--hcta-icon:32px;--hcta-number:.9rem;--hcta-kicker:.6875rem}}
@media (min-width:1280px) and (max-width:1439px){.hero-cta{--hcta-h:50px;--hcta-fs:.9rem;--hcta-pad:22px;--hcta-icon:34px;--hcta-number:.95625rem;--hcta-kicker:.6875rem}}
@media (min-width:1440px){.hero-cta{--hcta-h:54px;--hcta-fs:.95625rem;--hcta-pad:25px;--hcta-icon:38px;--hcta-number:1.0125rem;--hcta-kicker:.6875rem}}
@media (min-width:1600px){.hero-cta{--hcta-h:59px;--hcta-fs:1.0125rem;--hcta-pad:29px;--hcta-icon:41px;--hcta-number:1.06875rem;--hcta-kicker:.71875rem}}
@media (max-width:1023px){.hero-cta__actions{flex-direction:column;align-items:stretch}.hero-cta__cta{width:100%}}
@media (max-width:959px){.hero-cta{--hcta-h:54px}}
@media (max-width:767px){.hero-cta{--hcta-fs:1rem;--hcta-pad:18px}}
@media (max-width:359px){.hero-cta{--hcta-h:58px}}

/* Zugeklappter Rechner unter dem ersten Formular */
.kostenrechner-fold{margin-top:22px;scroll-margin-top:120px;text-align:center}
.kostenrechner-fold__summary{cursor:pointer;display:inline-flex;gap:8px;align-items:center;justify-content:center;max-width:100%;min-height:44px;padding:6px 10px;border-radius:8px;font-family:var(--ff-primary);font-size:clamp(1rem,.9464rem + .1488vw,1.125rem);font-weight:600;line-height:1.4;color:#400a22;list-style:none;text-decoration:underline;text-decoration-color:rgba(64,10,34,.3);text-underline-offset:4px;transition:text-decoration-color .15s linear}
.kostenrechner-fold__summary::-webkit-details-marker{display:none}
.kostenrechner-fold__summary::marker{content:""}
@media (hover:hover){.kostenrechner-fold__summary:hover{text-decoration-color:#400a22}}
.kostenrechner-fold__summary:focus-visible{outline:3px solid #c86373;outline-offset:2px}
.kostenrechner-fold__label--open,.kostenrechner-fold[open] .kostenrechner-fold__label--closed{display:none}
.kostenrechner-fold[open] .kostenrechner-fold__label--open{display:inline}
.kostenrechner-fold__chevron{flex:none;color:#c86373;transition:transform .2s ease}
.kostenrechner-fold[open] .kostenrechner-fold__chevron{transform:rotate(180deg)}
.kostenrechner-fold__body{text-align:left}
.kostenrechner-fold__body .kostenrechner{margin-block:18px 0}
@media (prefers-reduced-motion:no-preference){.kostenrechner-fold[open] .kostenrechner-fold__body{animation:kr-info-in .22s ease-out}}
@keyframes kr-info-in{from{opacity:0;transform:translateY(4px)}}
.wp-block-jaso-contact-pricing{scroll-margin-top:110px}

/* ---------- Galerie „Einblicke“ ---------- */
.city-gallery{width:min(1320px,100%);margin:clamp(48px,6vw,88px) auto}
.city-gallery__head{max-width:760px;margin:0 auto clamp(20px,2.4vw,32px);text-align:center}
.city-gallery .city-gallery__eyebrow{margin:0 0 6px;font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#c86373}
.city-gallery .city-gallery__heading{margin:0;color:#400a22}
.city-gallery .city-gallery__lead{margin:10px 0 0;color:#795164}
.city-gallery__grid{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:clamp(118px,30vw,230px);gap:8px}
.city-gallery__tile{position:relative;overflow:hidden;margin:0;border-radius:8px;background:#fff6f5}
.city-gallery__tile--big{grid-column:1/-1;grid-row:span 2}
.city-gallery__tile--tall{grid-column:1;grid-row:3/span 2}
.city-gallery__link{display:block;width:100%;height:100%;cursor:zoom-in}
.city-gallery__link:focus-visible{outline:3px solid #c86373;outline-offset:2px}
.city-gallery__img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .5s ease}
.city-gallery__tile--big .city-gallery__img{object-position:30% 30%}
.city-gallery .city-gallery__cta{margin:clamp(20px,2.4vw,32px) 0 0;text-align:center}
.city-gallery__btn,.city-gallery__btn:link,.city-gallery__btn:visited{display:inline-flex;gap:12px;align-items:center;padding:15px 28px;border-radius:999px;font-size:15px;font-weight:700;line-height:1.2;color:#fff;text-decoration:none;background:#400a22;box-shadow:0 10px 24px rgba(64,10,34,.18);transition:background .2s ease}
.city-gallery__btn:hover,.city-gallery__btn:focus-visible{color:#fff;text-decoration:none;background:#684454}
.city-gallery__btn:focus-visible{outline:3px solid #c86373;outline-offset:3px}
.city-gallery__btn svg{flex:none}
@media (min-width:960px){
  .city-gallery__grid{grid-template-columns:2fr 1fr 1fr 1.25fr;grid-auto-rows:clamp(170px,15vw,210px);gap:12px}
  .city-gallery__tile--big{grid-column:1;grid-row:1/span 2}
  .city-gallery__tile--tall{grid-column:4;grid-row:1/span 2}
}
@media (hover:hover){.city-gallery__tile:hover .city-gallery__img{transform:scale(1.04)}}
@media (prefers-reduced-motion:reduce){.city-gallery__img,.city-gallery__btn{transition:none}}

/* Bildvergrößerung */
html.jlb-open{overflow:hidden}
.jlb{position:fixed;inset:0;z-index:2147483100;display:flex;align-items:center;justify-content:center;padding:64px 72px;background:rgba(63,21,33,.9)}
.jlb[hidden]{display:none}
.jlb__figure{display:flex;flex-direction:column;align-items:center;gap:12px;max-width:100%;max-height:100%;margin:0}
.jlb__img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100vh - 170px);border-radius:8px;box-shadow:0 24px 60px rgba(0,0,0,.35)}
@supports (height:100dvh){.jlb__img{max-height:calc(100dvh - 170px)}}
.jlb__caption{max-width:720px;margin:0;font-size:14px;line-height:1.45;color:#fff;text-align:center}
.jlb__count{opacity:.75;margin-left:8px;white-space:nowrap}
.jlb__btn{position:absolute;display:grid;place-items:center;width:48px;height:48px;padding:0;border:0;border-radius:50%;color:#fff;background:#c86373;cursor:pointer;transition:background .2s ease}
.jlb__btn:hover{background:#b0505f}
.jlb__btn:focus-visible{outline:3px solid #fff;outline-offset:3px}
.jlb__close{top:12px;right:12px}
.jlb__prev{top:50%;left:12px;transform:translateY(-50%)}
.jlb__next{top:50%;right:12px;transform:translateY(-50%)}
@media (max-width:767px){
  .jlb{padding:60px 8px 84px}
  .jlb__img{max-height:calc(100vh - 190px)}
  @supports (height:100dvh){.jlb__img{max-height:calc(100dvh - 190px)}}
  .jlb__prev,.jlb__next{top:auto;bottom:18px;transform:none}
  .jlb__prev{left:calc(50% - 64px)}
  .jlb__next{right:calc(50% - 64px)}
}
