/* MSISP Status – Gestaltung im CI von www.msisp.de (ruhig, klar, Logo-Grün) */
:root {
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --brand: #007a00; --brand-soft: #edf6ed;
  --logo-grad: linear-gradient(180deg, #008100 0%, #006600 100%);
  --bg: #ffffff; --bg-soft: #f6f8f7; --surface: #ffffff;
  --ink: #222a25; --text: #4a524d; --muted: #7a837d; --line: #e4e8e5;
  --footer: #1e2722;
  --ok: #0a7a32; --ok-bg: #e6f4ea; --warn: #8a5a00; --warn-bg: #fff4dc; --bad: #b42318; --bad-bg: #fde8e7; --info: #1d5fa8; --info-bg: #e8f0fb;
  --radius: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3fb468; --brand-soft: #14271c; --bg: #111613; --bg-soft: #161d19; --surface: #161d19;
    --ink: #e7ece9; --text: #bcc5bf; --muted: #8b958f; --line: #26302a; --footer: #0b0f0d;
    --ok: #5cc982; --ok-bg: #16301f; --warn: #f0b84a; --warn-bg: #33270f; --bad: #f2837a; --bad-bg: #3a1714; --info: #7fb2ee; --info-bg: #142338;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 16px/1.7 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; }
.wrap { width: min(1140px, 100% - 48px); margin-inline: auto; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Kopf */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 84px; }
.brand img { display: block; height: 44px; width: auto; }
.brand-label { font-size: 1.15rem; font-weight: 300; color: var(--ink); padding-left: 14px; border-left: 1px solid var(--line); }
.header-link { margin-left: auto; font-size: .95rem; color: var(--text); text-decoration: none; }
.header-link:hover { color: var(--brand); }

/* Banner */
.hero { position: relative; overflow: hidden; color: #fff; padding: clamp(40px, 6vw, 72px) 0;
  background: url("img/mesh.svg") right -60px center / min(760px, 60%) auto no-repeat,
    radial-gradient(620px 360px at 80% 50%, rgba(150, 230, 160, .22), transparent 70%),
    linear-gradient(118deg, #006600 0%, #007a00 50%, #0a8a12 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #008100, #6fd58a, #008100); }
.eyebrow { margin: 0 0 6px; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.hero h1 { color: #fff; font-weight: 300; font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 24px; }
.overall { display: inline-flex; align-items: center; gap: 16px; padding: 16px 22px 16px 16px; background: #fff; border-radius: var(--radius); box-shadow: 0 14px 34px rgba(0, 40, 0, .25); max-width: 100%; }
.overall-icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; color: #fff; font-size: 26px; }
.overall-ok .overall-icon { background: var(--logo-grad); }
.overall-warn .overall-icon { background: #c98a00; }
.overall-bad .overall-icon { background: #b42318; }
.overall div > strong { display: block; color: #222a25; font-weight: 500; font-size: 1.12rem; }
.overall div > span { display: block; color: #6b736e; font-size: .88rem; }

/* Abschnitte */
.section { padding: clamp(40px, 5vw, 64px) 0; }
.section-tint { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-title { font-weight: 300; font-size: clamp(1.45rem, 2.4vw, 1.9rem); color: var(--brand); margin-bottom: 22px; }
.sub-title { font-size: 1.05rem; font-weight: 500; margin: 28px 0 12px; }

/* Dienste */
.services { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.services li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; }
.services li + li { border-top: 1px solid var(--line); }
.services b { display: block; color: var(--ink); font-weight: 500; }
.services small { display: block; color: var(--muted); font-size: .9rem; }

/* Status-Kennzeichen */
.tag { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 4px 12px; border-radius: 999px; font-size: .88rem; font-weight: 500; white-space: nowrap; }
.tag .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.tag-ok { color: var(--ok); background: var(--ok-bg); }
.tag-warn { color: var(--warn); background: var(--warn-bg); }
.tag-bad { color: var(--bad); background: var(--bad-bg); }
.tag-info { color: var(--info); background: var(--info-bg); }

/* Meldungen */
.empty { display: flex; align-items: center; gap: 12px; margin: 0; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: var(--radius); color: var(--ink); }
.empty svg { flex: none; color: var(--ok); font-size: 20px; }
.msg { display: flex; gap: 16px; padding: 18px 22px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: var(--radius); }
.msg-ok { border-left-color: var(--ok); } .msg-warn { border-left-color: #c98a00; } .msg-bad { border-left-color: var(--bad); } .msg-info { border-left-color: var(--info); }
.msg-icon { flex: none; font-size: 20px; margin-top: 2px; }
.msg-ok .msg-icon { color: var(--ok); } .msg-warn .msg-icon { color: var(--warn); } .msg-bad .msg-icon { color: var(--bad); } .msg-info .msg-icon { color: var(--info); }
.msg h3 { font-size: 1.05rem; font-weight: 500; margin: 6px 0 4px; }
.msg p { margin: 0; }
.msg-meta { font-size: .88rem; color: var(--muted); }
.msg-meta .tag { padding: 2px 10px; font-size: .8rem; margin-right: 6px; }
.msg-services { font-size: .9rem; color: var(--muted); }

/* Hilfe & Kontakt */
.help { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.help p { margin: 0 0 18px; }
.btn { display: inline-block; padding: 11px 22px; background: var(--logo-grad); color: #fff; text-decoration: none; font-weight: 600; border-radius: 4px; }
.btn:hover { filter: brightness(1.08); }
.contact { margin: 0; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius); background: var(--surface); padding: 6px 22px; }
.contact div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; }
.contact div + div { border-top: 1px solid var(--line); }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; color: var(--ink); text-align: right; }
.contact a { text-decoration: none; }

/* Fuß */
.site-footer { background: var(--footer); color: #b9c2bc; font-size: .92rem; padding: 22px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: #8fd6a4; }

@media (max-width: 760px) {
  .help { grid-template-columns: 1fr; }
  .header-link { display: none; }
  .services li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .overall { width: 100%; }
}
