:root {
    --pap-bg: #f3f6fb; --pap-surface: #ffffff; --pap-ink: #15243b;
    --pap-muted: #5c6d83; --pap-border: #dce4ef; --pap-accent: #2158d5;
    --pap-tint: #edf3ff; --pap-green: #137452; --pap-shadow: 0 4px 24px #1a345908;
    font-size: 16px; color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; background: var(--pap-bg); color: var(--pap-ink); line-height: 1.55; }
[hidden] { display: none !important; }
a { color: var(--pap-accent); text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #4073ef; outline-offset: 4px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.2; }
h2 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.02em; }
h3 { font-size: 1rem; font-weight: 650; }
h1:focus { outline: none; }
code { font-family: "Cascadia Code", Consolas, monospace; font-size: .875rem; color: #425571; overflow-wrap: anywhere; }
.pap-icon { display: inline-block; width: 1.3rem; height: 1.3rem; flex: 0 0 auto; vertical-align: middle; }
.eyebrow { display: block; color: var(--pap-accent); font-size: .75rem; font-weight: 750; letter-spacing: .13em; margin-bottom: .6rem; }
.live-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .85rem; border: 1px solid #cde4da; background: #f2fbf7; color: #19684e; border-radius: 100px; font-size: .875rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.live-pill i, .health-label i { width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.live-pill i { animation: pap-pulse 3s ease-in-out infinite; }
.pap-loading { padding: 5rem 1.5rem; text-align: center; color: var(--pap-muted); }
.pap-alert { display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem; margin: 1rem 0; background: #fff3f3; color: #a52c38; border: 1px solid #f2cbd0; border-radius: 1rem; }
.empty-state { padding: 3rem 1.5rem; text-align: center; color: var(--pap-muted); border: 1px dashed var(--pap-border); border-radius: 1rem; background: white; }
.empty-state h3 { margin-top: 1rem; color: var(--pap-ink); }
.empty-state p { margin-bottom: 0; }
.empty-state > .pap-icon { width: 2rem; height: 2rem; color: #6383ba; }
.access-badge { display: inline-flex; align-items: center; padding: .25rem .65rem; border-radius: 6px; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.access-badge.positive { background: #eaf7f0; color: #19694c; }
.access-badge.neutral { background: #edf1f6; color: #57677d; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #268663; }
.invalid { outline: 2px solid #c03646; }
.validation-message { color: #b02435; }
.blazor-error-boundary { padding: 1.5rem; border-radius: .75rem; background: #a32939; color: white; }
.blazor-error-boundary::after { content: "Die Ansicht konnte nicht geladen werden."; }
@keyframes pap-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pap-pulse { 50% { box-shadow: 0 0 0 4px #13825e12; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.standalone-page { min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(ellipse at 15% 0%, #214567, transparent 60%), #0e1c30; }
.standalone-card { width: min(100%, 31rem); padding: clamp(1.5rem, 5vw, 3rem); border-radius: 1.5rem; background: white; box-shadow: 0 24px 80px #0003; text-align: center; animation: pap-enter .35s ease both; }
.standalone-card > .pap-icon { width: 2.5rem; height: 2.5rem; margin-bottom: 1.5rem; color: var(--pap-accent); }
.standalone-card p { color: var(--pap-muted); }
.portal-button { display: inline-flex; justify-content: center; align-items: center; gap: .7rem; min-height: 2.9rem; border: 0; border-radius: .7rem; padding: .7rem 1rem; background: var(--pap-accent); color: white; font-weight: 600; text-decoration: none; }
.portal-button:hover { background: #1948b2; color: white; }
.publication-switch { display:flex; align-items:center; gap:.35rem; width:max-content; max-width:100%; padding:.3rem; border:1px solid var(--pap-border); border-radius:.9rem; background:#eaf0f8; }
.publication-switch a { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; min-height:2.7rem; padding:.55rem 1rem; border-radius:.65rem; color:#50647f; font-weight:650; font-size:.9rem; text-decoration:none; transition:background .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease; }
.publication-switch a:hover { color:#1e4eb9; transform:translateY(-1px); }
.publication-switch a.active { background:white; color:var(--pap-accent); box-shadow:0 2px 10px #1a345918; }
@media(max-width:560px) { .publication-switch { width:100%; }.publication-switch a { flex:1; padding:.55rem .45rem; font-size:.82rem; } }
.proxy-subnav { display:flex; align-items:center; gap:1.25rem; border-bottom:1px solid var(--pap-border); }
.proxy-subnav a { display:inline-flex; align-items:center; min-height:2.7rem; border-bottom:2px solid transparent; color:var(--pap-muted); text-decoration:none; font-weight:650; font-size:.875rem; transition:color .2s,border-color .2s; }
.proxy-subnav a:hover,.proxy-subnav a.active { color:var(--pap-accent); }
.proxy-subnav a.active { border-color:var(--pap-accent); }
