/* =================================================================
   Service365 – Modern content components
   Shared across detail pages (WEG, Miete, SEV, Kosten, Wechsel)
   ================================================================= */

/* ---- Intro lead (2-col statement + body) ---- */
.lead {
  padding: clamp(56px, 7vw, 96px) 0;
  background: var(--bg-light);
}
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.lead-statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 16px 0 0;
  max-width: 22ch;
}
.lead-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 20px;
  max-width: 62ch;
}
.lead-body p:last-child { margin-bottom: 0; }
.lead-body strong { color: var(--ink); font-weight: 600; }
.lead-body a:not(.btn) { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }

/* ---- Section header ---- */
.mod-head {
  max-width: 760px;
  margin: 0 0 48px;
}
.mod-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}
.mod-head p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
  max-width: 58ch;
}

/* ---- Pillars (3-col bordered, accent tick) ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.pillars.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pillar {
  padding: 36px 32px 0 32px;
  border-right: 1px solid var(--line);
  position: relative;
}
.pillar:first-child { padding-left: 0; }
.pillar:last-child { border-right: 0; padding-right: 0; }
.pillar::before {
  content: '';
  position: absolute;
  top: -1px; left: 32px;
  width: 40px; height: 2px;
  background: var(--accent);
}
.pillar:first-child::before { left: 0; }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.pillar h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.pillar ul { list-style: none; padding: 0; margin: 0; }
.pillar li {
  position: relative;
  padding: 9px 0 9px 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.pillar li:last-child { border-bottom: 0; }
.pillar li::before {
  content: '';
  position: absolute;
  left: 0; top: 17px;
  width: 11px; height: 1.5px;
  background: var(--accent);
}

/* ---- Info band (image + text alternating) ---- */
.info-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: clamp(40px, 5vw, 64px) 0;
}
.info-band.reverse .info-band-img { order: 2; }
.info-band-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.info-band-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.info-band-text h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 12px 0 18px;
}
.info-band-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 52ch;
}
.info-band-text ul { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.info-band-text li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--ink);
}
.info-band-text li span:last-child {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
  white-space: nowrap;
}

/* ---- Steps timeline (4-step) ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.step {
  padding: 32px 28px 0 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; padding-right: 0; }
.step::before {
  content: '';
  position: absolute;
  top: -5px; left: 28px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
}
.step:first-child::before { left: 0; }
.step-n {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 44px;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 10px; }
.step p { font-size: 14px; line-height: 1.65; color: var(--ink-2); margin: 0; max-width: 28ch; }

/* ---- Modern price table ---- */
.ptable {
  border: 1px solid var(--line);
  background: var(--bg-card);
  overflow: hidden;
}
.ptable-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  border-bottom: 1px solid var(--line);
}
.ptable-row:last-child { border-bottom: 0; }
.ptable-row > div {
  padding: 20px 24px;
  font-size: 15px;
  color: var(--ink-2);
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.ptable-row > div:last-child { border-right: 0; }
.ptable-row.head > div {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-3); background: var(--bg-soft);
}
.ptable-row .pt-size { font-weight: 600; color: var(--ink); }
.ptable-row .pt-price {
  font-family: var(--font-display); font-weight: 400; font-size: 24px;
  color: var(--ink); letter-spacing: -0.02em;
}

/* ---- Callout (highlight box) ---- */
.mod-callout {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  padding: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}
.mod-callout .mc-badge {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-on-dark-2);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.mod-callout h3 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.025em;
  margin: 0 0 12px; color: #fff; line-height: 1.15;
}
.mod-callout p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-on-dark-2); max-width: 64ch; }

/* ---- Compare table (us vs them) ---- */
.compare {
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.3fr;
  border-bottom: 1px solid var(--line);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row > div {
  padding: 18px 24px; font-size: 15px; color: var(--ink-2);
  border-right: 1px solid var(--line); display: flex; align-items: center; gap: 10px;
}
.compare-row > div:last-child { border-right: 0; }
.compare-row.head > div {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-3);
}
.compare-row.head .c-us { background: var(--bg-dark); color: var(--ink-on-dark); }
.c-feat { font-weight: 600; color: var(--ink); }
.c-us { color: var(--ink); }
.c-us .yes { color: #2d6e3e; font-weight: 700; }
.c-them { color: var(--ink-3); }
.c-them .no { color: var(--ink-3); font-weight: 700; }

/* ---- Quick nav chips ---- */
.chip-nav {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 24px 0;
}
.chip-nav a {
  font-size: 13px; letter-spacing: 0.02em;
  padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink-2); transition: all 0.2s;
}
.chip-nav a:hover { background: var(--bg-dark); color: var(--ink-on-dark); border-color: var(--bg-dark); }

/* ---- FAQ centered wrap ---- */
.faq-wrap { max-width: 880px; margin: 0 auto; }

/* ---- District chips (city pages) ---- */
.district-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.district-chip {
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: var(--bg-card);
  transition: all 0.2s var(--ease);
}
.district-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Related cards (city pages) ---- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.related-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: inherit;
  transition: all 0.3s var(--ease);
}
.related-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -18px rgba(15,26,43,0.2);
}
.related-card .region {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.related-card .city {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.025em;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .lead-grid { grid-template-columns: 1fr; gap: 28px; }
  .lead-statement { max-width: none; }
  .pillars, .pillars.cols-2 { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .pillar:last-child { border-bottom: 0; }
  .info-band, .info-band.reverse { grid-template-columns: 1fr; gap: 28px; }
  .info-band.reverse .info-band-img { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { padding: 28px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .step:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
  .step::before { left: 0; }
  .step p { max-width: none; }
  .ptable-row { grid-template-columns: 1fr; }
  .ptable-row > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .ptable-row > div:last-child { border-bottom: 0; }
  .ptable-row.head { display: none; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .compare-row > div:last-child { border-bottom: 0; }
  .compare-row.head { display: none; }
  .c-feat { background: var(--bg-soft); }
  .mod-callout { grid-template-columns: 1fr; gap: 16px; }
  .mod-callout .mc-badge { writing-mode: horizontal-tb; transform: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(odd) { border-right: 0; }
}
