/* Grundstil aus der Metorbike-App übernommen */
@font-face { font-family:'Inter'; font-weight:400; font-style:normal; font-display:swap; src:url('/static/fonts/Inter-Regular.woff') format('woff'); }
@font-face { font-family:'Inter'; font-weight:500; font-style:normal; font-display:swap; src:url('/static/fonts/Inter-Medium.woff') format('woff'); }
@font-face { font-family:'Inter'; font-weight:600; font-style:normal; font-display:swap; src:url('/static/fonts/Inter-SemiBold.woff') format('woff'); }
:root { --bg:#fafbfb; --card:#fff; --ink:#1a2326; --muted:#6b7d90; --line:#dde3ea; --acc:#24476b; --acc2:#3d6e9e; --ok:#0f8a4b; --warn:#b36b00; --bad:#c62828; --headbg:color-mix(in srgb,var(--acc) 17%,white); }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; background:var(--bg); color:var(--ink); }

/* Kopfleiste */
header { display:flex; flex-wrap:nowrap; gap:.5rem 1rem; align-items:center; padding:.35rem 1rem; background:#fff; color:var(--ink); border-bottom:1px solid var(--line); }
header a { color:var(--ink); text-decoration:none; }
header .brand { display:flex; align-items:center; gap:.7rem; }
header .brand img { height:34px; width:auto; display:block; }          /* 18.11.2026 größer, Wunsch von Colin (vorher 24 px) */
header nav { display:flex; flex-wrap:nowrap; gap:.15rem; flex:1; min-width:0; overflow-x:auto; scrollbar-width:none; }
header nav a { display:inline-flex; align-items:center; gap:.4rem; font-size:1rem; font-weight:500; white-space:nowrap; padding:.4rem .9rem; border-radius:99px; }
header nav a .navico { width:18px; height:18px; }
@media (max-width:1600px) { header nav a { padding:.4rem .62rem; gap:.35rem; } }     /* acht Werkzeuge passen bei 1440 px nebeneinander */
@media (max-width:760px) { header .brand img { height:28px; } header nav a { font-size:.92rem; padding:.35rem .75rem; } header nav a .navico { width:16px; height:16px; } }
header nav a:hover { background:#eef1f5; }
header nav a.on { background:var(--acc); color:#fff; }
header .gsearch { flex:none; position:relative; }
.gsuggest { display:none; position:absolute; right:0; top:calc(100% + .35rem); z-index:50; width:min(24rem,calc(100vw - 1.5rem)); max-height:70vh; overflow:auto; padding:.25rem; background:var(--card); border:1px solid var(--line); border-radius:8px; box-shadow:0 8px 22px rgba(0,0,0,.16); }
.gsuggest.open { display:block; }
header .gsuggest a { display:block; padding:.35rem .55rem; border-radius:6px; color:var(--ink); }
header .gsuggest a b { display:block; font-weight:600; font-size:.9rem; overflow-wrap:anywhere; }
header .gsuggest a span { display:block; font-size:.76rem; color:var(--muted); overflow-wrap:anywhere; }
header .gsuggest a:hover, header .gsuggest a.on { background:#eaf0f7; }
header .gsuggest a.gall { border-top:1px solid var(--line); border-radius:0 0 6px 6px; color:var(--acc2); font-size:.85rem; font-weight:600; }
header .gsearch input { width:9rem; padding:.25rem .8rem; border-radius:999px; font-size:.85rem; transition:width .15s; }
header .gsearch input:focus { width:17rem; }
@media (max-width:760px) { header .gsearch input, header .gsearch input:focus { width:6.5rem; } header .user { display:none; } }
header .user { color:var(--muted); font-size:.8rem; white-space:nowrap; flex:none; }
.navico { width:14px; height:14px; flex:none; }
.subnav { display:flex; flex-wrap:nowrap; overflow-x:auto; gap:.15rem .25rem; padding:.25rem 1rem; background:var(--headbg); border-bottom:1px solid var(--line); scrollbar-width:none; }
.subnav a { display:inline-flex; align-items:center; gap:.3rem; font-size:.82rem; text-decoration:none; color:var(--ink); padding:.2rem .7rem; border-radius:99px; white-space:nowrap; }
.subnav a:hover { background:#fff; }
.subnav a.on { background:#fff; font-weight:600; box-shadow:inset 0 0 0 1px var(--acc2); }

/* Seite */
main { max-width:1100px; margin:1.25rem auto; padding:0 1rem 4rem; }
h1 { font-size:2rem; font-weight:500; letter-spacing:-.01em; margin:.2rem 0 1rem; }
h2 { font-size:1.15rem; margin:1.5rem 0 .6rem; }
h2.sec { font-size:1.5rem; font-weight:500; margin:2.2rem 0 .9rem; letter-spacing:-.01em; }
.eyebrow { font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; margin:0 0 .4rem; opacity:.75; }
a { color:var(--acc2); text-decoration-color:#a9c0be; text-underline-offset:2px; }
a:hover { text-decoration-color:var(--acc2); }
.muted { color:var(--muted); } .warn { color:var(--warn); } .bad { color:var(--bad); }
.card { background:var(--card); border:1px solid var(--line); border-radius:6px; padding:1rem; margin-bottom:1rem; }
.grid { display:grid; gap:1rem; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); }
.block { background:var(--card); border:1px solid var(--line); border-radius:6px; padding:1rem; margin-bottom:1rem; min-width:0; }
.block>h2:first-child { margin-top:0; }
.block>.card { border:0; background:none; padding:0; margin-bottom:.6rem; }
.block>:last-child { margin-bottom:0; }

/* Tabellen */
table { width:100%; border-collapse:separate; border-spacing:0; background:var(--card); border:1px solid var(--line); border-radius:6px; overflow:hidden; }
th, td { text-align:left; padding:.5rem .7rem; border-bottom:1px solid var(--line); vertical-align:top; font-size:.95rem; }
th { background:var(--acc); font-weight:700; font-size:.85rem; color:#fff; }
tr:last-child td { border-bottom:0; }
.scroll { overflow-x:auto; }
form > .scroll { align-self:stretch; min-width:0; max-width:100%; }
main>.scroll { background:var(--card); border:1px solid var(--line); border-radius:6px; padding:.6rem; margin-bottom:1rem; }
main>.scroll>table, .block>.scroll>table { border:0; }
tr[data-href] { cursor:pointer; }
tr[data-href]:hover td { background:#eaf0f7; }
tr.row-offen td { background:#fff6dc; } tr.row-offen td:first-child { box-shadow:inset 5px 0 0 #f0b429; }
tr.row-bad td { background:#fbe7c6; } tr.row-bad td:first-child { box-shadow:inset 5px 0 0 #b45f06; }

/* Formulare und Knöpfe */
form.inline { display:flex; flex-wrap:wrap; gap:.5rem; align-items:end; }
.formgrid { display:grid; gap:.6rem .8rem; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
label { display:flex; flex-direction:column; font-size:.8rem; color:var(--muted); gap:.2rem; }
label.check { flex-direction:row; align-items:center; gap:.4rem; font-size:.95rem; color:var(--ink); }
input, select, textarea { font:inherit; padding:.5rem .6rem; border:1px solid #b9c5d1; border-radius:4px; background:#fff; min-width:0; }
input[type=checkbox] { width:1.1rem; height:1.1rem; }
input:focus, select:focus, textarea:focus { outline:2px solid var(--acc2); outline-offset:1px; }
textarea { width:100%; }
button, .btn { font:inherit; font-weight:600; padding:.55rem 1.2rem; border:0; border-radius:99px; background:var(--acc); color:#fff; cursor:pointer; text-decoration:none; display:inline-block; }
button:hover, .btn:hover { background:var(--acc2); }
button.sec, .btn.sec { background:#e6ebf1; color:var(--ink); }
button.sec:hover, .btn.sec:hover { background:#d3dedb; }
button.small, .btn.small { padding:.15rem .6rem; font-size:.8rem; }

/* Kennzeichnungen */
.badge { display:inline-block; padding:.1rem .55rem; border-radius:99px; font-size:.8rem; background:#e4e8ef; }
.badge.freigegeben { background:#3a6c9c; color:#fff; font-weight:600; } .badge.offen { background:#f0b429; color:#2b1f00; font-weight:600; } .badge.gesperrt { background:#d93a2e; color:#fff; font-weight:600; }
.err { background:#fbdcdc; border:1px solid #f1b0b0; color:#7a1414; padding:.8rem 1rem; border-radius:6px; }
.banner { border-radius:6px; padding:.75rem 1rem; margin:0 0 .8rem; border:1px solid; }
.banner.warn { background:#fff3cf; border-color:#f0b429; color:#4d3600; }

/* Startseite */
.hero { background:var(--acc); color:#fff; border-radius:8px; padding:1.8rem 1.6rem 1.6rem; }
.hero h1 { font-size:2.6rem; margin:0 0 1rem; font-weight:500; }
.hot { display:grid; gap:.75rem; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); }
.hotcard { display:flex; flex-direction:column; gap:.15rem; padding:1rem 1.1rem; border-radius:8px; background:rgba(255,255,255,.09); color:#fff; text-decoration:none; border:1px solid rgba(255,255,255,.14); }
.hotcard:hover { background:rgba(255,255,255,.16); }
.hotcard b { font-size:2.8rem; line-height:1; font-weight:500; }
.hotcard b.money { font-size:1.7rem; line-height:1.65; white-space:nowrap; }
.hotcard span { font-size:.9rem; opacity:.9; }
.hotcard.warn { background:#f0b429; color:#2b1f00; border-color:#f0b429; } .hotcard.warn:hover { background:#f7c64f; }
.hotcard.zero { opacity:.7; } .hotcard.zero b { font-weight:400; }
.tiles { display:grid; gap:.75rem; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); margin-bottom:1.25rem; }
.tile { display:flex; flex-direction:column; gap:.2rem; background:var(--card); border:1px solid var(--line); border-radius:6px; padding:.85rem 1rem; color:var(--ink); }
.tile b { font-size:1.9rem; line-height:1; font-weight:600; } .tile b.money { font-size:1.35rem; line-height:1.3; white-space:nowrap; }
.tile span { font-size:.82rem; color:var(--muted); }
.ico { display:inline-grid; place-items:center; width:46px; height:46px; border-radius:50%; background:#e3eaf3; color:var(--acc); margin-bottom:.7rem; }
.ico svg { width:24px; height:24px; }
.ico.sm { width:36px; height:36px; margin:0; flex:none; } .ico.sm svg { width:19px; height:19px; }
.mods { display:grid; gap:.5rem; grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr)); }
.mod { display:flex; align-items:center; gap:.8rem; padding:.55rem .75rem; border:1px solid var(--line); border-radius:6px; background:var(--card); text-decoration:none; color:var(--ink); }
.mod > div { display:flex; flex-direction:column; gap:.1rem; min-width:0; }
.mod b { font-weight:600; } .mod span { font-size:.82rem; color:var(--muted); }
a.mod:hover { border-color:var(--acc2); background:#f4f7fa; }
a.mod:hover .ico { background:var(--acc); color:#fff; }

/* Listen und Detailseiten */
.eyebrow.dark { color:var(--acc2); opacity:1; margin-top:.4rem; }
.crumb { color:var(--acc2); text-decoration:none; } .crumb:hover { text-decoration:underline; }
details.card > summary { cursor:pointer; list-style:none; } details.card > summary::-webkit-details-marker { display:none; }
details.card > summary::before { content:"+ "; color:var(--acc2); font-weight:600; } details[open].card > summary::before { content:"– "; }
form.stack { display:flex; flex-direction:column; align-items:flex-start; gap:.7rem; margin-top:.7rem; }
form.stack .formgrid, form.stack .wide { width:100%; }
.chips-row { display:flex; flex-wrap:wrap; gap:.4rem; margin-bottom:1rem; }
.chip { padding:.2rem .8rem; border-radius:999px; border:1px solid var(--acc); color:var(--acc); text-decoration:none; font-size:.85rem; }
.chip.on { background:var(--acc); color:#fff; }
.facts { margin:0; display:grid; grid-template-columns:auto 1fr; gap:.3rem .9rem; } .facts dt { color:var(--muted); font-size:.85rem; } .facts dd { margin:0; min-width:0; overflow-wrap:anywhere; }
.keeplines { white-space:pre-line; }
.badge.st-auftrag, .badge.st-arbeit { background:#3a6c9c; color:#fff; font-weight:600; }
.badge.st-fertig { background:var(--headbg); color:var(--acc); font-weight:600; }
.badge.st-abgesagt { background:#eceeee; color:#5d6b79; }
td.num, th.num { text-align:right; white-space:nowrap; }
tr.sum td { font-weight:600; background:var(--headbg); }

/* Lagerbereiche */
.finder-list { list-style:none; margin:0 0 .8rem; padding:0; display:grid; gap:.4rem; grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr)); }
.finder-list a { display:flex; align-items:center; gap:.7rem; padding:.45rem .7rem; border:1px solid color-mix(in srgb,var(--sc,#24476b) 45%,white); border-radius:99px; background:var(--card); color:var(--ink); text-decoration:none; }
.finder-list a b { margin-left:auto; font-weight:500; color:var(--muted); font-size:.85rem; }
.finder-list a .ico { background:color-mix(in srgb,var(--sc,#24476b) 14%,white); color:var(--sc,#24476b); }
.finder-list a:hover { background:var(--sc,var(--acc)); border-color:var(--sc,var(--acc)); color:#fff; } .finder-list a:hover b { color:#fff; }
.finder-list a:hover .ico { background:#fff; color:var(--sc,var(--acc)); }

/* Startseite: Zeitleiste, Kalender, Kacheln */
.hometop { display:flex; gap:.7rem; align-items:stretch; margin-bottom:1rem; flex-wrap:wrap; }
.hometop > .banner { flex:0 0 100%; margin:0; }
.hometop .timebar { flex:1 1 0; min-width:min(20rem,100%); margin:0; }
.scantile { flex:none; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.35rem; width:7.5rem; padding:.6rem; background:#dce6f1; border:1px solid #a9cdb8; border-radius:8px; color:var(--acc); text-decoration:none; text-align:center; font-size:.85rem; }
.scantile:hover { border-color:var(--acc); box-shadow:0 2px 0 var(--acc); }
.scantile .ico { margin:0; background:#fff; }
.scantiles { flex:none; display:grid; grid-auto-rows:1fr; gap:.5rem; width:7.5rem; }
.scantiles .scantile { width:auto; min-width:0; }
@media (max-width:760px) { .scantiles { width:100%; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); grid-auto-rows:auto; } .scantiles .scantile { width:auto; } }
.shotslim { min-height:0; flex-direction:row; padding:.6rem; font-size:.95rem; }
.timebtns { flex:none; display:grid; grid-template-columns:repeat(2,6.2rem); gap:.5rem; }
.timebtns.one form:first-child { grid-column:1/-1; }
.timebtns.one form:first-child button { width:100%; }
.notebox form.fotowahl { flex-direction:column; gap:.5rem; margin-top:.6rem; }
.fotowahl .shotbtn { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.5rem; min-height:7.5rem; padding:1rem; color:#fff; font-size:1.4rem; margin:0; text-align:center; }
.fotowahl .shotbtn b { font-size:1.4rem; font-weight:600; }
.fotowahl .shotbtn.sec { background:#e6ebf1; color:var(--ink); }
.fotowahl svg { width:2.4rem; height:2.4rem; }
.fotowahl .shotbtn:focus-within { outline:2px solid var(--acc2); outline-offset:2px; }
.notebox form.stack { margin-top:.5rem; }
.notebox form { display:flex; }
.hometop > .banner, .hometop > .timebar { min-width:0; }
.topgrid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:1.2rem; align-items:start; margin-bottom:1.4rem; }
.topgrid .hero h1 { font-size:2rem; margin-bottom:.8rem; }
.topgrid .hot { gap:.4rem; grid-template-columns:repeat(auto-fill,minmax(125px,1fr)); }
.topgrid .hotcard { padding:.5rem .6rem; gap:.05rem; }
.topgrid .hotcard b { font-size:1.5rem; line-height:1.1; }
.topgrid .hotcard b.money { font-size:1.05rem; line-height:1.57; }
.topgrid .hotcard span { font-size:.74rem; line-height:1.25; }
.topgrid .hotcard.zero { opacity:.85; }
.topcol { display:grid; align-content:start; gap:1.2rem; min-width:0; }
.calcard { background:#fff; border:1px solid var(--line); border-top:4px solid var(--acc); border-radius:8px; padding:1rem 1.2rem; }
.calcard-head { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; }
.calcard-head h2.sec { margin:0; flex:1; font-size:1.15rem; font-weight:600; }
.calcard-ico .ico { margin:0; }
.calcard .calhead h3 { min-width:8rem; font-size:1.05rem; }
.calcard .calkey { display:none; }
.calcard .calgrid { grid-auto-rows:3rem; }
.calcard .calwd { align-self:start; }
.calcard .calday { min-height:0; padding:.1rem .2rem; gap:1px; overflow:hidden; }
.calcard .calnum { font-size:.72rem; padding:0 .25rem; }
.calcard .calitem { font-size:.66rem; padding:0 .25rem; }
.calcard .calmore { font-size:.62rem; line-height:1; }
.areatiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(105px,1fr)); gap:.5rem; }
.areatile { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.35rem; padding:.6rem .3rem; background:#fff; border:1px solid var(--line); border-radius:8px; color:var(--ink); text-decoration:none; text-align:center; font-size:.85rem; }
.areatile b { font-weight:500; }
.areatile:hover { border-color:var(--acc); box-shadow:0 2px 0 var(--acc); }
.areatile .ico { margin:0; }
@media (max-width:980px) { .topgrid { grid-template-columns:1fr; } }
@media (max-width:760px) { .calcard .calgrid { grid-auto-rows:2rem; } .calcard .calitem { display:none; } .scantile { width:100%; flex-direction:row; padding:.45rem; } }

/* Arbeitszeit */
.timebar { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem 1rem; padding:.7rem 1rem; margin-bottom:1rem; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.timebar form { display:flex; align-items:center; gap:.5rem; margin:0; }
.timebar .timeform { flex:1 1 22rem; min-width:0; gap:.8rem; }
.timebar select { width:100%; min-width:0; }
.timesel { flex:1 1 8.5rem; min-width:0; }
.timebar.on .timesel { color:#fff; }
.ratefields { display:grid; grid-template-columns:minmax(9rem,1.4fr) minmax(8rem,1fr) minmax(7rem,.8fr) auto; gap:.4rem; align-items:center; }
.ratefields input, .ratefields select { width:100%; }
@media (max-width:640px) { .ratefields { grid-template-columns:1fr 1fr; min-width:15rem; } }
.timebar .timesum { margin-left:auto; white-space:nowrap; font-weight:600; }
.timeinfo { display:flex; flex-direction:column; min-width:9rem; }
.pausezeile { font-size:.85rem; opacity:.9; } .pausezeile b { font-weight:600; font-variant-numeric:tabular-nums; }
.timeclock { font-size:1.5rem; line-height:1.2; font-weight:600; font-variant-numeric:tabular-nums; }
.timebar.on { background:var(--acc); border-color:var(--acc); color:#fff; }
.timebar.on a { color:#fff; }
.timebar.on button.sec { background:transparent; color:#fff; border:1px solid #fff; }
.timebar button.timewatch { flex:none; display:flex; flex-direction:column; align-items:center; justify-content:center; width:6.2rem; height:5.2rem; padding:0; border:0; border-radius:14px; background:var(--acc); color:#fff; font-size:.78rem; font-weight:600; line-height:1.1; cursor:pointer; transition:transform .12s,background .12s; }
.timebar button.timewatch svg { width:2.9rem; height:2.9rem; }
.timebar button.timewatch:hover { background:var(--acc2); transform:scale(1.04); }
.timebar.on button.timewatch, .timebar.on button.timewatch:hover { background:#fff; color:var(--acc); }
.timebar.on .watchhand { transform-origin:24px 28px; animation:watchspin 8s linear infinite; }
@keyframes watchspin { to { transform:rotate(360deg); } }
.timebar.paused .watchhand { animation:none; }
.timepick { display:flex; flex-wrap:wrap; gap:.25rem .5rem; flex:1; min-width:0; }
.timepick > b { flex:0 0 100%; }
@media (prefers-reduced-motion:reduce) { .timebar.on .watchhand { animation:none; } }

/* Fahrt auf der Zeitleiste: Das Männchen fährt Motocross bis zum Feierabend */
.road { position:relative; flex:1 1 100%; height:9.4rem; overflow:hidden; border-radius:8px; background:#2a5078; color:#fff; }
.roadfar, .roadnear { position:absolute; left:0; right:0; background-repeat:repeat-x; background-position-y:bottom; }
.roadfar { bottom:1.4rem; height:4.2rem; background-size:420px 67px; animation:roadfar 30s linear infinite; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 67'%3E%3Cpath d='M0 67C50 20 110 12 170 40C220 62 280 10 340 22C380 30 400 50 420 67Z' fill='%23fff' fill-opacity='.08'/%3E%3C/svg%3E"); }
.roadnear { bottom:1.4rem; height:2.2rem; background-size:300px 35px; animation:roadnear 7s linear infinite; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 35'%3E%3Cpath d='M0 35C22 35 36 16 60 16C84 16 92 35 118 35H176C196 35 206 22 226 22C246 22 254 35 276 35H300Z' fill='%236b4423'/%3E%3C/svg%3E"); }
.roadbase { position:absolute; left:0; right:0; bottom:0; height:1.5rem; background:#6b4423; background-image:radial-gradient(circle,#4f3118 1.5px,transparent 2px),radial-gradient(circle,#83582f 1.5px,transparent 2px); background-size:44px 12px,70px 16px; background-position:0 3px,20px 9px; animation:roadgravel .45s linear infinite; }
.roaddone { position:absolute; left:0; bottom:0; height:4px; width:0; background:#fff; }
.roadtext { position:absolute; top:.35rem; left:.7rem; font-size:.82rem; font-weight:600; }
.goaltext { position:absolute; right:.15rem; bottom:4.5rem; font-size:.72rem; font-weight:700; color:#fff; }
.goalflag { position:absolute; right:.5rem; bottom:.95rem; width:2.5rem; height:3.5rem; color:#fff; }
.flagcloth { transform-origin:7px 17px; animation:flagwave 1.1s ease-in-out infinite alternate; }
.roadbike { --p:0; position:absolute; bottom:.45rem; left:calc((100% - 12.5rem)*var(--p) + 1.1rem); width:8rem; transition:left 1s linear; color:#fff; }
.crossbike { display:block; width:100%; overflow:visible; transform-origin:25% 85%; animation:crossjump 7s ease-in-out infinite; }
.crossbody { animation:crossbob .24s ease-in-out infinite alternate; }
.crossman { animation:crossduck 7s ease-in-out infinite; transform-box:view-box; transform-origin:45% 75%; }
.road .bwheel { transform-box:fill-box; transform-origin:center; animation:wheelspin .4s linear infinite; }
.dust { position:absolute; left:-.2rem; bottom:.1rem; display:block; width:1.4rem; height:1.2rem; }
.dust i { position:absolute; left:.5rem; bottom:0; width:.7rem; height:.7rem; border-radius:50%; background:#a57c4f; opacity:0; animation:dustpuff .7s ease-out infinite; }
.dust i:nth-child(2) { animation-delay:.23s; } .dust i:nth-child(3) { animation-delay:.46s; }
@keyframes roadfar { to { background-position-x:-420px; } }
@keyframes roadnear { to { background-position-x:-300px; } }
@keyframes roadgravel { to { background-position:-44px 3px,-50px 9px; } }
@keyframes flagwave { to { transform:skewY(-6deg) scaleX(.94); } }
@keyframes wheelspin { to { transform:rotate(360deg); } }
@keyframes crossbob { to { transform:translateY(-1.2px); } }
@keyframes dustpuff { 0% { opacity:.85; transform:translate(0,0) scale(.5); } 100% { opacity:0; transform:translate(-1.5rem,-.7rem) scale(1.5); } }
/* Alle paar Sekunden ein Sprung: abheben mit dem Vorderrad zuerst, landen auf dem Hinterrad */
@keyframes crossjump { 0%,62% { transform:none; } 68% { transform:translateY(-.5rem) rotate(-9deg); } 75% { transform:translateY(-1.1rem) rotate(-3deg); } 82% { transform:translateY(-.5rem) rotate(5deg); } 87% { transform:none; } 90% { transform:translateY(-.08rem) rotate(-1.5deg); } 93%,100% { transform:none; } }
@keyframes crossduck { 0%,62%,93%,100% { transform:none; } 75% { transform:translateY(-2px) rotate(-3deg); } 87% { transform:translateY(3px); } }
.road.parked .roadfar, .road.parked .roadnear, .road.parked .roadbase, .road.parked .bwheel, .road.parked .crossbike, .road.parked .crossbody, .road.resumed .roadfar, .road.resumed .roadnear, .road.resumed .roadbase, .road.resumed .bwheel, .road.resumed .crossbike, .road.resumed .crossbody { animation:none; }
.road.parked .dust, .road.resumed .dust { display:none; }
/* Pause: absteigen, Klappstuhl holen, hinsetzen, pfeifen. Ablauf 9 Sekunden, danach bleibt er sitzen. */
.kickstand { opacity:0; } .road.parked .kickstand, .road.resumed .kickstand { opacity:1; }
.pausescene { display:none; position:absolute; left:100%; bottom:0; width:84.5%; overflow:visible; }
.road.parked .pausescene, .road.resumed .pausescene { display:block; }
.road.sceneleft .pausescene { left:auto; right:100%; transform:scaleX(-1); }
.road.parked .crossman { animation:pausecross 9s linear forwards; }
.foldchair, .carry, .chairopen, .sitter, .helmetdown, .walker, .pnote { opacity:0; }
.foldchair { animation:pausefold 9s linear forwards; }
.walker { animation:pausewalk 9s linear forwards; }
.carry { animation:pausecarry 9s linear forwards; }
.chairopen { transform-origin:26px 91px; animation:pauseopen 9s linear forwards; }
.sitter, .helmetdown { animation:pausesit 9s linear forwards; }
.wleg { transform-origin:0 62px; animation:pauseleg .5s ease-in-out infinite alternate; }
.wleg.back { animation-direction:alternate-reverse; }
.pnote { animation:pausenote 2.7s 6.6s ease-out infinite; }
.pausescene g:nth-last-of-type(2) .pnote { animation-delay:7.5s; } .pausescene g:nth-last-of-type(1) .pnote { animation-delay:8.4s; }
@keyframes pausecross { 0%,10% { opacity:1; } 11%,100% { opacity:0; } }
@keyframes pausefold { 0%,8% { opacity:0; } 10%,36% { opacity:1; } 37%,100% { opacity:0; } }
@keyframes pausewalk { 0%,10% { opacity:0; transform:translateX(2px) scaleX(1); } 11% { opacity:1; transform:translateX(2px) scaleX(1); } 33%,37% { opacity:1; transform:translateX(92px) scaleX(1); } 38% { opacity:1; transform:translateX(92px) scaleX(-1); } 58%,68% { opacity:1; transform:translateX(46px) scaleX(-1); } 69%,100% { opacity:0; transform:translateX(46px) scaleX(-1); } }
@keyframes pausecarry { 0%,37% { opacity:0; } 38%,60% { opacity:1; } 61%,100% { opacity:0; } }
@keyframes pauseopen { 0%,60% { opacity:0; transform:scaleX(.15); } 66%,100% { opacity:1; transform:scaleX(1); } }
@keyframes pausesit { 0%,68% { opacity:0; } 70%,100% { opacity:1; } }
@keyframes pauseleg { from { transform:rotate(-20deg); } to { transform:rotate(20deg); } }
@keyframes pausenote { 0% { opacity:0; transform:translate(0,2px); } 20% { opacity:1; } 100% { opacity:0; transform:translate(10px,-22px); } }
.road.parked.sat .crossman, .road.parked.sat .foldchair, .road.parked.sat .walker { animation:none; opacity:0; }
.road.parked.sat .chairopen, .road.parked.sat .sitter, .road.parked.sat .helmetdown { animation:none; opacity:1; transform:none; }
.road.parked.sat .pnote { animation-delay:0s; } .road.parked.sat .pausescene g:nth-last-of-type(2) .pnote { animation-delay:.9s; } .road.parked.sat .pausescene g:nth-last-of-type(1) .pnote { animation-delay:1.8s; }
/* Weiter nach der Pause: aufstehen, Stuhl wegwerfen, zum Motorrad, aufsteigen. 2,6 Sekunden, dann fährt er. */
.road.resumed .crossman { animation:backcross 2.6s linear forwards; }
.road.resumed .sitter { animation:backsit 2.6s linear forwards; opacity:1; }
.road.resumed .helmetdown { animation:backhelmet 2.6s linear forwards; opacity:1; }
.road.resumed .chairopen { transform-origin:26px 67px; animation:backthrow 2.6s ease-out forwards; opacity:1; }
.road.resumed .walker { animation:backwalk 2.6s linear forwards; }
.road.resumed .carry, .road.resumed .foldchair, .road.resumed .pnote { animation:none; opacity:0; }
@keyframes backcross { 0%,84% { opacity:0; } 85%,100% { opacity:1; } }
@keyframes backsit { 0%,7% { opacity:1; } 8%,100% { opacity:0; } }
@keyframes backhelmet { 0%,80% { opacity:1; } 81%,100% { opacity:0; } }
@keyframes backthrow { 0%,14% { opacity:1; transform:none; } 50% { opacity:1; transform:translate(95px,-75px) rotate(540deg); } 56%,100% { opacity:0; transform:translate(120px,-90px) rotate(720deg); } }
@keyframes backwalk { 0%,7% { opacity:0; transform:translateX(46px) scaleX(1); } 8%,36% { opacity:1; transform:translateX(46px) scaleX(1); } 38% { opacity:1; transform:translateX(46px) scaleX(-1); } 82% { opacity:1; transform:translateX(2px) scaleX(-1); } 84%,100% { opacity:0; transform:translateX(2px) scaleX(-1); } }
@media (prefers-reduced-motion:reduce) { .road.parked .crossman, .foldchair, .walker { animation:none; opacity:0; } .chairopen, .sitter, .helmetdown { animation:none; opacity:1; transform:none; } .pnote { animation:none; } }
@media (max-width:640px) { .road { height:8rem; } .roadbike { width:6.2rem; left:calc((100% - 10rem)*var(--p) + .8rem); } .goalflag { width:2.1rem; height:3rem; } .goaltext { bottom:3.95rem; } }
@media (prefers-reduced-motion:reduce) { .roadfar, .roadnear, .roadbase, .road .bwheel, .crossbike, .crossbody, .crossman, .flagcloth, .dust i { animation:none; } .roadbike { transition:none; } }
.myprojects { margin-bottom:1rem; }
.myprojects .eyebrow { margin:0 0 .4rem; }
.mygrid { display:grid; gap:.5rem; grid-template-columns:repeat(auto-fill,minmax(min(265px,100%),1fr)); }
.mycard { display:flex; flex-direction:column; justify-content:space-between; gap:.4rem; padding:.55rem .7rem; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.mycard.on { border-color:var(--acc); box-shadow:inset 0 0 0 1px var(--acc); }
.myname { display:flex; flex-direction:column; min-width:0; }
.myname span { font-size:.78rem; color:var(--muted); }
.myfoot { display:flex; align-items:center; gap:.7rem; font-size:.82rem; }
.myfoot span { white-space:nowrap; }
.myfoot form { margin:0 0 0 auto; }
.myfoot button.stop { background:var(--bad); color:#fff; }
.zcal { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:.7rem; margin-bottom:1rem; }
.zhead { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; margin-bottom:.5rem; }
.zhead h2.sec { margin:0; font-size:1.05rem; font-weight:600; min-width:9rem; text-align:center; }
.zsum { margin-left:auto; font-weight:600; }
.zgrid { display:grid; grid-template-columns:2.1rem repeat(7,minmax(0,1fr)); gap:2px; }
.zwd { font-size:.72rem; font-weight:600; color:var(--muted); text-align:center; padding:.2rem 0; }
.zkw { display:flex; align-items:center; justify-content:center; font-size:.72rem; font-weight:600; color:var(--muted); text-decoration:none; border-radius:6px; }
.zkw.on { background:var(--acc); color:#fff; }
.zday { display:flex; flex-direction:column; min-height:3.1rem; padding:.2rem .3rem; border-radius:6px; background:#f4f7f6; color:var(--ink); text-decoration:none; font-size:.8rem; overflow:hidden; }
.zday.other { opacity:.45; }
.zday.today { box-shadow:inset 0 0 0 2px var(--acc); }
.zday.work { background:#e3eaf3; }
.zday b { font-weight:600; } .zday span { font-size:.76rem; font-weight:600; color:var(--acc); } .zday i { font-style:normal; font-size:.64rem; color:#0b6e6e; }

/* Kalender */
.cal { margin:.4rem 0 1rem; }
.calhead { display:flex; align-items:center; gap:.6rem; margin-bottom:.5rem; flex-wrap:wrap; }
.calhead h3 { margin:0; min-width:11rem; text-align:center; }
.calkey { margin-left:auto; font-size:.8rem; color:#5a6878; } .calkey i { display:inline-block; width:.7rem; height:.7rem; border-radius:50%; margin:0 .25rem 0 .7rem; vertical-align:middle; }
.calgrid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:1px; background:#dfe4ea; border:1px solid #dfe4ea; border-radius:10px; overflow:hidden; }
.calwd { background:#eef2f6; padding:.3rem; text-align:center; font-size:.78rem; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:#5a6878; }
.calday { background:#fff; min-height:6.6rem; padding:.2rem .3rem; display:flex; flex-direction:column; gap:2px; min-width:0; }
.calday.other { background:#f6f8fa; } .calday.other .calnum { color:#a6b0bb; }
.calday.we { background:#fbfcfb; }
.calday.today { box-shadow:inset 0 0 0 2px var(--acc); }
.calday[data-tag] { cursor:pointer; }
.calday[data-tag]:hover { background:#eef2f7; }
.calday.sel { background:#e3eaf3; box-shadow:inset 0 0 0 2px #0b6e6e; }
dialog.tagmenu { border:0; border-radius:10px; padding:1rem 1.1rem; width:min(26rem, calc(100vw - 2rem)); box-shadow:0 12px 40px rgba(0,0,0,.25); }
dialog.tagmenu::backdrop { background:rgba(10,25,45,.35); }
.tagmenu-kopf { display:flex; justify-content:space-between; align-items:center; gap:.5rem; margin-bottom:.5rem; }
.tagmenu-kopf h3 { margin:0; color:var(--acc); }
.tagmenu-liste { display:flex; flex-direction:column; gap:.3rem; margin-bottom:.8rem; max-height:40vh; overflow:auto; }
.tagmenu-liste a { display:flex; align-items:flex-start; gap:.4rem; text-decoration:none; color:inherit; padding:.35rem .5rem; border-left:4px solid var(--c,#24476b); background:#f6f8fa; border-radius:4px; }
.tagmenu-liste .ico { color:var(--c,#24476b); flex:none; }
.tagmenu-liste p { margin:0; }
.tagmenu-neu { display:flex; flex-direction:column; gap:.5rem; border-top:1px solid var(--line); padding-top:.7rem; }
.tagmenu-neu input[name=title] { width:100%; }
.tagmenu-zeit { display:flex; gap:.5rem; }
.tagmenu-zeit label { flex:1; }
.tagmenu-links { margin:.7rem 0 0; font-size:.88rem; }
.calnum { align-self:flex-end; font-size:.8rem; font-weight:600; color:#333f4c; text-decoration:none; padding:0 .3rem; border-radius:99px; }
.calday.today .calnum { background:var(--acc); color:#fff; }
.calitem { display:flex; align-items:center; gap:.2rem; font-size:.76rem; line-height:1.25; padding:.1rem .35rem; border-radius:4px; color:#fff; background:var(--c,#24476b); text-decoration:none; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.calitem .ico { width:.95rem; height:.95rem; background:none; margin:0; color:#fff; flex:none; } .calitem .ico svg { width:.9rem; height:.9rem; }
.calitem small { opacity:.9; }
.calmore { font-size:.72rem; color:#5a6878; text-decoration:none; }
.fico { width:1rem; height:1rem; vertical-align:-.15em; margin-right:.3rem; }
.card.alert { border-left-width:6px; }
.card.alert.warn { border-color:#f0b429; background:#fffaf0; }
@media (max-width:760px) { .calday { min-height:3.6rem; } .calitem { font-size:.65rem; } .calkey { display:none; } }

/* Belege */
.shot { margin-bottom:1rem; }
.shotbtn { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.4rem; min-height:8.5rem; padding:1rem; border-radius:10px; background:var(--acc); color:#fff; text-align:center; cursor:pointer; font-size:1rem; }
.shotbtn .ico { background:rgba(255,255,255,.16); color:#fff; margin:0; }
.shotbtn img { max-height:13rem; max-width:100%; border-radius:6px; }
.shotalt { display:block; text-align:center; font-size:.85rem; margin:.45rem 0 .7rem; color:var(--acc); text-decoration:underline; cursor:pointer; }
.shotlabel { font-weight:600; margin:.4rem 0; }
.kindgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(7.6rem,1fr)); gap:.4rem; margin-bottom:.7rem; }
.kindtile { position:relative; display:flex; flex-direction:column; align-items:center; gap:.2rem; padding:.55rem .2rem; border:1px solid var(--line); border-radius:8px; font-size:.8rem; text-align:center; cursor:pointer; color:var(--ink); }
.kindtile input { position:absolute; opacity:0; }
.kindtile .ico { margin:0; }
.kindtile:has(input:checked) { border-color:var(--acc); box-shadow:inset 0 0 0 1px var(--acc); font-weight:600; }
.kindtile:has(input:checked) .ico { background:var(--acc); color:#fff; }
.kindtile:has(input:focus-visible) { outline:2px solid var(--acc2); outline-offset:1px; }
.shotsave { width:100%; margin-top:.7rem; padding:.8rem; }
.receiptgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(15rem,100%),1fr)); gap:.5rem; }
.receipt { display:flex; gap:.6rem; padding:.5rem; background:var(--card); border:1px solid var(--line); border-radius:8px; color:var(--ink); text-decoration:none; }
.receipt:hover { border-color:var(--acc2); }
.receipt img { width:4rem; height:4rem; object-fit:cover; border-radius:6px; flex:none; background:#eef1f5; }
.receiptview { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:1rem; align-items:start; }
.receiptview img { width:100%; border-radius:8px; border:1px solid var(--line); }
.minithumb { width:5rem; height:5rem; object-fit:cover; border-radius:6px; border:1px solid var(--line); display:block; }
.banner.ok { background:#e3ecf5; border-color:#3a6c9c; color:#1d3a58; }
@media (max-width:760px) { .receiptview { grid-template-columns:1fr; } }

/* Finanzen und Rechnungen */
.plainhead { margin:0 0 .6rem; font-size:1.05rem; }
.pie { display:grid; grid-template-columns:minmax(8rem,10rem) minmax(0,1fr); gap:1rem; align-items:center; }
.pie svg { width:100%; display:block; }
.pie path { stroke:#fff; stroke-width:1; }
.pie path:hover { opacity:.82; }
.pielegend { border:0; font-size:.85rem; }
.pielegend td { padding:.2rem .3rem; font-size:.85rem; }
.pielegend i { display:inline-block; width:.7rem; height:.7rem; border-radius:3px; margin-right:.35rem; vertical-align:-.05em; }
.linefields { display:grid; grid-template-columns:minmax(10rem,1fr) 4.5rem 4.5rem 6rem auto; gap:.3rem; align-items:center; min-width:30rem; }
.linefields input { width:100%; }
.actionrow { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; margin:1rem 0; }
.actionrow form { margin:0; }
.grid > .card { min-width:0; }
@media (max-width:1000px) { .pie { grid-template-columns:1fr; } .pie svg { max-width:11rem; margin:0 auto; } }

.kundenkopf { display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; margin-bottom:.6rem; }
.kundenkopf h1 { margin:0; }
.kundenkopf img { max-height:3.5rem; max-width:10rem; object-fit:contain; }
.talk { padding:.6rem 0; border-top:1px solid var(--line); }
.talkhead { display:flex; flex-wrap:wrap; align-items:center; gap:.2rem .7rem; } .talkhead .muted { font-size:.82rem; } .talkhead form { margin-left:auto; }
.talktext { margin:.3rem 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.kundenname { display:flex; align-items:center; gap:.6rem; }
.kundenlogo { flex:0 0 3.5rem; height:1.4rem; } .kundenlogo img { display:block; width:100%; height:100%; object-fit:contain; }

.artikelname { display:flex; align-items:center; gap:.6rem; min-width:11rem; }
.artikelbild { flex:none; width:2.25rem; height:2.25rem; object-fit:contain; border-radius:6px; }
.artikelkopf .ico { margin:0; flex:none; }
.arttitel { margin:0 0 .8rem; }
.filterleiste { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem 1rem; margin:0 0 1rem; }
.filterleiste .artsuche { margin-left:auto; flex:1 1 15rem; max-width:26rem; flex-wrap:nowrap; }
.filterleiste .artsuche input { flex:1; min-width:0; width:auto; }
.filterleiste .artsuche.breit { flex:1 1 20rem; max-width:36rem; flex-wrap:wrap; } .filterleiste .artsuche.breit input { min-width:10rem; } .filterleiste .artsuche select { flex:none; width:auto; max-width:11rem; }
.auswahl { position:relative; flex:0 1 20rem; min-width:min(13rem,100%); }
.artkachel .spaet { font-style:normal; color:var(--warn); font-weight:600; }
.titelico { margin:0 .55rem 0 0 !important; vertical-align:middle; }
summary .titelico { width:30px; height:30px; } summary .titelico svg { width:17px; height:17px; }
/* Rechner auf der Artikelseite: Stückzahl rein, Zeit raus */
.zeitrechner { display:flex; flex-wrap:wrap; align-items:center; gap:.8rem 1.4rem; }
.zeitrechner h3 { margin:0; display:flex; align-items:center; gap:.5rem; font-size:1.05rem; flex-basis:100%; }
.zeitrechner h3 .ico { margin:0; }
.zeitrechner label { display:flex; flex-direction:column; font-size:.85rem; color:var(--muted); }
.zeitrechner input { width:7rem; font-size:1.2rem; font-weight:700; }
.rechnerwerte { display:flex; flex-wrap:wrap; gap:.6rem 1.6rem; }
.rechnerwerte div { display:flex; flex-direction:column; }
.rechnerwerte b { font-size:1.35rem; color:var(--acc); font-variant-numeric:tabular-nums; }
.rechnerwerte span { font-size:.85rem; color:var(--muted); }
.auswahl > summary { list-style:none; display:flex; align-items:center; gap:.7rem; cursor:pointer; background:var(--card); border:1px solid var(--line); border-radius:8px; padding:.45rem .8rem; }
.auswahl > summary::-webkit-details-marker { display:none; }
.auswahl > summary:hover, .auswahl[open] > summary { border-color:var(--acc); }
.auswahl > summary > span:not(.kz) { display:flex; flex-direction:column; min-width:0; flex:1; line-height:1.25; }
.auswahl > summary small { color:var(--muted); font-size:.75rem; }
.auswahl > summary b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.auswahl .pfeil { flex:none; width:.55rem; height:.55rem; border-right:2px solid var(--acc); border-bottom:2px solid var(--acc); transform:rotate(45deg); margin:-.25rem .2rem 0; }
.auswahl[open] .pfeil { transform:rotate(-135deg); margin-top:.25rem; }
.auswahl-liste { position:absolute; z-index:30; left:0; right:0; top:calc(100% + .3rem); background:var(--card); border:1px solid var(--line); border-radius:8px; box-shadow:0 8px 24px rgb(0 0 0 / .12); padding:.3rem; max-height:22rem; overflow:auto; }
.auswahl-liste a { display:flex; align-items:center; gap:.7rem; padding:.45rem .6rem; border-radius:6px; color:var(--ink); text-decoration:none; }
.auswahl-liste a:hover { background:var(--bg); }
.auswahl-liste a.on { background:var(--acc); color:#fff; } .auswahl-liste a.on em { color:#fff; }
.auswahl-liste b { flex:1; min-width:0; font-weight:600; }
.auswahl-liste em { font-style:normal; color:var(--muted); font-variant-numeric:tabular-nums; }
.kz { flex:none; width:3.4rem; height:2rem; display:flex; align-items:center; justify-content:center; background:#fff; border:1px solid var(--line); border-radius:6px; overflow:hidden; }
.kz img { width:100%; height:100%; object-fit:contain; padding:.15rem; }
.kz i { font-style:normal; font-weight:700; color:var(--acc); font-size:.85rem; }
.listhead { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.4rem 1rem; margin-bottom:.8rem; }
.listhead h1 { margin:0; }
.listhead input { width:min(17rem,100%); flex:1; }
.bereiche { display:grid; gap:.6rem; grid-template-columns:repeat(auto-fit,minmax(min(14rem,100%),1fr)); margin:0 0 1rem; }
.bereich { display:flex; align-items:center; gap:.8rem; background:var(--card); border:1px solid var(--line); border-radius:8px; padding:.8rem 1rem; text-decoration:none; color:var(--ink); }
.bereich .ico { width:2.6rem; height:2.6rem; margin:0; flex:none; } .bereich .ico svg { width:1.7rem; height:1.7rem; }
.bereich span { display:flex; flex-direction:column; min-width:0; } .bereich b { font-size:1.05rem; } .bereich small { color:var(--muted); }
.bereich em { font-style:normal; color:var(--warn); font-weight:600; }
a.bereich:hover { border-color:var(--acc2); }
.bereich.on { border-color:var(--acc); box-shadow:inset 0 0 0 1px var(--acc); } .bereich.on .ico { background:var(--acc); color:#fff; }
.subtiles { display:grid; gap:.5rem; grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr)); margin-bottom:1rem; }
.subtile { display:flex; align-items:center; gap:.6rem; background:var(--card); border:1px solid var(--line); border-radius:6px; padding:.5rem .7rem; text-decoration:none; color:var(--ink); font-size:.9rem; min-width:0; }
.subtile>span { flex:1; min-width:0; } .subtile>b { font-weight:500; color:var(--muted); text-align:right; }
.subtile>b.warn { color:var(--warn); font-weight:600; }
a.subtile:hover { border-color:var(--acc2); }
.subtile.on { border-color:var(--acc); box-shadow:inset 0 0 0 1px var(--acc); } .subtile.on .ico { background:var(--acc); color:#fff; }
.subtile .ico { margin:0; flex:none; }
.subwide { grid-column:1/-1; flex-wrap:wrap; gap:.3rem .8rem; }
.subwide .sublabel { flex:none; white-space:nowrap; }
.subselect { flex:1 1 12rem; margin:0; min-width:0; } .subselect select { width:100%; }
.movekind { max-width:100%; } .movekind select { max-width:100%; }

/* Notizen, Arbeitsanweisungen, Aufgaben */
.card>details>summary { cursor:pointer; }
.note { padding:.6rem 0 .3rem; border-top:1px solid var(--line); margin-top:.6rem; overflow-wrap:anywhere; }
.note.order { padding:.6rem .7rem; border:1px solid var(--line); border-left:4px solid var(--acc); border-radius:6px; }
.notepics { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.4rem; }
.notepics img { display:block; width:6.5rem; height:6.5rem; object-fit:cover; border-radius:6px; border:1px solid var(--line); }
.notepics form { display:flex; flex-direction:column; gap:.25rem; align-items:flex-start; }
.noteopts { display:flex; flex-wrap:wrap; gap:.5rem; align-items:end; width:100%; }
.noteopts label { min-width:0; max-width:100%; }
.noteopts input[type=file] { max-width:100%; }
.noteedit { font-size:.85rem; margin-bottom:.3rem; } .noteedit>summary { cursor:pointer; color:var(--acc2); }
/* Verlauf bei den Finanzen */
.verlaufkopf { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.4rem 1.5rem; margin-bottom:.6rem; }
.verlaufkopf div:last-child { text-align:right; }
.verlaufkopf span { display:block; font-size:.85rem; color:var(--muted); font-weight:600; }
.verlaufkopf b { font-size:1.5rem; font-weight:600; }
.verlauf i, .verlaufinfo i { display:inline-block; width:.65rem; height:.65rem; border-radius:50%; margin-right:.35rem; }
.verlaufbild { position:relative; }
.verlaufbild svg { display:block; width:100%; height:auto; overflow:visible; }
.gitter { stroke:var(--line); stroke-width:1; }
.achse { font-size:12px; fill:var(--ink); }
.lot { stroke:var(--ink); stroke-width:1; stroke-dasharray:4 3; opacity:0; }
.punkt { stroke:#fff; stroke-width:2; opacity:0; }
.treffer { fill:transparent; cursor:pointer; }
.verlaufinfo { position:absolute; top:.2rem; min-width:11rem; padding:.45rem .6rem; background:var(--card); border:1px solid var(--line); border-radius:6px; box-shadow:0 4px 12px rgba(0,0,0,.12); pointer-events:none; font-size:.85rem; }
.verlaufinfo p { display:flex; align-items:center; margin:.15rem 0 0; color:var(--muted); }
.verlaufinfo span { margin-left:auto; padding-left:.8rem; color:var(--ink); font-weight:600; white-space:nowrap; }
@media (max-width:640px) { .achse { font-size:25px; } .achse.selten { display:none; } .verlaufkopf b { font-size:1.15rem; } }

.filterzeile { display:flex; flex-wrap:wrap; gap:.5rem; align-items:end; }
.filterzeile select { max-width:14rem; }
.balkenzelle { position:relative; min-width:7rem; }
.balken { display:block; height:.7rem; margin-top:.35rem; border-radius:0 4px 4px 0; background:var(--acc2); }
.balkenwert { display:block; font-size:.78rem; color:var(--ink); }
.balken.balken-aus { background:#8a9593; margin-top:.2rem; }
.verkaufsplan { display:grid; gap:4px; align-items:end; min-width:min(100%, 30rem); }
.verkaufsplan .vm { display:flex; flex-direction:column; align-items:center; gap:2px; }
.verkaufsplan .saeule { display:flex; flex-direction:column; justify-content:flex-end; width:60%; height:7rem; }
.verkaufsplan .saeule i { display:block; width:100%; background:#24476b; border-radius:4px 4px 0 0; min-height:2px; }
.verkaufsplan .leer .saeule i { background:#e3e8e6; }
.verkaufsplan small { font-size:.7rem; line-height:1.1; } .verkaufsplan .wert { min-height:.8rem; font-weight:600; }
.jahrbalken { display:flex; flex-direction:column; gap:.35rem; }
.jb { display:grid; grid-template-columns:3rem 1fr minmax(8rem, auto); gap:.6rem; align-items:center; font-size:.88rem; }
.jb-spur { height:.8rem; background:#eef1f4; border-radius:99px; } .jb-spur i { display:block; height:100%; background:#24476b; border-radius:99px; min-width:4px; }
.jb-wert { text-align:right; font-variant-numeric:tabular-nums; }
.kundenartikel { display:flex; align-items:center; gap:.7rem; padding:.35rem 0; border-bottom:1px solid var(--line); text-decoration:none; color:var(--ink); }
.kundenartikel:last-of-type { border-bottom:0; }
.kundenartikel img, .kaleer { width:3rem; height:3rem; object-fit:cover; border-radius:6px; flex:none; background:#eef1f4; }
.kundenartikel span { display:flex; flex-direction:column; flex:1; min-width:0; } .kundenartikel em { font-style:normal; font-weight:600; }
.kundenartikel:hover b { color:var(--acc); }
.profil { display:grid; grid-template-columns:minmax(14rem, 22rem) 1fr; gap:1.4rem; align-items:start; margin:0 0 1.2rem; }
.profilbild img { display:block; width:100%; aspect-ratio:1; object-fit:cover; border-radius:12px; border:1px solid var(--line); background:#fff; }
.profilleer { aspect-ratio:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.6rem; border:1px dashed var(--line); border-radius:12px; background:var(--card); color:var(--muted); text-align:center; padding:1rem; font-size:.85rem; }
.profilleer .ico { width:5rem; height:5rem; margin:0; } .profilleer .ico svg { width:3rem; height:3rem; }
.piktogross { border-style:solid; } .piktogross .ico { width:9rem; height:9rem; } .piktogross .ico svg { width:6rem; height:6rem; }
.profilinfo { min-width:0; }
.profilinfo h1 { margin:0 0 .2rem; }
.profilnr { margin:0 0 .9rem; color:var(--muted); display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; }
.profilzahlen { display:grid; grid-template-columns:repeat(auto-fill, minmax(9rem, 1fr)); gap:.5rem; margin:0 0 1rem; }
.profilzahlen div { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:.55rem .7rem; display:flex; flex-direction:column; }
.profilzahlen b { font-size:1.15rem; } .profilzahlen span { font-size:.8rem; color:var(--muted); }
.stueckzeile { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; }
.stueckzeile form { display:inline-flex; gap:.3rem; margin:0; } .stueckzeile input { width:3.5rem; padding:.15rem .3rem; }
@media (max-width:700px) { .profil { grid-template-columns:1fr; } .profilbild { max-width:26rem; } }
.artkacheln { display:grid; gap:.7rem; grid-template-columns:repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); margin:0 0 1rem; }
.artkachel { display:flex; align-items:center; gap:.9rem; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:1rem 1.1rem; text-decoration:none; color:var(--ink); min-width:0; }
.artkachel .ico { display:inline-grid; place-items:center; width:3.2rem; height:3.2rem; margin:0; flex:none; } .artkachel .ico svg { width:2rem; height:2rem; }
.artkachel span { display:flex; flex-direction:column; flex:1; min-width:0; } .artkachel b { font-size:1.1rem; overflow-wrap:break-word; hyphens:auto; } .artkachel small { color:var(--muted); }
.artkachel em { flex:none; font-style:normal; font-size:1.6rem; font-weight:700; color:var(--acc); }
a.artkachel:hover { border-color:var(--acc2); }
.artkachel.on { border-color:var(--acc); box-shadow:inset 0 0 0 1px var(--acc); } .artkachel.on .ico { background:var(--acc); color:#fff; }
.artwahl { display:grid; grid-template-columns:repeat(auto-fit, minmax(12rem, 1fr)); gap:.6rem; margin-top:.6rem; }
.artwahl-k { display:flex; flex-direction:column; gap:.2rem; padding:.7rem .8rem; border:1px solid var(--line); border-radius:8px; text-decoration:none; color:inherit; }
.artwahl-k:hover { border-color:var(--acc); }
.artwahl-k b { color:var(--acc); }
.artwahl-k span { font-size:.85rem; color:var(--muted); }
.badge.art-eigenbau { background:var(--acc); color:#fff; }
.druckt-jetzt { display:flex; flex-direction:column; gap:.35rem; background:#f4f0fb; border:1px solid #d9cdef; border-left:5px solid #6d4bb3; border-radius:8px; padding:.7rem .9rem; margin:0 0 .8rem; color:var(--ink); text-decoration:none; }
.druckt-kopf { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
.druckt-kopf .ico { margin:0; }
.fortschritt { display:block; height:.7rem; background:#e4dcf3; border-radius:99px; overflow:hidden; }
.fortschritt i { display:block; height:100%; background:#6d4bb3; border-radius:99px; transition:width .6s; }
.druckt-zeit { font-size:.9rem; }
.statusbalken { display:flex; gap:2px; height:1rem; border-radius:6px; overflow:hidden; background:#eef1f4; }
.statusbalken i { display:block; height:100%; }
.s-done { background:#24476b; } .s-printing { background:#6d4bb3; } .s-planned { background:#7fa6d6; }
.legende { display:flex; flex-wrap:wrap; gap:.4rem 1rem; margin:.5rem 0 .8rem; font-size:.88rem; }
.legende span { display:inline-flex; align-items:center; gap:.35rem; }
.legende i { width:.8rem; height:.8rem; border-radius:3px; display:inline-block; }
.legende .warn { color:var(--warn); font-weight:600; }
.druckplan { display:grid; grid-template-columns:repeat(20, minmax(2.1rem, 1fr)); gap:4px; align-items:end; min-width:44rem; }
.druckplan .tag { display:flex; flex-direction:column; align-items:center; gap:2px; text-decoration:none; color:var(--ink); padding:2px 0; border-radius:4px; }
.druckplan .tag.we { background:#f6f8fa; }
.druckplan .tag.heute { box-shadow:inset 0 0 0 2px var(--acc); }
.druckplan .tag:hover { background:#eef2f7; }
.druckplan .saeule { display:flex; flex-direction:column-reverse; justify-content:flex-start; gap:2px; width:62%; height:7.5rem; }
.druckplan .saeule i { display:block; width:100%; border-radius:4px 4px 0 0; min-height:3px; }
.druckplan .saeule i + i { border-radius:4px 4px 0 0; }
.druckplan small { font-size:.7rem; line-height:1.1; }
.druckplan .wert { min-height:.8rem; color:var(--muted); }
.zeilen-ek { display:block; margin:0 0 .25rem; }
.statusform { margin:0; }
select.statuswahl { font-size:.82rem; padding:.2rem 1.6rem .2rem .55rem; border-radius:99px; border:1px solid var(--line); background-color:#fff; font-weight:600; min-height:0; }
select.statuswahl.st-bezahlt { background-color:#e3ecf5; color:#24476b; border-color:#b7cbe0; }
select.statuswahl.st-offen { background-color:#e8eef6; color:#1f4f8a; border-color:#c4d3e6; }
select.statuswahl.st-ueberfaellig { background-color:#fdf0dc; color:#8a5300; border-color:#efd1a0; }
select.statuswahl.st-storniert { background-color:#eef0ef; color:#5d6b79; }
.statuskarte { align-items:end; }
.zahlbalken { display:flex; flex-direction:column; gap:.3rem; }
.zb { display:grid; grid-template-columns:minmax(6rem, 11rem) 1fr 4.2rem; align-items:center; gap:.6rem; text-decoration:none; color:var(--ink); padding:.15rem .2rem; border-radius:4px; }
.zb:hover { background:#eef2f7; }
.zb-name { font-size:.85rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.zb-spur { position:relative; height:.85rem; background:#eef1f4; border-radius:99px; }
.zb-spur i { display:block; height:100%; border-radius:99px; min-width:4px; }
.zb-spur i.ok, .zl-ok { background:#24476b; }
.zb-spur i.spaet, .zl-spaet { background:#d97706; }
.zb-spur em { position:absolute; top:-.2rem; bottom:-.2rem; width:2px; margin-left:-1px; background:#1f2630; border-radius:1px; }
.zl-ziel { background:#1f2630; width:2px !important; height:.9rem !important; border-radius:1px !important; }
.zb-wert { font-size:.85rem; text-align:right; font-variant-numeric:tabular-nums; }
.zb-wert.warn { color:#8a5300; font-weight:600; }
.legende i.zl-ok, .legende i.zl-spaet { border-radius:3px; }
.tile.warnkachel { border-left:4px solid #d97706; }
.tippliste { display:flex; flex-wrap:wrap; gap:.4rem; }
.tippliste form { margin:0; }
@media (max-width:560px) { .zb { grid-template-columns:5.5rem 1fr 3.6rem; gap:.4rem; } }
.badge.pst-geplant { background:#e8eef6; color:#1f4f8a; }
.badge.pst-druckt { background:#efe9f8; color:#5a3a9a; }
.badge.pst-fertig { background:#e3ecf5; color:#24476b; }
.badge.pst-fehlgeschlagen { background:#fdf0dc; color:#8a5300; }
.badge.pst-abgebrochen { background:#eef0ef; color:#5d6b79; }
.zuordnung { min-width:15rem; }
.zuordnung form { display:inline-flex; flex-wrap:wrap; gap:.3rem; margin:.15rem 0; align-items:end; }
.bankwahl > summary { cursor:pointer; color:var(--acc2); font-size:.85rem; margin-top:.2rem; }
.bankwahl form { display:flex; margin-top:.3rem; }
.zweck { max-width:22rem; font-size:.85rem; overflow-wrap:anywhere; }
b.plus { color:var(--ok); }
tr.row-gewaehlt td { background:#eaf0f7; font-weight:600; }
th a.sortlink { color:#fff; text-decoration:none; white-space:nowrap; }
th a.sortlink:hover, th a.sortlink.on { text-decoration:underline; text-decoration-color:rgba(255,255,255,.6); }

.cardtitle { display:inline-flex; align-items:center; gap:.5rem; vertical-align:middle; }
.cardtitle .ico { margin:0; }
.talktasks { list-style:none; margin:.4rem 0 0; padding:0; }
.talktasks li { display:flex; flex-wrap:wrap; align-items:center; gap:.2rem .7rem; padding:.3rem .5rem; border-left:3px solid var(--acc2); margin-bottom:.25rem; }
.talktasks li.late { background:#fff6dc; border-left-color:#f0b429; }
.talktasks form { margin-left:auto; }
.talkadd { font-size:.85rem; margin-top:.3rem; } .talkadd>summary { cursor:pointer; color:var(--acc2); }
.foldcard > summary { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .6rem; }
.foldcard > summary > .btn { margin-left:auto; }
.foldcard[open] > summary { margin-bottom:.5rem; }
.cardhead { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.4rem; margin-bottom:.5rem; }
.card>.scroll>table { border:0; }
td form select { padding:.2rem .3rem; font-size:.85rem; max-width:7.5rem; }
@media (max-width:640px) { .taskstart { display:none; } }

.step3d { display:block; width:100%; height:460px; border:0; border-radius:6px; }

/* How-To's */
.howtobar { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; margin-bottom:.8rem; }
.hwhead { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; padding:.5rem 0; }
.hwpath { flex:1; min-width:10rem; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.hwbar { position:sticky; top:var(--kopf-h, 0px); z-index:20; display:flex; flex-wrap:wrap; align-items:center; gap:.1rem; padding:.3rem .4rem; background:var(--card); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.hwbar select { width:auto; border:0; background:transparent; font-size:.9rem; padding:.25rem; }
.hwbar button.hwtool { display:grid; place-items:center; width:2rem; height:2rem; padding:0; border:0; border-radius:4px; background:transparent; color:var(--ink); font-size:.95rem; font-weight:400; cursor:pointer; }
.hwbar button.hwtool:hover { background:#eef1f5; }
.hwbar button.hwtool.on { background:#dce5ef; color:var(--acc); }
.hwletter { text-decoration:underline; text-decoration-thickness:3px; text-decoration-color:var(--acc2); }
.hwsep { width:1px; height:1.3rem; margin:0 .3rem; background:var(--line); }
.hwmenu { position:relative; }
.hwpop { display:none; position:absolute; left:0; top:100%; z-index:30; min-width:2.4rem; padding:.25rem; background:var(--card); border:1px solid var(--line); border-radius:6px; box-shadow:0 6px 16px rgba(0,0,0,.14); }
.hwpop.open { display:flex; gap:.15rem; }
.hwpop>button:not(.hwtool):not(.hwswatch) { padding:.3rem .5rem; border:0; border-radius:4px; background:transparent; color:var(--ink); font-size:.86rem; font-weight:400; text-align:left; cursor:pointer; white-space:nowrap; }
.hwpop>button:not(.hwtool):not(.hwswatch):hover { background:#eef1f5; }
.hwswatch { width:1.5rem; height:1.5rem; padding:0; border:1px solid var(--line); border-radius:4px; cursor:pointer; }
.hwemojis { flex-wrap:wrap; width:11rem; }
.hwpage { max-width:50rem; margin:0 auto; padding:1.2rem 0; }
.hwtitle { width:100%; border:0; background:transparent; font-size:2rem; font-weight:500; padding:.2rem 0; outline:0; }
h1.hwread { font-size:2rem; margin:.2rem 0; }
.hwmeta { margin:.1rem 0 1rem; font-size:.84rem; color:var(--muted); }
.hwcontent { line-height:1.6; min-height:12rem; outline:0; overflow-wrap:anywhere; }
.hwcontent h1 { font-size:1.6rem; } .hwcontent h2 { font-size:1.3rem; } .hwcontent h3 { font-size:1.1rem; }
.hwcontent table { width:100%; border:0; border-radius:0; overflow:visible; border-collapse:collapse; margin:.6rem 0; background:var(--card); }
.hwcontent th, .hwcontent td { min-width:3rem; padding:.45rem .6rem; border:1px solid var(--line); text-align:left; vertical-align:top; }
.hwcontent th { background:var(--acc); color:#fff; font-weight:600; }
.hwcontent img { max-width:100%; height:auto; border-radius:6px; }
.hwcontent blockquote { margin:.6rem 0; padding:.2rem .9rem; border-left:3px solid var(--line); color:var(--muted); }
.hwcontent pre { padding:.7rem; background:#eef1f5; border-radius:6px; overflow:auto; font-size:.88rem; }
.hwcontent a { color:#1f5fbf; }
.hwcontent .panel { margin:.6rem 0; padding:.3rem .9rem; border-radius:6px; background:#e8f0fb; }
.hwcontent .panel-warn { background:#fdf3dc; } .hwcontent .panel-good { background:#e3eaf3; } .hwcontent .panel-bad { background:#fbe6e4; }
.hwactions { display:flex; flex-wrap:wrap; gap:.4rem; justify-content:flex-end; }
.hwtags { display:block; margin-bottom:.6rem; font-size:.82rem; color:var(--muted); }
.hwtags select, .hwtags input { display:block; margin-top:.15rem; } .hwtags input { width:100%; }
.linkbox { width:min(28rem,calc(100vw - 2rem)); padding:1rem; border:1px solid var(--line); border-radius:10px; box-shadow:0 12px 32px rgba(0,0,0,.2); }
.linkbox::backdrop { background:rgba(0,0,0,.25); }
.linkbox label { display:block; margin-bottom:.6rem; font-size:.84rem; font-weight:600; }
.linkbox input { width:100%; margin-top:.2rem; }
.linklist { max-height:16rem; overflow:auto; }
.linkhead { margin:.6rem 0 .2rem; font-size:.78rem; color:var(--muted); }
.linkrow { display:block; width:100%; padding:.4rem .5rem; border:0; border-radius:6px; background:transparent; color:var(--ink); font-weight:400; text-align:left; cursor:pointer; }
.linkrow:hover { background:#eef1f5; }
.linkrow b { display:block; font-weight:600; } .linkrow span { font-size:.76rem; color:var(--muted); }
.linkbtns { display:flex; justify-content:flex-end; gap:.4rem; margin-top:.6rem; }

/* Abschnitte einklappen */
.foldhead { position:relative; padding-left:2.7rem; cursor:pointer; }
.blockfold { position:absolute; top:50%; left:0; display:grid; place-items:center; width:2.2rem; height:2.2rem; margin-top:-1.1rem; padding:0; border:1px solid var(--line); border-radius:6px; background:var(--card); color:var(--acc); cursor:pointer; }
.blockfold:hover { background:#eef1f5; color:var(--acc); }
.blockfold svg { width:1.15rem; height:1.15rem; transition:transform .15s; }
.folded>.foldhead .blockfold svg { transform:rotate(-90deg); }
.folded>:not(.foldhead) { display:none!important; }
.folded>.foldhead { margin-bottom:0; }
.block.folded, .card.folded { padding-top:.7rem; padding-bottom:.7rem; }
.foldall { float:right; margin:-.25rem 0 0 .6rem; text-transform:none; letter-spacing:0; white-space:nowrap; }
@media print { .folded>:not(.foldhead) { display:revert!important; } }

@media (max-width:640px) {
  th, td { padding:.45rem .5rem; font-size:.9rem; }
  main { margin-top:.8rem; }
  .hero h1 { font-size:2rem; }
  header { flex-wrap:wrap; }
  header nav { order:3; flex:0 0 100%; }
  header .user { margin-left:auto; }
}
@media (max-width:760px) { .block { padding:.8rem; } }

/* Formular in Abschnitte geteilt (Druckauftrag) */
.formteil { border:1px solid var(--line); border-radius:8px; padding:.5rem .9rem .9rem; margin:0; min-width:0; align-self:stretch; width:100%; box-sizing:border-box; }
.formteil legend { font-weight:700; color:var(--acc); padding:0 .4rem; }
form:not(:has(.artikelwahl option[value="neu"]:checked)) .nurneu { display:none; }

/* 3D-Druck: Drucker als Karten mit Frontansicht */
.druckerreihe { display:grid; gap:.8rem; grid-template-columns:repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); margin:0 0 1rem; }
.druckerkarte { display:flex; flex-direction:column; gap:.7rem; align-items:stretch; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:.9rem 1rem; color:var(--ink); text-decoration:none; min-width:0; }
a.druckerkarte:hover { border-color:var(--acc2); }
.druckerkarte.on { border-color:var(--acc); box-shadow:inset 0 0 0 1px var(--acc); }
.druckerbild { flex:none; display:flex; justify-content:center; background:#eef2f6; border-radius:8px; padding:.8rem 0 .5rem; } .druckersvg { display:block; height:11rem; width:auto; }
.druckerinfo { display:flex; flex-direction:column; gap:.25rem; min-width:0; flex:1; }
.druckerkopf { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.druckerkopf b { font-size:1.25rem; }
.dstatus { font-size:.78rem; font-weight:700; padding:.1rem .55rem; border-radius:999px; }
.dstatus.druckt { background:var(--acc); color:#fff; } .dstatus.frei { background:#e3eaf3; color:var(--acc); }
.djob { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.druckerinfo .fortschritt { display:block; height:.45rem; border-radius:999px; background:#e3eaf3; overflow:hidden; }
.druckerinfo .fortschritt i { display:block; height:100%; background:var(--acc); }
.druckerzahl { margin-top:.2rem; font-size:.85rem; color:var(--muted); } .druckerzahl b { color:var(--ink); }
.druckzahlen { display:grid; gap:.6rem; grid-template-columns:repeat(auto-fit, minmax(min(8.5rem, 100%), 1fr)); margin:0 0 1rem; }
.druckzahlen > div { display:flex; align-items:center; gap:.7rem; background:var(--card); border:1px solid var(--line); border-radius:8px; padding:.6rem .9rem; }
.druckzahlen b { font-size:1.3rem; color:var(--acc); } .druckzahlen span { font-size:.85rem; color:var(--muted); }
@media (max-width:420px) { .druckersvg { height:8.5rem; } }
form:not(:has(select[name="kind"] option[value="3D-Drucker"]:checked)) .nurdrucker { display:none; }

/* Geräteseite: Foto, LAN-Modus, Hotends */
.geraetbild { display:flex; justify-content:center; align-items:center; background:#eef2f6; border-radius:8px; padding:1rem; min-height:12rem; }
.geraetbild img { max-width:100%; max-height:22rem; object-fit:contain; border-radius:6px; }
.geraetbild .druckersvg { height:14rem; }
.code { font-family:ui-monospace, Consolas, monospace; letter-spacing:.08em; }
.verdeckt summary { cursor:pointer; color:var(--acc); }
.hotends { display:flex; flex-wrap:wrap; gap:.35rem; } .hotend { font-size:.78rem; padding:.1rem .5rem; border-radius:999px; background:#e3eaf3; color:var(--acc); font-weight:600; }
.hotend.ersatz { background:transparent; border:1px solid var(--line); color:var(--muted); font-weight:500; }
.druckerbild img.druckerfoto { display:block; height:11rem; width:100%; object-fit:contain; }
@media (max-width:420px) { .druckerbild img.druckerfoto { height:8.5rem; } }
.druckerbild img.druckerfoto, .geraetbild img { mix-blend-mode:multiply; }      /* weißer Fotorand verschmilzt mit dem hellgrünen Feld */

/* Druckauftrag-Formular: Piktogramm vor jedem Feld, Hinweise unter dem Feld, Felder auf einer Linie */
.formteil { background:#f7faf8; }
.formteil legend { display:flex; align-items:center; gap:.5rem; font-size:1rem; }
.teilico { display:inline-grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--acc); color:#fff; }
.teilico svg { width:17px; height:17px; }
.feldraster { align-items:start; gap:.8rem 1rem; }
.feldraster label { gap:.3rem; }
.feldraster .lt { display:flex; align-items:center; gap:.35rem; font-size:.82rem; font-weight:600; color:var(--ink); }
.fico { width:15px; height:15px; flex:none; color:var(--acc); }
.feldraster .hint { font-size:.75rem; color:var(--muted); line-height:1.3; }
.feldraster .hint a { color:var(--acc); }
.feldraster .breitfeld { grid-column:1 / -1; }
.feldraster input, .feldraster select, .feldraster textarea { background:#fff; }
.dateifeld input[type=file] { padding:.35rem; border:1px dashed var(--acc2); border-radius:6px; background:#fff; font-size:.85rem; }
.druckzahlen p { margin:0; display:flex; flex-direction:column; min-width:0; }
@media (max-width:420px) { .druckzahlen > div { padding:.5rem .6rem; gap:.5rem; } .druckzahlen b { font-size:1.1rem; } .druckzahlen .ico { display:none; } }
.fotobearbeiten { margin-top:1rem; padding-top:.8rem; border-top:1px solid var(--line); }

/* Versteckter Bearbeiten-Kasten: nur über den Knopf oben rechts zu öffnen */
details.zuklapp:not([open]) { display:none; }
details.zuklapp > summary { display:none; }
.zuklapp-kopf { display:flex; align-items:center; justify-content:space-between; gap:.6rem; margin-bottom:.6rem; }
.foldall-platz { display:flow-root; margin:0 0 .6rem; }
.foldall-platz:empty { display:none; }
.foldall-platz .foldall { float:left; margin:0; }      /* über den Abschnitten links, in der Kopfzeile bleibt er rechts */

/* Menüleiste und Unterleiste laufen beim Scrollen oben mit */
.kopf { position:sticky; top:0; z-index:60; box-shadow:0 1px 0 var(--line); }
html { scroll-padding-top:calc(var(--kopf-h, 6rem) + .5rem); }      /* Sprungmarken (#liste usw.) nicht unter der Leiste verstecken */
@media print { .kopf { position:static; } }
form:not(:has(select.taetwahl option[value="neu"]:checked)) .nurneu-t { display:none; }

/* Kundenseite: Logo links, Daten und Ansprechpartner rechts, Umsatz mit Diagrammen darunter */
.kundenbild { min-height:13rem; background:#fff; border:1px solid var(--line); }
.kundenbild img { max-height:14rem; mix-blend-mode:normal; }
.kundenbuchstabe { display:grid; place-items:center; width:8rem; height:8rem; border-radius:50%; background:var(--acc); color:#fff; font-size:3.5rem; font-weight:700; }
.kontaktkopf { margin:1rem 0 .4rem; }
.kontakte { display:grid; gap:.5rem; grid-template-columns:repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); }
.kontakt { display:flex; flex-direction:column; gap:.1rem; padding:.55rem .75rem; border:1px solid var(--line); border-radius:8px; background:var(--card); min-width:0; overflow-wrap:anywhere; }
.kontakt small { font-size:.78rem; } .kontakt span { font-size:.88rem; }
.druckzahlen > a { display:flex; align-items:center; gap:.7rem; background:var(--card); border:1px solid var(--line); border-radius:8px; padding:.6rem .9rem; color:var(--ink); text-decoration:none; }
.druckzahlen > a:hover { border-color:var(--acc2); }
.druckzahlen .spaet { font-style:normal; color:var(--warn); font-weight:600; }
.umsatzgrafik { grid-template-columns:minmax(0, 2fr) minmax(0, 1fr); align-items:start; }
@media (max-width:900px) { .umsatzgrafik { grid-template-columns:minmax(0, 1fr); } }
.plainhead small { font-weight:400; font-size:.78rem; margin-left:.3rem; }
@media (max-width:420px) { .druckzahlen > a { padding:.5rem .6rem; gap:.5rem; } .druckzahlen > a .ico { display:none; } }

/* Kundenkopf wie in der Metorbike-App: grünes Band, runder Kreis mit Logo oder Initialen, Knöpfe rechts, Raster mit Piktogrammen */
.kundenkarte { padding:0; overflow:hidden; }
.kk-band { height:5.5rem; background:var(--acc); }
.kk-kopf { display:flex; flex-wrap:wrap; align-items:center; gap:.8rem 1.2rem; padding:1.2rem 1.2rem 1rem; border-bottom:1px solid var(--line); }
.kk-avatar { flex:none; margin-top:0; width:7rem; height:7rem; border-radius:50%; background:var(--acc); border:1px solid var(--line); display:grid; place-items:center; overflow:hidden; box-shadow:0 1px 4px rgb(0 0 0 / .12); }
.kk-avatar img { width:100%; height:100%; object-fit:contain; background:#fff; padding:.6rem; box-sizing:border-box; }
.kk-avatar span { color:#fff; font-size:2.4rem; font-weight:700; letter-spacing:.02em; }
.kk-name { flex:1 1 14rem; min-width:0; padding-bottom:.2rem; }
.kk-name h1 { margin:0; font-size:1.9rem; line-height:1.15; overflow-wrap:anywhere; }
.kk-name p { margin:.2rem 0 0; }
.kk-knoepfe { display:flex; flex-wrap:wrap; gap:.45rem; align-items:center; padding-bottom:.2rem; }
.bewertung { display:inline-flex; align-items:center; gap:.45rem; }
.sterne { letter-spacing:.05em; font-size:1rem; line-height:1; } .sterne i { font-style:normal; color:#cfd6de; } .sterne i.an { color:var(--acc); }
.bewertung.b-gut { border:1px solid var(--acc2); }
.bewertung.b-schwach { border:1px solid var(--warn); } .bewertung.b-schwach .sterne i.an { color:var(--warn); }
.kk-raster { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(12rem, 100%), 1fr)); gap:1rem 1.4rem; padding:1rem 1.2rem; }
.kk-raster div { display:flex; flex-direction:column; gap:.15rem; min-width:0; }
.kk-raster small, .kk-titel { display:flex; align-items:center; gap:.35rem; font-size:.8rem; color:var(--muted); }
.kk-raster b { font-weight:600; overflow-wrap:anywhere; }
.kk-notiz { margin:0; padding:0 1.2rem 1rem; }
.kk-kontakte { padding:0 1.2rem 1rem; } .kk-titel { margin-bottom:.4rem; }
.kk-bearbeiten { border-top:1px solid var(--line); padding:.8rem 1.2rem; }
.kk-bearbeiten > summary { cursor:pointer; }
@media (max-width:600px) { .kk-avatar { width:5.5rem; height:5.5rem; } .kk-avatar span { font-size:1.9rem; } .kk-name h1 { font-size:1.5rem; } }

/* Unternehmen wie in der Metorbike-App: grünes Band mit Kennzahlen und Logo, darunter Kacheln */
.firmenband { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1.2rem 2rem; background:var(--acc); color:#fff; border-radius:10px; padding:1.6rem 1.8rem; margin:0 0 1rem; }
.fb-zeile { margin:0 0 .4rem; font-size:.75rem; letter-spacing:.16em; text-transform:uppercase; color:#cfdced; }
.firmenband h1 { margin:0 0 .9rem; color:#fff; font-size:2.4rem; }
.fb-zahlen { display:flex; flex-wrap:wrap; gap:.6rem 2rem; }
.fb-zahlen a { display:flex; flex-direction:column; color:#fff; text-decoration:none; }
.fb-zahlen b { font-size:1.8rem; font-weight:600; line-height:1.1; } .fb-zahlen span { font-size:.85rem; color:#e3eaf3; }
.fb-zahlen a:hover span { text-decoration:underline; }
.fb-logo { height:3.2rem; width:auto; filter:brightness(0) invert(1); }
.firmenkacheln { display:grid; gap:.7rem; grid-template-columns:repeat(auto-fill, minmax(min(10.5rem, 100%), 1fr)); }
.firmenkachel { display:flex; flex-direction:column; align-items:flex-start; gap:.3rem; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:1rem; color:var(--ink); text-decoration:none; min-width:0; }
.firmenkachel:hover { border-color:var(--acc2); }
.firmenkachel .ico { margin:0 0 .5rem; }
.firmenkachel b { font-size:1rem; } .firmenkachel b small { font-weight:400; color:var(--muted); }
.firmenkachel span { font-size:.82rem; color:var(--muted); line-height:1.35; }
@media (max-width:600px) { .firmenband { padding:1.2rem; } .firmenband h1 { font-size:1.9rem; } .fb-zahlen b { font-size:1.4rem; } .fb-logo { height:2.2rem; } .firmenkacheln { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
.standortkopf { font-size:1rem; margin:1.2rem 0 .5rem; color:var(--muted); font-weight:600; }
.firmenkacheln.standorte { margin-bottom:.4rem; }
.firmenkachel.standort { border-top:4px solid var(--farbe, var(--acc)); }
.firmenkachel.standort .ico { background:color-mix(in srgb, var(--farbe, var(--acc)) 16%, #fff); color:var(--farbe, var(--acc)); }
.firmenkachel.standort.neu { border-top-color:var(--line); border-style:dashed; }

/* Ansprechpartner im Kundenkopf: Karte antippen = bearbeiten, „+“ = neu */
details.kontakt > summary { list-style:none; cursor:pointer; display:flex; flex-direction:column; gap:.1rem; }
details.kontakt > summary::-webkit-details-marker { display:none; }
details.kontakt:hover { border-color:var(--acc2); }
details.kontakt[open] { grid-column:1 / -1; border-color:var(--acc); }
details.kontakt[open] > summary { margin-bottom:.6rem; padding-bottom:.5rem; border-bottom:1px solid var(--line); }
details.kontakt.plus { border-style:dashed; justify-content:center; }
details.kontakt.plus > summary { flex-direction:row; align-items:center; gap:.5rem; min-height:2.6rem; }
.plusicon { display:grid; place-items:center; width:2rem; height:2rem; border-radius:50%; background:#e3eaf3; color:var(--acc); font-size:1.3rem; font-weight:700; line-height:1; }

/* 3D-Druck-Teile: Kacheln mit Iso-Bild aus der STEP-Datei und Druckstand */
.druckteile { display:grid; gap:.7rem; grid-template-columns:repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); margin:0 0 1rem; }
.druckteil { display:flex; flex-direction:column; background:var(--card); border:1px solid var(--line); border-radius:10px; overflow:hidden; min-width:0; }
.druckteil:hover { border-color:var(--acc2); }
.dt-bild { position:relative; display:flex; align-items:center; justify-content:center; height:11rem; background:#f4f6f9; border-bottom:1px solid var(--line); }
.dt-bild img { max-width:90%; max-height:10rem; object-fit:contain; }
.dt-bild .ico { width:4rem; height:4rem; margin:0; } .dt-bild .ico svg { width:2.2rem; height:2.2rem; }
.dt-bild[data-vorschau-fid]::after { content:"Iso-Bild wird erstellt …"; position:absolute; bottom:.4rem; font-size:.72rem; color:var(--muted); }
.dt-step { position:absolute; top:.5rem; right:.5rem; font-size:.68rem; font-weight:700; letter-spacing:.06em; padding:.1rem .45rem; border-radius:999px; background:#fff; border:1px solid var(--line); color:var(--acc); }
.dt-info { display:flex; flex-direction:column; gap:.3rem; padding:.7rem .9rem .4rem; min-width:0; }
.dt-info > a { color:var(--ink); text-decoration:none; } .dt-info b { font-size:1.02rem; overflow-wrap:anywhere; }
.dt-stand { display:flex; flex-wrap:wrap; gap:.3rem; }
.dstatus.offen { background:#f1f3f5; color:var(--muted); } .dstatus.geplant { background:#e8eef9; color:#2c4f8a; }
.dt-knopf { display:flex; gap:.4rem; padding:.3rem .9rem .8rem; margin-top:auto; }
.profilbild img.isobild { background:#f4f6f9; object-fit:contain; padding:1rem; box-sizing:border-box; }
.profilleer[data-vorschau-fid] img { max-width:100%; max-height:22rem; object-fit:contain; }

/* Farbkarte für Filament wie in Bambu Studio */
.farbfeld { display:flex; flex-direction:column; gap:.4rem; grid-column:span 2; min-width:0; }
@media (max-width:640px) { .farbfeld { grid-column:auto; } }
.farbkarte { display:flex; flex-wrap:wrap; gap:.4rem; }
.farbe { width:1.9rem; height:1.9rem; padding:0; border-radius:50%; border:1px solid #c9d0d8; background:var(--f, #fff); cursor:pointer; box-shadow:inset 0 0 0 2px #fff; }
.farbe:hover { transform:scale(1.08); }
.farbe.an { outline:3px solid var(--acc); outline-offset:2px; }
.farbe.klar { background:repeating-conic-gradient(#d9dedb 0 25%, #fff 0 50%) 50% / 10px 10px; }
.farbe.eigene { position:relative; display:inline-block; background:conic-gradient(red, yellow, lime, cyan, blue, magenta, red); overflow:hidden; }
.farbe.eigene input { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; padding:0; border:0; }
.farbpunkt { display:inline-block; width:.8rem; height:.8rem; border-radius:50%; border:1px solid #c9d0d8; vertical-align:-.08rem; margin-right:.25rem; }

/* Ablagefeld zum Hineinziehen von Rechnungen (PDF oder Foto) */
.ablage { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.3rem; min-height:7.5rem; padding:1rem; border:2px dashed var(--acc2); border-radius:10px; background:#f4f7fa; color:var(--ink); text-align:center; cursor:pointer; }
.ablage input[type=file] { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.ablage-text { display:flex; flex-direction:column; align-items:center; gap:.2rem; pointer-events:none; }
.ablage-text b { font-size:1rem; } .ablage-text small { color:var(--muted); font-size:.8rem; }
.ablage-ico { width:2rem; height:2rem; color:var(--acc); }
.ablage.drueber { background:#e3eaf3; border-color:var(--acc); }
.ablage.voll { border-style:solid; background:#eef3f8; }
.ablage-datei { font-weight:600; color:var(--acc); pointer-events:none; overflow-wrap:anywhere; }
.ablage-datei:empty { display:none; }
form.stack > .ablage { align-self:stretch; }

/* Rechnung auslesen: Status, blau markierte Vorschläge, Häkchen zum Bestätigen */
.auslese { padding:.6rem .8rem; border-radius:8px; border:1px solid var(--line); background:var(--card); align-self:stretch; }
.auslese.laeuft { background:#f4f6f9; } .auslese.fertig { background:#eef3f8; border-color:var(--acc2); }
.auslese.leer { background:#fdf6e3; border-color:#e8d39a; }
.auslese-status { margin:0 0 .4rem; font-size:.9rem; } .auslese.leer .auslese-status { margin:0; }
.auslese.laeuft .auslese-status::before { content:""; display:inline-block; width:.8rem; height:.8rem; margin-right:.45rem; border:2px solid var(--acc2); border-top-color:transparent; border-radius:50%; vertical-align:-.1rem; animation:dreh 1s linear infinite; }
@keyframes dreh { to { transform:rotate(360deg); } }
input.vorschlag, select.vorschlag { border-color:var(--acc2); background:#eef3f8; box-shadow:0 0 0 2px #cfdeee; }

/* Positionen aus der Rechnung: Tabelle mit Eingabefeldern zum Ändern */
.auslese-pos { margin:.4rem 0 .6rem; }
.pos-kopf { margin:0 0 .3rem; font-size:.9rem; }
.pos-tabelle input { width:100%; min-width:3.5rem; padding:.3rem .4rem; font-size:.85rem; background:#fff; }
.pos-tabelle input.zahl { text-align:right; min-width:5rem; } .pos-tabelle input.kurz { min-width:3rem; }
.pos-tabelle td:first-child input { min-width:12rem; }
.pos-tabelle td, .pos-tabelle th { padding:.2rem .3rem; }
.pos-neu { margin-top:.4rem; }
label.kindtile.vorschlag { border-color:var(--acc2); background:#eef3f8; box-shadow:0 0 0 2px #cfdeee; }

/* Belege: links Scannen und Auslesen, rechts Kategorie und Angaben */
.belegform { display:grid; grid-template-columns:minmax(0, 2fr) minmax(0, 3fr); gap:1.2rem 1.6rem; align-items:start; }
@media (max-width:860px) { .belegform { grid-template-columns:minmax(0, 1fr); } }
.beleg-links, .beleg-rechts { display:flex; flex-direction:column; gap:.7rem; min-width:0; }
.scanfeld { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.4rem; min-height:14rem; padding:1.2rem; border-radius:12px; background:var(--acc); color:#fff; text-align:center; cursor:pointer; }
.scanfeld:hover { background:#2e5680; }
.scanfeld b { font-size:1.25rem; } .scanfeld small { color:#d5e2ef; max-width:18rem; }
.scanico .ico { width:4.2rem; height:4.2rem; margin:0; background:rgb(255 255 255 / .14); color:#fff; } .scanico .ico svg { width:2.4rem; height:2.4rem; }
.scanfeld img { max-width:100%; max-height:16rem; border-radius:8px; background:#fff; }
.scanfeld.voll { min-height:0; }
.scanfeld.voll .scanico, .scanfeld.voll small { display:none; }
.shotalt { display:flex; align-items:center; justify-content:center; gap:.45rem; padding:.55rem; border:1px dashed var(--acc2); border-radius:8px; color:var(--acc); font-size:.9rem; cursor:pointer; }
.shotalt .ico { margin:0; }
.beleg-rechts .shotlabel { margin:0; font-weight:600; }
.beleg-rechts .kindgrid { grid-template-columns:repeat(auto-fill, minmax(min(9.5rem, 100%), 1fr)); gap:.4rem; }
.beleg-rechts .kindtile { flex-direction:row; justify-content:flex-start; gap:.5rem; padding:.45rem .55rem; min-height:0; text-align:left; font-size:.85rem; }
.beleg-rechts .kindtile .ico { flex:none; }
.beleg-rechts .kindtile:has(input:checked) { border-color:var(--acc); background:#eef3f8; box-shadow:inset 0 0 0 1px var(--acc); }
.beleg-rechts .shotsave { width:100%; }
.beleg-hinweis { margin:0; font-size:.82rem; }
@media (max-width:600px) { .beleg-rechts .kindgrid { grid-template-columns:repeat(2, minmax(0, 1fr)); } .beleg-rechts .kindtile { font-size:.8rem; padding:.4rem; } .scanfeld { min-height:11rem; } }

/* Aufgaben: Kategorie als Auswahl mit Piktogramm, eigene Kategorie nur bei „+ eigene Kategorie“ */
form:not(:has(select.aufgabenkat option[value="neu"]:checked)) .nurneu-k { display:none; }
.aufgabenkat-badge { display:inline-flex; align-items:center; gap:.25rem; font-size:.75rem; font-weight:600; padding:.1rem .5rem; border-radius:999px; background:#e3eaf3; color:var(--acc); white-space:nowrap; vertical-align:.1rem; }
.aufgabenkat-badge .fico { width:13px; height:13px; }
label.katkurz select { min-width:10rem; }

/* Piktogramm vor der Seitenüberschrift (aus dem Menüpunkt) und vor Kasten-Überschriften */
h1 .h1ico { width:2.6rem; height:2.6rem; margin:0 .6rem 0 0 !important; vertical-align:-.45rem; }
h1 .h1ico svg { width:1.5rem; height:1.5rem; }
h3.plainhead .titelico { width:26px; height:26px; } h3.plainhead .titelico svg { width:15px; height:15px; }
@media (max-width:600px) { h1 .h1ico { width:2.1rem; height:2.1rem; vertical-align:-.35rem; } h1 .h1ico svg { width:1.2rem; height:1.2rem; } }

/* Einheitlich: Blättern mit Pfeil-Knöpfen, Sprungmarken als kleine Knöpfe, alte Zahlenkacheln im Aussehen der neuen */
.blaettern { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem .8rem; margin:0 0 1rem; }
.blaettern b { font-variant-numeric:tabular-nums; }
.sprungleiste { display:flex; flex-wrap:wrap; gap:.4rem; margin:0 0 1rem; }
.tiles { display:grid; gap:.6rem; grid-template-columns:repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); margin:0 0 1rem; }
.tile { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:.6rem .9rem; gap:.15rem; }
.tile > b, .tile .money { font-size:1.3rem; color:var(--acc); font-weight:700; }
.tile > span { font-size:.85rem; color:var(--muted); }
a.tile { text-decoration:none; } a.tile:hover { border-color:var(--acc2); }

/* Formulare einheitlich: Feldname oben, Feld, Hinweis klein darunter. So stehen die Felder einer Reihe immer auf einer Linie. */
.formgrid { align-items:start; }
label:not(.check) > input:not([type=checkbox]):not([type=radio]), label:not(.check) > select, label:not(.check) > textarea, label:not(.check) > .farbkarte { order:1; }
label:not(.check) > span.muted, label:not(.check) > small.muted, label:not(.check) > small.hint { order:2; font-size:.75rem; line-height:1.3; }
label:not(.check) > a.muted { order:2; font-size:.75rem; }
form.inline { align-items:flex-start; }
form.inline:has(> label:not(.check)) > button, form.inline:has(> label:not(.check)) > .btn { margin-top:calc(.8rem * 1.5 + .2rem - 2.2px); }      /* Knopf ist 4,4 px höher als ein Feld: Mitte auf Mitte */

/* Belege: drei gleich aufgebaute Wege untereinander – scannen, Datei auswählen, hineinziehen */
.quelle { display:flex; align-items:center; gap:.9rem; min-height:5.2rem; padding:.8rem 1rem; border-radius:12px; border:2px solid var(--acc2); background:var(--card); color:var(--ink); cursor:pointer; }
.quelle:hover { border-color:var(--acc); background:#f4f7fa; }
.quelle-ico .ico, .quelle-ico > svg { flex:none; display:grid; place-items:center; width:3.2rem; height:3.2rem; margin:0; border-radius:50%; background:#e3eaf3; color:var(--acc); padding:.75rem; box-sizing:border-box; }
.quelle-ico .ico svg { width:1.7rem; height:1.7rem; }
.quelle-text { display:flex; flex-direction:column; gap:.1rem; } .quelle-text b { font-size:1.05rem; } .quelle-text small { color:var(--muted); font-size:.82rem; }
.quelle-scan { background:var(--acc); border-color:var(--acc); color:#fff; } .quelle-scan:hover { background:#2e5680; }
.quelle-scan .quelle-ico .ico { background:rgb(255 255 255 / .16); color:#fff; } .quelle-scan .quelle-text small { color:#d5e2ef; }
.quelle-ablage { border-style:dashed; background:#f4f7fa; }
.quelle-ablage.drueber { background:#e3eaf3; border-color:var(--acc); }
.belegvorschau { display:block; max-width:100%; max-height:16rem; margin:0 auto; border-radius:8px; border:1px solid var(--line); background:#fff; }
.farbfeld > .lt { order:0; } .farbfeld > .farbtext { order:1; } .farbfeld > .farbkarte { order:2; }      /* Textfeld auf einer Linie mit den Nachbarfeldern, Farbkreise darunter */
label.quelle { flex-direction:row; align-items:center; font-size:1rem; color:var(--ink); } label.quelle-scan { color:#fff; } .belegvorschau[hidden] { display:none; }

/* Auswahlliste mit Piktogrammen (static/bildwahl.js): das echte <select> bleibt unsichtbar im Formular */
select.bw-versteckt { position:absolute !important; width:1px !important; height:1px !important; opacity:0; pointer-events:none; }
label:has(> select.bw-versteckt) { position:relative; }
.bildwahl { flex:none; min-width:0; width:100%; order:1; }
.bildwahl > summary { padding:.35rem .6rem; gap:.5rem; background:#fff; border-color:#b9c5d1; border-radius:4px; color:var(--ink); font-size:1rem; }
.bildwahl > summary b { font-weight:500; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bildwahl .auswahl-liste { min-width:15rem; max-height:24rem; }
.bildwahl .auswahl-liste button { display:flex; align-items:center; gap:.6rem; width:100%; padding:.4rem .6rem; border:0; border-radius:6px; background:none; color:var(--ink); font:inherit; font-size:.95rem; text-align:left; cursor:pointer; }
.bildwahl .auswahl-liste button:hover { background:var(--bg); }
.bildwahl .auswahl-liste button.on { background:var(--acc); color:#fff; } .bildwahl .auswahl-liste button.on .bw-ico { background:rgb(255 255 255 / .2); color:#fff; }
.bildwahl .auswahl-liste button b { font-weight:500; }
.bw-ico { flex:none; display:inline-grid; place-items:center; width:26px; height:26px; margin:0 !important; border-radius:50%; background:#e3eaf3; color:var(--acc); font-weight:700; }
.bw-ico svg { width:15px; height:15px; }
.bw-leer:empty { background:transparent; }
.bildwahl .auswahl-liste { right:auto; width:max-content; min-width:100%; max-width:min(22rem, 90vw); }
.bildwahl .auswahl-liste button b { white-space:nowrap; }
label.katkurz { min-width:13.5rem; } label.katkurz select { min-width:0; }

/* Sonderzeichen-Knopf und -Tafel an Textfeldern (static/zeichen.js) */
input.mitzeichen { padding-right:2.1rem !important; }
.zeichenknopf { position:fixed; z-index:55; width:26px; height:26px; padding:0; border:1px solid var(--line); border-radius:6px; background:var(--card); color:var(--acc); font-family:inherit; font-size:.95rem; font-weight:700; line-height:1; cursor:pointer; }
.zeichenknopf:hover { background:var(--acc); color:#fff; }
.zeichentafel { position:fixed; z-index:58; overflow:auto; overscroll-behavior:contain; width:min(18.5rem, calc(100vw - 16px)); padding:.5rem .6rem .6rem; background:var(--card); border:1px solid var(--line); border-radius:8px; box-shadow:0 8px 24px rgb(0 0 0 / .15); }
.zeichenknopf[hidden], .zeichentafel[hidden], .zeichentafel .nurformel[hidden] { display:none; }
.zeichentafel small { display:block; margin:.35rem 0 .25rem; color:var(--muted, #5b6b68); font-size:.75rem; font-weight:600; }
.zeichentafel small:first-child { margin-top:0; }
.zgruppe { display:grid; grid-template-columns:repeat(auto-fill, minmax(2.25rem, 1fr)); gap:4px; }
.zgruppe button { height:2.25rem; padding:0; border:1px solid var(--line); border-radius:6px; background:var(--bg); color:var(--ink); font-size:1.1rem; cursor:pointer; }
.zgruppe button:hover, .zgruppe button:focus-visible { background:var(--acc); border-color:var(--acc); color:#fff; }
.auswahl.bildwahl > summary > .bw-ico { display:inline-grid; flex:none; width:26px; height:26px; }

/* Druckauftrag: gesliced Datei aus Orca Slicer (app/slicer.py, /druck/auslesen) */
.slicerteil { display:flex; flex-direction:column; gap:.6rem; }
.slicerablage { min-height:5.5rem; }

/* Rechnung: Artikel in zwei Schritten (Kategorie, dann Artikel) */
.artrechnung .katwahl { flex:0 1 13rem; min-width:min(11rem, 100%); }
.artrechnung .artwahlfeld { flex:1 1 18rem; min-width:min(16rem, 100%); }
.artrechnung .artwahlfeld select, .artrechnung .katwahl select { width:100%; }
/* Knöpfe neben Feldern: Mitte auf Mitte (Knopf 42 px, Feld 36–39 px) */
.noteopts > button { margin-bottom:-3px; }
.statuskarte select.statuswahl { min-height:39px; }

/* Automatische Druckplanung (app/druckplan.py) */
.autoplanung { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.6rem 1rem; }
.ap-text { display:flex; flex-direction:column; gap:.2rem; min-width:0; flex:1 1 20rem; }
.ap-text small { color:var(--muted); } .ap-text small.warn { color:#8a5300; }
.autobadge { background:#e3eaf3; color:var(--acc); }
form:has(input[name="auto_plan"]:checked) .nurhand { display:none; }
form:not(:has(input[name="auto_plan"]:checked)) .nurauto { display:none; }
label.autoplan { grid-column:1 / -1; }

/* 3D-Druck-Artikel: Kacheln für STEP und 3MF unter dem Kopf */
.dateikacheln { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap:.7rem; margin:0 0 1rem; }
.dateikachel { display:flex; flex-direction:column; gap:.4rem; min-width:0; }
.dateikachel form { margin:0; } .dateikachel .quelle { width:100%; box-sizing:border-box; min-height:6rem; }      /* beide Kacheln gleich hoch, auch wenn ein Text umbricht */
.dateikachel .quelle-text { min-width:0; } .dateikachel .quelle-text small { overflow-wrap:anywhere; }
.dateikachel.voll .quelle { border-style:solid; background:#eef3f8; }
.dateikachel > .btn { align-self:flex-start; }

/* Auswahlkacheln „Neuer Artikel“: Piktogramm links, Titel und Text rechts */
.artwahl-k { display:grid; grid-template-columns:auto 1fr; column-gap:.75rem; row-gap:.15rem; align-content:start; }
.artwahl-k > .ico { grid-row:span 2; align-self:start; }
.artwahl-k > b, .artwahl-k > span:not(.ico) { grid-column:2; min-width:0; }
.artwahl-k:hover > .ico { background:var(--acc); color:#fff; }

/* Zahlenkacheln mit Piktogramm (blocks.js): Piktogramm links, Zahl und Text rechts */
.tile.mitico, .hotcard.mitico { display:grid; grid-template-columns:auto 1fr; column-gap:.75rem; row-gap:.15rem; align-items:center; align-content:center; }
.tile.mitico > .kachelico, .hotcard.mitico > .kachelico { grid-row:span 2; margin:0; }
.tile.mitico > :not(.kachelico), .hotcard.mitico > :not(.kachelico) { grid-column:2; min-width:0; }
.hotcard .kachelico { background:rgb(255 255 255 / .14); color:#fff; } .hotcard.warn .kachelico { background:rgb(43 31 0 / .12); color:#2b1f00; }
@media (max-width:420px) { .tile.mitico { column-gap:.5rem; } .tile .kachelico { width:30px; height:30px; } .tile .kachelico svg { width:16px; height:16px; } }
.tile.mitico > span, .hotcard.mitico > span { overflow-wrap:break-word; hyphens:auto; }
.tile.mitico b.money { font-size:1.2rem; } .hotcard.mitico b.money { font-size:1.4rem; }
.hotcard.mitico { display:flex; flex-direction:column; align-items:flex-start; }      /* Startseite: Piktogramm über der Zahl, die Kacheln sind schmal */
.hotcard .kachelico { width:30px; height:30px; margin-bottom:.35rem; } .hotcard .kachelico svg { width:16px; height:16px; }

/* Artikel: EK und Selbstkosten, der Wert, mit dem gerechnet wird, ist blau umrandet */
.profilzahlen > div.zaehlt { box-shadow:inset 0 0 0 2px var(--acc2); }

/* Kacheln STEP/3MF: hineinziehen oder antippen */
.dateiablage .ablagehinweis { color:var(--acc2); font-weight:600; font-size:.78rem; }
.dateiablage.falsch { border-color:#d9a441; background:#fdf6e3; } .dateiablage.falsch .ablagehinweis { color:#8a5300; }
.dateiablage.laedt { opacity:.75; pointer-events:none; }
@media (max-width:1000px) { .dateikachel .quelle { min-height:8.6rem; } }      /* Texte brechen um: beide Kacheln gleich hoch */

/* grünes Zeitfeld: fünfte Kachel „Artikel buchen“ und ihr Fenster */
.timewatch.timeartikel span { font-size:.85rem; line-height:1.2; text-align:center; overflow-wrap:anywhere; }
.nachtragbox .boxkopf { display:flex; align-items:center; justify-content:space-between; gap:.5rem; margin:-.2rem 0 .3rem; }
.nachtragbox .boxkopf b { font-size:1rem; }
.nachtragbox .nachgruppe { display:flex; flex-direction:column; gap:.6rem; width:100%; box-sizing:border-box; padding:.7rem; border:1px solid var(--line); border-radius:8px; background:#f6f9f7; }
.nachtragbox .nachgruppe label { margin:0; }
.nachtragbox .nachgruppe .timesel { flex:none; }      /* im grünen Feld füllen sie die Reihe, hier untereinander nicht die Höhe */
.nachtragbox .zweier { display:grid; grid-template-columns:1fr 1fr; gap:.6rem; }
.nachtragbox .schieber { display:grid; grid-template-columns:repeat(3,1fr); gap:.4rem; }
.nachtragbox .schieber button { width:100%; margin:0; }
.nachtragbox textarea { width:100%; box-sizing:border-box; }
.nachtragbox input.falsch { border-color:#c98a00; background:#fff4dc; }
.nachtragbox form.stack > button { align-self:stretch; }
.timebar .startlink { align-self:flex-start; background:none; border:0; padding:0; margin-top:.2rem; color:inherit; font:inherit; font-size:.85rem; font-weight:600; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.nachtragbox { max-height:calc(100vh - 2rem); overflow:auto; }
.nachtragbox form.stack > label, .nachtragbox select, .nachtragbox input { width:100%; box-sizing:border-box; }
.nachtragbox form.stack > label { margin:0; }
.timebar button.timewatch.timenach span { text-align:center; }
.timenach .nachtragzeiger { stroke:var(--acc); }
.timebar.on .timenach .nachtragzeiger { stroke:#fff; }
.artikelbox form.stack { gap:.7rem; margin-top:.6rem; } .artikelbox select, .artikelbox input { width:100%; box-sizing:border-box; }
form.stack > .dateikacheln { align-self:stretch; width:100%; }      /* im Anlegen-Formular nebeneinander, nicht gestaucht */
.auslese-ok[hidden] { display:none !important; }      /* ohne Vorschläge kein Häkchen */

/* Fenster „Artikel buchen“: schon gebuchte Artikel */
.artikelbox .gebucht { list-style:none; margin:.6rem 0 0; padding:0; display:flex; flex-direction:column; gap:.35rem; }
.artikelbox .gebucht li { display:flex; align-items:center; gap:.6rem; padding:.4rem .6rem; border:1px solid var(--line); border-radius:8px; background:var(--bg); }
.artikelbox .gebucht li > span { flex:1; min-width:0; overflow-wrap:anywhere; } .artikelbox .gebucht em { font-style:normal; font-weight:600; color:var(--acc); white-space:nowrap; }
.artikelbox .gebucht form { margin:0; }

/* Auswahl mit „+ neu …“: das Textfeld erscheint nur, wenn „neu“ gewählt ist */
form:not(:has(select[name="material"] option[value="__neu"]:checked)) .neu-material,
form:not(:has(select[name="filament_maker"] option[value="__neu"]:checked)) .neu-filament_maker,
form:not(:has(select[name="filament"] option[value="__neu"]:checked)) .neu-filament { display:none; }

/* Hinweis „Nachdrucken“ (Mindestbestand bei 3D-Druck-Teilen): Bernstein wie alle Problemzeilen */
.nachdruck { background:#fdf6e3; border:1px solid #e8d39a; border-left:5px solid #d9a441; border-radius:10px; padding:.7rem .9rem; margin:0 0 1rem; display:flex; flex-direction:column; gap:.5rem; }
.nd-kopf { display:flex; align-items:center; gap:.5rem; margin:0; color:#6b4300; } .nd-kopf svg { width:22px; height:22px; flex:none; }
.nd-zeile { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.5rem 1rem; padding:.5rem .6rem; background:#fff; border:1px solid #efe1b8; border-radius:8px; }
.nd-text { display:flex; flex-direction:column; gap:.15rem; min-width:0; flex:1 1 18rem; } .nd-text small { color:var(--ink); overflow-wrap:anywhere; }
.nd-text .nd-vorschlag { color:var(--acc); font-weight:600; }
.nd-zeile form { margin:0; }
form:not(:has(select[name="category"] option[value="__neu"]:checked)) .neu-category { display:none; }

/* Preisrechner im Artikel-Formular (static/preisrechner.js): Ergebnis als Zeile unter den Feldern */
.preisergebnis { margin:0; padding:.55rem .8rem; border-radius:6px; background:#fff; border:1px solid var(--line); font-weight:600; color:var(--acc); }
.preisergebnis.fehler { background:#fff3cf; border-color:#f0b429; color:#4d3600; }
/* Arbeitsschritte im Preisrechner: je Zeile Tätigkeit, Zeit, Stückzahl, min je Stück */
.schritte { display:flex; flex-direction:column; gap:.45rem; }
.schrittkopf, .schrittzeile { display:grid; gap:.5rem; align-items:center; grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) 6.5rem 2.6rem;
  grid-template-areas:"akt zeit stk je weg" "neu neu neu neu neu"; }
.schrittkopf { grid-template-areas:"akt zeit stk je weg"; font-size:.75rem; font-weight:600; color:var(--muted); }
.schrittkopf span:nth-child(4) { text-align:right; }
.schrittzeile select { grid-area:akt; }
.schrittzeile { row-gap:0; }
.schrittzeile .schrittneu { grid-area:neu; margin-top:.4rem; }
.schrittzeile [name="schritt_zeit"] { grid-area:zeit; }
.schrittzeile [name="schritt_stueck"] { grid-area:stk; }
.schrittzeile .schrittje { grid-area:je; text-align:right; font-weight:600; color:var(--acc); white-space:nowrap; }
.schrittzeile .schrittweg { grid-area:weg; padding:0; min-width:0; width:2.6rem; height:42px; margin:0; font-size:1.1rem; }
.schrittzeile.fehler input { border-color:#f0b429; background:#fff3cf; }
.schritte .schrittplus { align-self:flex-start; }
.schritthandy { display:none; }
@media (max-width:600px) {
  .schrittkopf { display:none; }
  .schritthandy { display:block; }
  .schrittzeile { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 5.5rem 2.6rem; grid-template-areas:"akt akt akt weg" "neu neu neu neu" "zeit stk je je";
    row-gap:.4rem; padding-bottom:.5rem; border-bottom:1px solid var(--line); }
  .schrittzeile .schrittneu { margin-top:0; }
}
/* Arbeitsschritte auf der Artikelseite */
.schritttab td.num, .schritttab th.num { white-space:nowrap; }

/* Privatbereich (/privat): Fahrzeuge und eigene Projekte */
.privathinweis { margin:-.3rem 0 1rem; font-size:.9rem; }
/* Formular je Kategorie: f-fz nur Fahrzeug, f-nfz alles außer Fahrzeug, f-pj Projekte (nicht Fahrzeug), f-masch Fahrzeug und Werkstatt */
.privatform { display:flex; flex-direction:column; gap:.8rem; width:100%; }
.privatform:not([data-art="fahrzeug"]) .f-fz, .privatform[data-art="fahrzeug"] .f-nfz, .privatform[data-art="fahrzeug"] .f-pj { display:none; }
.privatform:not([data-art="fahrzeug"]):not([data-art="werkstatt"]) .f-masch { display:none; }
.privatform .breit { grid-column:1 / -1; }
.privatform .breit2 { grid-column:span 2; }
.privatform p.hint { margin:0; font-size:.8rem; color:var(--muted); }
@media (max-width:600px) { .privatform .breit2 { grid-column:1 / -1; } }
/* Kategorie-Seiten: Reiter, Dashboard */
.privatreiter { display:flex; gap:.4rem; overflow-x:auto; scrollbar-width:none; margin:0 0 1rem; }
.privatreiter a { display:inline-flex; align-items:center; gap:.4rem; white-space:nowrap; padding:.35rem .8rem .35rem .4rem; border:1px solid var(--line); border-radius:99px; background:var(--card); color:var(--ink); text-decoration:none; font-size:.9rem; font-weight:500; }
.privatreiter a .ico { margin:0; }
.privatreiter a.on { background:var(--acc); border-color:var(--acc); color:#fff; } .privatreiter a.on .ico { background:rgba(255,255,255,.18); color:#fff; }
.privatzahlen > a.warnzahl { border-color:#f0b429; background:#fff8e6; } .privatzahlen > a.warnzahl b { color:#7a4d00; }
.privatzahlen b.geld { font-size:1.1rem; white-space:nowrap; }
.dashraster { display:grid; gap:.8rem 1.4rem; grid-template-columns:repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); margin:0 0 1.2rem; }
.dashraster section { min-width:0; } .dashraster h3.plainhead { margin-top:.4rem; }
.dashliste { list-style:none; margin:0; padding:0; border:1px solid var(--line); border-radius:8px; background:var(--card); overflow:hidden; }
.dashliste li + li { border-top:1px solid var(--line); }
.dashliste a { display:flex; gap:.8rem; align-items:baseline; padding:.5rem .75rem; color:var(--ink); text-decoration:none; }
.dashliste a:hover { background:#f4f6f9; }
.dashliste time { flex:none; width:5.6rem; font-size:.85rem; color:var(--acc); font-weight:600; font-variant-numeric:tabular-nums; }
.dashliste span { display:flex; flex-direction:column; min-width:0; } .dashliste b { font-weight:500; overflow-wrap:anywhere; } .dashliste small { color:var(--muted); font-size:.8rem; }
.dashliste li.warn { background:#fff6dc; box-shadow:inset 4px 0 0 #f0b429; } .dashliste li.warn time { color:#7a4d00; }
.geldtab .balkenspalte { width:35%; min-width:8rem; }
.geldbalken { position:relative; display:block; height:.7rem; background:#eef1f5; border-radius:99px; overflow:hidden; }
.geldbalken i { position:absolute; left:0; top:0; bottom:0; border-radius:99px; }
.geldbalken i.plan { background:var(--headbg); } .geldbalken i.ist { background:var(--acc2); } .geldbalken i.ist.drueber { background:#f0b429; }
.budgetbalken { display:block; height:.45rem; margin-top:.3rem; max-width:14rem; background:#eef1f5; border-radius:99px; overflow:hidden; }
.budgetbalken i { display:block; height:100%; background:var(--acc2); } dd.warn .budgetbalken i { background:#f0b429; }
.neuwahl { display:grid; gap:.6rem; grid-template-columns:repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.privatkarte { color:var(--ink); text-decoration:none; }
.privatkarte .dt-bild img { max-width:100%; max-height:100%; width:100%; height:100%; object-fit:cover; }
.privatkarte .dt-bild { overflow:hidden; }
.privatkarte.achtung { border-left:5px solid #f0b429; }
.privatkarte .dt-info { padding-bottom:.8rem; }
.badge.warnbadge, .badge.wst-faellig { background:#f0b429; color:#2b1f00; font-weight:600; }
.badge.wst-bald { background:#fff3cf; color:#4d3600; font-weight:600; }
.badge.wst-ok, .badge.pst-aktiv { background:#3a6c9c; color:#fff; font-weight:600; }
.badge.pst-geplant { background:var(--headbg); color:var(--acc); font-weight:600; }
.badge.pst-verkauft, .badge.pst-ruht { background:#eceeee; color:#5d6b79; }
ul.faellig { margin:.3rem 0 0; padding-left:1.2rem; }
.spectab tr.gruppe td { background:var(--headbg); color:var(--acc); font-weight:600; font-size:.85rem; letter-spacing:.04em; }
details.zeilefeld { display:inline-block; text-align:left; vertical-align:top; }
details.zeilefeld > summary { list-style:none; cursor:pointer; display:inline-flex; }
details.zeilefeld > summary::-webkit-details-marker { display:none; }
details.zeilefeld[open] { display:block; margin:.3rem 0; padding:.6rem; background:#f4f6f9; border:1px solid var(--line); border-radius:8px; min-width:min(30rem, 80vw); }
details.zeilefeld form.inline input { min-width:0; }
.privatbilder { display:grid; gap:.7rem; grid-template-columns:repeat(auto-fill, minmax(min(11rem, 100%), 1fr)); }
.privatbilder figure { margin:0; background:var(--card); border:1px solid var(--line); border-radius:8px; overflow:hidden; display:flex; flex-direction:column; }
.privatbilder img { display:block; width:100%; aspect-ratio:4 / 3; object-fit:cover; background:#eef2f6; }
.privatbilder figcaption { display:flex; flex-wrap:wrap; align-items:center; gap:.3rem; padding:.4rem; }
.privatbilder figcaption small { flex-basis:100%; }

/* Rechnungsentwurf: Position hinzufügen, eine Art wählen (Zeiteinträge, Tätigkeit, Artikel, Anfahrt, freie Zeile) */
.posarten { display:grid; grid-template-columns:repeat(auto-fit, minmax(100px, 1fr)); gap:.5rem; border:0; padding:0; margin:0 0 .9rem; }
.posart { display:flex; flex-direction:column; align-items:flex-start; gap:.15rem; padding:.6rem .7rem; border:1px solid var(--line); border-radius:8px; cursor:pointer; }
.posart input { position:absolute; opacity:0; pointer-events:none; }
.posart > .ico { margin-bottom:.3rem; }
.posart b { color:var(--acc); font-size:.95rem; }
.posart span:not(.ico) { font-size:.8rem; color:var(--muted); }
.posart:hover { border-color:var(--acc); }
.posart:has(input:checked) { border-color:var(--acc); box-shadow:inset 0 0 0 1px var(--acc); background:#eef5f1; }
.posart:has(input:checked) > .ico { background:var(--acc); color:#fff; }
.posart:has(input:focus-visible) { outline:2px solid var(--acc); outline-offset:2px; }
.pa-teil { display:none; }
.positionswahl:has(#pa-zeit:checked) .pa-zeit, .positionswahl:has(#pa-taetigkeit:checked) .pa-taetigkeit, .positionswahl:has(#pa-artikel:checked) .pa-artikel,
.positionswahl:has(#pa-anfahrt:checked) .pa-anfahrt, .positionswahl:has(#pa-frei:checked) .pa-frei { display:block; }
.posart-badge { white-space:nowrap; background:#e3eaf3; color:var(--acc); }
.posart-zelle { width:1%; }
.anfahrtfelder { display:flex; flex-wrap:wrap; gap:.5rem .8rem; align-items:flex-start; }
.anfahrtfelder label { flex:0 1 14rem; }
.anfahrtfelder input { width:100%; }

/* Privat: Wartungsplan als Grafik (Laufleistung und Zeit) */
.wplan { margin:.8rem 0 1rem; padding:.6rem .8rem .7rem; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.wp-titel { margin:0 0 .3rem; }
.wp-row { display:grid; grid-template-columns:minmax(9rem,16rem) 1fr; gap:.8rem; align-items:center; padding:.22rem 0; border-top:1px solid #eef1f5; }
.wp-row.wp-achse { border-top:0; padding:0 0 .1rem; }
.wp-name { font-size:.85rem; line-height:1.25; }
.wp-name small { display:block; font-size:.74rem; }
.wp-spur { position:relative; height:1.4rem; margin-right:1.2rem; }
.wp-achse .wp-spur { height:1.2rem; }
.wp-tick { position:absolute; top:0; transform:translateX(-50%); font-size:.72rem; color:var(--muted); white-space:nowrap; }
.wp-tick.stark { color:var(--ink); font-weight:600; }
.wp-linie { position:absolute; top:0; bottom:0; width:1px; background:#e6ebf1; }
.wp-linie.stark { background:#c9d2dc; }
.wp-jetzt { position:absolute; top:-.25rem; bottom:-.25rem; width:2px; margin-left:-1px; background:var(--acc); }
.wp-pkt { position:absolute; top:50%; width:.8rem; height:.8rem; margin:-.4rem 0 0 -.4rem; border-radius:50%; background:var(--acc2); border:2px solid var(--acc2); }
.wp-pkt.done { background:#8a98a8; border-color:#8a98a8; width:.6rem; height:.6rem; margin:-.3rem 0 0 -.3rem; }
.wp-pkt.late { background:var(--warn); border-color:var(--warn); }
.wp-pkt.plan { background:#fff; border-color:var(--acc2); }
.wp-pkt.est { background:#fff; border:2px dashed var(--acc2); }
.wp-hinweis { font-size:.8rem; margin:.4rem 0 0; }
.wp-legende { display:flex; flex-wrap:wrap; gap:.3rem 1rem; font-size:.8rem; color:var(--muted); margin:.2rem 0 1rem; }
.wp-legende span { display:inline-flex; align-items:center; gap:.35rem; }
.wp-legende .wp-pkt { position:static; margin:0; }
.wp-jetzt-l { display:inline-block; width:2px; height:.9rem; background:var(--acc); }
@media (max-width:600px) { .wp-row { grid-template-columns:1fr; gap:.15rem; } .wp-row.wp-achse .wp-name { display:none; } .wplan { padding:.5rem .6rem; } }
details.drehmoment { margin:.4rem 0 .8rem; }
details.drehmoment > summary { list-style:none; display:inline-flex; cursor:pointer; }
details.drehmoment > summary::-webkit-details-marker { display:none; }
details.drehmoment[open] { padding:.6rem .8rem; background:var(--card); border:1px solid var(--line); border-radius:8px; }
details.drehmoment[open] > summary { margin-bottom:.5rem; }
/* Privat: Kostenplanung eines Projekts am Fahrzeug */
.kostenbalken { display:flex; height:.7rem; margin:-.4rem 0 1rem; background:#eef1f5; border-radius:99px; overflow:hidden; }
.kostenbalken i { display:block; height:100%; }
.kostenbalken i.ausg { background:var(--acc); }
.kostenbalken i.gepl { background:color-mix(in srgb,var(--acc) 35%,white); }
.tile.warnzahl { border-color:var(--warn); } .tile.warnzahl b { color:var(--warn); }
/* Vorschläge beim Tippen in Suchfeldern (vorschlag.js) */
.vschlag { position:relative; display:block; }
.vschlag > input { width:100%; }
.vliste { display:none; position:absolute; left:0; right:0; top:calc(100% + .25rem); z-index:60; max-height:60vh; overflow:auto; padding:.25rem; background:var(--card); border:1px solid var(--line); border-radius:8px; box-shadow:0 8px 22px rgba(0,0,0,.16); }
.vliste.open { display:block; }
.vliste a { display:block; padding:.35rem .55rem; border-radius:6px; color:var(--ink); text-decoration:none; }
.vliste a b { display:block; font-weight:600; font-size:.9rem; overflow-wrap:anywhere; }
.vliste a span { display:block; font-size:.76rem; color:var(--muted); overflow-wrap:anywhere; }
.vliste a:hover, .vliste a.on { background:#eaf0f7; }
.vliste a.vall { border-top:1px solid var(--line); border-radius:0 0 6px 6px; color:var(--acc2); font-size:.85rem; font-weight:600; }
/* Suche im Fahrzeug */
.fzsuche { margin:.2rem 0 1rem; }
.fzsuche .treffer { margin-top:.6rem; padding:.6rem .8rem; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.fzsuche .treffer h3 { margin:.6rem 0 .25rem; font-size:.9rem; color:var(--acc); }
.fzsuche .treffer h3:first-of-type { margin-top:0; }
.fzsuche .treffer ul { list-style:none; margin:0; padding:0; }
.fzsuche .treffer li { padding:.25rem 0; border-top:1px solid #eef1f5; }
.fzsuche .treffer li small { display:block; color:var(--muted); }
.auchgesucht { font-size:.85rem; color:var(--muted); margin:.3rem 0; }
/* Privat: Übersicht (Dashboard) je Eintrag */
.fzkopf { display:grid; grid-template-columns:minmax(0,18rem) 1fr; gap:1rem; align-items:start; margin:0 0 1rem; }
.fzbild img, .fzbild .geraetbild { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:8px; border:1px solid var(--line); background:var(--card); }
.fzbild .geraetbild { display:grid; place-items:center; }
.fzzeile { margin:0 0 .6rem; }
.schnell { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.6rem; }
.schnell .btn { display:inline-flex; align-items:center; gap:.35rem; }
.schnell .btn .ico { margin:0; }
.fzbilder { display:grid; grid-template-columns:repeat(auto-fill,minmax(8rem,1fr)); gap:.5rem; margin:0 0 .8rem; }
.fzbilder img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:6px; border:1px solid var(--line); }
@media (max-width:700px) { .fzkopf { grid-template-columns:1fr; } }
.katalogtipp { margin:.5rem 0 0; font-size:.8rem; }
/* Privat: Fahrzeugseiten überarbeitet (Bereichsleiste, Kopf, Status, Aktionen) */
.privatreiter.bereiche { margin-bottom:.9rem; padding-bottom:.15rem; }
.privatreiter .zahl { font-style:normal; font-size:.72rem; font-weight:600; min-width:1.3rem; padding:0 .35rem; border-radius:99px; background:#eef1f5; color:var(--muted); text-align:center; }
.privatreiter a.on .zahl { background:rgba(255,255,255,.2); color:#fff; }
.privatreiter .zahl.warn { background:#fff3d6; color:#7a4d00; }
.fzkopf { grid-template-columns:minmax(0,15rem) 1fr; }
.fzbild .geraetbild { gap:.3rem; color:var(--muted); font-size:.8rem; }
.fzinfo .fzzeile { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; font-size:1rem; }
.fzstand { display:flex; flex-wrap:wrap; gap:.5rem 1.6rem; margin:.2rem 0 .6rem; }
.fzstand > div { display:flex; flex-direction:column; }
.fzstand small { font-size:.75rem; color:var(--muted); }
.fzstand b { font-size:1.45rem; line-height:1.2; color:var(--acc); }
.fzstand .warn b { color:var(--warn); }
.standneu > summary { list-style:none; display:inline-flex; cursor:pointer; }
.standneu > summary::-webkit-details-marker { display:none; }
.standneu[open] > summary { margin-bottom:.4rem; }
.fzstatus { display:flex; align-items:center; gap:.6rem; margin:0 0 .6rem; padding:.55rem .8rem; border:1px solid var(--line); border-left:4px solid var(--ok); border-radius:8px; background:var(--card); }
.fzstatus span { flex:1; }
.fzstatus.warn { border-color:#f0b429; border-left-color:var(--warn); background:#fff8e6; }
.fzstatus.hinweis { border-left-color:#c9d2dc; }
.fzstatus .ico { margin:0; flex:none; }
.aktionen { display:grid; grid-template-columns:repeat(auto-fill,minmax(7.2rem,1fr)); gap:.5rem; margin:.9rem 0 1rem; }
.aktionen a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.35rem; min-height:4.6rem; padding:.55rem .4rem; text-align:center; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--ink); text-decoration:none; font-size:.85rem; font-weight:500; line-height:1.2; }
.aktionen a:hover { border-color:var(--acc2); background:#f3f8f5; }
.aktionen a .ico { margin:0; }
.aktionen a small { display:block; font-size:.7rem; font-weight:400; color:var(--muted); }
.aktionen a.katalog { border-color:var(--acc); }
.dashraster.zwei { grid-template-columns:repeat(2,minmax(0,1fr)); }
.fzsuche form.inline { flex-wrap:nowrap; }
.fzsuche form.inline label { min-width:0 !important; }
@media (max-width:700px) {
  .fzkopf { grid-template-columns:7.5rem 1fr; gap:.7rem; }
  .fzstand b { font-size:1.15rem; }
  .aktionen { grid-template-columns:repeat(4,minmax(0,1fr)); gap:.35rem; }
  .aktionen a { min-height:4.2rem; font-size:.72rem; padding:.45rem .2rem; }
  .aktionen a small { display:none; }
  .dashraster.zwei { grid-template-columns:1fr; }
  .fzstatus { flex-wrap:wrap; }
}
/* Privat: Wartungsplan als Liste nach Dringlichkeit */
.wliste { margin:.6rem 0 1rem; }
.wgruppe { margin:.9rem 0 .35rem; font-size:.95rem; }
.wgruppe small { font-weight:400; color:var(--muted); font-size:.8rem; }
.wgruppe.wst-faellig, .wgruppe.wst-bald { color:#7a4d00; }
.witem { display:flex; gap:.8rem; align-items:flex-start; justify-content:space-between; padding:.55rem .75rem; margin:0 0 .35rem; background:var(--card); border:1px solid var(--line); border-left:4px solid var(--ok); border-radius:8px; }
.witem.w-faellig { border-left-color:var(--warn); background:#fff8e6; }
.witem.w-bald { border-left-color:#f0b429; background:#fffbf0; }
.witem.w-offen { border-left-color:#c9d2dc; }
.wtext { min-width:0; flex:1; }
.wtext b { display:block; }
.wtext small { display:block; color:var(--muted); font-size:.8rem; }
.wnext { display:block; font-size:.85rem; color:var(--acc); font-weight:500; }
.w-faellig .wnext, .w-bald .wnext { color:#7a4d00; }
.wknopf { display:flex; gap:.35rem; flex:none; align-items:flex-start; }
.wknopf details[open] { position:static; }
.witem:has(details[open]) { flex-wrap:wrap; }
.witem:has(details[open]) .wknopf { flex-basis:100%; flex-wrap:wrap; }
@media (max-width:600px) { .witem { flex-wrap:wrap; } .wknopf { flex-basis:100%; } }
.wknopf summary.btn, .standneu > summary.btn { display:inline-flex; align-items:center; gap:.35rem; }
.wknopf summary.btn .ico, .standneu > summary.btn .ico { margin:0; }
.katalogzeile { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem .8rem; margin:.2rem 0 1rem; padding:.55rem .8rem; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.katalogzeile .btn, .katalogzeile button { display:inline-flex; align-items:center; gap:.35rem; }
.katalogzeile .ico { margin:0; }
.katalogcode { display:flex; flex-direction:column; line-height:1.15; }
.katalogcode small { font-size:.7rem; color:var(--muted); }
.katalogcode b { font-size:1.05rem; letter-spacing:.04em; }
.katalogzeile > small { flex-basis:100%; font-size:.78rem; }
button.kopiert { border-color:var(--ok); color:var(--ok); }

/* Anmeldeseite: eigenes Formular statt Browser-Fenster, das Gerät bleibt angemeldet */
body.anmeldeseite { min-height:100vh; min-height:100dvh; display:flex; align-items:center; justify-content:center; padding:1rem; border-top:6px solid var(--acc); }
main.anmeldung { width:100%; max-width:22rem; margin:0; padding:2rem 1.5rem 1.5rem; background:var(--card); border:1px solid var(--line); border-radius:10px; display:flex; flex-direction:column; gap:1rem; }
.anmeldung .anmeldelogo { height:34px; width:auto; align-self:flex-start; }
.anmeldung h1 { margin:0; font-size:1.4rem; }
.anmeldung p { margin:0; }
.anmeldung form { display:flex; flex-direction:column; gap:.9rem; }
.anmeldung label { font-size:.85rem; color:var(--ink); font-weight:600; }
.anmeldung input { font-size:1rem; padding:.65rem .7rem; }
.anmeldung .breit { width:100%; text-align:center; padding:.75rem 1rem; }
.anmeldefehler { padding:.55rem .75rem; border-radius:6px; background:#fff4e0; border:1px solid #f0c27a; color:#6b4000; }
.anmeldehinweis { font-size:.8rem; color:var(--muted); }

/* Scanner aus der Metorbike-App (static/docscan.js, scan-core.js): dunkel wie die Kamera-App, auf dem Handy ganzer Bildschirm */
.docscan{height:calc(100% - 2rem);padding:0;background:#111;color:#f2f2f2;border:1px solid #111;overflow:hidden}
.docscan{box-sizing:border-box;width:calc(100% - 2rem);max-width:calc(100% - 2rem);max-height:calc(100% - 2rem);border-radius:10px;box-shadow:0 12px 40px rgba(0,0,0,.35)}
.docscan::backdrop{background:rgba(0,0,0,.6)}
/* iPhone: Gedrückthalten zum Ecken-Ziehen darf nichts markieren und kein Kopieren-/Sichern-Menü öffnen */
.docscan,.docscan *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
.docscan img,.docscan canvas{-webkit-user-drag:none;pointer-events:auto}
.docscan .ds-ecv,.docscan .ds-ebox{touch-action:none}
@media (max-width:700px){.docscan{width:100%;max-width:100%;height:100%;max-height:100%;margin:0;border-radius:0}}
.docscan[open]{display:flex;flex-direction:column}
.docscan [hidden]{display:none!important}
.docscan .ds-top{display:flex;align-items:center;gap:.4rem;padding:.4rem .5rem;flex:none}
.docscan .ds-title{flex:1;text-align:center;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.docscan .ds-tools{display:flex;gap:.2rem}
.docscan .ds-sec{flex:1;min-height:0;display:flex;flex-direction:column}
.docscan .ds-view{position:relative;flex:1;min-height:0;background:#000;overflow:hidden}
.docscan .ds-view video,.docscan .ds-ov{position:absolute;inset:0;width:100%;height:100%}
.docscan .ds-view video{object-fit:contain}
.docscan .ds-hint{position:absolute;left:50%;top:.7rem;transform:translateX(-50%);max-width:calc(100% - 1rem);margin:0;padding:.35rem .85rem;border-radius:999px;background:rgba(0,0,0,.62);font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.docscan .ds-hint:empty{display:none}
.docscan .ds-flash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none}
.docscan .ds-flash.on{animation:dsflash .35s ease-out}
@keyframes dsflash{from{opacity:.85}to{opacity:0}}
.docscan .ds-nocam{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.8rem;padding:1.5rem;text-align:center}
.docscan .ds-nocam p{max-width:28rem;color:#ddd}
.docscan .ds-bar{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.7rem .8rem;flex:none}
.docscan .ds-bar.ds-wrap{flex-wrap:wrap;justify-content:center}
.docscan .ds-btn.ds-tool{flex-direction:column;gap:.2rem;min-width:4.6rem;padding:.4rem .5rem;font-size:.8rem}
.docscan .ds-ico{width:1.5rem;height:1.5rem;flex:none}
.docscan .ds-btn{display:inline-flex;align-items:center;justify-content:center;min-height:2.6rem;padding:.55rem 1rem;border-radius:8px;border:1px solid #444;background:#2a2a2a;color:#fff;font:inherit;cursor:pointer}
.docscan .ds-btn.ds-ghost{background:transparent;border-color:transparent;color:#e8e8e8}
.docscan .ds-btn.ds-ok{background:#7fb2e5;border-color:#7fb2e5;color:#0b2238;font-weight:700}
.docscan .ds-btn:disabled{opacity:.4;cursor:default}
.docscan .ds-btn[aria-pressed="true"]{color:#7fb2e5;font-weight:700}
.docscan .ds-shutter{flex:none;width:4.4rem;height:4.4rem;border-radius:50%;border:4px solid #fff;background:#fff;box-shadow:inset 0 0 0 3px #111;cursor:pointer;padding:0}
.docscan .ds-shutter:active{transform:scale(.93)}
.docscan .ds-shutter[hidden]{display:block!important;visibility:hidden}
.docscan .ds-stack{position:relative;flex:none;width:3.4rem;height:3.4rem;padding:0;border:2px solid #fff;border-radius:6px;background:#222;cursor:pointer}
.docscan .ds-stack img{display:block;width:100%;height:100%;object-fit:cover;border-radius:4px}
.docscan .ds-stack img:not([src]){visibility:hidden}
.docscan .ds-stack span{position:absolute;top:-.55rem;right:-.55rem;min-width:1.35rem;height:1.35rem;padding:0 .3rem;border-radius:999px;background:#7fb2e5;color:#0b2238;font-size:.75rem;font-weight:700;line-height:1.35rem;text-align:center}
.docscan .ds-stack:disabled{opacity:.35;cursor:default}
.docscan .ds-box{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.docscan .ds-ecv{touch-action:none;cursor:crosshair}
.docscan .ds-loupe{position:absolute;width:120px;height:120px;border-radius:50%;border:3px solid #fff;box-shadow:0 4px 14px rgba(0,0,0,.55);pointer-events:none}
.docscan .ds-note{margin:.1rem .8rem .4rem;text-align:center;font-size:.9rem;color:#ccc}
.docscan .ds-big{display:block;background:#fff;box-shadow:0 2px 14px rgba(0,0,0,.6)}
.docscan .ds-filters{display:flex;justify-content:center;flex-wrap:wrap;gap:.35rem;padding:.5rem .5rem .2rem;flex:none}
.docscan .ds-chip{padding:.35rem .85rem;border-radius:999px;border:1px solid #555;background:transparent;color:#ddd;font:inherit;font-size:.85rem;cursor:pointer}
.docscan .ds-chip[aria-pressed="true"]{background:#fff;border-color:#fff;color:#111;font-weight:600}
.docscan .ds-strip{display:flex;gap:.45rem;overflow-x:auto;padding:.4rem .8rem;flex:none}
.docscan .ds-strip button{position:relative;flex:none;width:3rem;height:4rem;padding:0;border:2px solid transparent;border-radius:6px;background:#222;cursor:pointer}
.docscan .ds-strip button.on{border-color:#7fb2e5}
.docscan .ds-strip img{display:block;width:100%;height:100%;object-fit:cover;border-radius:4px}
.docscan .ds-strip span{position:absolute;left:2px;bottom:2px;padding:0 .25rem;border-radius:4px;background:rgba(0,0,0,.65);font-size:.7rem}
.docscan .ds-toast{position:absolute;left:50%;bottom:6.5rem;transform:translateX(-50%);margin:0;padding:.45rem .9rem;border-radius:8px;background:rgba(255,255,255,.95);color:#111;font-size:.9rem;pointer-events:none;white-space:nowrap}
.docscan .ds-busy{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.55);font-weight:600}

/* Aufgaben: Status-Symbole und Kalender */
.taskico{display:inline-grid;place-items:center;width:1.25rem;height:1.25rem;border-radius:50%;margin-right:.35rem;vertical-align:-.25rem;flex:none}
.taskico svg{width:.85rem;height:.85rem}
.taskico.open{background:#f0b429;color:#2b1f00}
.taskico.done{background:var(--ok);color:#fff}
.taskico.late{background:var(--bad);color:#fff}
.zday.taskday{gap:.1rem;min-height:4.2rem}
.taskchip{display:flex;align-items:center;min-width:0;font-size:.72rem;color:var(--ink);text-decoration:none}
/* Scannen in Formularen (static/scanform.js, Makro _scan.html) */
button.quelle { width:100%; font:inherit; text-align:left; }
button.shotbtn { width:100%; border:0; font:inherit; }
.scanseiten { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; padding:.5rem; border:1px solid var(--line); border-radius:8px; background:#fff; cursor:pointer; }
.scanseiten img { width:4.2rem; height:5.6rem; object-fit:cover; border-radius:4px; border:1px solid var(--line); background:#fff; }
.scanseiten p { flex:1 1 10rem; margin:0; font-size:.9rem; color:var(--ink); }
.scanseiten[hidden], .scan-meldung[hidden] { display:none; }
.scan-meldung { margin:0; padding:.5rem .7rem; border-radius:8px; background:#fdf6e3; border:1px solid #e8d39a; color:#5c4300; font-size:.9rem; }
.belegseiten { margin:.5rem 0 0; }
.ocrtext { white-space:pre-wrap; font-size:.85rem; max-height:24rem; overflow:auto; background:#f6f8fa; padding:.6rem; border-radius:6px; margin:0 0 .6rem; }
.ls-pos .pos-tabelle td { vertical-align:top; } .ls-pos .pos-tabelle td div.muted { font-size:.75rem; }
.ls-pos .pos-tabelle input.zahl { width:4.5rem; min-width:4.5rem; }
.ls-pos .pos-tabelle input[type=checkbox] { width:auto; min-width:0; }

/* Etiketten (/etiketten): Schritte links, Vorschau rechts mitlaufend; auf dem Handy untereinander */

.etiktabelle .etikbild { width:6.2rem; height:2rem; display:block; color:var(--acc); }
.etiktabelle td { vertical-align:middle; }
.etikettbau { display:grid; grid-template-columns:minmax(0, 1fr) 22rem; gap:1.2rem; align-items:start; }
.etikettschritte { display:flex; flex-direction:column; gap:1rem; min-width:0; }
.etikettschritte .formteil legend { display:flex; align-items:center; gap:.5rem; }
.schritt { display:inline-grid; place-items:center; width:1.5rem; height:1.5rem; border-radius:50%; background:var(--acc); color:#fff; font-size:.8rem; }
.etikettvorschau { position:sticky; top:calc(var(--kopf-h, 4rem) + .8rem); display:flex; flex-direction:column; gap:.6rem; min-width:0; }
.etikettvorschau h2.sec { margin:0; font-size:1rem; }
.etikettflaeche { background:#e9edf2; border-radius:8px; padding:1rem; display:flex; flex-direction:column; align-items:center; gap:.5rem; }
.etikettflaeche .banner { margin:0; width:100%; font-size:.85rem; padding:.4rem .6rem; }
.etikettflaeche svg { width:100%; max-height:14rem; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.18); border-radius:2px; }
.etikettknoepfe { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.etikettknoepfe .anzahl { display:flex; align-items:center; gap:.35rem; font-size:.85rem; }
.etikettknoepfe .anzahl input { width:4.2rem; }
.klein { font-size:.8rem; margin:0; }
.wahlreihe { display:flex; flex-wrap:wrap; gap:.4rem; }
.wahlkacheln { display:grid; gap:.5rem; grid-template-columns:repeat(auto-fill, minmax(9.5rem, 1fr)); }
.wahl { position:relative; display:flex; flex-direction:column; align-items:center; text-align:center; gap:.15rem; padding:.55rem .5rem; border:1px solid var(--line); border-radius:8px; background:#fff; cursor:pointer; min-width:0; }
.wahl input { position:absolute; opacity:0; pointer-events:none; }
.wahl b { font-size:.9rem; line-height:1.2; color:var(--ink); }
.wahl small { font-size:.72rem; color:var(--muted); line-height:1.25; }
.wahl:hover { border-color:var(--acc2); }
.wahl:has(input:checked) { border-color:var(--acc); box-shadow:inset 0 0 0 1px var(--acc); background:#eaf0f7; }
.wahl:has(input:focus-visible) { outline:2px solid var(--acc2); outline-offset:1px; }
.wahl.aus { opacity:.35; cursor:not-allowed; }
.wahl.klein { flex-direction:row; padding:.45rem .75rem; min-width:3.6rem; justify-content:center; }
.wahl.klein b { font-size:1rem; }
.wbild { display:block; width:100%; height:3.2rem; color:var(--acc); }
.wbild svg { width:100%; height:100%; }
.wbild.rund { height:2.8rem; }
.schnell { display:flex; flex-wrap:wrap; gap:.35rem; margin-top:.6rem; }
button.chip { background:#fff; color:var(--acc); font-weight:500; padding:.25rem .75rem; }
button.chip:hover { background:#eaf0f7; } button.chip.on { background:var(--acc); color:#fff; }
.laengefeld { display:flex; flex-direction:column; gap:.25rem; max-width:12rem; }
.laengefeld input { font-size:1.2rem; font-weight:600; }
.steigung { display:flex; flex-direction:column; gap:.25rem; margin-top:.7rem; max-width:20rem; font-size:.85rem; }
.etikfelder { display:grid; grid-template-columns:repeat(auto-fill, minmax(11rem, 1fr)); margin-top:.7rem; }
.etikfelder label { display:flex; flex-direction:column; }
.brotherknopf { display:flex; align-items:center; gap:.7rem; text-align:left; background:#fff; color:var(--ink); border:1px solid var(--acc); border-radius:8px; padding:.6rem .8rem; font-weight:400; }
.brotherknopf:hover { background:#eaf0f7; }
.brotherknopf b { display:block; color:var(--acc); } .brotherknopf small { display:block; font-size:.75rem; color:var(--muted); line-height:1.3; }
.bildbox { border:0; border-radius:10px; padding:1rem; max-width:min(30rem, calc(100vw - 2rem)); }
.bildbox img { width:100%; border:1px solid var(--line); margin-bottom:.6rem; }
.bildbox::backdrop { background:rgba(0,0,0,.45); }
@media (max-width:900px) {
  .etikettbau { grid-template-columns:1fr; }
  .etikettvorschau { display:contents; }
  .etikettvorschau > * { order:1; }
  .etikettvorschau > h2.sec { display:none; }
  .etikettvorschau > .etikettflaeche { order:-1; position:sticky; top:var(--kopf-h, 3.5rem); z-index:5; padding:.5rem; }
  .etikettflaeche svg { max-height:6.5rem; width:auto; max-width:100%; }
  .wahlkacheln { grid-template-columns:repeat(auto-fill, minmax(8rem, 1fr)); }
}
.haken { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; margin-top:.8rem; font-size:.9rem; cursor:pointer; }
/* Etiketten: Schrittleiste läuft oben mit (wie die Endabnahme bei Metorbike), Vorschau steht darunter */
.schrittleiste { position:sticky; top:var(--kopf-h, 3.5rem); z-index:8; background:var(--bg); margin:0 0 .9rem; padding:.45rem 0 .5rem; box-shadow:0 1px 0 var(--line); }
.sl-stand { display:flex; align-items:center; gap:.7rem; font-size:.82rem; color:var(--muted); margin-bottom:.4rem; }
.sl-stand b { color:var(--ink); }
.sl-stand progress { flex:1; max-width:16rem; height:.45rem; accent-color:var(--acc); }
.sl-schritte { display:grid; grid-template-columns:repeat(var(--n, 6), minmax(0, 1fr)); gap:.4rem; }
.sl-schritte a { display:flex; align-items:center; gap:.45rem; padding:.35rem .5rem; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); text-decoration:none; min-width:0; }
.sl-schritte a:hover { border-color:var(--acc2); }
.sl-schritte .schritt { flex:none; background:#dfe7e4; color:var(--ink); }
.sl-text { display:flex; flex-direction:column; min-width:0; line-height:1.2; }
.sl-text small { font-size:.7rem; color:var(--muted); }
.sl-text b { font-size:.82rem; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sl-schritte a:not(.ok) .sl-text b { font-weight:400; color:var(--muted); }
.sl-schritte a.ok .schritt { background:var(--acc); color:#fff; font-size:0; }
.sl-schritte a.ok .schritt::after { content:"✓"; font-size:.8rem; }
.sl-schritte a.on { border-color:var(--acc); box-shadow:inset 0 0 0 1px var(--acc); background:color-mix(in srgb,var(--acc) 8%,white); }
.etikettschritte .formteil { scroll-margin-top:calc(var(--kopf-h, 3.5rem) + var(--sl-h, 6rem) + .6rem); }
.etikettvorschau { top:calc(var(--kopf-h, 4rem) + var(--sl-h, 6rem) + .5rem); }
.etikettschritte .formteil label.haken { flex-direction:row; justify-content:flex-start; text-align:left; }
.etikettschritte .formteil label.haken input { width:1.1rem; flex:none; margin:0; }
@media (max-width:900px) {
  .sl-schritte { display:flex; overflow-x:auto; scrollbar-width:none; }
  .sl-schritte a { flex:none; max-width:9.5rem; }
  .etikettvorschau > .etikettflaeche { top:calc(var(--kopf-h, 3.5rem) + var(--sl-h, 5rem)); }
  .etikettschritte .formteil { scroll-margin-top:calc(var(--kopf-h, 3.5rem) + var(--sl-h, 5rem) + 9rem); }
}

/* Startseite: Schnellkacheln statt aufklappbarer Leisten, Formulare im Fenster */
.schnellkacheln { display:grid; grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr)); gap:.6rem; margin:0 0 1.2rem; }
.schnellkachel { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.45rem; min-height:6.4rem; margin:0; padding:.7rem .5rem; background:#fff; border:1px solid var(--line); border-radius:8px; color:var(--ink); font:inherit; font-size:.88rem; line-height:1.25; text-align:center; text-decoration:none; cursor:pointer; box-shadow:none; }
.schnellkachel b { font-weight:600; }
.schnellkachel:hover, .schnellkachel:focus-visible { border-color:var(--acc); box-shadow:0 2px 0 var(--acc); background:#fff; color:var(--ink); }
.schnellkachel .ico { margin:0; }
.schnellkachel.scan { background:#dce6f1; border-color:#b7c9dd; color:var(--acc); }
.schnellkachel.scan .ico { background:#fff; }
@media (max-width:760px) { .schnellkacheln { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.45rem; } .schnellkachel { min-height:5.6rem; padding:.5rem .3rem; font-size:.8rem; } }
.homebox { width:min(46rem,calc(100vw - 2rem)); max-height:calc(100dvh - 2rem); padding:1rem; border:1px solid var(--line); border-radius:10px; box-shadow:0 12px 32px rgba(0,0,0,.2); }
.homebox::backdrop { background:rgba(10,25,45,.35); }
.homebox .boxkopf { display:flex; align-items:center; gap:.5rem; margin:-.2rem 0 .6rem; }
.homebox .boxkopf b { font-size:1.05rem; margin-right:auto; }
.etikettschritte legend .fico.gross { width:20px; height:20px; margin:0; }

/* Projektmanagement (/projektmanagement, Projektseite #planung, Mindmap) nach dem Vorbild der Metorbike-App; Überfälliges in Bernstein */
.priobadge { display:inline-block; padding:.05rem .5rem; border-radius:99px; font-size:.72rem; font-weight:600; vertical-align:.15em; background:#fff0d1; color:#8a5200; }
.priobadge.dringend { background:#f0b429; color:#2b1f00; }
h1 .priobadge { font-size:.8rem; vertical-align:.4em; }
.spaet { color:var(--warn); font-weight:600; }
.badge.spaetbadge { background:#f0b429; color:#2b1f00; font-weight:600; }
.pmkopf { position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:.6rem 1rem; margin-bottom:.6rem; }
.pmkopf h1 { margin:0; flex:1; }
.pmtools { display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; }
.pmtools button, .pmtools .foldall { margin:0; white-space:nowrap; }
.pmedithint { background:#eef3f8; border:1px solid var(--line); border-radius:8px; padding:.5rem .8rem; }
.pmedithint b.bad { color:var(--warn); }
.pmgrid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin-bottom:1rem; }
.pmw { grid-column:1/-1; display:flex; flex-direction:column; min-width:0; }
.pmw.halb { grid-column:auto; }
.pmw > .block, .pmw > .tiles, .pmw > .pmhello { margin:0; }
.pmw > .block { flex:1; }
.pmw > .block > h2:first-child { margin-top:.2rem; }
.pmwbar { display:none; }
body.pmediting .pmwbar { display:flex; align-items:center; gap:.3rem; padding:.3rem .4rem .3rem .6rem; margin-bottom:.4rem; background:var(--acc); color:#fff; border-radius:8px; cursor:grab; touch-action:none; }
body.pmediting .pmw { outline:2px dashed color-mix(in srgb,var(--acc2) 55%,white); outline-offset:4px; border-radius:8px; }
body.pmdragging, body.pmdragging * { cursor:grabbing !important; user-select:none; }
.pmw.pmdrag { opacity:.55; }
.pmwbar .pmgrip { display:flex; align-items:center; gap:.45rem; flex:1; min-width:0; font-size:.9rem; }
.pmwbar .pmgrip svg { flex:none; width:1.1rem; height:1.1rem; }
.pmwbar .pmgrip b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pmwbar button { flex:none; margin:0; padding:.2rem .55rem; border:0; background:#fff; color:var(--acc); font-weight:600; cursor:pointer; border-radius:6px; }
.pmwbar button:hover { background:#e3eaf3; }
@media print { .pmgrid { display:block; } .pmw { margin-bottom:1rem; } }
@media (max-width:900px) { .pmw.halb { grid-column:1/-1; } .pmwbar [data-act="breite"] { display:none; } }

.pmhello { display:flex; align-items:center; gap:1.1rem; flex-wrap:wrap; background:var(--card); border:1px solid var(--line); border-left:5px solid var(--acc); border-radius:10px; padding:1rem 1.3rem; }
.pmdate { display:flex; flex-direction:column; align-items:center; line-height:1.1; min-width:2.6rem; color:var(--acc); }
.pmdate small { font-size:.7rem; font-weight:600; letter-spacing:.06em; } .pmdate b { font-size:1.6rem; font-weight:700; }
.pmhellotext { display:flex; flex-direction:column; flex:1; min-width:min(14rem,100%); }
.pmhellotext b { font-size:1.3rem; color:var(--acc); }
.pmhellotext span { color:var(--muted); font-size:.92rem; }
.pmquick { margin-left:auto; }
.pmlive { display:inline-flex; align-items:center; gap:.45rem; padding:.35rem .8rem; border-radius:99px; background:#e3eaf3; color:var(--acc); font-weight:600; font-size:.88rem; text-decoration:none; }
.pmlive i { width:.55rem; height:.55rem; border-radius:50%; background:var(--ok); animation:pmpuls 1.6s infinite; }
.pmlive small { font-weight:400; color:var(--muted); }
@keyframes pmpuls { 50% { opacity:.3; } }
@media (prefers-reduced-motion:reduce) { .pmlive i { animation:none; } }
.pmtiles .tile small { font-size:.75rem; color:var(--muted); }
.pmtiles .tile.attn { border-color:#f0b429; background:#fff8e6; box-shadow:inset 4px 0 0 #f0b429; }
.pmtiles .tile.attn > b { color:#8a5200; }
.pmtrack { display:block; height:.45rem; background:#e8edf2; border-radius:99px; overflow:hidden; }
.pmtrack i { display:block; height:100%; background:var(--pc,var(--acc2)); border-radius:99px; }
.pmtrack.over i, .pmprog.over .pmtrack i { background:#f0b429; }
.pmtrack.slim { height:.25rem; margin-top:.5rem; }
.tile .pmtrack { margin-top:.35rem; }

.pmcards { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(17.5rem,100%),1fr)); gap:.9rem; }
.pmcard { display:flex; flex-direction:column; gap:.55rem; padding:.95rem 1.05rem; background:var(--card); border:1px solid var(--line); border-top:4px solid var(--pc); border-radius:10px; color:var(--ink); text-decoration:none; }
.pmcard:hover { border-color:var(--pc); box-shadow:0 4px 14px rgba(0,0,0,.08); }
.pmcard-kopf { display:flex; align-items:center; gap:.7rem; }
.pmcard-name { display:flex; flex-direction:column; min-width:0; flex:1; }
.pmcard-name b { font-size:1.02rem; line-height:1.25; }
.pmcard-name small { color:var(--muted); font-size:.8rem; }
.pmsq { display:inline-grid; place-items:center; flex:none; width:1.6rem; height:1.6rem; border-radius:5px; background:var(--pc,var(--acc)); color:#fff; font-style:normal; font-size:.62rem; font-weight:700; letter-spacing:.02em; }
.pmsq.big { width:2.6rem; height:2.6rem; font-size:.95rem; border-radius:8px; }
.pmzeile { display:flex; flex-wrap:wrap; gap:.35rem; align-items:center; }
.pmstand { padding:.1rem .6rem; border-radius:99px; font-size:.76rem; font-weight:600; background:#eef2f6; color:var(--muted); }
.pmstand.ueberfaellig { background:#f0b429; color:#2b1f00; }
.pmstand.bald { background:#fff0d1; color:#8a5200; }
.pmstand.laeuft { background:#e3eaf3; color:var(--acc); }
.pmstand.geplant { background:#e3ecfa; color:#1f5fbf; }
.pmstand.fertig { background:#d9f2e4; color:var(--ok); }
.pmphase { display:flex; flex-direction:column; gap:.25rem; }
.pmphase small { font-size:.8rem; color:var(--muted); } .pmphase small b { color:var(--ink); }
.pmsegs { display:flex; gap:3px; }
.pmsegs i { flex:1; height:.45rem; border-radius:2px; background:#e3e9ef; }
.pmsegs i:first-child { border-radius:99px 2px 2px 99px; } .pmsegs i:last-child { border-radius:2px 99px 99px 2px; }
.pmsegs i.done { background:color-mix(in srgb,var(--pc) 45%,white); }
.pmsegs i.now { background:var(--pc); }
.pmsegs i.late { box-shadow:inset 0 0 0 1.5px #f0b429; }
.pmms { display:inline-flex; align-items:center; gap:.4rem; align-self:flex-start; padding:.1rem .55rem; border-radius:99px; background:#f2f5f8; font-size:.8rem; }
.pmms i { width:.55rem; height:.55rem; border-radius:1px; background:var(--pc); transform:rotate(45deg); }
.pmms.late { background:#fff0d1; color:#8a5200; font-weight:600; } .pmms.late i { background:#d97706; }
.pmms small { font-weight:400; color:var(--muted); }
.pmprog { display:flex; flex-direction:column; gap:.25rem; }
.pmprog small { display:flex; gap:.35rem; font-size:.8rem; color:var(--muted); }
.pmprog small b { color:var(--ink); }
.pmprog small em { margin-left:auto; font-style:normal; }
.pmprog.over small em { color:var(--warn); font-weight:600; }
.pmchips { display:flex; flex-wrap:wrap; gap:.3rem; }
.pmchips i { font-style:normal; font-size:.74rem; background:#eef2f6; border-radius:99px; padding:.1rem .55rem; }
.pmchips i.late { background:#fff0d1; color:#8a5200; font-weight:600; }
.pmchips i.ok { background:#d9f2e4; color:var(--ok); }
.pmempty { text-align:center; padding:1.5rem 1rem; background:var(--card); border:1px dashed var(--line); border-radius:10px; }
.pmempty h3 { margin:.3rem 0; } .pmempty p { margin:0; }
.pmemptyico { width:2.2rem; height:2.2rem; color:var(--acc2); }

/* Zeitplan (Übersicht) und Zeitbalken (Projektseite) */
.pmtl { display:grid; grid-template-columns:minmax(9rem,15rem) 1fr; background:var(--card); border:1px solid var(--line); border-radius:10px; overflow-x:auto; }
.pmtl-names { position:sticky; left:0; z-index:3; background:var(--card); border-right:1px solid var(--line); padding-bottom:1.3rem; }
.pmtl-head { height:2rem; padding:.55rem .6rem 0; border-bottom:1px solid var(--line); font-size:.72rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); }
.pmtl-name { display:flex; align-items:center; gap:.4rem; height:2.2rem; padding:0 .6rem 0 .5rem; border-top:1px solid #f0f3f6; color:var(--ink); font-size:.86rem; text-decoration:none; white-space:nowrap; overflow:hidden; }
a.pmtl-name:hover { background:#f4f7fa; }
.pmtl-name i { flex:none; width:.6rem; height:.6rem; border-radius:3px; background:var(--c); }
.pmtl-name > span:not(.pmzweig) { overflow:hidden; text-overflow:ellipsis; }
.pmzweig { color:var(--muted); }
.pmtl-phase { flex:none; margin-left:auto; padding-left:.4rem; font-size:.7rem; color:var(--muted); }
.pmtl-chart { position:relative; min-width:34rem; padding-bottom:1.3rem; }
.pmtl-chart .pmtl-head { padding:0; }
.pmtl-grid { position:absolute; inset:0; pointer-events:none; }
.pmtl-grid span { position:absolute; top:0; bottom:0; padding:.55rem .4rem 0; border-left:1px solid #e6ebf0; font-size:.75rem; color:var(--muted); white-space:nowrap; overflow:hidden; }
.pmtl-grid span.now { background:rgba(36,71,107,.05); color:var(--acc); font-weight:700; }
.pmtl-today { position:absolute; top:0; bottom:0; width:2px; margin-left:-1px; background:var(--acc); opacity:.75; }
.pmtl-today b { position:absolute; bottom:.2rem; left:4px; font-size:.66rem; color:var(--acc); white-space:nowrap; }
.pmtl-lane { position:relative; height:2.2rem; border-top:1px solid #f0f3f6; }
.pmtl-bar { position:absolute; top:.45rem; display:flex; align-items:center; height:1.3rem; overflow:hidden; background:color-mix(in srgb,var(--c) 26%,white); border:1px solid var(--c); border-radius:6px; color:var(--ink); text-decoration:none; }
a.pmtl-bar:hover { box-shadow:0 2px 8px rgba(0,0,0,.18); }
.pmtl-bar i { position:absolute; top:0; bottom:0; left:0; background:var(--c); opacity:.85; }
.pmtl-bar span { position:relative; z-index:3; margin-left:.25rem; padding:0 .3rem; border-radius:4px; background:rgba(255,255,255,.88); font-size:.68rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pmtl-bar.late { border-color:#d97706; box-shadow:0 0 0 2px #f0b429; }
.pmtl-bar.offen { background:linear-gradient(90deg,color-mix(in srgb,var(--c) 30%,white),rgba(255,255,255,0)); border-right:0; border-radius:6px 0 0 6px; }
.pmtl-bar.cutl { border-left-style:dashed; border-top-left-radius:0; border-bottom-left-radius:0; }
.pmtl-bar.cutr { border-right-style:dashed; border-top-right-radius:0; border-bottom-right-radius:0; }
.pmtl-ziel { position:absolute; top:.62rem; z-index:1; width:.9rem; height:.9rem; margin-left:-.45rem; background:var(--c); border-radius:2px; transform:rotate(45deg); }
.pmtl-ziel.late { background:#d97706; }
.pmtl-cut { position:absolute; top:.45rem; z-index:2; width:2px; height:1.3rem; margin-left:-1px; background:#fff; pointer-events:none; }
.pmtl-mark { position:absolute; top:.12rem; z-index:2; width:.55rem; height:.55rem; margin-left:-.3rem; background:var(--c); border:1.5px solid #fff; transform:rotate(45deg); }
.pmtl-mark.done { background:var(--ok); } .pmtl-mark.late { background:#d97706; }
.pmtl-ohne { position:absolute; left:.5rem; top:.6rem; font-size:.72rem; color:var(--muted); }
.pmnote { font-size:.8rem; margin:.4rem 0 0; }
.pjgantt { margin:.6rem 0 .3rem; }
.pjgantt .pmtl-name.pjg-gesamt { font-weight:700; }
.pjgantt .pmtl-name i { background:var(--c); }
.pjgantt .pmtl-name.done { color:var(--muted); } .pjgantt .pmtl-name.done i { background:var(--ok); }
.pjgantt .pmtl-name.pjg-phase.todo i { background:#b9c4cf; }
.pjgantt .pmtl-name.pjg-meilenstein i { width:.55rem; height:.55rem; border-radius:1px; transform:rotate(45deg); }
.pjgantt .pmtl-name.late span { color:var(--warn); font-weight:600; }
.pjgantt .pmtl-lane.pjg-gesamt { background:rgba(36,71,107,.03); }
.pmtl-bar.pjg-done, .pmtl-ziel.pjg-done { --c:var(--ok); }
.pmtl-bar.pjg-todo, .pmtl-ziel.pjg-todo { --c:#9fadba; }
.pmtl-bar.pjg-now { box-shadow:0 0 0 2px color-mix(in srgb,var(--c) 30%,transparent); }
@media (max-width:760px) { .pmtl { grid-template-columns:8.5rem 1fr; } .pmquick { margin-left:0; } }

/* Phasenleiste auf der Projektseite: Klick setzt die aktuelle Phase */
.pjsteps { display:flex; gap:.2rem; list-style:none; margin:0 0 .8rem; padding:0; overflow-x:auto; }
.pjsteps li { flex:1 1 0; min-width:6.8rem; }
.pjsteps li > form { height:100%; margin:0; }
.pjsteps li > form > button { display:block; width:100%; height:100%; margin:0; padding:.45rem .9rem .45rem 1.1rem; border:0; border-radius:0; background:#e8edf2; color:#4a5c6e; font:inherit; text-align:left; cursor:pointer;
  clip-path:polygon(0 0,calc(100% - .6rem) 0,100% 50%,calc(100% - .6rem) 100%,0 100%,.6rem 50%); }
.pjsteps li:first-child > form > button { clip-path:polygon(0 0,calc(100% - .6rem) 0,100% 50%,calc(100% - .6rem) 100%,0 100%); border-radius:8px 0 0 8px; }
.pjsteps li > form > button:hover { filter:brightness(.95); }
.pjsteps b { display:block; font-size:.88rem; } .pjsteps small { display:block; font-size:.74rem; }
.pjsteps .pjnr { display:inline-grid; place-items:center; width:1.2rem; height:1.2rem; margin-right:.15rem; border-radius:50%; background:rgba(255,255,255,.7); font-size:.7rem; }
.pjsteps .done > form > button { background:#dff3e8; color:#1f5a3c; }
.pjsteps .now > form > button { background:var(--acc); color:#fff; }
.pjsteps .now .pjnr { background:rgba(255,255,255,.25); }
.pjsteps .late > form > button { box-shadow:inset 0 -3px 0 #f0b429; }
.pjsteps .late small { color:#8a5200; font-weight:600; } .pjsteps .now.late small { color:#ffe2a8; }
.phasezeile { padding:.4rem 0; border-bottom:1px solid #eef1f4; }
td.knoepfe { white-space:nowrap; } td.knoepfe form { display:inline; margin:0 .2rem 0 0; }

/* Board */
.pmumschalt { display:flex; gap:.4rem; margin:0 0 .6rem; }
.pmboard { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(15rem,1fr); gap:1rem; overflow-x:auto; padding-bottom:.6rem; align-items:start; }
.pmcol { min-height:6rem; background:#f2f5f8; border-radius:10px; padding:.5rem; }
.pmcol h3 { display:flex; align-items:center; gap:.35rem; font-size:.98rem; margin:.1rem .2rem .5rem; }
.pmcol h3 .pmdot { margin-right:0; }
.pmdot { display:inline-block; width:.65rem; height:.65rem; margin-right:.4rem; border-radius:50%; background:var(--c); vertical-align:.02em; font-style:normal; flex:none; }
.pmbcard { display:block; background:var(--card); border:1px solid var(--line); border-left:4px solid var(--pc); border-radius:8px; padding:.55rem .7rem; margin-bottom:.5rem; color:var(--ink); text-decoration:none; }
.pmbcard:hover { border-color:var(--acc2); border-left-color:var(--pc); }
.pmbcard.late { background:#fff8e6; }
.pmparent { display:block; font-size:.72rem; color:var(--muted); margin-bottom:.15rem; }
.pmbtitle { display:flex; align-items:flex-start; gap:.5rem; } .pmbtitle b { flex:1; font-weight:600; line-height:1.3; }
.pmmeta { display:flex; flex-wrap:wrap; gap:.2rem .65rem; margin-top:.4rem; font-size:.78rem; color:var(--muted); }
.pmmeta:empty { display:none; }
.pmbphase { font-weight:600; color:var(--acc2); }
.pmnone { font-size:.85rem; margin:.3rem .2rem; }

/* Meine Aufgaben und kleiner Kalender */
.pmgh { margin:.8rem 0 .2rem; font-size:.78rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.pmgh small { font-weight:400; } .pmgh.late { color:var(--warn); } .pmgh.today { color:var(--acc); }
.pmtasks { margin:0; padding:0; list-style:none; }
.pmtasks li { display:flex; align-items:flex-start; gap:.6rem; padding:.45rem .2rem; border-bottom:1px solid #eef1f4; }
.pmcheckf { margin:0; display:inline; }
.pmcheck { display:grid; place-items:center; width:1.45rem; height:1.45rem; margin:0; padding:0; border:2px solid var(--acc2); border-radius:50%; background:#fff; color:transparent; cursor:pointer; flex:none; }
.pmcheck svg { width:1rem; height:1rem; }
.pmcheck:hover { color:var(--ok); border-color:var(--ok); background:#fff; }
.pmcheck.half { background:linear-gradient(90deg,#e3eaf3 50%,#fff 50%); }
.pmtask { display:flex; flex-direction:column; min-width:0; }
.pmtask a { color:var(--ink); font-weight:500; text-decoration:none; } .pmtask a:hover { text-decoration:underline; }
.pmtask small { color:var(--muted); font-size:.78rem; }
.pmmorelink { display:inline-block; margin-top:.4rem; font-size:.85rem; }
.pmcal .calday { min-height:4.2rem; }
.pmcal .calitem { display:block; font-size:.68rem; line-height:1.25; padding:.05rem .25rem; border-left:3px solid var(--c); background:color-mix(in srgb,var(--c) 10%,white); border-radius:3px; color:var(--ink); text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pmcal .calmore { font-size:.68rem; color:var(--muted); }
.pmlegende { display:flex; flex-wrap:wrap; gap:.3rem 1rem; margin:.5rem 0 0; font-size:.78rem; color:var(--muted); }
.pmlegende i { display:inline-block; width:.7rem; height:.7rem; border-radius:50%; margin-right:.3rem; vertical-align:-.05em; }
@media (max-width:760px) { .pmcal .calday { min-height:2.6rem; } .pmcal .calitem { font-size:0; height:.4rem; padding:0; margin-top:1px; } }

/* Fenster „+ Projekt“ / „+ Aufgabe“ */
.pmdlg { width:min(46rem,calc(100vw - 2rem)); max-height:calc(100dvh - 2rem); padding:1rem; border:1px solid var(--line); border-radius:10px; box-shadow:0 12px 32px rgba(0,0,0,.2); }
.pmdlg::backdrop { background:rgba(10,25,45,.35); }
.pmdlg-kopf { display:flex; align-items:center; gap:.5rem; margin:-.2rem 0 .6rem; }
.pmdlg-kopf h3 { flex:1; margin:0; color:var(--acc); }

/* Mindmap */
.mm-bar { display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; margin:.2rem 0 .5rem; }
.mm-gap { flex:1; }
.mmwrap { display:flex; height:72vh; min-height:22rem; overflow:auto; background:radial-gradient(circle at 1px 1px,#d9e1ea 1px,transparent 0) 0 0/22px 22px,var(--card); border:1px solid var(--line); border-radius:10px; cursor:grab; user-select:none; }
.mmwrap.dragging { cursor:grabbing; }
.mindmap { display:block; margin:auto; flex:none; font-family:inherit; }
.mindmap a:hover rect { stroke-width:2.5; }
.mindmap a:focus-visible rect, .mm-tog:focus-visible circle { stroke:#f0b429; stroke-width:3; }
.mindmap a:focus, .mm-tog:focus { outline:none; }
.mm-tog { cursor:pointer; }
.mm-legend { display:flex; flex-wrap:wrap; margin:.5rem 0 1rem; font-size:.82rem; color:var(--muted); gap:.3rem 1rem; }
.mm-legend span { display:inline-flex; align-items:center; gap:.35rem; }
.mm-key { display:inline-block; width:1.4rem; height:.8rem; border-radius:4px; border:1.5px solid var(--acc2); background:#fff; }
.mm-key.bereich { background:var(--acc2); }
.mm-key.projekt { border-width:2px; }
.mm-key.gruppe { border-radius:99px; background:#e3eaf3; }
.mm-key.aufgabe { border-color:var(--line); }
.mm-key.late { border:2px solid #d97706; }
.mm-key.fertig { border-style:dashed; opacity:.6; }
.mm-outline ul { margin:.3rem 0 .3rem 1.1rem; padding:0; }
.mm-outline li { margin:.15rem 0; }
.mm-outline .mm-projekt > a, .mm-outline .mm-bereich > a { font-weight:600; }
form.mmform > label.check { align-self:flex-end; min-height:2.3rem; display:inline-flex; align-items:center; }      /* Häkchen auf Höhe des Felds „Bereich“ */
@media (max-width:600px) { .pmkopf h1 { flex-basis:100%; } .pmhello { padding:.8rem 1rem; gap:.8rem; } .pmhellotext b { font-size:1.15rem; } }
@media (max-width:760px) { .pmtl-names .pmtl-phase { display:none; } }

/* Aufgabenseite: Anhänge und Aktivität (nach der Ticketseite der Metorbike-App) */
.tkdateien { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(9.5rem,calc(50% - .35rem)),1fr)); gap:.7rem; margin-bottom:.8rem; }
.tkdatei { display:flex; flex-direction:column; gap:.4rem; padding:.55rem; background:var(--card); border:1px solid var(--line); border-radius:8px; min-width:0; }
.tkdatei form { margin:0; }
.tkbild { display:block; aspect-ratio:4/3; overflow:hidden; border-radius:6px; background:#eef2f6; }
.tkbild img { width:100%; height:100%; object-fit:cover; display:block; }
.tkicon { display:grid; place-items:center; aspect-ratio:4/3; border-radius:6px; background:#e3eaf3; color:var(--acc); text-decoration:none; }
.tkicon b { font-size:1.1rem; letter-spacing:.06em; }
.tkname { display:flex; flex-direction:column; min-width:0; }
.tkname a { color:var(--ink); font-weight:500; font-size:.88rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tkname small { color:var(--muted); font-size:.75rem; }
.tkablage-form { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; }
.tkablage { flex:1; min-width:min(16rem,100%); display:flex; flex-direction:column; align-items:center; gap:.2rem; padding:1rem; border:2px dashed var(--acc2); border-radius:10px; background:#f4f7fa; text-align:center; cursor:pointer; }
.tkablage.over { background:#e3eaf3; border-color:var(--acc); }
.tkablage input[type=file] { position:absolute; width:1px; height:1px; opacity:0; }
.tkablage small { color:var(--muted); font-size:.78rem; }
.tkkommentar { margin-bottom:.6rem; }
.tkreiter { display:flex; gap:.4rem; margin:.4rem 0 .5rem; }
.tkaktiv { list-style:none; margin:0; padding:0; }
.tkaktiv li { display:flex; flex-wrap:wrap; align-items:flex-start; gap:.3rem .8rem; padding:.5rem .2rem; border-bottom:1px solid #eef1f4; }
.tkaktiv li[hidden] { display:none; }
.tkaktiv .tkzeit { flex:none; width:8.5rem; font-size:.78rem; color:var(--muted); font-variant-numeric:tabular-nums; }
.tkaktiv .tktext { flex:1; min-width:min(14rem,100%); }
.tkaktiv .tk-kommentar .tktext { background:#f4f7fa; border-left:3px solid var(--acc2); padding:.35rem .6rem; border-radius:4px; }
.tkaktiv form { margin:0; }
.tkaktiv .tk-verlauf .tktext { font-size:.86rem; }
@media (max-width:600px) { .tkaktiv .tkzeit { width:100%; } }

/* Fertigungsplan: Ablaufbild (Kästen mit Pfeilen) und Zeitbild (Vorgabe gegen gemessen) */
.fpknoepfe { display:flex; flex-wrap:wrap; gap:.4rem; margin:0 0 .7rem; }
.fpablauf { list-style:none; margin:0 0 1rem; padding:0; display:flex; flex-wrap:wrap; gap:1.6rem .9rem; align-items:stretch; }
.fpgang { position:relative; flex:0 1 11.5rem; min-width:9rem; display:flex; flex-direction:column; gap:.35rem; padding:.6rem .7rem; background:var(--card); border:1px solid var(--line); border-top:4px solid var(--acc2); border-radius:8px; }
.fpgang:not(:last-child)::after { content:""; position:absolute; right:-.9rem; top:50%; width:.9rem; height:2px; background:var(--acc2); }
.fpgang:not(:last-child)::before { content:""; position:absolute; right:-.95rem; top:calc(50% - 4px); border:5px solid transparent; border-left-color:var(--acc2); border-right:0; }
.fpgang.fpende { flex:0 0 auto; min-width:6rem; border-top-color:var(--ok); background:#f2faf5; }
.fpgang.over { border-top-color:#f0b429; }
.fpgang.an { border-color:var(--acc); box-shadow:0 0 0 2px var(--acc); }
.fpkopf { display:flex; align-items:center; gap:.45rem; } .fpkopf b { line-height:1.25; }
.fpnr { display:inline-grid; place-items:center; flex:none; min-width:1.9rem; height:1.5rem; padding:0 .25rem; border-radius:99px; background:var(--acc); color:#fff; font-style:normal; font-size:.72rem; font-weight:700; }
.fpende .fpnr { background:var(--ok); }
.fpbild { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:6px; background:#eef2f6; }
.fpinfo { display:flex; flex-direction:column; gap:.1rem; font-size:.78rem; color:var(--muted); }
.fpcheck { color:var(--ink); }
.fpstart .fpgang { padding:0; }
.fpstart .fpgang form { margin:0; height:100%; }
.fpstart .fpgang button { display:flex; flex-direction:column; gap:.35rem; width:100%; height:100%; margin:0; padding:.6rem .7rem; border:0; border-radius:6px; background:transparent; color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.fpstart .fpgang button:hover { background:#f4f7fa; }
.fplos { margin-top:auto; font-style:normal; font-weight:700; color:var(--acc); font-size:.85rem; }
.fpgang.an .fplos { color:var(--ok); }
.fpstart .fpende { padding:.6rem .7rem; }
@media (max-width:600px) {
  .fpablauf { flex-direction:column; gap:1.2rem; }
  .fpgang { flex:1 1 auto; }
  .fpgang:not(:last-child)::after { right:auto; left:1.5rem; top:auto; bottom:-1.2rem; width:2px; height:1.2rem; }
  .fpgang:not(:last-child)::before { right:auto; left:calc(1.5rem - 4px); top:auto; bottom:-1.25rem; border:5px solid transparent; border-top-color:var(--acc2); border-bottom:0; }
  .fpbild { max-width:12rem; }
}
.fpzeit { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:.8rem 1rem; margin:0 0 .8rem; }
.fpanteil { display:flex; height:1.6rem; border-radius:6px; overflow:hidden; margin:0 0 .8rem; }
.fpanteil span { display:flex; align-items:center; min-width:0; padding:0 .35rem; color:#fff; font-size:.7rem; overflow:hidden; white-space:nowrap; }
.fpanteil b { overflow:hidden; text-overflow:ellipsis; font-weight:600; }
.fpc0 { background:#24476b; } .fpc1 { background:#3d6e9e; } .fpc2 { background:#0e8a8a; } .fpc3 { background:#7c4a2d; } .fpc4 { background:#4b6584; } .fpc5 { background:#9c3d54; }
.fpzeile { display:grid; grid-template-columns:minmax(7rem,13rem) 1fr; gap:.6rem; align-items:center; padding:.3rem 0; border-top:1px solid #eef1f4; }
.fpname { display:flex; align-items:center; gap:.4rem; font-size:.86rem; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fpbalken { display:flex; flex-direction:column; gap:3px; min-width:0; }
.fpsoll, .fpist { display:block; min-width:2px; height:1rem; border-radius:3px; position:relative; }
.fpsoll { background:var(--acc2); } .fpist { background:#9fadba; } .fpist.over { background:#f0b429; }
.fpbalken em { position:absolute; left:calc(100% + .35rem); top:-.05rem; font-style:normal; font-size:.72rem; color:var(--muted); white-space:nowrap; }
.fpbalken > span { max-width:calc(100% - 7.5rem); }
.fplegende { display:flex; flex-wrap:wrap; gap:.3rem 1rem; margin:.6rem 0 0; font-size:.76rem; color:var(--muted); }
.fplegende i { display:inline-block; width:.9rem; height:.6rem; border-radius:2px; margin-right:.3rem; vertical-align:-.02em; }
.fpvorgabe { align-items:center; gap:.6rem; margin:0 0 .6rem; } .fpvorgabe p { margin:0; }
.fpgangform { padding:.6rem 0; border-bottom:1px solid #eef1f4; } .fpgangform h3 { margin:.2rem 0; }
@media (max-width:600px) { .fpzeile { grid-template-columns:1fr; gap:.2rem; } }
/* Druckansicht */
.fpdruckkopf { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; }
.fpdruckkopf h1 { margin:0; } .fpartikel { margin:.2rem 0 .6rem; font-size:1.1rem; }
.fplogo { height:28px; width:auto; }
.fpfakten { margin-bottom:.8rem; }
.fpdrucktab { width:100%; border-collapse:collapse; }
.fpdrucktab th, .fpdrucktab td { border:1px solid var(--line); padding:.4rem .5rem; vertical-align:top; font-size:.88rem; }
.fpdruckbild { display:block; max-width:9rem; margin-top:.4rem; border-radius:4px; }
.fpkasten { display:inline-block; width:1.2rem; height:1.2rem; border:1.5px solid var(--ink); border-radius:3px; }
.fpfeld { color:var(--muted); font-size:.8rem; }
@media print {
  header, .kopf, .subnav, .noprint, .foldall, .blockfold { display:none !important; }
  main { margin:0; max-width:none; padding:0; }
  .fpgang { break-inside:avoid; } .fpdrucktab tr { break-inside:avoid; }
  body { background:#fff; }
}

/* Teil bauen (Werkbank) */
.bauwahl { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(20rem,100%),1fr)); gap:1rem; }
h2.sec.bauh { margin:0 0 .4rem; font-size:1.2rem; }
.baukopf { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem 1.2rem; }
.baukopf > div:first-child { flex:1; min-width:min(14rem,100%); }
.baukopf h2 a { color:var(--acc); text-decoration:none; }
.bauzahlen { display:flex; flex-wrap:wrap; gap:.3rem 1rem; font-size:.88rem; color:var(--muted); } .bauzahlen b { color:var(--ink); }
.baustueck { align-items:center; gap:.5rem; } .baustueck > b { margin-right:.3rem; }
form.inline.baustueck > button { margin-top:0; }
.baustopp { margin:.4rem 0 1rem; }
.baulink { margin:.4rem 0 0; }
.schnellkachel.bauen { background:#eef3f8; }

/* Angebote */
.angebotaktionen { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.angebotaktionen form { margin:0; }
.badge.ang-entwurf { background:#e4e8ef; } .badge.ang-offen { background:#3a6c9c; color:#fff; font-weight:600; }
.badge.ang-angenommen { background:#d9f2e4; color:var(--ok); font-weight:600; } .badge.ang-abgelehnt { background:#eceeee; color:#5d6b79; }
h1 .badge { font-size:.8rem; vertical-align:.4em; }
.positionswahl:has(#pa-berechnung:checked) .pa-berechnung { display:block; }
.fpdruckkopf > div { min-width:0; } .fplogo { flex:none; max-width:30%; height:auto; max-height:28px; }
@media print { .fpdruckscroll { overflow:visible; } }

/* Übersichtlich: Schrittleiste im Angebot, Hinweiszeile auf der Werkbank, „als Nächstes“ im Ablauf */
.angschritte { display:flex; gap:.25rem; list-style:none; margin:0 0 .6rem; padding:0; overflow-x:auto; }
.angschritte li { flex:1 1 0; min-width:7.5rem; }
.angschritte a { display:flex; align-items:center; gap:.45rem; height:100%; padding:.5rem .7rem; background:#e8edf2; color:#4a5c6e; text-decoration:none; font-size:.86rem; font-weight:600; border-radius:8px; }
.angschritte i { display:inline-grid; place-items:center; flex:none; width:1.45rem; height:1.45rem; border-radius:50%; background:#fff; font-style:normal; font-size:.75rem; }
.angschritte .done a { background:#dff3e8; color:#1f5a3c; } .angschritte .done i { background:var(--ok); color:#fff; }
.angschritte .now a { background:var(--acc); color:#fff; } .angschritte .now i { background:#fff; color:var(--acc); }
.angnext, .bauhinweis { margin:0 0 1rem; padding:.6rem .9rem; background:#eef3f8; border-left:4px solid var(--acc); border-radius:6px; }
.bauhinweis.an { background:#eef8f2; border-left-color:var(--ok); }
.fpgang.naechst { border-style:dashed; border-color:var(--acc2); border-top-style:solid; }
.fpgang.naechst .fplos { color:var(--acc); }
.baustand { display:inline-grid; place-items:center; min-width:3rem; height:2.4rem; padding:0 .6rem; border-radius:8px; background:#eef3f8; color:var(--acc); font-size:1.4rem; font-weight:700; }
form.inline.baustueck { align-items:center; }
form.inline.baustueck > button, form.inline.baustueck > .baustand { margin-top:0; }
.baustueck label { margin:0; }
@media (max-width:600px) { .angschritte li { min-width:6.3rem; } .angschritte a { font-size:.8rem; padding:.45rem .5rem; } }
/* Etiketten: Serie (mehrere Längen), Verzeichnis mit Reihen und Auswahl, Druckseite */
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.laengenmodus { display:flex; flex-wrap:wrap; gap:.4rem; margin-bottom:.7rem; }
.laengenmodus .wahl { padding:.45rem .9rem; }
.vonbis { display:flex; gap:.8rem; flex-wrap:wrap; margin-bottom:.35rem; }
.vonbis label { display:flex; flex-direction:column; gap:.25rem; width:8rem; }
.vonbis input { font-size:1.15rem; font-weight:600; }
.serieninfo { margin:.6rem 0 0; font-size:.88rem; }
.serienvorschau { display:grid; grid-template-columns:repeat(auto-fill, minmax(7.5rem, 1fr)); gap:.4rem; max-height:16rem; overflow:auto; padding:.4rem; background:#e9efed; border-radius:8px; }
.serienvorschau svg { width:100%; height:auto; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.15); border-radius:2px; }
.etiktabelle .wahlspalte { width:2.2rem; text-align:center; }
.etiktabelle .wahlspalte input { width:1.1rem; height:1.1rem; margin:0; }
.etiktabelle tr.reihenkopf td { background:color-mix(in srgb,var(--acc) 7%,white); padding-top:.4rem; padding-bottom:.4rem; }
.etiktabelle tr.reihenkopf b { color:var(--acc); }
.reihedrucken { margin-left:.6rem; font-size:.82rem; white-space:nowrap; }
.auswahlleiste { position:sticky; bottom:0; z-index:9; display:flex; align-items:center; gap:.7rem; flex-wrap:wrap; justify-content:flex-end; margin-top:1rem; padding:.6rem .9rem; background:#fff; border:1px solid var(--acc); border-radius:10px; box-shadow:0 -2px 12px rgba(0,0,0,.12); }
.auswahlleiste span { margin-right:auto; }
.druckleiste { display:flex; flex-wrap:wrap; align-items:center; gap:.7rem 1rem; margin:0 0 1rem; }
.druckleiste .anzahl { display:flex; align-items:center; gap:.4rem; font-size:.85rem; }
.druckleiste .anzahl input { width:4.5rem; }
.druckraster { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap:.8rem; }
.druckkarte { display:flex; flex-direction:column; gap:.4rem; padding:.7rem; background:#e9efed; border-radius:8px; color:var(--ink); text-decoration:none; }
.druckkarte svg { width:100%; height:auto; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.18); border-radius:2px; }
.druckkarte b { display:block; font-size:.9rem; } .druckkarte small { color:var(--muted); font-size:.78rem; }
.druckkarte:hover { outline:2px solid var(--acc2); }
.bildbox-bilder { display:flex; flex-direction:column; gap:.4rem; max-height:50vh; overflow:auto; margin-bottom:.6rem; }
.bildbox-bilder img { width:100%; border:1px solid var(--line); margin:0; }
.etiktabelle tr.reihenkopf .rk { position:sticky; left:.7rem; display:inline-block; max-width:calc(100vw - 6rem); white-space:normal; }
/* Lager mit QR-Codes (app/lagerscan.py) und Werkzeugmaschinen (app/maschinen_seiten.py) */
.klein { font-size:.8rem; } .nowrap { white-space:nowrap; }
.knopfreihe { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .5rem; }
.knopfreihe form { margin:0; }
.btn .ico, button .ico { width:1em; height:1em; vertical-align:-.15em; margin-right:.3em; }
.scanablauf { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(12rem,100%),1fr)); gap:.5rem; margin:0 0 .8rem; }
.scanablauf div { display:flex; align-items:center; gap:.6rem; background:var(--card); border:1px solid var(--line); border-radius:6px; padding:.55rem .7rem; font-size:.9rem; }
.scanablauf b { flex:none; width:1.7rem; height:1.7rem; border-radius:50%; background:var(--acc); color:#fff; display:grid; place-items:center; font-size:.85rem; }
.scangemerkt { display:flex; align-items:center; gap:.7rem; flex-wrap:wrap; }
.scangemerkt > span:not(.ico) { flex:1; min-width:min(14rem,100%); }
.scangemerkt > .ico { flex:none; }
.scangemerkt form { margin:0; }
.einlagern { border-left:4px solid var(--acc); }
.grossknopf { font-size:1.1rem; padding:.8rem 1.6rem; width:min(100%, 20rem); }
.camdlg { border:0; border-radius:10px; padding:1rem; width:min(32rem, calc(100vw - 2rem)); }
.camdlg video { width:100%; max-height:60vh; background:#000; border-radius:6px; }
.camdlg::backdrop { background:rgba(0,0,0,.45); }
.vorlagenreihe { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .6rem; margin:.6rem 0 .8rem; padding-bottom:.8rem; border-bottom:1px solid var(--line); }
.vorlagenreihe form { margin:0; } .vorlagenreihe > span { flex-basis:100%; font-size:.85rem; }
.datentabelle { max-width:46rem; }
.datentabelle td:first-child { width:45%; color:var(--muted); }
.datentabelle tr.gruppenkopf th { padding-top:.45rem; padding-bottom:.45rem; }
tr.gruppenzeile td { background:color-mix(in srgb,var(--acc) 7%,white); padding-top:.4rem; padding-bottom:.4rem; }
tr.gruppenzeile b { color:var(--acc); }
fieldset.datenteil { border:1px solid var(--line); border-radius:6px; padding:.4rem .8rem .7rem; margin:0 0 .7rem; min-width:0; width:100%; box-sizing:border-box; }
fieldset.datenteil legend { font-weight:700; color:var(--acc); padding:0 .3rem; }
fieldset.datenteil .hint { display:flex; align-items:center; gap:.3rem; }
fieldset.datenteil .hint input { width:auto; margin:0; }
h1 .code { font-size:.5em; font-weight:500; color:var(--muted); white-space:nowrap; vertical-align:.25em; }
/* Etiketten: Kategorien (Auswahlseite, Bereichskacheln, freie Etiketten mit Piktogramm) */
.katzeile { display:flex; align-items:center; gap:.35rem; margin:-.4rem 0 .8rem; }
.katzeile .fico { color:var(--acc); }
.bereichsprung { margin-bottom:1rem; }
.bereichsprung a { display:inline-flex; align-items:center; gap:.3rem; }
.etikbereich { margin:0 0 1.4rem; scroll-margin-top:calc(var(--kopf-h, 4rem) + .5rem); }
.bereichkopf { display:flex; align-items:center; gap:.7rem; margin:0 0 .6rem; font-size:1.15rem; }
.bereichkopf .bereichpik { width:2.4rem; height:2.4rem; padding:.45rem; border-radius:50%; background:var(--acc); color:#fff; flex:none; }
.bereichkopf span { display:flex; flex-direction:column; } .bereichkopf small { font-size:.8rem; font-weight:400; color:var(--muted); }
.unterkacheln { display:grid; gap:.5rem; grid-template-columns:repeat(auto-fill, minmax(min(11rem, 100%), 1fr)); }
.unterkachel { display:flex; flex-direction:column; align-items:center; text-align:center; gap:.3rem; padding:.8rem .6rem; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); text-decoration:none; }
.unterkachel svg { width:2.4rem; height:2.4rem; color:var(--acc); }
.unterkachel b { font-size:.92rem; line-height:1.25; } .unterkachel small { font-size:.72rem; color:var(--muted); }
.unterkachel:hover { border-color:var(--acc); box-shadow:inset 0 0 0 1px var(--acc); }
.bereichkacheln .artkachel .ico svg { width:2rem; height:2rem; }
.auswahl-liste .auswahlpik, summary .auswahlpik { width:1.3rem; height:1.3rem; flex:none; color:var(--acc); margin-right:.4rem; }
.titelfeld { display:flex; flex-direction:column; gap:.25rem; }
.titelfeld input { font-size:1.2rem; font-weight:600; }
.wahlkacheln.piktos { grid-template-columns:repeat(auto-fill, minmax(3.6rem, 1fr)); }
.wahl.piko { padding:.4rem; }
.wahl.piko .wbild { height:2.4rem; }
.etiktabelle .etikbild { width:auto; max-width:6.5rem; height:2rem; }
.auswahlleiste[hidden] { display:none; }
@media (max-width:600px) {
  .bereichkacheln { grid-template-columns:1fr 1fr; gap:.4rem; }
  .bereichkacheln .artkachel { padding:.55rem .6rem; gap:.5rem; }
  .bereichkacheln .artkachel small { display:none; }
  .bereichkacheln .artkachel .ico { width:2.2rem; height:2.2rem; } .bereichkacheln .artkachel .ico svg { width:1.4rem; height:1.4rem; }
  .bereichkacheln .artkachel b { font-size:.85rem; line-height:1.2; hyphens:manual; overflow-wrap:normal; }
  .bereichkacheln .artkachel em { font-size:1.1rem; }
  .unterkacheln { grid-template-columns:1fr 1fr; }
}
/* Etiketten: Bereich wählen (große Kacheln), Unterkategorien eines Bereichs, Maßfelder je Form */
.bereichwahl { display:grid; gap:.7rem; grid-template-columns:repeat(auto-fill, minmax(min(20rem, 100%), 1fr)); }
.bereichkachel { display:flex; align-items:center; gap:.9rem; padding:1rem 1.1rem; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); text-decoration:none; }
.bereichkachel:hover { border-color:var(--acc); box-shadow:inset 0 0 0 1px var(--acc); }
.bereichkachel .bereichpik { width:3rem; height:3rem; padding:.6rem; border-radius:50%; background:color-mix(in srgb,var(--acc) 10%,white); color:var(--acc); flex:none; }
.bereichkachel span { display:flex; flex-direction:column; flex:1; min-width:0; } .bereichkachel b { font-size:1.05rem; } .bereichkachel small { color:var(--muted); font-size:.8rem; }
.bereichkachel em { font-style:normal; font-size:.75rem; color:var(--muted); white-space:nowrap; }
.bereichzeile { display:flex; align-items:center; gap:.4rem; } .bereichzeile .fico { color:var(--acc); }
.unterliste { grid-template-columns:repeat(auto-fill, minmax(min(14rem, 100%), 1fr)); }
.unterliste .artkachel { padding:.7rem .8rem; }
.unterliste .artkachel .ico { width:2.6rem; height:2.6rem; } .unterliste .artkachel .ico svg { width:1.6rem; height:1.6rem; }
.unterliste .artkachel b { font-size:.95rem; } .unterliste .artkachel em { font-size:1.2rem; }
.unterliste .artkachel.leer em { color:var(--muted); font-weight:400; }
.zurueck { font-size:.88rem; margin-left:.6rem; }
p.zurueck { margin:1rem 0 0; }
.massfelder label[hidden] { display:none; }
.massfelder input { font-size:1.15rem; font-weight:600; }
@media (max-width:600px) {
  .unterliste { grid-template-columns:1fr 1fr; gap:.4rem; }
  .unterliste .artkachel { padding:.5rem .55rem; gap:.45rem; }
  .unterliste .artkachel .ico { width:2.1rem; height:2.1rem; } .unterliste .artkachel .ico svg { width:1.3rem; height:1.3rem; }
  .unterliste .artkachel b { font-size:.82rem; line-height:1.2; hyphens:manual; overflow-wrap:normal; }
  .unterliste .artkachel em { font-size:1rem; }
}
@media (max-width:600px) {
  .bereichwahl { grid-template-columns:1fr 1fr; gap:.45rem; }
  .bereichkachel { flex-direction:column; align-items:flex-start; gap:.4rem; padding:.7rem .7rem .6rem; }
  .bereichkachel small { display:none; }
  .bereichkachel .bereichpik { width:2.4rem; height:2.4rem; padding:.45rem; }
  .bereichkachel b { font-size:.92rem; line-height:1.2; hyphens:manual; overflow-wrap:normal; }
  .bereichkachel em { font-size:.72rem; }
}
.etiktabelle th, .etiktabelle td { white-space:nowrap; }
.etiktabelle tr.reihenkopf td, .etiktabelle tr.reihenkopf .rk { white-space:normal; }

/* Seitenleiste wie in der Metorbike-App: oben die Werkzeuge, links die Bereiche (seit 17.11.2026) */
.menuknopf { display:none; flex:none; width:2.3rem; height:2.3rem; margin:0; padding:.35rem; background:transparent; border:1px solid var(--line); border-radius:8px; color:var(--ink); box-shadow:none; }
.menuknopf svg { width:100%; height:100%; display:block; }
.menuknopf:hover { background:#eef1f5; }
.rahmen.mitleiste { display:grid; grid-template-columns:15.5rem minmax(0,1fr); align-items:start; }
.rahmen.mitleiste > main { width:100%; min-width:0; }      /* sonst schrumpft main im Raster wegen margin:auto auf die Breite des Inhalts */
.seitenleiste { position:sticky; top:var(--kopf-h,49px); height:calc(100vh - var(--kopf-h,49px)); height:calc(100dvh - var(--kopf-h,49px)); overflow-y:auto; padding:.8rem .6rem 2rem; background:#fff; border-right:1px solid var(--line); scrollbar-width:thin; }
.sl-zu { display:none; }
.sl-punkt, .sl-block > summary { display:flex; align-items:center; gap:.55rem; padding:.42rem .65rem; border-radius:8px; color:var(--ink); font-size:.92rem; font-weight:500; text-decoration:none; cursor:pointer; }
.sl-punkt:hover, .sl-block > summary:hover { background:#eef1f5; }
.sl-punkt.on { background:var(--headbg); font-weight:600; }
.sl-punkt .navico, .sl-block > summary .navico { width:1.05rem; height:1.05rem; flex:none; }
.sl-block { margin:.1rem 0; }
.sl-block > summary { list-style:none; }
.sl-block > summary::-webkit-details-marker { display:none; }
.sl-block > summary span { flex:1; }
/* Einklapp-Pfeil überall links wie im Privat-Baum: zu = nach rechts, auf = nach unten. Einträge ohne Pfeil rücken so weit ein, dass die Piktogramme bündig stehen. */
.sl-block > summary { padding-left:.4rem; }
.sl-block > summary::before { content:""; flex:none; width:.38rem; height:.38rem; margin:0 .2rem 0 .25rem; border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor; transform:rotate(-45deg); opacity:.55; transition:transform .15s; }
.sl-block[open] > summary::before { transform:rotate(45deg); }
.sl-block.on > summary::before { opacity:.9; }
.sl-punkt { padding-left:1.63rem; }
.sl-aktion { display:block; margin:.5rem .3rem .35rem; padding:.55rem .9rem; background:var(--acc); color:#fff; border-radius:999px; font-weight:600; font-size:.92rem; text-align:center; text-decoration:none; }
.sl-aktion:hover { background:var(--acc2); color:#fff; }
.sl-unter { display:flex; flex-direction:column; gap:.05rem; margin:.25rem 0 .5rem .95rem; padding-left:.45rem; border-left:2px solid var(--line); }
.sl-unter a { display:flex; align-items:center; gap:.5rem; padding:.3rem .55rem; border-radius:6px; color:var(--ink); font-size:.86rem; text-decoration:none; }
.sl-unter a:hover { background:#eef1f5; }
.sl-unter a.on { background:var(--headbg); font-weight:600; }
.sl-unter .navico { width:.95rem; height:.95rem; flex:none; opacity:.8; }
/* Unterpunkte wie der Privat-Baum: ohne Linie, Blätter mit Platz für den Pfeil, Äste (children in NAV) mit Pfeil links */
.sl-unter { margin:.2rem 0 .5rem; padding-left:0; border-left:0; gap:1px; }
.sl-unter > a { padding-left:1.4rem; }
.sl-ast > summary { display:flex; align-items:center; list-style:none; cursor:pointer; border-radius:6px; }
.sl-ast > summary::-webkit-details-marker { display:none; }
.sl-ast > summary:hover { background:#eef1f5; }
.sl-ast > summary a { flex:1; min-width:0; padding-left:.1rem; }
.sl-ast > summary a:hover { background:none; }
.sl-ast > summary a.im-ast { font-weight:600; }
.sl-unter2 { margin:1px 0 .2rem; }
.sl-ast > summary { padding-left:calc(var(--t, 0) * .85rem); }      /* je Ebene .85 rem weiter rechts, wie im Privat-Baum */
.sl-unter2 > a { padding-left:calc(1.4rem + var(--t, 1) * .85rem); }
.sl-trenner { border:0; border-top:1px solid var(--line); margin:.6rem .3rem; }
.sl-werkzeuge { display:none; }
.sl-hintergrund { position:fixed; inset:0; z-index:79; background:rgba(10,25,45,.35); }
@media (max-width:900px) {
  .menuknopf { display:block; }
  .rahmen.mitleiste { display:block; }
  .seitenleiste { position:fixed; top:0; left:0; bottom:0; z-index:80; width:min(18rem,86vw); height:auto; padding-top:3rem; box-shadow:0 0 30px rgba(0,0,0,.2); transform:translateX(-105%); transition:transform .2s ease; visibility:hidden; }
  body.menu-offen .seitenleiste { transform:none; visibility:visible; }
  body.menu-offen { overflow:hidden; }
  .sl-zu { display:block; position:absolute; top:.5rem; right:.5rem; width:2.2rem; height:2.2rem; margin:0; padding:0; background:transparent; border:0; color:var(--ink); font-size:1.6rem; line-height:1; box-shadow:none; }
  .sl-werkzeuge { display:block; border-top:1px solid var(--line); margin-top:.6rem; padding-top:.6rem; }      /* auf dem Handy auch die Werkzeuge in der Schublade */
}
@media (min-width:901px) { .sl-hintergrund { display:none; } }
@media print { .seitenleiste, .menuknopf, .sl-hintergrund { display:none !important; } .rahmen.mitleiste { display:block; } }

/* Studium (app/studium.py): Bereiche, Module, Formelsammlung, Aufgaben, Bücher */
.studienbereiche { margin-bottom:1rem; }
.badge.sst-laufend, .badge.sst-angemeldet { background:#3a6c9c; color:#fff; font-weight:600; }
.badge.sst-bestanden { background:#e2f1e8; color:#0f6b3a; font-weight:600; }
.badge.sst-nicht { background:#fdf0dc; color:#8a5300; font-weight:600; }
.badge.sst-geplant { background:#e8eef6; color:#1f4f8a; }
.badge.note { background:var(--acc); color:#fff; font-weight:600; }
.badge.tst-arbeit { background:#3a6c9c; color:#fff; } .badge.tst-erledigt { background:#e2f1e8; color:#0f6b3a; }
.badge.bst-kaufen { background:#fdf0dc; color:#8a5300; } .badge.bst-pdf { background:#e3ecf5; color:#24476b; }
.vorschlagzeile { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.6rem 1rem; margin:0 0 1rem; padding:.75rem 1rem; border:1px dashed var(--acc2); border-radius:10px; background:#f3f7fb; }
.studienaktionen { grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr)); }
@media (max-width:640px) { .studienaktionen { grid-template-columns:repeat(3,1fr); } }
.seitenliste { list-style:none; padding:0; margin:.4rem 0 1rem; display:grid; gap:.35rem; }
.seitenliste a { display:inline-flex; align-items:center; gap:.4rem; font-weight:500; }
form:not(:has(select[name="topic"] option[value="__neu"]:checked)) .neu-topic { display:none; }
/* Formeln: je Formel eine Karte, die Formel groß in Serifenschrift; ^ und _ werden hoch- und tiefgestellt (Filter formel) */
.formelleiste { display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; }
.formelthema { margin-top:1.2rem; }
.formeln { display:grid; gap:.7rem; grid-template-columns:repeat(auto-fill,minmax(min(19rem,100%),1fr)); margin-bottom:1rem; }
.formel { background:var(--card); border:1px solid var(--line); border-left:4px solid var(--acc); border-radius:8px; padding:.7rem .9rem; min-width:0; scroll-margin-top:calc(var(--kopf-h, 60px) + 1rem); }
.formel header { display:flex; justify-content:space-between; gap:.5rem; align-items:baseline; }
.formel header .badge { font-family:"Cambria Math", "Times New Roman", serif; }
.formeltext, .formelvorschau { font-family:"Cambria Math", "STIX Two Math", "Times New Roman", serif; font-size:1.45rem; line-height:1.5; margin:.4rem 0; overflow-x:auto; white-space:nowrap; }
.formeltext sub, .formeltext sup, .formelvorschau sub, .formelvorschau sup { font-size:.62em; }
.formelvorschau { margin:0; min-height:1.6rem; padding:.2rem .6rem; border-radius:6px; background:#f3f7fb; color:var(--acc); }
.formelvorschau:empty { display:none; }
.formelbild { display:block; max-width:100%; max-height:10rem; margin:.4rem 0; border-radius:4px; }
.formelgroessen { margin:.3rem 0; font-size:.88rem; color:var(--ink); }
.formelhinweis { margin:.3rem 0 0; font-size:.85rem; color:var(--muted); }
.formelknoepfe { display:flex; flex-wrap:wrap; gap:.4rem; align-items:flex-start; margin-top:.5rem; }
.formelknoepfe form { margin:0; }
details.formelaendern { flex:1 1 100%; }
details.formelaendern > summary { list-style:none; display:inline-block; cursor:pointer; }
details.formelaendern > summary::-webkit-details-marker { display:none; }
details.formelaendern[open] > summary { margin-bottom:.4rem; }
.formelknoepfe details.formelaendern { flex:0 1 auto; } .formelknoepfe details.formelaendern[open] { flex:1 1 100%; }
/* Aufgaben */
.hakenspalte { width:2.6rem; }
form.haken { margin:0; }
.hakenknopf { width:2rem; height:2rem; min-height:0; padding:0; border-radius:6px; border:2px solid var(--line); background:var(--card); color:transparent; font-weight:700; line-height:1; }
.hakenknopf:hover { border-color:var(--ok); color:var(--ok); background:var(--card); }
.hakenknopf.an { background:var(--ok); border-color:var(--ok); color:#fff; }
tr.erledigt td { color:var(--muted); } tr.erledigt td b { text-decoration:line-through; }
.aufgabekopf { display:flex; flex-wrap:wrap; justify-content:space-between; gap:1rem; align-items:flex-start; margin-bottom:1rem; }
.aufgabehaken { display:flex; align-items:center; gap:.5rem; font-weight:500; }
/* Übungsaufgaben aus einer PDF-Sammlung (aufgabenpdf.py) */
.uebfortschritt { display:block; height:.5rem; border-radius:99px; background:var(--line); overflow:hidden; margin:.2rem 0 .9rem; }
.uebfortschritt > span { display:block; height:100%; background:var(--ok); border-radius:99px; }
.uebkopf { display:flex; align-items:baseline; gap:.5rem; }
.uebkopf > small { margin-left:auto; font-weight:500; white-space:nowrap; }
/* Kapitel als Kacheln: antippen zeigt nur dieses Kapitel (?kapitel=), das gewählte blau umrandet */
.uebkacheln { display:grid; gap:.6rem; grid-template-columns:repeat(auto-fill, minmax(min(14rem, 100%), 1fr)); margin:0 0 1.2rem; }
.uebkachel { display:flex; flex-direction:column; gap:.4rem; min-width:0; padding:.75rem .85rem; border:1px solid var(--line); border-radius:12px; background:var(--card); color:var(--ink); text-decoration:none; transition:border-color .15s, box-shadow .15s; }
.uebkachel:hover { border-color:var(--acc2); box-shadow:0 2px 10px rgba(36,71,107,.08); }
.uebkachel.on { border-color:var(--acc); box-shadow:inset 0 0 0 1px var(--acc); background:color-mix(in srgb, var(--acc) 6%, white); }
.uk-kopf { display:flex; align-items:baseline; gap:.45rem; min-width:0; }
.uk-nr { flex:none; min-width:1.6rem; padding:.05rem .4rem; border-radius:6px; background:var(--acc); color:#fff; font-weight:700; font-size:.8rem; line-height:1.5; text-align:center; font-variant-numeric:tabular-nums; }
.uebkachel b { font-size:.95rem; font-weight:600; line-height:1.25; overflow-wrap:normal; hyphens:auto; }
.uk-themen { font-size:.78rem; color:var(--muted); line-height:1.35; }
.uk-stand { display:flex; align-items:center; gap:.5rem; margin-top:auto; }
.uk-stand .uebfortschritt { flex:1; margin:0; height:.4rem; }
.uk-stand em { font-style:normal; font-size:.8rem; font-weight:600; color:var(--muted); white-space:nowrap; font-variant-numeric:tabular-nums; }
.uebkachel.fertig em { color:var(--ok); }
/* Themen im Kapitel zum Aufklappen, Pfeil links (zu = rechts, auf = unten) */
details.uebthema { margin:0 0 .5rem; }
details.uebthema > summary { display:flex; align-items:center; gap:.5rem; padding:.5rem .3rem; cursor:pointer; list-style:none; border-radius:8px; }
details.uebthema > summary::-webkit-details-marker { display:none; }
details.uebthema > summary::before { content:""; flex:none; width:.45rem; height:.45rem; margin:0 .25rem 0 .15rem; border-right:2px solid var(--acc2); border-bottom:2px solid var(--acc2); transform:rotate(-45deg); transition:transform .15s; }
details.uebthema[open] > summary::before { transform:rotate(45deg); }
details.uebthema > summary:hover { background:color-mix(in srgb, var(--acc) 5%, white); }
details.uebthema > summary b { font-size:.98rem; color:var(--acc); }
details.uebthema > summary small { margin-left:auto; font-weight:500; white-space:nowrap; }
details.uebthema > .uebliste { margin:.2rem 0 .3rem; }
@media (max-width:560px) {              /* Handy: zwei Kacheln je Reihe, ohne Themenzeile */
  .uebkacheln { grid-template-columns:1fr 1fr; gap:.45rem; }
  .uebkachel { padding:.55rem .6rem; gap:.3rem; }
  .uebkachel b { font-size:.85rem; overflow-wrap:anywhere; }      /* „Massenpunktsystems“ passt sonst nicht */
  .uk-themen { display:none; }
}
.uebliste { list-style:none; margin:0; padding:0; border:1px solid var(--line); border-radius:8px; background:var(--card); overflow:hidden; }
.uebliste li { display:flex; align-items:flex-start; gap:.7rem; padding:.55rem .7rem; border-top:1px solid var(--line); }
.uebliste li:first-child { border-top:0; }
.uebliste li:hover { background:color-mix(in srgb,var(--acc) 5%,white); }
.uebliste .haken { flex:none; margin-top:.1rem; }
.uebeintrag { flex:1; min-width:0; display:grid; grid-template-columns:5.2rem 1fr; gap:.1rem .7rem; color:var(--ink); text-decoration:none; }
.uebnr { font-size:1.05rem; color:var(--acc); white-space:nowrap; }
.uebanriss { font-size:.88rem; line-height:1.4; color:var(--ink); overflow-wrap:anywhere; }
.uebinfo { grid-column:2; font-size:.78rem; color:var(--muted); }
.uebliste li.erledigt .uebnr { color:var(--muted); text-decoration:line-through; }
.uebliste li.erledigt .uebanriss { color:var(--muted); }
@media (max-width:560px) { .uebeintrag { grid-template-columns:1fr; } .uebinfo { grid-column:1; } }
.pdfwahl { list-style:none; margin:.3rem 0 0; padding:0; }
.pdfwahl li { display:flex; align-items:center; gap:.5rem; padding:.4rem 0; border-top:1px solid var(--line); }
.pdfwahl li > span { flex:1; min-width:0; overflow-wrap:anywhere; }
.pdfwahl form, .pdfwahl button { margin:0; flex:none; }
label.check.uebersetzen { align-items:flex-start; }
label.check.uebersetzen input { flex:none; width:1.15rem; height:1.15rem; margin:.2rem 0 0; }      /* bei langem Text sonst geschrumpft */
.uebnav { display:flex; justify-content:space-between; align-items:center; gap:.6rem; margin:0 0 .8rem; }
.aufgabebild { margin:0 0 1rem; padding:.6rem; background:#fff; border:1px solid var(--line); border-radius:8px; }
.aufgabebild img, .ergebnisbild { display:block; max-width:100%; height:auto; margin:0 auto; }
.aufgabebild img { width:100%; max-width:62rem; }
details.ergebnis .ergebnisbild { margin:.5rem 0 0; max-width:min(100%, 50rem); }
.bildtipp { display:none; }
@media (max-width:700px) {               /* Handy: Bild in Lesegröße, seitlich wischen; Antippen öffnet es groß */
  .aufgabebild { overflow-x:auto; padding:.4rem; }
  .aufgabebild img { width:42rem; max-width:none; margin:0; }
  details.ergebnis { overflow-x:auto; }
  details.ergebnis .ergebnisbild { width:auto; max-width:none; zoom:.62; }     /* gleiche Größe wie das Aufgabenbild */
  .bildtipp { display:block; margin:-.6rem 0 1rem; font-size:.78rem; color:var(--muted); }
}
.aufgabentext { font-size:.92rem; }
.uebmodule { list-style:none; margin:0; padding:0; display:grid; gap:.5rem; grid-template-columns:repeat(auto-fill,minmax(16rem,1fr)); }
.uebmodule a { display:block; padding:.7rem .9rem; border:1px solid var(--line); border-radius:8px; background:var(--card); color:var(--ink); text-decoration:none; }
.uebmodule .uebfortschritt { margin:.45rem 0 .25rem; }
/* Bücher und Bilder */
.buch { margin:0 0 .6rem; scroll-margin-top:calc(var(--kopf-h, 60px) + 1rem); }
.buchkopf { display:flex; gap:.7rem; align-items:flex-start; }
.buchkopf > div { flex:1; min-width:0; display:flex; flex-direction:column; }
.buchinfo { margin:.4rem 0; font-size:.9rem; } .buchinfo:empty { display:none; }
.buchknoepfe { display:flex; flex-wrap:wrap; gap:.4rem; align-items:flex-start; }
.buchknoepfe details.formelaendern[open] { flex:1 1 100%; }
.studienbilder { display:grid; gap:.6rem; grid-template-columns:repeat(auto-fill,minmax(9rem,1fr)); margin-bottom:1rem; }
.studienbilder figure { margin:0; background:var(--card); border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.studienbilder img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; }
.studienbilder figcaption { display:flex; justify-content:space-between; align-items:center; gap:.3rem; padding:.3rem .45rem; font-size:.8rem; overflow-wrap:anywhere; }
.studienbilder figcaption form { margin:0; }
/* Formelsammlung zum Ausdrucken */
.formeldruckkopf { display:flex; justify-content:space-between; align-items:baseline; gap:1rem; flex-wrap:wrap; }
@media print {
  .seitenleiste, .sl-hintergrund, .menuknopf { display:none !important; }
  .rahmen.mitleiste { display:block; }
  .formeldruck { grid-template-columns:1fr 1fr; gap:.4rem; }
  .formeldruck .formel { break-inside:avoid; padding:.4rem .6rem; border-left-width:3px; }
  .formeldruck .formeltext { font-size:1.2rem; white-space:normal; }
  .formeldruckmodul { break-after:avoid; }
}
.studienkarte .dt-bild { height:5.5rem; }      /* nur ein Piktogramm, kein Foto: flacher */

/* Seitenbaum Privat in der Seitenleiste (wie Confluence): Pfeil klappt, Name öffnet die Seite. Einrückung über --t (Tiefe). */
.seitenbaum { display:flex; flex-direction:column; gap:1px; margin:.3rem 0 .5rem; }
.seitenbaum details.baum > summary { display:flex; align-items:center; list-style:none; cursor:pointer; border-radius:6px; padding-left:calc(var(--t, 0) * .85rem); }
.seitenbaum details.baum > summary::-webkit-details-marker { display:none; }
.seitenbaum details.baum > summary:hover { background:#eef1f5; }
.baum-pfeil { flex:none; width:1.3rem; height:1.7rem; display:flex; align-items:center; justify-content:center; opacity:.55; }
.baum-pfeil::before { content:""; width:.38rem; height:.38rem; border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor; transform:rotate(-45deg); transition:transform .15s; }
details.baum[open] > summary .baum-pfeil::before { transform:rotate(45deg); }
.baum-name { display:flex; align-items:center; gap:.45rem; flex:1; min-width:0; padding:.28rem .45rem .28rem .1rem; border-radius:6px; color:var(--ink); font-size:.86rem; text-decoration:none; }
.baum-name > span { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.baum-name .navico { width:.95rem; height:.95rem; flex:none; opacity:.8; }
.baum-name em { flex:none; font-style:normal; font-size:.7rem; font-weight:600; min-width:1.2rem; padding:0 .3rem; border-radius:99px; background:#eef1f5; color:var(--muted); text-align:center; }
.baum-name em.warn { background:#f0b429; color:#2b1f00; }
.baum-blatt { padding-left:calc(var(--t, 0) * .85rem + 1.4rem); }
.baum-blatt:hover { background:#eef1f5; }
.baum-name.on { background:var(--headbg); font-weight:600; }
.seitenbaum > details.baum > summary .baum-name { font-weight:600; }
.baum-kinder { display:flex; flex-direction:column; gap:1px; }
.seitentiefe { display:inline-block; padding-left:calc(var(--t, 0) * 1.1rem); }
.seitentiefe:not([style*="--t:0"]) { color:var(--muted); }

/* Benachrichtigungen (push.js schaltet Knöpfe und Hinweise mit hidden) */
#pushgeraet [hidden], .geraet-hier[hidden] { display:none !important; }
/* Bild-Etiketten: Hochladen (mehrere Dateien oder ZIP), Prüfseite, Vorschau im Verzeichnis */
.bildablage { position:relative; display:flex; flex-direction:column; align-items:center; gap:.3rem; padding:2rem 1rem; border:2px dashed #b9c7c5; border-radius:12px; background:#fff; text-align:center; cursor:pointer; }
.bildablage input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; }
.bildablage b { color:var(--acc); font-size:1.05rem; } .bildablage span { color:var(--muted); font-size:.85rem; }
.bildablage.drueber { border-color:var(--acc); background:color-mix(in srgb,var(--acc) 6%,white); }
.bildablage .dateiliste { font-style:normal; font-weight:600; color:var(--ink); }
.wegliste { margin:.3rem 0 0; padding-left:1.2rem; font-size:.85rem; }
.bildpruefen { display:flex; flex-direction:column; gap:.6rem; }
.bildzeile { display:grid; grid-template-columns:minmax(0, 15rem) 1fr; gap:.8rem; align-items:center; padding:.6rem; border:1px solid var(--line); border-radius:10px; background:#fff; }
.bildzeile img { width:100%; border:1px solid var(--line); border-radius:4px; background:#fff; }
.bildfelder { display:grid; grid-template-columns:2fr 2fr 1fr; gap:.5rem .8rem; align-items:end; }
.bildfelder label { display:flex; flex-direction:column; gap:.2rem; min-width:0; }
.bildfelder label.haken.weg { grid-column:1 / -1; flex-direction:row; color:var(--warn); }
.bildpruefen-knopf { position:sticky; bottom:0; padding:.6rem 0; background:var(--bg); margin:0; }
.etiktabelle img.bildmini { width:5rem; height:2.4rem; object-fit:contain; background:#fff; border:1px solid var(--line); border-radius:2px; }
.katwahl { display:flex; flex-direction:column; gap:.25rem; max-width:24rem; }
@media (max-width:700px) {
  .bildzeile { grid-template-columns:1fr; }
  .bildfelder { grid-template-columns:1fr; }
}
.bildlink { display:flex; flex-direction:column; gap:.1rem; margin:0 0 .9rem; padding:.7rem 1rem; border:1px dashed var(--acc2); border-radius:10px; text-decoration:none; color:var(--ink); background:#fff; }
.bildlink b { color:var(--acc); } .bildlink span { font-size:.82rem; color:var(--muted); }
.bildlink:hover { border-style:solid; }
.bildfelder input.ohnename { border-color:#d9a441; background:#fdf6e3; }
.pushanlass { display:flex; flex-wrap:wrap; align-items:center; gap:.1rem 1.4rem; } .pushanlass .wdh { font-size:.85rem; color:var(--muted); margin-left:1.7rem; }

/* Aufgaben wie Microsoft To Do (_todo.html, todo.js) */
.todo-rahmen { max-width:46rem; }
.todo-liste { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.35rem; }
.todo-zeile { display:flex; align-items:center; gap:.5rem; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:.35rem .4rem .35rem .3rem; }
.todo-zeile form { margin:0; display:flex; }
.todo-leer { padding:.6rem .2rem; }
.todo-kreis, .todo-stern, .todo-plus { all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; width:44px; height:44px; border-radius:50%; }
.todo-kreis svg { width:24px; height:24px; border:2px solid var(--acc2); border-radius:50%; padding:2px; fill:none; stroke:transparent; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; transition:background .15s, stroke .15s; }
.todo-kreis:hover svg, .todo-kreis:focus-visible svg { stroke:var(--acc2); }
.todo-zeile.erledigt .todo-kreis svg { background:var(--acc2); stroke:#fff; }
.todo-zeile.erledigt .todo-titel { text-decoration:line-through; color:var(--muted); }
.todo-kreis.leer { cursor:default; width:24px; height:24px; margin:0 10px; border:2px solid var(--line); }
.todo-text { flex:1; min-width:0; color:var(--ink); text-decoration:none; padding:.3rem 0; }
.todo-titel { display:block; line-height:1.3; overflow-wrap:anywhere; }
.todo-meta { display:flex; flex-wrap:wrap; gap:.1rem .8rem; color:var(--muted); font-size:.78rem; margin-top:.1rem; }
.todo-meta:empty { display:none; }
.todo-meta span { display:inline-flex; align-items:center; gap:.25rem; }
.todo-meta svg { width:13px; height:13px; }
.todo-meta .heute { color:var(--acc2); font-weight:600; }
.todo-meta .spaet { color:var(--warn); font-weight:600; }
.todo-stern svg { width:22px; height:22px; fill:none; stroke:var(--muted); stroke-width:1.6; stroke-linejoin:round; }
.todo-stern.an svg { fill:var(--acc2); stroke:var(--acc2); }
.todo-fertig { margin-top:.8rem; }
.todo-fertig > summary { cursor:pointer; font-weight:600; color:var(--muted); padding:.3rem 0; }
.todo-fertig .todo-liste { margin-top:.35rem; }
.todo-neu { position:sticky; bottom:0; z-index:5; margin:.8rem 0 0; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:.25rem .4rem .45rem .3rem; box-shadow:0 -6px 18px rgba(26,35,38,.06); }
.homebox .todo-neu { position:static; box-shadow:none; }
.todo-eingabe { display:flex; align-items:center; }
.todo-eingabe input { flex:1; min-width:0; border:0; background:transparent; font-size:1.05rem; padding:.55rem .2rem; outline:none; box-shadow:none; }
.todo-plus { color:#fff; background:var(--acc); width:36px; height:36px; margin-left:.3rem; }
.todo-plus svg { width:20px; height:20px; }
.todo-knoepfe { display:flex; flex-wrap:wrap; gap:.3rem; padding-left:.2rem; }
.todo-knoepfe button { all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; gap:.3rem; min-height:38px; min-width:38px; justify-content:center; padding:0 .55rem; border-radius:99px; color:var(--muted); font-size:.82rem; }
.todo-knoepfe button svg { width:21px; height:21px; }
.todo-knoepfe button:hover { background:#eef1f5; }
.todo-knoepfe button.an { background:var(--headbg); color:var(--acc); font-weight:600; }
.todo-knoepfe button span:empty { display:none; }
.todo-blatt { display:flex; flex-direction:column; margin:.4rem .2rem 0; border-top:1px solid var(--line); padding-top:.4rem; }
.todo-blatt[hidden], .todo-notiz[hidden] { display:none; }
.todo-blatt > b { text-align:center; padding:.2rem 0 .4rem; }
.todo-blatt > button:not(.sec), .todo-blatt > label { all:unset; box-sizing:border-box; cursor:pointer; display:flex; align-items:center; gap:.7rem; min-height:44px; padding:0 .5rem; border-radius:8px; color:var(--ink); flex-wrap:wrap; }
.todo-blatt > button:not(.sec):hover, .todo-blatt > label:hover { background:#eef1f5; }
.todo-blatt svg { width:20px; height:20px; color:var(--acc2); }
.todo-blatt small { margin-left:auto; color:var(--muted); }
.todo-blatt label input { margin-left:auto; max-width:13rem; }
.todo-blatt > .sec { align-self:flex-start; margin:.3rem .5rem 0; }
.todo-notiz { display:flex; flex-direction:column; margin:.4rem .2rem 0; font-size:.85rem; color:var(--muted); }
.todo-kreis:hover, .todo-stern:hover { background:transparent; }
.todo-neu { display:flex; flex-direction:column; }
.todo-neu .todo-blatt, .todo-neu .todo-notiz { order:-1; margin:0 .2rem .4rem; border-top:0; border-bottom:1px solid var(--line); padding:0 0 .4rem; }
.todo-neu .todo-blatt[hidden], .todo-neu .todo-notiz[hidden] { display:none; }
/* „Gehört zu“: Projekt, Kunde, Privat (Knöpfe rechts neben der Notiz, Blätter mit Liste und Suche) */
.todo-trenner { width:1px; align-self:stretch; margin:.35rem .2rem; background:var(--line); }
.todo-knoepfe button[data-bezug-knopf] span { max-width:11rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.todo-bezug .todo-filter { margin:0 .3rem .35rem; }
.todo-optionen { display:flex; flex-direction:column; max-height:16rem; overflow-y:auto; }
.todo-optionen > button { all:unset; box-sizing:border-box; cursor:pointer; display:flex; align-items:center; gap:.7rem; min-height:42px; padding:.3rem .5rem; border-radius:8px; color:var(--ink); }
.todo-optionen > button:hover, .todo-optionen > button:focus-visible { background:#eef1f5; }
.todo-optionen > button[hidden] { display:none; }
.todo-optionen > button span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.todo-optionen > button small { margin-left:auto; flex:none; max-width:45%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.todo-optionen p { margin:.3rem .5rem; font-size:.85rem; }
.todo-meta .todo-bezugname { color:var(--acc2); font-weight:500; }
.todo-meta svg { width:14px; height:14px; }
@media (max-width:520px) {          /* acht Knöpfe in einer Reihe, auch im Fenster auf der Startseite */
  .todo-knoepfe { gap:.1rem; padding-left:0; }
  .todo-knoepfe button { min-width:33px; padding:0 .3rem; }
  .todo-trenner { margin:.35rem .05rem; }
}

/* Privat: Bereiche als Kacheln (Übersicht groß wie ein Dashboard, Bereichsseiten klein), statt der seitlich rollenden Leiste */
.bkacheln { display:grid; gap:.65rem; grid-template-columns:repeat(auto-fill, minmax(min(13.5rem, 100%), 1fr)); margin:0 0 .4rem; }
.bkachel { display:flex; flex-direction:column; gap:.45rem; min-width:0; padding:.85rem .95rem .8rem; border:1px solid var(--line); border-radius:12px; background:var(--card); color:var(--ink); text-decoration:none; transition:border-color .15s, box-shadow .15s; }
.bkachel:hover { border-color:var(--acc2); box-shadow:0 2px 10px rgba(36,71,107,.08); }
.bk-kopf { display:flex; align-items:center; gap:.6rem; min-width:0; }
.bk-kopf .ico { margin:0; flex:none; }
.bk-kopf b { font-size:.95rem; font-weight:600; line-height:1.2; overflow-wrap:anywhere; }
.bk-zahl { display:flex; align-items:baseline; gap:.35rem; }
.bk-zahl strong { font-size:1.7rem; font-weight:600; line-height:1; color:var(--acc); font-variant-numeric:tabular-nums; }
.bk-zahl small { font-size:.8rem; color:var(--muted); }
.bk-info { display:flex; align-items:center; gap:.35rem; font-size:.82rem; color:var(--muted); line-height:1.3; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.bk-info .ico { margin:0; flex:none; }
.bkachel.warn { border-color:#f0b429; box-shadow:inset 4px 0 0 #f0b429; background:#fffaf0; }
.bkachel.warn .bk-info { color:#7a4d00; font-weight:600; }
.bkachel.warn .bk-zahl strong { color:#7a4d00; }
.bk-alles { margin:.2rem 0 1rem; font-size:.88rem; }
.bk-alles a { display:inline-flex; align-items:center; gap:.35rem; }
.bk-alles .ico { margin:0; }
/* klein auf den Bereichsseiten: eine Zeile je Kachel, alle sichtbar */
.bkacheln.klein { gap:.4rem; grid-template-columns:repeat(auto-fill, minmax(min(11.5rem, 100%), 1fr)); margin-bottom:1rem; }
.bkacheln.klein .bkachel { flex-direction:row; align-items:center; gap:.5rem; padding:.45rem .6rem; border-radius:10px; }
.bkacheln.klein .bkachel .ico { margin:0; flex:none; }
.bkacheln.klein .bkachel b { flex:1; min-width:0; font-size:.86rem; font-weight:500; line-height:1.2; overflow-wrap:normal; hyphens:auto; }      /* lange Namen in zwei Zeilen statt abgeschnitten */
.bkacheln.klein .bkachel em { flex:none; font-style:normal; font-size:.72rem; font-weight:600; min-width:1.3rem; padding:0 .35rem; border-radius:99px; background:#eef1f5; color:var(--muted); text-align:center; }
.bkacheln.klein .bkachel.warn { box-shadow:inset 3px 0 0 #f0b429; }
.bkacheln.klein .bkachel.warn em { background:#f0b429; color:#2b1f00; }
.bkacheln.klein .bkachel.on { background:var(--acc); border-color:var(--acc); color:#fff; }
.bkacheln.klein .bkachel.on b { font-weight:600; }
.bkacheln.klein .bkachel.on .ico { background:rgba(255,255,255,.18); color:#fff; }
.bkacheln.klein .bkachel.on em { background:rgba(255,255,255,.22); color:#fff; }
@media (max-width:600px) {
  .bkacheln, .bkacheln.klein { grid-template-columns:1fr 1fr; }
  .bkachel { padding:.7rem .7rem .65rem; gap:.35rem; }
  .bk-kopf { gap:.45rem; } .bk-kopf b { font-size:.86rem; }
  .bk-zahl strong { font-size:1.4rem; }
  .bk-info { font-size:.76rem; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .bk-info .ico { display:none; }
}

/* Studienplan (Grafik der Studienfachberatung, Makro studienplan in _studium.html): Semester als Spalten, Höhe in 24 Einheiten */
.sp-rahmen { display:flex; flex-wrap:wrap; gap:1rem; align-items:flex-start; margin:0 0 .4rem; }
.sp-scroll { flex:1 1 40rem; min-width:0; }
.sp-plan { display:grid; grid-template-columns:1.8rem repeat(7, minmax(5.2rem, 1fr)); gap:3px; min-width:40rem; }
.sp-kopf { grid-row:1; display:flex; flex-direction:column; justify-content:center; text-align:center; background:#d5e2f0; color:var(--acc); font-weight:600; padding:.3rem; border-radius:4px; }
.sp-grund { grid-column:2 / 4; } .sp-haupt { grid-column:4 / 8; padding:0; overflow:hidden; } .sp-abschluss { grid-column:8 / 9; }
.sp-haupt { padding-top:.3rem; } .sp-haupt span { display:block; margin-top:.2rem; padding:.1rem 0; background:var(--acc); color:#fff; font-weight:500; font-size:.85rem; }
.sp-sem { grid-row:2; text-align:center; background:#d5e2f0; color:var(--acc); font-weight:700; padding:.25rem; border-radius:4px; }
.sp-cp { grid-column:1; grid-row:3; display:flex; align-items:center; justify-content:center; background:#d5e2f0; color:var(--acc); border-radius:4px; font-weight:600; font-size:.85rem; }
.sp-cp span { writing-mode:vertical-rl; transform:rotate(180deg); }
.sp-spalte { grid-row:3; display:grid; grid-template-rows:repeat(24, minmax(0, 1fr)); gap:3px; height:27rem; }
.sp-zelle, .sp-paar { display:flex; min-height:0; }
.sp-paar { display:grid; grid-template-columns:1fr 1fr; gap:3px; }
.sp-form { display:flex; flex:1; margin:0; min-width:0; }
.sp-feld, button.sp-feld { display:flex; flex:1; flex-direction:column; align-items:center; justify-content:center; gap:.15rem; min-width:0; min-height:0; width:100%; margin:0; padding:.1rem .2rem;
  border:0; border-radius:4px; background:#d5e2f0; color:#1f3d5c; font:inherit; line-height:1.1; text-align:center; text-decoration:none; cursor:pointer; box-shadow:none; overflow:hidden; }
.sp-feld b { font-size:.98rem; font-weight:600; } .sp-feld b small { font-size:.7rem; font-weight:500; }
.sp-feld em { font-style:normal; font-size:.66rem; font-weight:600; padding:0 .3rem; border-radius:99px; white-space:nowrap; }
.sp-dunkel, button.sp-dunkel { background:var(--acc); color:#fff; }
.sp-feld:not(.sp-text):hover, .sp-feld:not(.sp-text):focus-visible { outline:2px solid var(--acc2); outline-offset:1px; background:#c3d6ea; color:#1f3d5c; }
.sp-dunkel:not(.sp-text):hover, .sp-dunkel:not(.sp-text):focus-visible { background:#2f5a85; color:#fff; }
.sp-text { cursor:default; font-weight:500; } .sp-text b { font-weight:500; }
.sp-ok { background:#e2f1e8; color:#0f6b3a; } .sp-warn { background:#f0b429; color:#2b1f00; } .sp-auf { background:rgba(255,255,255,.75); color:#1f3d5c; }
.sp-bestanden { box-shadow:inset 0 -4px 0 var(--ok); }
.sp-achtung { box-shadow:inset 0 0 0 3px #f0b429; }
.sp-wpbox { flex:0 1 17rem; min-width:15rem; }
.sp-wpkopf { background:var(--acc); color:#fff; font-weight:600; text-align:center; padding:.45rem; border-radius:4px; margin-bottom:3px; }
.sp-wprow { display:grid; grid-template-columns:2.6rem 1fr 1fr; gap:3px; height:3.1rem; margin-bottom:3px; }
.sp-wplabel { height:auto; } .sp-wplabel span { text-align:center; background:#d5e2f0; color:var(--acc); font-weight:600; padding:.25rem; border-radius:4px; } .sp-wplabel span:first-child { background:none; }
.sp-wpname { display:flex; align-items:center; justify-content:center; background:#d5e2f0; color:var(--acc); font-weight:600; border-radius:4px; }
.sp-breit { grid-column:span 2; display:flex; }
.sp-legende { font-size:.85rem; margin:.3rem 0 1.2rem; }
.sp-muster { display:inline-block; width:.9rem; height:.9rem; border-radius:3px; background:#d5e2f0; vertical-align:-.12rem; margin-left:.3rem; }
.sp-muster.sp-dunkel { background:var(--acc); }
@media (max-width:640px) { .sp-wpbox { flex:1 1 100%; } }
/* Studienfachberatung: kurze Kästen mit dem Wesentlichen */
.sfb-raster { display:grid; gap:.8rem; grid-template-columns:repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); margin:0 0 1rem; }
.sfb-raster section { background:var(--card); border:1px solid var(--line); border-left:4px solid var(--acc); border-radius:8px; padding:.7rem .95rem; }
.sfb-raster h3 { margin:0 0 .4rem; font-size:1rem; }
.sfb-raster ul { margin:0; padding-left:1.1rem; } .sfb-raster li { margin:.2rem 0; }
.sfb-quelle { font-size:.82rem; }
.sp-text b { font-size:.82rem; hyphens:auto; overflow-wrap:anywhere; }      /* Studienarbeit, Praxis-Phase … passen in die Spalte */
@media (max-width:640px) {
  .sp-plan { grid-template-columns:1.4rem repeat(7, minmax(4.2rem, 1fr)); min-width:32rem; gap:2px; }
  .sp-spalte { height:24rem; gap:2px; } .sp-feld b { font-size:.85rem; } .sp-text b { font-size:.72rem; } .sp-kopf { font-size:.85rem; }
}
form:not(:has(select[name="section"] option[value="__neu"]:checked)) .neu-section { display:none; }
/* Unterlagen übernehmen (studium_import.html) */
.importbalken { display:block; height:.5rem; margin-top:.45rem; border-radius:99px; background:rgba(0,0,0,.08); overflow:hidden; }
.importbalken i { display:block; height:100%; background:var(--acc); }
.importfehler { max-height:16rem; overflow:auto; font-size:.82rem; margin:.4rem 0 0; overflow-wrap:anywhere; }
.importstart { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem 1.2rem; margin:0 0 1rem; }
.importtab td { font-size:.88rem; overflow-wrap:anywhere; } .importtab td .ico { margin-right:.3rem; }
tr.importweg td { color:var(--muted); }
tr.row-aktiv td { background:#eef3f8; }
.importhinweis code, .muted code { overflow-wrap:anywhere; }
@media (max-width:640px) { .buchliste th:nth-child(2), .buchliste td:nth-child(2) { display:none; } }
.importziele td:first-child { min-width:15rem; overflow-wrap:normal; }

/* Private Ablage (/privat/ablage): Suche, Kategorie-Kacheln (wie .bkacheln), Hochladen, Dokumentseite */
.ablagesuche { display:flex; gap:.5rem; margin:0 0 1rem; }
.ablagesuche input { flex:1; min-width:0; }
.ablagesuche button { margin:0; }
.bkachel.leer .bk-zahl strong { color:var(--muted); }
.dateiwahl { position:relative; display:block; border:2px dashed var(--line); border-radius:12px; background:#f7f9fb; cursor:pointer; align-self:stretch; }
.dateiwahl:hover, .dateiwahl:focus-within { border-color:var(--acc2); background:#f1f5fa; }
.dateiwahl input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.dateiwahl > span { display:flex; flex-direction:column; align-items:center; gap:.3rem; padding:1.1rem .8rem; text-align:center; pointer-events:none; }
.dateiwahl > span .ico { margin:0; }
.dateiwahl small { color:var(--muted); font-size:.8rem; }
.dateiwahl.voll { border-style:solid; border-color:var(--acc2); }
.dokname { display:flex; align-items:center; gap:.55rem; min-width:0; }
.dokname .ico { margin:0; flex:none; }
.dokname > span { display:flex; flex-direction:column; min-width:0; }
.dokname small { font-size:.78rem; }
.ablagetab td:first-child { min-width:14rem; }
.ablagedok { display:grid; grid-template-columns:minmax(0, 1.3fr) minmax(0, 1fr); gap:1.2rem; align-items:start; margin:0 0 1rem; }
.ablagevorschau { border:1px solid var(--line); border-radius:12px; background:#f4f7f9; overflow:hidden; }
.ablagevorschau img { display:block; width:100%; max-height:75vh; object-fit:contain; background:#fff; }
.ablagevorschau iframe { display:block; width:100%; height:75vh; border:0; background:#fff; }
.ablagevorschau .geraetbild { flex-direction:column; gap:.4rem; min-height:14rem; }
.knopfreihe { display:flex; flex-wrap:wrap; gap:.5rem; margin:.9rem 0 0; }
.knopfreihe .ico { margin:0 .3rem 0 0; }
@media (max-width:800px) { .ablagedok { grid-template-columns:1fr; } .ablagevorschau iframe { height:60vh; } }
.bk-kopf b { overflow-wrap:normal; hyphens:auto; }          /* „Versiche-rungen“ statt „Versicherung en“ */
@media (max-width:600px) { .privatbilder { grid-template-columns:1fr 1fr; gap:.5rem; } .privatbilder figcaption { padding:.3rem .4rem; } }

/* Finanzen: drei Kacheln für den Zeitraum des Verlaufs (Jahr, Quartal, Monat), wie in der Metorbike-App.
   Die Überschrift ist der Link der ganzen Kachel (::after deckt sie ab), die Knöpfe liegen darüber und bleiben einzeln klickbar. */
.zeitwahl { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.6fr); gap:.7rem; margin:0 0 1rem; }
.zeitwidget { position:relative; display:flex; flex-direction:column; gap:.5rem; padding:.75rem .9rem; border:1px solid var(--line); border-top:3px solid var(--line); border-radius:10px; background:var(--card); cursor:pointer; transition:border-color .15s, box-shadow .15s; }
.zeitwidget.on { border-top-color:var(--acc); box-shadow:0 2px 8px rgb(0 0 0 / .05); }
.zeitwidget:hover { border-color:var(--acc); box-shadow:0 2px 10px rgb(0 0 0 / .08); }
.zeitkopf { display:flex; align-items:center; gap:.45rem; font-weight:700; color:inherit; text-decoration:none; }
.zeitkopf .ico { margin:0; }
.zeitkopf::after { content:""; position:absolute; inset:0; border-radius:inherit; }
.zeitknoepfe { position:relative; z-index:1; pointer-events:none; display:flex; flex-wrap:wrap; gap:.3rem; }
.zeitknoepfe .chip { pointer-events:auto; font-size:.82rem; padding:.2rem .6rem; display:inline-flex; align-items:center; gap:.25rem; }
.qico { vertical-align:-.25em; color:var(--acc); flex:none; } .chip .qico, .chip.on .qico { color:inherit; } .qico.gross { width:18px; height:18px; }
.verlauftitel { margin:.2rem 0 .5rem; }
@media (max-width:900px) { .zeitwahl { grid-template-columns:1fr; } }
/* Notenkonto: Haken für bestandene Module (Studienplan, Notenkonto) */
.sp-feld, button.sp-feld { position:relative; }
.sp-haken { position:absolute; top:3px; right:3px; width:1.15rem; height:1.15rem; border-radius:50%; background:var(--ok); color:#fff; font-size:.72rem; font-weight:700; line-height:1.15rem; text-align:center; box-shadow:0 0 0 2px #fff; }
.sp-bestanden { box-shadow:inset 0 -4px 0 var(--ok); }
.sp-nb { background:#f0b429; color:#2b1f00; }
.sp-nichtbest { box-shadow:inset 0 0 0 3px #f0b429; }
.notenhaken { display:inline-grid; place-items:center; width:1.35rem; height:1.35rem; border-radius:50%; background:var(--ok); color:#fff; font-size:.8rem; font-weight:700; }
.notentab td { vertical-align:middle; }
@media (max-width:640px) { .sp-haken { width:.95rem; height:.95rem; line-height:.95rem; font-size:.6rem; top:2px; right:2px; } }
/* Kürzel des Moduls groß (Karten, Kopf der Modulseite), Wunsch von Colin */
.sk-bild { gap:.9rem; }
.sk-kuerzel { display:inline-block; padding:.15rem .6rem; border-radius:8px; background:var(--acc); color:#fff; font-size:1.55rem; font-weight:700; letter-spacing:.04em; line-height:1.2; }
.sk-gross { font-size:.75em; vertical-align:.12em; margin-right:.2rem; }
.sk-haken { top:8px; right:8px; width:1.5rem; height:1.5rem; line-height:1.5rem; font-size:.9rem; }
/* Formelsammlungen als PDF im Reiter Formelsammlung */
.fsdateien { display:grid; gap:.5rem; grid-template-columns:repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); margin:0 0 1rem; }
.fsdatei { display:flex; align-items:center; gap:.6rem; padding:.55rem .7rem; background:var(--card); border:1px solid var(--line); border-left:4px solid var(--acc); border-radius:8px; color:var(--ink); text-decoration:none; min-width:0; }
.fsdatei:hover { border-color:var(--acc2); background:#f3f7fb; }
.fsdatei > span { display:flex; flex-direction:column; min-width:0; } .fsdatei b { overflow-wrap:anywhere; } .fsdatei small { color:var(--muted); }
/* Bücher nach Gruppen mit Cover (studium_buecher.html) */
.buchgruppen { grid-template-columns:repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); }
.buchgruppen .artkachel b { overflow-wrap:normal; word-break:normal; }
.buchkarten { display:grid; gap:.6rem; grid-template-columns:repeat(auto-fill, minmax(min(22rem, 100%), 1fr)); margin:0 0 1rem; }
.buchkarte { display:flex; gap:.8rem; align-items:flex-start; padding:.6rem; background:var(--card); border:1px solid var(--line); border-radius:8px; min-width:0; }
.buchcover { position:relative; flex:0 0 4.4rem; height:6.2rem; display:grid; place-items:center; background:#eef2f7; border:1px solid var(--line); border-radius:4px; overflow:hidden; color:var(--acc); }
.buchcover img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:#fff; }
.buchtext { display:flex; flex-direction:column; gap:.25rem; min-width:0; } .buchtext b { overflow-wrap:anywhere; }
.buchzeile { display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; margin-top:.15rem; }
@media (max-width:640px) {
  .buchgruppen { grid-template-columns:1fr 1fr; gap:.4rem; }
  .buchgruppen .artkachel { padding:.5rem .6rem; gap:.5rem; } .buchgruppen .artkachel .ico { width:2rem; height:2rem; } .buchgruppen .artkachel b { font-size:.95rem; }
}
/* PDF-Leser (pdfleser.html): links Kapitel/Seiten/Suche, rechts die Seite */
.lesertitel { margin-bottom:.4rem; }
.leserleiste { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; margin:0 0 .8rem; position:sticky; top:var(--kopf-h, 0); z-index:5; background:var(--bg); padding:.4rem 0; }
.leserleiste .aus { opacity:.35; pointer-events:none; }
.leserspringen { margin:0; display:flex; align-items:center; gap:.35rem; font-size:.95rem; color:var(--ink); }
.leserspringen input { width:4.2rem; text-align:center; }
.leser { display:grid; grid-template-columns:minmax(16rem, 22rem) 1fr; gap:1rem; align-items:start; }
.leserseite { position:sticky; top:calc(var(--kopf-h, 0px) + 3.4rem); max-height:calc(100vh - var(--kopf-h, 0px) - 4.5rem); overflow:auto; background:var(--card); border:1px solid var(--line); border-radius:8px; padding:.5rem; }
.lesertabs { display:flex; gap:.25rem; margin:0 0 .5rem; position:sticky; top:-.5rem; background:var(--card); padding:.3rem 0; z-index:1; }
.lesertabs a { flex:1; text-align:center; padding:.35rem .4rem; border-radius:6px; background:#eef2f7; color:var(--ink); text-decoration:none; font-weight:600; font-size:.9rem; }
.lesertabs a.on { background:var(--acc); color:#fff; } .lesertabs em { font-style:normal; font-weight:400; opacity:.8; font-size:.8rem; }
.kapitel { list-style:none; margin:0; padding:0; }
.kapitel a { display:flex; justify-content:space-between; gap:.5rem; padding:.3rem .4rem .3rem calc(.4rem + var(--ebene, 0) * .9rem); border-radius:5px; color:var(--ink); text-decoration:none; font-size:.9rem; line-height:1.25; }
.kapitel li[style*="--ebene:0"] a { font-weight:600; }
.kapitel a:hover { background:#eef3f8; } .kapitel li.on a { background:var(--acc); color:#fff; } .kapitel small { color:inherit; opacity:.7; }
.seitenbloecke { display:flex; flex-wrap:wrap; gap:.25rem; margin:0 0 .5rem; }
.seitenbloecke a { padding:.15rem .45rem; border-radius:99px; background:#eef2f7; color:var(--ink); text-decoration:none; font-size:.78rem; } .seitenbloecke a.on { background:var(--acc); color:#fff; }
.miniseiten { display:grid; grid-template-columns:repeat(auto-fill, minmax(5.2rem, 1fr)); gap:.4rem; }
.miniseiten a { display:flex; flex-direction:column; align-items:center; gap:.15rem; padding:.25rem; border:2px solid transparent; border-radius:6px; color:var(--muted); text-decoration:none; font-size:.75rem; }
.miniseiten a.on { border-color:var(--acc); color:var(--acc); font-weight:600; }
.miniseiten img { width:100%; height:auto; aspect-ratio:1 / 1.414; object-fit:contain; background:#fff; border:1px solid var(--line); }
.lesersuche { margin:0 0 .5rem; } .lesersuche input { flex:1; min-width:0; }
.lesersuche .vschlag { flex:1 1 100%; min-width:0; }           /* Vorschläge in der Seitenleiste im Fluss, sonst schneidet die Leiste sie ab */
.leserseite .vliste { position:static; max-height:none; margin-top:.3rem; box-shadow:0 4px 14px rgb(0 0 0 / .1); }
.treffer { list-style:none; margin:0; padding:0; display:grid; gap:.3rem; }
.treffer a { display:flex; flex-direction:column; gap:.15rem; padding:.4rem .5rem; border-radius:6px; border:1px solid var(--line); color:var(--ink); text-decoration:none; font-size:.85rem; }
.treffer li.on a { border-color:var(--acc); background:#eef3f8; } .treffer mark { background:#ffe58f; color:inherit; padding:0 1px; }
.leserblatt { min-width:0; position:relative; container-type:inline-size; container-name:blattspalte; }
.leserblatt .seitenbild { display:block; width:100%; height:auto; background:#fff; border:1px solid var(--line); box-shadow:0 2px 10px rgb(0 0 0 / .08); }
/* PDF-Leser bearbeiten (static/pdfnotiz.js): Werkzeugleiste über der Seite, Ebene mit Markierungen, Formen, Kommentaren, Text und Tabellen */
.werkzeuge { display:flex; align-items:center; gap:.15rem; max-width:56rem; margin:0 auto .3rem; padding:.25rem; background:var(--card); border:1px solid var(--line); border-radius:10px;
  box-shadow:0 2px 8px rgb(0 0 0 / .05); position:sticky; top:calc(var(--kopf-h, 0px) + 3.1rem); z-index:6; overflow-x:auto; scrollbar-width:none; }
.wz { display:inline-flex; align-items:center; gap:.3rem; flex:none; height:2.2rem; min-width:2.2rem; justify-content:center; padding:0 .45rem; margin:0; border:0; border-radius:7px;
  background:transparent; color:var(--ink); font:inherit; font-size:.82rem; cursor:pointer; box-shadow:none; }
.wz svg { width:18px; height:18px; flex:none; } .wz b { font-weight:600; }
.wz:hover { background:#eef2f7; } .wz.on { background:var(--acc); color:#fff; } .wz.on svg path[stroke] { stroke:#ffe066; }
.wz:disabled { opacity:.3; cursor:default; background:transparent; }
.wz-trenn { flex:none; width:1px; align-self:stretch; margin:.25rem .2rem; background:var(--line); }
.wz-farbe { flex:none; width:1.3rem; height:1.3rem; margin:0 .12rem; padding:0; border:2px solid #fff; border-radius:50%; box-shadow:0 0 0 1px var(--line); cursor:pointer; }
.wz-farbe.on { box-shadow:0 0 0 2px var(--acc); }
.f-gelb { --f:#e8a800; } .f-gruen { --f:#2f9e44; } .f-blau { --f:#1c7ed6; } .f-rot { --f:#e03131; } .f-schwarz { --f:#212529; }
.wz-farbe { background:var(--f); }
.wz-stand { flex:none; margin-left:auto; padding:0 .4rem; font-size:.75rem; color:var(--muted); white-space:nowrap; cursor:default; }
.wz-stand.ok { color:var(--ok); } .wz-stand.warn { color:var(--warn); cursor:pointer; text-decoration:underline; }
.wz-tipp { max-width:56rem; margin:0 auto .45rem; font-size:.8rem; color:var(--muted); }
.werkzeuge[hidden], .wz-tipp[hidden] { display:none; }
@container blattspalte (max-width:900px) { .wz b { display:none; } }
@container blattspalte (max-width:560px) { .werkzeuge { flex-wrap:wrap; overflow:visible; } .wz-trenn { display:none; } .wz-stand { font-size:0; } .wz-stand.ok::before { content:"✓"; font-size:.85rem; } .wz-stand.warn { font-size:.75rem; } }
.tabwahl { position:absolute; z-index:9; width:220px; padding:.5rem; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 24px rgb(0 0 0 / .15); }
.tabwahl p { margin:0 0 .35rem; font-size:.82rem; color:var(--muted); } .tabwahl b { color:var(--ink); }
.tabraster { display:grid; grid-template-columns:repeat(6, 1fr); gap:3px; }
.tabraster button { aspect-ratio:1; padding:0; margin:0; border:1px solid var(--line); border-radius:3px; background:#fff; cursor:pointer; box-shadow:none; }
.tabraster button.an { background:color-mix(in srgb, var(--acc) 22%, white); border-color:var(--acc2); }
.blatt { position:relative; max-width:56rem; margin:0 auto; container-type:inline-size; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
.blatt[data-tool="lesen"] { touch-action:pan-y pinch-zoom; }
.blatt:not([data-tool="lesen"]) { touch-action:none; cursor:crosshair; }
.blatt[data-tool="text"], .blatt[data-tool="notiz"], .blatt[data-tool="tabelle"] { cursor:copy; }
.blatt[data-tool="markieren"] { cursor:text; }
/* Klickflächen: linke Hälfte zurück, rechte weiter; beim Darüberfahren erscheint ein Pfeil am Rand */
.kante { position:absolute; top:0; bottom:0; width:50%; z-index:1; display:flex; align-items:center; text-decoration:none; -webkit-tap-highlight-color:transparent; }
.kante.links { left:0; justify-content:flex-start; } .kante.rechts { right:0; justify-content:flex-end; }
.kante span { display:grid; place-items:center; width:2.6rem; height:2.6rem; margin:0 .5rem; border-radius:50%; background:rgb(255 255 255 / .92); color:var(--acc); font-size:1.9rem; line-height:1;
  box-shadow:0 2px 10px rgb(0 0 0 / .18); opacity:0; transition:opacity .15s; }
.kante:hover span { opacity:1; } .kante.aus { pointer-events:none; }
.blatt:not([data-tool="lesen"]) .kante { display:none; }
@media (hover:none) { .kante span { display:none; } }
/* Suchtreffer leuchten pulsierend auf (6 Mal, dann bleiben sie hell) */
.funde { position:absolute; inset:0; pointer-events:none; z-index:1; }
.fund { position:absolute; border-radius:3px; background:rgb(255 212 59 / .5); mix-blend-mode:multiply; box-shadow:0 0 0 2px rgb(245 159 0 / .9);
  animation:fundpuls 1.3s ease-in-out 6; }
@keyframes fundpuls { 0%, 100% { box-shadow:0 0 0 2px rgb(245 159 0 / .9), 0 0 0 0 rgb(255 193 7 / .7); background:rgb(255 212 59 / .5); }
  50% { box-shadow:0 0 0 3px rgb(245 159 0 / 1), 0 0 0 12px rgb(255 193 7 / 0); background:rgb(255 200 0 / .85); } }
@media (prefers-reduced-motion:reduce) { .fund { animation:none; } }
.anno { position:absolute; inset:0; width:100%; height:100%; z-index:2; pointer-events:none; overflow:visible; }
.anno .a-mark { mix-blend-mode:multiply; opacity:.6; }
.blatt[data-tool="lesen"][data-bearbeiten="1"] .anno .a-sache > * { pointer-events:visiblePainted; cursor:pointer; }
.blatt[data-bearbeiten="0"] .annohtml > :not(.a-note):not(.a-badge):not(.wz-pop) { pointer-events:none; }      /* nur ansehen: Tippen blättert */
.anno .a-neu { pointer-events:none; opacity:.85; }
.annohtml { position:absolute; inset:0; z-index:3; pointer-events:none; font-size:max(8px, 1.5cqw); line-height:1.3; }
.annohtml > * { position:absolute; pointer-events:auto; }
.blatt:not([data-tool="lesen"]) .annohtml > :not(.wz-pop) { pointer-events:none; }
.a-auswahl { pointer-events:none !important; border:1.5px dashed var(--acc2); border-radius:4px; }
.a-ziehen { width:14px; height:14px; margin:-7px 0 0 -7px; background:#fff; border:2px solid var(--acc); border-radius:3px; cursor:nwse-resize; touch-action:none; }
.a-note { width:26px; height:26px; margin:-24px 0 0 -4px; display:grid; place-items:center; border-radius:6px 6px 6px 1px; background:var(--f); color:#fff; cursor:pointer;
  box-shadow:0 2px 6px rgb(0 0 0 / .25); }
.a-note svg, .a-badge svg { width:15px; height:15px; fill:none; stroke:#fff; stroke-width:2.2; stroke-linejoin:round; }
.a-note.sel { outline:2px solid var(--acc); outline-offset:2px; }
.a-badge { width:18px; height:18px; margin:-12px 0 0 -6px; display:grid; place-items:center; border-radius:50%; background:var(--f); cursor:pointer; box-shadow:0 1px 4px rgb(0 0 0 / .25); }
.a-badge svg { width:11px; height:11px; }
.a-text { min-width:3em; padding:.15em .3em; border-radius:3px; }
.a-schrift { min-height:1.3em; outline:none; white-space:pre-wrap; word-break:break-word; cursor:text; -webkit-user-select:text; user-select:text; }
.a-text:hover, .a-text.sel { box-shadow:0 0 0 1px var(--acc2); background:rgb(255 255 255 / .7); }
.a-schrift:empty::before { content:"Text schreiben …"; color:var(--muted); }
.a-tab table { width:100%; margin:0; border-collapse:collapse; background:rgb(255 255 255 / .92); table-layout:fixed; font-size:inherit; line-height:inherit; border:0; border-radius:0; overflow:visible; }
.a-tab td { font-size:inherit; line-height:inherit; border:1px solid var(--fc); padding:.2em .35em; min-height:1.3em; height:1.6em; vertical-align:top; outline:none; color:var(--ink); word-break:break-word; white-space:pre-wrap;
  -webkit-user-select:text; user-select:text; cursor:text; }
.a-tab td:focus { background:#fff8db; }
.a-tab.sel table { box-shadow:0 0 0 2px var(--acc2); }
.a-griff { position:absolute; left:-18px; top:0; width:16px; height:22px; border-radius:4px; background:var(--acc) radial-gradient(circle, #fff 1.2px, transparent 1.6px) 0 0 / 6px 6px;
  cursor:move; opacity:0; touch-action:none; }
.a-text:hover .a-griff, .a-tab:hover .a-griff, .a-text.sel .a-griff, .a-tab.sel .a-griff { opacity:1; }
@media (hover:none) { .a-griff { opacity:.85; } }
.wz-mini { display:flex; flex-wrap:wrap; gap:.25rem; z-index:5; padding:.25rem; background:#fff; border:1px solid var(--line); border-radius:8px; box-shadow:0 4px 14px rgb(0 0 0 / .15);
  max-width:min(26rem, 90%); font-size:.8rem; }
.wz-mini button { margin:0; padding:.25rem .55rem; border:0; border-radius:6px; background:#eef2f7; color:var(--ink); font:inherit; font-weight:600; cursor:pointer; box-shadow:none; }
.wz-mini button:hover { background:#dfe7f0; } .wz-mini .weg { color:var(--bad); background:#fdecec; }
.wz-pop { z-index:7; width:min(18rem, 90%); padding:.5rem; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 24px rgb(0 0 0 / .18); font-size:.9rem; }
.wz-pop textarea { width:100%; font:inherit; resize:vertical; }
.wz-pop-knoepfe { display:flex; gap:.4rem; margin-top:.4rem; }
.wz-pop-knoepfe button { margin:0; padding:.3rem .8rem; font-size:.85rem; } .wz-pop-knoepfe .weg { margin-left:auto; background:#fdecec; color:var(--bad); }
/* Knöpfe Vollbild und Bearbeiten in der Leiste über dem Leser */
.leserknopf { display:inline-flex; align-items:center; gap:.35rem; } .leserknopf svg { width:16px; height:16px; flex:none; }
.leserknopf.on { background:var(--acc); color:#fff; }
.leserknopf.on svg path[stroke] { stroke:#ffe066; }
/* Große Ansicht (static/pdfvoll.js): alle Seiten untereinander über den ganzen Bildschirm, oben X zum Schließen */
body.va-offen { overflow:hidden; }
.vollansicht { position:fixed; inset:0; z-index:1000; display:flex; flex-direction:column; background:#e6eaef; }
.vollansicht[hidden] { display:none; }
.va-kopf { display:flex; align-items:center; gap:.7rem; padding:max(.5rem, env(safe-area-inset-top)) max(.8rem, env(safe-area-inset-right)) .5rem max(.8rem, env(safe-area-inset-left));
  background:#fff; border-bottom:1px solid var(--line); box-shadow:0 2px 8px rgb(0 0 0 / .06); }
.va-titel { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.9rem; color:var(--muted); }
.va-kopf b { flex:none; font-size:.9rem; font-variant-numeric:tabular-nums; }
.va-zu { flex:none; display:grid; place-items:center; width:2.6rem; height:2.6rem; margin:0; padding:0; border:0; border-radius:50%; background:var(--acc); color:#fff;
  font-size:1.3rem; line-height:1; cursor:pointer; box-shadow:none; }
.va-seiten { flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; padding:.6rem .5rem calc(1rem + env(safe-area-inset-bottom)); }
.va-seite { position:relative; max-width:56rem; margin:0 auto .6rem; background:#fff; box-shadow:0 1px 6px rgb(0 0 0 / .12); }
.va-seite img { display:block; width:100%; height:100%; object-fit:contain; }
.va-seite small { position:absolute; right:.4rem; bottom:.3rem; padding:0 .35rem; border-radius:4px; background:rgb(0 0 0 / .45); color:#fff; font-size:.7rem; }
/* Reiter Notizen und Seiten mit Notiz */
.notizliste { list-style:none; margin:0; padding:0; display:grid; gap:.3rem; }
.notizliste a { display:flex; flex-direction:column; gap:.2rem; padding:.45rem .55rem; border:1px solid var(--line); border-radius:6px; color:var(--ink); text-decoration:none; font-size:.85rem; }
.notizliste li.on a { border-color:var(--acc); background:#eef3f8; } .notizliste small { color:var(--muted); }
.nk { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; padding-left:.5rem; border-left:3px solid var(--f); }
.miniseiten a { position:relative; } .miniseiten a.hatnotiz::after { content:""; position:absolute; top:.35rem; right:.35rem; width:.6rem; height:.6rem; border-radius:50%;
  background:#e8a800; box-shadow:0 0 0 2px #fff; }
.lesertext { text-align:center; font-size:.85rem; }
@media (max-width:900px) {
  .leser { grid-template-columns:1fr; }
  .leserseite { position:static; max-height:45vh; }
}
/* Logos der Hersteller und kleine Cover im Bücherverzeichnis */
.logokopf { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; margin:1.1rem 0 .5rem; }
.logokopf h3.plainhead { margin:0; }
.hlogo { display:inline-grid; place-items:center; width:2.6rem; height:2.6rem; border-radius:50%; background:#fff; border:1px solid var(--line); overflow:hidden; flex:0 0 auto; }
.hlogo img { width:100%; height:100%; object-fit:contain; padding:3px; }
.hlogo b { font-size:.85rem; color:var(--acc); letter-spacing:.03em; }
.logoform { margin-left:auto; } .logoform[open] { flex:1 1 100%; margin-left:0; } .logoform > summary { list-style:none; cursor:pointer; } .logoform > summary::-webkit-details-marker { display:none; }
.logoform form { margin-top:.4rem; }
.buchzelle { display:flex; align-items:center; gap:.6rem; }
.minicover { position:relative; flex:0 0 2.4rem; height:3.3rem; display:grid; place-items:center; background:#eef2f7; border:1px solid var(--line); border-radius:3px; overflow:hidden; color:var(--acc); }
.minicover img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:#fff; }
/* Handbücher (handbuecher.html): Hersteller als Kacheln mit großem Logo, Kopf des Herstellers */
.herstellerkacheln { grid-template-columns:repeat(auto-fill, minmax(min(10.5rem, 100%), 1fr)); }
.herstellerkacheln .unterkachel { padding:1rem .6rem .8rem; }
.herstellerkacheln .hlogo { width:4.2rem; height:4.2rem; } .herstellerkacheln .hlogo b { font-size:1.15rem; }
.unterkachel:hover { border-color:var(--acc); box-shadow:inset 0 0 0 1px var(--acc); }
.herstellerkopf { display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; margin:0 0 .8rem; }
.herstellerkopf .hlogo { width:3.6rem; height:3.6rem; } .herstellerkopf > div { display:flex; flex-direction:column; } .herstellerkopf b { font-size:1.15rem; }
.handbuchgruppe { margin-top:1rem; }
/* Logo als Bild: Rechteck statt Kreis, damit breite Schriftzüge (KTM, Vespa) groß genug sind */
.hlogo.mitbild { position:relative; border-radius:8px; width:3.6rem; } .hlogo.mitbild img { position:absolute; inset:0; padding:4px; }
.herstellerkacheln .hlogo.mitbild { width:7.5rem; height:4.2rem; } .herstellerkopf .hlogo.mitbild { width:6.4rem; height:3.6rem; }
/* Handbücher beim Hersteller: drei Kästen nebeneinander (wie die Schrittleiste beim Schrauben-Etikett), jeder ein Aufklappmenü */
.hbleiste .sl-stand { flex-wrap:wrap; } .hbtreffer { margin-left:auto; } .hbtreffer a { color:var(--acc); }
.hbboxen { display:grid; grid-template-columns:repeat(var(--n, 3), minmax(0, 1fr)); gap:.4rem; position:relative; }
.hbbox { flex:none; min-width:0; }
.hbbox > summary { gap:.45rem; padding:.35rem .5rem; }
.hbico, .auswahl.hbbox > summary > span.hbico { flex:none; display:grid; place-items:center; width:2.1rem; height:2.1rem; border-radius:50%; background:#e8eef5; color:var(--acc); }
.hbico .fico { width:1.2rem; height:1.2rem; margin:0; }
.auswahl.hbbox.ok > summary > span.hbico { background:var(--acc); color:#fff; } .auswahl.hbbox.ok > summary > span.hbico .fico { color:#fff; }                       /* gewählt: Piktogramm blau gefüllt */
.hbbox > summary small { font-size:.7rem; }
.hbkopf { display:flex; align-items:center; gap:.4rem; margin:0 0 .2rem; padding:.3rem .6rem .4rem; border-bottom:1px solid var(--line); color:var(--acc); font-size:.8rem; font-weight:700; }
.hbkopf .fico { width:1rem; height:1rem; margin:0; }
.hbbox:not(.ok) > summary b { font-weight:400; color:var(--muted); }
.hbbox[open] > summary { box-shadow:inset 0 0 0 1px var(--acc); background:color-mix(in srgb, var(--acc) 6%, white); }
.hbbox .auswahl-liste { min-width:13rem; }
.hbbox:last-child .auswahl-liste { left:auto; right:0; }
.auswahl-liste span.aus { display:flex; align-items:center; gap:.7rem; padding:.45rem .6rem; border-radius:6px; color:var(--muted); opacity:.5; cursor:not-allowed; }
.auswahl-liste span.aus b { flex:1; min-width:0; font-weight:600; }
@media (max-width:600px) {                                  /* auf dem Handy klappt die Liste über die ganze Breite der drei Kästen auf */
  .hbbox { position:static; } .hbbox .auswahl-liste { left:0; right:0; min-width:0; }
  .hbbox > summary { padding:.35rem .4rem; gap:.35rem; } .hbbox .pfeil { display:none; } .auswahl.hbbox > summary > span.hbico { width:1.8rem; height:1.8rem; }
}
/* Kleines Herstellerlogo in der Seitenleiste (Wiki › Handbücher) */
@media (max-width:600px) { .herstellerkacheln { grid-template-columns:repeat(2, minmax(0, 1fr)); } .herstellerkacheln .hlogo.mitbild { width:100%; max-width:7.5rem; } }
.navlogo { width:1.5rem; height:.95rem; flex:none; object-fit:contain; background:#fff; border-radius:2px; }
.buchzeile details.formelaendern { flex:0 1 auto; } .buchzeile details.formelaendern[open] { flex:1 1 100%; }

/* 3D-Druck, Ausbau (app/druckausbau.py): Filament-Rollen, Wartung der Drucker, Fehldruck, Auswertung */
.rollenraster { display:grid; gap:.6rem; grid-template-columns:repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); margin:0 0 1rem; }
.rollenkarte { display:flex; gap:.8rem; align-items:center; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:.7rem .8rem; color:var(--ink); text-decoration:none; }
.rollenkarte:hover { border-color:var(--acc2); }
.rollenkarte.warn { box-shadow:inset 4px 0 0 #f0b429; background:#fffaf0; }
.rollenkarte small.warn { color:#8a5300; font-weight:600; }
.rollenbild { width:4.2rem; height:4.2rem; flex:none; }
.rollenbild.gross { width:min(12rem, 60vw); height:auto; }
.rk-text { display:flex; flex-direction:column; gap:.12rem; min-width:0; flex:1; }
.rk-text b { overflow-wrap:anywhere; }
.rk-rest { font-size:.85rem; color:var(--muted); } .rk-rest b { color:var(--ink); }
.rk-balken { display:block; height:.45rem; margin:.2rem 0; background:#e8edf2; border-radius:99px; overflow:hidden; max-width:16rem; }
.rk-balken i { display:block; height:100%; background:var(--acc2); border-radius:99px; }
.rollenkarte.warn .rk-balken i { background:#f0b429; }
.dw-kopf { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:.6rem 1.2rem; margin:0 0 .3rem; }
.dw-stunden { margin:0; display:flex; flex-direction:column; } .dw-stunden b { font-size:1.6rem; color:var(--acc); } .dw-stunden span { color:var(--muted); font-size:.85rem; }
.dw-hinweis { font-size:.85rem; margin:.2rem 0 .8rem; }
.dw-gruppe { margin:.9rem 0 .4rem; } .dw-gruppe.dw-faellig { color:#8a5300; }
.dw-punkt { display:grid; grid-template-columns:1fr auto; gap:.3rem .8rem; align-items:start; background:var(--card); border:1px solid var(--line); border-radius:8px; padding:.6rem .8rem; margin:0 0 .4rem; }
.dw-punkt.dw-faellig { box-shadow:inset 4px 0 0 #f0b429; background:#fffaf0; }
.dw-punkt.dw-bald { box-shadow:inset 4px 0 0 #f6d27a; }
.dw-text { display:flex; flex-direction:column; gap:.1rem; min-width:0; } .dw-text small { color:var(--muted); }
.dw-punkt.dw-faellig .dw-naechst { color:#8a5300; font-weight:600; }
.dw-aendern { grid-column:1 / -1; } .dw-aendern summary { cursor:pointer; color:var(--acc2); font-size:.85rem; }
.dw-aendern form { margin-top:.5rem; }
.dw-vorschlag { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .8rem; margin:.6rem 0; } .dw-vorschlag small { flex:1; min-width:min(16rem, 100%); }
.dwbadge { align-self:flex-start; font-size:.75rem; font-weight:600; padding:.1rem .5rem; border-radius:99px; background:#fdf3d8; color:#6b4a00; }
.dwbadge.faellig { background:#f0b429; color:#2b1f00; }
.druckplan.auswmonate { grid-template-columns:repeat(12, minmax(2.4rem, 1fr)); min-width:32rem; }
td.num.warn { color:#8a5300; font-weight:600; }

/* Orca Slicer verbinden (druck_orca.html) */
.orca-schritte { margin:0 0 1rem; padding-left:1.4rem; display:grid; gap:.8rem; max-width:52rem; }
.orca-schritte li { padding-left:.2rem; }
.orca-schritte p { margin:.5rem 0 0; }
.orca-zeile { margin:.5rem 0 0; padding:.6rem .8rem; background:var(--card); border:1px solid var(--line); border-radius:6px; font-size:.82rem; white-space:pre-wrap; overflow-wrap:anywhere; }

/* Projektmanagement nach Bereichen: Leiste oben, Bereichs-Kacheln auf „Alle“, Gruppenköpfe bei den laufenden Projekten */
.pmbereichsleiste { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.4rem; margin:0 0 1rem; }
.pmbereichsleiste a { display:flex; align-items:center; gap:.5rem; padding:.5rem .7rem; background:var(--card); border:1px solid var(--line); border-bottom:3px solid var(--bc,var(--acc2)); border-radius:8px; color:var(--ink); text-decoration:none; font-weight:600; font-size:.9rem; min-width:0; }
.pmbereichsleiste a span:not(.ico) { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pmbereichsleiste a em { font-style:normal; font-size:.78rem; color:var(--muted); background:#eef2f6; border-radius:99px; padding:0 .45rem; }
.pmbereichsleiste a:hover { border-color:var(--bc,var(--acc2)); }
.pmbereichsleiste a.on { background:var(--acc); border-color:var(--acc); color:#fff; }
.pmbereichsleiste a.on em { background:rgba(255,255,255,.2); color:#fff; }
.pmbereichsleiste a.on .ico { background:rgba(255,255,255,.18); color:#fff; }
@media (max-width:700px) { .pmbereichsleiste { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.pmbereiche { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(16rem,100%),1fr)); gap:.9rem; }
.pmbereich { display:flex; flex-direction:column; gap:.45rem; padding:.9rem 1rem; background:var(--card); border:1px solid var(--line); border-top:4px solid var(--bc); border-radius:10px; color:var(--ink); text-decoration:none; }
.pmbereich:hover { border-color:var(--bc); box-shadow:0 4px 14px rgba(0,0,0,.08); }
.pmbereich-kopf { display:flex; align-items:center; gap:.55rem; } .pmbereich-kopf b { flex:1; font-size:1.08rem; }
.pmbereich-kopf em { font-style:normal; font-size:1.5rem; font-weight:700; color:var(--acc); }
.pmbereich-zahlen { display:flex; flex-wrap:wrap; gap:.2rem .8rem; font-size:.82rem; color:var(--muted); }
.pmbereich-warn { align-self:flex-start; padding:.1rem .55rem; border-radius:99px; background:#f0b429; color:#2b1f00; font-size:.78rem; font-weight:600; }
.pmbereich-bald { align-self:flex-start; padding:.1rem .55rem; border-radius:99px; background:#fff0d1; color:#8a5200; font-size:.78rem; font-weight:600; }
.pmbereich-ok { align-self:flex-start; padding:.1rem .55rem; border-radius:99px; background:#d9f2e4; color:var(--ok); font-size:.78rem; font-weight:600; }
.pmbereich-top { display:flex; flex-direction:column; gap:.15rem; font-size:.86rem; } .pmbereich-top small { color:var(--muted); }
.pmbereich-los { margin-top:auto; font-size:.84rem; font-weight:600; color:var(--acc2); }
h3.pmgruppe { display:flex; align-items:center; gap:.5rem; margin:1rem 0 .5rem; padding-bottom:.3rem; border-bottom:2px solid var(--bc); font-size:1rem; }
h3.pmgruppe:first-of-type { margin-top:.2rem; }
h3.pmgruppe small { color:var(--muted); font-weight:400; } h3.pmgruppe .btn { margin-left:auto; }
@media (max-width:1000px) { .pmbereichsleiste a { padding:.45rem .6rem; font-size:.84rem; } .pmbereichsleiste a .ico { display:none; } .pmbereichsleiste a span:not(.ico) { white-space:normal; overflow:visible; line-height:1.2; hyphens:auto; } }

/* Etiketten-Werkzeug (19.11.2026 wie die Metorbike-App): Wege auf der Startseite, Auswahl für QR-Etiketten */
.etwege { display:grid; gap:.7rem; grid-template-columns:repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); margin:0 0 1.4rem; }
.etweg { display:flex; flex-direction:column; gap:.35rem; padding:1rem 1.1rem; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--ink); text-decoration:none; min-width:0; }
a.etweg:hover { border-color:var(--acc); box-shadow:inset 0 0 0 1px var(--acc); }
.etweg .ico { margin:0 0 .2rem; }
.etweg b { font-size:1.05rem; color:var(--acc); }
.etweg small { color:var(--muted); font-size:.82rem; line-height:1.35; }
.etweg.haupt { background:var(--acc); border-color:var(--acc); }
.etweg.haupt b, .etweg.haupt small { color:#fff; }
.etweg.haupt .ico { background:rgba(255,255,255,.16); color:#fff; }
.qrwahl .wahlspalte { width:2.2rem; text-align:center; }
.qrwahl .wahlspalte input { width:1.1rem; height:1.1rem; margin:0; }
.qrwahl code { white-space:nowrap; }
@media (max-width:600px) {
  .etwege { grid-template-columns:1fr 1fr; gap:.45rem; }
  .etweg { padding:.7rem; }
  .etweg small { display:none; }
  .etweg.haupt { grid-column:1 / -1; }
  .etweg.haupt small { display:block; }
}
