/* ============================================================
   RITTER WEBSERVICE — altbau.css
   Bausteine aus dem bisherigen Design (styles.css, werkstatt.css),
   die auf Unterseiten weiterleben: Knöpfe, Seitenkopf (st-hero),
   Abschnittsköpfe, nummerierte Posten, Ablaufschritte, Kennzahlen,
   „Werkbank“-Band und Abschluss. Hier einmal im Planpapier-Stil,
   damit Seiten ohne styles.css und werkstatt.css auskommen.
   Lädt nach planpapier.css und vor seitenspezifischen Stilen
   (produktlinie.css, ratgeber.css, technik.css).
   ============================================================ */

/* Variablen, die alte seitenspezifische Stile erwarten */
:root {
  --blue: #2487FF;
  --blue2: #62B1FF;
  --text: var(--tinte);
  --muted: var(--leise);
  --line: var(--linie);
  --bg: var(--papier);
  --hand-weich: #FFF3DC;
  --radius: 16px;
  --shadow: var(--schatten);
}

/* ── Knöpfe ─────────────────────────────────────────────── */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font: 700 .95rem/1.25 var(--sans); text-decoration: none; text-align: center; cursor: pointer; transition: transform .2s var(--kurve), background .2s, border-color .2s; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--hand); color: var(--navy); box-shadow: 0 10px 26px -12px rgba(224,150,18,.8); }
.button.primary:hover { background: var(--hand2); }
.button.secondary { background: var(--weiss); color: var(--navy); border-color: var(--linie2); }
.button.secondary:hover { border-color: var(--blau); }

/* ── Abschnitte und Köpfe ───────────────────────────────── */
.section { padding: clamp(72px, 9vw, 120px) var(--rand); }
.st-kopf { max-width: var(--breite); margin-inline: auto; padding: clamp(64px, 8vw, 110px) var(--rand) clamp(26px, 3.4vw, 44px); }
.st-marke { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blau-tief); }
.st-marke::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.st-kopf h2 { margin: 0 0 14px; max-width: 22ch; }
.st-kopf p { color: var(--tinte2); font-size: 1.04rem; max-width: 60ch; }

/* Seitenkopf (st-hero) wie .seitenkopf aus planpapier.css */
.st-hero { padding: clamp(120px, 14vw, 160px) var(--rand) clamp(36px, 5vw, 56px); }
.st-hero-inner { max-width: var(--breite); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: center; }
.st-hero--einspaltig .st-hero-inner { grid-template-columns: minmax(0, 1fr); }
.st-datei { margin: 0 0 18px; font: 600 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blau-tief); }
.st-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.st-hand { color: var(--hand-tief); }
.st-hero-lead { margin-top: 20px; max-width: 640px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--tinte2); }
.st-hero-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.st-fakten { display: flex; flex-wrap: wrap; gap: 0; max-width: 720px; border: 1px solid var(--linie2); background: var(--weiss); box-shadow: var(--schatten); }
.st-fakt { flex: 1 1 120px; display: flex; flex-direction: column-reverse; gap: 4px; padding: 14px 18px; border-right: 1px solid var(--linie); }
.st-fakt:last-child { border-right: 0; }
.st-fakt b { font: 900 1.6rem/1 var(--sans); letter-spacing: -.03em; color: var(--navy); }
.st-fakt span { font: 600 .6rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--leise); }
.st-runter { display: none; }

/* ── Nummerierte Posten und Ablaufschritte ──────────────── */
/* Seitenrand wie die übrigen Abschnitte; im Artikeltext setzen die Merkblätter ihn inline auf 0 */
.st-liste { display: grid; gap: 12px; max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }
.st-liste--zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-posten { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding: 18px; border: 1px solid var(--linie2); border-radius: 14px; background: var(--weiss); }
.st-posten-nr { font: 700 .76rem/1.7 var(--mono); color: var(--hand-tief); }
.st-posten h3 { margin: 0 0 4px; font-size: 1.02rem; }
.st-posten p { grid-column: 2; margin: 0; font-size: .92rem; line-height: 1.6; color: var(--tinte2); }
.st-posten-tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.st-posten-tags span { padding: 2px 8px; border: 1px solid var(--linie); border-radius: 6px; font: 500 .66rem/1.5 var(--mono); color: var(--navy2); }
.st-ablauf { max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }
.st-schritte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0 32px; }
.st-schritte--vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-schritt { position: relative; padding: 30px 0 0; }
.st-schritt::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: var(--linie2); }
.st-schritt::after { content: ""; position: absolute; top: 3px; left: 0; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--hand); background: var(--papier); }
.st-schritt h3 { margin: 0 0 6px; font-size: 1.05rem; }
.st-schritt p { font-size: .92rem; color: var(--tinte2); }
.st-schritt-meta { font: 500 .7rem/1.4 var(--mono); color: var(--blau-tief); }

/* ── Dunkle Bänder: „Werkbank“ und Abschluss als Blaupause ── */
.st-werkbank, .st-cta {
  max-width: var(--breite); margin: clamp(64px, 9vw, 110px) auto; border-radius: 22px; color: #C4E0FF;
  background:
    linear-gradient(rgba(98,177,255,.12) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(98,177,255,.12) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(150deg, #0D2D5E, #061631);
}
.st-werkbank { padding-bottom: clamp(32px, 4vw, 48px); }
.st-werkbank-kopf { padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px) clamp(16px, 2vw, 24px); }
.st-werkbank .st-datei, .st-cta .st-marke { color: #62B1FF; }
.st-werkbank-kopf h2, .st-cta h2 { color: #fff; margin: 0 0 14px; }
.st-werkbank-kopf p, .st-cta p { color: #C4E0FF; max-width: 60ch; }
.st-schluss { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px 32px; padding: 0 clamp(24px, 4vw, 48px); }
.st-schluss strong { display: block; margin-bottom: 8px; font: 600 .72rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hand2); }
.st-schluss p { margin: 0; font-size: .95rem; color: #C4E0FF; }
.st-cta { padding: clamp(36px, 6vw, 64px) clamp(24px, 4vw, 48px); }
.st-cta-inner { max-width: 680px; }
.st-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.st-cta .button.secondary { background: transparent; color: #fff; border-color: rgba(98,177,255,.4); }
.st-cta-note { margin-top: 18px !important; }
.st-cta-note a { color: var(--hand2); }

/* ── FAQ (pflicht-tools, orga-tools) ────────────────────── */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.faq-item { padding: 16px 20px; border: 1px solid var(--linie2); border-radius: 12px; background: var(--weiss); }
.faq-item summary { display: flex; gap: 10px; cursor: pointer; list-style: none; font-weight: 700; color: var(--navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "＋"; color: var(--hand-tief); }
.faq-item[open] summary::before { content: "－"; }
.faq-item p { margin: 10px 0 0 26px; font-size: .92rem; color: var(--tinte2); }
.faq-item p a { color: var(--blau-tief); font-weight: 600; }

@media (max-width: 980px) {
  .st-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .st-schritte, .st-schritte--vier { grid-template-columns: 1fr; }
  .st-werkbank, .st-cta { margin-inline: var(--rand); }
}
@media (max-width: 760px) {
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .st-liste--zwei { grid-template-columns: 1fr; }
  .st-fakt { flex-basis: 40%; border-bottom: 1px solid var(--linie); }
}
