/* ==========================================================================
   /preise/ – page styles (loaded after site.css, tokens only)
   Sections: hero (price index + example offer) · software calculation ·
   website plans + comparison table · FAQ · CTA
   From site.css: .glance (price index), .chip-muted, .table-fit, .price /
   .price-grid, .btn-row-fluid, the .price-hero glow preset.
   ========================================================================== */

/* 1 · Hero ----------------------------------------------------------------- */
.price-hero .page-hero-copy { max-width: 620px; }

/* The price index under the hero copy is the site.css .glance component. */

/* Example offer (illustration): light document on the stage with two
   paper sheets behind it. Muss rows above, "Später" rows below. */
.offer-visual { position: relative; isolation: isolate; width: min(100%, 560px); margin-inline: auto; padding: 18px 0 10px; }
.offer-visual::before, .offer-visual::after {
  content: ""; position: absolute; z-index: -1; inset: 30px 18px 0;
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transform: rotate(3.2deg);
}
.offer-visual::after { inset: 24px 8px 4px; background: var(--surface-3); transform: rotate(1.6deg); }
.offer .app-bar { gap: 12px; }
.offer-file { overflow: hidden; }
.offer-body { display: grid; gap: 14px; padding: 18px 20px 18px; }
.offer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.offer-title { display: flex; flex-direction: column; min-width: 0; }
.offer-title small { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.offer-title strong { margin-top: 2px; font-size: 20px; font-weight: 620; letter-spacing: -.02em; line-height: 1.25; }
.offer-title span { font-size: 12px; color: var(--fg-3); }
.offer-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.offer-meta span {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  padding: 7px 10px; border-radius: 8px;
  font-weight: 550; white-space: nowrap;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.offer-meta .i { width: 14px; height: 14px; color: var(--ok); stroke-width: 2.2; }
.offer-group { border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2); overflow: hidden; }
.offer-group-h {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 12px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2);
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.offer-group-h b { padding: 0 7px; border-radius: 6px; font-weight: 500; background: var(--surface-3); }
.offer-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.offer-row + .offer-row { border-top: 1px solid var(--line); }
.offer-ic { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; color: var(--accent-text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.offer-ic .i { width: 13px; height: 13px; stroke-width: 2.2; }
.offer-t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 550; line-height: 1.3; }
.offer-t small { font-size: 11.5px; font-weight: 400; color: var(--fg-3); }
.offer-group.is-later { box-shadow: none; border: 1px dashed var(--line-2); }
.offer-group.is-later .offer-group-h { background: none; border-bottom-style: dashed; }
.offer-group.is-later .offer-row { color: var(--fg-2); }
.offer-group.is-later .offer-row + .offer-row { border-top-style: dashed; }
.offer-group.is-later .offer-ic { color: var(--fg-3); background: none; box-shadow: inset 0 0 0 1px var(--line-2); }
.offer-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-2); }
.offer-foot .i { width: 15px; height: 15px; color: var(--accent-text); }

/* 2 · Software & Automatisierung ------------------------------------------- */
.calc-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.calc-copy .lead { margin-top: 1.1rem; max-width: 62ch; }
.scope-h { margin-top: 2.25rem; font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.scope-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: .9rem; }
.scope-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px 14px 14px; border-radius: var(--r-md);
  font-size: var(--fs-md); line-height: 1.45; font-weight: 520; color: var(--fg);
  background: var(--surface); box-shadow: var(--shadow-card);
}
.calc-card { margin-top: .25rem; }
.calc-process { margin-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.calc-process .kicker { margin-bottom: 1.75rem; }
.calc-callout { max-width: 820px; margin-top: 2.5rem; }

/* 3 · Websites ------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan-guide {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 28px; border-radius: var(--r-lg);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.plan-guide-title { margin-top: 1.1rem; }
.plan-guide-list { display: grid; gap: 1rem; margin: 1.1rem 0 1.25rem; }
.plan-guide-list > div { padding-top: 1rem; border-top: 1px solid var(--line); }
.plan-guide-list dt { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.plan-guide-list dd { margin: .3rem 0 0; font-size: var(--fs-md); line-height: 1.5; color: var(--fg-2); }
.plan-guide .link-arrow { margin-top: auto; }
/* Keep the homepage list rhythm when cards stretch; spare height sits above the button */
.plans .price .check-list { align-content: start; }

.plans-compare { margin-top: clamp(3rem, 2.2rem + 2.5vw, 4.5rem); }
.plans-compare-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 2rem; margin-bottom: 1.1rem; }
.plans-compare-head p { font-size: var(--fs-sm); color: var(--fg-3); }
.table-plans th[scope="row"] { width: 40%; }
.table-plans .col-featured { background: var(--accent-soft); }
.table-plans thead th:nth-child(2) { color: var(--accent-text); }
.table-plans .is-num { font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.table-plans .is-yes .i { display: inline-block; width: 15px; height: 15px; margin-right: .4rem; vertical-align: -2px; stroke-width: 2.2; }
/* Real border, so the thead background cannot paint over the outline */
.sheet .table-wrap { box-shadow: none; border: 1px solid var(--line-2); }

/* 4 · Responsive (only the documented breakpoints) ------------------------- */
@media (min-width: 760.02px) {
  .calc-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1099.98px) {
  .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .calc-copy { max-width: 760px; }
  .offer-visual { margin-inline: 0; }
}
@media (min-width: 760.02px) and (max-width: 1099.98px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-guide { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; }
  .plan-guide-title { margin-top: 0; align-self: center; }
  .plan-guide-list { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .plan-guide .link-arrow { grid-column: 1 / -1; }
}
@media (max-width: 1020px) {
  .price-hero .page-hero-copy { max-width: 700px; }
}
@media (max-width: 760px) {
  /* The price index already links to the website plans */
  .hero-alt { display: none; }
  .offer-body { gap: 12px; padding: 14px 14px 16px; }
  .offer-row.is-optional, .offer-meta { display: none; }
  /* Counts would not match the reduced rows */
  .offer-group-h b { display: none; }
  .offer-title strong { font-size: 18px; }

  .scope-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .scope-list li { align-items: center; padding: 10px 14px 10px 10px; }

  .plans { grid-template-columns: minmax(0, 1fr); max-width: 580px; }
  .plan-guide { padding: 22px 20px; }
  .plan-guide > .icon-tile { display: none; }
  .plan-guide-title { margin-top: 0; }

  /* The table itself fits the phone via site.css .table-fit */
  .table-plans th[scope="row"] { width: 38%; }
}
@media (max-width: 520px) {
  .offer .win-dots, .offer-file, .offer-kind { display: none; }
  .table-plans .is-yes .i { display: none; }
}
