/* status-stoerungen-down-oder-nicht: inline */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --green:      #006b3e;
      --green-dark: #006b3e;
      --green-bg:   #ecf7f1;
      --text:       #1a1a2e;
      --muted:      #374151;
      --bg:         #fff;
      --bg-alt:     #f5f7fa;
      --bg-top:     #f1f3f5;
      --border:     #e5e7eb;
      --radius:     10px;
      --shadow:     0 1px 3px rgba(0,0,0,.06);
      --shadow-md:  0 4px 14px rgba(0,0,0,.08);
      --font:       -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
      --max:        1120px;
    }
    html { font-size: 16px; scroll-behavior: smooth; }
    body { font-family: var(--font); color: var(--text); background: var(--bg-alt); line-height: 1.65; }
    a { color: inherit; text-decoration: none; }
    ul { list-style: none; }
    button { cursor: pointer; font: inherit; border: none; background: none; }
    img { max-width: 100%; height: auto; display: block; }
    .wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
    section { padding: 68px 0; }
    .bg-white { background: var(--bg-alt); }
    .bg-alt   { background: var(--bg-alt); }
    h1 { font-size: clamp(1.85rem, 4.5vw, 2.9rem); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; }
    h2 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
    h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
    p  { color: var(--muted); font-size: .9625rem; }
    .btn { display: inline-flex; align-items: center; gap: .4rem; padding: .65rem 1.4rem; border-radius: 8px; font-size: .9rem; font-weight: 600; transition: all .15s; }
    .btn-primary  { background: linear-gradient(to right, #00c06a, #005430); color: #fff; }
    .btn-primary:hover { background: linear-gradient(to right, #009a58, #003d24); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,135,78,.25); }
    .btn-outline  { background: linear-gradient(#fff,#fff) padding-box, linear-gradient(to right, #00c06a, #005430) border-box; color: var(--green); border: 2px solid transparent; }
    .btn-outline:hover { background: linear-gradient(var(--green-bg),var(--green-bg)) padding-box, linear-gradient(to right, #00c06a, #005430) border-box; }
    .btn-sm { padding: .45rem 1rem; font-size:14px; }
    .btn-secondary { background:#fff; color:#000; border:2px solid #000; padding-top:calc(.45rem - 2px); padding-bottom:calc(.45rem - 2px); }
    .btn-secondary:hover { background:#000; color:#fff; border-color:#000; }
    .btn-white { background: #fff; color: var(--green); font-weight: 700; }
    .btn-white:hover { background: #f0fdf4; }
    .topbar { background: linear-gradient(to right, #00c06a, #005430); border-bottom: 1px solid rgba(0,0,0,.18); font-size:14px; line-height: 1.65; }
    .topbar-inner { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 1rem; flex-wrap: nowrap; }
    .topbar-left { display: flex; gap: 1.25rem; align-items: center; flex-wrap: nowrap; color: rgba(255,255,255,.92); }
    .topbar-left a { color: rgba(255,255,255,.92); transition: color .15s; }
    .topbar-left a:hover { color: #fff; }
    .topbar-right { display: flex; align-items: center; gap: .85rem; }
    .topbar-right a { color: rgba(255,255,255,.92); font-weight: 500; transition: color .15s; white-space: nowrap; }
    .topbar-right a:hover { color: #fff; }
    .topbar-sep { color: rgba(255,255,255,.45); }

    nav.mainnav { background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 100; line-height: 1.65; }
    .nav-inner { max-width: var(--max); margin: auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 1.5rem; height: 60px; }
    .nav-logo { flex: 0 0 auto; }
    .nav-logo img { height: 32px; width: auto; display: block; }
    .nav-links { display: flex; gap: .1rem; align-items: center; flex: 1; }
    .nav-links a { padding: .38rem .62rem; border-radius: 6px; font-size:14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .15s, background .15s; }
    .nav-links a:hover { color: var(--green); background: var(--green-bg); }
    .nav-cta { margin-left: auto; flex-shrink: 0; display: flex; gap: .5rem; align-items: center; }
    .btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.2rem; border-radius: 7px; font-size:14px; font-weight: 600; cursor: pointer; border: none; transition: all .18s; text-decoration: none; }
    .btn-primary { background: linear-gradient(to right, #00c06a, #005430); color: #fff; }
    .btn-primary:hover { background: linear-gradient(to right, #009a58, #003d24); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,135,78,.25); }
    .btn-sm { padding: .45rem 1rem; font-size:14px; }
    .btn-secondary { background:#fff; color:#000; border:2px solid #000; padding:calc(.45rem - 2px) 1rem; }
    .btn-secondary:hover { background:#000; color:#fff; }
    .nav-burger { display: none; flex-direction: column; gap: 5px; padding: 6px; margin-left: auto; cursor: pointer; border: none; background: none; font: inherit; }
    .nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
    .nav-mobile { max-height: 0; overflow: hidden; visibility: hidden; background: var(--bg); border-top: 1px solid var(--border); flex-direction: column; display: flex; }
    .nav-mobile.open { max-height: calc(100vh - 60px); min-height: calc(100vh - 60px); overflow-y: auto; visibility: visible; background: #fff; }
    .nav-mobile a { padding: .7rem 1.5rem; font-size: .95rem; color: var(--text); border-bottom: 1px solid var(--border); font-weight: 500; }
    .nav-mobile .btn { margin: 1rem 1.5rem; justify-content: center; }

    /* ─── Status Page ────────────────────────────────── */
    .status-hero { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 56px 0 60px; text-align: center; }
    .status-hero-inner { max-width: 700px; margin: 0 auto; padding: 0 1.5rem; }
    .status-hero h1 { color: var(--text); margin-bottom: .5rem; }
    .status-hero p { color: var(--muted); font-size: 1.05rem; margin: 0; }

    .status-banner { max-width: 700px; margin: -28px auto 0; padding: 0 1.5rem; position: relative; z-index: 2; }
    .status-banner-inner { background: linear-gradient(135deg, #006b3e, #00c06a); color: #fff; border-radius: 14px; padding: 1.5rem 2rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 4px 20px rgba(0,135,78,.25); }
    .status-banner-dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; flex-shrink: 0; position: relative; }
    .status-banner-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: rgba(255,255,255,.3); animation: pulse-ring 2s ease-out infinite; }
    @keyframes pulse-ring { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
    .status-banner-text { font-size: 1.15rem; font-weight: 700; }
    .status-banner-sub { font-size: .85rem; font-weight: 400; opacity: .85; margin-top: .15rem; }

    .status-section { max-width: 700px; margin: 0 auto; padding: 40px 1.5rem 80px; }
    /* Uebergang Systemverfuegbarkeit -> Meldebox: 24px. Ohne die beiden
       Modifier addieren sich 40px Komponentenabstand, 80px unteres und
       40px oberes Padding zu 160px. Der Vertrag gilt in beiden Zustaenden:
       bei sichtbarem geloestem Hinweis zaehlt dessen Unterkante, sonst die
       des 90-Tage-Balkens. Siehe .agents/status_report_spacing_20260803.md. */
    .status-section--uptime { padding-bottom: 0; }
    .status-section--uptime .status-uptime { margin-bottom: 0; }
    .status-section--report { padding-top: 24px; }
    .status-section h2 { margin-bottom: 1.25rem; font-size: 1.25rem; }

    .status-grid { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 2.5rem; }
    .status-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem 1.4rem; display: flex; align-items: center; gap: 1rem; transition: box-shadow .15s; }
    .status-card:hover { box-shadow: var(--shadow-md); }
    .status-icon { width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
    .status-icon.green { background: var(--green-bg); color: var(--green); }
    .status-info { flex: 1; min-width: 0; }
    .status-info strong, .status-info b { display: block; font-size: .95rem; font-weight: 600; color: var(--text); }
    .status-info span { font-size: .84rem; color: var(--muted); }
    .status-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 100px; font-size: .78rem; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
    .status-badge.up { background: var(--green-bg); color: var(--green); }
    .status-badge.up::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
    .status-time { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 100px; font-size: .78rem; font-weight: 600; white-space: nowrap; flex-shrink: 0; background: #eef2ff; color: #4338ca; }

    .status-uptime { margin-bottom: 2.5rem; }
    .uptime-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
    .uptime-header strong { font-size: .9rem; }
    .uptime-header span { font-size: .82rem; color: var(--muted); }
    .uptime-bar { display: flex; gap: 1px; height: 28px; }
    .uptime-day { flex: 1; border-radius: 2px; background: var(--green); opacity: .85; transition: opacity .15s; cursor: default; position: relative; }
    .uptime-day.down { background: #dc2626; opacity: .9; }
    /* Gelb ist die kurze, behobene Teilstoerung, rot der schwere Ausfall.
       Nur Tage mit hinterlegtem Text sind anklickbar, deshalb der eigene
       Zeiger und der sichtbare Fokusring: der Balken wird per Tastatur
       bedienbar, sobald es etwas zu lesen gibt. */
    .uptime-day.partial { background: #d97706; opacity: .95; }
    .uptime-day[data-incident-text] { cursor: pointer; }
    .uptime-day[data-incident-text]:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
    .uptime-day[aria-expanded="true"] { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor; }
    .uptime-day:hover { opacity: 1; }
    .uptime-daydetail { margin-top: .9rem; padding: .8rem 1rem; background: var(--green-bg); border: 1px solid #c5e3d5; border-left: 4px solid #d97706; border-radius: 8px; font-size: .88rem; color: #0f4a31; line-height: 1.5; }
    .uptime-daydetail[hidden] { display: none !important; }
    .uptime-daydetail b { color: #b45309; }
    .uptime-footer { display: flex; justify-content: space-between; margin-top: .4rem; font-size: .75rem; color: var(--muted); }
.uptime-incident { margin-top: .9rem; padding: .8rem 1rem; background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid #dc2626; border-radius: 8px; font-size: .88rem; color: #7f1d1d; line-height: 1.5; }
.uptime-incident b { color: #dc2626; }
/* Behobene Stoerung ist eine Entwarnung, kein Alarm: gruen statt rot. Der
   Selektor haengt bewusst an .system-up, weil beide Recovery-Pfade genau
   diese Klassenliste zurueckschreiben (check_server_status.py und
   stoerung-behoben.php). Eine Zusatzklasse waere beim naechsten Vorfall weg. */
.uptime-incident.system-up { background: var(--green-bg); border-color: #c5e3d5; border-left-color: var(--green); color: #0f4a31; }
.uptime-incident.system-up b { color: var(--green); }
.uptime-incident[hidden] { display: none !important; }
    /* ─── Status-Toggle (up/down) ─────────────────── */
    [data-system-status="up"] .system-down,
    [data-system-status="down"] .system-up { display: none !important; }
    .status-banner-inner.down { background: linear-gradient(135deg, #991b1b, #dc2626); box-shadow: 0 4px 20px rgba(220,38,38,.25); }
    .status-icon.red { background: #fef2f2; color: #dc2626; }
    .status-badge.down { background: #fef2f2; color: #dc2626; }
    .status-badge.down::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #dc2626; }

    .status-faq { margin-top: 1rem; }
    .status-faq h2 { margin-bottom: 1rem; }
    .faq-list { display: flex; flex-direction: column; gap: .6rem; }
    details.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
    details.faq-item summary { padding: 1rem 1.25rem; font-weight: 600; font-size: .92rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
    details.faq-item summary::-webkit-details-marker { display: none; }
    details.faq-item summary::after { content: "+"; font-size: 1.25rem; font-weight: 300; color: var(--muted); flex-shrink: 0; line-height: 1; }
    details.faq-item[open] summary::after { content: "\2212"; }
    details.faq-item .faq-body { padding: 0 1.25rem 1.1rem; font-size: .875rem; color: var(--muted); line-height: 1.7; }
    details.faq-item .faq-body a { color: var(--green); text-decoration: underline; }

    .report-box { background: var(--bg); border: 2px solid var(--border); border-radius: 14px; padding: 1.75rem 2rem; display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2.5rem; transition: box-shadow .15s; }
    .report-box:hover { box-shadow: var(--shadow-md); }
    .report-icon { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #fef2f2; color: #dc2626; }
    .report-content { flex: 1; }
    .report-content strong { display: block; font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
    .report-content span { font-size: .88rem; color: var(--muted); }
    .report-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.5rem; border-radius: 8px; font-size: .9rem; font-weight: 600; background: #dc2626; color: #fff; transition: all .15s; flex-shrink: 0; text-decoration: none; }
    .report-btn:hover { background: #b91c1c; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(220,38,38,.25); }
    @media (max-width: 640px) {
      .report-box { flex-direction: column; text-align: center; padding: 1.5rem; }
      .report-btn { width: 100%; justify-content: center; }
    }

    footer { background: #0f172a; color: rgba(255,255,255,.75); padding: 52px 0 28px; line-height: 1.65; }
    .footer-wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
    .footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.75rem; }
    @media (max-width: 1240px) { footer .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr 1fr !important; gap: 1.25rem !important; } }
    @media (max-width: 1100px) { footer .footer-grid { gap: 1rem !important; } }
    @media (max-width: 760px) { footer .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 1.6rem !important; } }
    @media (max-width: 520px) { footer .footer-grid { grid-template-columns: 1fr !important; } }
    .footer-logo { margin-bottom: .6rem; }
    .footer-logo img { height: 36px; width: auto; background: #fff; border-radius: 3px; padding: 5px 12px; }
    .footer-desc { font-size: 14px; line-height: 1.7; max-width: 235px; color: rgba(255,255,255,.85); }
    .footer-h a { color: inherit; text-decoration: none; }
    .footer-h a:hover { color: #fff; }
    footer .footer-h-social { margin-top: 2.1rem !important; margin-bottom: .45rem !important; }
    footer .footer-social { margin-top: .15rem !important; }
    .footer-adh { display: inline-block; box-sizing: border-box; width: 161px; max-width: 100%; background: #fff; border-radius: 3px; padding: 5px 12px; margin: 2.2rem 0 .35rem; }
    .footer-adh img { display: block; width: 100%; height: auto; }
    .footer-adh-note { font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.55); }
    .footer-h { color: rgba(255,255,255,.9); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 1.6rem; }
    .footer-col h4 { color: rgba(255,255,255,.75); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 1.6rem; }
    .footer-col ul { display: flex; flex-direction: column; gap: .55rem; list-style: none; }
    .footer-col a { font-size: 14px; transition: color .15s; }
    .footer-col a:hover { color: #fff; }
    .footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.4rem; display: flex; justify-content: space-between; align-items: center; font-size: 14px; flex-wrap: wrap; gap: .65rem; }
    .footer-legal { display: flex; gap: 1.1rem; flex-wrap: wrap; }
    .footer-legal a:hover { color: #fff; }
    .footer-social { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: .5rem; }
    .footer-social a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.7) !important; transition: background .15s, color .15s; text-decoration: none !important; }
    .footer-social a:hover { background: rgba(255,255,255,.2) !important; color: #fff !important; }

    @media (max-width: 960px) {
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 640px) {
      .topbar { display: none; }
      .nav-links, .nav-cta { display: none; }
      .nav-burger { display: flex; }
      .footer-grid { grid-template-columns: 1fr; }
      .footer-bottom { flex-direction: column; align-items: flex-start; }
      .status-banner-inner { flex-direction: column; text-align: center; padding: 1.25rem; }
      .status-card { flex-wrap: wrap; }
    }
