/* Unterlagen der Produktseite (Pages/Unterlagen: Preisliste und Hand-outs) nach Guidelines/vorlagen/dokument-vorlage.html,
   Corporate Design 1.2. Bildschirm, Handy und Druck (A4); die Leiste oben erscheint nicht im Druck. */
:root { --mes-blue: #679cff; --mes-dark: #222222; --mes-light: #f5f7fb; --mes-accent: #0055aa; --mes-signal: #ff8a3d; }
* { box-sizing: border-box; }
[id] { scroll-margin-top: 56px; }
body { margin: 0; padding: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #222; background: #ffffff; }
.page { max-width: 1100px; margin: 0 auto; padding: 32px 24px 48px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; border-bottom: 3px solid var(--mes-blue); padding-bottom: 16px; }
header img.logo { max-height: 70px; max-width: 45%; height: auto; }
.company-info { text-align: right; font-size: 0.9rem; color: #555; }
h1 { font-size: 1.9rem; margin: 8px 0 0; color: var(--mes-dark); }
h2 { margin-top: 32px; margin-bottom: 8px; font-size: 1.4rem; color: var(--mes-accent); }
h3 { margin-top: 20px; margin-bottom: 6px; font-size: 1.1rem; color: var(--mes-dark); }
p { margin: 4px 0 10px; line-height: 1.45; }
ul, ol { margin: 8px 0 10px 18px; padding: 0; }
li { margin: 6px 0; }
code { overflow-wrap: anywhere; }
pre { background: #f9fafc; border: 1px solid #dde2f0; border-radius: 8px; padding: 10px 12px; font-size: 0.82rem; line-height: 1.4; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.highlight-box { background: var(--mes-light); border-left: 4px solid var(--mes-blue); padding: 10px 14px; margin: 12px 0 16px; font-size: 0.95rem; }
.highlight-box.schluss { margin-top: 18px; }
.geplant-box { background: #fff4ec; border-left: 4px solid var(--mes-signal); padding: 10px 14px; margin: 12px 0 16px; font-size: 0.95rem; }
.tabelle { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 0.95rem; }
th, td { padding: 6px 8px; border-bottom: 1px solid #e0e3ec; vertical-align: top; }
th { background: #eef2ff; text-align: left; font-weight: 600; }
th.bereich { width: 30%; }
th.leer { width: 24%; }
tr:nth-child(even) td { background: #fafbff; }
.number { text-align: right; white-space: nowrap; }
.small { font-size: 0.85rem; color: #555; }
.two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr); gap: 20px; align-items: flex-start; }
.card { background: #f9fafc; border-radius: 8px; padding: 12px 14px; border: 1px solid #dde2f0; font-size: 0.92rem; }
.card h3 { margin-top: 0; }
.badge { display: inline-block; padding: 2px 6px; border-radius: 999px; font-size: 0.75rem; background: var(--mes-blue); color: #fff; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.badge.signal, .badge.geplant { background: var(--mes-signal); color: var(--mes-dark); }
.section-footer { font-size: 0.8rem; color: #666; margin-top: 4px; }
.pakete { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 12px 0 8px; }
.paket { border: 1px solid #dde2f0; border-radius: 8px; padding: 14px 16px; background: #fff; }
.paket.empfohlen { border: 2px solid var(--mes-blue); }
.paket h3 { margin-top: 0; }
.paket .preis { font-size: 1.5rem; font-weight: 700; margin: 6px 0 2px; }
.paket ul { margin-left: 16px; font-size: 0.92rem; }
@media (max-width: 800px) { .two-col, .pakete { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .page { padding: 20px 16px 32px; } header { flex-wrap: wrap; gap: 12px; } .company-info { text-align: left; } h1 { font-size: 1.5rem; } table { font-size: 0.88rem; } th.bereich { width: 36%; } }

/* Leiste mit Zurück und Drucken (unterlagen.js) */
.u-leiste { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: #fff; border-bottom: 1px solid #e0e3ec; font-size: 0.95rem; }
.u-leiste a { color: var(--mes-accent); font-weight: 600; text-decoration: none; }
.u-leiste a:hover { text-decoration: underline; }
.u-leiste button { font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 999px; padding: 6px 16px; background: var(--mes-accent); color: #fff; }
.u-leiste button[hidden] { display: none; }
.u-leiste button:focus-visible, .u-leiste a:focus-visible { outline: 3px solid var(--mes-signal); outline-offset: 2px; }

@media print {
  .u-leiste { display: none; }
  .page { padding: 0; max-width: none; } header { border-bottom-color: #000000; }
  h2, h3 { break-after: avoid; } tr, .card, .paket, .highlight-box, .geplant-box, pre { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
@page { margin: 16mm; }
