/* hostpress Status – mobile first. Basis = Handy, größere Bildschirme erweitern per min-width. */

:root {
    --bg: #f3f6fd;
    --bg-glow-1: rgba(0, 71, 255, .10);
    --bg-glow-2: rgba(4, 191, 104, .10);
    --bg-glow-3: rgba(239, 106, 46, .08);
    --brand-orange: #ef6a2e;
    --surface: #ffffff;
    --glass: rgba(255, 255, 255, .72);
    --glass-line: rgba(255, 255, 255, .8);
    --text: #000104;
    --muted: #4e505a;
    --line: #e1e7f3;
    --accent: #0047ff;
    --accent-soft: #dbe6ff;
    --on-accent: #ffffff;
    --ok: #006b3f;      --ok-bg: #dff6ea;
    --maint: #0035c4;   --maint-bg: #e3ebff;
    --warn: #7d5200;    --warn-bg: #fff1d1;
    --bad: #9a3a07;     --bad-bg: #ffe5d4;
    --crit: #a11616;    --crit-bg: #fde2e2;
    --brand-green: #04bf68;
    --c-ok: #04bf68; --c-maint: #0047ff; --c-warn: #f2b01e; --c-bad: #f07a2a; --c-crit: #e03a3a;
    --ph-investigating: #f07a2a;
    --ph-identified: #f2b01e;
    --ph-monitoring: #0047ff;
    --ph-resolved: #04bf68;
    --ph-scheduled: #0047ff;
    --ph-in_progress: #f2b01e;
    --ph-completed: #04bf68;
    --radius: 16px;
    --ease: cubic-bezier(.4, 0, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--bg);
    background-image:
        radial-gradient(60rem 30rem at 85% -10%, var(--bg-glow-1), transparent 70%),
        radial-gradient(50rem 30rem at -10% 25%, var(--bg-glow-2), transparent 70%),
        radial-gradient(40rem 24rem at 50% 110%, var(--bg-glow-3), transparent 70%);
    background-attachment: fixed;
    color: var(--text);
    font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; }
.muted, .meta { color: var(--muted); }
.meta { font-size: .88rem; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; margin: .5rem 0 1rem; line-height: 1.25; }
h2 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 .75rem; }
h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 .25rem; }
code { background: var(--line); border-radius: 4px; padding: .05rem .35rem; font-size: .9em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 1rem; }
main.wrap { padding-top: 1.25rem; padding-bottom: 2.5rem; }

/* ---------- Glas: sehr dezent, mit opaker Rückfalloption ---------- */
.glass {
    background: var(--surface);
    border: 1px solid var(--line);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass {
        background: var(--glass);
        border-color: var(--glass-line);
        -webkit-backdrop-filter: blur(10px) saturate(1.08);
        backdrop-filter: blur(10px) saturate(1.08);
        box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .04);
    }
}

/* ---------- Kopfzeile ---------- */
.top { background: #fff; border-bottom: 1px solid var(--line); color: #000104; border-top: 4px solid; border-image: linear-gradient(90deg, #0047ff, #04bf68 55%, #ef6a2e) 1; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .top { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; min-height: 3.5rem; padding-top: .5rem; padding-bottom: .5rem; }
.top a { color: #0047ff; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 600; color: #000104 !important; text-decoration: none; flex-shrink: 0; }
.brand img { display: block; height: 24px; width: auto; max-width: none; flex-shrink: 0; }
.brand .sub { color: #4e505a; border-left: 1px solid #cfd3da; padding-left: .65rem; font-size: .95rem; }
.tag { font-size: .7rem; text-transform: uppercase; background: #0047ff; color: #fff; border-radius: 999px; padding: .1rem .55rem; vertical-align: middle; }
.top nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; font-size: .92rem; }
.site-link { display: none; }
.lang { display: inline-flex; border: 1px solid #cfd3da; border-radius: 999px; overflow: hidden; }
.lang a { padding: .2rem .7rem; text-decoration: none; font-size: .8rem; font-weight: 600; color: #4e505a; transition: background .25s var(--ease), color .25s var(--ease); }
.lang a[aria-current="true"] { background: #0047ff; color: #fff; }

/* ---------- Statusbanner ---------- */
.banner { border-radius: var(--radius); padding: 1rem 1.15rem; margin-bottom: 1.1rem; transition: background-color .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease); }
.banner h1 { margin: 0; font-size: 1.3rem; }
.banner p { margin: .5rem 0 0; }
.banner.ok    { background: var(--brand-green); color: #000104; border-color: transparent; }
.banner.maint { background: var(--maint-bg); color: var(--maint); }
.banner.warn  { background: var(--warn-bg);  color: var(--warn); }
.banner.bad   { background: var(--bad-bg);   color: var(--bad); }
.banner.crit  { background: var(--crit-bg);  color: var(--crit); }

/* ---------- Gruppen-Boxen ---------- */
.group-grid { display: grid; grid-template-columns: 1fr; gap: .9rem; align-items: start; }
.group.box { margin: 0; border-radius: var(--radius); border-top: 4px solid var(--c-ok); overflow: hidden; transition: border-top-color .6s var(--ease); }
.group.box.maint { border-top-color: var(--c-maint); }
.group.box.warn  { border-top-color: var(--c-warn); }
.group.box.bad   { border-top-color: var(--c-bad); }
.group.box.crit  { border-top-color: var(--c-crit); }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem 1rem; border-bottom: 1px solid var(--line); }
.group-head h2 { margin: 0; font-size: .92rem; text-transform: uppercase; letter-spacing: .05em; }
.components { list-style: none; padding: 0; margin: 0; }
.components li {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name state" "hist hist";
    align-items: center; gap: .45rem .75rem; padding: .6rem 1rem; border-top: 1px solid var(--line); font-size: .95rem;
}
.components li:first-child { border-top: 0; }
.cname { grid-area: name; font-weight: 600; min-width: 0; }
.components .hist { grid-area: hist; }
.components .state { grid-area: state; }

/* Status-Text */
.state { font-size: .82rem; font-weight: 600; white-space: nowrap; transition: color .4s var(--ease); }
.state.ok { color: var(--ok); } .state.maint { color: var(--maint); } .state.warn { color: var(--warn); }
.state.bad { color: var(--bad); } .state.crit { color: var(--crit); }

/* 7-Tage-Historie: auf dem Handy volle Breite unter dem Namen */
.hist { display: flex; gap: 3px; width: 100%; }
.seg { flex: 1; height: 14px; border-radius: 3px; background: var(--c-ok); transition: background-color .5s var(--ease), box-shadow .5s var(--ease); }
.seg.maint { background: var(--c-maint); }
.seg.warn  { background: var(--c-warn); }
.seg.bad   { background: var(--c-bad); }
.seg.crit  { background: var(--c-crit); }
.seg[tabindex] { cursor: pointer; }
.seg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg.today.ok { animation: seg-pulse 2.4s ease-in-out infinite; }
@keyframes seg-pulse {
    0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(4, 191, 104, .5); }
    50%      { opacity: .6;  box-shadow: 0 0 0 4px rgba(4, 191, 104, 0); }
}

/* Tooltip */
.tip { position: absolute; z-index: 50; max-width: min(20rem, calc(100vw - 16px)); width: max-content; background: rgba(11, 13, 18, .94); color: #f2f4f8;
       border: 1px solid #2b3039; border-radius: 12px; padding: .6rem .8rem; font-size: .85rem; line-height: 1.4;
       box-shadow: 0 8px 24px rgba(0, 0, 0, .35); pointer-events: none; animation: fade-in .15s var(--ease); }
.tip[hidden] { display: none; }
.tip-day { font-weight: 700; color: #a5acb4; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.tip-item { margin-top: .4rem; padding-top: .4rem; border-top: 1px solid #2b3039; }
.tip-day + .tip-item { border-top: 0; padding-top: 0; }
.tip-title { font-weight: 700; }
.tip-meta { color: #a5acb4; font-size: .8rem; }
.tip-text { margin-top: .2rem; }

/* ---------- Vorfälle ---------- */
.section-title { margin-top: 1.75rem; }
.sub-title { font-size: .95rem; margin: 1.25rem 0 .5rem; color: var(--muted); }
.incident-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.incident { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ph-investigating); border-radius: var(--radius);
            padding: .85rem 1rem; transition: border-color .5s var(--ease); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .incident { background: var(--glass); border-color: var(--glass-line); border-left-color: var(--ph-investigating);
                -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .04); }
}
.incident.ph-identified  { border-left-color: var(--ph-identified) !important; }
.incident.ph-monitoring  { border-left-color: var(--ph-monitoring) !important; }
.incident.ph-resolved    { border-left-color: var(--ph-resolved) !important; }
.incident.ph-scheduled   { border-left-color: var(--ph-scheduled) !important; }
.incident.ph-in_progress { border-left-color: var(--ph-in_progress) !important; }
.incident.ph-completed   { border-left-color: var(--ph-completed) !important; }
.incident-head { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; }
.incident-title { font-weight: 700; flex: 1 1 14rem; }
.ref { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.incident .meta { margin: .5rem 0 .3rem; }
.incident-text { margin: .25rem 0 0; }
.update-sep { border: 0; border-top: 3px solid var(--line); margin: .9rem 0; }
.update-head { margin: 0 0 .15rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.update-badge { background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
                padding: .2rem .6rem; border-radius: 999px; }
.update-badge.first { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--muted); }
.update-phase { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .92rem; }
.update-phase .dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--ph-investigating); }
.update-phase.ph-identified .dot { background: var(--ph-identified); }
.update-phase.ph-monitoring .dot, .update-phase.ph-scheduled .dot, .update-phase.ph-active .dot { background: var(--ph-monitoring); }
.update-phase.ph-resolved .dot, .update-phase.ph-completed .dot { background: var(--ph-resolved); }
.update-phase.ph-in_progress .dot { background: var(--ph-in_progress); }
.update-phase.ph-ended .dot { background: var(--muted); }
.update-time { margin-left: auto; font-size: .95rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

.recent-list { list-style: none; padding: 0; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.recent-list li { display: flex; flex-direction: column; gap: 0; padding: .5rem 1rem; border-top: 1px solid var(--line); font-size: .95rem; }
.recent-list li:first-child { border-top: 0; }
.recent-list .meta { margin: 0; }

/* Kopieren-Button */
.copy { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--accent);
        background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; min-height: 2.25rem;
        transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.copy:hover { background: var(--accent-soft); }
.copy.done { color: var(--ok); border-color: var(--c-ok); background: var(--ok-bg); }
.copy.failed { color: var(--crit); border-color: var(--c-crit); }

/* ---------- Phasen-Stepper ---------- */
.stepper { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: .85rem 0 .4rem; padding: 0; }
.step { position: relative; text-align: center; padding-top: 1.4rem; font-size: .7rem; line-height: 1.25; color: var(--muted); --step-color: var(--line); }
.step .dot { position: absolute; top: 0; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--line);
             border: 2px solid var(--line); transition: background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease); z-index: 1; }
.step::before { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--line); transition: background-color .5s var(--ease); }
.step:first-child::before { display: none; }
.step.done .dot, .step.current .dot { background: var(--step-color); border-color: var(--step-color); }
.step.done::before, .step.current::before { background: var(--step-color); }
.step.current .dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--step-color) 25%, transparent); }
.step.current { color: var(--text); font-weight: 700; }
.step.ph-investigating.done, .step.ph-investigating.current { --step-color: var(--ph-investigating); }
.step.ph-identified.done, .step.ph-identified.current { --step-color: var(--ph-identified); }
.step.ph-monitoring.done, .step.ph-monitoring.current { --step-color: var(--ph-monitoring); }
.step.ph-resolved.done, .step.ph-resolved.current { --step-color: var(--ph-resolved); }
.step.ph-scheduled.done, .step.ph-scheduled.current { --step-color: var(--ph-scheduled); }
.step.ph-in_progress.done, .step.ph-in_progress.current { --step-color: var(--ph-in_progress); }
.step.ph-completed.done, .step.ph-completed.current { --step-color: var(--ph-completed); }
.step-label { display: block; padding: 0 .1rem; overflow-wrap: anywhere; hyphens: auto; }
.phase-hint { margin: .2rem 0 0; font-size: .85rem; color: var(--muted); }

.phase-pill { display: inline-block; border-radius: 999px; padding: .1rem .65rem; font-size: .8rem; font-weight: 700; color: #000104; background: var(--ph-investigating); }
.phase-pill.ph-identified { background: var(--ph-identified); }
.phase-pill.ph-monitoring { background: var(--ph-monitoring); color: #fff; }
.phase-pill.ph-resolved { background: var(--ph-resolved); }
.phase-pill.ph-scheduled { background: var(--ph-scheduled); color: #fff; }
.phase-pill.ph-in_progress { background: var(--ph-in_progress); }
.phase-pill.ph-completed { background: var(--ph-completed); }

/* ---------- Meldung (Detail) und Zeitleiste ---------- */
.card { border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.card h1 { margin-top: .25rem; }
.detail-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.timeline { list-style: none; padding: 0; margin: 1rem 0 0; }
.timeline li { border-left: 3px solid var(--line); padding: 0 0 1rem 1rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li.ph-investigating { border-left-color: var(--ph-investigating); }
.timeline li.ph-identified { border-left-color: var(--ph-identified); }
.timeline li.ph-monitoring { border-left-color: var(--ph-monitoring); }
.timeline li.ph-resolved { border-left-color: var(--ph-resolved); }
.timeline li.ph-scheduled { border-left-color: var(--ph-scheduled); }
.timeline li.ph-in_progress { border-left-color: var(--ph-in_progress); }
.timeline li.ph-completed { border-left-color: var(--ph-completed); }
.timeline time { display: block; color: var(--muted); font-size: .82rem; margin: .15rem 0 0; }
.timeline p { margin: .3rem 0 0; }

.contact { margin-top: 2rem; color: var(--muted); }
.foot { border-top: 1px solid var(--line); padding: 1.25rem 0 2rem; color: var(--muted); font-size: .9rem; }
.pager { margin: 1.5rem 0; }

/* Rechtstexte */
.legal { border-radius: var(--radius); padding: 1.1rem; overflow-wrap: break-word; }
.legal h1 { margin-top: 0; }
.legal h2 { font-size: 1.1rem; margin: 1.75rem 0 .5rem; }
.legal h3 { font-size: 1.02rem; margin: 1.75rem 0 .5rem; }
.legal p { margin: 0 0 .85rem; }
.legal ul, .legal ol { margin: 0 0 .85rem; padding-left: 1.4rem; }
.legal a { overflow-wrap: anywhere; }

/* ---------- Animationen bei Statuswechsel ---------- */
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes changed-flash { 0% { background-color: color-mix(in srgb, var(--accent) 22%, transparent); } 100% { background-color: transparent; } }
.fade-in { animation: fade-in .45s var(--ease); }
.changed { animation: changed-flash 1.6s var(--ease); border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Buttons und Formulare (Admin) ---------- */
.form { display: grid; gap: 1rem; margin: 1rem 0; }
.form.narrow { max-width: 26rem; }
.row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .92rem; }
.form label.check { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: .92rem; padding: 0 .4rem; }
input, select, textarea {
    font: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
    border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; width: 100%; min-height: 2.75rem;
}
input[type=checkbox] { width: auto; min-height: 0; }
textarea { resize: vertical; }
.btn {
    font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
    background: var(--accent); color: var(--on-accent); border: 0; border-radius: 999px; padding: .65rem 1.4rem; min-height: 2.75rem;
}
.btn.secondary { background: var(--accent-soft); color: var(--accent); }
.btn.danger { background: var(--crit-bg); color: var(--crit); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.top .link { color: #0047ff; }
.link.danger { color: var(--crit); font-size: .85rem; }
.inline { display: inline; margin: 0; }
.actions, .btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.btns { grid-column: 1 / -1; }
.flash { border-radius: 10px; padding: .7rem 1rem; margin: 0 0 1rem; border: 1px solid var(--line); }
.flash.ok  { background: var(--ok-bg);   color: var(--ok); }
.flash.err { background: var(--crit-bg); color: var(--crit); }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); }
.table th, .table td { text-align: left; padding: .6rem .8rem; border-top: 1px solid var(--line); }
.table thead th { border-top: 0; font-size: .85rem; color: var(--muted); }
.pill { display: inline-block; border-radius: 999px; padding: .15rem .7rem; font-size: .82rem; font-weight: 500; background: var(--line); color: var(--text); white-space: nowrap; }
.badge { display: inline-block; border-radius: 999px; padding: .15rem .7rem; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.badge.ok    { background: var(--ok-bg);    color: var(--ok); }
.badge.maint { background: var(--maint-bg); color: var(--maint); }
.badge.warn  { background: var(--warn-bg);  color: var(--warn); }
.badge.bad   { background: var(--bad-bg);   color: var(--bad); }
.badge.crit  { background: var(--crit-bg);  color: var(--crit); }
.group-label { margin: .6rem 0 .2rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.template-pick { background: var(--accent-soft); border-radius: var(--radius); padding: .75rem 1rem; }
.template-pick small { font-weight: 400; color: var(--muted); }
details.tpl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .6rem; }
details.tpl > summary { cursor: pointer; padding: .7rem 1rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
details.tpl[open] > summary { border-bottom: 1px solid var(--line); }
details.tpl .form { padding: 0 1rem 1rem; margin: 1rem 0 0; }
.form.row.comps { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.lang-fields { border: 1px dashed var(--line); border-radius: var(--radius); padding: .75rem 1rem; display: grid; gap: .75rem; }
.lang-tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; padding: .05rem .4rem; border-radius: 4px; vertical-align: middle; margin-left: .3rem; }
.lang-tag.de { background: var(--accent-soft); color: var(--maint); }
.lang-tag.en { background: var(--ok-bg); color: var(--ok); }
.lang-boxes label { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; background: var(--surface); }
.lang-fields > summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
body.admin .components { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
body.admin .components li { grid-template-columns: 1fr minmax(8rem, 12rem); grid-template-areas: "name state"; }
body.admin .components select { width: 100%; }
body.admin .group { margin-top: 1rem; }
body.admin .group-head { border: 0; padding: 0 .1rem .35rem; }
body.admin .group-head h3 { margin: 0; }
body.admin .top nav { flex-wrap: wrap; }
body.admin .table { display: block; overflow-x: auto; }

/* ---------- Ab Tablet-Breite ---------- */
@media (min-width: 640px) {
    h1 { font-size: 1.75rem; }
    .wrap { padding: 0 1.25rem; }
    main.wrap { padding-top: 1.5rem; }
    .top .wrap { min-height: 4rem; }
    .brand img { height: 28px; }
    .brand .sub { font-size: 1rem; padding-left: .85rem; }
    .brand { gap: .85rem; }
    .site-link { display: inline; }
    .top nav { gap: .25rem 1.1rem; }
    .banner { padding: 1.1rem 1.4rem; }
    .banner h1 { font-size: 1.45rem; }

    .components li { grid-template-columns: 1fr auto 6rem; grid-template-areas: "name hist state"; gap: .75rem 1rem; padding: .45rem 1rem; }
    .components .hist { width: auto; }
    .seg { flex: none; width: 8px; height: 22px; }

    .step { font-size: .78rem; }
    .recent-list li { flex-direction: row; justify-content: space-between; gap: 1rem; }
    .recent-list .meta { white-space: nowrap; }
    .card { padding: 1.25rem 1.5rem; }
    .legal { padding: 1.5rem 1.75rem; }

    .row { grid-template-columns: 1fr 1fr; }
    .form.row { grid-template-columns: 1fr 1.4fr 7rem auto auto; align-items: end; gap: .75rem; }
    .form.row.groups { grid-template-columns: 1fr 1fr 7rem auto auto; }
    .form.row.comps { grid-template-columns: 2fr 2fr 2fr 2fr 5.5rem; }
    body.admin .table { display: table; }
    body.admin .components li { grid-template-columns: 1fr minmax(8rem, 12rem); }
}
@media (min-width: 760px) {
    .group-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.intro { margin: 0 0 1.1rem; color: var(--muted); }

/* Info (Hinweise ohne Störung) */
.incident.ph-active { border-left-color: var(--accent) !important; }
.incident.ph-ended  { border-left-color: var(--line) !important; }
.timeline li.ph-active { border-left-color: var(--accent); }
.timeline li.ph-ended { border-left-color: var(--muted); }
.phase-pill.ph-active { background: var(--accent); color: #fff; }
.phase-pill.ph-ended { background: var(--line); color: var(--text); }
.info-pill { background: var(--maint-bg); color: var(--maint); font-weight: 700; }

/* Update-Text bearbeiten (Admin) */
details.edit-update { margin: .4rem 0 .2rem; }
details.edit-update > summary { cursor: pointer; color: var(--accent); font-size: .85rem; font-weight: 600; }
details.edit-update .form { margin: .6rem 0 .8rem; }

/* Formatierter Text (Markdown-Teilmenge) */
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 .7rem; }
.rich h3.md-h { font-size: 1.02rem; margin: 1.1rem 0 .35rem; }
.rich h4.md-h { font-size: .95rem; margin: .9rem 0 .3rem; color: var(--muted); }
.rich ul, .rich ol { margin: 0 0 .7rem; padding-left: 1.3rem; }
.rich li { margin: .15rem 0; }
.rich strong { font-weight: 700; }
.rich code { background: var(--line); border-radius: 4px; padding: .05rem .35rem; font-size: .9em; }
.rich a { overflow-wrap: anywhere; }
.incident-text.rich { margin: .25rem 0 0; }
.timeline .rich { margin-top: .3rem; }
.intro.rich { margin: 0 0 1.1rem; }
.contact.rich { margin-top: 2rem; color: var(--muted); }

/* Format-Leiste im Admin */
.md-toolbar { display: flex; flex-wrap: wrap; gap: .35rem; }
.md-btn { font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--accent); background: var(--accent-soft); border: 0; border-radius: 999px; padding: .25rem .8rem; min-height: 2rem; }
.md-btn:hover { filter: brightness(.96); }
.md-hint { color: var(--muted); font-weight: 400; font-size: .8rem; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
