/* ============================================================
   KSMSKSMS — Wartung & SLA (/wartung) · Spec 014
   Ergänzt pages.css (wird zusätzlich geladen, nur auf dieser
   Seite). Nur bestehende Tokens aus brand.css — keine neuen
   Farben, keine neuen Fonts.
   ============================================================ */

/* ---- PLAN-GRID — drei Karten nebeneinander, Papier ---- */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink-line-strong);
  background: rgba(239, 231, 214, 0.55);
  padding: 28px 28px 24px;
  z-index: 1;
}
.plan-card.is-featured {
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--red);
}

.plan-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 22px;
  margin-bottom: 20px;
}

.plan-card h3 { margin-bottom: 6px; }

.plan-tagline {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  min-height: 3em;
}

.plan-price {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--red);
}
.plan-price small {
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-2);
  margin-right: 4px;
}
.plan-price-note { margin-top: 10px; color: var(--ink-2); opacity: 0.8; }

.plan-table {
  margin-top: 24px;
  border-top: 1px solid var(--ink-line-strong);
}
.plan-table td:first-child { width: 52%; padding-right: 12px; overflow-wrap: anywhere; }
.plan-table td:last-child { color: var(--ink); }

.plan-note {
  margin-top: auto;
  padding-top: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

.plan-footnote {
  margin-top: 32px;
  max-width: 920px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
}

@media (max-width: 1080px) {
  .plan-grid { grid-template-columns: 1fr; max-width: 640px; }
  .plan-tagline { min-height: 0; }
}
@media (max-width: 720px) {
  .plan-card { padding: 22px 20px 20px; }
  .plan-table td:first-child { letter-spacing: 0.08em; }
}

/* ---- REASON-GRID — nummerierte Gründe nebeneinander ---- */

.reason-intro {
  max-width: 860px;
  margin-bottom: 56px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  border-top: 1px solid var(--ink-line-strong);
}
.surface-cosmos .reason-grid { border-top-color: var(--grid-line-strong); }

.reason-item {
  position: relative;
  z-index: 1;
  padding-top: 24px;
}
.reason-item .idx { display: block; margin-bottom: 16px; color: var(--red); opacity: 1; }
.reason-item h3 { margin-bottom: 12px; }
.reason-item .body { font-size: 16px; color: var(--ink-2); }
.surface-cosmos .reason-item .body { color: var(--paper); opacity: 0.78; }

/* Fünf Einträge (Größenleiter XS–XL) in einer Reihe */
.reason-grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.reason-grid:has(> :nth-child(5):last-child) h3 { font-size: 26px; font-weight: 600; color: var(--ink); }

@media (max-width: 1080px) {
  .reason-grid,
  .reason-grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 720px) {
  .reason-intro { margin-bottom: 36px; }
  .reason-grid { grid-template-columns: 1fr; gap: 0; border-top: 0; }
  .reason-item { border-top: 1px solid var(--ink-line-strong); padding: 20px 0 28px; }
}

/* Ablauf-Schritte in der Credit-Sektion (content-split, Absätze mit .step) */
.page-wartung .body .step-no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-right: 10px;
}

/* ---- Faktentabelle auf Cosmos (content-split, surface cosmos) ----
   brand.css kennt die spec-table nur auf Papier. */

.page-wartung .surface-cosmos .spec-table tr { border-bottom-color: var(--grid-line-strong); }
.page-wartung .surface-cosmos .spec-table td:first-child { color: var(--paper); opacity: 0.6; }
.page-wartung .surface-cosmos .spec-table td:last-child { color: var(--paper); }

/* Link in Fließtext und Tabellen der Seite sichtbar machen */
.page-wartung .body a,
.page-wartung .spec-table a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
