/* Trainingsplan – App-Oberfläche */
:root {
  --brand: #2F6B5E;
  --bg: #F5F6F4;
  --card: #FFFFFF;
  --text: #1F2421;
  --muted: #6B736E;
  --line: #E2E5E1;
  --danger: #B23B3B;
  --warn: #B7791F;
  --ok: #2F7D4F;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body.noscroll { overflow: hidden; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0; line-height: 1.25; }
h2 { font-size: 1.05rem; margin: 0 0 .8rem; }
code { background: #eee; padding: 1px 5px; border-radius: 4px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.dim { opacity: .5; }

/* Kopfzeile */
.topbar { display: flex; align-items: center; gap: 1rem; background: #fff; border-bottom: 1px solid var(--line); padding: .55rem 1.25rem; position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; max-width: 120px; object-fit: contain; }
.mainnav { display: flex; align-items: center; gap: .25rem; flex: 1; }
.mainnav a { color: var(--muted); padding: .45rem .7rem; border-radius: 8px; white-space: nowrap; }
.mainnav a:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.mainnav a.active { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, white); font-weight: 600; }
.mainnav .spacer { flex: 1; }
.navtoggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.4rem; cursor: pointer; }
.actingbar { background: #FFF4D6; border-bottom: 1px solid #F0DFA8; padding: .4rem 1.25rem; font-size: .9rem; display: flex; gap: 1rem; align-items: center; }
.actingbar form { margin: 0; }

.container { max-width: 1240px; margin: 0 auto; padding: 1.5rem 1.25rem 6rem; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.pagehead .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.crumb { font-size: .85rem; margin-bottom: .2rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.card.hint { border-left: 4px solid var(--brand); }
.card.subtle { background: transparent; box-shadow: none; }
.card.narrow { max-width: 460px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 8px; padding: .5rem 1rem; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--line); font-weight: 500; }
.btn.ghost:hover { border-color: #c9cec9; filter: none; background: #fafafa; }
.btn.danger { color: var(--danger); }
.btn.danger:not(.ghost) { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.small { padding: .25rem .6rem; font-size: .85rem; }
.btn.block { display: flex; width: 100%; margin-bottom: .5rem; }
form.inline { display: inline; margin: 0; }

/* Formulare */
.form label { display: block; font-size: .85rem; font-weight: 600; color: #3b423e; margin-bottom: .8rem; }
.form input:not([type=checkbox]):not([type=color]):not([type=file]), .form select, .form textarea,
.filterbar input, .filterbar select, .newplan input, .newplan select {
  display: block; width: 100%; margin-top: .3rem; padding: .5rem .65rem; border: 1px solid #CDD2CE; border-radius: 7px; font: inherit; font-weight: 400; background: #fff; color: var(--text);
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .filterbar input:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form label.check, label.check { display: flex; align-items: center; gap: .45rem; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.grid2.tight { gap: 0 .75rem; }
.formfoot { grid-column: 1 / -1; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.formfoot.sticky { position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); padding: .8rem 0; border-top: 1px solid var(--line); margin-top: .5rem; z-index: 10; }
.flash { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; background: #E7F4EC; color: #1E5B37; border: 1px solid #C6E5D2; }
.flash.err { background: #FBEAEA; color: #8A2727; border-color: #F1C9C9; }
.flash.warn { background: #FFF5E0; color: #7A5410; border-color: #F2DFAF; }

.filterbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.filterbar input[type=search] { flex: 1 1 220px; margin: 0; }
.filterbar select { width: auto; flex: 0 1 160px; margin: 0; }
.filterbar label.check { margin: 0; font-size: .9rem; }
.newplan { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.newplan input { flex: 2 1 220px; margin: 0; }
.newplan select { flex: 1 1 180px; margin: 0; width: auto; }

/* Tabellen */
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
table.list td { padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
tr.rowlink { cursor: pointer; }
tr.rowlink:hover td { background: #FAFBFA; }

.chip { display: inline-block; font-size: .72rem; padding: .1rem .5rem; border-radius: 99px; background: #EEF1EE; color: #4A524D; margin: 0 .25rem .25rem 0; font-weight: 500; vertical-align: middle; }
.chip.ok { background: #E3F3E9; color: var(--ok); }
.chip.off { background: #F5E4E4; color: var(--danger); }
.chip.lvl { background: color-mix(in srgb, var(--brand) 12%, white); color: var(--brand); }

.tabs { display: flex; gap: .25rem; background: #E9ECE9; border-radius: 9px; padding: 3px; }
.tabs a { padding: .35rem .9rem; border-radius: 7px; color: var(--muted); }
.tabs a.active { background: #fff; color: var(--text); box-shadow: var(--shadow); font-weight: 600; }
.tabs a:hover { text-decoration: none; }

/* Dashboard */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--text); box-shadow: var(--shadow); }
.stat:hover { text-decoration: none; border-color: var(--brand); }
.stat b { display: block; font-size: 1.8rem; color: var(--brand); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }

/* Zweispaltig */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }

/* Übungskarten */
.exgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.excard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.excard .thumb, .pkcard .thumb { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #F0F2F0; color: var(--muted); font-size: .85rem; overflow: hidden; }
.excard .thumb img, .pkcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.excard .thumb em { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.55); color: #fff; font-style: normal; font-size: .72rem; padding: 1px 6px; border-radius: 4px; }
.excard .body { padding: .75rem .9rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.excard .title { font-weight: 600; color: var(--text); }
.excard .chips { margin-top: auto; padding-top: .3rem; }
.cardact { margin-top: .4rem; }

/* Übung bearbeiten */
.imglist { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .75rem; }
.imgitem { width: 160px; background: #FAFBFA; border: 1px solid var(--line); border-radius: 8px; padding: .4rem; cursor: grab; }
.imgitem.dragging { opacity: .4; }
.imgitem img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; display: block; }
.imgitem input { margin-top: .35rem !important; font-size: .82rem !important; padding: .3rem .45rem !important; }
.imgitem label { margin: .3rem 0 0 !important; }
.dropzone { border: 2px dashed #CDD2CE; border-radius: 9px; padding: 1rem; text-align: center; color: var(--muted); cursor: pointer; }
.dropzone:hover { border-color: var(--brand); color: var(--brand); }
.dropzone input { display: block; margin: .5rem auto 0; font-weight: 400; }
.taggroup { margin-bottom: .7rem; }
.tg-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .3rem; font-weight: 600; }
.tagcheck { display: inline-block !important; margin: 0 .25rem .35rem 0 !important; font-weight: 500 !important; cursor: pointer; }
.tagcheck input { position: absolute; opacity: 0; pointer-events: none; }
.tagcheck span { display: inline-block; padding: .2rem .65rem; border: 1px solid #D4D9D5; border-radius: 99px; font-size: .82rem; background: #fff; }
.tagcheck input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.tagcheck input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Einstellungen */
.logo-preview { height: 110px; border: 1px dashed #CDD2CE; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: .8rem; background: repeating-conic-gradient(#f4f4f4 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.logo-preview img { max-height: 90px; max-width: 90%; }
.colors { display: flex; gap: 1rem; }
.colors input[type=color] { display: block; width: 64px; height: 40px; border: 1px solid #CDD2CE; border-radius: 7px; padding: 2px; margin-top: .3rem; background: #fff; cursor: pointer; }
.swatch-demo { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: .9rem; }
.sd-band { background: var(--p); color: #fff; padding: .8rem 1rem; font-weight: 600; }
.sd-body { padding: .8rem 1rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sd-num { background: var(--p); color: #fff; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.sd-pill { background: var(--s); color: var(--p); padding: .15rem .6rem; font-weight: 700; }
.sd-acc { border-left: 4px solid var(--a); color: var(--a); padding: .1rem .5rem; font-weight: 700; font-size: .8rem; text-transform: uppercase; }

/* Plan-Editor */
.itemshead { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.itemshead h2 { margin: 0; }
.empty { padding: 2rem; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: 9px; }
.pitem { border: 1px solid var(--line); border-radius: 9px; margin-bottom: .6rem; background: #fff; }
.pitem.dragging { opacity: .4; }
.pitem.dropbefore { box-shadow: 0 -3px 0 var(--brand); }
.pitem-head { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; }
.handle { cursor: grab; color: #A3AAA5; letter-spacing: -3px; user-select: none; }
.pnum { background: var(--brand); color: #fff; font-weight: 700; min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-size: .9rem; }
.ptitle { flex: 1; min-width: 0; }
.pbtns { display: flex; gap: .25rem; }
.pitem-quick { display: grid; grid-template-columns: 1.4fr repeat(6, 1fr); gap: .5rem; padding: 0 .7rem .6rem; }
.pitem-quick label, .pitem-more label { font-size: .72rem !important; margin: 0 !important; color: var(--muted) !important; font-weight: 600; }
.pitem-quick input, .pitem-more input, .pitem-more textarea { padding: .35rem .5rem !important; margin-top: .15rem !important; font-size: .88rem !important; }
.pitem-quick input::placeholder { color: #9AA39D; }
.pitem-more { padding: .2rem .7rem .8rem; border-top: 1px dashed var(--line); display: grid; gap: .5rem; }
.pimgs { display: flex; flex-wrap: wrap; gap: .5rem; }
.pimg { position: relative; width: 84px; cursor: pointer; margin: 0 !important; }
.pimg input { position: absolute; opacity: 0; }
.pimg img { width: 84px; height: 63px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; opacity: .35; filter: grayscale(1); display: block; }
.pimg.on img { opacity: 1; filter: none; border-color: var(--brand); }

/* Modal / Picker */
.modal { position: fixed; inset: 0; background: rgba(20,24,22,.45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 3vh 1rem; }
.modal-box { background: var(--bg); border-radius: 14px; width: min(1100px, 100%); max-height: 94vh; display: flex; flex-direction: column; padding: 1rem 1.25rem; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.modal-head h2 { margin: 0; }
.pkgrid { overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; padding-bottom: .5rem; }
.pkcard { text-align: left; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 0; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; color: var(--text); }
.pkcard:hover { border-color: var(--brand); }
.pkcard .body { padding: .55rem .7rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.pkcard .add { padding: .4rem .7rem; border-top: 1px solid var(--line); font-weight: 600; color: var(--brand); font-size: .85rem; }
.pkcard.added { border-color: color-mix(in srgb, var(--brand) 45%, white); }
.pkcard.added .add { background: color-mix(in srgb, var(--brand) 9%, white); }

/* Login */
body.bare { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
body.bare .container { width: 100%; }
.authbox { max-width: 400px; margin: 8vh auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 2rem; box-shadow: var(--shadow); }
.authbox h1 { margin-bottom: .3rem; }
.authbox .btn { width: 100%; margin-top: .5rem; }

@media (max-width: 1320px) {
  .topbar { flex-wrap: wrap; }
  .navtoggle { display: block; }
  .mainnav { display: none; flex-direction: column; align-items: stretch; width: 100%; flex-basis: 100%; }
  body.navopen .mainnav { display: flex; }
  .mainnav .spacer { display: none; }
}
@media (max-width: 960px) {
  .cols { grid-template-columns: 1fr; }
  .pitem-quick { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .grid2 { grid-template-columns: 1fr; }
  .container { padding: 1rem 1rem 6rem; }
  .pitem-head { flex-wrap: wrap; }
  .pbtns { width: 100%; justify-content: flex-end; }
  table.list th:nth-child(n+3), table.list td:nth-child(n+3):not(.right) { display: none; }
}

/* Übungspakete */
.packhead { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.packhead p { margin: .2rem 0; }
.packgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; margin-top: .8rem; }
.packitem { font-size: .78rem; color: var(--muted); }
.packitem img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; display: block; margin-bottom: .25rem; }
.btn[disabled] { opacity: .5; cursor: default; filter: none; }

/* Fragebögen */
.qadd { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-top: .6rem; }
.qrow .qlabel-in { width: 100%; border: 1px solid transparent; border-radius: 6px; padding: .35rem .5rem; font: inherit; font-weight: 600; background: transparent; }
.qrow .qlabel-in:hover, .qrow .qlabel-in:focus { border-color: #CDD2CE; background: #fff; outline: none; }
.qrow-head { background: color-mix(in srgb, var(--brand) 6%, white); }
.qrow-head .qlabel-in { font-size: 1.05rem; color: var(--brand); }
.qrow-body { display: grid; grid-template-columns: 200px 1fr; gap: .5rem .8rem; padding: 0 .7rem .7rem 3.2rem; align-items: start; }
.qrow-body label { font-size: .75rem !important; margin: 0 !important; color: var(--muted) !important; }
.qrow-body label.check { grid-column: 1 / -1; color: var(--text) !important; font-size: .85rem !important; }
.qrow-body select, .qrow-body input, .qrow-body textarea { margin-top: .15rem !important; padding: .35rem .5rem !important; font-size: .88rem !important; }
.qrow-body label:has(textarea) { grid-column: 1 / -1; }
.sharebox { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-top: .5rem; }
.sharebox input { flex: 1 1 260px; padding: .4rem .55rem; border: 1px solid #CDD2CE; border-radius: 7px; font: inherit; font-size: .85rem; background: #FAFBFA; }
.answers .qhead { margin: 1.2rem 0 .4rem; color: var(--brand); font-size: 1rem; }
.answers .qhead:first-child { margin-top: 0; }
.ans { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.ans-q { color: var(--muted); }
.ans-a { font-weight: 500; }
.ans-a ol { margin: 0; padding-left: 1.2rem; }

/* Öffentlicher Fragebogen */
body.public { background: color-mix(in srgb, var(--soft) 55%, var(--bg)); }
.pubwrap { max-width: 720px; margin: 0 auto; padding: 2rem 1rem 3rem; }
.pubhead { text-align: center; margin-bottom: 1.5rem; }
.pubhead img { max-height: 70px; max-width: 260px; }
.pubcard { background: #fff; border-radius: 16px; padding: 2rem 2rem 2.2rem; box-shadow: 0 2px 20px rgba(0,0,0,.06); border-top: 5px solid var(--brand); }
.pubcard h1 { color: var(--brand); }
.pubintro { color: #3d4540; margin: .8rem 0 1.5rem; }
.qform .qhead { color: var(--brand); font-size: 1.15rem; margin: 2rem 0 .3rem; padding-bottom: .4rem; border-bottom: 2px solid color-mix(in srgb, var(--brand) 15%, white); }
.qitem { margin: 1.1rem 0; }
.qlabel { font-weight: 600; margin-bottom: .35rem; }
.req { color: var(--accent, #c0392b); }
.qhelp { color: var(--muted); font-size: .88rem; margin-bottom: .35rem; }
.qitem.has-error input, .qitem.has-error textarea, .qitem.has-error .qopts, .qitem.has-error .qscale { outline: 2px solid #E3A1A1; border-radius: 8px; }
.qerror { color: #A33; font-size: .85rem; margin-top: .25rem; }
.qopts { display: flex; flex-wrap: wrap; gap: .45rem; }
.qopt { display: inline-flex !important; margin: 0 !important; cursor: pointer; font-weight: 500 !important; }
.qopt input { position: absolute; opacity: 0; }
.qopt span { padding: .45rem .85rem; border: 1px solid #D0D5D1; border-radius: 99px; background: #fff; transition: .15s; }
.qopt input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.qopt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.qscale { display: grid; grid-template-columns: repeat(10, 1fr); gap: .3rem; }
.qscale label { margin: 0 !important; cursor: pointer; }
.qscale input { position: absolute; opacity: 0; }
.qscale span { display: block; text-align: center; padding: .55rem 0; border: 1px solid #D0D5D1; border-radius: 8px; font-weight: 600; background: #fff; }
.qscale input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.qscale-legend { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.qgoal { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.qgoal span { color: var(--brand); font-weight: 700; width: 1.2rem; }
.qgoal input { margin: 0 !important; }
.qconsent { display: flex !important; gap: .6rem; align-items: flex-start; background: color-mix(in srgb, var(--soft) 60%, white); padding: .9rem 1rem; border-radius: 10px; margin: 1.5rem 0 1rem !important; font-weight: 500 !important; }
.qconsent input { margin-top: .25rem; }
.qconsent.has-error { outline: 2px solid #E3A1A1; }
.btn.big { padding: .75rem 2rem; font-size: 1.05rem; }
.pubdone { text-align: center; padding: 1.5rem 0 .5rem; }
.pubcheck { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.pubfoot { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 1.5rem; }
@media (max-width: 600px) {
  .pubcard { padding: 1.4rem 1.1rem; }
  .qscale { grid-template-columns: repeat(5, 1fr); }
  .qrow-body { grid-template-columns: 1fr; padding-left: .7rem; }
  .ans { grid-template-columns: 1fr; gap: .2rem; }
}
.readybar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Körperkarte */
.bodymap { margin-top: .4rem; }
.bm-views { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; max-width: 560px; }
.bm-view { text-align: center; }
.bm-canvas { position: relative; background: color-mix(in srgb, var(--soft, #E8F0EC) 45%, white); border-radius: 12px; }
.bodymap.interactive .bm-canvas { cursor: crosshair; }
.bm-canvas img { width: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.bm-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--accent, #D9822B); border: 3px solid #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent, #D9822B) 30%, transparent); cursor: pointer; }
.bm-label { font-size: .8rem; color: var(--muted); margin-top: .25rem; font-weight: 600; }
.bm-tools { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; max-width: 560px; }
.answers .bm-views { max-width: 360px; }

/* Übungsauswahl: robuste Kartenhöhe (Safari) + größere Karten */
.modal-box { height: 94vh; }
.pkgrid { flex: 1 1 auto; min-height: 0; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-rows: max-content; align-content: start; gap: 1rem; }
.pkcard { min-height: 0; }
.pkcard .thumb, .excard .thumb { display: block; height: 0; padding-top: 75%; aspect-ratio: auto; position: relative; }
.pkcard .thumb img, .excard .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pkcard .thumb > span, .excard .thumb > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pkcard .body { gap: .3rem; padding: .7rem .8rem; }
.pkcard .body strong { font-size: 1rem; line-height: 1.3; }
.pkcard .body .chip, .pkcard .body .chips { align-self: flex-start; }
.pkcard .add { padding: .55rem .8rem; font-size: .9rem; }
@media (max-width: 600px) { .pkgrid { grid-template-columns: repeat(2, 1fr); gap: .6rem; } .modal { padding: 0; } .modal-box { height: 100vh; max-height: 100vh; border-radius: 0; } }
/* versteckte Auswahlfelder nicht über den Rand ragen lassen (horizontales Scrollen) */
.qopt, .qscale label, .tagcheck, .pimg { position: relative; }
.qopt input, .qscale input, .tagcheck input, .pimg input { left: 0; top: 0; width: 1px; height: 1px; margin: 0; }
.bodymap.bm-hund .bm-views, .bodymap.bm-katze .bm-views { max-width: 760px; }
.packplans { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: .8rem; padding: .8rem 1rem; background: color-mix(in srgb, var(--brand) 6%, white); border-radius: 9px; }
.profilerow { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; margin-top: .8rem; }
.profilehead { display: flex; gap: 1rem; align-items: center; margin-bottom: .8rem; }
.profilehead img { height: 46px; max-width: 180px; object-fit: contain; }
.swatches { display: flex; gap: .3rem; margin-top: .35rem; }
.swatches span { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); }
.audpick { grid-column: 1 / -1; margin-bottom: .8rem; }
