:root{--ink:#171b1a;--muted:#5f6865;--green:#123d34;--green2:#1b5145;--cream:#f7f6f2;--line:#dfe4e1;--white:#fff;--shadow:0 14px 35px rgba(18,61,52,.08)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,"Helvetica Neue",sans-serif;color:var(--ink);background:#fff;line-height:1.55}.container{width:100%;padding-left:clamp(24px,4vw,72px);padding-right:clamp(24px,4vw,72px)}.site-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.97);border-bottom:1px solid #eef0ef}.nav-wrap{height:84px;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{display:flex;align-items:center;flex:0 0 auto;text-decoration:none}.site-header .brand{height:62px}.site-logo{display:block;width:auto;height:48px;max-width:350px;object-fit:contain}.main-nav{display:flex;align-items:center;gap:28px;margin-left:auto}.main-nav>a{font-size:12px;text-transform:uppercase;letter-spacing:.035em;color:#252d2a;text-decoration:none;padding:31px 0 9px;border-bottom:2px solid transparent;white-space:nowrap}.main-nav>a.active{color:var(--green);border-color:var(--green)}.main-nav>a:hover{color:var(--green)}.btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 24px;border:1px solid var(--green);background:var(--green);color:#fff!important;text-decoration:none;text-transform:uppercase;letter-spacing:.045em;font-size:11px;font-weight:700;transition:.2s}.btn:hover{background:var(--green2)}.btn-small{padding:12px 20px!important;border-bottom:1px solid var(--green)!important;margin-left:8px}.btn-outline{background:#fff;color:#17231f!important;border-color:#7c8984}.btn-light-outline{background:transparent;color:#fff!important;border-color:rgba(255,255,255,.7);margin-top:14px}.nav-toggle{display:none;border:0;background:transparent;font-size:25px}.eyebrow{margin:0 0 13px;text-transform:uppercase;letter-spacing:.1em;color:var(--green);font-size:11px;font-weight:700}.lead{font-size:16px;line-height:1.7;color:#404946;max-width:600px}.actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:28px}

/* Homepage */
.home-hero{min-height:590px;display:grid;grid-template-columns:43% 57%;overflow:hidden;background:#f8f8f6}.home-hero-copy{display:flex;align-items:center;background:linear-gradient(110deg,#fafbf9 0%,#f9faf8 72%,#f3f6f4 100%)}.home-hero-inner{padding:72px clamp(42px,5vw,95px)}.home-hero h1{font-size:clamp(45px,4.2vw,72px);line-height:1.02;letter-spacing:-.032em;text-transform:uppercase;margin:0 0 25px;max-width:700px}.home-hero h1::first-line{color:#171b1a}.home-hero-image{min-height:590px;background-image:url('../img/hero-planwerk-house.webp');background-size:cover;background-position:center center}.home-intro{padding:44px clamp(34px,7vw,145px) 50px;text-align:center;background:#fff}.home-narrow{max-width:920px;margin:0 auto}.home-intro h2{font-size:clamp(26px,2.3vw,38px);line-height:1.05;text-transform:uppercase;margin:0 0 17px}.home-intro-text{max-width:850px;margin:0 auto;color:#46504d;font-size:14px}.home-benefits{max-width:1250px;margin:34px auto 0;display:grid;grid-template-columns:repeat(4,1fr)}.home-benefits article{padding:0 34px;border-right:1px solid #d8dcda}.home-benefits article:last-child{border-right:0}.benefit-icon{width:44px;height:44px;margin:0 auto 11px}.benefit-icon svg{width:100%;height:100%;fill:none;stroke:var(--green);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.home-benefits h3{font-size:12px;text-transform:uppercase;letter-spacing:.02em;margin:0 0 8px}.home-benefits p{font-size:12px;color:#545e5a;line-height:1.55;margin:0 auto;max-width:215px}.home-projects{display:grid;grid-template-columns:31% 69%;background:var(--green);color:#fff;padding:34px clamp(34px,7vw,145px);gap:42px;align-items:center}.home-projects-copy .eyebrow{margin-bottom:5px}.eyebrow.light{color:#fff}.home-projects h2{font-size:clamp(25px,2vw,34px);text-transform:uppercase;line-height:1.1;margin:0 0 12px}.home-projects-copy p:not(.eyebrow){font-size:13px;line-height:1.65;color:#e2eeea;max-width:390px}.home-project-images{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.home-project-images a{display:block;overflow:hidden;background:#d8dedb}.home-project-images img{display:block;width:100%;height:190px;object-fit:cover;transition:transform .35s}.home-project-images a:hover img{transform:scale(1.025)}

/* Subpages */
.page-hero{padding:82px 0 58px;background:linear-gradient(120deg,#f8f7f3,#edf2ef)}.page-hero h1{font-size:clamp(38px,4vw,62px);line-height:1.04;letter-spacing:-.03em;margin:0 0 18px;text-transform:uppercase}.content-section{padding:65px 0 95px}.prose{font-size:16px;width:100%}.prose h2{font-size:34px;line-height:1.15;margin:42px 0 17px}.prose h3{font-size:21px}.prose p{max-width:1000px}.prose .intro{font-size:20px;color:#46504d;max-width:1000px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:32px 0}.card{border:1px solid var(--line);padding:28px;min-height:215px;background:#fff}.card .icon{font-size:32px;color:var(--green)}.card h3{font-size:17px;margin:14px 0 7px}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:28px 0}.project{background:#f6f5f1;border:1px solid #e3e6e4;overflow:hidden}.project-image{height:230px;background-size:cover;background-position:center}.project:nth-child(3n+1) .project-image{background-image:url('../img/projekt-1.webp')}.project:nth-child(3n+2) .project-image{background-image:url('../img/projekt-2.webp')}.project:nth-child(3n+3) .project-image{background-image:url('../img/projekt-3.webp')}.project-body{padding:20px}.contact-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:60px}.contact-form label{display:block;font-size:13px;font-weight:700;margin:14px 0 6px}.contact-form input,.contact-form textarea{width:100%;padding:14px 15px;border:1px solid #cfd7d3;font:inherit}.contact-form textarea{min-height:150px}.notice{padding:14px 16px;background:#e3f2eb;border:1px solid #b7d8ca;color:#174d3b;margin-bottom:20px}.check{display:flex!important;gap:9px;align-items:flex-start;font-size:13px!important;font-weight:400!important}.check input{width:auto!important;margin-top:5px}

.site-footer{background:#0f352d;color:#eef7f4;padding:52px 0 20px}.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:45px}.footer-logo{display:block;width:auto;height:auto;max-width:360px;background:#fff;padding:6px}.site-footer a{display:block;color:#e8f3ef;text-decoration:none;margin:7px 0}.site-footer p{color:#c8d8d2;font-size:13px}.site-footer h3{font-size:12px;text-transform:uppercase;letter-spacing:.08em}.footer-bottom{border-top:1px solid rgba(255,255,255,.15);margin-top:34px;padding-top:18px;color:#bfd0ca;font-size:12px}

@media(min-width:1500px){.nav-wrap{height:92px}.site-header .site-logo{height:54px;max-width:390px}.home-hero{min-height:64vh}.home-hero-image{min-height:64vh}.home-hero-inner{padding-left:clamp(70px,6vw,130px)}.home-project-images img{height:220px}}
@media(max-width:1100px){.main-nav{gap:18px}.main-nav>a{font-size:11px}.site-logo{height:44px;max-width:300px}.home-hero{grid-template-columns:46% 54%}.home-hero-inner{padding-left:42px;padding-right:36px}.home-benefits article{padding:0 20px}.home-projects{grid-template-columns:35% 65%;padding-left:42px;padding-right:42px}}
@media(max-width:900px){.nav-toggle{display:block;margin-left:auto}.main-nav{display:none;position:absolute;left:20px;right:20px;top:76px;background:#fff;padding:18px 22px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch}.main-nav.open{display:flex}.main-nav>a{padding:8px 0}.btn-small{margin-left:0}.home-hero{grid-template-columns:1fr;min-height:0}.home-hero-copy{order:1}.home-hero-image{order:2;min-height:430px}.home-hero-inner{padding:58px 38px}.home-benefits{grid-template-columns:1fr 1fr;row-gap:34px}.home-benefits article:nth-child(2){border-right:0}.home-projects{grid-template-columns:1fr;padding:42px}.home-projects-copy p:not(.eyebrow){max-width:700px}.cards,.project-grid{grid-template-columns:1fr 1fr}.contact-grid,.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.container{padding-left:18px;padding-right:18px}.nav-wrap{height:72px}.site-header .brand{height:52px}.site-header .site-logo{height:38px;max-width:235px}.home-hero h1{font-size:40px}.home-hero-inner{padding:48px 22px}.home-hero-image{min-height:300px}.home-intro{padding:38px 22px}.home-benefits{grid-template-columns:1fr}.home-benefits article{border-right:0;border-bottom:1px solid #d8dcda;padding:0 10px 24px}.home-benefits article:last-child{border-bottom:0}.home-projects{padding:38px 22px}.home-project-images{grid-template-columns:1fr}.home-project-images img{height:220px}.cards,.project-grid,.contact-grid,.footer-grid{grid-template-columns:1fr}.page-hero{padding-top:58px}.content-section{padding:48px 0 70px}}


/* Dynamische Leistungsrubriken */
.services-overview{padding-top:54px}.service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;width:100%}.service-card{min-height:230px;border:1px solid #d9dfdc;background:#fff;color:var(--ink);padding:30px 28px;text-decoration:none;display:flex;flex-direction:column;align-items:flex-start;transition:background .25s ease,color .25s ease,border-color .25s ease,transform .25s ease,box-shadow .25s ease}.service-card:hover,.service-card:focus-visible{background:var(--green);color:#fff;border-color:var(--green);transform:translateY(-4px);box-shadow:0 18px 38px rgba(18,61,52,.18);outline:none}.service-card-icon{display:block;width:39px;height:39px;margin-bottom:20px;color:var(--green)}.service-card-icon svg,.service-detail-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.service-card:hover .service-card-icon,.service-card:focus-visible .service-card-icon{color:#fff}.service-card h3{font-size:17px;margin:0 0 14px}.service-card p{font-size:15px;line-height:1.6;margin:0;color:#333d39;max-width:430px}.service-card:hover p,.service-card:focus-visible p{color:#e8f2ef}.service-more{margin-top:auto;padding-top:22px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;opacity:0;transform:translateY(4px);transition:.2s}.service-card:hover .service-more,.service-card:focus-visible .service-more{opacity:1;transform:none}.service-detail-hero{background:linear-gradient(120deg,#f8f7f3,#edf2ef)}.service-detail-head{position:relative;max-width:1200px}.back-link{display:inline-block;color:#53605b;text-decoration:none;font-size:13px;margin-bottom:38px}.back-link:hover{color:var(--green)}.service-detail-icon{width:58px;height:58px;color:var(--green);margin-bottom:18px}.service-detail-content .container{max-width:none}.article-content{max-width:900px;margin:0 auto;font-size:17px;line-height:1.78}.article-content .intro{font-size:21px;line-height:1.65;color:#43504b}.article-content h2{font-size:32px;line-height:1.2;margin:54px 0 17px}.article-content h3{font-size:22px;margin:34px 0 12px}.article-content ul,.article-content ol{padding-left:24px}.article-content li{margin:8px 0}.article-content a{color:var(--green);font-weight:700}.service-cta{max-width:1100px;margin:75px auto 0;padding:38px 42px;background:#f1f5f3;border-left:4px solid var(--green);display:flex;align-items:center;justify-content:space-between;gap:35px}.service-cta h2{margin:0 0 8px;font-size:27px}.service-cta p{margin:0;max-width:700px}.service-cta .eyebrow{margin-bottom:8px}
@media(max-width:900px){.service-grid{grid-template-columns:1fr 1fr}.service-cta{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.service-grid{grid-template-columns:1fr}.service-card{min-height:210px}.service-cta{padding:30px 24px}.article-content h2{font-size:27px}}


/* FIX: Leistungs-Icons immer kompakt halten */
.service-card-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  min-width:42px;
  min-height:42px;
  max-width:42px;
  max-height:42px;
  overflow:hidden;
  flex:0 0 42px;
}
.service-card-icon svg{
  display:block;
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  min-height:42px !important;
  max-width:42px !important;
  max-height:42px !important;
  overflow:visible;
}
.service-detail-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:58px;
  height:58px;
  min-width:58px;
  min-height:58px;
  max-width:58px;
  max-height:58px;
  overflow:hidden;
}
.service-detail-icon svg{
  display:block;
  width:58px !important;
  height:58px !important;
  min-width:58px !important;
  min-height:58px !important;
  max-width:58px !important;
  max-height:58px !important;
}


/* Kompakter Seitenkopf / Hero-Balken */
.page-hero{
  padding-top:48px;
  padding-bottom:42px;
}
.page-hero h1{
  margin-bottom:12px;
}
.page-hero .lead{
  margin-bottom:0;
}
@media(max-width:600px){
  .page-hero{
    padding-top:38px;
    padding-bottom:34px;
  }
}


/* Kompaktere Leistungskacheln */
.service-card{
  min-height:175px;
  padding:22px 28px;
}
.service-card-icon{
  margin-bottom:13px;
}
.service-card h3{
  margin-bottom:9px;
}
.service-more{
  padding-top:12px;
}
@media(max-width:600px){
  .service-card{
    min-height:165px;
    padding:20px 22px;
  }
}

/* Kompakter Kopfbereich der Leistungs-Detailseiten */
.service-detail-hero{padding-top:30px;padding-bottom:30px}
.service-detail-hero .back-link{margin-bottom:20px}
.service-detail-hero h1{margin-bottom:10px}
.service-detail-hero .lead{margin-top:0}
@media(max-width:600px){.service-detail-hero{padding-top:24px;padding-bottom:24px}.service-detail-hero .back-link{margin-bottom:16px}}

/* Bilder innerhalb der Leistungsbeiträge */
.article-content figure.article-image{display:block;clear:both;margin-top:34px;margin-bottom:34px}.article-content figure.article-image[data-width="25"]{width:25%}.article-content figure.article-image[data-width="50"]{width:50%}.article-content figure.article-image[data-width="75"]{width:75%}.article-content figure.article-image[data-width="100"]{width:100%}.article-content figure.article-image[data-align="left"]{margin-left:0;margin-right:auto}.article-content figure.article-image[data-align="center"]{margin-left:auto;margin-right:auto}.article-content figure.article-image[data-align="right"]{margin-left:auto;margin-right:0}.article-content figure.article-image img{display:block;width:100%;height:auto}.article-content figure.article-image.is-rounded img{border-radius:12px}.article-content figure.article-image figcaption{text-align:center;color:#69736f;font-size:13px;line-height:1.45;margin-top:9px}@media(max-width:700px){.article-content figure.article-image[data-width="25"],.article-content figure.article-image[data-width="50"],.article-content figure.article-image[data-width="75"]{width:100%}}


/* Inhaltsblöcke aus dem Leistungseditor */
.article-content .editor-text-block{
  margin:0 0 24px;
}
.article-content .editor-image-row{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  margin:28px 0;
}
.article-content .editor-image-row figure{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
.article-content .editor-image-row img{
  width:100%;
  height:auto;
  display:block;
}
@media(max-width:700px){
  .article-content .editor-image-row{grid-template-columns:1fr}
}


/* Manuell skalierte Textfelder aus dem Leistungseditor */
.article-content .editor-text-block{
  max-width:100%;
  box-sizing:border-box;
}
.article-content{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
@media(max-width:700px){
  .article-content .editor-text-block{
    width:100%!important;
    min-height:0!important;
  }
}


/* Bildreihen: mehrere Bilder gleichmäßig nebeneinander */
.article-content .editor-image-row{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  align-items:start;
}
.article-content .editor-image-row > figure{
  min-width:0;
}

/* Zwei Bilder nebeneinander */
.article-content .editor-image-pair{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  width:100%;
  margin:28px 0;
  align-items:start;
}
.article-content .editor-image-pair > figure{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  min-width:0;
}
.article-content .editor-image-pair img{
  width:100%;
  height:auto;
  display:block;
}
@media(max-width:700px){
  .article-content .editor-image-pair{
    grid-template-columns:1fr;
  }
}


/* Raster-Layout aus dem Leistungseditor */
.article-content{
  display:grid !important;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:18px 16px;
  align-items:start;
  max-width:1200px;
}
.article-content > .editor-grid-block,
.article-content > .editor-text-block,
.article-content > figure.editor-draggable-image,
.article-content > .editor-image-pair{
  grid-column:var(--grid-start,1) / span var(--grid-span,12);
  width:auto !important;
  max-width:none !important;
  min-width:0;
  margin:0;
}
.article-content > .editor-grid-block[data-grid-start][data-grid-span],
.article-content > .editor-text-block[data-grid-start][data-grid-span],
.article-content > figure[data-grid-start][data-grid-span],
.article-content > .editor-image-pair[data-grid-start][data-grid-span]{
  grid-column:attr(data-grid-start number) / span attr(data-grid-span number);
}
/* Browser-kompatible Zuordnung über CSS-Variablen aus Inline-Styles / Editor */
.article-content figure img{
  max-width:100%;
}
@media(max-width:700px){
  .article-content{
    grid-template-columns:1fr !important;
  }
  .article-content > *{
    grid-column:1 / -1 !important;
    width:100% !important;
    min-height:0 !important;
  }
}


/* Leistungsseiten: volle Inhaltsbreite nutzen */
.service-detail-content .container{
  width:100%;
  max-width:none;
  padding-left:clamp(24px,4vw,72px);
  padding-right:clamp(24px,4vw,72px);
}
.service-detail-content .article-content{
  width:100%;
  max-width:none;
  margin:0;
}
.service-detail-content .article-content{
  grid-template-columns:repeat(12,minmax(0,1fr));
}
@media(max-width:700px){
  .service-detail-content .container{
    padding-left:18px;
    padding-right:18px;
  }
}


/* Editor-Hilfen niemals im Frontend anzeigen */
.article-content .grid-block-label,
.article-content .grid-resize-handle,
.article-content .grid-delete-btn,
.article-content .grid-image-edit-btn,
.article-content .text-resize-handle{
  display:none!important;
}


/* =========================================================
   Leistungsinhalt V2 – identisches Raster wie im Backend
   ========================================================= */
.service-detail-content .container{
  width:100%;
  max-width:none;
  padding-left:clamp(24px,4vw,72px);
  padding-right:clamp(24px,4vw,72px);
}
.service-detail-content .article-content{
  --content-grid-gap:16px;
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  gap:18px var(--content-grid-gap)!important;
  align-items:start!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  font-size:17px;
  line-height:1.78;
}
.article-content > .editor-grid-block,
.article-content > .editor-text-block,
.article-content > figure.article-image{
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  box-sizing:border-box;
}
.article-content > .editor-text-block{
  padding:0!important;
}
.article-content > figure.article-image{
  display:block!important;
  clear:none!important;
}
.article-content > figure.article-image[data-width]{
  width:auto!important;
}
.article-content > figure.article-image[data-align]{
  margin:0!important;
}
.article-content > figure.article-image img{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  height:auto!important;
}
.article-content > figure.article-image.is-rounded img{border-radius:12px}
.article-content > figure.article-image figcaption{
  text-align:center;
  color:#69736f;
  font-size:13px;
  line-height:1.45;
  margin-top:9px;
}
.article-content .grid-block-label,
.article-content .grid-resize-handle,
.article-content .grid-delete-btn,
.article-content .grid-image-edit-btn,
.article-content .text-resize-handle,
.article-content .block-drag-handle,
.article-content .block-delete-btn,
.article-content .block-edit-btn,
.article-content .block-resize-handle,
.article-content .block-grid-info{
  display:none!important;
}
@media(max-width:700px){
  .service-detail-content .container{padding-left:18px;padding-right:18px}
  .service-detail-content .article-content{grid-template-columns:1fr!important}
  .article-content > *{
    grid-column:1 / -1!important;
    width:100%!important;
    min-height:0!important;
  }
}


/* =========================================================
   Leistungsinhalt – exakt dasselbe X/Y-Raster wie im Backend
   ========================================================= */
.service-content-only{
  padding-top:30px!important;
  padding-bottom:50px!important;
}
.service-content-only .container{
  width:100%!important;
  max-width:none!important;
  padding-left:clamp(24px,4vw,72px)!important;
  padding-right:clamp(24px,4vw,72px)!important;
}
.service-content-only .article-content{
  --grid-row:20px;
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  grid-auto-rows:var(--grid-row)!important;
  gap:0!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  position:relative;
}
.service-content-only .article-content > .editor-grid-block{
  position:relative!important;
  min-width:0!important;
  min-height:0!important;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.service-content-only .article-content > .editor-text-block{
  overflow:visible!important;
}
.service-content-only .article-content > figure.article-image{
  overflow:hidden!important;
}
.service-content-only .article-content > figure.article-image img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  display:block!important;
}
.service-content-only .article-content > figure.article-image figcaption{
  text-align:center;
  font-size:12px;
  color:#68736f;
  margin-top:6px;
}
.service-content-only .article-content .grid-block-label,
.service-content-only .article-content .grid-resize-handle,
.service-content-only .article-content .grid-delete-btn,
.service-content-only .article-content .grid-image-edit-btn,
.service-content-only .article-content .text-resize-handle,
.service-content-only .article-content .block-drag-handle,
.service-content-only .article-content .block-delete-btn,
.service-content-only .article-content .block-edit-btn,
.service-content-only .article-content .block-resize-handle,
.service-content-only .article-content .block-grid-info{
  display:none!important;
}
@media(max-width:700px){
  .service-content-only .container{padding-left:18px!important;padding-right:18px!important}
  .service-content-only .article-content{
    display:block!important;
  }
  .service-content-only .article-content > .editor-grid-block{
    display:block!important;
    width:100%!important;
    min-height:0!important;
    margin:0 0 20px!important;
    grid-column:auto!important;
    grid-row:auto!important;
  }
  .service-content-only .article-content > figure.article-image img{
    width:100%!important;
    height:auto!important;
    object-fit:contain!important;
  }
}


/* Textfelder ohne interne Scrollbereiche */
.service-content-only .article-content > .editor-text-block{
  overflow:visible!important;
  height:auto!important;
}


/* Textinhalt auf Leistungsseiten niemals abschneiden */
.service-content-only .article-content > .editor-text-block{
  overflow:visible!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.service-content-only .article-content > .editor-text-block p,
.service-content-only .article-content > .editor-text-block h2,
.service-content-only .article-content > .editor-text-block h3,
.service-content-only .article-content > .editor-text-block ul,
.service-content-only .article-content > .editor-text-block ol{
  overflow-wrap:anywhere;
}


/* Kopfbereich der Leistungs-Detailseiten wieder anzeigen */
.compact-service-hero{
  display:block!important;
  padding-top:28px!important;
  padding-bottom:26px!important;
}
.compact-service-hero .container{
  width:100%;
  max-width:none;
  padding-left:clamp(24px,4vw,72px);
  padding-right:clamp(24px,4vw,72px);
}
.compact-service-hero .back-link{
  display:inline-block;
  margin:0 0 14px;
  color:#53605b;
  text-decoration:none;
  font-size:13px;
}
.compact-service-hero .back-link:hover{
  color:var(--green);
}
.compact-service-hero h1{
  margin:0 0 8px!important;
  font-size:clamp(34px,3.4vw,54px)!important;
  line-height:1.04;
  text-transform:uppercase;
}
.compact-service-hero .lead{
  margin:0!important;
  max-width:900px;
  font-size:16px;
  line-height:1.6;
}
@media(max-width:600px){
  .compact-service-hero{
    padding-top:22px!important;
    padding-bottom:22px!important;
  }
  .compact-service-hero .container{
    padding-left:18px;
    padding-right:18px;
  }
}

/* Frontend Punktraster V2 – keine Überlagerungen */
.service-content-only .article-content{--grid-cell:20px;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(var(--grid-cell),1fr))!important;grid-auto-rows:var(--grid-cell)!important;grid-auto-flow:row!important;gap:0!important;align-items:stretch!important;position:relative!important;width:100%!important;max-width:none!important;min-height:0!important}
.service-content-only .article-content > .editor-grid-block{position:relative!important;left:auto!important;top:auto!important;width:auto!important;height:auto!important;min-width:0!important;max-width:none!important;margin:0!important;box-sizing:border-box!important}
.service-content-only .article-content > .editor-text-block{overflow:visible!important}
.service-content-only .article-content > figure.article-image{overflow:hidden!important}
.service-content-only .article-content > figure.article-image img{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important}
@media(max-width:700px){.service-content-only .article-content{display:block!important}.service-content-only .article-content > .editor-grid-block{display:block!important;width:100%!important;height:auto!important;margin:0 0 20px!important;grid-column:auto!important;grid-row:auto!important}.service-content-only .article-content > figure.article-image img{height:auto!important}}


/* Leistungsinhalt V3 */
.service-content-only .article-content{
  --pw-cell:20px;
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(var(--pw-cell),1fr))!important;
  grid-auto-rows:var(--pw-cell)!important;
  grid-auto-flow:row!important;
  gap:0!important;
  align-items:stretch!important;
  position:relative!important;
  width:100%!important;
  max-width:none!important;
  min-height:0!important;
}
.service-content-only .article-content > .editor-grid-block{
  position:relative!important;
  left:auto!important;
  top:auto!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.service-content-only .article-content > .editor-text-block{overflow:visible!important}
.service-content-only .article-content > figure.editor-image-block{overflow:hidden!important}
.service-content-only .article-content > figure.editor-image-block img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  display:block!important;
}
.article-content .pw-drag,.article-content .pw-delete,.article-content .pw-edit,.article-content .pw-resize,.article-content .pw-info{
  display:none!important;
}
@media(max-width:700px){
  .service-content-only .article-content{display:block!important}
  .service-content-only .article-content > .editor-grid-block{
    display:block!important;
    width:100%!important;
    height:auto!important;
    margin:0 0 20px!important;
    grid-column:auto!important;
    grid-row:auto!important;
  }
  .service-content-only .article-content > figure.editor-image-block img{height:auto!important}
}


/* =========================================================
   Kompakte Textabstände in Leistungs-Inhaltsblöcken
   ========================================================= */
.service-content-only .article-content > .editor-text-block{
  line-height:1.55!important;
}

.service-content-only .article-content > .editor-text-block > :first-child{
  margin-top:0!important;
}

.service-content-only .article-content > .editor-text-block > :last-child{
  margin-bottom:0!important;
}

.service-content-only .article-content > .editor-text-block p{
  margin:0 0 10px!important;
}

.service-content-only .article-content > .editor-text-block h2{
  margin:0 0 8px!important;
  line-height:1.18!important;
}

.service-content-only .article-content > .editor-text-block h3{
  margin:0 0 6px!important;
  line-height:1.22!important;
}

.service-content-only .article-content > .editor-text-block ul,
.service-content-only .article-content > .editor-text-block ol{
  margin:4px 0 10px!important;
}

.service-content-only .article-content > .editor-text-block li{
  margin:2px 0!important;
}


/* =========================================================
   Fix: Bildblöcke halten sich an ihre gespeicherte Rasterhöhe
   ========================================================= */
@media(min-width:701px){
  .service-content-only .article-content > figure.editor-image-block{
    position:relative!important;
    min-width:0!important;
    min-height:0!important;
    align-self:stretch!important;
    overflow:hidden!important;
    contain:layout paint!important;
  }

  .service-content-only .article-content > figure.editor-image-block > img{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    display:block!important;
  }
}

@media(max-width:700px){
  .service-content-only .article-content > figure.editor-image-block > img{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:auto!important;
    max-height:none!important;
  }
}

/* Reine Leistungsbeschreibungen wachsen mit ihrem Textinhalt. */
@media(min-width:701px){
  .service-content-only .article-content:has(> .service-illustrated){grid-template-columns:repeat(61,minmax(0,1fr))!important;grid-auto-rows:minmax(20px,auto)!important}
}
.service-illustration-note{font-size:12px;color:#748078}
@media(max-width:600px){body:has(.service-illustrated) .compact-service-hero h1{font-size:clamp(24px,7.4vw,34px)!important;overflow-wrap:anywhere}}
.service-content-only .article-content:has(> .service-copy:only-child){display:block!important}

/* Frontend-Kopfbereich: Einleitung auf Desktop einzeilig */
.page-hero .lead,
.compact-service-hero .lead{
  max-width:none!important;
  white-space:nowrap!important;
}

@media(max-width:900px){
  .page-hero .lead,
  .compact-service-hero .lead{
    white-space:normal!important;
  }
}


/* =========================================================
   Einheitliche Höhe der Seiten-Kopfbalken
   ========================================================= */

/*
 * Normale Seiten und Leistungs-Detailseiten verwenden dieselben
 * Abstände und dieselbe Typografie. Dadurch ist der farbige
 * Kopfbereich auf allen Inhaltsseiten gleich hoch.
 * Die Startseite (.home-hero) bleibt davon unberührt.
 */
.page-hero,
.compact-service-hero{
  padding-top:28px!important;
  padding-bottom:26px!important;
  box-sizing:border-box!important;
}

.page-hero .container,
.compact-service-hero .container{
  width:100%;
}

.page-hero .eyebrow,
.compact-service-hero .back-link{
  display:block;
  margin:0 0 14px!important;
  font-size:13px!important;
  line-height:1.4!important;
}

.page-hero h1,
.compact-service-hero h1{
  margin:0 0 8px!important;
  font-size:clamp(34px,3.4vw,54px)!important;
  line-height:1.04!important;
}

.page-hero .lead,
.compact-service-hero .lead{
  margin:0!important;
  font-size:16px!important;
  line-height:1.6!important;
  max-width:none!important;
}

@media(max-width:600px){
  .page-hero,
  .compact-service-hero{
    padding-top:22px!important;
    padding-bottom:22px!important;
  }

  .page-hero h1,
  .compact-service-hero h1{
    font-size:clamp(30px,9vw,42px)!important;
  }
}


/* =========================================================
   Projektkarten und Projekt-Detailseiten
   ========================================================= */
.project-grid .project{
  display:block;
  color:var(--ink);
  text-decoration:none;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.project-grid .project:hover,
.project-grid .project:focus-visible{
  transform:translateY(-4px);
  border-color:#b9c9c2;
  box-shadow:0 16px 34px rgba(18,61,52,.12);
  outline:none;
}
.project-grid .project-body{
  display:flex;
  flex-direction:column;
  min-height:210px;
}
.project-grid .project-body h3{
  margin:0 0 10px;
}
.project-grid .project-body .eyebrow{
  margin:0 0 8px;
}
.project-more{
  margin-top:auto;
  padding-top:16px;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--green);
}
.project-detail-meta{
  margin:0 0 8px;
  color:#53605b;
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}


/* Projekt-Vorschaubilder aus dem Backend */
.project-grid .project-image{
  position:relative;
  width:100%;
  height:auto!important;
  aspect-ratio:16 / 9;
  overflow:hidden;
  background-size:cover;
  background-position:center;
}

.project-grid .project-image img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  will-change:transform;
}


/* =========================================================
   Neues Planwerk-Krist-Logo
   ========================================================= */
.site-header .site-logo{
  display:block;
  width:360px!important;
  height:68px!important;
  max-width:min(700px,46vw)!important;
  object-fit:cover;
}
.footer-logo{
  display:block;
  width:auto!important;
  height:auto!important;
  max-width:min(620px,100%)!important;
  object-fit:contain;
  background:transparent;
  /* Weiß wird beim Invertieren schwarz und durch screen ausgeblendet. */
  filter:invert(1);
  mix-blend-mode:screen;
}
@media(max-width:1100px){
  .site-header .site-logo{
    width:282px!important;
    height:60px!important;
    max-width:48vw!important;
  }
}
@media(max-width:900px){
  .site-header .site-logo{
    width:254px!important;
    height:54px!important;
    max-width:68vw!important;
  }
}
@media(max-width:600px){
  .site-header .site-logo{
    width:254px!important;
    height:54px!important;
    max-width:78vw!important;
  }
}

/* Den schmalen hellen Außenrand der Bilddatei im Hero ausblenden. */
.home-hero-image{
  position:relative;
  overflow:hidden;
  background-image:none;
}
.home-hero-image>img{
  position:absolute;
  inset:-4px;
  width:calc(100% + 8px);
  height:calc(100% + 8px);
  max-width:none;
  object-fit:cover;
  object-position:center;
}
.site-footer .footer-admin-link{
  display:inline;
  margin:0;
  color:inherit;
  font:inherit;
  text-decoration:none;
}
.site-footer .footer-admin-link:focus-visible{
  outline:2px solid currentColor;
  outline-offset:3px;
}
/* Mit zusätzlichem Anfrage-Button frühzeitig auf mobile Navigation wechseln. */
@media(min-width:901px) and (max-width:1200px){
 .site-header .nav-toggle{display:block;margin-left:auto}
 .site-header .main-nav{display:none;position:absolute;left:20px;right:20px;top:76px;background:#fff;padding:18px 22px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch;margin-left:0}
 .site-header .main-nav.open{display:flex}
 .site-header .main-nav>a{padding:8px 0}
 .site-header .main-nav .btn-small{margin-left:0}
}
.site-header .main-nav .inquiry-nav-button{border-bottom:1px solid var(--green)!important}
@media(min-width:1201px){.site-header .main-nav{gap:16px}.site-header .site-logo{max-width:min(360px,29vw)!important}}
/* Gleiche vertikale Textmitte für Navigationslinks und Anfrage-Button. */
@media(min-width:1201px){
 .site-header .main-nav>a:not(.inquiry-nav-button){padding:12px 0;border-top:2px solid transparent}
}

/* Einheitliche Rückbuttons auf allen Detailseiten. */
.back-link,.compact-service-hero .back-link{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  width:fit-content;max-width:100%;min-height:44px;padding:11px 16px;
  background:var(--green);color:#fff;border:1px solid var(--green);border-radius:6px;
  font-weight:600;text-decoration:none;box-shadow:0 2px 5px rgba(18,61,52,.12);
  transition:background .15s ease,box-shadow .15s ease;
}
.back-link svg{flex:none;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.back-link:hover,.compact-service-hero .back-link:hover{background:#205448;color:#fff;box-shadow:0 3px 8px rgba(18,61,52,.2)}
.back-link:focus-visible,.compact-service-hero .back-link:focus-visible{outline:3px solid #267a61;outline-offset:3px;color:#fff}
/* Publizierte Blöcke verwenden dieselbe Rasterbreite und Typografie wie der Editor. */
.service-content-only .article-content.saved-editor-layout{
  max-width:var(--saved-grid-width)!important;
  margin-left:0!important;margin-right:auto!important;
  grid-template-columns:repeat(var(--saved-grid-columns),minmax(0,1fr))!important;
  grid-auto-rows:minmax(20px,auto)!important;
  font-family:Arial,"Helvetica Neue",sans-serif;font-size:17px;line-height:1.5;
}
.service-content-only .article-content.saved-editor-layout>.editor-text-block{
  padding:0!important;border:0;line-height:1.5!important;
}
.service-content-only .article-content.saved-editor-layout>.editor-text-block h2,
.service-content-only .article-content.saved-editor-layout>.editor-text-block h3{margin-top:0!important;margin-bottom:0!important}
.service-content-only .article-content.saved-editor-layout>.editor-text-block h2{font-size:32px!important}
.service-content-only .article-content.saved-editor-layout>.editor-text-block h3{font-size:22px!important}
.service-content-only .article-content.saved-editor-layout>figure.is-rounded img{border-radius:12px}
@media(max-width:900px){
  .service-content-only .article-content.saved-editor-layout{display:block!important}
  .service-content-only .article-content.saved-editor-layout>.editor-grid-block{grid-area:auto!important;width:100%!important;height:auto!important;margin:0 0 20px!important}
  .service-content-only .article-content.saved-editor-layout>figure.editor-image-block>img{position:relative!important;inset:auto!important;height:auto!important;max-height:none!important}
  .service-content-only .article-content.saved-editor-layout>.editor-text-block{padding:0!important;border:0}
}

/* Hauptüberschriften einheitlich wie im Anfrageformular. */
.page-hero h1,.home-hero h1{
  font-family:Arial,"Helvetica Neue",sans-serif;
  font-weight:400!important;
  font-size:clamp(34px,3.4vw,54px)!important;
  line-height:1.04!important;
  letter-spacing:-.03em;
  margin:0 0 8px!important;
  text-transform:uppercase;
}
.page-hero .eyebrow,.home-hero .eyebrow{
  font-weight:400;font-size:13px;line-height:1.4;margin:0 0 14px;
}
.home-hero .lead{margin:0;font-size:16px;line-height:1.6}
@media(max-width:600px){
  body .page-hero h1,body .page-hero.compact-service-hero h1,body .home-hero h1{
    font-size:clamp(22px,6.4vw,32px)!important;
    overflow-wrap:anywhere;
  }
}

/* Dezentes Portrait in der persönlichen Vorstellung. */
.about-profile{display:block}
.contact-grid:has(> .about-profile){grid-template-columns:2fr 1fr;align-items:start}
.about-profile>div{display:grid;grid-template-columns:260px minmax(0,1fr);grid-template-rows:auto auto 1fr;gap:12px 28px;align-items:start}
.about-profile-photo{display:block;width:260px;max-width:100%;height:auto;margin:0;grid-column:1;grid-row:2 / span 2}
.prose .about-profile h2{grid-column:1 / -1;margin:0}
.prose .about-profile p{grid-column:2;margin:0}
.about-profile + .card{border:0;box-shadow:none;background:transparent}
@media(max-width:1100px){
 .contact-grid:has(> .about-profile){grid-template-columns:1fr}
 .about-profile + .card{padding-left:0;padding-right:0}
}
@media(max-width:600px){
 .about-profile>div{grid-template-columns:1fr;grid-template-rows:none}
 .about-profile-photo,.prose .about-profile p{grid-column:1;grid-row:auto}
}


/* Gleicher Abstand unter dem Titelbalken wie in der Leistungsübersicht. */
.page-hero + .content-section{padding-top:54px!important}
.page-hero + .content-section > .container > :first-child{margin-top:0!important}
.page-hero + .content-section .prose > .contact-grid > div:not(.card) > :first-child{margin-top:0!important}
.page-hero + .content-section .inquiry-form{padding-top:0}

/* Kontaktfelder in derselben kompakten Größe wie im Anfrageformular. */
.contact-form input:not([type=checkbox]):not([type=hidden]),
.contact-form textarea{
 display:block;width:100%;padding:8px 10px;border:1px solid #bdcdc6;
 border-radius:0;background:#fff;color:#17231f;font-size:14px;line-height:20px;
}
.contact-form input:not([type=checkbox]):not([type=hidden]){height:38px}
.contact-form textarea{height:110px;min-height:110px;resize:vertical}
@media(max-width:700px){
 .contact-form input:not([type=checkbox]):not([type=hidden]){height:42px;font-size:16px}
 .contact-form textarea{font-size:16px}
}

/* Kompakte Formularbreite auf der Kontaktseite. */
.contact-form{width:100%;max-width:460px;justify-self:start}

/* Kontaktformular nah an der Trennlinie neben den Kontaktdaten. */
.contact-grid:has(.contact-form){grid-template-columns:minmax(240px,320px) minmax(0,1fr);column-gap:32px;align-items:start}
.contact-grid .contact-form{border-left:1px solid #dfe4e1;padding-left:24px;max-width:485px}
@media(max-width:800px){
 .contact-grid:has(.contact-form){grid-template-columns:1fr;row-gap:28px}
 .contact-grid .contact-form{border-left:0;border-top:1px solid #dfe4e1;padding-left:0;padding-top:20px;max-width:460px}
}

/* Eigenständiger Videobereich direkt vor dem Footer der Startseite. */
.home-video-section{padding:0 24px 54px}
.home-video-inner{position:relative;max-width:560px;margin:0 auto}
.home-video-inner video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#f2f3eb}
.hero-video-toggle{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:72px;height:50px;padding:0;border:0;border-radius:10px;background:rgba(18,61,52,.94);color:#fff;cursor:pointer;box-shadow:0 2px 12px #0003}
.hero-video-toggle svg{width:28px;height:28px;fill:currentColor}
.hero-video-toggle:hover{background:#123d34}
.hero-video-toggle:focus-visible{outline:3px solid #fff;outline-offset:3px}
.hero-video-toggle[hidden]{display:none}
