/* =============================================================
   TNRS Oeffentliche Seite - Rettungsdienst / Blaulicht-Design
   ============================================================= */
:root {
    --p-red: #b3121b;
    --p-red-dk: #7a0810;
    --p-red-lt: #ff5460;
    --p-ink: #0a1220;
    --p-ink-2: #131e30;
    --p-white: #ffffff;
    --p-cream: #f7f4ef;
    --p-line: rgba(255,255,255,0.14);
    --p-mute: #9aa4b4;
    --p-accent: #f5a524;
    --p-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --p-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.pub {
    font-family: var(--p-font);
    background: var(--p-ink);
    color: #e6ebf3;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
.pub-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a { color: var(--p-white); text-decoration: none; }
a:hover { color: var(--p-accent); }

/* ---------- Blaulicht Header ---------- */
.beacon {
    position: fixed; top: 20px; right: 20px; z-index: 40;
    display: flex; gap: 6px; pointer-events: none;
}
.beacon .dot {
    width: 14px; height: 14px; border-radius: 50%;
    box-shadow: 0 0 18px currentColor;
}
.beacon .d1 { color: #ff2436; background: #ff2436; animation: blink 1.2s infinite; }
.beacon .d2 { color: #2872ff; background: #2872ff; animation: blink 1.2s infinite 0.6s; }
@keyframes blink { 0%,100% { opacity: 0.25; } 50% { opacity: 1; } }

.pub-hero {
    position: relative;
    padding: 46px 0 34px;
    background:
        linear-gradient(120deg, rgba(179,18,27,0.9) 0%, rgba(179,18,27,0.55) 45%, transparent 70%),
        linear-gradient(180deg, var(--p-ink-2), var(--p-ink)),
        radial-gradient(circle at 90% 20%, rgba(40,114,255,0.35), transparent 60%);
    border-bottom: 4px solid var(--p-red);
}
.pub-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 8px, transparent 8px 16px);
    pointer-events: none;
}
.pub-hero .pub-container {
    display: flex; justify-content: space-between; align-items: center;
    gap: 24px; flex-wrap: wrap;
    position: relative; z-index: 2;
}
.pub-brand { display: flex; align-items: center; gap: 24px; }
.pub-logo {
    height: 140px;
    width: auto;
    display: block;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.55));
    transition: transform .25s ease;
}
.pub-logo:hover { transform: scale(1.02) rotate(-1deg); }
.pub-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--p-white);
    color: var(--p-red);
    font-weight: 800;
    padding: 14px 20px;
    letter-spacing: 3px;
    font-size: 20px;
    border-radius: 4px;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.08), 0 12px 28px rgba(0,0,0,0.5);
}
.pub-brand h1 { margin: 0 0 4px; font-size: 30px; letter-spacing: -0.3px; }
.pub-tag { margin: 0; color: #cfd7e2; font-size: 14px; text-transform: uppercase; letter-spacing: 2px; }

.pub-cta {
    display: inline-flex; align-items: center;
    background: var(--p-white);
    color: var(--p-red) !important;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    transition: transform .15s;
}
.pub-cta:hover { transform: translateY(-2px); color: var(--p-red) !important; }
.pub-cta.big { padding: 16px 28px; font-size: 17px; }
.pub-cta.ghost {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.35);
    box-shadow: none;
}
.pub-cta.ghost:hover { border-color: var(--p-accent); color: var(--p-accent) !important; }

/* ---------- Stats ---------- */
.pub-stats { background: var(--p-ink-2); padding: 34px 0; border-bottom: 1px solid var(--p-line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.s-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--p-line);
    border-radius: 6px;
    padding: 20px;
    display: flex; flex-direction: column;
    border-left: 3px solid var(--p-red);
}
.s-num { font-size: 34px; font-weight: 800; color: #fff; font-family: var(--p-mono); }
.s-label { color: var(--p-mute); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; }

/* ---------- Sections ---------- */
.pub-section { padding: 44px 0; }
.pub-section h2 { font-size: 26px; margin: 0 0 6px; color: #fff; letter-spacing: -0.2px; }
.pub-section h2::before {
    content: '';
    display: inline-block;
    width: 6px; height: 22px;
    background: var(--p-red);
    margin-right: 12px;
    vertical-align: -4px;
    border-radius: 2px;
}
.pub-section p.dim { color: var(--p-mute); font-size: 13.5px; margin: 2px 0 22px 18px; }
.pub-alt { background: var(--p-ink-2); border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line); }

/* ---------- Table ---------- */
.pub-table-wrap {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--p-line);
    border-radius: 8px;
    overflow: hidden;
}
.pub-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pub-table th {
    background: rgba(255,255,255,0.06);
    color: #e6ebf3;
    text-align: left;
    padding: 14px 16px;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--p-line);
    font-weight: 600;
}
.pub-table td { padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.pub-table tr:hover td { background: rgba(255,255,255,0.02); }
.pub-table .empty { text-align: center; padding: 36px 16px; color: var(--p-mute); }
.p-enr {
    font-family: var(--p-mono);
    background: var(--p-red);
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.dim { color: var(--p-mute); font-size: 12px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--p-line);
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 13px;
    display: flex; align-items: center; gap: 10px;
}
.chip-num {
    background: var(--p-red);
    color: #fff;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-family: var(--p-mono);
}

/* ---------- Help section ---------- */
.pub-help {
    background:
        linear-gradient(180deg, rgba(179,18,27,0.05), transparent 40%),
        var(--p-ink);
}
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.help-grid h2 { margin-bottom: 12px; }

/* ---------- Footer ---------- */
.pub-foot {
    background: #000;
    color: #aeb6c2;
    padding: 30px 0;
    font-size: 13px;
    border-top: 3px solid var(--p-red);
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 24px; align-items: end; }
.foot-copy { text-align: right; font-size: 12px; color: var(--p-mute); }

@media (max-width: 800px) {
    .pub-hero .pub-container { flex-direction: column; align-items: flex-start; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .help-grid { grid-template-columns: 1fr; gap: 20px; }
    .foot-grid { grid-template-columns: 1fr; text-align: left; }
    .foot-copy { text-align: left; }
    .pub-brand h1 { font-size: 22px; }
    .pub-logo { height: 100px; }
    .beacon { top: 10px; right: 10px; }
}
