/* erpse IQ Training – Oberfläche. Schrift Barlow / Barlow Condensed (OFL), selbst gehostet wie in der Trainingsempfehlung. */
@font-face { font-family: "Barlow"; font-weight: 400; src: url(/fonts/barlow-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow"; font-weight: 500; src: url(/fonts/barlow-latin-500-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow"; font-weight: 700; src: url(/fonts/barlow-latin-700-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 400; src: url(/fonts/barlow-condensed-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); font-display: swap; }
:root {
  /* erpse-CI: Grün #80B943 und Dunkelgrau #4A4A49 aus dem Logo. Für Text und Schaltflächen ein dunkleres Grün (Kontrast ≥ 4.5:1). */
  --ci-green: #80B943; --ci-grey: #4A4A49; --ci-dark: #3A3A39; --ci-green-on-dark: #A6D271;
  --brand: #4A7A1F; --brand-ink: #FFFFFF; --brand-soft: #F0F6E8; --brand-line: #BFDD9C;
  --bg: #F5F6F3; --card: #FFFFFF; --ink: #1F2020; --muted: #5B5D5A; --line: #DDE1DB; --line-2: #ECEEEA;
  --warn-bg: #FBF1E6; --warn-ink: #5E2C0D; --warn-line: #EDCFAE; --bad: #B8392B; --ok: #4A7A1F;
  --z1: #9CC3DE; --z2: #4F95C4; --z3: #E2B23A; --z4: #E07B2E; --z5: #B8392B; --z6: #8E2A6B; --z7: #4B2A8E;
  --r: 12px; --shadow: 0 1px 2px rgba(20,25,28,.05);
  --font: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; --font-head: "Barlow Condensed", "Barlow", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); -webkit-text-size-adjust: 100%; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; line-height: 1.1; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em; color: var(--ci-grey); }
.card.dark h2, .card.dark h1 { color: #fff; }
.label, .kpi .tiny, th { font-family: var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; }
h1 { font-size: 30px; } h2 { font-size: 21px; } h3 { font-size: 17px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 6px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-7 { display: grid; gap: 8px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spacer { flex: 1; }

/* Kopf und Navigation */
.top { background: #FFFFFF; color: var(--ci-grey); border-bottom: 3px solid var(--ci-green); padding: 10px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; position: sticky; top: 0; z-index: 20; }
.brand { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.brand img { height: 26px; display: block; }
.brand .iq { color: var(--ci-grey); font-weight: 700; padding-left: 10px; border-left: 2px solid var(--ci-green); letter-spacing: .01em; }
.brand .iq b { color: var(--brand); }
.brand { text-decoration: none; color: inherit; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; align-self: stretch; margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--line); }
.nav a { position: relative; display: inline-flex; align-items: center; gap: 7px; color: var(--ci-grey); text-decoration: none; padding: 0 12px; font-size: 14px; font-weight: 500; border-radius: 8px; min-height: 40px; transition: background .15s, color .15s; }
.nav a svg { width: 18px; height: 18px; opacity: .75; }
.nav a:hover { background: var(--line-2); }
.nav a.on { color: #2F4F12; background: var(--brand-soft); font-weight: 700; }
.nav a.on svg { opacity: 1; }
.nav a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -13px; height: 3px; border-radius: 3px 3px 0 0; background: #2F4F12; }
.nav .badge { background: #B3261E; color: #fff; border-radius: 9px; font-size: 11px; font-weight: 700; line-height: 18px; min-width: 18px; padding: 0 5px; text-align: center; }
.gsearch { display: inline-flex !important; align-items: center; gap: 8px; min-width: 260px; color: var(--muted) !important; background: var(--bg) !important; cursor: text; }
.gsearch svg { width: 16px; height: 16px; }
.gsearch span { flex: 1; text-align: left; }
.gsearch kbd { font: 11px/1 inherit; border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; background: #fff; color: var(--muted); }
.gsearch:hover { border-color: #9AA39A !important; }
.hmenu { position: relative; } .hmenu summary { list-style: none; cursor: pointer; } .hmenu summary::-webkit-details-marker { display: none; }
.newmenu .profpop { min-width: 260px; }
.newmenu .profpop a, .profmenu .profpop a { display: grid; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.newmenu .profpop a:hover, .profmenu .profpop a:hover { background: var(--brand-soft); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #2F4F12; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.avatar:hover, .hmenu[open] .avatar { box-shadow: 0 0 0 3px var(--brand-soft); }
.profmenu .who { display: grid; padding: 4px 10px 8px; border-bottom: 1px solid var(--line); }
.gs-list { display: grid; gap: 2px; max-height: 60vh; overflow: auto; }
.gs-item { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.gs-item.on, .gs-item:hover { background: var(--brand-soft); }
.gs-k { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.gs-alt { font-size: 12px; color: #2F4F12; padding: 2px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.gsrch #gsq { font-size: 16px; height: 44px; }
@media (max-width: 1180px) { .gsearch { min-width: 0; } .gsearch span, .gsearch kbd { display: none; } }
.top .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.top select, .top button { background: #fff; color: var(--ci-grey); border: 1px solid var(--line); border-radius: 8px; height: 36px; padding: 0 10px; font: inherit; font-size: 13px; }
.bell { position: relative; }
.bell .dot { position: absolute; top: -4px; right: -4px; background: var(--z4); color: #111; border-radius: 9px; font-size: 11px; padding: 0 5px; font-weight: 700; }
main { max-width: 1360px; margin: 0 auto; padding: 24px 20px 96px; }
.bottom-nav { display: none; }
body.mobile-app .top .nav { display: none; }
body.mobile-app main { padding: 16px 14px 96px; max-width: 640px; }
body.mobile-app .bottom-nav { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); height: 64px; z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--muted); text-decoration: none; }
.bottom-nav a.on { color: var(--brand); font-weight: 600; }
.bottom-nav svg { width: 22px; height: 22px; }
@media (max-width: 760px) { body:not(.mobile-app) .top .nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; } }

/* Karten, Buttons, Formulare */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card.dark { background: var(--ci-dark); color: #F5F6F3; border-color: var(--ci-dark); }
.card.soft { background: var(--brand-soft); border-color: var(--brand-line); }
.card.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.card.dashed { border-style: dashed; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card.dark .label { color: var(--ci-green-on-dark); }
.card.dark .muted { color: #B8BFC4; }
button, .btn { font: inherit; font-size: 14px; font-weight: 600; height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid #C9CFC7; background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; white-space: nowrap; }
button.primary, .btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
button.dark { background: var(--ci-grey); color: #fff; border-color: var(--ci-grey); }
button.ghost { background: transparent; border-color: transparent; color: var(--brand); padding: 0 8px; }
button.danger { color: var(--bad); }
button.sm, .btn.sm { height: 34px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
button:disabled { opacity: .5; cursor: default; }
button.block { width: 100%; }
input, select, textarea { font: inherit; font-size: 15px; border: 1px solid #C9CFC7; border-radius: 10px; padding: 0 12px; height: 44px; background: #fff; color: var(--ink); width: 100%; }
textarea { padding: 10px 12px; height: auto; min-height: 90px; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); }
input[type=range] { accent-color: var(--brand); padding: 0; border: 0; height: 32px; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
label.f > span { font-weight: 600; }
.form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); align-items: end; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.chip.on { background: var(--ci-grey); color: #fff; border-color: var(--ci-grey); }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line-2); color: #3C4449; }
.pill.ok { background: var(--brand-soft); color: #1E4D3A; } .pill.warn { background: var(--warn-bg); color: var(--warn-ink); } .pill.bad { background: #F8E1DE; color: #7A1F15; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.notice { padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.notice.ok { background: var(--brand-soft); color: #1E4D3A; } .notice.warn { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.tabs { display: flex; border-bottom: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.tabs button { border: 0; border-radius: 0; background: transparent; color: var(--muted); height: 48px; }
.tabs button.on { color: var(--ink); box-shadow: inset 0 -3px 0 var(--brand); }

/* Tabellen */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 8px; }
td { padding: 8px; border-top: 1px solid var(--line-2); vertical-align: middle; }
td input, td select { height: 36px; font-size: 14px; padding: 0 8px; min-width: 60px; }
tr.click { cursor: pointer; } tr.click:hover td { background: #FAFBF9; }

/* Planung */
.macro { display: flex; gap: 4px; min-height: 42px; font-size: 13px; font-weight: 500; }
.macro div { background: #DCEBE3; color: #1E4D3A; display: flex; align-items: center; padding: 0 10px; border-radius: 6px; overflow: hidden; white-space: nowrap; }
.macro div.cur { background: var(--brand); color: #fff; }
.macro div.done { background: #EDEFEB; color: #8A9196; }
.day { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 120px; display: flex; flex-direction: column; gap: 6px; }
.day.today { border: 2px solid var(--brand); }
.day .d { font-size: 12px; font-weight: 600; color: var(--muted); }
.wo { text-align: left; display: flex; flex-direction: column; align-items: stretch; gap: 2px; height: auto; padding: 8px 10px; border-radius: 8px; font-weight: 500; border: 1px solid var(--line); background: #FAFBF9; white-space: normal; }
.wo.sel { border-color: var(--brand); background: var(--brand-soft); }
.wo .t { font-weight: 600; font-size: 13px; } .wo .s { font-size: 12px; color: var(--muted); }
.wo .bar { height: 4px; border-radius: 2px; margin-top: 4px; }
.wo.done { background: #F1F2EF; border-style: dashed; }
.zbars { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding: 8px; background: var(--bg); border-radius: 10px; }
.zbars div { border-radius: 3px 3px 0 0; min-width: 3px; }
.zone-row { display: grid; grid-template-columns: repeat(var(--zc, 5), minmax(0, 1fr)); gap: 6px; }
@media (max-width: 700px) { .zone-row { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); } }
input[type=file] { min-width: 0; max-width: 100%; }
.zone-row > div { padding: 8px; border-radius: 8px; background: #fff; border: 1px solid var(--line-2); font-size: 12px; }

/* Kunden-App */
.big-time { font-size: 60px; font-weight: 700; letter-spacing: -0.02em; text-align: center; font-variant-numeric: tabular-nums; }
.live { background: #2B2B2A; color: #F5F6F3; border-radius: 16px; padding: 18px; }
.live .tile { background: #3A3A39; border-radius: 12px; padding: 14px; }
.live .tile .v { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.live .tile .k { font-size: 12px; color: #B8BFC4; }
.zstrip { display: flex; gap: 4px; height: 38px; }
.zstrip div { flex: 1; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #111; filter: grayscale(.7) brightness(.9); }
.zstrip div.dk { color: #fff; }
.zstrip div.on { filter: none; box-shadow: 0 0 0 2px #fff; flex: 1.4; }
.setrow { display: grid; grid-template-columns: 56px 1fr 1fr 56px; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.setrow.done { background: var(--brand-soft); border-color: var(--brand-line); }
.setrow input { height: 40px; text-align: center; }
.check { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--brand); color: var(--brand); background: #fff; font-size: 20px; padding: 0; }
.check.on { background: var(--brand); color: #fff; }
.gif { width: 100%; max-height: 220px; object-fit: contain; border-radius: 12px; background: #E4E8E2; }
.gif-ph { height: 140px; border-radius: 12px; background: #E4E8E2; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.slider-row { display: grid; grid-template-columns: 1fr 34px; gap: 8px; align-items: center; }
.bubble { max-width: 85%; padding: 10px 12px; border-radius: 14px; font-size: 14px; white-space: pre-wrap; }
.bubble.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble .meta { font-size: 11px; opacity: .75; margin-top: 4px; }
.chart { width: 100%; height: auto; }
.modal-bg { position: fixed; inset: 0; background: rgba(15,18,20,.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: 16px; padding: 20px; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: #15191C; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 60; font-size: 14px; max-width: 90vw; }
.login { max-width: 420px; margin: 8vh auto; }
.stars button { height: 30px; padding: 0 2px; border: 0; background: none; color: #C9CFC7; font-size: 20px; }
.stars button.on { color: #E2B23A; }
.kpi .v { font-size: 26px; font-weight: 700; }
footer.legal { text-align: center; font-size: 12px; color: var(--muted); padding: 24px 0 8px; }
@media print { .top, .bottom-nav, button { display: none !important; } main { padding: 0; } }
@media (max-width: 760px) { .macro { overflow-x: auto; } .macro div { flex-shrink: 0; min-width: max-content; } }

/* erpse-CI: dunkle Karten im Logo-Grau */
.btn.start { background: var(--ci-green); color: #1A1A19; border-color: var(--ci-green); font-weight: 700; }
.progress { height: 4px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.progress div { height: 100%; background: var(--ci-green); transition: width .3s; }
/* Pulsprofil und Alternativen */
.hrp { width: 100%; height: auto; display: block; }
.hrp-dark { background: #fff; border-radius: 8px; padding: 6px; }
.alt { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 10px; color: #EDEFEA; display: flex; flex-direction: column; gap: 6px; }
.alt.on { border-color: var(--ci-green); box-shadow: 0 0 0 1px var(--ci-green) inset; }
.alt .hrp { background: #fff; border-radius: 6px; }
.alt .btn { background: transparent; color: #EDEFEA; border-color: rgba(255,255,255,.3); }
.alt button { background: transparent; color: #EDEFEA; border-color: rgba(255,255,255,.3); }
.alt button.primary { background: var(--ci-green); color: #1A1A19; border-color: var(--ci-green); }
.hrtarget { display: flex; justify-content: center; align-items: baseline; gap: 14px; color: #EDEFEA; font-size: 22px; }
.hrtarget b { font-size: 13px; color: #B8BFC4; font-weight: 500; }
/* Ablauf-Grafiken: ipsilateral und Zirkel */
.seqrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.seq { border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: #fff; }
.seq.s1 { background: var(--ci-green); border-color: var(--ci-green); color: #1A1A19; }
.seq.s2 { background: #fff; border: 2px solid var(--ci-green); color: #2F4F12; }
.seq.pause { background: var(--line-2); color: var(--muted); font-weight: 500; }
.seq.now { background: var(--ci-grey); color: #fff; border-color: var(--ci-grey); }
.seq-ar { color: var(--muted); font-size: 13px; }
.cflow { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.explain summary, details.card summary { cursor: pointer; }
.explain .seqrow { margin-top: 8px; }
.setrow.side-L, .setrow.side-R { border-left: 4px solid var(--ci-green); }
.setrow.pair2 { margin-top: -4px; border-left-style: dashed; }
.rest-mark { text-align: center; padding: 2px 0; }
td.nowrap { white-space: nowrap; }

.setrow .sl { display: flex; flex-direction: column; line-height: 1.15; }
body.mobile-app .top { flex-wrap: nowrap; padding: 8px 14px; gap: 10px; }
body.mobile-app .brand { min-width: 0; font-size: 15px; gap: 6px; }
body.mobile-app .brand img { height: 20px; max-width: 46vw; object-fit: contain; object-position: left; }
body.mobile-app .brand .iq { padding-left: 6px; white-space: nowrap; }

.fuel { display: flex; flex-wrap: wrap; gap: 6px; }
.fuel span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 3px 8px; color: #EDEFEA; }
.fuel b { color: var(--ci-green-on-dark); font-weight: 600; margin-right: 4px; }

/* ---------- Homepage (nicht angemeldet) ---------- */
.home-main { max-width: none; padding: 0; }
.home { max-width: 1120px; margin: 0 auto; padding: 0 20px 40px; }
.home-top { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 2px solid var(--brand-line); flex-wrap: wrap; }
.home-iq { font: 600 20px/1 var(--font-head, var(--font)); text-transform: uppercase; letter-spacing: .02em; color: #4A4A49; border-left: 1px solid var(--line); padding-left: 14px; }
.home-iq b { color: var(--brand); }
.home-top nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.home-top nav a { color: var(--ink); text-decoration: none; font-size: 14px; }
.home-top nav a:hover { color: var(--brand); text-decoration: underline; }
.home section { padding: 40px 0; }
.home h2 { font-size: 26px; margin: 0 0 14px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 8px 0 16px; text-wrap: balance; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-facts span { background: var(--brand-soft); border: 1px solid var(--brand-line); color: #2F4F12; border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.login-card h2 { font-size: 20px; margin: 0; }
.band { border-top: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.steps li { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.steps .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps h3 { margin: 2px 0 6px; font-size: 16px; } .steps p { margin: 0; font-size: 14px; color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shots figure { margin: 0; } .shots img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); background: #fff; }
.shots figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ticks { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; } .ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 3px; background: var(--brand); }
.home-foot { border-top: 1px solid var(--line); padding-top: 18px; text-align: left; }
@media (max-width: 900px) { .hero, .two { grid-template-columns: 1fr; } .steps, .shots { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .shots { grid-template-columns: 1fr 1fr; gap: 10px; } .home-top nav { margin-left: 0; width: 100%; } .home section { padding: 28px 0; } }

/* Schnell erfassen */
.quickrow { gap: 8px; } .quickrow .btn { flex: 1; }
.faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.face { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; min-height: 76px; border-radius: 12px; }
.face span { font-size: 30px; line-height: 1; } .face small { font-size: 11px; color: var(--muted); }
.face:focus-visible, .face:hover { border-color: var(--brand); background: var(--brand-soft); }
.card.kpi.warn { background: #FFF4E5; border-color: #E8B66B; }

/* Morgen-Check mit Gesichtern */
.mrow { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.mrow legend { float: left; font-size: 14px; }
.mfaces { display: flex; gap: 4px; }
.mfaces label { position: relative; }
.mfaces input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mfaces span[aria-hidden] { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; font-size: 22px; border: 1px solid var(--line); background: var(--card); cursor: pointer; filter: grayscale(.6); }
.mfaces input:checked + span { border-color: var(--brand); background: var(--brand-soft); filter: none; box-shadow: 0 0 0 2px var(--brand-line); }
.mfaces input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.recent { padding: 6px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; gap: 8px; }
@media (max-width: 380px) { .mfaces span[aria-hidden] { width: 34px; height: 34px; font-size: 19px; } }

.cycle { flex-wrap: wrap; gap: 10px; }

.cybar { position: relative; display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-top: 4px; }
.cybar i { position: absolute; top: -3px; width: 4px; height: 18px; margin-left: -2px; background: var(--ink); border-radius: 2px; box-shadow: 0 0 0 2px #fff; }
.cylegend { display: flex; flex-wrap: wrap; gap: 4px 12px; } .cylegend b { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: 0; }

.dropzone { border: 2px dashed var(--line, #c9d3bf); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.dropzone.over { border-color: #4A7A1F; background: rgba(166,210,113,.15); }
.dropzone textarea { width: 100%; }
.loadslider input[type=range] { width: 100%; height: 28px; }
.fatchart { width: 100%; max-width: 560px; height: auto; color: var(--ink, #222); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }

/* Anamnese: Auswahl-Chips und 1–10-Skala (Checkbox/Radio versteckt, Label klickbar, ≥ 44 px) */
label.chip { position: relative; min-height: 44px; display: inline-flex; align-items: center; }
label.chip input, .scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.chip:has(input:checked) { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
label.chip:has(input:focus-visible), .scale label:has(input:focus-visible) { outline: 3px solid var(--brand-line); outline-offset: 2px; }
fieldset.mrow { border: 0; padding: 0; margin: 0; }
fieldset.mrow legend { font-weight: 600; margin-bottom: 6px; }
.scale { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.scale label span { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--card, #fff); cursor: pointer; font-weight: 600; }
.scale label:has(input:checked) span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.goalcard { border-left: 4px solid var(--brand); }
.goalcard ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.goalcard .big { font-size: 20px; font-weight: 700; line-height: 1.25; }
.invite-link { word-break: break-all; font-family: ui-monospace, monospace; font-size: 13px; }

/* Kraft-Baukasten */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 768px) { .bk-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } .bk-unit { position: sticky; top: 72px; } }
.bk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; max-height: 60vh; overflow-y: auto; }
.bk-card { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px; min-height: 44px; text-align: left; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 10px; cursor: grab; touch-action: manipulation; height: auto; }
.bk-card img, .bk-noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--brand-soft); display: grid; place-items: center; font-size: 22px; color: var(--brand); }
.bk-name { font-weight: 600; font-size: 13px; line-height: 1.25; }
.bk-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bk-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; align-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card, #fff); }
.bk-row.picked { outline: 3px solid var(--brand); }
.bk-row.dragging { opacity: .4; }
.bk-row.drop-before { box-shadow: 0 -3px 0 var(--brand); }
.bk-rows.drop-end { box-shadow: 0 3px 0 var(--brand); }
.bk-handle, .bk-more { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; font-size: 20px; cursor: grab; touch-action: none; }
.bk-main { min-width: 0; }
.bk-sum { color: var(--muted); }
.bk-empty { padding: 16px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; }
.bk-ghost { position: fixed; z-index: 1000; pointer-events: none; opacity: .9; box-shadow: 0 8px 24px rgba(0,0,0,.2); border-radius: 10px; background: var(--card, #fff); }
.bk-snack { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 900; display: flex; gap: 12px; align-items: center; background: var(--ink, #222); color: #fff; padding: 8px 12px; border-radius: 10px; }
.bk-foot { border-top: 1px solid var(--line); padding-top: 8px; }
/* Kraftplan-Import */
.ki-drop { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; text-align: center; padding: 20px; border: 2px dashed var(--brand-line); border-radius: 12px; background: var(--brand-soft); cursor: pointer; min-height: 88px; }
.ki-drop.on, .ki-drop:focus-within { border-color: var(--brand); }
.ki-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.ki-top { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; }
.ki-img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: var(--brand-soft); }
.ki-noimg { display: grid; place-items: center; font-size: 36px; }
.ki-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.ki-cols ol, .ki-cols ul { margin: 4px 0 0 18px; padding: 0; display: grid; gap: 3px; }
.ki-faults li::marker { content: '⚠ '; }

/* Berater-Arbeitsplatz: links Kunden, Mitte Woche, rechts Bausteine/Einzeltraining */
body.ap-wide #main { max-width: none; }
.ap { display: grid; grid-template-columns: 240px minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.ap-left, .ap-right { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ap-tabs { display: flex; gap: 4px; } .ap-tabs button { height: 36px; padding: 0 10px; }
.ap-tabs button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.ap-box { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.ap-box h2 { font-size: 16px; margin: 0; }
.ap-box .chips { gap: 4px; } .ap-box label.chip { min-height: 36px; padding: 4px 10px; font-size: 12px; }
.ap-members { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ap-members li { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; }
.ap-members select { height: 32px; width: auto; max-width: 110px; font-size: 12px; }
.ap-rec { background: var(--brand-soft); border-radius: 8px; padding: 8px 10px; }
.ap-bdesc { display: flex; flex-direction: column; padding: 8px; gap: 2px; }
.ap-dev { color: var(--brand); font-weight: 600; }
.ap-card.rec { border-left-color: #8fb3c9; background: #f1f5f8; }
.ap-text textarea { min-height: 52px; }
.ap-clients { display: grid; gap: 2px; }
.ap-client { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: inherit; min-height: 44px; justify-content: center; }
.ap-client.on, .ap-client:hover { background: var(--brand-soft); }
.ap-only-drawer, .ap-only-panel { display: none; }
.ap-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ap-day { min-height: 140px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.ap-day.off { background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(0,0,0,.03) 8px 16px); }
.ap-day.drop { outline: 3px solid var(--brand); }
.ap-dh { display: flex; justify-content: space-between; align-items: baseline; }
.ap-dl { display: none; }
.ap-free { padding: 8px 0; text-align: center; }
.ap-card { display: flex; flex-direction: column; border-radius: 8px; border-left: 4px solid var(--brand); background: var(--brand-soft); min-width: 0; }
.ap-cbar { display: flex; justify-content: space-between; border-top: 1px solid rgba(0,0,0,.06); }
.ap-cbar button { min-height: 36px; min-width: 40px; }
.ap-blk input, .ap-blk select { width: 84px; flex: none; }
.ap-card.endu { border-left-color: var(--z2, #6aa84f); background: #eef6f9; }
.ap-card.hard { border-left-color: var(--z4, #e0a030); background: #fbf3e6; }
.ap-card.on { outline: 2px solid var(--brand); }
.ap-card.sperre { box-shadow: inset 0 0 0 2px var(--bad, #b3261e); }
.ap-card.dragging { opacity: .4; }
.ap-card button { background: transparent; border: 0; padding: 4px; min-height: 44px; height: auto; color: inherit; }
.ap-grip { cursor: grab; touch-action: none; font-size: 16px; }
.ap-open { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; min-width: 0; overflow-wrap: anywhere; white-space: normal; width: 100%; padding: 6px 8px !important; font-size: 13px; line-height: 1.25; }
.ap-flag { color: var(--bad, #b3261e); font-weight: 600; }
.ap-bad { color: var(--bad, #b3261e); }
.ap-check { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 8px; background: #fbf3e6; }
.ap-check.sperre { background: #fbe9e7; }
.ap-block { display: grid; grid-template-columns: 28px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 10px; background: var(--card, #fff); }
.ap-block button { background: transparent; border: 0; min-height: 44px; height: auto; color: inherit; padding: 6px; }
.ap-block.locked { opacity: .55; }
.ap-ex { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ap-meso { display: flex; gap: 10px; align-items: flex-end; margin: 8px 0; }
.ap-meso > div { flex: 1; text-align: center; }
.ap-bar { background: var(--brand); border-radius: 4px 4px 0 0; }
details.ap-inline { display: inline; } details.ap-inline summary { display: inline; cursor: pointer; text-decoration: underline; }
@media (max-width: 1279px) {
  .ap { grid-template-columns: minmax(0, 1fr) 340px; }
  .ap-left { display: none; }
  .ap-left.open { display: flex; position: fixed; left: 0; top: 0; bottom: 0; width: min(340px, 88vw); max-height: none; overflow-y: auto; z-index: 60; border-radius: 0; box-shadow: 0 0 30px rgba(0,0,0,.25); }
  .ap-only-drawer { display: inline-flex; }
}
@media (max-width: 1099px) {
  .ap-week { grid-template-columns: minmax(0, 1fr); }
  .ap-day { min-height: 0; }
  .ap-dl { display: inline; }
}
@media (max-width: 767px) {
  .ap { grid-template-columns: minmax(0, 1fr); }
  .ap-right { display: none; }
  .ap-right.open { display: flex; position: fixed; inset: 0; max-height: none; overflow-y: auto; z-index: 60; border-radius: 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .ap-only-panel { display: inline-flex; }
}

#apsnack { width: max-content; max-width: calc(100% - 24px); flex-wrap: wrap; }
#apsnack[hidden] { display: none; }
/* Kopf: Zahnrad und Profilmenü */
.profpop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card, #fff); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 8px; min-width: 200px; z-index: 40; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.set-item { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; min-height: 44px; }
.set-item:hover { background: var(--brand-soft); }

/* Arbeitsplatz: Themenfarben, Kacheln, Karten mit Hover */
:root { --c-woche: #3F6A1A; --c-einheit: #2E6B3A; --c-geraet: #9E4F0E; --c-sport: #2B5C8A; --c-ausdauer: #176469; --c-regeneration: #654791; --c-vorlage: #4F5A64; --c-eigene: #7A5B00; --c-anpassen: #9A2E3B; }
.cat-woche { --cc: var(--c-woche); } .cat-einheit { --cc: var(--c-einheit); } .cat-geraet { --cc: var(--c-geraet); } .cat-sport { --cc: var(--c-sport); }
.cat-ausdauer { --cc: var(--c-ausdauer); } .cat-regeneration { --cc: var(--c-regeneration); } .cat-vorlage { --cc: var(--c-vorlage); } .cat-eigene { --cc: var(--c-eigene); } .cat-anpassen { --cc: var(--c-anpassen); }
.ap-left { border-top: 4px solid var(--c-sport); } .ap-right { border-top: 4px solid var(--c-geraet); } .ap-mid > .ap-head { border-top: 4px solid var(--brand); }
.ap-box h2 { color: var(--c-sport); }
.ap-seg { display: flex; gap: 4px; flex-wrap: wrap; } .ap-seg button { height: 38px; padding: 0 12px; border-radius: 999px; }
.ap-seg button.on { background: var(--ci-grey, #333); color: #fff; border-color: var(--ci-grey, #333); }
.ap-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ap-tile { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 44px; height: auto; padding: 8px 10px; text-align: left; white-space: normal; border: 1px solid var(--line); border-left: 5px solid var(--cc); background: var(--card, #fff); color: inherit; border-radius: 10px; transition: background .15s, transform .15s, box-shadow .15s; }
.ap-tile:hover, .ap-tile:focus-visible { background: color-mix(in srgb, var(--cc) 10%, #fff); transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.ap-tile.on { background: var(--cc); color: #fff; border-color: var(--cc); }
.ap-tile .tiny { opacity: 1; }
.ap-vars { display: grid; gap: 8px; }
.ap-var { border: 1px solid var(--line); border-left: 5px solid var(--cc); border-radius: 10px; padding: 10px; background: var(--card, #fff); display: grid; gap: 6px; transition: box-shadow .15s, transform .15s, border-color .15s, background .15s; }
.ap-var:hover, .ap-var:focus-within { box-shadow: 0 6px 18px rgba(0,0,0,.1); transform: translateY(-1px); background: color-mix(in srgb, var(--cc) 6%, #fff); border-color: var(--cc); }
.ap-var.rec { background: color-mix(in srgb, var(--cc) 9%, #fff); }
.ap-var.locked { background: #f4f4f4; }
.ap-var .ap-grip { background: transparent; border: 0; min-height: 36px; min-width: 32px; }
.ap-why { color: var(--cc); font-weight: 600; }
.ap-prev { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.45; display: grid; gap: 1px; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-chip { display: inline-flex; flex-direction: column; align-items: flex-start; height: auto; min-height: 44px; padding: 6px 10px; white-space: normal; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--card, #fff); color: inherit; transition: background .15s, border-color .15s; }
.ap-chip:hover, .ap-chip:focus-visible { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 10%, #fff); }
.ap-chip.rec { border-color: var(--cc); border-width: 2px; } .ap-chip.locked { background: #f4f4f4; }
.ap-chip .tiny { color: #555; }
.ap-bulk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-items: end; } .ap-bulk button { grid-column: 1 / -1; }
.ap-card.geraet { border-left-color: var(--c-geraet); background: #fbf1e8; }
.ap-card.rec { border-left-color: var(--c-regeneration); background: #f3effa; }
.ap-card.endu { border-left-color: var(--c-ausdauer); }
.ap-card { transition: box-shadow .15s, transform .15s; } .ap-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .ap-tile, .ap-var, .ap-card { transition: none; } .ap-tile:hover, .ap-var:hover, .ap-card:hover { transform: none; } }
.ap-chip.sm { min-height: 36px; padding: 4px 10px; font-size: 13px; }
.ap-chips[role=group] .ap-chip.rec { background: var(--cc); color: #fff; }
.ap-var > .row:first-child { flex-wrap: nowrap; } .ap-var > .row:first-child > div { flex: 1; }
<<<<<<< HEAD
/* Schnellerfassung, Auswahl, Verlauf, Zeitleiste, Befehlspalette */
.ap-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ap-act-main { display: inline-flex; gap: 6px; }
.ap-tools { display: inline-flex; gap: 4px; flex-wrap: wrap; padding-left: 8px; border-left: 1px solid var(--line, #ddd); }
.ap-status { flex: 1 1 auto; min-width: 0; }
.ap-rel { margin-left: auto; white-space: nowrap; }
.ap-tools button { height: 36px; padding: 0 10px; }
.ap-card.multi { outline: 3px dashed var(--c-sport); outline-offset: 1px; }
.ap-seltool { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-left: 4px solid var(--c-sport); }
.ap-seltool select { width: auto; height: 36px; }
.ap-hist { margin: 0; padding-left: 20px; display: grid; gap: 4px; } .ap-hist button { height: auto; min-height: 36px; text-align: left; white-space: normal; }
.ap-macro .ap-tl { display: flex; align-items: flex-end; gap: 2px; margin: 10px 0 6px; overflow-x: auto; }
.ap-tlw { flex: 1 0 10px; min-width: 10px; background: var(--pc); border-radius: 3px 3px 0 0; }
.ap-tlw.deload { opacity: .45; }
.ap-tll { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; } .ap-tll i { display: inline-block; width: 10px; height: 10px; background: var(--pc); border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.ap-comp { display: inline-flex; align-items: center; gap: 3px; } .ap-comp i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; background: #ccc; }
.ap-comp i.ok { background: #2e7d32; } .ap-comp i.mid { background: #d9a400; } .ap-comp i.bad { background: #c62828; } .ap-comp .tiny { margin-left: 4px; }
.ap-dose { font-family: ui-monospace, monospace; font-size: 13px; height: 38px; }
.ap-quickadd { display: flex; gap: 6px; } .ap-quickadd input { flex: 1; }
.ap-pal input { font-size: 18px; height: 48px; }
.ap-pal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 60vh; overflow-y: auto; }
.ap-pal li { padding: 8px 10px; border-radius: 8px; cursor: pointer; } .ap-pal li.on, .ap-pal li:hover { background: var(--brand-soft); }
.ap-keys td { padding: 4px 8px; } kbd { font-family: ui-monospace, monospace; background: #f1f1f1; border: 1px solid #ccc; border-radius: 4px; padding: 1px 5px; }
/* Kopf auf dem Handy: Marke darf schrumpfen, «+ Neu» wird zum Plus */
body.mobile-app .brand { flex: 1 1 auto; overflow: hidden; }
body.mobile-app .top .right { gap: 6px; flex: none; }
body.mobile-app .newmenu summary { width: 36px; padding: 0; font-size: 0; display: grid; place-items: center; }
body.mobile-app .newmenu summary::before { content: "+"; font-size: 20px; font-weight: 700; }
body.mobile-app .gsearch { width: 36px; padding: 0 !important; justify-content: center; }
body.mobile-app:has(.newmenu) .brand .iq { display: none; }
=======

.location-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(205px, 1fr); align-items: start; gap: 16px; }
.location-map { display: block; width: 100%; background: #eef3f5; border: 1px solid var(--line); border-radius: 12px; }
.location-borders path { fill: #f9f9f4; stroke: #acb9ba; stroke-width: 1; stroke-linejoin: round; }
.location-borders .network { fill: #e2edd8; }
.location-captions text { fill: #455747; font-size: 17px; text-anchor: middle; pointer-events: none; }
.location-pin { cursor: pointer; }
.location-pin line { stroke: #4a6554; stroke-width: 1.5; }
.location-pin circle { fill: transparent; }
.location-pin .location-dot { fill: #417045; stroke: #fff; stroke-width: 2.5; }
.location-pin.review .location-dot, .location-pin.planned .location-dot { fill: #885115; }
.location-pin.active circle:first-of-type { fill: #6a956b; opacity: .4; }
.location-pin.active .location-dot { stroke-width: 3; }
.location-controls select { width: 100%; min-width: 0; }
.location-source { margin-top: 12px; }
@media (max-width: 660px) { .location-layout { grid-template-columns: minmax(0, 1fr); } }
>>>>>>> origin/main

/* ---------- Übersicht «Heute» ---------- */
.dash-head h1 { margin: 2px 0 4px; }
.dash-sum { font-size: 15px; color: var(--muted); } .dash-sum.bad { color: #9B1C1C; font-weight: 600; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dash-kpi { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.dash-kpi:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.dash-kpi .v { font-size: 28px; font-weight: 700; line-height: 1.1; } .dash-kpi .v small { font-size: 16px; color: var(--muted); }
.dash-kpi .l { font-size: 13px; color: var(--muted); }
.dash-kpi.ok { border-left-color: #4A7A1F; } .dash-kpi.warn { border-left-color: #D08A1E; } .dash-kpi.bad { border-left-color: #B3261E; background: #FDF3F2; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.dash-side { position: sticky; top: 76px; }
.dash-task { display: grid; grid-template-columns: 12px minmax(140px, 200px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 8px; border-top: 1px solid var(--line-2); border-radius: 8px; }
.dash-task:hover { background: var(--bg); }
.dash-task .dot { width: 10px; height: 10px; border-radius: 50%; background: #9AA39A; }
.dash-task.warn .dot { background: #D08A1E; } .dash-task.bad .dot { background: #B3261E; }
.dash-who { display: grid; min-width: 0; } .dash-who a { color: var(--ink); text-decoration: none; } .dash-who a:hover { text-decoration: underline; }
.dash-why { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.why { font-size: 12px; padding: 3px 8px; border-radius: 12px; background: #FBF1E1; color: #6B4508; text-decoration: none; }
.why.bad { background: #FBE4E2; color: #8A1C15; } .why.ok { background: var(--brand-soft); color: #2F4F12; } .why.info { background: #E6EEF8; color: #1F4A7A; }
a.why:hover { text-decoration: underline; }
.dash-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dash-empty { padding: 18px; text-align: center; color: #2F4F12; background: var(--brand-soft); border-radius: 10px; font-weight: 600; }
.dash-plans { width: 100%; } .dash-plans td.r { text-align: right; white-space: nowrap; } .dash-plans tr.noplan td { background: #FAFBF8; }
.dash-plans a:not(.btn) { color: var(--ink); }
.dash-appt { display: flex; gap: 10px; text-decoration: none; color: var(--ink); padding: 4px 0; } .dash-appt .date { font-weight: 700; min-width: 86px; }
.dash-mc { display: grid; gap: 2px; max-height: 280px; overflow: auto; }
.dash-mc a { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; padding: 5px 4px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: 14px; }
.dash-mc a:hover, .dash-appt:hover, .dash-links a:hover { background: var(--bg); }
.dash-links { display: grid; gap: 2px; } .dash-links .tiny { margin-top: 8px; text-transform: uppercase; letter-spacing: .05em; }
.dash-links a { padding: 6px 8px; border-radius: 6px; text-decoration: none; color: #2F4F12; font-weight: 600; }
@media (max-width: 1100px) { .dash-task { grid-template-columns: 12px minmax(0, 1fr); } .dash-why, .dash-act { grid-column: 2; justify-content: flex-start; } }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } .dash-side { position: static; } .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash-grid > *, .dash .card { min-width: 0; } .dash .tbl-wrap { overflow-x: auto; }
@media (max-width: 600px) { .dash-plans td.r .ghost { display: none; } .dash-kpi .v { font-size: 22px; } }

/* ---------- Gemeinsamer Seitenkopf ---------- */
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; padding-bottom: 4px; }
.ph-t { min-width: 0; }
.ph-t h1 { margin: 2px 0 2px; }
.ph-back { font-size: 13px; color: #2F4F12; text-decoration: none; } .ph-back:hover { text-decoration: underline; }
.ph-sub { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.ph-a { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ph-more .profpop { min-width: 220px; }
.ph-more .profpop a, .ph-more .profpop button { display: block; text-align: left; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); background: none; border: 0; font: inherit; height: auto; cursor: pointer; }
.ph-more .profpop a:hover, .ph-more .profpop button:hover { background: var(--brand-soft); }
.empty-st { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 16px; text-align: center; color: var(--muted); background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; }
.empty-st.ok { color: #2F4F12; background: var(--brand-soft); border-color: var(--brand-line); font-weight: 600; }
/* Listen mit Aktionen in der Zeile */
.row-list { display: grid; }
.row-item { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 8px; border-top: 1px solid var(--line-2); border-radius: 8px; text-decoration: none; color: var(--ink); }
.row-item:hover { background: var(--bg); }
.row-item .ri-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tbl-act td.r { text-align: right; white-space: nowrap; }
tr.click:hover td { background: var(--bg); }
@media (max-width: 700px) { .ph { align-items: flex-start; } .row-item { grid-template-columns: 14px minmax(0, 1fr); } .row-item .ri-act { grid-column: 2; justify-content: flex-start; } }
.cl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cl-grid .span2 { grid-column: span 2; }
.cl-grid .span2 .form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cl-grid { grid-template-columns: 1fr; } .cl-grid .span2 { grid-column: auto; } .cl-grid .span2 .form { grid-template-columns: 1fr; } }
.cl-grid { align-items: start; }
/* Katalogkarten kompakt, Übungen aufklappbar */
.ap-var { gap: 4px; padding: 8px 10px; }
.ap-vh { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.ap-vt { display: grid; min-width: 0; } .ap-vt b { line-height: 1.25; }
.ap-var .ap-grip { min-height: 32px; min-width: 22px; padding: 0; color: var(--muted); cursor: grab; }
.ap-vd summary { cursor: pointer; font-size: 12px; color: var(--muted); list-style: none; display: flex; gap: 6px; align-items: baseline; padding: 2px 0; }
.ap-vd summary::-webkit-details-marker { display: none; }
.ap-vd summary::before { content: "▸"; font-size: 11px; transition: transform .15s; } .ap-vd[open] summary::before { transform: rotate(90deg); }
.ap-vd .ap-vn { font-weight: 700; color: var(--ink); white-space: nowrap; } .ap-vd .ap-vs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ap-vd[open] .ap-vs { display: none; }
.ap-vd .ap-prev { margin: 4px 0 2px; }
/* Kundenbereich links in aufklappbaren Abschnitten */
.ap-sec { border-top: 1px solid var(--line-2); padding-top: 6px; }
.ap-sec > summary { cursor: pointer; list-style: none; display: grid; gap: 1px; padding: 4px 0; }
.ap-sec > summary::-webkit-details-marker { display: none; }
.ap-sec > summary > span:first-child { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.ap-sec > summary > span:first-child::before { content: "▸ "; } .ap-sec[open] > summary > span:first-child::before { content: "▾ "; }
.ap-sec[open] > summary > .tiny { display: none; }
.ap-sec > *:not(summary) { margin-top: 8px; }
.ap-vars, .ap-var, .ap-vd, .ap-vd summary { min-width: 0; max-width: 100%; } .ap-vd summary { overflow: hidden; } .ap-vars { grid-template-columns: minmax(0, 1fr); }
.iv-list { display: grid; gap: 4px; max-height: 40vh; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: 8px; }
/* Favoriten, Wochenleiste, eigenes Training */
.ap-vbtn { display: inline-flex; gap: 4px; align-items: center; }
.ap-fav { background: transparent !important; border: 0 !important; font-size: 20px; line-height: 1; padding: 0 4px !important; min-height: 32px; color: #9AA39A; cursor: pointer; }
.ap-fav:hover { color: #B7791F; } .ap-fav.on { color: #B7791F; }
.ap-weekbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border-radius: 10px; background: var(--bg); border: 1px dashed var(--line); }
.ow-res { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.ow-list { display: grid; gap: 6px; padding-left: 20px; margin: 0; }
.ow-list li { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 8px; align-items: center; }
.ow-list input { height: 34px; font-size: 13px; }
.ap-ex-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 0 6px; }
.ap-chip[data-dayf][aria-pressed="true"] { background: #2F4F12 !important; color: #fff !important; border-color: #2F4F12 !important; }
/* Auswahl per Klick (Sportart, Ziel) */
.picks { display: grid; gap: 6px; margin-top: -4px; }
.pick-g { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pick-g > .tiny { min-width: 110px; }
.pick { border: 1px solid var(--line) !important; background: var(--card) !important; color: var(--ink) !important; border-radius: 16px !important; padding: 4px 12px !important; min-height: 32px !important; height: auto !important; font-size: 13px !important; font-weight: 500 !important; cursor: pointer; }
.pick:hover { border-color: #4A7A1F !important; }
.pick.on { background: #2F4F12 !important; color: #fff !important; border-color: #2F4F12 !important; }
.pick.on::before { content: "✓ "; }
@media (max-width: 600px) { .pick-g > .tiny { min-width: 100%; } }
.ap-box .picks .pick-g > .tiny { min-width: 100%; } .ap-box .pick { font-size: 12px !important; padding: 3px 9px !important; min-height: 28px !important; }
/* Popup «Training wählen» */
.modal.modal-wide { max-width: 1100px; height: 86vh; display: flex; flex-direction: column; }
.ch { display: flex; flex-direction: column; gap: 10px; min-height: 0; height: 100%; }
.ch-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 12px; align-items: center; }
.ch-head h2 { margin: 0; }
.ch-head .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ch-head .seg button { border: 0 !important; border-radius: 0 !important; background: var(--card) !important; color: var(--ink) !important; padding: 0 14px !important; font-weight: 600; }
.ch-head .seg button.on { background: #2F4F12 !important; color: #fff !important; }
.ch-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; min-height: 0; flex: 1; }
.ch-nav { display: grid; align-content: start; gap: 4px; overflow: auto; padding-right: 4px; }
.ch-cat { display: flex !important; justify-content: space-between; align-items: center; gap: 8px; text-align: left; background: transparent !important; border: 1px solid transparent !important; color: var(--ink) !important; border-radius: 8px !important; padding: 8px 10px !important; height: auto !important; font-weight: 500; }
.ch-cat:hover { background: var(--bg) !important; } .ch-cat.on { background: var(--brand-soft) !important; border-color: var(--brand-line, #cfe0b8) !important; font-weight: 700; color: #2F4F12 !important; }
.ch-cat.ch-new { color: #2F4F12 !important; border: 1px dashed var(--line) !important; margin-top: 8px; justify-content: center; }
.ch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; align-content: start; overflow: auto; padding: 2px; }
.ch-card { border: 1px solid var(--line); border-left: 4px solid #4A7A1F; border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; background: var(--card); transition: box-shadow .12s; }
.ch-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); } .ch-card.rec { background: var(--brand-soft); } .ch-card.locked { opacity: .7; }
.ch-ch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.ch-prev { margin: 0; padding-left: 18px; font-size: 12px; color: var(--muted); columns: 1; }
.ap-dadd { margin-left: auto; width: 24px; height: 24px !important; min-height: 24px !important; padding: 0 !important; border-radius: 50% !important; font-weight: 700; line-height: 1; opacity: .55; }
.ap-day:hover .ap-dadd, .ap-dadd:focus { opacity: 1; }
.ap-dh { display: flex; align-items: center; gap: 6px; }
@media (max-width: 800px) { .ch-head { grid-template-columns: 1fr; } .ch-body { grid-template-columns: 1fr; } .ch-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; } .modal.modal-wide { height: 92vh; } }
.cat-erpse { --cc: #2F4F12; }
.zcues { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: 13px; }
.zcues .zc { display: inline-block; min-width: 30px; text-align: left; border-left: 6px solid; border-radius: 3px; background: transparent !important; color: inherit; font-size: 11px; font-weight: 700; padding: 0 4px; margin-right: 4px; }
.card.dark .zcues { color: #E4E8E1; }
/* Einfach/Profi im Arbeitsplatz */
.ap-mode { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ap-mode button { border: 0 !important; border-radius: 0 !important; height: 28px !important; min-height: 28px !important; padding: 0 10px !important; font-size: 12px !important; background: var(--card) !important; color: var(--ink) !important; }
.ap-mode button.on { background: #2F4F12 !important; color: #fff !important; }
body.ap-simple .ap-tools, body.ap-simple .ap-macro, body.ap-simple .ap-meso, body.ap-simple .ap-pro, body.ap-simple [data-rmode="anpassen"], body.ap-simple .ap-ex-chips ~ .row .tiny, body.ap-simple #apqa { display: none !important; }
/* Geführt planen */
.gd h2 { margin: 4px 0 8px; }
.gd-steps { display: flex; gap: 6px; } .gd-steps span { flex: 1; padding: 6px 8px; border-radius: 8px; background: var(--bg); font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }
.gd-steps span.on { background: #2F4F12; color: #fff; } .gd-steps span.done { background: var(--brand-soft); color: #2F4F12; }
.gd .pick-g { margin-bottom: 6px; }
/* Fachbegriffe, Glossar, Einführung */
abbr.gl { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.gloss { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.gloss dt { font-weight: 700; } .gloss dd { margin: 0; color: var(--ink); }
@media (max-width: 600px) { .gloss { grid-template-columns: 1fr; } .gloss dd { margin-bottom: 6px; } }
.tour h2 { margin: 6px 0; } .tour #tourb { min-height: 140px; line-height: 1.55; }
.tour-dots { display: flex; gap: 6px; } .tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); } .tour-dots i.on { background: #2F4F12; width: 22px; border-radius: 4px; }
.ex-text { border: 1px dashed var(--line); border-radius: 10px; padding: 10px; background: var(--bg); display: grid; gap: 6px; }
.ap-copy { background: transparent !important; border: 0 !important; min-height: 28px !important; height: 28px !important; padding: 0 6px !important; color: var(--muted); font-size: 16px; }
.ap-copy:hover { color: #2F4F12; }
.ap-dpaste { width: 26px; height: 24px !important; min-height: 24px !important; padding: 0 !important; border-radius: 6px !important; font-size: 13px; line-height: 1; }

.ap-cact { display: flex; align-items: center; min-width: 0; }
.ap-cbar .ap-copy { min-width: 28px; }
.ap-cbar { min-width: 0; overflow: hidden; }

.qd-wrap { display: grid; gap: 4px; }
.qd-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.qd-l { font-size: 12px; color: var(--muted); width: 64px; flex: none; }
.qd { min-height: 30px; padding: 2px 9px; border-radius: 15px; border: 1px solid rgba(0,0,0,.18); background: #fff; color: inherit; font-size: 13px; cursor: pointer; }
.qd:hover { border-color: #2F4F12; }
.qd.on { background: #2F4F12; color: #fff; border-color: #2F4F12; }
.qd-all { display: flex; gap: 6px; align-items: center; }

.ap-pop-bg { position: fixed; inset: 0; z-index: 80; background: rgba(20,28,12,.42); display: none; align-items: flex-start; justify-content: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
.ap-pop-bg.show { display: flex; }
.ap-pop { background: var(--card, #fff); border-radius: 14px; width: min(1180px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.25); border-top: 4px solid var(--c-geraet, #2F4F12); }
.ap-pop-in { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; outline: none; }
.ap-pop-head { position: sticky; top: 0; background: var(--card, #fff); z-index: 2; padding-block: 6px; }
.ap-pop .ap-ex { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; padding: 0; list-style-position: inside; }
.ap-pop .ap-ex > li { margin: 0; }
.ap-extx textarea { font-family: ui-monospace, monospace; font-size: 13px; }
body.ap-popopen { overflow: hidden; }
@media (max-width: 640px) { .ap-pop-bg { padding: 0; } .ap-pop { border-radius: 0; min-height: 100%; } .ap-pop .ap-ex { grid-template-columns: 1fr; } }
.qd-wrap .qd { min-height: 28px !important; height: 28px !important; min-width: 0 !important; padding: 0 9px !important; font-size: 12.5px !important; font-weight: 500; line-height: 1; box-shadow: none !important; }
.qd-wrap .qd.on { background: #2F4F12 !important; color: #fff !important; }
.qd-row { gap: 3px; }
.qd-l { width: 58px; }
