html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ===== Plas-360 Navigation ===== */
.nav-top { display:flex; align-items:center; justify-content:space-between; padding:16px 16px 10px; }
.nav-top .brand { display:flex; align-items:center; gap:11px; text-decoration:none; }
.nav-top .brand img { width:36px; height:36px; border-radius:10px; }
.nav-top .brand-text { color:#fff; font-size:1.2rem; letter-spacing:.4px; font-weight:400; }
.nav-top .brand-text b { font-weight:800; color:#7db8ff; }

.menu { display:flex; flex-direction:column; padding:6px 10px 18px; gap:3px; }
.menu .menu-link { display:flex; align-items:center; gap:13px; padding:11px 14px; border-radius:11px; color:#c7d2e0; text-decoration:none; font-size:.96rem; transition:background .15s, color .15s; }
.menu .menu-link svg { width:21px; height:21px; flex:0 0 21px; stroke:currentColor; stroke-width:2; fill:none; }
.menu .menu-link:hover { background:rgba(255,255,255,.09); color:#fff; }
.menu .menu-link.active { background:linear-gradient(90deg, rgba(63,176,255,.28), rgba(180,92,255,.22)); color:#fff; box-shadow: inset 3px 0 0 #7db8ff; }

/* ===== Startseite ===== */
.landing { max-width:780px; margin:0 auto; padding:22px 16px 96px; font-family:system-ui,-apple-system,sans-serif; }
.landing .hero { text-align:center; }
.landing .hero img { width:88px; height:88px; border-radius:22px; box-shadow:0 8px 26px rgba(11,26,54,.28); }
.landing .hero h1 { font-size:1.85rem; margin:16px 0 6px; letter-spacing:.3px; }
.landing .hero h1 b { color:#2563eb; }
.landing .lead { color:#556; font-size:1.06rem; line-height:1.55; margin:0 auto 8px; max-width:580px; }
.landing .features { display:grid; grid-template-columns:repeat(auto-fit,minmax(158px,1fr)); gap:12px; margin:24px 0; }
.landing .feature { border:1px solid #e8ebf0; border-radius:15px; padding:16px; background:#fff; }
.landing .feature svg { width:26px; height:26px; stroke:#2563eb; stroke-width:2; fill:none; }
.landing .feature b { display:block; margin:9px 0 3px; font-size:1rem; color:#1e293b; }
.landing .feature span { color:#667; font-size:.9em; line-height:1.4; }
.landing .cta { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:6px; }
.landing .cta a { padding:13px 24px; border-radius:12px; text-decoration:none; font-weight:600; font-size:1rem; }
.landing .cta .primary { background:#2563eb; color:#fff; box-shadow:0 4px 14px rgba(37,99,235,.3); }
.landing .cta .ghost { border:1px solid #cbd5e1; color:#334155; }
.landing .note { text-align:center; color:#94a3b8; font-size:.82rem; margin-top:26px; }

/* ===== Dashboard Status-Liste ===== */
.dash { max-width:640px; margin:0 auto; padding:16px 14px 96px; font-family:system-ui,-apple-system,sans-serif; }
.dash-head { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.dash-head h2 { margin:0; font-size:1.4rem; }
.live-badge { font-size:.72rem; padding:3px 11px; border-radius:999px; color:#fff; font-weight:600; }
.live-on { background:#16a34a; } .live-off { background:#9ca3af; }
.sos-banner { background:#dc2626; color:#fff; padding:12px 14px; border-radius:12px; margin-bottom:12px; font-weight:600; }
.mcard { display:flex; align-items:center; gap:13px; padding:13px 14px; border:1px solid #e8ebf0; border-radius:15px; margin-bottom:10px; background:#fff; }
.mcard .av { width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:1.15rem; flex:0 0 46px; }
.mcard .info { flex:1; min-width:0; }
.mcard .nm { font-weight:600; font-size:1.02rem; color:#1e293b; }
.mcard .nm small { color:#94a3b8; font-weight:400; font-size:.85em; }
.mcard .sub { font-size:.85rem; color:#64748b; display:flex; gap:12px; flex-wrap:wrap; margin-top:4px; align-items:center; }
.st { display:inline-flex; align-items:center; gap:6px; }
.st i { width:9px; height:9px; border-radius:50%; display:inline-block; }
.st.on { color:#16a34a; } .st.on i { background:#16a34a; }
.st.off { color:#94a3b8; } .st.off i { background:#cbd5e1; }
.batt.low { color:#dc2626; font-weight:600; } .batt.mid { color:#d97706; font-weight:600; } .batt.hi { color:#16a34a; font-weight:600; }
.dash-events h3 { font-size:1rem; margin:18px 0 8px; color:#334155; }
.evrow { font-size:.9rem; padding:7px 0; border-bottom:1px solid #f1f5f9; color:#475569; }

/* ===== Tracker (Karte) ===== */
.trk-head { display:flex; align-items:center; gap:10px; padding:12px 14px 6px; font-family:system-ui,sans-serif; }
.trk-head h2 { margin:0; font-size:1.3rem; }
.trk-map { height:54vh; }
.trk-map #plas-map { width:100%; height:100%; }
.trk-chips { display:flex; gap:8px; overflow-x:auto; padding:10px 14px; }
.trk-chip { display:flex; align-items:center; gap:7px; padding:7px 12px; border:1px solid #e2e8f0; border-radius:999px; background:#fff; white-space:nowrap; cursor:pointer; font-size:.85rem; color:#1e293b; }
.trk-chip .cav { width:22px; height:22px; border-radius:50%; color:#fff; display:flex; align-items:center; justify-content:center; font-size:.72rem; font-weight:700; }
.trk-chip.is-following { border-color:#2563eb; background:#eff6ff; color:#1d4ed8; font-weight:700; box-shadow:0 0 0 2px rgba(37,99,235,.15); }
.trk-follow-ic { font-size:.8rem; }
.trk-following { display:flex; align-items:center; justify-content:center; gap:10px; margin:8px 14px 0; padding:8px 14px; background:#eff6ff; border:1px solid #bfdbfe; border-radius:12px; font-size:.85rem; color:#1e3a8a; }
.trk-unfollow { border:0; background:#dbeafe; color:#1d4ed8; font-weight:700; padding:5px 11px; border-radius:999px; cursor:pointer; font-size:.8rem; }
/* Personenliste unter der Karte: pro Zeile Avatar, Name+Modus, Adresse, Akku –
   fixe Zeilenhöhe, Adresse mit Ellipse, damit nichts überlappt. */
.trk-people { display:flex; flex-direction:column; gap:8px; padding:10px 14px 4px; }
.trk-person { display:flex; align-items:center; gap:12px; width:100%; text-align:left; background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:10px 12px; cursor:pointer; font:inherit; }
.trk-person.is-following { border-color:#2563eb; box-shadow:0 0 0 2px rgba(37,99,235,.15); background:#f8fafc; }
.tp-av { flex:0 0 auto; width:44px; height:44px; border-radius:50%; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:1.1rem; overflow:hidden; }
.tp-av img { width:100%; height:100%; object-fit:cover; }
.tp-main { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; }
.tp-top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.tp-name { font-size:1rem; color:#0f172a; }
.tp-mode { font-size:.78rem; color:#475569; background:#f1f5f9; border-radius:999px; padding:2px 8px; white-space:nowrap; }
.tp-mode.tp-warn { color:#b91c1c; background:#fee2e2; font-weight:700; }
.tp-addr { font-size:.85rem; color:#64748b; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tp-bat { flex:0 0 auto; font-size:.85rem; font-weight:700; white-space:nowrap; }
.tp-follow { flex:0 0 auto; font-size:.9rem; }
/* Status-Pill: grün pulsierend = Standort wird geteilt, amber = pausiert */
.trk-status { display:flex; justify-content:center; padding:12px 14px 4px; }
.trk-pill { display:inline-flex; align-items:center; gap:9px; padding:7px 16px; border-radius:999px; font-size:.86rem; font-weight:600; text-align:center; }
.trk-pill .dot { width:9px; height:9px; border-radius:50%; flex:0 0 auto; }
.trk-pill.on { background:#dcfce7; color:#15803d; }
.trk-pill.on .dot { background:#16a34a; animation:trkpulse 2s infinite; }
.trk-pill.off { background:#fef3c7; color:#b45309; }
.trk-pill.off .dot { background:#f59e0b; }
@keyframes trkpulse { 0%{box-shadow:0 0 0 0 rgba(22,163,74,.45)} 70%{box-shadow:0 0 0 7px rgba(22,163,74,0)} 100%{box-shadow:0 0 0 0 rgba(22,163,74,0)} }

/* Steuer-Buttons: modern, abgerundet, mit Tiefe */
.trk-ctrl { display:flex; gap:12px; padding:10px 14px calc(16px + env(safe-area-inset-bottom)); }
.trk-ctrl button { border:0; border-radius:16px; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; transition:transform .06s ease, box-shadow .2s ease, background .2s ease; -webkit-tap-highlight-color:transparent; touch-action:manipulation; -webkit-user-select:none; -moz-user-select:none; user-select:none; -webkit-touch-callout:none; }
.trk-ctrl button:active { transform:translateY(1px); }
.trk-toggle { flex:1; padding:16px; font-size:1rem; }
.trk-toggle.is-on { background:#f1f5f9; color:#334155; border:1.5px solid #e2e8f0 !important; }
.trk-toggle.is-off { background:#16a34a; color:#fff; box-shadow:0 6px 16px rgba(22,163,74,.35); }
.trk-sos { flex:0 0 40%; padding:16px; font-size:1.08rem; letter-spacing:.5px; color:#fff; background:linear-gradient(135deg,#f43f5e,#b91c1c); box-shadow:0 6px 18px rgba(220,38,38,.42); }
.trk-sos .sos-ic { font-size:1.15rem; }
.trk-sos:disabled { opacity:.55; box-shadow:none; }

/* ===== Eigenwerbung ===== */
.ad-banner { position:relative; display:flex; align-items:center; gap:12px; text-decoration:none;
    background:#fff; border:1px solid #e8ebf0; border-radius:14px; padding:14px 14px 14px 16px; margin:8px 0; }
.ad-banner .ad-tag { position:absolute; top:6px; right:10px; font-size:.62rem; color:#9ca3af; letter-spacing:.5px; text-transform:uppercase; }
.ad-banner .ad-body { flex:1; min-width:0; }
.ad-banner .ad-badge { display:inline-block; font-size:.68rem; font-weight:700; color:#fff; border-radius:6px; padding:2px 8px; margin-bottom:5px; }
.ad-banner .ad-title { font-weight:700; color:#1e293b; font-size:1rem; }
.ad-banner .ad-text { color:#64748b; font-size:.88rem; margin-top:2px; }
.ad-banner .ad-arrow { font-size:1.8rem; font-weight:700; line-height:1; }
