/* =========================================================
   Leistungsseiten: Planung, Grundriss-Erstellung, Wohnflächenberechnung
   body.page-leistung (+ .page-planung | .page-grundriss | .page-wohnflaeche)
   ========================================================= */
@font-face{font-family:"Barlow";font-weight:300;font-style:normal;font-display:swap;src:url(../../fonts/barlow-300.woff2) format("woff2")}

.page-leistung{--band-pad:calc(min(1170px, 90vw) * .05)}
.page-leistung .fa-check-circle::before{content:"\f058"}

/* ---------- Titelband ---------- */
.page-leistung .title-band{padding:145px 0 60px;background-position:0 0}
.page-leistung .title-band .main-heading{width:fit-content;max-width:100%;margin:0 auto 38px}
.page-leistung .title-band .divider{margin-bottom:43px}

/* ---------- Intro: Überschrift, Text + Karten ---------- */
.lst-intro{padding:110px 0 110px;overflow-x:clip}
.lst-intro > .container{padding:0 10px}
.intro-heading .main-heading{max-width:927px}
.intro-grid{display:flex;align-items:center;max-width:1140px;margin:90px auto 0}
.intro-text{flex:0 0 33.333%;width:33.333%;padding:15px}
.intro-cards{flex:0 0 66.667%;width:66.667%;padding:15px;min-width:0}
.intro-lead .main-heading{font-size:22px;line-height:27.192px;margin-bottom:22px}
.page-leistung .divider{width:50px;height:5px;background:var(--accent)}
.intro-lead .divider{margin-bottom:50px}
.intro-lead .sub-heading{font-size:16px;line-height:27px;color:#666;margin-bottom:65px}
.master-button.btn-small{font-size:17px;line-height:25.5px;padding:18px 35px 17px}

/* Service-Karten (Desktop: 2 Spalten, Mobil: Slider) */
.svc-viewport{position:relative}
.svc-track{display:flex;align-items:flex-start;gap:30px}
.svc-card{position:relative;flex:0 0 calc((100% - 30px) / 2);min-width:0;transition:box-shadow .3s,transform .3s,opacity 0s;opacity:.5}
.svc-card.is-selected{opacity:1}
.svc-card::after{content:"";position:absolute;left:0;top:0;width:100%;height:0;background:var(--accent);transition:.3s}
.svc-card:hover{box-shadow:0 20px 70px 0 rgba(38,42,76,.15)}
.svc-card:hover::after{height:7px}
.svc-card .thumb{overflow:hidden}
.svc-card .thumb img{width:100%;height:auto;transition:.5s}
.svc-card:hover .thumb img{transform:scale(1.1)}
.svc-card .content-wrap{padding:33px 35px 57px;border:1px solid #e7e7e7;text-align:left;transition:.5s}
.svc-card .headline-2{font-size:21px;line-height:26.607px;font-weight:600;color:var(--dark);margin-bottom:34px;transition:.3s}
.svc-card .sep{height:1px;width:calc(100% + 35px);background:#e1e6ee;margin-bottom:38px}
.svc-card .desc{position:relative;margin-bottom:39px}
.svc-card .desc p{margin-bottom:24px}
.svc-dots{display:none}

/* ---------- Warum Planung KD? ---------- */
.lst-warum,.lst-projekt{position:relative;padding:0 var(--band-pad);background:center center/cover no-repeat}
.lst-warum{background-image:url(../../img/leistung/warum-bg.jpg)}
.band-overlay{position:absolute;inset:0;background:var(--navy);opacity:.74}
.warum-inner{position:relative;padding:120px 0}
.lst-warum .main-heading{max-width:960px;width:fit-content;margin:0 auto 50px;text-align:center;color:#fff;font-size:52px;line-height:64.272px;font-weight:300}
.warum-text{width:calc(97.122% - 300px);margin:0 150px;text-align:center;font-size:17px;line-height:25.5px;font-weight:500;color:#fff}
.warum-text p{margin-bottom:24px}

/* ---------- Drei Spalten ---------- */
.lst-cols{padding:0 var(--band-pad)}
.cols-outer{padding:120px 0 100px}
.cols-grid{display:flex;padding-bottom:50px}
.page-grundriss .cols-grid{padding-bottom:70px}
.cols-grid .col{flex:0 0 33.333%;width:33.333%;margin-top:30px;padding:0 30px;border-right:1px solid #666}
.col-title,.col-sub{width:fit-content;max-width:100%}
.col-title{font-size:32px;line-height:39.552px;text-decoration:underline;margin-bottom:22px}
.col-head{padding-bottom:30px}
.col-sub{font-size:22px;line-height:27.192px;margin-bottom:22px}
.cols-grid .sub-heading{font-size:16px;line-height:26px;color:var(--dark)}
.check-list li{position:relative;display:flex;align-items:center;--icon:18px}
.check-list li:not(:last-child){padding-bottom:10px}
.check-list li:not(:first-child){margin-top:10px}
.check-list li:not(:last-child)::after{content:"";position:absolute;left:0;bottom:0;width:100%;border-top:1px solid #ddd}
.check-list li::before{content:"\f058";font-family:"FA5";font-weight:900;flex:0 0 auto;width:calc(var(--icon) * 1.25);font-size:var(--icon);line-height:1;color:var(--accent);-webkit-font-smoothing:antialiased}
.cols-grid .col:nth-child(3) .check-list li{--icon:14px}
.check-text{padding-left:5px;font-size:16px;line-height:24px;font-weight:600;color:var(--dark)}

/* Wohnflächenberechnung: äußere Spalte mit eigener Linie */
.page-wohnflaeche .lst-cols{margin-bottom:70px}
.page-wohnflaeche .cols-outer{margin-top:30px;padding:0 30px;border-right:1px solid #666}

/* ---------- Projekt starten: Bild + Tabs ---------- */
.lst-projekt{background-image:url(../../img/leistung/projekt-bg.jpg)}
.lst-projekt .band-overlay{opacity:.81}
.projekt-grid{position:relative;display:flex;align-items:center;max-width:1140px;margin:0 auto;padding:100px 0}
.projekt-img{flex:0 0 50%;width:50%;display:flow-root}
.projekt-text{flex:0 0 50%;width:50%;padding:15px}

.fancy-image{position:relative;margin:15px calc(14.036% + 35px) 35px 15px}
.fancy-bg{position:absolute;top:20px;left:20px;width:100%;height:100%;z-index:0;background:var(--accent);opacity:0}
.fancy-holder{position:relative;opacity:0}
.fancy-holder img{width:100%}
.fancy-bg,.fancy-holder{transition:opacity 1s 0s cubic-bezier(.23,1,.32,1),transform 1.5s .25s cubic-bezier(.23,1,.32,1)}
.fancy-image.is-in-view .fancy-bg{opacity:1;transform:translate(-20px,-20px)}
.fancy-image.is-in-view .fancy-holder{opacity:1;transform:translate(20px,20px)}

.projekt-text .pre-heading{color:#fff}
.projekt-text .main-heading{color:#fff;margin-bottom:65px}

.master-tabs{position:relative}
.tab-link-wrap{position:absolute;left:0;top:0;width:100%;display:flex;overflow:hidden}
.tab-link{position:relative;display:block;white-space:nowrap;text-align:center;cursor:pointer;font-size:16px;line-height:1;font-weight:500;padding:22px 25px;max-width:33.3333%;color:#cacaca;background:transparent;border-bottom:1px solid #2f3b50;transition:color .3s ease}
.page-planung .tab-link{margin-right:58px}
.tab-link:last-child{margin-right:0}
.tab-link:hover{color:#fff}
.tab-link:focus-visible{outline:1px dotted #fff;outline-offset:-4px}
.tab-link.active{color:#fff;background:rgba(3,15,39,.5);border:1px solid #2f3b50;border-bottom:0}
.tab-link.active::before,.tab-link.active::after{content:"";position:absolute;bottom:0;width:1000px;border-bottom:1px solid #2f3b50}
.tab-link.active::after{left:100%}
.tab-link.active::before{right:100%}
.tab-content-wrap{padding-top:61px}
.tab-content{display:none;padding:33px 30px 45px 35px;background:rgba(3,15,39,.5);color:#fff;border:1px solid #2f3b50;border-top:0}
.tab-content.active{display:block}
.tab-content p{margin-bottom:24px}
.tab-content p:last-child{margin-bottom:0}
.tab-content ul{margin:0 0 20px 30px;padding:0;list-style:disc}

/* ---------- Kontakt (weiß) ---------- */
.lst-contact{padding:100px 0}
.lst-contact-inner{display:flex;max-width:1140px;margin:0 auto}
.lst-contact-left{flex:0 0 43.155%;width:43.155%;padding:10px}
.lst-contact-right{flex:0 0 56.845%;width:56.845%;padding:10px}
.contact-head{padding:0 70px 37px 0}
.contact-head .main-heading{font-family:"Abel",sans-serif;font-size:38px;line-height:46.968px;font-weight:600;color:var(--accent);margin-bottom:22px}
.contact-head .divider{margin-bottom:45px}
.contact-head .sub-heading{font-size:16px;line-height:24px;color:#000;margin-bottom:55px}
.contact-lines li{margin-bottom:16px}
.contact-lines li:last-child{margin-bottom:0}
.contact-lines .cl{position:relative;display:block;padding-left:35px;font-size:22px;line-height:30px;font-weight:600;color:var(--accent)}
.contact-lines i{position:absolute;left:0;top:6px;font-size:18px;line-height:18px;height:18px}
.contact-lines i::before{font-size:18px;line-height:18px;vertical-align:top}
.contact-lines a:hover{color:var(--navy)}

.page-leistung .lst-contact .contact-form{max-width:none;color:#666}
.page-leistung .lst-contact .field{margin-bottom:29.5px}
.page-leistung .lst-contact .field label{display:inline;line-height:24px;margin:0;color:#666}
.page-leistung .lst-contact .field input[type=text],.page-leistung .lst-contact .field input[type=email],.page-leistung .lst-contact .field textarea{margin-top:10px}
.page-leistung .lst-contact .field.submit{margin:2.5px 0 25px}
.page-leistung .lst-contact .field input[type=submit]{background:transparent;color:var(--accent);border:1px solid var(--accent)}
.page-leistung .lst-contact .field input[type=submit]:hover,.page-leistung .lst-contact .field input[type=submit]:focus{background:#222;color:#fff;border-color:#222}
.page-leistung .lst-contact .field.consent{display:block;position:relative;margin:0 0 30px}
.page-leistung .lst-contact .field.consent input{position:absolute;left:0;top:4px;width:13px;height:13px;margin:0}
.page-leistung .lst-contact .field.consent label{display:block;margin:0 0 0 24px;font-weight:400;line-height:24px;color:#666}
.page-leistung .lst-contact .field.consent a{color:var(--accent);font-weight:500}
.page-leistung .lst-contact .field.consent a:hover{color:var(--navy)}
.page-leistung .form-msg{color:var(--accent)}

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width:1024px){
  .intro-grid{display:block}
  .intro-text,.intro-cards{width:100%}
  .intro-text{margin-bottom:60px}
  .cols-grid{display:block}
  .cols-grid .col{width:100%;margin-top:0}
  .projekt-grid{display:block}
  .projekt-img,.projekt-text{width:100%}
  .projekt-img{margin-bottom:60px}
  .fancy-image{margin:15px 35px 35px 15px}
  .contact-lines{display:none}
}

/* =========================================================
   Mobil
   ========================================================= */
@media (max-width:767px){
  .page-leistung .title-band{padding-top:95px}
  .lst-intro{padding:70px 0 70px}
  .intro-grid{margin-top:50px}
  .intro-text{margin-bottom:0}
  .intro-lead .divider{margin-bottom:40px}
  .intro-lead .sub-heading{margin-bottom:40px}

  .svc-viewport{overflow:visible;touch-action:pan-y}
  .svc-track{gap:30px;transition:transform .4s ease}
  .svc-card{flex:0 0 100%}
  .svc-dots{display:flex;justify-content:center;height:25px;margin:30px 0 0;padding:0;list-style:none}
  .svc-dots li{position:relative;width:10px;height:25px;margin:0 5px;cursor:pointer}
  .svc-dots li::after{content:"";position:absolute;left:0;bottom:0;width:10px;height:10px;background:#c6c6c6;transition:.5s}
  .svc-dots li.is-selected::after{height:25px;background:var(--accent)}

  .lst-warum .main-heading{font-size:34px;line-height:40px}
  .warum-text{width:97.122%;margin:0}

  .cols-outer{padding:0}
  .cols-grid{padding-bottom:0}
  .cols-grid .col{border-right:0;border-bottom:1px solid #666;padding:45px 10px 45px 30px}
  .cols-grid .col:first-child{padding-top:70px}
  .cols-grid .col:last-child{border-bottom:0;padding-bottom:70px}
  .cols-btn{padding-bottom:50px}

  .projekt-text .main-heading{font-size:28px;line-height:34.608px}
  .tab-link{padding:22px 0;width:100%;flex:0 1 auto}

  .lst-contact{padding:85px 0}
  .lst-contact-inner{display:block;padding-left:20px}
  .lst-contact-left,.lst-contact-right{width:100%}
  .lst-contact-right{margin-top:30px;padding:0 15px 0 10px}
  .contact-head{padding:0 10px 0 0}

  /* Grundriss: Abstand oben statt unten, dickere Tab-Linie */
  .page-grundriss .cols-grid{padding:70px 0 0}
  .page-grundriss .cols-grid .col:first-child{padding-top:0}
  .page-grundriss .tab-link:not(.active),.page-grundriss .tab-link.active::before,.page-grundriss .tab-link.active::after{border-bottom-width:10px}

  /* Wohnfläche: äußere Spalte trägt den Innenabstand */
  .page-wohnflaeche .cols-outer{margin-top:0;padding:70px 10px 0 30px;border-right:0}
  .page-wohnflaeche .cols-grid .col{padding:45px 0}
  .page-wohnflaeche .cols-grid .col:first-child{padding-top:70px}
  .page-wohnflaeche .cols-grid .col:last-child{padding:70px 0}
  .page-wohnflaeche .cols-grid .col:first-child .col-title{margin-left:-15px;width:calc(100% + 15px);max-width:none;font-size:31px;line-height:38.316px}
}

/* Leistungsseiten: Drei-Spalten-Block als Karten (09.11.) */
.lst-cols .cols-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;padding-bottom:56px;counter-reset:kdcol}
.lst-cols .cols-grid .col{width:auto;flex:none;margin:0;padding:38px 34px 34px;border:1px solid #ececf1;border-radius:16px;background:#fff;box-shadow:0 18px 50px rgba(38,42,76,.07);counter-increment:kdcol;transition:transform .3s ease,box-shadow .3s ease}
.lst-cols .cols-grid .col:hover{transform:translateY(-4px);box-shadow:0 26px 60px rgba(38,42,76,.12)}
.lst-cols .col-title{text-decoration:none;font-size:26px;line-height:32px;margin:0 0 16px;width:auto}
.lst-cols .col-title::before{content:counter(kdcol,decimal-leading-zero);display:block;margin-bottom:14px;font-family:"Roboto",sans-serif;font-size:13px;line-height:1;font-weight:700;letter-spacing:.22em;color:var(--accent)}
.lst-cols .col-head{padding:0 0 22px;margin-bottom:22px;border-bottom:1px solid #eee}
.lst-cols .col-sub{font-family:"Roboto",sans-serif;font-size:12px;line-height:18px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#8a8f9c;margin:0 0 8px;width:auto}
.lst-cols .cols-grid .sub-heading{font-size:15px;line-height:25px;color:#555}
.lst-cols .check-list li{align-items:flex-start;padding:0!important;margin:0!important}
.lst-cols .check-list li+li{margin-top:14px!important}
.lst-cols .check-list li::after{display:none}
.lst-cols .check-list li::before{content:"";flex:0 0 22px;width:22px;height:22px;margin-top:1px;border-radius:50%;background:rgba(92,0,0,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c0000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat}
.lst-cols .check-text{padding-left:12px;font-size:15px;line-height:24px;font-weight:500}
.page-wohnflaeche .lst-cols .cols-outer{border-right:0;padding:0;margin-top:0}
.lst-cols .cols-outer{padding-top:100px}
@media (max-width:1024px){.lst-cols .cols-grid{grid-template-columns:1fr;max-width:640px;margin:0 auto}}
@media (max-width:767px){
  .lst-cols .cols-outer,.page-wohnflaeche .lst-cols .cols-outer{padding:56px 0 0}
  .lst-cols .cols-grid{gap:18px;padding:0 0 40px}
  .lst-cols .cols-grid .col,.page-wohnflaeche .lst-cols .cols-grid .col,.lst-cols .cols-grid .col:first-child,.lst-cols .cols-grid .col:last-child,.page-wohnflaeche .lst-cols .cols-grid .col:first-child,.page-wohnflaeche .lst-cols .cols-grid .col:last-child{padding:28px 22px 26px;border:1px solid #ececf1;border-radius:14px}
  .page-wohnflaeche .lst-cols .cols-grid .col:first-child .col-title{margin-left:0;width:auto;font-size:24px;line-height:30px}
  .lst-cols .col-title{font-size:24px;line-height:30px}
}
@media (min-width:1025px){.lst-cols .cols-grid{max-width:1170px;margin-left:auto;margin-right:auto}}

/* Karten: keine Nummern, Zeilen ueber alle drei Karten auf gleicher Hoehe (Subgrid) */
.lst-cols .col-title::before{display:none}
@media (min-width:1025px){
  .lst-cols .cols-grid{grid-template-rows:repeat(4,auto);row-gap:0}
  .lst-cols .cols-grid .col{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0;align-content:start}
  .lst-cols .col-head{display:contents}
  .lst-cols .col-title{align-self:start}
  .lst-cols .col-sub{align-self:end}
  .lst-cols .cols-grid .sub-heading{padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid #eee}
}
.lst-cols .col-sub{align-self:start}

/* Projekt starten: zwei gleich breite Tabs, mittig, ohne Luecke (09.11.) */
.master-tabs .tab-link-wrap{display:flex}
.master-tabs .tab-link,.page-planung .master-tabs .tab-link{flex:1 1 0;max-width:none;width:auto;margin:0;padding:22px 16px;text-align:center;color:#cacaca;background:rgba(3,15,39,.22);border:1px solid #2f3b50}
.master-tabs .tab-link+.tab-link{border-left:0}
.master-tabs .tab-link:hover{color:#fff;background:rgba(3,15,39,.35)}
.master-tabs .tab-link.active{color:#fff;background:rgba(3,15,39,.5);border-bottom-color:transparent}
.master-tabs .tab-link.active::before,.master-tabs .tab-link.active::after{display:none}
.page-grundriss .master-tabs .tab-link:not(.active){border-bottom-width:1px}
@media (max-width:767px){.master-tabs .tab-link,.page-planung .master-tabs .tab-link{flex:1 1 0;min-width:0;white-space:normal;padding:18px 8px;line-height:1.25}}

/* Tabs: feste Hoehe = laengster Inhalt, Section springt beim Umschalten nicht mehr */
.master-tabs .tab-content-wrap{display:grid}
.master-tabs .tab-content{display:block;grid-area:1/1;visibility:hidden;opacity:0;transition:opacity .25s ease}
.master-tabs .tab-content.active{visibility:visible;opacity:1}
/* Wohnflaeche: gleicher Abstand ueber den Karten wie auf den anderen Leistungsseiten */
.page-wohnflaeche .lst-cols .cols-outer{padding-top:100px}
@media (max-width:767px){.page-wohnflaeche .lst-cols .cols-outer{padding-top:56px}}
