/* DMZ Hajin Intel – dunkles, militärisches Design */
:root {
  --bg: #0b0d0f;
  --bg-2: #111418;
  --panel: #15191e;
  --panel-2: #1b2027;
  --line: #2a3038;
  --line-2: #39414b;
  --text: #ecebe8;
  --muted: #9aa1a9;
  --accent: #ffb000;
  --accent-2: #ff7a00;
  --ok: #3ddc84;
  --bad: #ef4444;
  --radius: 6px;
  --head-h: 56px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: .02em; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
code { font-family: var(--mono); background: var(--panel-2); padding: 1px 5px; border-radius: 4px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  height: var(--head-h); flex-shrink: 0; padding-left: max(16px, env(safe-area-inset-left, 0px)) !important; padding-right: max(16px, env(safe-area-inset-right, 0px)) !important; display: flex; align-items: center; gap: 18px; padding: 0 16px;
  background: linear-gradient(180deg, #14171b, #0e1013); border-bottom: 1px solid var(--line);
  position: relative; z-index: 1100;
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: repeating-linear-gradient(135deg, var(--accent) 0 10px, transparent 10px 20px); opacity: .55; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand .logo { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .06em; }
.brand-text b { color: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: var(--radius); font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a.nav-discord { display: inline-flex; align-items: center; gap: 6px; color: #fff; background: #5865f2; }
.nav a.nav-discord:hover { background: #4752c4; color: #fff; }
@media (max-width: 860px) { .nav a.nav-discord span { display: none; } }
.nav a.active { color: var(--accent); background: rgba(255, 176, 0, .1); }
.count:not(:empty) { background: var(--accent-2); color: #111; border-radius: 10px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
.auth { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.user-chip { display: flex; align-items: center; gap: 8px; }
.user-chip img, .avatar-fallback { width: 28px; height: 28px; border-radius: 50%; }
.avatar-fallback { display: grid; place-items: center; background: var(--panel-2); font-weight: 700; }
.role { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); }
.role-admin, .role-moderator { color: var(--accent); border-color: rgba(255, 176, 0, .5); }

.demo-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 16px; font-size: 13px;
  background: #2a2008; color: #ffd98a; border-bottom: 1px solid #5c4612; position: relative; z-index: 1050; }
.demo-bar .icon-btn { margin-left: auto; }
@media (max-width: 860px) { .demo-bar { font-size: 12px; padding: 5px 10px; gap: 6px; } .demo-bar .btn-sm { min-height: 26px; padding: 2px 8px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; min-height: 38px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; font-weight: 600; text-decoration: none; color: var(--text); white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sm { padding: 4px 10px; min-height: 30px; font-size: 13px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #111; text-transform: uppercase; letter-spacing: .04em; }
.btn-primary:hover { background: #ffc233; border-color: #ffc233; }
.btn-dark { background: rgba(17, 20, 24, .92); backdrop-filter: blur(6px); }
.btn-dark.active { color: var(--accent); border-color: rgba(255, 176, 0, .6); }
.btn-ghost { background: transparent; }
.btn-ok { background: rgba(61, 220, 132, .12); border-color: rgba(61, 220, 132, .5); color: #8ff0bb; }
.btn-gone { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .5); color: #fca5a5; }
.btn-ok.voted, .btn-gone.voted { outline: 2px solid currentColor; outline-offset: 1px; }
.btn-danger { background: transparent; border-color: rgba(239, 68, 68, .6); color: #fca5a5; }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.pulse { animation: pulse 0.6s ease 3; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 176, 0, .5); } }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; width: 34px; height: 34px; border-radius: var(--radius); }
.icon-btn:hover { color: var(--text); background: var(--panel-2); }
.link-btn { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.btn-row.tight { margin: 0 0 12px; gap: 6px; }
.btn-row.end { justify-content: flex-end; }
.btn-row > .btn-ok, .btn-row > .btn-gone { flex: 1; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 8px; border-radius: 4px; white-space: nowrap; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.badge-solid { background: var(--c); color: #111; border-color: var(--c); }
.badge-muted { --c: #9aa1a9; }
.badge-ico svg { width: 13px; height: 13px; display: block; }

/* ---------- Karten-Layout ---------- */
html, body { height: 100%; }
#app { min-height: 100%; display: flex; flex-direction: column; }
body.on-map #app { height: 100%; overflow: hidden; }
#views { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.view { flex: 1; display: flex; flex-direction: column; }
.view-map { position: relative; min-height: 0; }
.map-layout { position: absolute; inset: 0; display: flex; }
.sidebar { width: 290px; flex-shrink: 0; background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 1000; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.sidebar-head h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.sidebar-scroll { overflow-y: auto; padding: 0 16px 16px; flex: 1; }
.map-wrap { flex: 1; position: relative; min-width: 0; }
#map { position: absolute; inset: 0; background: #07090b; }
.placing #map, .placing #map .leaflet-interactive { cursor: crosshair !important; }

.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-row { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: var(--radius); cursor: pointer; }
.filter-row:hover { background: var(--panel); }
.filter-row input, .sub-row input, .switch-row input, .check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
.filter-ico { width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #111; display: grid; place-items: center; flex-shrink: 0; }
.filter-ico svg { width: 15px; height: 15px; }
.filter-name { flex: 1; font-weight: 600; font-size: 14px; line-height: 1.25; }
.n { color: var(--muted); font-size: 12px; font-family: var(--mono); }
.sub-filters { margin: 0 0 6px 33px; padding-left: 10px; border-left: 1px solid var(--line); }
.sub-row { display: flex; align-items: center; gap: 8px; padding: 3px 4px; font-size: 13.5px; cursor: pointer; }
.sub-row > span:not(.n):not(.dot) { flex: 1; }
.sub-actions { display: flex; gap: 12px; padding: 2px 4px 4px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.filter-extra { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.switch-row { display: flex; gap: 9px; align-items: center; font-size: 14px; cursor: pointer; }
.legend { margin-top: 12px; padding: 10px 12px; background: var(--panel); border-radius: var(--radius); font-size: 12.5px; color: var(--muted); }
.legend h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 6px; }
.legend p { margin: 4px 0; display: flex; align-items: center; gap: 8px; }
.lg { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.lg-pending { background: transparent; border: 2px dashed var(--accent); }
.lg-stale { opacity: .4; }
.lg-threat { box-shadow: 0 0 0 3px #a21caf; }

/* Suche + Aktionen über der Karte */
.map-top { position: absolute; top: 12px; left: 12px; right: 330px; z-index: 900; display: flex; gap: 8px; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.search { position: relative; flex: 1; max-width: 460px; }
.search input { width: 100%; height: 42px; padding: 0 14px 0 38px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: rgba(17, 20, 24, .95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa1a9' stroke-width='2.2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") 12px 50%/17px no-repeat;
  backdrop-filter: blur(6px); outline: none; }
.search input:focus { border-color: var(--accent); }
.search-results { position: absolute; top: 46px; left: 0; right: 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.5); max-height: 60vh; overflow-y: auto; }
.sr { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 12px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.sr:hover, .sr:focus { background: var(--panel-2); outline: none; }
.sr small { display: block; color: var(--muted); font-size: 12px; }
.sr-ico { width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #111; display: grid; place-items: center; flex-shrink: 0; }
.sr-ico svg { width: 15px; height: 15px; }
.sr-empty { padding: 12px; color: var(--muted); }
.map-actions { position: absolute; right: 12px; top: 12px; z-index: 900; display: flex; gap: 8px; }
.place-banner { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); z-index: 950; display: flex; gap: 12px; align-items: center;
  background: var(--accent); color: #111; font-weight: 700; padding: 8px 10px 8px 16px; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0,0,0,.5); max-width: calc(100% - 24px); }
.place-banner .btn { color: #111; border-color: rgba(0,0,0,.35); }
.placeholder-note { position: absolute; left: 12px; bottom: 34px; z-index: 800; background: rgba(42, 32, 8, .92); color: #ffd98a; font-size: 12.5px; padding: 6px 10px; border-radius: var(--radius); border: 1px solid #5c4612; max-width: calc(100% - 80px); }

/* Leaflet anpassen */
.leaflet-container { background: #07090b; font: inherit; }
.leaflet-bar a { background: rgba(17, 20, 24, .95); color: var(--text); border-color: var(--line-2) !important; width: 38px !important; height: 38px !important; line-height: 38px !important; }
.leaflet-bar a:hover { background: var(--panel-2); color: var(--accent); }
.leaflet-bar { border: 1px solid var(--line-2) !important; }
.grid-label span { position: absolute; left: 4px; top: 2px; font: 700 12px/1 var(--mono); color: rgba(255, 176, 0, .85); text-shadow: 0 0 3px #000, 0 0 3px #000; white-space: nowrap; pointer-events: none; }
.zoomed-out .grid-label span { font-size: 10px; }
.place-label span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none;
  font: 700 13px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  text-shadow: 0 0 4px #000, 0 0 4px #000, 0 0 8px #000; }
.zoomed-out .place-label span { font-size: 10.5px; letter-spacing: .06em; }
.place-label.minor span { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: #d6d9dc; }
.zoomed-out .place-label.minor { display: none; }

/* Marker */
.pin-wrap { background: none; border: 0; }
.pin { width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #0b0d0f; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--ring), 0 0 0 3.5px rgba(0,0,0,.6), 0 3px 8px rgba(0,0,0,.6); transition: transform .12s; }
.zoomed-out .pin { transform: scale(.78); }
.pin:hover { transform: scale(1.12); }
.pin-glyph svg { width: 19px; height: 19px; display: block; }
.pin.is-selected { transform: scale(1.25); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--accent), 0 4px 14px rgba(0,0,0,.7); }
.pin.is-pending { background: color-mix(in srgb, var(--c) 35%, #111); color: var(--c); outline: 2px dashed var(--c); outline-offset: 2px; }
.pin.is-stale:not(.is-selected) { opacity: .5; filter: saturate(.4); }

/* ---------- Info-Panel ---------- */
.panel { width: 380px; flex-shrink: 0; background: var(--bg-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; z-index: 1000; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 0 16px; }
.panel-scroll { overflow-y: auto; padding: 8px 16px 20px; }
.panel-title { font-size: 22px; line-height: 1.2; margin: 6px 0 12px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.facts > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 10px; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.facts dd.mono { font-size: 18px; color: var(--accent); }
.desc { white-space: pre-wrap; margin: 0 0 12px; }
.notice { font-size: 13px; padding: 7px 10px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); margin-bottom: 10px; color: var(--muted); }
.notice-warn { background: #2a2008; border-color: #5c4612; color: #ffd98a; }
.shot img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; margin-bottom: 12px; }
.confirm-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 2px; }
.confirm-box.is-stale { border-color: #7a5a12; }
.confirm-line { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 13.5px; }
.votes { display: flex; gap: 10px; font-family: var(--mono); }
.v-ok { color: var(--ok); } .v-gone { color: #fca5a5; }
.stale-note { color: #ffd98a; font-size: 13px; margin-top: 6px; }
.mod-row { padding-top: 10px; border-top: 1px dashed var(--line-2); }
.meta { font-size: 13px; color: var(--muted); }
.history { border: 1px solid var(--line); border-radius: var(--radius); }
.history summary { cursor: pointer; padding: 8px 12px; font-weight: 600; }
.history-body { padding: 0 12px 10px; font-size: 13px; }
.history ol { list-style: none; margin: 0; padding: 0; }
.history li { padding: 6px 0; border-top: 1px solid var(--line); }

/* ---------- Dialog / Formular ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 2000; display: grid; place-items: center; padding: 16px; }
.modal { width: 100%; max-width: 520px; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-2); border-top: 3px solid var(--accent); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.modal-wide { max-width: 760px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 0 18px; }
.modal-head h2 { font-size: 19px; text-transform: uppercase; letter-spacing: .05em; }
.modal-body { padding: 8px 18px 16px; overflow-y: auto; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.form small { font-weight: 400; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 9px 10px; color: var(--text); font-size: 15px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; }
.form .check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-weight: 400; }
.form p { margin: 0; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Meldungen ---------- */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100% - 32px); }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); border-left: 4px solid var(--accent); padding: 10px 16px; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.5); transition: opacity .4s, transform .4s; }
.toast-ok { border-left-color: var(--ok); }
.toast-error { border-left-color: var(--bad); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- Fußzeile ---------- */
.site-footer { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; padding: 14px 16px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer { margin-top: auto; }
.map-credit { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 700; padding: 3px 10px; font-size: 11px; color: var(--muted);
  background: rgba(11,13,15,.75); border-radius: var(--radius) var(--radius) 0 0; white-space: nowrap; pointer-events: none; }

/* ---------- Inhaltsseiten (Items, Moderation) ---------- */
.page { width: 100%; max-width: 1100px; margin: 0 auto; padding-block: 24px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.page-head h1 { font-size: 30px; text-transform: uppercase; letter-spacing: .06em; }
.page-head h1 span { color: var(--accent); }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 8px 10px; min-height: 38px; color: var(--text); }
.toolbar input { flex: 1; min-width: 200px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; scroll-margin-top: 80px; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--accent)); }
.card:target { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,176,0,.35); }
.card h2 { font-size: 20px; }
.card-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.card p { margin: 0; }
.card .label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: block; margin-bottom: 2px; }
.card .uses { white-space: pre-wrap; }
.card .spots { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.card .spots li { padding: 4px 0; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.card .spots a { color: var(--text); text-decoration: none; }
.card .spots a:hover { color: var(--accent); }
.card .spots .mono { color: var(--accent); min-width: 28px; }
.card-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.empty { padding: 30px; text-align: center; color: var(--muted); background: var(--panel); border-radius: var(--radius); border: 1px dashed var(--line-2); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; white-space: nowrap; }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.row h3 { font-size: 16px; margin-bottom: 4px; }
.row .sub { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.row .desc { font-size: 14px; margin: 6px 0 0; }
.row img.thumb { max-width: 160px; border-radius: 4px; margin-top: 8px; display: block; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.notice-box { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 14px 16px; border-radius: var(--radius); }

/* ---------- Handy ---------- */
.mobile-only { display: none; }
@media (max-width: 860px) {
  :root { --head-h: 52px; }
  .mobile-only { display: inline-flex; }
  .hide-sm { display: none; }
  .site-header { gap: 8px; padding: 0 10px; }
  .brand-text { display: none; }
  .nav a { padding: 6px 8px; font-size: 12px; }
  .user-name, .role { display: none; }
  .btn-discord span { display: none; }
  .btn-discord { padding: 6px 10px; }

  .sidebar { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 88vw); transform: translateX(-102%); transition: transform .2s; box-shadow: 10px 0 30px rgba(0,0,0,.5); }
  .sidebar-open .sidebar { transform: none; }

  .map-top { top: 10px; left: 10px; right: 10px; }
  .search { max-width: none; }
  .map-actions { top: auto; bottom: 26px; right: auto; left: 10px; }
  .leaflet-bottom.leaflet-right { margin-bottom: 14px; }
  .place-banner { top: 60px; font-size: 14px; }

  .panel { position: absolute; left: 0; right: 0; bottom: 0; width: auto; max-height: 62%; border-left: 0; border-top: 2px solid var(--accent); border-radius: 12px 12px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.6); }
  .panel-open .map-actions { display: none; }
  .panel-title { font-size: 19px; }
  .map-credit { display: none; }
  .placeholder-note { bottom: 76px; }
  .form-2 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .row-actions { justify-content: flex-start; }
  .page-head h1 { font-size: 24px; }
}

/* ---------- Startseite ---------- */
.home { width: 100%; max-width: 1180px; margin: 0 auto; padding-block: 28px 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 34px; }
.hero { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: 10px;
  background: radial-gradient(ellipse at 15% 30%, rgba(255,176,0,.14), transparent 55%), repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 12px, transparent 12px 24px), var(--bg-2); }
.hero-logo .logo { width: 100%; height: auto; filter: drop-shadow(0 8px 24px rgba(255,176,0,.25)); }
.hero h1 { font-size: clamp(30px, 5vw, 54px); line-height: 1.02; text-transform: uppercase; letter-spacing: .03em; margin: 8px 0 12px; text-wrap: balance; }
.hero h1 span { color: var(--accent); }
.hero p { margin: 0 0 6px; max-width: 62ch; font-size: 16px; color: #cfd3d7; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61,220,132,.2); }
.btn-lg { min-height: 46px; padding: 10px 20px; font-size: 15px; }
.home-search { max-width: none; }
.home-search input { height: 50px; font-size: 16px; }
.sec-title { font-size: 15px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 860px) { .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quick { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.quick:hover, .quick:focus-visible { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--panel)); }
.quick-ico { width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #111; display: grid; place-items: center; flex-shrink: 0; }
.quick-ico svg { width: 18px; height: 18px; }
.quick-name { flex: 1; font-weight: 600; font-size: 14px; line-height: 1.2; }
.quick-n { font-family: var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tool { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.tool:hover, .tool:focus-visible { background: var(--panel-2); }
.tool h3 { font-size: 21px; }
.tool p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.tool-k { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tool-n { font-family: var(--mono); color: var(--accent); font-weight: 700; margin-top: 6px; }
.home-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.home-cols > * { min-width: 0; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.feed a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.feed a:hover { border-color: var(--line-2); background: var(--panel-2); }
.feed small { display: block; color: var(--muted); font-size: 12px; }
.kv { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--line); background: var(--panel); }
.kv div:first-child { border-top: 0; }
.kv dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.kv dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 12px 14px; font-weight: 600; }
.faq p { margin: 0; padding: 0 14px 14px; color: #cfd3d7; max-width: 75ch; }
.steps { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.copy-area { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text); padding: 10px; font: 13px/1.45 var(--mono); resize: vertical; }
.join-grid, .settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.settings .card h2, .join-grid .card h2 { font-size: 19px; }
.fs { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.fs legend { font-size: 13px; color: var(--muted); padding: 0 6px; }
.inline { display: flex; gap: 8px; }
.card.is-focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,176,0,.35); }
.notice-box p { margin: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 20px; gap: 12px; }
  .hero-logo { width: 110px; }
  .home-cols { grid-template-columns: 1fr; }
  .brand .logo { width: 34px; height: 34px; }
  .nav { overflow-x: auto; }
}
@media (max-width: 420px) { .nav a { padding: 6px 6px; font-size: 11.5px; letter-spacing: .03em; } }

.empty-hint { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); z-index: 850; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: rgba(17, 20, 24, .94); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.5); max-width: min(440px, calc(100% - 24px)); text-align: center; font-size: 14px; }
.empty-hint .btn-row { margin: 0; justify-content: center; }
@media (max-width: 860px) { .empty-hint { top: 62px; } }

/* ---------- Loadouts ---------- */
.lo-tc { color: var(--muted); font-size: 11px; margin-left: 3px; }
.lo-page .sec-title { margin-top: 22px; }
.gun { width: 100%; height: auto; display: block; }
.lo-meta { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.lo-m { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.lo-m:hover { border-color: var(--line-2); }
.lo-m.first { border-color: var(--accent); background: linear-gradient(180deg, rgba(255,176,0,.12), var(--panel) 60%); }
.lo-m .gun { margin-top: 16px; height: 58px; }
.lo-m h3 { font-size: 15px; }
.lo-rk { position: absolute; top: 6px; left: 10px; font: 700 22px var(--font-head); color: var(--muted); }
.lo-m.first .lo-rk { color: var(--accent); }
.lo-tier { position: absolute; top: 8px; right: 10px; font: 700 11px var(--font-head); padding: 1px 7px; border-radius: 4px; background: var(--accent); color: #111; text-transform: uppercase; }
.lo-tier.t-A { background: var(--accent-2); } .lo-tier.t-B, .lo-tier.t-C { background: var(--line-2); color: var(--text); }
.lo-sub { font-size: 12px; color: var(--muted); }
.lo-stars { color: var(--accent); letter-spacing: 2px; } .lo-stars .off { color: #3a414a; }
.lo-rate { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lo-rate b { font-family: var(--mono); } .lo-rate small { color: var(--muted); }
.lo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.lo-w { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.lo-w:hover { border-color: var(--line-2); background: var(--panel-2); }
.lo-w.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,176,0,.3); }
.lo-img { display: block; padding: 4px 6px; border-radius: 4px; background: radial-gradient(ellipse at 50% 60%, rgba(255,176,0,.12), transparent 70%); }
.lo-img .gun { height: 70px; }
.lo-w h3 { font-size: 16px; margin-top: 2px; }
.lo-wf { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.lo-wf .mono { color: var(--accent); }
.lo-head2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; scroll-margin-top: 70px; }
.lo-head2 .sec-title { flex: 1; min-width: 220px; }
.lo-tools { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.lo-tools select { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 6px 10px; min-height: 34px; color: var(--text); }
.lo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 14px; }
.lo-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; scroll-margin-top: 80px; }
.lo-card.is-focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,176,0,.35); }
.lo-top { display: grid; grid-template-columns: 200px 1fr; }
.lo-pic { display: grid; place-items: center; padding: 10px; border-right: 1px solid var(--line);
  background: radial-gradient(ellipse at 40% 55%, rgba(255,176,0,.18), transparent 70%), repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 10px, transparent 10px 20px), var(--bg-2); }
.lo-body { padding: 12px 14px; min-width: 0; }
.lo-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.lo-card h3 { font-size: 20px; margin: 6px 0 2px; } .lo-card h3 span { color: var(--accent); }
.lo-desc { margin: 6px 0 0; font-size: 14px; color: #cfd3d7; white-space: pre-wrap; }
.lo-att { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); border-top: 1px solid var(--line); }
.lo-att div { padding: 7px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: -1px; }
.lo-att dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); } .lo-att dd { margin: 0; font-weight: 600; font-size: 13px; line-height: 1.3; }
.lo-apex, .lo-code { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--bg-2); flex-wrap: wrap; }
.lo-apex span, .lo-code span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.lo-code code { background: none; padding: 0; font-weight: 700; font-size: 14px; color: var(--accent); letter-spacing: .05em; flex: 1; word-break: break-all; }
.lo-copy { color: var(--accent); border-color: rgba(255,176,0,.6); background: transparent; }
.lo-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 10px 6px 14px; border-top: 1px solid var(--line); }
.lo-pick { display: flex; align-items: center; gap: 0; }
.lo-pick > span { margin-right: 6px; }
.lo-pick button { background: none; border: 0; cursor: pointer; font-size: 22px; line-height: 1; padding: 4px 3px; color: #3a414a; min-width: 30px; min-height: 36px; }
.lo-pick button.set, .lo-pick button.hot { color: var(--accent); }
.lo-pick:hover button.set:not(.hot) { color: #3a414a; }
.lo-big { font-size: 30px; margin: 0; }
.lo-note { margin-top: 18px; }
.lo-prev { display: flex; align-items: center; gap: 14px; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.lo-prev .gun { width: 170px; flex-shrink: 0; }
.lo-prev span { font: 700 18px var(--font-head); display: flex; flex-direction: column; } .lo-prev small { font: 400 12px var(--font); color: var(--muted); }
@media (max-width: 860px) {
  .lo-meta { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .lo-m { scroll-snap-align: start; }
  .lo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lo-img .gun { height: 52px; }
  .lo-w h3 { font-size: 14.5px; }
  .lo-top { grid-template-columns: 1fr; }
  .lo-pic { border-right: 0; border-bottom: 1px solid var(--line); }
  .lo-pic .gun { max-width: 280px; }
  .lo-prev .gun { width: 120px; }
}
.lo-more { display: flex; justify-content: center; margin-top: 12px; }

/* ---------- Webseite: Login ---------- */
.user-chip .user-name { font-weight: 600; font-size: 14px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-discord svg { width: 16px; height: 16px; }
.row select { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 6px 8px; color: var(--text); }
