/* RUDX Cockpit (rudx.ch/admin) – builds on site.css and club.css */
.cockpit { display: grid; gap: 18px; }
.status-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.st { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--text); }
.st i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.st.warn i { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.st.bad i { background: var(--red); box-shadow: 0 0 8px var(--red); }
.st span { color: var(--muted); }

.dash-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.dash-head h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -0.01em; }
.period { margin-left: auto; display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.period button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.period button.on { background: var(--text); color: var(--bg); font-weight: 600; }

.todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.todo .item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(240, 173, 46, 0.08); border: 1px solid rgba(240, 173, 46, 0.35); cursor: pointer; color: var(--text); text-align: left; font: inherit; }
.todo .item b { font-size: 26px; font-weight: 600; color: var(--amber); min-width: 34px; }
.todo .item span { font-size: 14px; line-height: 1.3; }
.todo .item.red { background: rgba(224, 49, 43, 0.08); border-color: rgba(224, 49, 43, 0.4); }
.todo .item.red b { color: var(--red); }
.todo .done { grid-column: 1 / -1; padding: 14px 16px; border-radius: 16px; background: rgba(60, 207, 110, 0.07); border: 1px solid rgba(60, 207, 110, 0.3); color: var(--green); font-size: 14px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 980px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 12px; display: grid; gap: 4px; }
.kpi .l { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.kpi .row { display: flex; align-items: baseline; gap: 10px; }
.kpi .v { font-size: 32px; font-weight: 300; color: #fff; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12.5px; font-weight: 600; }
.kpi .d.up { color: var(--green); } .kpi .d.down { color: var(--red); } .kpi .d.flat { color: var(--muted); font-weight: 400; }
.kpi .s { font-size: 12px; color: var(--muted); }
.kpi svg { width: 100%; height: 30px; margin-top: 4px; }

.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
@media (max-width: 980px) { .grid-2-1 { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.panel .section-label { margin: 0 0 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.linechart svg { width: 100%; height: 220px; display: block; }
.linechart .axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }

.funnel { display: grid; gap: 10px; }
.funnel .fstep { display: grid; gap: 4px; }
.funnel .top { display: flex; justify-content: space-between; font-size: 13.5px; }
.funnel .top b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.funnel .bar { height: 8px; border-radius: 6px; background: var(--surface-high); overflow: hidden; }
.funnel .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), #c8d6ec); border-radius: 6px; }
.funnel .conv { font-size: 11.5px; color: var(--muted); }

.tabs { margin: 6px 0 0; }
.detail { min-height: 120px; }
.detail .panel + .panel { margin-top: 14px; }
.list .row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.list .row:last-child { border-bottom: 0; }
.list .row .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.list .row .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
table.t td.num { font-variant-numeric: tabular-nums; color: var(--muted); }
table.t td.alert { color: var(--amber); font-weight: 600; }
table.t tr:hover td { background: rgba(255, 255, 255, 0.02); }
table.t button, .rep button, .lead button { background: var(--surface-high); color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12px; cursor: pointer; }
td.gname { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; }
.glogo { width: 32px; height: 32px; border-radius: 9px; flex: none; background: var(--surface-high) center/cover no-repeat; border: 1px solid var(--line-strong);
  display: inline-grid; place-items: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; border: 1px solid var(--line-strong); color: var(--muted); margin-left: 6px; }
.tag.sup { color: var(--sky); border-color: rgba(159, 184, 222, 0.5); }
.tag.anon { color: var(--amber); border-color: rgba(240, 173, 46, 0.5); }
.search { font: inherit; font-size: 14px; color: var(--text); background: var(--surface-high); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; width: min(360px, 100%); margin-bottom: 12px; color-scheme: dark; }

.rep, .lead { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.rep:last-child, .lead:last-child { border-bottom: 0; }
.rep .top, .lead .top { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.rep .top strong, .lead .top strong { color: #fff; }
.rep .when, .lead .when { margin-left: auto; color: var(--muted); font-size: 12px; }
.rep .snap { background: var(--surface-high); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; color: var(--text); white-space: pre-wrap; }
.rep .acts, .lead .acts { display: flex; gap: 8px; }
.lead p { margin: 0; color: #c9ced6; white-space: pre-wrap; font-size: 14px; }
.lead.done, .rep.done { opacity: 0.5; }
.empty-note { color: var(--muted); font-size: 14px; padding: 10px 0; }
.foot { margin-top: 4px; }

/* Strecken warten auf Freigabe */
.route-rep { grid-template-columns: 150px 1fr; column-gap: 16px; align-items: start; }
.route-main { display: grid; gap: 6px; min-width: 0; }
.route-pic { width: 150px; height: 110px; background: var(--surface-high); border-radius: 10px; }
.route-overlap { color: var(--amber); font-size: 13.5px; }
.route-pic-full { width: 100%; max-width: 720px; background: var(--surface-high); border-radius: 10px; }
.route-reason { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto auto; gap: 8px; align-items: center; }
@media (max-width: 720px) { .route-reason { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .route-rep { grid-template-columns: 1fr; } }
.brand img{width:28px;height:28px;border-radius:7px;display:block;flex:none}
.view select,#routes select,select{background:#131518;color:#E9EDF2;border:1px solid #2A2D33;border-radius:10px;padding:8px 10px;font:inherit}
.rx{display:inline-block;height:.71em;width:.700em;fill:#DE1C1E;vertical-align:baseline;margin-left:-.12em}

/* Website-Statistik */
/* On a phone the long tab row made the whole cockpit wider than the screen. */
.cockpit { grid-template-columns: minmax(0, 1fr); }
.cockpit .tabs { overflow-x: auto; }
.cockpit .tabs button { flex: none; white-space: nowrap; }
.web-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.web-note { flex: 1 1 320px; margin: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(240, 173, 46, 0.35); background: rgba(240, 173, 46, 0.07); font-size: 13.5px; line-height: 1.4; }
.web-period { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.web-period button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.web-period button.on { background: var(--text); color: var(--bg); font-weight: 600; }
.web-body { display: grid; gap: 14px; }
.web-body > * { min-width: 0; }
.web-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.web-toggle { background: none; border: 1px solid var(--line-strong); color: var(--text); font: inherit; font-size: 12.5px; padding: 4px 12px; border-radius: 999px; cursor: pointer; }
.web-chart .legend i { display: inline-block; width: 14px; height: 2px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.web-plot { position: relative; height: 220px; margin: 10px 0 0 38px; cursor: crosshair; touch-action: pan-y; outline-offset: 4px; }
.web-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.web-y { position: absolute; left: -38px; width: 30px; text-align: right; transform: translateY(50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.web-chart .axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin: 6px 0 0 38px; }
.web-mark { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--line-strong); pointer-events: none; }
.web-mark span { position: absolute; top: 0; left: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.web-mark span.left { left: auto; right: 6px; }
.web-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.35); pointer-events: none; }
.web-tip { position: absolute; top: 18px; margin-left: 12px; padding: 8px 12px; border-radius: 10px; background: var(--surface-high); border: 1px solid var(--line-strong); font-size: 12.5px; white-space: nowrap; pointer-events: none; z-index: 2; }
.web-tip.flip { transform: translateX(calc(-100% - 24px)); }
.web-tip-day { color: var(--muted); font-size: 11.5px; margin-bottom: 4px; }
.web-tip-row { display: flex; align-items: center; gap: 7px; }
.web-tip-row i { width: 12px; height: 2px; border-radius: 2px; }
.web-tip-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.web-tip-row span { color: var(--muted); }
.web-table { max-height: 300px; overflow: auto; margin-top: 10px; }
.web-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.web-table th, .web-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.web-table th { color: var(--muted); font-weight: 500; position: sticky; top: 0; background: var(--surface); }
.web-table th:first-child, .web-table td:first-child { text-align: left; }
.web-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail .web-grid .panel + .panel { margin-top: 0; }
@media (max-width: 760px) { .web-grid { grid-template-columns: minmax(0, 1fr); } .web-plot { height: 180px; } }
.web-bar { padding: 6px 0; }
.web-bar .top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 4px; }
.web-bar .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.web-bar .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.web-bar .track { height: 6px; border-radius: 4px; background: var(--surface-high); overflow: hidden; }
.web-bar .track span { display: block; height: 100%; border-radius: 4px; background: #3987e5; }
.web-bar:hover .track span { background: #5a9cec; }

/* RUDX News */
.team-news-form{display:grid;gap:12px;margin-top:10px}
.team-news-lang{display:grid;gap:6px}
.team-news-form input,.team-news-form textarea{width:100%;box-sizing:border-box;background:#131518;color:#E9EDF2;border:1px solid #2A2D33;border-radius:10px;padding:9px 11px;font:inherit;resize:vertical}
.team-news-form details{display:grid;gap:12px}
.team-news-form details[open] .team-news-lang{margin-top:10px}
