:root{color-scheme:light;--ink:#1c2b30;--teal:#287f90;--teal-pale:#e9f3f5;--line:#d5e1e3;--paper:#fff;--surface:#f5f8f9;--sh:#00000012;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden;background:var(--surface);color:var(--ink)}button,input,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:white;border-radius:9px;color:var(--ink);font-weight:550;touch-action:manipulation}button:hover{background:#eef7f8}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #53a9b7;outline-offset:2px}button:disabled{opacity:.35;cursor:default}.app{display:flex;flex-direction:column;min-height:100%;height:100dvh;max-height:100dvh}.topbar{z-index:6;flex:0 0 auto;background:white;min-height:62px;padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left));border-bottom:1px solid var(--line);display:flex;align-items:center;gap:18px}.brand{display:flex;align-items:baseline;gap:8px;white-space:nowrap}.brand-icon{display:inline-flex;font-size:32px;transform:rotate(-6deg);color:var(--teal);font-weight:900}.brand-name{font-size:23px;font-weight:850;letter-spacing:-.8px}.brand-name span{font-weight:480}.tagline{font-size:11px;color:var(--teal);font-weight:750;margin-left:8px}.project-heading{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:1px}#projectName{font-size:14px;font-weight:750;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#saveState{font-size:11px;color:#698084}.header-actions{display:flex;gap:6px}.header-actions button{height:38px;min-width:40px;padding:0 11px;font-size:23px}.header-actions .menu-button{font-size:15px}.menu-panel{position:absolute;z-index:8;top:62px;right:12px;max-width:435px;width:calc(100vw - 24px);background:#fff;border:1px solid var(--line);box-shadow:0 12px 38px #24333a2b;border-radius:0 0 14px 14px;padding:16px}.menu-panel[hidden], [hidden]{display:none!important}.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.menu-grid button{text-align:left;min-height:42px;padding:9px 10px;font-size:13px}.menu-options{display:flex;gap:20px;margin:14px 0 9px;flex-wrap:wrap}.switch-row{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}.switch-row input{accent-color:var(--teal);width:18px;height:18px}.helper-copy{font-size:12px;color:#5c7276;line-height:1.45;margin:4px 0 0}.workspace{flex:1;min-height:0;position:relative}.canvas-wrap{height:100%;position:relative;background:#fff;overflow:hidden}.canvas-wrap svg{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair;user-select:none}.canvas-wrap svg.is-select{cursor:default}.canvas-wrap svg.is-pan{cursor:grabbing}.canvas-tips{position:absolute;top:14px;left:50%;transform:translateX(-50%);border:1px solid #e1e9eb;background:#fffe;padding:8px 14px;border-radius:25px;box-shadow:0 3px 13px #00000012;color:#61777b;font-size:12px;pointer-events:none;white-space:nowrap;text-align:center;max-width:95%;overflow:hidden;text-overflow:ellipsis}.canvas-controls{position:absolute;right:16px;bottom:30px;display:flex;flex-direction:column;gap:5px}.canvas-controls button{width:42px;height:40px;font-size:21px;background:#fffef9;box-shadow:0 2px 8px #00000016}.canvas-scale{position:absolute;left:15px;bottom:12px;color:#819396;font-size:11px;pointer-events:none}.toolfooter{flex:0 0 auto;background:white;border-top:1px solid var(--line);z-index:5;padding-bottom:max(6px,env(safe-area-inset-bottom));box-shadow:0 -4px 20px #00000007}.toolstrip{display:flex;gap:8px;justify-content:center;padding:10px 12px 5px}.toolstrip button{height:58px;min-width:132px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px;letter-spacing:.5px;border-radius:11px}.toolstrip button.active{color:#fff;background:var(--teal);border-color:var(--teal)}.tool-icon{font-size:25px;font-weight:500;line-height:1}.footer-note{text-align:center;font-size:10px;color:#8a9da0;padding:1px 0 4px;letter-spacing:.3px}.edit-actions{display:flex;justify-content:center;align-items:center;gap:8px;padding:8px;background:var(--teal-pale);font-size:13px}.edit-actions button{padding:6px 12px}.edit-actions button#deleteSelected{border-color:#d8a1a1;color:#a53636}.edit-actions #selectionLabel{font-weight:650}.modal{border:1px solid var(--line);border-radius:14px;padding:24px;max-width:min(440px,calc(100vw - 20px));width:100%;box-shadow:0 12px 70px #001f2b45;color:var(--ink)}.modal::backdrop{background:#0c242c66}.modal h2{font-size:20px;margin:0 0 17px}.modal label:not(.switch-row){font-size:13px;font-weight:650;display:block;margin-bottom:6px}.modal input[type=text],.modal textarea{width:100%;padding:12px;border:1px solid #bdd0d4;border-radius:8px;background:#fff;color:var(--ink)}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.dialog-actions button{padding:11px 17px}.dialog-actions .primary{background:var(--teal);color:white;border-color:var(--teal)}.dialog-note{font-size:13px;color:#677b7f;line-height:1.5}.modal.wide{max-width:min(560px,calc(100vw - 20px))}.project-card{padding:11px 0;border-bottom:1px solid #e0eaec;display:flex;align-items:center;gap:8px;justify-content:space-between}.project-card .project-meta{min-width:0}.project-card b{display:block;overflow:hidden;text-overflow:ellipsis}.project-card small{display:block;color:#819395}.project-card .project-buttons{display:flex;gap:5px}.project-card button{padding:8px 9px;font-size:12px}.project-card button.danger{color:#aa3535}.export-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:17px 0}.export-options button{padding:16px 6px;font-weight:750;color:var(--teal)}#toast{position:fixed;bottom:110px;left:50%;transform:translateX(-50%);background:#24353a;color:#fff;padding:12px 18px;border-radius:9px;z-index:40;font-size:13px;box-shadow:0 8px 35px #0005;max-width:90vw;text-align:center}
@media(max-width:760px){.topbar{min-height:55px;gap:7px;padding:5px 9px}.brand-icon{display:none}.brand-name{font-size:18px}.tagline{display:none}.project-heading{align-items:flex-start;margin-left:6px}#projectName{font-size:12px}#saveState{font-size:10px}.header-actions button{min-width:32px;height:36px;padding:0 7px}.header-actions .menu-button span{display:none}.menu-panel{top:55px}.toolstrip{gap:5px;padding:7px 5px 4px}.toolstrip button{min-width:0;flex:1;flex-direction:column;gap:2px;height:57px;font-size:9px;letter-spacing:0;padding:2px 0}.tool-icon{font-size:23px}.footer-note{font-size:9px}.canvas-tips{top:8px;padding:6px 9px;font-size:11px}.canvas-controls{right:8px;bottom:10px}.canvas-controls button{width:36px;height:35px}.canvas-scale{bottom:10px;left:8px}}
@media(max-width:375px){.brand-name{font-size:16px}.menu-grid{grid-template-columns:1fr}.menu-panel{max-height:70dvh;overflow-y:auto}}
@media(orientation:landscape) and (max-height:500px){.topbar{min-height:42px}.menu-panel{top:42px}.toolstrip{padding:4px}.toolstrip button{height:41px;flex-direction:row}.footer-note{display:none}.canvas-tips{top:4px}}

/* K4NTBAER V2.1 - Freigegebene Wortmarke, nur Header aktualisiert */
.brand{align-items:flex-start;flex-direction:column;justify-content:center;gap:3px;min-width:0;flex:none}.brand-logo{display:block;width:220px;max-width:100%;height:auto;object-fit:contain}.brand .tagline{font-size:11px;line-height:1.2;white-space:nowrap;color:#111;font-weight:650;margin:0}.topbar{min-height:72px}.menu-panel{top:72px}
@media(max-width:760px){.topbar{min-height:59px}.brand-logo{width:150px}.brand .tagline{display:block;font-size:8.2px;line-height:1.1}.menu-panel{top:59px}.project-heading{margin-left:0}}
@media(max-width:390px){.brand-logo{width:128px}.brand .tagline{font-size:7px}.topbar{gap:5px}}
@media(orientation:landscape) and (max-height:500px){.topbar{min-height:49px}.menu-panel{top:49px}.brand-logo{width:120px}.brand .tagline{font-size:7px}}

/* K4NTBAER 2.1 tools */
.toolstrip{flex-wrap:wrap;align-items:center}.toolstrip button{min-width:92px;flex:0 1 auto;padding:0 12px}
.toolstrip .delete-one{background:#111;color:#fff;border-color:#111;font-size:14px;font-weight:750;min-width:68px;letter-spacing:0}.toolstrip .delete-one:hover:not(:disabled){background:#303030}.toolstrip .delete-one:disabled{background:#111;color:#fff;opacity:.35;cursor:default}
.toolstrip .clear-all{background:#be252a;border-color:#be252a;color:#fff;letter-spacing:0;text-transform:none;font-weight:750;min-width:108px}
.toolstrip .clear-all:hover{background:#a51d23}.toolstrip .share-jpg{background:#fff;border-color:#c6d0d3;color:#111;min-width:58px;padding:0 12px}.toolstrip .share-jpg:hover{background:#f0f3f4}
.toolstrip .paw-add{min-width:58px;font-size:28px;padding:0 12px}.danger-confirm{background:#be252a;color:white;border-color:#be252a}
@media(max-width:760px){.toolstrip{gap:4px;padding:6px 4px}.toolstrip button{flex:1 1 calc(20% - 5px);min-width:0;padding:3px 4px;min-height:49px;font-size:9px}.toolstrip .clear-all{min-width:0;flex:1 1 calc(25% - 5px);font-size:10px;line-height:1.05}.toolstrip .share-jpg,.toolstrip .paw-add{min-width:0;flex:1 1 calc(15% - 5px)}}
@media(max-width:450px){.toolstrip button{height:49px}.tool-icon{font-size:19px}.toolstrip .paw-add{font-size:24px}}

.toolstrip .paw-add{display:inline-flex;align-items:center;justify-content:center;background:#fff}.toolstrip .paw-add img{width:36px;height:38px;object-fit:contain;pointer-events:none}

@media(max-width:760px){.toolstrip .delete-one{min-width:0;flex:1 1 calc(15% - 5px);font-size:12px}}

/* K4NTBAER 3.0 – schwebende Hilfe / Fotovorlage */
.help-float{position:absolute;z-index:4;top:14px;right:15px;width:42px;height:42px;border-radius:50%;background:#111;color:#fff;border:2px solid #fff;font-size:23px;font-weight:750;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 12px #0003;touch-action:manipulation}
.help-float:hover{background:#287f90}.help-float:focus-visible{outline:3px solid #287f90;outline-offset:3px}
.help-modal{max-height:min(76dvh,680px);overflow-y:auto}
.help-content{font-size:14px;line-height:1.55;white-space:normal;max-height:55dvh;overflow:auto}
.menu-options .photo-note{flex:1 1 100%;font-size:11px;line-height:1.3;color:#667d80;margin:-8px 0 1px}
@media(max-width:760px){.help-float{top:10px;right:10px;width:38px;height:38px;font-size:21px}}

/* Hilfe 3.0 – kompakte, gut lesbare Werkzeugübersicht */
.help-content h3{font-size:14px;margin:18px 0 9px;letter-spacing:.045em;color:var(--ink)}
.help-content h3:first-child{margin-top:0}
.help-content p{margin:5px 0 12px}
.help-terms{margin:0;display:grid;gap:0}
.help-terms>div{display:grid;grid-template-columns:minmax(104px,30%) minmax(0,1fr);gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}
.help-terms dt{font-weight:750;overflow-wrap:anywhere}
.help-terms dd{margin:0;min-width:0;overflow-wrap:break-word}
@media(max-width:450px){.help-terms>div{grid-template-columns:minmax(80px,32%) minmax(0,1fr);gap:7px;font-size:12px}}
