
.detail-hero { position: relative; overflow: hidden; padding: 95px 0 105px; background: linear-gradient(135deg, #f6fbfe 0%, #edf5fa 65%, #fff 100%); }
html[data-theme="fresh"] .detail-hero { background: linear-gradient(135deg, #f5fbf9 0%, #e8f4f1 65%, #fff 100%); }
.detail-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 90px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; color: var(--muted); font-size: .78rem; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs strong { color: var(--navy); }
.detail-copy h1 { max-width: 780px; margin: 0; color: var(--navy-deep); font-size: clamp(3.2rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.065em; }
.detail-lead { max-width: 720px; margin: 28px 0 0; color: var(--muted); font-size: 1.15rem; line-height: 1.8; }
.detail-summary { position: relative; overflow: hidden; padding: 0 36px 32px; border: 1px solid rgba(255,255,255,.8); border-radius: 28px; background: rgba(255,255,255,.88); box-shadow: var(--shadow-lg); backdrop-filter: blur(18px); }
.detail-summary::before { content:""; position:absolute; inset:0 0 auto; height:5px; border-radius:28px 28px 0 0; background: linear-gradient(90deg,var(--pink),var(--yellow),var(--green),var(--cyan)); }
.detail-summary-photo { position:relative; height:210px; margin:0 -36px 28px; overflow:hidden; background:#dce9e3; }
.detail-summary-photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.detail-summary-photo--upper img { object-position:center 32%; }
.detail-summary-photo--facade img { object-position:center 66%; }
.detail-summary-photo--floor img { object-position:center 62%; }
.detail-summary-photo figcaption { position:absolute; left:18px; bottom:16px; max-width:calc(100% - 36px); padding:8px 12px; border:1px solid rgba(255,255,255,.26); border-radius:999px; color:#fff; background:rgba(3,34,28,.78); font-size:.7rem; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.detail-summary-icon { display:grid; place-items:center; width:64px; height:64px; margin-bottom:28px; border-radius:18px; color:var(--blue); background:var(--surface); }
.detail-summary-icon svg { width:34px; height:34px; }
.summary-kicker { display:block; margin-bottom:12px; color:var(--navy); font-size:.76rem; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.detail-summary ul { display:grid; gap:12px; margin:0; padding:0; list-style:none; }
.detail-summary li { display:flex; align-items:flex-start; gap:10px; color:#405464; font-size:.91rem; }
.detail-summary li span { display:grid; place-items:center; flex:0 0 21px; width:21px; height:21px; border-radius:50%; color:var(--green); background:color-mix(in srgb,var(--green) 12%,transparent); font-size:.72rem; font-weight:900; }
.detail-summary > a { display:flex; justify-content:space-between; align-items:center; min-height:44px; margin-top:28px; padding-top:22px; border-top:1px solid var(--line); color:var(--navy); font-size:.87rem; font-weight:850; }
.detail-service-visual { position:relative; min-height:560px; margin:0; overflow:hidden; border:1px solid rgba(255,255,255,.18); border-radius:30px; background:#163f36; box-shadow:0 28px 80px rgba(6,30,25,.3); }
.detail-service-visual::after { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg,rgba(4,24,20,0) 45%,rgba(4,24,20,.18) 62%,rgba(4,24,20,.92) 100%); pointer-events:none; }
.detail-service-visual img { position:absolute; inset:0; z-index:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.detail-service-visual--upper img { object-position:center 32%; }
.detail-service-visual--office img { object-position:68% center; }
.detail-service-visual--facade img { object-position:center 62%; }
.detail-service-visual--floor img { object-position:center 58%; }
.detail-service-visual--solar img { object-position:center 58%; }
.detail-visual-content { position:absolute; z-index:2; right:0; bottom:0; left:0; padding:34px; color:#fff; }
.detail-visual-kicker { display:block; margin-bottom:12px; color:#d4e3a1; font-size:.76rem; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.detail-visual-content h2 { max-width:420px; margin:0 0 18px; color:#fff; font-size:clamp(1.5rem,2vw,2rem); line-height:1.12; letter-spacing:-.03em; text-wrap:balance; }
.detail-visual-content ul { display:grid; grid-template-columns:1fr; gap:0; margin:0; padding:0; list-style:none; }
.detail-visual-content li { padding:10px 0; border-top:1px solid rgba(255,255,255,.24); color:rgba(255,255,255,.92); font-size:.92rem; font-weight:650; line-height:1.5; }
.detail-orb { position:absolute; border-radius:50%; }
.detail-orb-one { width:420px; height:420px; right:-180px; top:-190px; border:85px solid color-mix(in srgb,var(--cyan) 8%,transparent); }
.detail-orb-two { width:160px; height:160px; left:44%; bottom:-100px; background:color-mix(in srgb,var(--yellow) 12%,transparent); }
.intro-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:100px; align-items:start; }
.intro-grid h2, .faq-grid h2, .related-head h2, .detail-cta h2 { margin:0; color:var(--navy-deep); font-size:clamp(2.3rem,4vw,4rem); line-height:1.08; letter-spacing:-.045em; }
.intro-grid > div:last-child { font-size:1.08rem; color:var(--muted); }
.intro-grid > div:last-child p { margin:0 0 18px; }
.scope-section { background:var(--surface); }
.scope-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.scope-grid article { display:flex; align-items:flex-start; gap:14px; min-height:130px; padding:25px; border:1px solid var(--line); border-radius:16px; background:var(--white); box-shadow:0 8px 22px rgba(3,35,61,.04); }
.scope-grid p { margin:0; color:#435767; font-weight:700; line-height:1.55; }
.scope-check { display:grid; place-items:center; flex:0 0 31px; width:31px; height:31px; border-radius:50%; color:var(--white); background:var(--blue); font-size:.78rem; font-weight:900; }
.detail-benefits { color:var(--white); background:linear-gradient(135deg,var(--navy-darker),var(--navy)); }
.detail-benefits .section-heading h2 { color:var(--white); }
.benefit-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.benefit-grid article { min-height:260px; padding:30px; border:1px solid rgba(255,255,255,.13); border-radius:20px; background:rgba(255,255,255,.07); }
.benefit-mark { color:var(--cyan); font-size:.75rem; font-weight:900; letter-spacing:.14em; }
.benefit-grid h3 { margin:65px 0 10px; color:var(--white); font-size:1.35rem; }
.benefit-grid p { margin:0; color:rgba(255,255,255,.68); }
.detail-process-grid { position:relative; display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.detail-process-grid article { position:relative; padding:30px 30px 35px; border-top:1px solid var(--line); }
.detail-process-grid article > span { display:block; margin-bottom:45px; color:var(--blue); font-size:.8rem; font-weight:900; letter-spacing:.15em; }
.detail-process-grid h3 { margin:0 0 10px; color:var(--navy-deep); font-size:1.3rem; }
.detail-process-grid p { margin:0; color:var(--muted); }
.faq-section { background:#fbfcfd; }
html[data-theme="fresh"] .faq-section { background:#fbfdfc; }
.faq-grid { display:grid; grid-template-columns:.75fr 1.25fr; gap:100px; align-items:start; }
.faq-grid > div:first-child > p:last-child { color:var(--muted); }
.faq-list { display:grid; gap:12px; }
.faq-list details { border:1px solid var(--line); border-radius:14px; background:var(--white); }
.faq-list summary { display:flex; justify-content:space-between; gap:20px; padding:20px 22px; color:var(--navy-deep); font-weight:800; cursor:pointer; list-style:none; }
.faq-list summary::-webkit-details-marker { display:none; }
.faq-list summary span { color:var(--blue); font-size:1.35rem; line-height:1; transition:transform .2s ease; }
.faq-list details[open] summary span { transform:rotate(45deg); }
.faq-list details p { margin:0; padding:0 22px 22px; color:var(--muted); }
.related-head { display:flex; align-items:end; justify-content:space-between; gap:35px; margin-bottom:40px; }
.related-links { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.related-links a { display:flex; justify-content:space-between; align-items:center; min-height:95px; padding:22px; border:1px solid var(--line); border-radius:15px; color:var(--navy); background:var(--surface); font-weight:850; transition:transform .2s ease,background .2s ease,box-shadow .2s ease; }
.related-links a:hover { transform:translateY(-4px); background:var(--white); box-shadow:var(--shadow-sm); }
.related-links b { font-size:1.3rem; }
.detail-cta { padding:85px 0; color:var(--white); background:linear-gradient(135deg,var(--navy-darker),var(--navy) 65%,var(--blue)); }
.detail-cta-inner { display:flex; align-items:center; justify-content:space-between; gap:70px; }
.detail-cta h2 { max-width:760px; color:var(--white); }
.detail-cta p:not(.eyebrow) { max-width:700px; margin:18px 0 0; color:rgba(255,255,255,.7); }
.detail-cta .button { flex:0 0 auto; }
@media(max-width:900px){.detail-hero{padding:70px 0 80px}.detail-hero-grid,.intro-grid,.faq-grid{grid-template-columns:1fr;gap:50px}.detail-summary{max-width:650px}.scope-grid,.benefit-grid,.related-links{grid-template-columns:repeat(2,1fr)}.detail-process-grid{grid-template-columns:1fr}.detail-process-grid article>span{margin-bottom:20px}.detail-cta-inner{align-items:flex-start;flex-direction:column;gap:30px}.related-head{align-items:flex-start;flex-direction:column}}
@media(max-width:650px){.detail-hero{padding:48px 0 65px}.detail-copy h1{font-size:clamp(2.65rem,13vw,4.2rem)}.detail-lead{font-size:1rem}.detail-summary{padding:27px 22px}.scope-grid,.benefit-grid,.related-links{grid-template-columns:1fr}.scope-grid article{min-height:auto}.benefit-grid article{min-height:225px}.benefit-grid h3{margin-top:45px}.related-head .button{width:100%}.detail-cta .button{width:100%}}

/* Schwarz-Variante der Leistungsseiten */
html[data-theme="black"] .detail-hero {
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(255,255,255,.07), transparent 27%),
    linear-gradient(135deg, #050505 0%, #111 65%, #1b1b1b 100%);
}
html[data-theme="black"] .breadcrumbs { color: rgba(255,255,255,.52); }
html[data-theme="black"] .breadcrumbs a:hover { color: #fff; }
html[data-theme="black"] .breadcrumbs strong,
html[data-theme="black"] .detail-copy h1 { color: #fff; }
html[data-theme="black"] .detail-lead { color: rgba(255,255,255,.67); }
html[data-theme="black"] .detail-hero .eyebrow { color: rgba(255,255,255,.76); }
html[data-theme="black"] .detail-summary { color: var(--ink); background: rgba(255,255,255,.95); border-color: rgba(255,255,255,.18); }
html[data-theme="black"] .detail-summary-icon { color: #111; }
html[data-theme="black"] .detail-orb-one { border-color: rgba(255,255,255,.035); }
html[data-theme="black"] .detail-benefits { background: linear-gradient(135deg, #000, #181818); }
html[data-theme="black"] .faq-section { background: #f7f7f5; }
html[data-theme="black"] .detail-cta { background: linear-gradient(135deg, #000, #111 65%, #242424); }

/* Version 4 detail refinements */
html[data-theme="black"] .scope-section { background: #f1f1ee; }
html[data-theme="black"] .scope-grid article { border-color: #e2e2dd; box-shadow: 0 8px 22px rgba(0,0,0,.035); }
html[data-theme="black"] .scope-check { background: #111; }
html[data-theme="black"] .related-links a { color: #111; background: #f1f1ee; }
html[data-theme="black"] .related-links a:hover { background: #fff; }
html[data-theme="black"] .benefit-mark { color: var(--yellow); }
.detail-summary > a b,
.related-links b { transition: transform .2s ease; }
.detail-summary > a:hover b,
.related-links a:hover b { transform: translateX(4px); }

/* ===== Mobile-Optimierung der Leistungsseiten ===== */
.detail-hero-grid > *,
.intro-grid > *,
.faq-grid > * { min-width: 0; }
.detail-copy h1 {
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 650px) {
  .detail-hero { padding: 38px 0 52px; }
  .detail-hero-grid { gap: 34px; }
  .breadcrumbs {
    gap: 6px;
    margin-bottom: 23px;
    font-size: .72rem;
  }
  .detail-copy h1 {
    font-size: clamp(2.25rem, 10vw, 2.85rem);
    line-height: 1.01;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
  }
  .detail-lead {
    margin-top: 21px;
    font-size: .98rem;
    line-height: 1.65;
  }
  .detail-summary { padding: 0 19px 24px; border-radius: 20px; }
  .detail-summary-photo { height:190px; margin:0 -19px 22px; }
  .detail-summary-photo figcaption { left:14px; bottom:13px; max-width:calc(100% - 28px); font-size:.64rem; }
  .detail-summary-icon { width: 56px; height: 56px; margin-bottom: 21px; }
  .detail-summary li { font-size: .86rem; }

  .intro-grid,
  .faq-grid { gap: 30px; }
  .intro-grid h2,
  .faq-grid h2,
  .related-head h2,
  .detail-cta h2 {
    font-size: clamp(2rem, 9.5vw, 2.45rem);
  }
  .intro-grid > div:last-child { font-size: .98rem; }

  .scope-grid article { padding: 20px; }
  .benefit-grid article { min-height: 0; padding: 24px 22px; }
  .benefit-grid h3 { margin-top: 30px; font-size: 1.23rem; }
  .benefit-grid p { font-size: .91rem; }

  .detail-process-grid { gap: 0; }
  .detail-process-grid article { padding: 25px 4px 30px; }
  .detail-process-grid article > span { margin-bottom: 15px; }

  .faq-list summary { padding: 18px; font-size: .88rem; }
  .faq-list details p { padding: 0 18px 19px; font-size: .9rem; }
  .related-links a { min-height: 80px; padding: 18px; }

  .detail-cta { padding: 58px 0; }
  .detail-cta-inner { gap: 25px; }
}


/* ===== FINAL RELEASE: Leistungsseiten-Typografie ===== */
.detail-hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(350px, .75fr);
  gap: clamp(46px, 5vw, 76px);
}
.detail-copy h1 {
  max-width: 820px;
  font-size: clamp(3rem, 4.8vw, 4.8rem);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
@media (max-width: 1050px) {
  .detail-hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .detail-summary {
    width: min(680px, 100%);
  }
  .detail-service-visual {
    width:min(760px,100%);
    min-height:520px;
  }
}
@media (max-width: 650px) {
  .detail-copy h1 {
    font-size: clamp(2.25rem, 10vw, 2.85rem);
    overflow-wrap: break-word;
    word-break: normal;
  }
  .detail-service-visual { min-height:460px; border-radius:22px; }
  .detail-visual-content { padding:24px 22px; }
  .detail-visual-content h2 { margin-bottom:14px; font-size:1.45rem; }
  .detail-visual-content li { padding:9px 0; font-size:.9rem; line-height:1.45; }
}
