/* Leistungsseiten (body.page-service): ruhiger, zentrierter Aufbau.
   Einstieg hell mit grosser Ueberschrift, ein einziger Knopf, darunter das Foto.
   Breadcrumb, Nummern-Kicker, das zweite identische Foto, der Knopf im Fliesstext und
   das Kontakt-Band nach dem Formular sind aus dem Markup entfernt; die BreadcrumbList
   steht weiter im JSON-LD. Langtexte liegen in <details class="more"> - sie bleiben im
   HTML und damit fuer die Suche lesbar, stehen aber nicht mehr als Textwand im Weg. */
/* Einstieg der Leistungsseiten: das Foto zuerst. Dahinter liegt dasselbe Foto stark
   weichgezeichnet als Lichtstimmung (site.js haengt es ein) - so wirkt der Kopf
   flaechig und farbig, ohne dass die teils kleinen Vorlagen (450-740 px) hochgezogen
   werden muessen. Auf dem Handy steht das Foto gross oben, die Ueberschrift laeuft in
   seinen unteren Rand. */
.page-service .phero.phero--service-detail{background:var(--ink);color:#fff;isolation:isolate;padding:clamp(34px,4.6vw,72px) 0 clamp(40px,5vw,76px)}
.hero-amb{position:absolute;left:-12%;top:-12%;width:124%;height:124%;max-width:none;object-fit:cover;z-index:-2;filter:blur(46px) saturate(1.35) brightness(.6);opacity:0;transition:opacity 1.4s var(--ease);pointer-events:none}
.hero-amb.on{opacity:1}
.page-service .phero--service-detail::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(14,16,19,.3),rgba(14,16,19,.72) 62%,rgba(14,16,19,.94))}
.page-service .phero--service-detail h1{font-size:clamp(36px,4vw,62px);line-height:1.04;margin-top:0;letter-spacing:0;overflow-wrap:normal;text-shadow:0 2px 24px rgba(0,0,0,.35)}
.page-service .phero--service-detail .lead{color:#e6e8ea;max-width:32em;margin-top:18px;font-size:clamp(17px,1.5vw,20px);line-height:1.5}
.page-service .phero--service-detail .phero-cta{margin:28px 0 0!important}
.page-service .phero--service-detail .phero-cta .btn--green,.page-service .phero--service-detail .phero-cta .btn--ghost{display:none}
.page-service .phero--service-detail .service-hero-media{position:relative;display:block;justify-self:end;width:fit-content;max-width:100%;padding:0;border:0;background:none;border-radius:clamp(20px,2.4vw,30px);overflow:hidden;box-shadow:0 44px 90px -40px rgba(0,0,0,.85),0 0 0 1px rgba(255,255,255,.1)}
.page-service .service-hero-media img{display:block;max-height:min(66vh,580px);border-radius:0}

.page-service .about{background:var(--paper);padding-top:clamp(18px,3vw,40px);padding-bottom:clamp(36px,5vw,64px)}
.page-service .about .grid{display:block;max-width:880px;margin:0 auto}
.page-service .about h2{font-size:clamp(30px,4.4vw,54px);line-height:1.02}
.page-service .about .prose>p:first-child{font-size:clamp(20px,2.3vw,27px);line-height:1.45;color:var(--ink);font-weight:500}
.page-service .about .prose ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:30px 0}
.page-service .about .prose li{margin:0;padding:18px 16px 18px 46px;background:var(--mist);border-radius:16px;font-size:16px;line-height:1.3;font-weight:500;color:var(--ink);overflow-wrap:anywhere;hyphens:auto}
.page-service .about .prose li::before{content:"\f00c";left:18px;top:19px;font-size:14px;background:none;-webkit-text-fill-color:currentColor;color:var(--orange)}
.page-service .about .figure{margin-top:34px}
.page-service .about .figure img{height:auto;max-height:520px}

/* Aufklappbare Langtexte */
.more-sec{padding:0}
.more-sec:has(+ :not(.more-sec)){padding-bottom:clamp(44px,6vw,80px)}
.more{max-width:880px;margin:0 auto;border-top:1px solid var(--line)}
.more-sec:has(+ :not(.more-sec)) .more:last-child{border-bottom:1px solid var(--line)}
.more summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 2px}
.more summary::-webkit-details-marker{display:none}
.more summary :is(h2,h3){font-family:'Oswald',sans-serif;font-weight:600;font-size:clamp(18px,1.8vw,22px);line-height:1.3;margin:0;color:var(--ink)}
.more summary::after{content:"\f067";font-family:"Font Awesome 6 Free";font-weight:900;font-size:13px;flex:none;width:38px;height:38px;border-radius:50%;background:var(--mist);color:var(--orange-deep);display:flex;align-items:center;justify-content:center;transition:transform .35s var(--ease),background .25s,color .25s}
.more[open] summary::after{transform:rotate(45deg);background:var(--orange-deep);color:#fff}
.more summary:focus-visible{outline:3px solid var(--orange-deep);outline-offset:4px;border-radius:8px}
.more .prose{padding:0 2px 26px}
.more .prose p{font-size:17px}
.more .lsgrid{padding:0 2px 28px}
/* Stadtseiten behalten ihr eigenes Foto neben dem Text - nur ruhiger gesetzt. */
.page-service .about .figure picture{display:block}
@supports (interpolate-size:allow-keywords){
  .more{interpolate-size:allow-keywords}
  .more::details-content{block-size:0;overflow:clip;transition:block-size .4s var(--ease),content-visibility .4s allow-discrete}
  .more[open]::details-content{block-size:auto}
}

/* Bewegung: Einstieg blendet gestaffelt ein; beim Wegscrollen zieht sich das Foto
   leicht zurueck, die Merkmale steigen einzeln ins Bild. Scroll-gekoppelt nur dort,
   wo der Browser es nativ kann - sonst steht alles einfach da. */
@media(prefers-reduced-motion:no-preference){
  .page-service .phero--service-detail .lead,.page-service .phero--service-detail .phero-cta{animation:svcIn .9s var(--ease) both}
  .page-service .phero--service-detail .lead{animation-delay:.15s}
  .page-service .phero--service-detail .phero-cta{animation-delay:.28s}
  .page-service .service-hero-media img{animation:svcKen 2.6s var(--ease) both}
  @keyframes svcIn{from{opacity:0;transform:translateY(26px)}}
  @keyframes svcKen{from{transform:scale(1.14)}}
  @supports (animation-timeline:view()){
    .page-service .phero--service-detail .service-hero-media{animation:svcOut linear both;animation-timeline:view();animation-range:exit 0% exit 100%}
    @keyframes svcOut{to{transform:translateY(-6%) scale(.94);opacity:.4}}
    .page-service .about .prose li{animation:svcUp linear both;animation-timeline:view();animation-range:entry 0% entry 90%}
    @keyframes svcUp{from{opacity:0;transform:translateY(22px) scale(.96)}}
  }
}

@media(max-width:860px){
  .page-service .about .prose ul{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Handy/Tablet: ein einziges Objekt. Ueberschrift, eine ruhige Zeile und der Knopf
   liegen unten IM Foto statt darunter - vorher standen Titel, drei Zeilen Text und ein
   leuchtender Knopf als eigener Block unter dem Bild und haben es uebertoent. */
@media(max-width:860px){
  .page-service .phero.phero--service-detail{padding:12px 0 14px}
  .page-service .phero--service-detail .wrap{padding:0 12px}
  .page-service .phero--service-detail .service-hero-layout{gap:0}
  .page-service .phero--service-detail .service-hero-media{grid-area:1/1;justify-self:stretch;width:100%;height:min(128vw,70svh);border-radius:26px}
  .page-service .service-hero-media img{width:100%;height:100%;max-height:none;object-fit:cover}
  .page-service .phero--service-detail .service-hero-media::after{content:"";position:absolute;inset:auto 0 0 0;height:72%;background:linear-gradient(180deg,transparent 0%,rgba(14,16,19,.5) 42%,rgba(14,16,19,.9) 100%);pointer-events:none}
  .page-service .service-hero-copy{grid-area:1/1;align-self:end;position:relative;z-index:2;padding:0 20px 22px}
  .page-service .phero--service-detail h1{font-size:clamp(27px,7.4vw,40px);line-height:1.08}
  .page-service .phero--service-detail .lead{margin-top:10px;font-size:15.5px;line-height:1.45;color:rgba(255,255,255,.84);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .page-service .phero--service-detail .phero-cta{margin:16px 0 0!important}
}
@media(max-width:560px){
  .page-service .phero--service-detail h1{overflow-wrap:anywhere}
  .page-service .about .prose ul{gap:8px;margin:24px 0}
  .page-service .about .prose li{padding:14px 10px 14px 36px;font-size:14.5px;border-radius:14px}
  .page-service .about .prose li::before{left:13px;top:15px;font-size:12px}
  .more summary{padding:18px 0}
  .more summary::after{width:34px;height:34px}
  .more .prose p{font-size:16px}
}
@media(max-width:720px){
  /* Telefon, WhatsApp und Anfrage stehen in der mitlaufenden Kopfzeile; die schwebenden
     Knoepfe lagen zusaetzlich ueber Text und Merkmal-Kacheln. */
  /* Vorteilskarten (Photovoltaik) als Wischleiste statt vier Karten untereinander. */
  .page-service .feat-grid{display:flex;gap:12px;margin:0 -24px;padding:4px 24px 20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 24px;scrollbar-width:none}
  .page-service .feat-grid::-webkit-scrollbar{display:none}
  .page-service .feat-grid>.feat{flex:0 0 84%;scroll-snap-align:start;opacity:1;transform:none}
}
/* Handy: Karte auf Weiss wie auf der Startseite - ohne dunklen Rahmen um das Foto. */
@media(max-width:860px){
  .page-service .phero.phero--service-detail{background:var(--paper);padding:12px 0 6px}
  .page-service .phero--service-detail::before,.page-service .phero--service-detail .hero-amb{display:none}
  .page-service .phero--service-detail .service-hero-media{border-radius:28px;box-shadow:0 30px 60px -34px rgba(20,22,26,.55)}
  .page-service .service-hero-copy{padding:0 12px 12px}
  .page-service .service-hero-copy :is(h1,.lead){margin-left:10px;margin-right:10px}
}
/* Handy: Knopfleiste unter der Karte. Foto und Textspalte teilen sich eine Rasterzelle;
   das Foto laesst unten 78 px frei, in denen die Leiste als letztes Element der
   Textspalte steht. */
@media(max-width:860px){
  .page-service .phero--service-detail .service-hero-media{align-self:start;margin-bottom:78px}
  .page-service .service-hero-copy{padding:0}
  .page-service .service-hero-copy :is(h1,.lead){margin-left:22px;margin-right:22px}
  .page-service .phero--service-detail .phero-cta{margin:34px 0 0!important}
}
/* Projektseiten: zwei Fotos nebeneinander mit Bildunterschrift. */
.projfotos figure{margin:0;min-width:0}
.projfotos figcaption{margin-top:8px;font-size:13.5px;line-height:1.4;color:var(--steel)}
.projfotos img{height:auto}
