/* ────────────────────────────────────────────────────────────────
   B+S — Service-Pillar-Seiten (Leistungs-Unterseiten)
   Lädt NACH styles.css. Präfix: p-
   ──────────────────────────────────────────────────────────────── */

/* ─── Sub-Hero ─── */
.hero--sub { height: auto; min-height: 78vh; }
.hero--sub .hero__content { padding-top: clamp(170px, 22vh, 240px); }
.p-crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin: 0 0 18px;
}
.p-crumb a { color: rgba(255,255,255,0.75); transition: color .15s; }
.p-crumb a:hover { color: #fff; }
.p-crumb .sep { opacity: 0.5; }
.p-crumb .cur { color: #fff; font-weight: 600; }

/* ─── Intro: Ein Vertrag. Ein Preis. ─── */
.p-intro { background: var(--paper); }
.p-intro__inner {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) var(--pad);
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.p-intro h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.05; letter-spacing: -0.035em; font-weight: 800;
  margin: 0 0 22px; text-wrap: balance;
}
.p-intro h2 em { font-style: normal; color: var(--blue); }
.p-intro__text { font-size: 16.5px; line-height: 1.7; color: var(--muted); margin: 0 0 16px; }
.p-intro__text:last-child { margin-bottom: 0; }

.p-facts { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.p-fact {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--paper-2);
  border-radius: 18px;
  padding: 22px 24px;
}
.p-fact__num {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 700;
}
.p-fact h3 { font-size: 16.5px; font-weight: 700; margin: 2px 0 4px; letter-spacing: -0.01em; }
.p-fact p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ─── Leistungsumfang ─── */
.p-scope { background: var(--paper-2); }
.p-scope__inner {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) var(--pad);
}
.p-scope__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.p-scope__head h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05; letter-spacing: -0.035em; font-weight: 800;
  margin: 0 0 16px; text-wrap: balance;
}
.p-scope__head p { font-size: 16.5px; line-height: 1.65; color: var(--muted); margin: 0; }

.p-scope__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.p-scope-card {
  background: var(--paper);
  border-radius: 18px;
  padding: 28px 26px 26px;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.p-scope-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -18px rgba(15,20,17,0.22);
}
.p-scope-card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.p-scope-card__icon svg { width: 24px; height: 24px; }
.p-scope-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 8px; }
.p-scope-card p { font-size: 14.5px; line-height: 1.62; color: var(--muted); margin: 0; }

/* ─── Gebäudetypen ─── */
.p-types { background: var(--paper); }
.p-types__inner {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) var(--pad);
}
.p-types__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.p-types__head h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05; letter-spacing: -0.035em; font-weight: 800;
  margin: 0 0 16px; text-wrap: balance;
}
.p-types__head p { font-size: 16.5px; line-height: 1.65; color: var(--muted); margin: 0; }

.p-types__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.p-type {
  border-radius: 18px; overflow: hidden;
  background: var(--paper-2);
  display: flex; flex-direction: column;
}
.p-type__img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.p-type__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.p-type:hover .p-type__img img { transform: scale(1.04); }
.p-type__tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(13,1,72,0.85); color: #fff;
  backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
}
.p-type__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.p-type h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 8px; }
.p-type p { font-size: 14.5px; line-height: 1.62; color: var(--muted); margin: 0 0 16px; flex: 1; }
.p-type ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.p-type ul li {
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  background: var(--paper); border-radius: 999px;
  padding: 6px 12px;
}

/* ─── Sicherheiten — dunkles Band ─── */
.p-secure { background: var(--blue-deep); color: #fff; }
.p-secure__inner {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(72px, 9vw, 110px) var(--pad);
}
.p-secure .eyebrow { color: rgba(255,255,255,0.7); }
.p-secure .eyebrow::before { background: rgba(255,255,255,0.7); }
.p-secure__head { max-width: 620px; margin-bottom: clamp(36px, 5vw, 56px); }
.p-secure__head h2 {
  font-size: clamp(30px, 4vw, 48px); color: #fff;
  line-height: 1.05; letter-spacing: -0.035em; font-weight: 800;
  margin: 0 0 16px; text-wrap: balance;
}
.p-secure__head p { font-size: 16.5px; line-height: 1.65; color: rgba(255,255,255,0.7); margin: 0; }

.p-secure__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.p-secure-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 26px 24px;
}
.p-secure-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.1); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.p-secure-card__icon svg { width: 22px; height: 22px; }
.p-secure-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 8px; letter-spacing: -0.01em; }
.p-secure-card p { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,0.65); margin: 0; }

/* ─── Energie & Förderung ─── */
.p-energy { background: var(--paper-2); }
.p-energy__inner {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) var(--pad);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.p-energy__media { border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; }
.p-energy__media img { width: 100%; height: 100%; object-fit: cover; }
.p-energy h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05; letter-spacing: -0.035em; font-weight: 800;
  margin: 0 0 16px; text-wrap: balance;
}
.p-energy__text { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0 0 24px; }
.p-energy__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.p-energy__list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; line-height: 1.55; color: var(--ink-2);
}
.p-energy__list li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.p-energy__list li strong { font-weight: 600; }

/* ─── FAQ ─── */
.p-faq { background: var(--paper); }
.p-faq__inner {
  max-width: 820px; margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) var(--pad);
}
.p-faq__head { text-align: center; margin-bottom: clamp(32px, 4vw, 48px); }
.p-faq__head .eyebrow { justify-content: center; }
.p-faq__head h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05; letter-spacing: -0.035em; font-weight: 800;
  margin: 0; text-wrap: balance;
}
.p-faq details {
  border-bottom: 1px solid var(--line);
}
.p-faq details:first-of-type { border-top: 1px solid var(--line); }
.p-faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer;
  transition: color .15s;
}
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary:hover { color: var(--blue); }
.p-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--paper-2); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 500;
  transition: transform .25s ease, background .2s, color .2s;
}
.p-faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--blue); color: #fff;
}
.p-faq details p {
  margin: 0; padding: 0 40px 24px 4px;
  font-size: 15px; line-height: 1.7; color: var(--muted);
}

/* ─── Nav-Dropdown (Leistungen) ─── */
.nav-drop { position: relative; display: flex; }
.nav-drop__trigger .caret {
  width: 12px; height: 12px; margin-left: 6px;
  transition: transform .2s;
}
.nav-drop:hover .nav-drop__trigger .caret,
.nav-drop:focus-within .nav-drop__trigger .caret { transform: rotate(180deg); }
.nav-drop__menu {
  position: absolute; top: 100%; left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 20px 48px -16px rgba(15,20,17,0.3);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.nav-drop:hover .nav-drop__menu,
.nav-drop:focus-within .nav-drop__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.site-header .nav-drop__menu a {
  display: flex !important; flex-direction: column; align-items: flex-start;
  padding: 12px 14px !important;
  border: 0 !important; border-radius: 10px;
  color: var(--ink) !important;
  font-size: 14px; font-weight: 600;
  line-height: 1.3;
}
.site-header .nav-drop__menu a::after { display: none; }
.site-header .nav-drop__menu a:hover { background: var(--paper-2) !important; color: var(--blue) !important; }
.site-header .nav-drop__menu a small {
  font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px;
}

@media (max-width: 820px) {
  .nav-drop { display: contents; }
  .nav-drop__trigger .caret { display: none; }
  .nav.is-open .nav-drop__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0;
    min-width: 0; background: transparent;
  }
  .nav.is-open .nav-drop__menu a {
    padding: 16px var(--pad) 16px calc(var(--pad) + 18px) !important;
    border-bottom: 1px solid var(--line) !important;
    border-radius: 0;
    min-height: 52px;
    font-size: 15px !important;
    display: flex !important; flex-direction: column; justify-content: center;
  }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .p-scope__grid, .p-types__grid { grid-template-columns: 1fr 1fr; }
  .p-secure__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero--sub { min-height: 88svh; }
  .p-intro__inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 20px; }
  .p-scope__inner, .p-types__inner, .p-secure__inner, .p-faq__inner { padding: 48px 20px; }
  .p-energy__inner { grid-template-columns: 1fr; gap: 28px; padding: 48px 20px; }
  .p-energy__media { order: -1; }
}
@media (max-width: 640px) {
  .p-scope__grid, .p-types__grid, .p-secure__grid { grid-template-columns: 1fr; }
  .p-fact { padding: 18px; gap: 14px; }
  .p-faq summary { font-size: 15.5px; padding: 18px 0; }
  .p-faq details p { padding-right: 36px; }
}
