:root{--bg:#000;--panel:#0c1522;--panel2:#101d2d;--line:#314155;--text:#f7f9fc;--muted:#9ca9ba;--blue:#20aef3;--danger:#ef5350;--safe:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:#000;color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;overflow:hidden}button,input,select{font:inherit}button{color:var(--text);background:#142235;border:1px solid var(--line);border-radius:14px;padding:.78rem .9rem;touch-action:manipulation}.hidden{display:none!important}
.camera-app{position:fixed;inset:0;background:#000}.camera-app video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000}
.top-overlay{position:absolute;z-index:10;left:0;right:0;top:0;display:flex;align-items:flex-start;justify-content:space-between;padding:calc(10px + env(safe-area-inset-top,0px)) 12px 18px;background:linear-gradient(180deg,rgba(0,0,0,.48),transparent);pointer-events:none}.brand{display:grid;text-shadow:0 2px 7px #000}.brand b{font-size:1rem}.brand small{font-size:.68rem;color:#d2d8e1;margin-top:2px}.round-btn{pointer-events:auto;width:50px;height:50px;border-radius:16px;padding:0;font-size:1.55rem;background:rgba(10,18,29,.7);backdrop-filter:blur(7px)}.top-actions{display:flex;gap:8px;pointer-events:auto}.top-actions .round-btn{pointer-events:auto}
.bottom-overlay{position:absolute;z-index:9;left:0;right:0;bottom:0;display:grid;place-items:center;padding:26px 12px calc(16px + var(--safe));background:linear-gradient(0deg,rgba(0,0,0,.62),transparent);pointer-events:none}.shutter{pointer-events:auto;width:78px;height:78px;border-radius:50%;padding:5px;background:#fff;border:4px solid rgba(255,255,255,.62);box-shadow:0 0 0 4px rgba(0,0,0,.35)}.shutter span{display:block;width:100%;height:100%;border-radius:50%;background:#fff;border:2px solid #1b1b1b}.shutter:disabled{opacity:.5}.save-status{margin-top:10px;min-height:20px;font-size:.72rem;text-shadow:0 1px 4px #000;color:#fff}
.camera-status{position:absolute;z-index:8;left:50%;top:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,.5);padding:9px 12px;border-radius:12px;font-size:.8rem;pointer-events:none}.camera-status.ready{opacity:0;transition:opacity .5s}
.activity{position:fixed;z-index:390;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;grid-template-columns:auto 1fr;gap:10px 12px;align-items:center;width:min(88vw,390px);min-height:92px;background:rgba(5,10,17,.96);border:2px solid rgba(211,166,74,.78);border-radius:22px;padding:18px 20px;backdrop-filter:blur(10px);box-shadow:0 18px 70px rgba(0,0,0,.7),0 0 0 9999px rgba(0,0,0,.28);pointer-events:none}.activity #activityText{font-size:1rem;font-weight:850;line-height:1.25;color:#fff4d1}.spinner{width:30px;height:30px;border-radius:50%;border:3px solid rgba(255,255,255,.18);border-top-color:#e7b84d;animation:spin .72s linear infinite}.activity-track{grid-column:1/-1;height:8px;border-radius:99px;background:#172536;overflow:hidden}.activity-track span{display:block;height:100%;width:12%;background:linear-gradient(90deg,#9d7226,#f1c55d);transition:width .2s ease}@keyframes spin{to{transform:rotate(360deg)}}
.backdrop{position:fixed;inset:0;z-index:40;background:rgba(0,0,0,.55)}.sheet{position:fixed;z-index:50;left:0;right:0;bottom:0;max-height:88dvh;overflow:auto;background:linear-gradient(180deg,#101b2a,#07101a);border-top:1px solid #394b61;border-radius:22px 22px 0 0;padding:15px 15px calc(18px + var(--safe));box-shadow:0 -16px 45px rgba(0,0,0,.5)}.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.sheet-head>div{display:grid}.sheet-head b{font-size:1.08rem}.sheet-head small{color:var(--muted);margin-top:2px}.close-btn{width:44px;height:44px;padding:0}
.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.menu-grid button{min-height:70px;display:grid;grid-template-columns:38px 1fr;align-items:center;text-align:left}.menu-grid b{font-size:1.35rem;color:#5acbff}.menu-grid span{font-weight:750}
label{display:grid;gap:6px;margin:11px 0;color:#e6edf7;font-size:.86rem}input,select{width:100%;min-width:0;background:#07101c;border:1px solid #35475c;color:#fff;border-radius:12px;padding:.8rem .85rem;outline:none}input[readonly]{color:#c6d0dc}.row-input{display:grid;grid-template-columns:1fr auto;gap:8px}.two-col{display:grid;grid-template-columns:1.4fr .8fr;gap:9px}.switch-row{display:flex;align-items:center;gap:10px;background:#0b1624;border:1px solid #2d3f54;padding:11px;border-radius:12px}.switch-row input{width:20px;height:20px}.status-card{background:#07111d;border:1px solid #2f4258;border-radius:13px;padding:11px;line-height:1.35;font-size:.82rem}.hint{color:var(--muted);font-size:.74rem;line-height:1.4}.queue-row{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:.78rem;padding:8px 1px}.actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:8px}.primary{background:var(--blue);border-color:#6bd1ff;color:#04131c;font-weight:800}
.toast{position:fixed;z-index:120;left:50%;bottom:calc(16px + var(--safe));transform:translate(-50%,25px);opacity:0;max-width:min(92vw,520px);padding:10px 13px;border-radius:13px;background:#123325;border:1px solid #2b7655;text-align:center;font-size:.8rem;pointer-events:none;transition:.18s}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.error{background:#3d1719;border-color:#82383e}
@media(min-width:760px){.sheet{left:50%;right:auto;transform:translateX(-50%);width:min(720px,94vw);bottom:18px;border:1px solid #394b61;border-radius:22px}.brand b{font-size:1.05rem}}
@media(max-width:520px){.two-col{grid-template-columns:1fr}.menu-grid{grid-template-columns:1fr}.row-input{grid-template-columns:1fr}.actions{grid-template-columns:1fr}.brand b{font-size:.92rem}}
.gps-hud{position:absolute;z-index:8;left:12px;top:calc(66px + env(safe-area-inset-top,0px));max-width:min(76vw,520px);padding:6px 9px;border-radius:10px;background:rgba(0,0,0,.28);backdrop-filter:blur(4px);font-size:.72rem;text-shadow:0 1px 4px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.gps-box{margin:12px 0}.gps-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}.gps-head button{padding:.55rem .75rem}.gps-box .status-card{white-space:pre-line}

.gesture-countdown{position:fixed;z-index:130;left:50%;top:50%;transform:translate(-50%,-50%);min-width:180px;max-width:82vw;min-height:92px;border-radius:22px;display:grid;place-items:center;text-align:center;white-space:pre-line;padding:16px 22px;background:rgba(0,0,0,.62);border:3px solid rgba(255,255,255,.78);font-size:1.45rem;line-height:1.25;font-weight:900;text-shadow:0 2px 10px #000;pointer-events:none}
.capture-drag-note{font-size:.72rem;color:var(--muted)}
@media (orientation:landscape){
  .bottom-overlay.landscape-free{position:absolute;inset:0;padding:0;background:none;display:block;pointer-events:none}
  .bottom-overlay.landscape-free .shutter{position:absolute;margin:0;z-index:25;cursor:grab;touch-action:none}
  .bottom-overlay.landscape-free .shutter:active{cursor:grabbing}
  .bottom-overlay.landscape-free .save-status{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);margin:0;background:rgba(0,0,0,.28);padding:4px 8px;border-radius:8px}
}
@media (orientation:portrait){
  .bottom-overlay{display:grid}
}

.main-folder-box,.backup-box{margin:12px 0;padding:12px;border:1px solid #2f4258;border-radius:14px;background:#08131f}.main-folder-box>b,.backup-box>b{display:block;margin-bottom:7px}.main-folder-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:0 10px}.main-folder-grid label:last-child{grid-column:1/-1}.date-check{position:fixed;inset:0;z-index:160;background:rgba(0,0,0,.68);display:grid;place-items:center;padding:18px}.date-check-box{width:min(94vw,560px);background:linear-gradient(180deg,#132235,#08121f);border:1px solid #425873;border-radius:18px;padding:16px;box-shadow:0 20px 60px rgba(0,0,0,.55)}.date-check-box>b{font-size:1.1rem}.date-check-box p{color:#dce5ef;line-height:1.45}.backup-box .actions{margin-top:6px}@media(max-width:520px){.main-folder-grid{grid-template-columns:1fr}.main-folder-grid label:last-child{grid-column:auto}}

.template-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.danger-soft{background:#35151a!important;border-color:#73333b!important}@media(max-width:520px){.template-actions{grid-template-columns:1fr}}

.single-action{grid-template-columns:1fr!important}
#cameraFlipBtn{font-size:1.35rem}

.camera-quick-picker{position:absolute;z-index:22;top:calc(70px + env(safe-area-inset-top,0px));right:12px;max-width:min(92vw,390px);display:grid;grid-template-columns:repeat(3,minmax(82px,1fr));gap:8px;padding:10px;background:rgba(7,15,25,.88);border:1px solid rgba(255,255,255,.18);border-radius:18px;backdrop-filter:blur(10px);box-shadow:0 12px 32px rgba(0,0,0,.4)}
.camera-choice-btn{position:relative;min-width:0;min-height:92px;padding:8px 5px;border-radius:15px;background:rgba(20,34,53,.88);display:grid;place-items:center;gap:2px;text-align:center;touch-action:manipulation;user-select:none;-webkit-user-select:none}.camera-choice-btn .cam-icon{font-size:1.7rem;line-height:1}.camera-choice-btn b{font-size:.82rem}.camera-choice-btn small{font-size:.62rem;color:var(--muted);max-width:88px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.camera-choice-btn.active{border-color:#56c9ff;box-shadow:0 0 0 2px rgba(32,174,243,.35) inset}.camera-choice-btn.default::after{content:'★';position:absolute;right:6px;top:4px;color:#ffd75a;font-size:.85rem}.camera-picker-help{grid-column:1/-1;color:#b6c3d2;font-size:.66rem;text-align:center;padding:2px 4px 0}@media(max-width:360px){.camera-quick-picker{grid-template-columns:repeat(2,minmax(82px,1fr))}}

.general-box{margin:14px 0;padding:12px;border:1px solid #2f4258;border-radius:14px;background:#08131f}.general-box>b{display:block;margin-bottom:8px}
.shutter-flash{position:absolute;inset:0;z-index:30;background:#fff;opacity:0;pointer-events:none}.shutter-flash.flash-on{opacity:.72;transition:opacity .025s linear}
textarea{width:100%;min-width:0;background:#07101c;border:1px solid #35475c;color:#fff;border-radius:12px;padding:.8rem .85rem;outline:none;font:inherit;resize:vertical}
.photo-info-hud{position:absolute;z-index:8;left:12px;bottom:118px;max-width:min(82vw,620px);display:flex;align-items:flex-end;gap:9px;padding:7px 9px;border-radius:10px;background:rgba(0,0,0,.28);backdrop-filter:blur(4px);font-size:.72rem;line-height:1.3;text-shadow:0 1px 4px #000;pointer-events:none;white-space:pre-line}.photo-info-logo{max-width:74px;max-height:58px;object-fit:contain}.info-settings-box,.install-box{margin:12px 0;padding:12px;border:1px solid #2f4258;border-radius:14px;background:#08131f}.info-settings-box>b,.install-box>b{display:block;margin-bottom:8px}.info-switch-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.logo-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.logo-preview-box{display:grid;place-items:center;padding:10px;border:1px solid #2f4258;border-radius:12px;background:#06101b}.logo-preview-box img{max-width:220px;max-height:100px;object-fit:contain}
.editor-panel{position:fixed;inset:0;z-index:200;background:#05080d;display:flex;flex-direction:column}.editor-head{height:58px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:7px 9px;border-bottom:1px solid #263448;background:#0a111b}.editor-head>b{text-align:center}.editor-head-actions{display:flex;gap:6px}.editor-head button{padding:.55rem .65rem}.editor-canvas-wrap{flex:1;min-height:0;display:grid;place-items:center;overflow:auto;background:#000;padding:6px;position:relative}.editor-canvas-wrap canvas{max-width:100%;max-height:100%;touch-action:none;transform-origin:center center}.editor-toolbar{display:flex;gap:5px;padding:7px;background:#0b111a;overflow-x:auto;border-top:1px solid #263448}.editor-toolbar button{min-width:44px;padding:.6rem .35rem}.editor-toolbar button.active{background:#0d86c4}.editor-options{display:grid;grid-template-columns:100px 1fr 1fr;gap:8px;padding:7px 10px;background:#0b111a}.editor-options label{display:grid;gap:4px;font-size:.72rem;color:var(--muted)}.editor-options input[type=color]{width:100%;height:36px;border:0;background:transparent}.editor-options input[type=range]{width:100%}.editor-zoom{display:flex;align-items:center;gap:4px}.floating-zoom{position:absolute;right:10px;bottom:10px;z-index:12;padding:4px;background:rgba(7,14,24,.72);backdrop-filter:blur(5px);border:1px solid rgba(255,255,255,.16);border-radius:999px;box-shadow:0 4px 18px rgba(0,0,0,.35)}.floating-zoom button{width:38px;height:38px;min-width:38px;padding:0;border-radius:50%;font-size:1.15rem;background:rgba(20,33,48,.9)}.floating-zoom #zoomResetBtn{width:auto;min-width:58px;padding:0 9px;border-radius:999px}.floating-zoom #zoomResetBtn span{font-size:.78rem;font-weight:800}.text-entry{position:fixed;inset:0;z-index:240;background:rgba(0,0,0,.58);display:grid;place-items:center;padding:16px}.text-entry-box{width:min(600px,96vw);background:#111d2b;border:1px solid #40536c;border-radius:16px;padding:12px}.text-entry textarea{min-height:105px;font-size:1.1rem}.text-format-grid{display:grid;grid-template-columns:1.4fr .8fr 1fr;gap:8px;margin-bottom:8px}.text-format-grid label{margin:0}.text-format-grid .switch-row{align-self:end}.text-format-grid input[type=color]{height:42px;padding:0}.text-format-grid input[type=range]{width:100%}
@media(max-width:520px){.info-switch-grid{grid-template-columns:1fr}.logo-actions{grid-template-columns:1fr}.editor-options{grid-template-columns:82px 1fr 1fr}.text-format-grid{grid-template-columns:1fr 1fr}.text-format-grid label:first-child{grid-column:1/-1}.photo-info-hud{bottom:112px;font-size:.66rem}}

.editor-head-actions{display:flex;gap:6px;align-items:center}
.editor-settings-panel{background:#0b111a;border-bottom:1px solid #263448;padding:8px 10px;display:grid;gap:10px}
.editor-settings-grid{display:grid;grid-template-columns:100px 1fr 1fr;gap:8px}
.editor-settings-grid label{display:grid;gap:4px;font-size:.72rem;color:var(--muted);margin:0}
.editor-settings-grid input[type=color]{width:100%;height:36px;border:0;background:transparent}
.editor-settings-grid input[type=range]{width:100%}
.template-box{padding:10px;border:1px solid #2b3b4e;border-radius:12px;background:#09111b}
.template-box>b{display:block;margin-bottom:8px}
.compact-4{grid-template-columns:repeat(4,1fr)!important}
@media(max-width:640px){.compact-4{grid-template-columns:1fr 1fr!important}.editor-settings-grid{grid-template-columns:82px 1fr 1fr}}
@media(max-width:520px){.compact-4{grid-template-columns:1fr!important}}
.text-entry-box>label{margin-top:0}

.stamp-preview-grid{display:grid;grid-template-columns:repeat(4,minmax(70px,1fr));gap:8px;margin:8px 0}.stamp-preview-card{position:relative;display:grid;grid-template-rows:68px auto;gap:5px;align-items:center;justify-items:center;padding:7px;background:#07101b;border:1px solid #2b3d52;border-radius:11px;min-width:0}.stamp-preview-card img{width:100%;height:68px;object-fit:contain;background:#fff;border-radius:7px}.stamp-preview-card span{font-size:.68rem;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stamp-preview-card.active{border-color:#54c8ff;box-shadow:0 0 0 2px rgba(32,174,243,.24) inset}.stamp-empty{grid-column:1/-1;color:var(--muted);font-size:.72rem;padding:10px;text-align:center;border:1px dashed #2c4056;border-radius:10px}
.print-preview-modal{position:fixed;inset:0;z-index:280;background:rgba(0,0,0,.72);display:grid;place-items:center;padding:12px}.print-preview-box{width:min(96vw,760px);max-height:96dvh;overflow:auto;background:#101b2a;border:1px solid #40546c;border-radius:18px;padding:12px;box-shadow:0 20px 70px rgba(0,0,0,.58)}.print-preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.print-preview-head b{font-size:1.05rem}.print-preview-head button{width:42px;height:42px;padding:0}.print-controls{display:grid;grid-template-columns:1fr 1fr;gap:9px}.print-paper{margin:10px auto;background:#fff;box-shadow:0 8px 28px rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;overflow:hidden;box-sizing:border-box;width:min(76vw,520px);padding:18px}.print-paper.portrait{aspect-ratio:210/297}.print-paper.landscape{aspect-ratio:297/210;width:min(90vw,700px)}.print-paper img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
@media(max-width:620px){.stamp-preview-grid{grid-template-columns:repeat(3,minmax(70px,1fr))}.print-controls{grid-template-columns:1fr}.print-paper{width:min(84vw,470px)}}

.sync-progress{height:10px;margin-top:10px;border-radius:999px;overflow:hidden;background:#07101c;border:1px solid #2f4258}.sync-progress-bar{height:100%;width:0%;background:linear-gradient(90deg,#30b6f2,#7fd9ff);transition:width .18s ease}.sync-progress-text{margin-top:5px;text-align:right;color:var(--muted);font-size:.74rem}

/* Ver. 20260921-0033 – Vorbereitung / Kameraqualität */
.compact-status{padding:9px 10px;margin-top:8px;font-size:.76rem}
.camera-quality-box label{margin:8px 0}
.prep-panel{position:fixed;inset:0;z-index:185;background:linear-gradient(180deg,#0a121d,#05090f);display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom,0px)}
.prep-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:calc(8px + env(safe-area-inset-top,0px)) 10px 8px;border-bottom:1px solid #27384c;background:#0b1420;min-height:64px}.prep-head>div{display:grid;min-width:0}.prep-head b{font-size:1rem}.prep-head small{font-size:.68rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.prep-head button{padding:.6rem .72rem;white-space:nowrap}.prep-back{font-weight:700}
.prep-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px;background:#08101a;border-bottom:1px solid #1f2e40}.prep-summary>div{display:grid;place-items:center;padding:8px;border:1px solid #2a3c50;border-radius:12px;background:#0c1725}.prep-summary b{font-size:1.22rem;color:#5fd0ff}.prep-summary span{font-size:.66rem;color:var(--muted)}
.prep-notice{margin:9px 10px 0;padding:9px 11px;border:1px solid #2b4056;border-radius:12px;background:#0a1623;color:#cdd8e6;font-size:.76rem;line-height:1.35}
.prep-grid{flex:1;min-height:0;overflow:auto;padding:10px;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;align-content:start}.prep-empty{grid-column:1/-1;padding:28px 16px;border:1px dashed #31455d;border-radius:16px;color:var(--muted);text-align:center;background:#09121d}
.prep-card{display:grid;grid-template-columns:116px 1fr;gap:10px;padding:9px;border:1px solid #2c3f54;border-radius:16px;background:#0b1522;min-width:0}.prep-thumb{position:relative;width:116px;height:116px;border-radius:12px;overflow:hidden;background:#000;border:1px solid #263a50}.prep-thumb img{width:100%;height:100%;object-fit:cover;display:block}.prep-version{position:absolute;left:6px;bottom:6px;padding:3px 6px;border-radius:999px;background:rgba(0,0,0,.72);font-size:.62rem;font-weight:800}.prep-main{min-width:0;display:flex;flex-direction:column;gap:5px}.prep-title{font-size:.77rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.prep-meta{font-size:.66rem;color:var(--muted);line-height:1.3}.prep-state{display:flex;align-items:center;gap:7px;min-height:26px;padding:5px 7px;border-radius:9px;background:#07111c;border:1px solid #24374a;font-size:.7rem}.prep-state.ok{border-color:#276b4c;background:#0c261b;color:#bff4d9}.prep-state.ready{border-color:#316f92;background:#0b2230;color:#bdeaff}.prep-state.error{border-color:#7d3940;background:#351519;color:#ffd3d5}.prep-state .mini-spin{width:15px;height:15px;border-radius:50%;border:2px solid rgba(255,255,255,.22);border-top-color:#62d1ff;animation:spin .75s linear infinite;flex:0 0 auto}.prep-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:auto}.prep-actions button{padding:.52rem .55rem;border-radius:10px;font-size:.7rem}.prep-actions .wide{grid-column:1/-1}.prep-actions .ready-btn{background:#0f6e9f;border-color:#49c8ff}.prep-actions .ready-btn.is-ready{background:#174b35;border-color:#45a776}.prep-actions .original-btn{background:#201b10;border-color:#61552d}
.prep-sendbar{display:grid;gap:5px;padding:9px 10px calc(9px + env(safe-area-inset-bottom,0px));border-top:1px solid #2a394c;background:#09121d}.prep-sendbar button{min-height:52px;font-size:1rem}.prep-sendbar button:disabled{opacity:.48}.prep-sendbar small{text-align:center;color:var(--muted);font-size:.66rem}
.editor-simple-toolbar{display:flex;gap:6px;padding:7px;background:#0b111a;border-top:1px solid #263448;overflow-x:auto}.editor-simple-toolbar button{min-width:max-content;padding:.58rem .7rem;border-radius:10px;font-size:.74rem}.editor-simple-toolbar button.active{background:#0d86c4;border-color:#59cfff}.editor-simple-toolbar #restoreOriginalBtn{background:#241d10;border-color:#675630}
@media(max-width:560px){.prep-grid{grid-template-columns:1fr}.prep-card{grid-template-columns:98px 1fr}.prep-thumb{width:98px;height:112px}.prep-actions{grid-template-columns:1fr 1fr}.prep-head small{max-width:45vw}.editor-head{grid-template-columns:auto 1fr auto}.editor-head-actions button{padding:.48rem .5rem;font-size:.76rem}.editor-head-actions #editorGalleryBtn,.editor-head-actions #printEditorBtn{display:none}}
@media(orientation:landscape) and (max-height:560px){.prep-summary{grid-template-columns:repeat(3,110px);justify-content:center;padding:6px}.prep-summary>div{padding:4px}.prep-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));padding:7px}.prep-card{grid-template-columns:108px 1fr}.prep-thumb{height:92px}.prep-sendbar{grid-template-columns:1fr auto;align-items:center}.prep-sendbar small{max-width:280px}.editor-simple-toolbar{padding:4px}.editor-simple-toolbar button{padding:.45rem .6rem}}


.prep-top-actions{display:flex;gap:10px;align-items:center}
.prep-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 14px}
.prep-guide>div{background:#0f213b;border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:10px 12px;display:flex;gap:10px;align-items:flex-start}
.prep-guide b{display:inline-flex;width:26px;height:26px;border-radius:50%;align-items:center;justify-content:center;background:#2fa9ff;color:#031525}
.prep-next-step{font-size:.92rem;color:#a9c2db;margin:.25rem 0 .5rem}
.editor-help-strip{display:grid;grid-template-columns:1fr;gap:8px;padding:10px 14px;background:#0f1b2c;border-bottom:1px solid rgba(255,255,255,.06);font-size:.93rem;color:#dce8f7}
.editor-help-strip b{color:#67d1ff}
.stamp-builder-modal{position:fixed;inset:0;z-index:70;background:rgba(4,10,20,.82);display:flex;align-items:center;justify-content:center;padding:10px}
.stamp-builder-box{width:min(1200px,100%);max-height:95vh;background:#071426;border:1px solid rgba(255,255,255,.12);border-radius:22px;overflow:hidden;display:flex;flex-direction:column}
.stamp-builder-head,.stamp-builder-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;background:#0c1c32}
.stamp-builder-body{display:grid;grid-template-columns:1.2fr .9fr;gap:16px;padding:16px;overflow:auto}
.stamp-builder-form,.stamp-builder-preview{display:flex;flex-direction:column;gap:12px}
.stamp-builder-logo-row,.stamp-builder-actions,.stamp-builder-foot{display:flex;gap:10px;flex-wrap:wrap}
.stamp-builder-items{display:flex;flex-direction:column;gap:10px}
.stamp-item-row{background:#0d1b2f;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:12px}
.stamp-item-top{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}
.stamp-item-grid{display:grid;grid-template-columns:1.8fr 1fr;gap:10px}
.stamp-item-options{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px}
.mini-actions{display:flex;gap:6px}
.mini-actions button{min-width:38px}
.stamp-builder-preview{background:#0d1b2f;border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:12px}
.stamp-builder-preview-head{display:flex;flex-direction:column;gap:4px;color:#dce8f7}
.stamp-builder-preview img{width:100%;height:auto;border-radius:12px;background:#fff}
@media (max-width:900px){.prep-guide{grid-template-columns:1fr}.stamp-builder-body{grid-template-columns:1fr}.stamp-item-grid{grid-template-columns:1fr}}

/* Ver. 20260921-0026 – kompakte Vorbereitung, Live-Werkzeuge unten, Gesendet-Archiv */
.install-prompt-card{position:fixed;z-index:150;left:50%;top:50%;transform:translate(-50%,-50%);width:min(92vw,470px);display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;padding:16px;background:linear-gradient(180deg,#132841,#0a1727);border:1px solid #4d6b89;border-radius:22px;box-shadow:0 22px 70px rgba(0,0,0,.65)}
.install-prompt-icon{font-size:2.6rem;line-height:1}.install-prompt-text{display:grid;gap:3px}.install-prompt-text b{font-size:1.12rem}.install-prompt-text span{font-size:.78rem;color:#b9c7d7}.install-prompt-card #installPromptBtn{grid-column:1/-1;min-height:54px;font-size:1.02rem}.install-prompt-card .install-later{grid-column:1/-1;background:transparent;border-color:transparent;color:#aebccc;padding:.45rem}

.prep-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px 10px;border-bottom:1px solid #223448;background:#08111c}
.prep-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;padding:.66rem .7rem;border-radius:12px;background:#101c2a;color:#bfcbd8}
.prep-tabs button.active{background:#0f6f9e;border-color:#55caff;color:#fff}
.prep-tabs span{min-width:24px;padding:2px 7px;border-radius:999px;background:rgba(255,255,255,.13);font-size:.72rem;font-weight:800}
.prep-grid{padding-top:8px}
.prep-card.sent-card{border-color:#245c46;background:#0a1815}.prep-card.sent-card .prep-version{background:#0b5d3b}.prep-card.sent-card .prep-state.ok{font-size:.66rem;line-height:1.3;word-break:break-word}
.prep-actions{grid-template-columns:1fr 1fr 1fr}.prep-actions button{min-width:0}.prep-card.sent-card .prep-actions{grid-template-columns:1.35fr .9fr}
@media(max-width:560px){.prep-actions{grid-template-columns:1fr 1fr}.prep-actions .danger-soft{grid-column:1/-1}.prep-card.sent-card .prep-actions{grid-template-columns:1fr 1fr}.prep-card.sent-card .prep-actions .danger-soft{grid-column:auto}}

.editor-panel{background:#03070c}
.editor-canvas-wrap{padding:4px;min-height:0}
.editor-bottom-bar{display:flex;gap:7px;padding:7px 8px;background:#0a111b;border-top:1px solid #263448;flex:0 0 auto}
.editor-bottom-bar button{min-height:44px;padding:.6rem .75rem;white-space:nowrap}.editor-bottom-bar #editorToolsToggleBtn{flex:1}.editor-bottom-bar #editorSelectToolBtn{flex:0 0 auto}
.editor-tools-drawer{background:#09111b;border-top:1px solid #263448;padding:6px 7px 8px;display:grid;gap:6px;flex:0 0 auto}
.editor-tools-scroll{display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:2px;-webkit-overflow-scrolling:touch}
.editor-tools-scroll button{flex:0 0 auto;min-width:max-content;padding:.56rem .7rem;border-radius:10px;font-size:.74rem}
.editor-tools-scroll button.active{background:#0d86c4;border-color:#59cfff}
.editor-tools-scroll.row-two{align-items:center;border-top:1px solid rgba(255,255,255,.06);padding-top:6px}
.tool-field,.tool-select{flex:0 0 auto;display:flex;align-items:center;gap:7px;min-height:42px;padding:5px 8px;border:1px solid #2b3d52;border-radius:10px;background:#0c1724;color:#b8c6d5;font-size:.7rem;white-space:nowrap}
.tool-field input[type=color]{width:38px;height:30px;padding:0;border:0;background:transparent}.tool-field input[type=range]{width:100px}.tool-select select{width:150px;min-height:32px;padding:.25rem .4rem}.wide-range{min-width:155px}
.stamp-builder-modal{z-index:320}
@media(orientation:landscape) and (max-height:560px){.editor-bottom-bar{padding:4px 6px}.editor-bottom-bar button{min-height:36px;padding:.4rem .55rem}.editor-tools-drawer{padding:4px 6px}.editor-tools-scroll button{padding:.42rem .58rem}.tool-field,.tool-select{min-height:34px;padding:3px 6px}}


.start-home{position:fixed;inset:0;z-index:135;display:grid;place-items:center;padding:18px;background:radial-gradient(circle at 50% 30%,#12243b 0,#07111c 46%,#020509 100%)}
.start-home-card{width:min(92vw,560px);display:grid;gap:14px;padding:22px;background:rgba(10,22,37,.93);border:1px solid #38516d;border-radius:24px;box-shadow:0 26px 80px rgba(0,0,0,.55)}
.start-home-title{display:flex;align-items:center;gap:14px;margin-bottom:5px}.start-home-title>div:last-child{display:grid;gap:3px}.start-home-title b{font-size:1.35rem}.start-home-title small{color:#aebed0}.start-home-icon{font-size:2.7rem}.start-main-btn{min-height:68px;font-size:1.05rem;font-weight:800}.start-folder-status{padding:9px 11px;border-radius:12px;background:#07111d;border:1px solid #2f4258;color:#aebed0;font-size:.78rem;line-height:1.35}
.folder-setup-card{position:fixed;inset:0;z-index:270;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.82)}
.folder-setup-box{width:min(94vw,520px);display:grid;gap:12px;padding:20px;border-radius:22px;background:#0c1a2b;border:1px solid #45617e;box-shadow:0 24px 80px rgba(0,0,0,.6)}.folder-setup-box>b{font-size:1.25rem}.folder-setup-box p{margin:0;line-height:1.45;color:#dbe6f3}.folder-setup-box small{color:#a9b8c8;line-height:1.4}.folder-setup-icon{font-size:2.8rem}.folder-setup-box button{min-height:58px}
.editor-tool-hint{padding:7px 10px;background:#07111d;border-top:1px solid rgba(255,255,255,.05);color:#aabbd0;font-size:.72rem;line-height:1.35;text-align:center}
.exit-confirm-modal{position:fixed;inset:0;z-index:320;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.72)}.exit-confirm-box{width:min(92vw,430px);padding:18px;border-radius:20px;background:#101d2d;border:1px solid #405772}.exit-confirm-box>b{font-size:1.2rem}.exit-confirm-box p{color:#c4d0df}

.prep-card button,.prep-card .prep-thumb{pointer-events:auto;touch-action:manipulation}
.prep-edit-btn{position:relative;z-index:2}
.editor-panel:not(.hidden){display:flex!important}

.editor-load-state{position:absolute;inset:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;text-align:center;background:#050b14;color:#eef7ff}
.editor-load-state.error{background:#18090b;color:#fff1f1}
.editor-load-state small{max-width:520px;color:#aac0d7;overflow-wrap:anywhere}.editor-load-state.error small{color:#ffc7c7}
.editor-load-spinner{width:48px;height:48px;border:5px solid rgba(255,255,255,.18);border-top-color:#36b8ff;border-radius:50%;animation:editor-spin .85s linear infinite}
@keyframes editor-spin{to{transform:rotate(360deg)}}
.editor-load-state button{margin-top:8px}

/* Ver. 20260921-0032 – Kamera-Zoom + stabilerer Editor + Rahmen/Muster */

.editor-bottom-bar{overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.editor-bottom-bar button{flex:0 0 auto}.editor-bottom-bar #editorToolsToggleBtn{flex:0 0 auto}.editor-photo-toolbar{display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding:6px 7px;background:#0d1723;border-top:1px solid rgba(255,255,255,.07);flex:0 0 auto}.editor-photo-toolbar button{flex:0 0 auto;min-width:max-content;padding:.54rem .7rem;border-radius:10px;font-size:.74rem}.editor-photo-toolbar button.active{background:#0d86c4;border-color:#59cfff}.editor-photo-toolbar #restoreOriginalBtn{background:#241d10;border-color:#675630}.editor-canvas-wrap.is-photo-mode{outline:2px solid rgba(55,187,255,.45);outline-offset:-2px}

.frame-editor-modal{position:fixed;inset:0;z-index:285;background:rgba(0,0,0,.76);display:grid;place-items:center;padding:10px}.frame-editor-box{width:min(920px,98vw);max-height:96vh;display:flex;flex-direction:column;background:#0c1623;border:1px solid #3b526d;border-radius:18px;overflow:hidden;box-shadow:0 22px 70px rgba(0,0,0,.55)}.frame-editor-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#101f30;border-bottom:1px solid #2f4157}.frame-editor-head button{padding:.5rem .7rem}.frame-editor-body{display:grid;grid-template-columns:minmax(260px,1.05fr) minmax(290px,.95fr);gap:12px;padding:12px;overflow:auto}.frame-preview-wrap{display:grid;place-items:center;min-height:260px;background:#03070b;border:1px solid #26384d;border-radius:14px;padding:8px}.frame-preview-wrap canvas{display:block;max-width:100%;max-height:58vh;background:#1a2230;border-radius:8px}.frame-controls{display:grid;gap:10px;align-content:start}.frame-controls label{display:grid;gap:5px;margin:0}.frame-file-row{display:flex;gap:7px;flex-wrap:wrap}.frame-file-row button{flex:1 1 130px}.frame-pattern-card,.frame-template-card{display:grid;gap:8px;padding:10px;background:#0f1d2c;border:1px solid #2b4057;border-radius:12px}.frame-colors{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:8px}.frame-colors input[type=color]{width:100%;height:40px;padding:0}.frame-colors input[type=range]{width:100%}.frame-editor-foot{display:flex;justify-content:flex-end;padding:10px 12px;background:#0a121d;border-top:1px solid #2f4157}.frame-editor-foot button{min-width:150px}.frame-editor-modal.hidden{display:none!important}
@media(max-width:720px){.frame-editor-body{grid-template-columns:1fr}.frame-preview-wrap{min-height:180px}.frame-preview-wrap canvas{max-height:34vh}.frame-colors{grid-template-columns:1fr 1fr}.frame-colors label:last-child{grid-column:1/-1}}
.editor-panel.editor-busy .editor-bottom-bar,.editor-panel.editor-busy .editor-photo-toolbar,.editor-panel.editor-busy .editor-tool-hint,.editor-panel.editor-busy .editor-tools-drawer{display:none!important}

/* Ver. 20260921-0033 – Senden-Button stabil */
.prep-notice.error{border-color:#7d3940;background:#351519;color:#ffd3d5}
#sendPreparedBtn{touch-action:manipulation;pointer-events:auto;position:relative;z-index:2}
#sendPreparedBtn[aria-busy="true"]{cursor:wait}


/* Ver. 20260921-0035 – Masterstabilisierung */
.prep-filterbar{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(160px,1fr);gap:7px;padding:8px 10px 4px;background:#08111b}.prep-filterbar input,.prep-filterbar select{min-width:0;min-height:42px;margin:0}
.prep-bulkbar{display:flex;align-items:center;gap:7px;padding:5px 10px 6px;background:#08111b;overflow-x:auto;-webkit-overflow-scrolling:touch}.prep-bulkbar button{flex:0 0 auto;min-height:38px;padding:.48rem .65rem}.prep-bulkbar small{margin-left:auto;white-space:nowrap;color:#aebed0}
.prep-archive-hint{display:block;padding:0 11px 7px;background:#08111b;color:#8fa4ba;line-height:1.35}
.prep-card{position:relative;padding-left:34px}.prep-select{position:absolute;left:8px;top:12px;width:19px;height:19px;z-index:4;accent-color:#24aee6}
@media(max-width:560px){.prep-filterbar{grid-template-columns:1fr}.prep-bulkbar{align-items:stretch}.prep-bulkbar small{align-self:center}.prep-card{padding-left:30px}.prep-select{left:6px}}


/* Ver. 20260921-0035 – Kamera direkt + unaufdringlicher Zoom */
.camera-zoom-control{
  position:absolute;z-index:16;right:max(8px,env(safe-area-inset-right,0px));left:auto;top:44%;bottom:auto;
  transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;
  padding:4px;background:rgba(0,0,0,.10);border:0;border-radius:999px;box-shadow:none;backdrop-filter:blur(2px);pointer-events:auto
}
.camera-zoom-control button{
  width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border-radius:50%;font-size:1.12rem;line-height:1;
  background:rgba(5,13,22,.24);border:1px solid rgba(255,255,255,.32);color:rgba(255,255,255,.92);
  box-shadow:0 2px 7px rgba(0,0,0,.24);backdrop-filter:blur(2px)
}
.camera-zoom-control button:disabled{opacity:.22}.camera-zoom-control button:not(:disabled):active{background:rgba(24,159,224,.46)}
@media(max-width:520px){.camera-zoom-control{right:6px;top:46%;gap:7px;padding:3px}.camera-zoom-control button{width:30px;height:30px;min-width:30px;min-height:30px;font-size:1.05rem}}
@media(orientation:landscape) and (max-height:560px){.camera-zoom-control{right:8px;top:50%;bottom:auto;left:auto;transform:translateY(-50%);gap:6px}.camera-zoom-control button{width:29px;height:29px;min-width:29px;min-height:29px;font-size:1rem}}

/* Ver. 20260921-0036 – Bild-Info frei platzierbar + lokale Einstellungen neu geordnet */
.settings-step-box{margin:12px 0;padding:12px;border:1px solid #2f4258;border-radius:14px;background:#08131f}
.settings-step-box>b{display:block;margin-bottom:7px}
.target-folder-box .status-card{margin:8px 0 2px}
.stamp-layout-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}
.stamp-layout-item{border:1px solid #2d3f54;border-radius:13px;background:#091522;padding:9px;min-width:0}
.stamp-layout-item>.switch-row{margin:0 0 8px;padding:9px;background:#0d1a29}
.stamp-layout-controls{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(78px,.6fr) minmax(82px,.6fr) minmax(92px,.7fr);gap:8px}
.stamp-layout-controls label{margin:0;font-size:.72rem;color:var(--muted)}
.stamp-layout-controls select,.stamp-layout-controls input{padding:.65rem .68rem}
@media(max-width:620px){.stamp-layout-grid{grid-template-columns:1fr}.stamp-layout-controls{grid-template-columns:1fr 1fr}.stamp-layout-controls label:first-child{grid-column:1/-1}}

/* Ver. 20260921-0038 – positionsgenaue Foto-Infos + Markenblock */
.photo-info-hud{
  position:absolute;inset:0;z-index:8;left:0;right:0;top:0;bottom:0;max-width:none;
  display:block;padding:0;border-radius:0;background:none;backdrop-filter:none;font-size:inherit;
  line-height:1.25;text-shadow:none;pointer-events:none;white-space:normal;overflow:hidden
}
.photo-info-zone{position:absolute;display:flex;flex-direction:column;gap:5px;max-width:min(72vw,620px);pointer-events:none}
.photo-info-zone.pos-tl{left:8px;top:calc(72px + env(safe-area-inset-top,0px));align-items:flex-start}
.photo-info-zone.pos-tr{right:8px;top:calc(72px + env(safe-area-inset-top,0px));align-items:flex-end}
.photo-info-zone.pos-bl{left:8px;bottom:calc(116px + env(safe-area-inset-bottom,0px));align-items:flex-start;flex-direction:column-reverse}
.photo-info-zone.pos-br{right:8px;bottom:calc(116px + env(safe-area-inset-bottom,0px));align-items:flex-end;flex-direction:column-reverse}
.photo-info-item{max-width:min(68vw,580px);border-radius:9px;background:rgba(0,0,0,.50);box-shadow:0 2px 8px rgba(0,0,0,.25);backdrop-filter:blur(3px)}
.photo-info-text{padding:5px 7px;color:#fff;font-size:clamp(.62rem,2.5vw,.78rem);font-weight:750;line-height:1.24;white-space:pre-line;text-shadow:0 1px 4px #000}
.photo-info-logo-item{display:grid;place-items:center;padding:5px;background:rgba(0,0,0,.24)}
.photo-info-logo-item img{display:block;max-width:40vw;max-height:21vh;object-fit:contain}
.photo-info-zone.pos-tl .photo-info-item,.photo-info-zone.pos-bl .photo-info-item{margin-left:var(--item-gap,2%)}
.photo-info-zone.pos-tr .photo-info-item,.photo-info-zone.pos-br .photo-info-item{margin-right:var(--item-gap,2%)}
.logo-size-control{grid-template-columns:1fr auto;align-items:center;column-gap:10px}.logo-size-control span{color:#67ccff;font-weight:800}.logo-size-control input{grid-column:1/-1;margin:0;padding:0}

.prep-head.compact{min-height:58px;padding-bottom:7px}.prep-head.compact>div small{max-width:56vw}
.prep-menu-btn{width:46px;height:46px;padding:0;font-size:1.45rem;border-radius:14px;background:#142235}
.prep-menu-backdrop{position:absolute;inset:0;z-index:198;background:rgba(0,0,0,.58)}
.prep-menu-drawer{position:absolute;z-index:199;top:0;right:0;bottom:0;width:min(88vw,430px);display:flex;flex-direction:column;background:linear-gradient(180deg,#101d2d,#07101a);border-left:1px solid #3a506a;box-shadow:-18px 0 48px rgba(0,0,0,.52)}
.prep-menu-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:calc(10px + env(safe-area-inset-top,0px)) 12px 10px;border-bottom:1px solid #2b4057;background:#0e1a29}.prep-menu-head>div{display:grid}.prep-menu-head small{color:var(--muted);font-size:.69rem}.prep-menu-head button{width:42px;height:42px;padding:0}
.prep-menu-scroll{flex:1;min-height:0;overflow:auto;padding:10px 10px calc(14px + env(safe-area-inset-bottom,0px))}
.prep-menu-group{display:grid;gap:8px;margin-bottom:11px;padding:10px;border:1px solid #2c4057;border-radius:14px;background:#091522}.prep-menu-group>b{font-size:.87rem}.prep-menu-group-title{display:flex;justify-content:space-between;align-items:center;gap:8px}.prep-menu-group-title small{color:#b4c3d4;font-size:.72rem}
.prep-menu-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.prep-menu-actions button{min-height:42px;padding:.55rem .62rem;border-radius:11px;font-size:.76rem}.prep-menu-wide{width:100%;min-height:48px}.prep-menu-help{display:block;color:#9db0c5;font-size:.67rem;line-height:1.35}
.prep-tabs.menu-tabs{padding:0;border:0;background:transparent;gap:6px}.prep-tabs.menu-tabs button{padding:.58rem .55rem}
.prep-filterbar.menu-filterbar{display:grid;grid-template-columns:1fr;gap:7px;padding:0;background:transparent}.prep-filterbar.menu-filterbar input,.prep-filterbar.menu-filterbar select{min-height:40px}.prep-menu-group .prep-archive-hint{padding:0;background:transparent}
.prep-panel>.prep-grid{padding-top:8px}
.prep-panel>.prep-notice{flex:0 0 auto;margin:6px 8px 0;padding:7px 9px;font-size:.7rem}

@media(max-width:560px){
  .prep-grid{padding:7px}.prep-card{grid-template-columns:92px 1fr;gap:8px;padding-top:7px;padding-bottom:7px}.prep-thumb{width:92px;height:104px}.prep-title{font-size:.74rem}.prep-meta{font-size:.63rem}.prep-state{font-size:.66rem;min-height:24px;padding:4px 6px}.prep-actions button{font-size:.66rem;padding:.45rem .45rem}
  .prep-menu-drawer{width:min(94vw,420px)}.prep-menu-actions{grid-template-columns:1fr 1fr}.prep-head.compact>div small{max-width:48vw}
  .photo-info-zone.pos-tl,.photo-info-zone.pos-tr{top:calc(68px + env(safe-area-inset-top,0px))}.photo-info-zone.pos-bl,.photo-info-zone.pos-br{bottom:calc(108px + env(safe-area-inset-bottom,0px))}
}
@media(orientation:landscape) and (max-height:560px){
  .photo-info-zone.pos-tl,.photo-info-zone.pos-tr{top:8px}.photo-info-zone.pos-bl,.photo-info-zone.pos-br{bottom:8px}.photo-info-text{font-size:.62rem}.photo-info-logo-item img{max-height:28vh}
  .prep-menu-drawer{width:min(58vw,470px)}
}

/* 0038: flexible photo-info layout */
.stamp-text-style{margin-top:12px;padding-top:12px;border-top:1px solid #2d3f54}.stamp-text-style>b{display:block;margin-bottom:8px}.stamp-text-style-grid{display:grid;grid-template-columns:1fr 1fr 120px;gap:10px;align-items:end}.stamp-text-style-grid label{margin:0;font-size:.76rem;color:var(--muted)}.stamp-text-style-grid span{color:#67ccff;font-weight:800}.stamp-text-style-grid input[type=range]{padding:0;margin-top:7px}.stamp-text-style-grid input[type=color]{height:44px;padding:4px}
.photo-info-brand-item{display:flex;align-items:center;gap:7px;padding:5px 7px;font-weight:800;white-space:normal;text-shadow:0 1px 4px #000}.photo-info-brand-item img{display:block;max-width:34vw;max-height:18vh;object-fit:contain;flex:none}.photo-info-brand-item span{display:block;min-width:0;overflow-wrap:anywhere}
@media(max-width:620px){.stamp-text-style-grid{grid-template-columns:1fr 1fr}.stamp-text-style-grid label:last-child{grid-column:1/-1}}

.logo-brand-preview{display:flex;align-items:center;justify-content:center;gap:10px;max-width:100%;font-weight:850;font-size:1rem}.logo-brand-preview img{max-width:180px;max-height:80px;object-fit:contain}.logo-brand-preview span{overflow-wrap:anywhere}

/* Ver. 20260922-0041 – konstante Balkenhöhe + Zeilen/Spalten im Info-Balken */
.photo-band-settings,.photo-info-presets{margin-top:14px;padding-top:13px;border-top:1px solid #2d3f54}
.photo-band-settings>b,.photo-info-presets>b{display:block;margin-bottom:7px}
.photo-band-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.photo-band-card{border:1px solid #2d3f54;border-radius:14px;background:#091522;padding:10px;display:grid;gap:9px}
.photo-band-card>.switch-row{margin:0}
.photo-band-card>label,.photo-band-options label{margin:0;font-size:.75rem;color:var(--muted)}
.photo-band-card label>span{color:#67ccff;font-weight:800}
.photo-band-card input[type=range]{padding:0;margin-top:6px}
.photo-band-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.photo-band-options label:nth-child(3){grid-column:1/-1}
.photo-band-options input[type=color]{height:42px;padding:4px}
.photo-info-preset-grid{display:grid;grid-template-columns:1.2fr 1.2fr auto auto auto;gap:8px;align-items:center;margin-top:9px}
.photo-info-preset-grid select,.photo-info-preset-grid input,.photo-info-preset-grid button{min-height:43px}
.photo-info-bar{position:absolute;left:0;right:0;z-index:2;height:var(--band-height,42px);min-height:34px;max-height:42vmin;padding:6px 10px;display:flex;flex-direction:column;justify-content:center;gap:2px;overflow:hidden;box-shadow:0 1px 8px rgba(0,0,0,.32)}
.photo-info-bar.pos-tb{top:calc(68px + env(safe-area-inset-top,0px))}
.photo-info-bar.pos-bb{bottom:calc(108px + env(safe-area-inset-bottom,0px))}
.photo-info-bar .photo-info-item.in-photo-band{background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;border-radius:0;padding:0;max-width:100%;min-width:0;text-shadow:none;overflow:hidden}
.photo-info-bar .photo-info-brand-item.in-photo-band{display:flex;max-width:100%;min-width:0;align-items:center}
.photo-info-bar .photo-info-brand-item.in-photo-band img{max-height:calc(var(--band-height,42px) * .72);max-width:45%;flex:0 0 auto}.photo-info-band-row{display:grid;grid-template-columns:1fr;column-gap:6px;align-items:center;width:100%;min-height:0}.photo-info-band-row .photo-info-text{white-space:pre-wrap;overflow-wrap:anywhere}.photo-info-band-row .photo-info-brand-item span{min-width:0;overflow-wrap:anywhere}
@media(max-width:720px){.photo-band-grid{grid-template-columns:1fr}.photo-info-preset-grid{grid-template-columns:1fr 1fr}.photo-info-preset-grid select,.photo-info-preset-grid input{grid-column:1/-1}.photo-info-preset-grid button:last-child{grid-column:1/-1}}
@media(orientation:landscape) and (max-height:560px){.photo-info-bar.pos-tb{top:4px}.photo-info-bar.pos-bb{bottom:4px}.photo-info-bar{min-height:34px;max-height:32vh;padding:4px 8px}}


/* 0041: kompakter Editor, Hamburger-Menü, nummerierte Farben und +/- Regler */
.editor-menu-btn{width:44px;height:44px;padding:0;font-size:1.35rem;border-radius:13px;background:#142235}
.editor-menu-backdrop{position:absolute;inset:0;z-index:208;background:rgba(0,0,0,.58)}
.editor-menu-drawer{position:absolute;z-index:209;top:0;right:0;bottom:0;width:min(88vw,420px);display:flex;flex-direction:column;background:linear-gradient(180deg,#101d2d,#07101a);border-left:1px solid #3a506a;box-shadow:-18px 0 48px rgba(0,0,0,.52)}
.editor-menu-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:calc(10px + env(safe-area-inset-top,0px)) 12px 10px;border-bottom:1px solid #2b4057;background:#0e1a29}.editor-menu-head>div{display:grid}.editor-menu-head small{color:var(--muted);font-size:.69rem}.editor-menu-head button{width:42px;height:42px;padding:0}
.editor-menu-scroll{flex:1;min-height:0;overflow:auto;padding:10px 10px calc(14px + env(safe-area-inset-bottom,0px))}
.editor-menu-group{display:grid;gap:8px;margin-bottom:11px;padding:10px;border:1px solid #2c4057;border-radius:14px;background:#091522}.editor-menu-group>b{font-size:.87rem}.editor-menu-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.editor-menu-actions button{min-height:44px;padding:.55rem .62rem;border-radius:11px;font-size:.76rem}.editor-menu-group:nth-child(2) .editor-menu-actions{grid-template-columns:1fr}
.tool-stepper{flex:0 0 auto;display:flex;align-items:center;gap:6px;min-height:42px;padding:5px 7px;border:1px solid #2b3d52;border-radius:10px;background:#0c1724;color:#b8c6d5;font-size:.7rem;white-space:nowrap}.tool-stepper>span{margin-right:2px}.tool-stepper button{width:36px;min-width:36px;height:34px;padding:0!important;font-size:1.2rem!important}.tool-stepper input[type=number]{width:58px;height:34px;text-align:center;padding:.2rem .25rem;font-weight:800;font-size:.95rem;-moz-appearance:textfield}.tool-stepper input[type=number]::-webkit-inner-spin-button,.tool-stepper input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.color-slot-field select{width:56px;min-height:32px;padding:.2rem .3rem}.color-slot-field code,.color-numbered code{font-size:.65rem;color:#c9d8e8;min-width:58px}.color-slot-field input[type=color]{width:40px!important;height:32px!important;border-radius:7px}
.color-numbered>span{display:flex;align-items:center;gap:6px}.color-numbered select{width:58px}.color-numbered input[type=color]{width:44px!important;height:38px!important}.text-size-stepper{display:grid;gap:4px;font-size:.78rem;color:var(--muted)}.text-size-stepper>div{display:flex;align-items:center;gap:6px}.text-size-stepper button{width:38px;height:38px;padding:0;font-size:1.2rem}.text-size-stepper input{width:70px;height:38px;text-align:center;font-weight:800;-moz-appearance:textfield}.text-size-stepper input::-webkit-inner-spin-button,.text-size-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
@media(max-width:560px){.editor-menu-drawer{width:min(94vw,410px)}.editor-head-actions #saveEditorBtn{font-size:.76rem;padding:.48rem .58rem}.editor-bottom-bar button{font-size:.72rem;padding:.5rem .6rem}.text-format-grid{grid-template-columns:1fr 1fr}.color-numbered{grid-column:1/-1}.text-size-stepper{grid-column:auto}.editor-menu-actions{grid-template-columns:1fr 1fr}}

/* Ver. 20260922-0042 – schneller Serverknopf + Teilen */
.camera-save-row{display:flex;align-items:center;justify-content:center;gap:8px;pointer-events:auto;margin-top:8px;max-width:min(92vw,430px)}
.camera-save-row .save-status{margin-top:0;min-width:0;max-width:62vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quick-upload-btn{pointer-events:auto;padding:.42rem .7rem;border-radius:999px;font-size:.68rem;background:rgba(10,18,29,.56);border-color:rgba(255,255,255,.26);backdrop-filter:blur(7px);white-space:nowrap}
.quick-upload-btn:active{transform:scale(.97)}
.prep-actions .server-btn{background:#0f5f83;border-color:#3dbbe9}
.prep-actions .share-btn{background:#173452;border-color:#41698d}
@media(max-width:560px){.prep-actions{grid-template-columns:1fr 1fr}.prep-actions .server-btn,.prep-actions .share-btn{grid-column:auto}.prep-actions .danger-soft{grid-column:1/-1}}


/* Stable: Aufnahmen-Karten mit großem Foto oben und Infos/Buttons unten */
.prep-grid{grid-template-columns:1fr!important}
.prep-card{grid-template-columns:1fr!important;gap:10px;align-items:start;padding:10px 10px 12px 38px;overflow:hidden}
.prep-thumb{width:100%!important;height:clamp(180px,42vw,360px)!important;max-height:none;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#000}
.prep-thumb img{width:100%;height:100%;object-fit:contain;background:#000}
.prep-main{display:grid;gap:8px}
.prep-title{white-space:normal;overflow:visible;text-overflow:unset;line-height:1.2;font-size:.8rem}
.prep-meta{font-size:.69rem;line-height:1.35}
.prep-state{min-height:30px;padding:6px 8px;font-size:.72rem}
.prep-actions{grid-template-columns:1fr 1fr!important;gap:8px;margin-top:2px}
.prep-actions button{min-height:46px;padding:.6rem .58rem;font-size:.74rem;line-height:1.15}
.prep-actions .danger-soft{grid-column:1/-1}
.prep-card.sent-card .prep-actions{grid-template-columns:1fr 1fr!important}
.prep-card.sent-card .prep-actions .danger-soft{grid-column:1/-1}
@media(max-width:560px){
  .prep-card{padding-left:34px;padding-top:9px;padding-bottom:11px}
  .prep-select{left:8px;top:10px}
  .prep-thumb{height:min(56vw,300px)!important}
  .prep-actions button{font-size:.72rem}
}
@media(min-width:900px){
  .prep-grid{max-width:980px;margin:0 auto}
  .prep-thumb{height:300px!important}
}


/* Stable: Blitz/Rotation + 4 Balken + Steppers + Vorschau */
.top-actions{display:flex;gap:8px;flex-wrap:nowrap}
.top-actions .round-btn{font-size:.95rem}
.photo-info-preview-card{margin:10px 0 14px;padding:10px;border:1px solid #2b4259;border-radius:14px;background:#0b1522}
.photo-info-preview-pane{position:relative;min-height:230px;margin-top:8px;border-radius:14px;overflow:hidden;background:linear-gradient(180deg,#21334a,#111922 45%,#0a1118);border:1px solid #2b4259}
.photo-info-preview-pane #photoInfoPreviewClone,.photo-info-preview-pane .photo-info-hud{position:absolute;inset:0}
.photo-info-preview-label{position:absolute;inset:auto 10px 10px 10px;font-size:.74rem;color:#d4e9ff;opacity:.9}
.range-stepper{display:grid;grid-template-columns:40px minmax(72px,110px) 40px;gap:8px;align-items:center;margin-top:6px}
.range-stepper button,.range-stepper input{min-height:40px;border-radius:12px}
.range-stepper input{width:100%;text-align:center;background:#07111c;color:#fff;border:1px solid #35506c;padding:.45rem .3rem}
.logo-size-control input[type=range],.stamp-text-style-grid input[type=range],.photo-band-card input[type=range]{display:none}
.photo-band-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.photo-info-bar.pos-lb,.photo-info-bar.pos-rb{top:8px;bottom:8px;width:var(--band-width,52px);padding:8px 6px;display:flex;flex-direction:column;justify-content:center;gap:6px;max-height:none}
.photo-info-bar.pos-lb{left:8px}.photo-info-bar.pos-rb{right:8px}
.photo-info-side-row{display:grid;gap:6px;align-items:center}
.photo-info-side-row .photo-info-item{max-width:100%;overflow:hidden}
.in-photo-side img{max-width:100%;height:auto}
@media(max-width:560px){.top-actions{gap:6px}.top-actions .round-btn{min-width:42px;width:42px;height:42px;font-size:.88rem}.photo-info-preview-pane{min-height:180px}.range-stepper{grid-template-columns:36px minmax(66px,1fr) 36px;gap:6px}.photo-info-bar.pos-lb,.photo-info-bar.pos-rb{top:6px;bottom:6px}}

/* === Stable release 1.0.0 – runtime / accessibility / responsive polish === */
:root{color-scheme:dark}
button,select,input,textarea{font:inherit}
button{touch-action:manipulation}
button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #63d3ff;outline-offset:2px}
button:disabled{opacity:.55;cursor:not-allowed}
.connection-banner{position:fixed;z-index:9999;top:calc(8px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);max-width:min(92vw,620px);padding:8px 14px;border-radius:999px;font-size:.75rem;font-weight:800;box-shadow:0 8px 28px rgba(0,0,0,.35);transition:opacity .2s ease;background:#102033;color:#eaf7ff;border:1px solid #365674;pointer-events:none}.connection-banner.online{background:#0e2a1f;border-color:#3e8c69;color:#caffdf}.connection-banner.offline{background:#351619;border-color:#87444b;color:#ffd6d8}.connection-banner.hidden{opacity:0;visibility:hidden}
.fatal-startup{position:fixed;z-index:10000;inset:0;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(0,0,0,.86)}.fatal-startup-box{width:min(92vw,620px);padding:22px;border-radius:18px;background:#0d1826;border:1px solid #3b536d;box-shadow:0 24px 80px rgba(0,0,0,.6)}.fatal-startup-box b{display:block;font-size:1.1rem;margin-bottom:8px}.fatal-startup-box p{color:#d4e3f1;line-height:1.45}.fatal-startup-box pre{max-height:180px;overflow:auto;white-space:pre-wrap;color:#ffccd0;background:#240f12;padding:10px;border-radius:10px}.fatal-startup-box button{width:100%;margin-top:10px;min-height:46px}
.status-card,.prep-notice,.prep-state{overflow-wrap:anywhere}
.sheet{overscroll-behavior:contain}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}
@media(min-width:900px){.sheet{width:min(760px,92vw);left:50%;right:auto;transform:translateX(-50%)}.prep-panel{max-width:1100px;margin-inline:auto}}


/* Ver. 1.0.2 – neues iT-FotoCam Branding */
.brand b{display:flex;align-items:center;gap:7px}.brand-app-icon{width:30px;height:30px;object-fit:contain;border-radius:8px;box-shadow:0 2px 10px rgba(255,188,45,.28)}
.install-prompt-icon{display:grid;place-items:center}.install-prompt-logo{width:54px;height:54px;object-fit:contain;border-radius:13px;box-shadow:0 6px 20px rgba(255,188,45,.22)}


/* === Ver. 1.0.3 – vollständige Gold-Ausstattung iT-FotoCam === */
:root{
  --bg:#050403;--panel:#0b0905;--panel2:#151006;--line:#8b651f;--text:#fff8de;--muted:#c5b68f;
  --blue:#f3bd4e;--danger:#ef6a5a;--gold:#f6c75b;--gold-deep:#b97812;--gold-soft:#fff0b0;--gold-line:rgba(246,199,91,.55);
  color-scheme:dark;
}
html,body{background:radial-gradient(circle at 50% -10%,#2a1b06 0,#090704 26%,#000 62%);color:var(--text)}
button{color:#ffeab0;background:linear-gradient(180deg,rgba(44,31,10,.96),rgba(10,8,5,.98));border-color:#896421;box-shadow:inset 0 1px 0 rgba(255,238,174,.12),0 4px 16px rgba(0,0,0,.24)}
button:active{filter:brightness(1.12)}
button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline-color:#ffd76d}
button:disabled{opacity:.42}
.primary{color:#1b1000;background:linear-gradient(135deg,#8f5a08 0,#f5bf49 28%,#fff0a2 50%,#cf8a17 74%,#7d4a05 100%);border-color:#ffe48a;text-shadow:0 1px 0 rgba(255,255,255,.3);box-shadow:0 0 16px rgba(240,177,48,.25),inset 0 1px 0 #fff5bd}
input,select,textarea{background:#080603;border-color:#6e5423;color:#fff7dd;box-shadow:inset 0 0 0 1px rgba(255,225,128,.03)}
input:focus,select:focus,textarea:focus{border-color:#e6ad3a;box-shadow:0 0 0 2px rgba(231,172,52,.14)}
label{color:#f6e9c4}.hint,.queue-row,.sheet-head small,.prep-head small{color:#bcae87}
.status-card{background:#090704;border-color:#5f491f}.switch-row{background:#0c0905;border-color:#5d471e}
.camera-app{background:#000}.top-overlay{padding-top:calc(10px + env(safe-area-inset-top,0px));background:linear-gradient(180deg,rgba(0,0,0,.9) 0,rgba(5,4,2,.48) 60%,transparent 100%)}
.brand{align-items:start}.brand b{flex-direction:column!important;align-items:center!important;gap:2px!important;color:#ffe18a;font-family:Georgia,'Times New Roman',serif;font-size:.98rem!important;letter-spacing:.02em;text-shadow:0 0 9px rgba(255,190,55,.55),0 2px 8px #000}.brand small{color:#c9af70;text-align:center}
.brand-app-icon{width:50px!important;height:50px!important;border-radius:13px!important;box-shadow:0 0 20px rgba(255,187,43,.34)!important}
.round-btn{background:linear-gradient(180deg,rgba(28,20,7,.92),rgba(6,5,3,.94));border-color:#9c762c;color:#ffd96c;box-shadow:0 0 12px rgba(246,184,55,.13),inset 0 1px 0 rgba(255,238,175,.15)}
.bottom-overlay{background:linear-gradient(0deg,rgba(0,0,0,.88),rgba(0,0,0,.18),transparent)}
.shutter{background:linear-gradient(135deg,#9b630a,#f5c451 35%,#fff1a3 50%,#bd7810 77%,#704006);border-color:#f7d675;box-shadow:0 0 0 4px rgba(65,39,3,.7),0 0 22px rgba(255,188,42,.42)}
.shutter span{background:radial-gradient(circle at 35% 28%,#fff0a5,#e4a82e 47%,#8c5406 78%,#f0bd4c);border-color:#573407}
.save-status,.gps-hud{color:#fff0bd}.quick-upload-btn{background:rgba(22,15,5,.82);border-color:#9c7427;color:#ffda71}
.sheet{background:linear-gradient(180deg,#171005 0,#090704 34%,#030201 100%);border-color:#8c6827;box-shadow:0 -18px 55px rgba(0,0,0,.7),0 0 30px rgba(221,157,29,.08)}
.sheet-head{padding-bottom:8px;border-bottom:1px solid rgba(213,159,49,.25)}.sheet-head b{color:#ffe293;font-family:Georgia,'Times New Roman',serif}
.menu-grid button,.settings-step-box,.general-box,.photo-band-card,.photo-info-preview-card{background:linear-gradient(180deg,#120d05,#090704);border-color:#69501f}
.menu-grid b{color:#f6c55a}.menu-grid span{color:#ffeab5}
.install-prompt-card,.folder-setup-box,.date-check-box,.exit-confirm-box,.print-preview-box{background:linear-gradient(180deg,#181106,#080603);border-color:#8b6826}
.install-prompt-logo{box-shadow:0 0 24px rgba(255,187,43,.38)!important}
.prep-panel{background:radial-gradient(circle at 50% 0,#241705 0,#0b0804 25%,#020201 70%)}
.prep-head{border-bottom-color:#76581f;background:linear-gradient(180deg,#160f05,#090704);box-shadow:0 4px 18px rgba(0,0,0,.35)}
.prep-head b{font-family:Georgia,'Times New Roman',serif;color:#ffe39a;font-size:1.08rem}.prep-back,.prep-menu-btn{border-color:#9a7429;color:#ffe18a;background:linear-gradient(180deg,#211705,#0a0703)}
.prep-notice{border-color:#7d5c20!important;background:#171006!important;color:#ffe8a9!important}
.prep-grid{padding:10px 10px calc(238px + env(safe-area-inset-bottom,0px))!important;gap:14px}
.prep-card{border-color:#a77c28!important;background:linear-gradient(145deg,#151006 0,#080603 55%,#100b04 100%)!important;box-shadow:0 8px 26px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,239,174,.08)}
.prep-card.sent-card{border-color:#907027!important;background:linear-gradient(145deg,#121006,#070604)!important}
.prep-thumb{border-color:#be8d2d!important;box-shadow:0 0 0 1px rgba(255,227,129,.08),0 8px 24px rgba(0,0,0,.35)}
.prep-version{background:rgba(32,21,5,.9)!important;color:#ffe6a2;border:1px solid rgba(222,169,55,.5)}
.prep-select{width:22px!important;height:22px!important;accent-color:#d99a19!important;filter:sepia(1) saturate(1.4)}
.prep-title{color:#ffe09a;font-family:Georgia,'Times New Roman',serif;font-size:.9rem!important}.prep-meta{color:#d5c59a!important}
.prep-state{background:#090704!important;border-color:#5d461c!important;color:#d9c897}.prep-state.ready{border-color:#a77c28!important;background:#1c1304!important;color:#ffe4a0!important}.prep-state.ok{border-color:#8c752e!important;background:#151206!important;color:#e9d995!important}
.prep-actions button{border-color:#76591f;background:linear-gradient(180deg,#1a1205,#0a0703);color:#ffdda0}.prep-actions .ready-btn,.prep-actions .server-btn,.prep-actions .share-btn{background:linear-gradient(180deg,#3a2708,#120b02)!important;border-color:#bd8a2a!important;color:#ffe09a!important}.prep-actions .ready-btn.is-ready{background:linear-gradient(180deg,#302907,#0d0b03)!important;border-color:#ac9131!important}
.prep-menu-drawer,.editor-menu-drawer{background:linear-gradient(180deg,#160f05,#070503)!important;border-color:#795a20!important}.prep-menu-head,.editor-menu-head{background:#100b04!important;border-color:#6b4e1b!important}.prep-menu-group,.editor-menu-group{background:#0d0904!important;border-color:#60491e!important}.prep-tabs button.active{background:linear-gradient(135deg,#9b6208,#efbb45,#a86a0a)!important;color:#1a1000!important;border-color:#ffe48a!important}
.prep-bottom-dock{position:absolute;z-index:194;left:0;right:0;bottom:0;padding:8px 9px calc(9px + env(safe-area-inset-bottom,0px));background:linear-gradient(180deg,rgba(4,3,2,.25),rgba(5,3,1,.98) 16%,#030201 100%);border-top:1px solid rgba(220,165,54,.45);box-shadow:0 -14px 28px rgba(0,0,0,.58)}
.prep-cloud-strip{height:48px;display:grid;grid-template-columns:38px 1fr 42px;align-items:center;gap:8px;padding:5px 7px 5px 10px;margin-bottom:7px;border:1px solid #866421;border-radius:14px;background:linear-gradient(100deg,#171005,#080603)}
.prep-cloud-strip-icon{font-size:1.35rem;filter:sepia(1) saturate(1.6)}.prep-cloud-strip-text{display:grid;min-width:0}.prep-cloud-strip-text small{font-size:.64rem;color:#bba977}.prep-cloud-strip-text b{font-size:.86rem;color:#ffe18d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.prep-cloud-strip button{width:38px;height:38px;padding:0;border-radius:11px;color:#ffd66a}
.prep-bottom-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.prep-bottom-actions button{min-width:0;min-height:62px;padding:7px 4px;display:grid;place-items:center;align-content:center;gap:2px;border-radius:13px;border-color:#a97c27;background:linear-gradient(155deg,#2b1d07 0,#100b04 48%,#050402 100%);box-shadow:inset 0 1px 0 rgba(255,237,165,.14),0 0 10px rgba(210,146,28,.06)}
.prep-bottom-actions button span{font-size:1.22rem;line-height:1}.prep-bottom-actions button b{font-size:.7rem;color:#ffe4a0;font-family:Georgia,'Times New Roman',serif;font-weight:700}.prep-bottom-actions button.is-active{border-color:#f2c052;box-shadow:0 0 12px rgba(239,182,56,.34),inset 0 0 16px rgba(201,136,18,.14)}.prep-bottom-actions button:disabled{opacity:.38}.prep-bottom-actions .danger-gold:not(:disabled){border-color:#9b6022;color:#ffd3a3}
.pcloud-main-folder-note{display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:center;margin:10px 0;padding:10px;border:1px solid #795b22;border-radius:14px;background:linear-gradient(135deg,#171006,#090704)}.pcloud-main-folder-note>span{font-size:1.6rem}.pcloud-main-folder-note>div{display:grid;gap:2px}.pcloud-main-folder-note b{color:#ffe093}.pcloud-main-folder-note small{color:#c7b98f;line-height:1.35}
.editor-panel{background:#030201!important}.editor-head{background:linear-gradient(180deg,#160f05,#090704)!important;border-color:#71531d!important}.editor-head>b{color:#ffe09a;font-family:Georgia,'Times New Roman',serif}.editor-head button,.editor-menu-btn,.editor-bottom-bar button,.editor-simple-toolbar button,.floating-zoom button{border-color:#806021!important;background:linear-gradient(180deg,#211706,#0a0703)!important;color:#ffdf87!important}.editor-canvas-wrap{background:radial-gradient(circle,#1b1408,#030201 64%)!important}.editor-settings-panel,.tool-stepper{background:#0d0904!important;border-color:#60491f!important}.tool-stepper input[type=number]{background:#060402!important;border-color:#6a4e1a!important}.editor-load-state{background:rgba(10,7,3,.92)!important;color:#ffe4a4!important}.editor-load-spinner{border-top-color:#f2bd49!important}
.print-preview-modal,.stamp-builder-modal,.frame-editor-modal{background:rgba(0,0,0,.82)!important}.print-preview-head,.stamp-builder-head,.frame-editor-head{border-color:#6f521e!important}.frame-editor-box,.stamp-builder-box{background:linear-gradient(180deg,#160f05,#070503)!important;border-color:#815f22!important}
.toast{background:#211806;border-color:#a77e2d;color:#ffe6a9}.toast.error{background:#32130e;border-color:#9c5142;color:#ffd8c6}
.connection-banner{background:#171006;border-color:#8a6727;color:#ffe2a0}.connection-banner.online{background:#171406;border-color:#938333;color:#f1df9b}.connection-banner.offline{background:#2c120d;border-color:#915143;color:#ffd9c8}
@media(max-width:560px){.brand-app-icon{width:44px!important;height:44px!important}.brand b{font-size:.86rem!important}.brand small{font-size:.6rem}.prep-grid{padding-bottom:calc(224px + env(safe-area-inset-bottom,0px))!important}.prep-bottom-actions button{min-height:58px}.prep-bottom-actions button b{font-size:.66rem}.prep-cloud-strip{height:44px}}
@media(orientation:landscape) and (max-height:560px){.brand b{flex-direction:row!important}.brand-app-icon{width:34px!important;height:34px!important}.brand small{display:none}.prep-bottom-dock{left:auto;width:min(46vw,430px);border-left:1px solid rgba(220,165,54,.35)}.prep-grid{padding-right:min(48vw,450px)!important;padding-bottom:10px!important}}


/* === Ver. 1.0.4 – Aufnahmen sauber, große Fotos, Dateiname + Ordner sichtbar === */
/* Startseite: Logo bewusst kleiner, Titel bleibt direkt darunter. */
.brand b{font-size:.82rem!important;gap:1px!important}
.brand-app-icon{width:34px!important;height:34px!important;border-radius:10px!important;box-shadow:0 0 12px rgba(255,187,43,.28)!important}
.brand small{font-size:.57rem!important;margin-top:1px!important}

/* Aufnahmen: eine Karte pro Zeile, Foto groß; Informationen immer darunter. */
.prep-grid{grid-template-columns:1fr!important;padding:10px 10px calc(300px + env(safe-area-inset-bottom,0px))!important;gap:14px!important}
.prep-card{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;align-items:start!important;padding:10px 10px 12px 42px!important;overflow:visible!important;border-radius:18px!important}
.prep-select{left:10px!important;top:14px!important;width:23px!important;height:23px!important}
.prep-thumb{width:100%!important;height:min(58vw,420px)!important;min-height:210px!important;max-height:420px!important;border-radius:14px!important;overflow:hidden!important;background:#000!important}
.prep-thumb img{width:100%!important;height:100%!important;object-fit:contain!important;background:#000!important;display:block!important}
.prep-version{left:8px!important;bottom:8px!important}
.prep-main{display:grid!important;gap:8px!important;min-width:0!important}
.prep-title{font-size:1rem!important;line-height:1.2!important;color:#ffe29b!important;white-space:normal!important;overflow-wrap:anywhere!important}
.prep-meta-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px 9px!important;margin:0!important}
.prep-meta-row{display:grid!important;gap:2px!important;padding:7px 8px!important;border:1px solid rgba(180,132,39,.38)!important;border-radius:10px!important;background:rgba(24,16,5,.72)!important;min-width:0!important}
.prep-meta-row small{font-size:.59rem!important;color:#aa986d!important;line-height:1.1!important}
.prep-meta-row b{font-size:.72rem!important;color:#f6e5b3!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere!important;font-weight:650!important}
.prep-meta-wide{grid-column:1/-1!important}
.prep-state{min-height:36px!important;padding:8px 10px!important;font-size:.76rem!important;border-radius:11px!important}
.prep-state.ready{box-shadow:0 0 10px rgba(221,167,45,.12)!important}
/* Einzelkarten bleiben ruhig; die großen Hauptaktionen sind unten. */
.prep-card .prep-actions{display:none!important}

/* Untere Leiste: pCloud + eindeutig sichtbarer Dateiname/Ordner/Sendestatus. */
.prep-bottom-dock{padding:8px 9px calc(9px + env(safe-area-inset-bottom,0px))!important}
.prep-send-ready-strip{min-height:54px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 9px;margin-bottom:7px;border:1px solid #74551d;border-radius:14px;background:linear-gradient(105deg,#120d04,#080603);box-shadow:inset 0 1px 0 rgba(255,239,174,.06)}
.prep-send-ready-strip.has-ready{border-color:#b98526;box-shadow:0 0 13px rgba(221,159,31,.12),inset 0 1px 0 rgba(255,239,174,.08)}
.prep-send-ready-icon{font-size:1.15rem;color:#f3c35a;text-align:center}
.prep-send-ready-text{display:grid;gap:2px;min-width:0}
.prep-send-ready-text b{font-size:.76rem;color:#ffe19a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prep-send-ready-text small{font-size:.61rem;color:#c8b788;white-space:normal;overflow-wrap:anywhere;line-height:1.2}
.prep-send-ready-badge{padding:5px 7px;border:1px solid #80601f;border-radius:999px;background:#171005;color:#eed08a;font-size:.6rem;font-weight:800;white-space:nowrap}
.prep-send-ready-strip.has-ready .prep-send-ready-badge{border-color:#9f8129;color:#ffe79e}

@media(max-width:560px){
  .brand-app-icon{width:30px!important;height:30px!important}
  .brand b{font-size:.76rem!important}
  .brand small{font-size:.53rem!important}
  .prep-grid{padding:8px 8px calc(286px + env(safe-area-inset-bottom,0px))!important;gap:12px!important}
  .prep-card{padding:9px 8px 10px 39px!important}
  .prep-select{left:8px!important;top:12px!important;width:22px!important;height:22px!important}
  .prep-thumb{height:min(60vw,310px)!important;min-height:205px!important}
  .prep-title{font-size:.92rem!important}
  .prep-meta-row{padding:6px 7px!important}
  .prep-meta-row b{font-size:.68rem!important}
  .prep-send-ready-strip{grid-template-columns:30px minmax(0,1fr);min-height:56px}
  .prep-send-ready-badge{grid-column:2;justify-self:start;margin-top:1px}
  .prep-bottom-actions button{min-height:56px!important}
}
@media(min-width:760px){
  .prep-grid{max-width:880px!important;margin:0 auto!important;width:100%!important}
  .prep-thumb{height:360px!important}
}
@media(orientation:landscape) and (max-height:560px){
  .brand-app-icon{width:28px!important;height:28px!important}
  .brand b{font-size:.74rem!important}
  .prep-grid{padding-right:min(48vw,450px)!important;padding-bottom:10px!important}
  .prep-thumb{height:260px!important;min-height:180px!important}
}


/* === Ver. 1.0.5 – Senden pro Bild sichtbar + Einblendungen weiter zur Bildmitte === */
/* Einzelbild-Aktionen wieder sichtbar: insbesondere Senden und Teilen. */
.prep-card .prep-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:2px!important}
.prep-card .prep-actions button{display:flex!important;align-items:center!important;justify-content:center!important;min-height:46px!important;padding:.58rem .5rem!important;white-space:normal!important;line-height:1.15!important}
.prep-card .prep-actions .server-btn{border-color:#c4922f!important;box-shadow:0 0 10px rgba(219,160,39,.12)!important}
.prep-card .prep-actions .share-btn{border-color:#9f7729!important}
.prep-card .prep-actions .danger-soft{grid-column:1/-1!important}

/* Kamera-Liveansicht: Beschriftungen/Balken von Bedienknöpfen weg, Richtung Bildmitte. */
.photo-info-zone.pos-tl,.photo-info-zone.pos-tr{top:calc(102px + env(safe-area-inset-top,0px))!important}
.photo-info-zone.pos-bl,.photo-info-zone.pos-br{bottom:calc(150px + env(safe-area-inset-bottom,0px))!important}
.photo-info-bar.pos-tb{top:calc(94px + env(safe-area-inset-top,0px))!important}
.photo-info-bar.pos-bb{bottom:calc(136px + env(safe-area-inset-bottom,0px))!important}
.photo-info-bar.pos-lb,.photo-info-bar.pos-rb{top:94px!important;bottom:136px!important}

/* Beschriftungs-Einstellungen: mehr Abstand und keine kollidierenden Felder auf kleinen Geräten. */
.stamp-layout-item{padding:11px!important}
.stamp-layout-controls{gap:10px!important;align-items:end!important}
.stamp-layout-controls label{min-width:0!important;line-height:1.25!important}
.stamp-layout-controls select,.stamp-layout-controls input{min-width:0!important}
@media(max-width:620px){
  .stamp-layout-controls{grid-template-columns:1fr 1fr!important}
  .stamp-layout-controls label:first-child{grid-column:1/-1!important}
  .photo-info-zone.pos-tl,.photo-info-zone.pos-tr{top:calc(92px + env(safe-area-inset-top,0px))!important}
  .photo-info-zone.pos-bl,.photo-info-zone.pos-br{bottom:calc(132px + env(safe-area-inset-bottom,0px))!important}
  .photo-info-bar.pos-tb{top:calc(86px + env(safe-area-inset-top,0px))!important}
  .photo-info-bar.pos-bb{bottom:calc(122px + env(safe-area-inset-bottom,0px))!important}
  .photo-info-bar.pos-lb,.photo-info-bar.pos-rb{top:86px!important;bottom:122px!important}
}
@media(orientation:landscape) and (max-height:560px){
  .photo-info-zone.pos-tl,.photo-info-zone.pos-tr{top:42px!important}
  .photo-info-zone.pos-bl,.photo-info-zone.pos-br{bottom:42px!important}
  .photo-info-bar.pos-tb{top:36px!important}
  .photo-info-bar.pos-bb{bottom:36px!important}
  .photo-info-bar.pos-lb,.photo-info-bar.pos-rb{top:36px!important;bottom:36px!important}
}


/* === Ver. 1.0.7 – Vorschau, Seitenbalken, GPS-Position und Standard-Beschriftung === */
.folder-action-anchor{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.folder-action-anchor .gps-hud{position:absolute!important;left:auto!important;right:0!important;top:calc(100% + 7px)!important;bottom:auto!important;width:max-content;max-width:min(54vw,230px)!important;padding:5px 8px!important;font-size:.66rem!important;text-align:right;z-index:12;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gps-under-folder{margin-top:10px!important}

/* Linker und rechter Balken hatten durch left+right gleichzeitig dieselbe Ankerseite. */
.photo-info-bar.pos-lb{left:8px!important;right:auto!important}
.photo-info-bar.pos-rb{right:8px!important;left:auto!important}

/* Einstellungs-Vorschau bildet die komplette spätere Foto-Fläche ab: Balken außen, Foto innen. */
.photo-info-preview-pane{aspect-ratio:4/3;min-height:0!important;height:auto;background:#030303!important}
.photo-info-preview-photo{position:absolute;inset:0;border-radius:7px;background:linear-gradient(145deg,#1e2e3e 0%,#446275 42%,#1a2c24 43%,#0b1710 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);z-index:0}
.photo-info-preview-photo::after{content:'FOTO';position:absolute;inset:0;display:grid;place-items:center;color:rgba(255,255,255,.28);font-weight:900;letter-spacing:.18em;font-size:clamp(1rem,7vw,2.4rem)}
.photo-info-preview-clone{z-index:2!important;overflow:hidden!important}
.photo-info-preview-clone .photo-info-bar.pos-tb{top:0!important;bottom:auto!important;left:0!important;right:0!important}
.photo-info-preview-clone .photo-info-bar.pos-bb{bottom:0!important;top:auto!important;left:0!important;right:0!important}
.photo-info-preview-clone .photo-info-bar.pos-lb{top:var(--preview-top,0)!important;bottom:var(--preview-bottom,0)!important;left:0!important;right:auto!important}
.photo-info-preview-clone .photo-info-bar.pos-rb{top:var(--preview-top,0)!important;bottom:var(--preview-bottom,0)!important;right:0!important;left:auto!important}
.photo-info-preview-clone .photo-info-zone.pos-tl{top:calc(var(--preview-top,0px) + 6px)!important;left:calc(var(--preview-left,0px) + 6px)!important}
.photo-info-preview-clone .photo-info-zone.pos-tr{top:calc(var(--preview-top,0px) + 6px)!important;right:calc(var(--preview-right,0px) + 6px)!important}
.photo-info-preview-clone .photo-info-zone.pos-bl{bottom:calc(var(--preview-bottom,0px) + 6px)!important;left:calc(var(--preview-left,0px) + 6px)!important}
.photo-info-preview-clone .photo-info-zone.pos-br{bottom:calc(var(--preview-bottom,0px) + 6px)!important;right:calc(var(--preview-right,0px) + 6px)!important}
.photo-info-preview-clone .photo-info-text{font-size:clamp(.48rem,2.2vw,.72rem)!important;padding:3px 5px!important}
.photo-info-preview-clone .photo-info-bar{min-height:12px!important;padding:3px 6px!important}
.photo-info-preview-clone .photo-info-band-row{column-gap:8px}
.photo-info-preview-clone .photo-info-side-row{gap:3px}
.photo-info-preview-label{z-index:4}
@media(max-width:420px){.folder-action-anchor .gps-hud{max-width:48vw!important;font-size:.61rem!important}.photo-info-preview-pane{aspect-ratio:1.18/1}}


/* === Ver. 1.0.8 – doppelte Dateiname-/pCloud-Anzeigen entfernt === */
/* Aufnahmen: Dateiname bleibt im Infofeld unter dem Foto, die separate große Titelzeile entfällt. */
.prep-title{display:none!important}
/* Untere Leiste enthält nur noch die sechs Hauptaktionen; pCloud-/Sendestatus-Doppelanzeigen entfallen. */
.prep-bottom-dock{padding:8px 9px calc(9px + env(safe-area-inset-bottom,0px))!important}
.prep-grid{padding-bottom:calc(156px + env(safe-area-inset-bottom,0px))!important}
@media(max-width:560px){
  .prep-grid{padding-bottom:calc(148px + env(safe-area-inset-bottom,0px))!important}
}
@media(orientation:landscape) and (max-height:560px){
  .prep-grid{padding-right:min(48vw,450px)!important;padding-bottom:10px!important}
}

/* === Ver. 1.0.9 – unterer Speichern-Button ist jetzt Senden auf Server === */
#prepBottomSaveBtn.server-gold{border-color:#b78a31;background:linear-gradient(180deg,rgba(68,45,9,.38),rgba(10,7,3,.96));color:#ffe2a0;box-shadow:inset 0 0 0 1px rgba(255,214,117,.12),0 0 18px rgba(205,151,45,.10)}
#prepBottomSaveBtn.server-gold:not(:disabled):active{transform:translateY(1px) scale(.99)}

/* === Ver. 1.0.12 – Bearbeiten unten durch Suchen-Dropdown ersetzt === */
.prep-bottom-search{min-width:0;min-height:62px;padding:7px 7px;display:grid;place-items:center;align-content:center;gap:2px;border:1px solid #a97c27;border-radius:13px;background:linear-gradient(155deg,#2b1d07 0,#100b04 48%,#050402 100%);box-shadow:inset 0 1px 0 rgba(255,237,165,.14),0 0 10px rgba(210,146,28,.06);overflow:hidden}
.prep-bottom-search>span{font-size:1.22rem;line-height:1;color:#ffe4a0}
.prep-bottom-search select{width:100%;min-width:0;max-width:100%;height:auto;min-height:24px;margin:0;padding:0 22px 0 4px;border:0!important;border-radius:0!important;background-color:transparent!important;background-position:right 4px center!important;box-shadow:none!important;color:#ffe4a0!important;font-family:Georgia,'Times New Roman',serif;font-size:.70rem!important;font-weight:700;text-align:center;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prep-bottom-search select:focus{outline:0;box-shadow:none!important}
.prep-bottom-search option{background:#120c04;color:#ffe4a0;font-family:system-ui,sans-serif}
@media(max-width:560px){.prep-bottom-search{min-height:58px}.prep-bottom-search select{font-size:.66rem!important}}


/* === Ver. 1.0.12 – Einzelkarten ohne Aktionsblock, Bearbeiten-Stift unter Checkbox === */
.prep-edit-mini{position:absolute;left:8px;top:46px;z-index:5;width:25px;height:25px;display:grid;place-items:center;padding:0;border-radius:8px;border:1px solid rgba(186,138,40,.72);background:linear-gradient(180deg,#1b1306,#0a0703);color:#f7d68b;box-shadow:0 0 8px rgba(221,159,31,.14), inset 0 1px 0 rgba(255,239,174,.08)}
.prep-edit-mini:hover,.prep-edit-mini:focus-visible{outline:none;border-color:#e0ac43;color:#ffebb6;box-shadow:0 0 12px rgba(255,196,77,.22), inset 0 1px 0 rgba(255,239,174,.12)}
.prep-card .prep-actions{display:none!important}
@media(max-width:560px){.prep-edit-mini{left:6px;top:42px;width:24px;height:24px}}


/* === Ver. 1.0.12 – Foto-Infos standard ausblenden, Info-Button + zentrierte Werkzeugreihe === */
.prep-card{padding:10px 10px 12px 10px!important}
.prep-card-tools{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:2px;margin-bottom:2px;flex-wrap:nowrap}
.prep-card-tool{min-width:38px;width:38px;height:38px;display:grid;place-items:center;padding:0;border-radius:11px;border:1px solid rgba(186,138,40,.72);background:linear-gradient(180deg,#1b1306,#0a0703);color:#f7d68b;box-shadow:0 0 8px rgba(221,159,31,.14), inset 0 1px 0 rgba(255,239,174,.08);font-size:1rem;line-height:1}
.prep-card-tool:hover,.prep-card-tool:focus-visible{outline:none;border-color:#e0ac43;color:#ffebb6;box-shadow:0 0 12px rgba(255,196,77,.22), inset 0 1px 0 rgba(255,239,174,.12)}
.prep-select-btn.is-selected,.prep-info-mini.is-open{border-color:#e0ac43;background:linear-gradient(180deg,#3a2708,#120b02);color:#ffebb6;box-shadow:0 0 12px rgba(255,196,77,.20), inset 0 1px 0 rgba(255,239,174,.13)}
.prep-main.hidden{display:none!important}
.prep-select,.prep-card .prep-actions{display:none!important}
@media(max-width:560px){.prep-card{padding:9px 8px 10px 8px!important}.prep-card-tools{gap:12px}.prep-card-tool{min-width:36px;width:36px;height:36px;border-radius:10px}}

/* Sent archive page */
#prepMenuDrawer{width:100%;max-width:100%;}
#prepMenuDrawer .prep-menu-head b{font-size:clamp(18px,4.5vw,25px)}
#prepMenuDrawer .prep-menu-group label{display:block;margin:16px 0 10px}
.sent-retention-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.sent-retention-controls input{width:100px;min-width:80px;text-align:center}
.sent-retention-controls button{flex:1;min-width:120px}
#sentGalleryHost .prep-grid{padding:0 0 24px;margin:0}
#sentRetentionStatus{font-size:14px;color:var(--muted);overflow-wrap:anywhere}

/* Explicit actions for sent photos, overriding the legacy hidden edit button. */
.prep-card .prep-card-tools .prep-edit-mini{display:grid!important;position:static;inset:auto;width:40px;height:40px;min-width:40px;z-index:auto}
.prep-card.sent-card .prep-card-tools{gap:12px;flex-wrap:wrap;padding:5px 0}
.prep-card.sent-card .prep-card-tool{width:40px;height:40px;min-width:40px}
.prep-card.sent-card .prep-delete-mini{color:#ffb5a5;border-color:#9e6244}

/* Ver. 1.0.19 – leichte lokale Dateiverwaltung */
.local-files-panel{overflow:auto}
.local-files-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:4px 0 10px}
.local-files-toolbar button{min-height:44px;padding:.55rem .45rem}
.local-files-list{display:grid;gap:8px;margin-top:10px;padding-bottom:20px}
.local-file-row{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:8px;align-items:stretch;border:1px solid rgba(168,124,40,.55);border-radius:12px;background:rgba(11,8,4,.82);overflow:hidden}
.local-file-info{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px;text-align:left;border:0;background:transparent;color:#f8e8b8;padding:9px 10px;min-width:0}
.local-file-info>span:nth-child(2){display:grid;gap:2px;min-width:0}.local-file-info b{font-size:.78rem;overflow-wrap:anywhere}.local-file-info small{font-size:.61rem;color:#bfae7e;overflow-wrap:anywhere}.local-file-info em{font-size:.58rem;font-style:normal;color:#e8c96f;white-space:nowrap}
.local-file-icon{font-size:1.25rem}.local-file-delete{border:0;border-left:1px solid rgba(168,124,40,.4);border-radius:0;background:rgba(56,18,8,.42);font-size:1.1rem;min-width:46px}
.local-files-empty{padding:18px 10px;text-align:center;color:#c8b788;border:1px dashed rgba(168,124,40,.42);border-radius:12px}
@media(max-width:560px){.local-files-toolbar{grid-template-columns:1fr 1fr}.local-files-toolbar .danger-soft{grid-column:1/-1}.local-file-info{grid-template-columns:30px minmax(0,1fr)}.local-file-info em{grid-column:2}}


/* Ver. 1.0.19 – klare Auswahl + System-Dateidialog */
.prep-select-btn{
  border:2px solid #7e8792!important;
  background:#070b10!important;
  color:transparent!important;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.035)!important;
}
.prep-select-btn .prep-checkmark{
  opacity:0;
  transform:scale(.65);
  font-size:1.35rem;
  font-weight:1000;
  line-height:1;
  color:#fff;
  transition:opacity .12s ease,transform .12s ease;
}
.prep-select-btn.is-selected{
  border-color:#7cf0a4!important;
  background:linear-gradient(180deg,#16834a,#07552f)!important;
  color:#fff!important;
  box-shadow:0 0 0 2px rgba(124,240,164,.18),0 0 14px rgba(60,220,120,.28),inset 0 1px 0 rgba(255,255,255,.2)!important;
}
.prep-select-btn.is-selected .prep-checkmark{opacity:1;transform:scale(1)}
.local-files-toolbar #openSystemFilesBtn{font-weight:900;min-width:160px}
@media(max-width:560px){.local-files-toolbar #openSystemFilesBtn{grid-column:1/-1;width:100%}}

.prep-head-actions{display:flex;align-items:center;gap:8px}
.prep-files-btn{font-size:1.32rem!important}
@media(max-width:420px){.prep-head-actions{gap:5px}.prep-menu-btn{width:42px;height:42px}.prep-head.compact>div small{max-width:38vw}}

/* Ver. 1.0.20 – Kompatibilitäts-/Notfallmodus und System-Diagnose */
.folder-setup-status{padding:9px 11px;border:1px solid #70551f;border-radius:12px;background:#100b04;color:#ffe2a0;font-size:.78rem;line-height:1.4}
.folder-setup-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.folder-setup-actions button{min-height:48px!important;padding:.55rem .65rem}
#folderSetupSkipBtn{border-color:#8f702e;background:linear-gradient(180deg,#241b09,#0b0803);color:#ffe09a}
#folderSetupDiagBtn{border-color:#6d5728;background:#0c0904;color:#f6d88d}
.diagnostics-panel{overflow:auto}
.diagnostics-summary{margin:10px 0;padding:10px 12px;border:1px solid #6e5a28;border-radius:12px;background:#151005;color:#e9dbad;font-weight:700;line-height:1.4}
.diagnostics-summary.warn{border-color:#9a5b31;background:#24100a;color:#ffd6bc}
.diagnostics-output{margin:0;padding:12px;border:1px solid #5e4b20;border-radius:12px;background:#050403;color:#f5e7b6;font:500 .72rem/1.48 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text;-webkit-user-select:text;max-height:52vh;overflow:auto}
.diagnostics-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.diagnostics-actions button{min-height:46px;padding:.5rem .45rem}
@media(max-width:560px){.folder-setup-actions,.diagnostics-actions{grid-template-columns:1fr}.folder-setup-box{max-height:92vh;overflow:auto}.diagnostics-output{max-height:44vh}}
@media(orientation:landscape) and (max-height:560px){.folder-setup-box{max-height:94vh;overflow:auto}.folder-setup-box{gap:7px;padding:12px}.folder-setup-icon{font-size:1.8rem}.folder-setup-box button{min-height:42px}.folder-setup-actions{grid-template-columns:1fr 1fr}.diagnostics-output{max-height:38vh}}

/* Ver. 1.0.21 – separate Stempelverwaltung + Kurz/Langdruck im Editor */
.stamp-manager-actions{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 12px}.stamp-manager-actions .primary{flex:1 1 230px}.stamp-manager-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;padding:4px 0 18px}.stamp-manager-card{display:grid;grid-template-columns:86px minmax(0,1fr);grid-template-areas:"img info" "actions actions";gap:9px;padding:10px;border:1px solid #6b5120;border-radius:14px;background:linear-gradient(180deg,#171005,#090603)}.stamp-manager-card.is-last{border-color:#f2bd49;box-shadow:0 0 0 2px rgba(242,189,73,.18) inset}.stamp-manager-card>img{grid-area:img;width:86px;height:70px;object-fit:contain;background:#fff;border-radius:8px}.stamp-manager-info{grid-area:info;min-width:0;display:flex;flex-direction:column;gap:4px;justify-content:center}.stamp-manager-info b{color:#ffe09a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stamp-manager-info small{color:#c9b27a}.stamp-manager-card-actions{grid-area:actions;display:flex;gap:7px;flex-wrap:wrap}.stamp-manager-card-actions button{flex:1 1 110px;min-height:38px}.editor-bottom-bar .stamp-quick-btn{border-color:#9a742c!important;position:relative}.editor-bottom-bar .stamp-quick-btn.has-last-stamp{box-shadow:0 0 0 2px rgba(242,189,73,.18) inset}.editor-bottom-bar .stamp-quick-btn.has-last-stamp::after{content:'✓';position:absolute;right:4px;top:2px;font-size:.62rem;color:#ffd66b}
.stamp-picker-modal{position:fixed;inset:0;z-index:325;background:rgba(0,0,0,.84);display:flex;align-items:center;justify-content:center;padding:12px}.stamp-picker-box{width:min(760px,100%);max-height:90vh;display:flex;flex-direction:column;overflow:hidden;border:1px solid #815f22;border-radius:20px;background:linear-gradient(180deg,#160f05,#070503)}.stamp-picker-head,.stamp-picker-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-color:#6f521e}.stamp-picker-head{border-bottom:1px solid #6f521e}.stamp-picker-head>div{display:flex;flex-direction:column;gap:2px}.stamp-picker-head small{color:#c7ad72}.stamp-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:12px;overflow:auto}.stamp-picker-card{display:grid;grid-template-rows:100px auto auto;gap:5px;align-items:center;justify-items:center;min-width:0;padding:8px;border:1px solid #6b5120;border-radius:13px;background:#0d0904;color:#ffe09a}.stamp-picker-card.is-last{border-color:#f2bd49;box-shadow:0 0 0 2px rgba(242,189,73,.2) inset}.stamp-picker-card img{width:100%;height:100px;object-fit:contain;background:#fff;border-radius:8px}.stamp-picker-card span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}.stamp-picker-card small{min-height:1em;color:#ffd66b}.stamp-picker-foot{border-top:1px solid #6f521e;flex-wrap:wrap}.stamp-picker-foot button{flex:1 1 190px}.stamp-builder-foot button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:620px){.stamp-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stamp-manager-card{grid-template-columns:72px minmax(0,1fr)}.stamp-manager-card>img{width:72px;height:62px}}


/* --- Ver. 1.0.22 Stempel-Assistent modernisiert --- */
.modern-stamp-builder{width:min(960px,100%);max-height:96vh;background:linear-gradient(180deg,#0d2243 0 116px,#0a0602 116px,#080503 100%)!important;border:1px solid #9f7830!important;box-shadow:0 16px 44px rgba(0,0,0,.45)}
.modern-stamp-builder .stamp-builder-head,.modern-stamp-builder .stamp-builder-foot{background:linear-gradient(180deg,#0a2f61,#092349)!important;border-color:#7e5c24!important}
.modern-stamp-builder .stamp-builder-head b{font-size:1.1rem}
.stamp-builder-preview-fixed{padding:12px 16px 4px;flex:0 0 auto}
.unified-preview{background:linear-gradient(180deg,#140d05,#090502)!important;border:1px solid #87631f!important;border-radius:18px;padding:10px;box-shadow:inset 0 0 0 1px rgba(255,219,130,.08)}
.preview-head-row{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between}
.preview-head-row span{font-size:1.05rem;font-weight:800;color:#fff1cc}
.preview-head-row small{color:#ffe09a;font-size:.95rem}
.preview-zoom-icon{font-size:1.05rem}
.unified-preview img{width:100%;max-height:295px;object-fit:contain;border-radius:14px;background:#fafcff}
.stamp-builder-tools-scroll{overflow:auto;padding:8px 16px 14px;flex:1 1 auto}
.modern-form-layout{display:flex;flex-direction:column;gap:12px}
.stamp-tool-card{background:linear-gradient(180deg,#120c04,#080503);border:1px solid #7f5b1f;border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:10px}
.stamp-tool-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.stamp-tool-card-head b,.stamp-table-head b,.movement-card b{color:#ffe7b0}
.stamp-tool-card-head small,.movement-card small{color:#ceb47c}
.stamp-shape-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.stamp-shape-btn{min-height:98px;border-radius:16px;border:1px solid #8b6527;background:rgba(18,12,4,.92);color:#fff0ca;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:10px;text-align:center}
.stamp-shape-btn span{font-size:2rem;line-height:1}
.stamp-shape-btn b{font-size:.96rem}
.stamp-shape-btn.is-active{background:linear-gradient(180deg,#7a5310,#f1c252 48%,#b47a19);color:#241300;border-color:#ffe29a;box-shadow:0 0 0 2px rgba(255,220,120,.22) inset}
.stamp-table-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.stamp-table-head>button{width:auto;min-width:130px}
.stamp-table-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.stamp-stepper{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border:1px solid #72511d;border-radius:14px;background:#0d0904;color:#ffe7b0}
.stamp-stepper>div{display:flex;align-items:center;gap:10px}
.stamp-stepper button{width:42px;height:42px;padding:0;font-size:1.25rem}
.stamp-stepper strong{font-size:1.5rem;min-width:28px;text-align:center}
.movement-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px}
.movement-card>button{width:auto;min-width:240px}
.split-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px 16px 16px}
.split-actions button{min-height:64px;font-size:1.08rem}
.stamp-builder-items{display:flex;flex-direction:column;gap:10px}
.stamp-item-row{background:#0d1118;border:1px solid #6f521e;border-radius:16px;padding:12px}
.stamp-item-top b{color:#ffe09a}.stamp-item-grid textarea,.stamp-item-grid input,.modern-form-layout input,.modern-form-layout textarea{background:#020406;border-color:#7e5b20;color:#fff7e2}
.stamp-item-options .switch-row{background:#0a0e14;border-color:#6f521e}
@media (max-width:760px){.stamp-shape-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.movement-card,.stamp-table-controls,.split-actions{grid-template-columns:1fr}.movement-card>button{min-width:0;width:100%}}

/* --- Ver. 1.0.23 Editor-Auswahl & Stempel-Tabelle --- */
.selected-element-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:9px 12px;background:linear-gradient(180deg,#101b2b,#08101a);border-top:1px solid #6f521e;border-bottom:1px solid #6f521e;position:sticky;bottom:0;z-index:45}
.selected-element-bar button{min-height:46px;font-weight:800}
.editor-stamp-menu-card>button{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;padding:13px 14px;border-color:#9d7427;background:linear-gradient(180deg,#191005,#0b0703)}
.editor-stamp-menu-card>button b{font-size:1rem;color:#ffe3a1}.editor-stamp-menu-card>button small{color:#c8b07b;font-size:.76rem;line-height:1.3}
.stamp-shape-grid-compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.stamp-table-label-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.stamp-table-label-grid label{margin:0}
.marker-number-modal{position:fixed;inset:0;z-index:360;background:rgba(0,0,0,.82);display:flex;align-items:center;justify-content:center;padding:14px}
.marker-number-box{width:min(480px,100%);border:1px solid #815f22;border-radius:20px;background:linear-gradient(180deg,#160f05,#070503);overflow:hidden;padding:0 14px 14px;box-shadow:0 14px 40px rgba(0,0,0,.45)}
.marker-number-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 -14px 10px;padding:13px 14px;background:#0c1c32;border-bottom:1px solid #6f521e}.marker-number-head b{color:#ffe4a2}.marker-number-head button{width:44px}
@media(max-width:620px){.selected-element-bar{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px}.selected-element-bar button{min-height:42px;font-size:.84rem;padding:.58rem .45rem}.stamp-table-label-grid{grid-template-columns:1fr}.stamp-shape-grid-compact{grid-template-columns:repeat(3,minmax(0,1fr))}.stamp-shape-btn{min-height:84px;padding:8px}.stamp-shape-btn span{font-size:1.7rem}.stamp-shape-btn b{font-size:.82rem}}


/* --- Ver. 1.0.24 Element-Dialoge --- */
.mini-style-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 6px}
.mini-style-grid label{margin:0}
.mini-style-grid input[type=color]{height:52px;padding:6px}
@media(max-width:620px){.mini-style-grid{grid-template-columns:1fr}}


/* --- Ver. 1.0.28 Werkzeuge im Bearbeitungsmenü --- */
#editorMenuToolsHost .editor-bottom-bar,#editorMenuToolsHost .editor-photo-toolbar{padding:0;background:transparent;border-top:0;flex-wrap:wrap}
#editorMenuToolsHost .editor-bottom-bar button,#editorMenuToolsHost .editor-photo-toolbar button{flex:1 1 160px;min-width:0}
#editorMenuToolsHost .editor-tool-hint{margin-top:6px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:#07111d}
#editorMenuToolsHost .editor-tools-drawer{margin-top:8px;border:1px solid rgba(255,255,255,.06);border-radius:12px;padding:8px}
#editorMenuToolsHost .editor-tools-scroll{flex-wrap:wrap;overflow:visible}
#editorMenuToolsHost .editor-tools-scroll button{flex:1 1 140px;min-width:0}


/* --- Ver. 1.0.31 Untere Aktionskacheln gleich groß --- */
.prep-bottom-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:122px!important;gap:7px!important;align-items:stretch!important}
.prep-bottom-actions>button,.prep-bottom-actions>.prep-bottom-search{width:100%!important;height:100%!important;min-height:122px!important;max-height:122px!important;box-sizing:border-box!important}
.prep-bottom-actions button,.prep-bottom-search{display:grid!important;place-items:center!important;align-content:center!important;gap:6px!important;padding:10px 8px!important}
.prep-bottom-actions button b,.prep-bottom-search select{display:block;line-height:1.08!important}
.prep-bottom-actions button b{white-space:normal!important;text-align:center!important;word-break:break-word!important}
.prep-bottom-search select{padding:0 20px 0 4px!important;white-space:normal!important;text-align:center!important;text-align-last:center!important}
@media(max-width:560px){.prep-bottom-actions{grid-auto-rows:112px!important}.prep-bottom-actions>button,.prep-bottom-actions>.prep-bottom-search{min-height:112px!important;max-height:112px!important;height:112px!important}.prep-bottom-actions button,.prep-bottom-search{padding:8px 6px!important;gap:4px!important}}


/* --- Ver. 1.0.32 Aktionskacheln wieder kompakt --- */
.prep-bottom-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:62px!important;gap:7px!important}
.prep-bottom-actions>button,.prep-bottom-actions>.prep-bottom-search{height:62px!important;min-height:62px!important;max-height:62px!important;padding:6px 5px!important;border-radius:13px!important}
.prep-bottom-actions button span,.prep-bottom-search>span{font-size:1.18rem!important;line-height:1!important}
.prep-bottom-actions button b,.prep-bottom-search select{font-size:.68rem!important;line-height:1.05!important}
.prep-bottom-actions button b{white-space:normal!important;text-align:center!important}
.prep-bottom-search{display:grid!important;place-items:center!important;align-content:center!important;gap:2px!important}
.prep-bottom-search select{min-height:22px!important;padding:0 18px 0 3px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
@media(max-width:560px){.prep-bottom-actions{grid-auto-rows:58px!important}.prep-bottom-actions>button,.prep-bottom-actions>.prep-bottom-search{height:58px!important;min-height:58px!important;max-height:58px!important;padding:5px 4px!important}.prep-bottom-actions button span,.prep-bottom-search>span{font-size:1.1rem!important}.prep-bottom-actions button b,.prep-bottom-search select{font-size:.64rem!important}}


/* --- Ver. 1.0.33 Suchen sauber ausrichten + mehr Gold --- */
.prep-bottom-actions button,.prep-bottom-search{border-color:#d3a64a!important;background:linear-gradient(180deg,#4a3210 0%,#221406 52%,#080502 100%)!important;box-shadow:inset 0 1px 0 rgba(255,237,165,.22),0 0 16px rgba(218,165,52,.12)!important}
.prep-bottom-actions button b,.prep-bottom-search select,.prep-bottom-search>span{color:#ffe8af!important}
.prep-bottom-actions button.is-active{border-color:#ffd56e!important;box-shadow:0 0 16px rgba(239,182,56,.38),inset 0 0 20px rgba(201,136,18,.16)!important}
.prep-bottom-search{position:relative!important;display:grid!important;grid-template-rows:auto auto!important;justify-items:center!important;align-content:center!important;gap:4px!important;padding:8px 28px 8px 10px!important}
.prep-bottom-search>span{font-size:1.24rem!important;line-height:1!important;margin:0!important}
.prep-bottom-search::after{content:'⌄';position:absolute;right:10px;top:50%;transform:translateY(10px);font-size:1.1rem;line-height:1;color:#ffe8af;pointer-events:none}
.prep-bottom-search select{appearance:none;-webkit-appearance:none;-moz-appearance:none;width:100%!important;min-width:0!important;max-width:100%!important;display:block!important;background-image:none!important;background:none!important;background-color:transparent!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;text-align:center!important;text-align-last:center!important;font-size:.72rem!important;font-weight:700!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.prep-bottom-search option{background:#2a1a08;color:#ffe8af}
@media(max-width:560px){.prep-bottom-actions button,.prep-bottom-search{box-shadow:inset 0 1px 0 rgba(255,237,165,.18),0 0 12px rgba(218,165,52,.10)!important}.prep-bottom-search{padding:8px 24px 8px 8px!important}.prep-bottom-search::after{right:9px;transform:translateY(9px)}.prep-bottom-search select{font-size:.68rem!important}}


/* --- Ver. 1.0.34 Stempel separat im Bearbeitungsmenü --- */
.editor-stamp-section .stamp-section-label{margin:2px 0 0;color:#c9b27a;font-size:.78rem;font-weight:700}.editor-stamp-section .status-card{margin-top:8px}.editor-stamp-section .stamp-manager-grid.compact{grid-template-columns:1fr;gap:9px;padding-bottom:10px}.editor-stamp-card{cursor:pointer}.editor-stamp-card.is-selected{border-color:#ffd56e;box-shadow:0 0 0 2px rgba(242,189,73,.22) inset,0 0 12px rgba(239,182,56,.12)}.editor-stamp-card .stamp-manager-card-actions button{flex:1 1 96px}.editor-stamp-section .editor-menu-actions:last-child button{flex:1 1 100%}.editor-stamp-section .stamp-empty{padding:14px;border:1px dashed #7e632a;border-radius:12px;color:#dbc894;background:#0d0904}


/* --- Ver. 1.0.37 Rahmen/Muster kompakter --- */
.frame-editor-box{width:min(760px,96vw)!important;max-height:94vh!important}.frame-editor-head{padding:8px 10px!important}.frame-editor-body{grid-template-columns:minmax(220px,.95fr) minmax(250px,1.05fr)!important;gap:10px!important;padding:10px!important}.frame-preview-wrap{min-height:170px!important;padding:6px!important}.frame-preview-wrap canvas{max-height:26vh!important}.frame-controls{gap:8px!important}.frame-pattern-card,.frame-template-card{padding:8px!important;gap:7px!important}.frame-file-row button{flex:1 1 120px}.frame-colors.compact{grid-template-columns:1fr 1fr!important}.frame-step-card{display:grid;gap:4px}.frame-stepper{display:grid;grid-template-columns:62px 1fr 62px;gap:8px;align-items:center}.frame-stepper button{padding:.56rem .2rem;min-height:44px;font-size:1.25rem;font-weight:800}.frame-stepper b{display:grid;place-items:center;min-height:44px;border:1px solid #815f22;border-radius:14px;background:#0b0906;color:#ffe6b0;font-size:1.02rem}.frame-editor-foot{padding:8px 10px!important}.frame-editor-foot button{min-width:170px}.frame-controls select,.frame-controls input[type=text]{min-height:48px}.frame-controls label{font-size:.98rem}.frame-pattern-card b,.frame-template-card b{font-size:1rem}.frame-template-card .frame-file-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px}.frame-template-card .frame-file-row button{min-width:0}.frame-editor-modal .primary{box-shadow:0 0 14px rgba(240,188,60,.16)}
@media(max-width:720px){.frame-editor-box{width:min(98vw,620px)!important}.frame-editor-body{grid-template-columns:1fr!important;padding:8px!important;gap:8px!important}.frame-preview-wrap{min-height:134px!important}.frame-preview-wrap canvas{max-height:20vh!important}.frame-stepper{grid-template-columns:56px 1fr 56px}.frame-stepper button,.frame-stepper b{min-height:42px}.frame-template-card .frame-file-row{grid-template-columns:1fr}.frame-file-row{display:grid;grid-template-columns:1fr 1fr;gap:7px}}


/* --- Ver. 1.0.38 Rahmen-Vorschau fixiert + Farbwahl --- */
.frame-preview-wrap{position:sticky;top:0;overflow:hidden!important;align-self:start}.frame-preview-wrap canvas{width:100%!important;height:auto!important;max-width:100%!important;object-fit:contain;box-shadow:0 0 0 1px rgba(255,255,255,.08) inset}.frame-preset-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.frame-preset-row button{padding:.55rem .45rem;min-height:44px;font-size:.9rem}.frame-preset-row button:nth-child(1){background:linear-gradient(180deg,#5b4312,#241706);border-color:#cba24a;color:#ffe9a7}.frame-preset-row button:nth-child(2){background:linear-gradient(180deg,#404854,#171c22);border-color:#b7c1cf;color:#eef3fb}.frame-preset-row button:nth-child(3){background:linear-gradient(180deg,#173f76,#0b1831);border-color:#66a7ff;color:#dfeeff}@media(max-width:720px){.frame-preview-wrap{top:0}.frame-preset-row{grid-template-columns:1fr 1fr 1fr}.frame-preset-row button{min-height:42px;font-size:.84rem}}


/* --- Ver. 1.0.39 Tabellen-Stempel vereinfacht --- */
.stamp-table-only-card .stamp-table-head{display:grid;gap:4px}.stamp-table-only-card .stamp-table-head small{color:#c7b07a}.stamp-table-label-panels{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stamp-table-label-panel{display:grid;gap:8px;padding:10px;border:1px solid rgba(206,165,90,.35);border-radius:14px;background:#0d0904}.stamp-table-label-panel>b{color:#ffe7b0}.stamp-dynamic-labels{display:grid;gap:8px}.stamp-dynamic-label{display:grid;gap:4px;margin:0}.stamp-dynamic-label span{font-size:.82rem;color:#c6ae76}.stamp-dynamic-label input{min-height:44px}.stamp-tool-card.hidden{display:none!important}@media (max-width:760px){.stamp-table-label-panels{grid-template-columns:1fr}}


/* --- Ver. 1.0.41 Suchen-Dropdown entsperrt --- */
.prep-bottom-search-fixed{position:relative!important;display:grid!important;grid-template-rows:auto auto!important;place-items:center!important;align-content:center!important;gap:2px!important;overflow:hidden!important;padding:6px 28px 6px 8px!important;cursor:pointer!important;touch-action:manipulation!important}.prep-bottom-search-fixed>b{font-size:.68rem!important;line-height:1.05!important;color:#ffe8af!important;font-family:Georgia,'Times New Roman',serif;text-align:center;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.prep-bottom-search-fixed>.prep-search-arrow{position:absolute;right:9px;bottom:10px;font-size:1.05rem;color:#ffe8af;pointer-events:none}.prep-bottom-search-fixed::after{display:none!important}.prep-bottom-search-fixed>select{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;max-width:none!important;opacity:.01!important;z-index:5!important;cursor:pointer!important;appearance:auto!important;-webkit-appearance:menulist!important;padding:0!important;margin:0!important;border:0!important}.prep-bottom-search-fixed>span:first-child,.prep-bottom-search-fixed>b,.prep-bottom-search-fixed>.prep-search-arrow{pointer-events:none!important}@media(max-width:560px){.prep-bottom-search-fixed>b{font-size:.64rem!important}.prep-bottom-search-fixed{padding:5px 25px 5px 6px!important}.prep-bottom-search-fixed>.prep-search-arrow{right:8px;bottom:9px}}


/* --- Ver. 1.0.42 stabile Suche ohne transparentes Select --- */
.prep-bottom-search-button{width:100%!important;height:62px!important;min-height:62px!important;max-height:62px!important;padding:6px 5px!important;border-radius:13px!important;display:grid!important;place-items:center!important;align-content:center!important;gap:2px!important;border-color:#d3a64a!important;background:linear-gradient(180deg,#4a3210 0%,#221406 52%,#080502 100%)!important;box-shadow:inset 0 1px 0 rgba(255,237,165,.22),0 0 16px rgba(218,165,52,.12)!important;touch-action:manipulation!important;pointer-events:auto!important;position:relative!important;z-index:3!important}.prep-bottom-search-button span{font-size:1.18rem!important;line-height:1!important}.prep-bottom-search-button b{font-size:.68rem!important;line-height:1.05!important;color:#ffe8af!important;font-family:Georgia,'Times New Roman',serif}.prep-search-modal{position:fixed;inset:0;z-index:420;background:rgba(0,0,0,.82);display:grid;place-items:center;padding:14px}.prep-search-modal.hidden{display:none!important}.prep-search-box{width:min(560px,96vw);background:linear-gradient(180deg,#0c1f35,#0a0906);border:1px solid #a77c2f;border-radius:20px;overflow:hidden;box-shadow:0 20px 70px rgba(0,0,0,.58)}.prep-search-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 15px;background:#0b294b;border-bottom:1px solid #8b6728;color:#fff0c4}.prep-search-head b{font-size:1.15rem}.prep-search-head button{width:48px;height:48px;padding:0}.prep-search-body{display:grid;gap:12px;padding:15px}.prep-search-body label{display:grid;gap:6px;color:#ffe8b1}.prep-search-body input,.prep-search-body select{min-height:52px;background:#050403;border:1px solid #8b6728;color:#fff6df;border-radius:14px;padding:10px 12px}.prep-search-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 15px 15px}.prep-search-actions button{min-height:54px}@media(max-width:560px){.prep-bottom-search-button{height:58px!important;min-height:58px!important;max-height:58px!important;padding:5px 4px!important}.prep-bottom-search-button span{font-size:1.1rem!important}.prep-bottom-search-button b{font-size:.64rem!important}.prep-search-actions{grid-template-columns:1fr}}


/* --- Ver. 1.0.44 robuste einfache Suche --- */
#prepBottomSearchBtn{pointer-events:auto!important;touch-action:manipulation!important;z-index:30!important;position:relative!important;cursor:pointer!important;-webkit-user-select:none;user-select:none}
#prepBottomSearchBtn *{pointer-events:none!important}.prep-bottom-search-fixed,.prep-bottom-search,.prep-search-modal{pointer-events:none!important}

/* Ver. 1.0.44 – Foto-Fertigstellen Werkbank */
.editor-panel{overflow:hidden!important}
.editor-canvas-wrap{flex:0 0 min(52vh,620px)!important;height:min(52vh,620px)!important;min-height:260px!important;position:sticky!important;top:58px;z-index:30!important;background:#050403!important;border-bottom:2px solid #806021!important;padding:6px!important}
.editor-canvas-wrap canvas{max-width:100%!important;max-height:100%!important;object-fit:contain}
.editor-action-panel{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:linear-gradient(180deg,#100a03,#050302);padding:10px 10px 18px;border-top:1px solid #6d501e}
.editor-action-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:2px 4px 8px;color:#ffe2a0}.editor-action-title b{font-size:1.15rem}.editor-action-title small{color:#c8b58a;font-size:.76rem}
.editor-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.editor-action-grid button{min-height:64px;padding:8px 7px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:7px;align-items:center;text-align:left;border-radius:14px;border:1px solid #806021;background:linear-gradient(180deg,#211706,#0a0703);color:#ffe3a0;box-shadow:inset 0 0 0 1px rgba(255,215,120,.04)}
.editor-action-grid button>span{grid-row:1/3;font-size:1.5rem;align-self:center}.editor-action-grid button>b{font-size:.9rem;line-height:1.05}.editor-action-grid button small{font-size:.68rem;color:#c4b080;line-height:1.05}.editor-action-grid .editor-action-server{border-color:#b1842d;background:linear-gradient(180deg,#2a1d08,#0d0903)}
.editor-action-grid .danger-soft{background:linear-gradient(180deg,#35151b,#16070a)!important;border-color:#7e3945!important;color:#ffe0e4!important}
.editor-action-extra{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:7px;margin-top:8px}.editor-action-extra button{min-height:42px;padding:.5rem .45rem;font-size:.78rem}
@media(max-width:520px){.editor-canvas-wrap{flex-basis:min(48vh,500px)!important;height:min(48vh,500px)!important;min-height:220px!important}.editor-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.editor-action-grid button{min-height:60px}.editor-action-grid button>b{font-size:.82rem}.editor-action-grid button small{font-size:.62rem}.editor-action-extra{grid-template-columns:1fr 1fr}.editor-action-extra #editorMenuActionBtn{grid-column:1/-1}}
@media(orientation:landscape) and (max-height:560px){.editor-canvas-wrap{flex-basis:52vh!important;height:52vh!important}.editor-action-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-action-grid button{min-height:54px}.editor-action-extra{grid-template-columns:1fr 1fr 1.5fr}}


/* Ver. 1.0.50 – vollständiges Bild im fixierten Rahmen, Touch-Werkbank aktiv */
.editor-canvas-wrap{overflow:hidden!important;touch-action:none!important}
.editor-canvas-wrap canvas{max-width:100%!important;max-height:100%!important;object-fit:contain!important;transform-origin:center center!important}
.editor-action-grid button,.editor-action-extra button{pointer-events:auto!important;touch-action:manipulation!important;position:relative;z-index:2}
.editor-action-grid button.is-active{border-color:#ffd76d!important;box-shadow:0 0 14px rgba(240,184,52,.35)!important}
.editor-menu-reserved{min-height:120px}


/* --- Ver. 1.0.52 Foto vollständig einpassen + stabiles Suchfenster --- */
.editor-canvas-wrap{display:grid!important;place-items:center!important;overflow:hidden!important}
.editor-canvas-wrap canvas{display:block!important;margin:auto!important}
.prep-search-modal{position:fixed;inset:0;z-index:420;background:rgba(0,0,0,.78);display:grid;place-items:center;padding:14px}
.prep-search-modal.hidden{display:none!important}
.prep-search-box{width:min(92vw,520px);background:linear-gradient(180deg,#171006,#070402);border:1px solid #8c6926;border-radius:20px;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.65)}
.prep-search-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;background:#0d2845;border-bottom:1px solid #7e5c24}.prep-search-head b{font-size:1.15rem;color:#fff1ca}.prep-search-head button{width:48px;height:48px;padding:0}
.prep-search-body{display:grid;gap:12px;padding:14px}.prep-search-body label{display:grid;gap:6px;color:#ffe7b0}.prep-search-body select,.prep-search-body input{min-height:54px;font-size:1rem;background:#050301;border:1px solid #8b6826;color:#fff3d2;border-radius:14px;padding:10px 12px}.prep-search-body small{color:#c9b783;line-height:1.35}
.prep-search-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 14px 14px}.prep-search-actions button{min-height:54px}
@media(max-width:520px){.prep-search-actions{grid-template-columns:1fr}.prep-search-box{width:96vw}}
/* Ver. 1.0.52 override: das neue Suchfenster muss bedienbar bleiben. */
.prep-search-modal{pointer-events:auto!important}
.prep-search-modal .prep-search-box,.prep-search-modal button,.prep-search-modal select,.prep-search-modal input{pointer-events:auto!important}


/* --- Ver. 1.0.53 Dateiname-Filter + QR-Suche --- */
.prep-top-filter{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px 12px;border-bottom:1px solid rgba(208,157,54,.28);background:linear-gradient(180deg,#0b0804,#050402)}
.prep-top-filter label{display:grid;gap:4px;margin:0;min-width:0}.prep-top-filter label>span{font-size:.72rem;color:#d8bf82;font-weight:700}.prep-top-filter select{width:100%;min-width:0;min-height:46px;padding:.55rem .72rem;border-color:#9d772e;background:#080604;color:#ffe6a5}.prep-top-filter button{min-height:46px;padding:.55rem .85rem;white-space:nowrap;border-color:#c59635;background:linear-gradient(180deg,#3a270a,#160e04);color:#ffe6a5;font-weight:800}
.qr-scanner-box{max-width:520px}.qr-scanner-body{position:relative;padding:14px;display:grid;gap:10px}.qr-scanner-body video{width:100%;aspect-ratio:3/4;max-height:58vh;object-fit:cover;background:#000;border-radius:16px;border:1px solid #8d6b2d}.qr-scan-frame{pointer-events:none;position:absolute;left:20%;right:20%;top:24%;aspect-ratio:1;border:3px solid #ffd86d;border-radius:14px;box-shadow:0 0 0 9999px rgba(0,0,0,.12)}.qr-scanner-body p{margin:0;color:#d9c99f;text-align:center}.qr-scanner-body button{min-height:48px}
@media(max-width:560px){.prep-top-filter{grid-template-columns:minmax(0,1fr) 112px;padding:7px 9px}.prep-top-filter button{padding:.45rem .5rem;font-size:.78rem}.prep-top-filter select{font-size:.78rem}}


/* --- Ver. 1.0.54 Suche im Suchfenster + virtuelle Beschriftung --- */
.prep-top-filter.hidden{display:none!important}
.prep-search-top-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-bottom:2px}
.prep-search-top-tools label{display:grid;gap:6px;color:#ffe7b0}
.prep-search-top-tools select{min-height:54px;font-size:1rem;background:#050301;border:1px solid #8b6826;color:#fff3d2;border-radius:14px;padding:10px 12px}
.prep-search-top-tools button{min-height:54px;white-space:nowrap;border-color:#c59635;background:linear-gradient(180deg,#3a270a,#160e04);color:#ffe6a5;font-weight:800;border-radius:14px;padding:0 14px}
@media(max-width:520px){.prep-search-top-tools{grid-template-columns:1fr}.prep-search-top-tools button{width:100%}}


/* --- Ver. 1.0.56: Bild-Navigation wie Fernbedienung; keine Finger-Pan-Kopplung mit Elementen --- */
.floating-zoom{display:none!important}
.editor-image-nav{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:55;width:178px;height:218px;padding:9px;border:1px solid #c59635;border-radius:24px;background:rgba(10,7,3,.84);backdrop-filter:blur(6px);box-shadow:0 12px 36px rgba(0,0,0,.55);display:grid;grid-template-columns:52px 52px 52px;grid-template-rows:52px 52px 52px 48px;gap:4px;place-content:center;touch-action:none}
.editor-image-nav.hidden{display:none!important}
.editor-image-nav>button,.editor-image-nav .nav-zoom button{min-width:0;width:52px;height:52px;padding:0;border-radius:14px;border:1px solid #9a7128;background:linear-gradient(180deg,#302008,#100a03);color:#ffe3a0;font-size:1.25rem;font-weight:900;touch-action:none;user-select:none;-webkit-user-select:none}
.editor-image-nav .nav-up{grid-column:2;grid-row:1}.editor-image-nav .nav-left{grid-column:1;grid-row:2}.editor-image-nav .nav-center{grid-column:2;grid-row:2}.editor-image-nav .nav-right{grid-column:3;grid-row:2}.editor-image-nav .nav-down{grid-column:2;grid-row:3}
.editor-image-nav .nav-center{color:#f2c052;font-size:1rem}
.editor-image-nav .nav-zoom{grid-column:1/4;grid-row:4;display:grid;grid-template-columns:52px 1fr 52px;gap:4px;align-items:center}
.editor-image-nav .nav-zoom button{height:46px}
.editor-image-nav .nav-zoom .nav-zoom-value{width:100%;font-size:.85rem;color:#ffe8af}
.editor-image-nav button:active{transform:scale(.94);background:linear-gradient(180deg,#73500f,#241605)}
@media(max-width:420px){.editor-image-nav{width:166px;height:208px;grid-template-columns:48px 48px 48px;grid-template-rows:48px 48px 48px 46px}.editor-image-nav>button,.editor-image-nav .nav-zoom button{width:48px;height:48px}.editor-image-nav .nav-zoom{grid-template-columns:48px 1fr 48px}.editor-image-nav .nav-zoom button{height:44px}}


/* --- Ver. 1.0.57: kompakte Bild-Fernbedienung + kleinere Elemente --- */
.editor-image-nav{left:auto!important;top:auto!important;right:8px!important;bottom:8px!important;transform:none!important;width:132px!important;height:160px!important;padding:7px!important;border-radius:17px!important;grid-template-columns:36px 36px 36px!important;grid-template-rows:36px 36px 36px 34px!important;gap:3px!important;place-content:center!important}
.editor-image-nav>button,.editor-image-nav .nav-zoom button{width:36px!important;height:36px!important;border-radius:10px!important;font-size:.9rem!important}
.editor-image-nav .nav-up{grid-column:2!important;grid-row:1!important}.editor-image-nav .nav-left{grid-column:1!important;grid-row:2!important}.editor-image-nav .nav-center{grid-column:2!important;grid-row:2!important}.editor-image-nav .nav-right{grid-column:3!important;grid-row:2!important}.editor-image-nav .nav-down{grid-column:2!important;grid-row:3!important}
.editor-image-nav .nav-zoom{grid-column:1/4!important;grid-row:4!important;grid-template-columns:36px 1fr 36px!important;gap:3px!important}
.editor-image-nav .nav-zoom button{height:32px!important}.editor-image-nav .nav-zoom .nav-zoom-value{font-size:.68rem!important;padding:0 2px!important}
.editor-image-nav .nav-close{position:absolute!important;right:-7px!important;top:-7px!important;width:28px!important;height:28px!important;min-width:28px!important;border-radius:50%!important;background:#4a1515!important;border-color:#b84a4a!important;color:#fff!important;font-size:.72rem!important;z-index:3!important}
.marker-number-box{width:min(360px,94vw)!important;border-radius:15px!important;padding:0 9px 9px!important}
.marker-number-head{min-height:40px!important;padding:6px 0!important}.marker-number-head b{font-size:.9rem!important}.marker-number-head button{width:34px!important;height:34px!important;padding:0!important}
.marker-number-box label{margin:6px 0!important;font-size:.74rem!important}.marker-number-box input,.marker-number-box select{min-height:38px!important;padding:.42rem .55rem!important;font-size:.82rem!important}
.mini-style-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;margin:6px 0!important}.mini-style-grid input[type=color]{height:38px!important;padding:3px!important}.mini-style-grid label{font-size:.68rem!important}
.marker-number-box .actions{gap:6px!important;margin-top:6px!important}.marker-number-box .actions button{min-height:40px!important;padding:.45rem .5rem!important;font-size:.78rem!important}
.text-entry{padding:8px!important}.text-entry-box{width:min(440px,95vw)!important;padding:8px!important;border-radius:13px!important}.text-entry textarea{min-height:72px!important;font-size:.9rem!important;padding:.55rem!important}.text-format-grid{gap:5px!important;margin-bottom:5px!important}.text-format-grid label{font-size:.7rem!important}.text-format-grid select,.text-format-grid input{min-height:36px!important;padding:.35rem .45rem!important;font-size:.78rem!important}.text-size-stepper button{width:32px!important;height:32px!important;font-size:1rem!important}.text-size-stepper input{width:56px!important;height:32px!important}.text-entry-box .actions{gap:6px!important}.text-entry-box .actions button{min-height:40px!important;padding:.45rem .5rem!important;font-size:.78rem!important}
.selected-element-bar{gap:5px!important;padding:6px 8px!important}.selected-element-bar button{min-height:38px!important;padding:.42rem .4rem!important;font-size:.74rem!important}
.editor-tools-drawer{padding:4px 5px 5px!important;gap:4px!important}.editor-tools-scroll{gap:4px!important}.editor-tools-scroll button{padding:.4rem .5rem!important;font-size:.68rem!important;border-radius:8px!important}.tool-field,.tool-select,.tool-stepper{min-height:36px!important;padding:3px 5px!important;font-size:.64rem!important}.tool-stepper button{width:30px!important;min-width:30px!important;height:30px!important;font-size:1rem!important}.tool-stepper input[type=number]{width:50px!important;height:30px!important;font-size:.78rem!important}
@media(max-width:420px){.editor-image-nav{right:6px!important;bottom:6px!important;width:126px!important;height:154px!important}.mini-style-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}


/* --- Ver. 1.0.59 Rahmen/Muster: direkte Bedienung --- */
.frame-live-note{padding:10px 12px;border:1px solid rgba(210,166,67,.45);border-radius:12px;background:#0a120f;color:#d8c58d;font-size:.82rem;text-align:center}
.frame-preset-row button.is-active{border-color:#ffd86e!important;box-shadow:0 0 14px rgba(240,184,52,.38),inset 0 0 12px rgba(255,215,110,.12)!important}

/* --- Ver. 1.0.63: gespeicherte Stempel mit klarer Vorschau --- */
.stamp-manager-card{grid-template-columns:108px minmax(0,1fr)}
.stamp-preview-image-btn{grid-area:img;width:108px;height:86px;padding:3px;border:1px solid #6b5120;border-radius:10px;background:#fff;overflow:hidden;cursor:zoom-in}
.stamp-preview-image-btn img{display:block;width:100%;height:100%;object-fit:contain;background:#fff;border-radius:6px}
.stamp-manager-card>.stamp-preview-image-btn{align-self:start}
.stamp-view-modal{position:fixed;inset:0;z-index:360;background:rgba(0,0,0,.88);display:grid;place-items:center;padding:12px}
.stamp-view-box{width:min(94vw,760px);max-height:92dvh;display:flex;flex-direction:column;overflow:hidden;border:1px solid #8a6928;border-radius:18px;background:linear-gradient(180deg,#171005,#070503);box-shadow:0 20px 70px rgba(0,0,0,.68)}
.stamp-view-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid #6f521e}
.stamp-view-head>div{display:flex;min-width:0;flex-direction:column;gap:2px}.stamp-view-head b{color:#ffe09a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stamp-view-head small{color:#c9b27a}
.stamp-view-paper{margin:12px;padding:10px;min-height:220px;max-height:75dvh;display:flex;align-items:center;justify-content:center;overflow:auto;background:#fff;border-radius:12px}
.stamp-view-paper img{display:block;max-width:100%;max-height:68dvh;width:auto;height:auto;object-fit:contain}
@media(max-width:620px){.stamp-manager-card{grid-template-columns:88px minmax(0,1fr)}.stamp-preview-image-btn{width:88px;height:74px}.stamp-manager-card-actions button{flex:1 1 88px}}


/* --- Ver. 1.0.64: Stempel 70–82 komplett --- */
.stamp-online-card{margin:0 0 12px;padding:10px;border:1px solid #725722;border-radius:13px;background:#0d0904}.stamp-online-card label{display:block;font-size:.78rem;font-weight:700;color:#ffe09a}.stamp-online-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin-top:5px}.stamp-online-row input{min-height:40px;font-size:.78rem}.stamp-online-card small{display:block;margin-top:6px;color:#bca66e;font-size:.68rem;line-height:1.3}
.stamp-builder-form.modern-form-layout{gap:8px}.stamp-tool-card{padding:9px!important;border-radius:12px!important}.stamp-table-controls{gap:6px!important}.stamp-stepper{min-width:0!important;padding:6px!important}.stamp-stepper>span{font-size:.68rem!important}.stamp-stepper button{width:31px!important;height:31px!important;min-width:31px!important}.stamp-stepper strong{min-width:34px!important;font-size:.8rem!important}
.stamp-builder-compact-options{display:grid;grid-template-columns:minmax(120px,1fr) minmax(150px,1fr) auto;gap:7px;align-items:end;margin:7px 0}.stamp-builder-compact-options label{font-size:.7rem}.stamp-builder-compact-options select{min-height:38px;font-size:.76rem}.stamp-check-option{display:flex!important;align-items:center;gap:7px;min-height:38px;padding:5px 8px;border:1px solid #5e4920;border-radius:9px;background:#090602}.stamp-check-option input{width:18px;height:18px}.stamp-builder-compact-options button{min-height:38px;font-size:.72rem;padding:.4rem .55rem}
.stamp-table-label-panels{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important}.stamp-table-label-panel{padding:7px!important;border-radius:10px!important}.stamp-table-label-panel>b{font-size:.72rem}.stamp-dynamic-labels{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px!important;margin-top:5px}.stamp-dynamic-labels label{font-size:.62rem!important;min-width:0}.stamp-dynamic-labels input{min-height:34px!important;padding:.32rem .4rem!important;font-size:.7rem!important;min-width:0}
.stamp-cell-editor-card{margin-top:7px;padding:8px;border:1px solid #5e4920;border-radius:11px;background:#090602}.stamp-cell-editor-card>b{display:block;color:#ffe09a;font-size:.76rem}.stamp-cell-editor-card>small{display:block;color:#ad9969;font-size:.63rem;margin:2px 0 6px}.stamp-cell-inputs{--stamp-cols:3;display:grid;grid-template-columns:repeat(var(--stamp-cols),minmax(70px,1fr));gap:5px;overflow-x:auto}.stamp-cell-inputs textarea{min-width:70px;min-height:52px;resize:vertical;padding:.38rem;font-size:.7rem;border-radius:8px}
.stamp-online-modal{position:fixed;inset:0;z-index:330;background:rgba(0,0,0,.86);display:flex;align-items:center;justify-content:center;padding:12px}.stamp-online-box{width:min(900px,100%);max-height:90vh;display:flex;flex-direction:column;overflow:hidden;border:1px solid #815f22;border-radius:19px;background:linear-gradient(180deg,#160f05,#070503)}.stamp-online-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px;overflow:auto}.stamp-online-item{display:grid;grid-template-rows:100px auto;gap:5px;padding:7px;border:1px solid #6b5120;border-radius:11px;background:#0d0904;color:#ffe09a;min-width:0}.stamp-online-item img{width:100%;height:100px;object-fit:contain;background:#fff;border-radius:7px}.stamp-online-item span{font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:620px){.stamp-builder-compact-options{grid-template-columns:1fr 1fr}.stamp-builder-compact-options button{grid-column:1/-1}.stamp-table-label-panels{grid-template-columns:1fr}.stamp-dynamic-labels{grid-template-columns:repeat(2,minmax(0,1fr))}.stamp-online-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stamp-cell-inputs{grid-template-columns:repeat(var(--stamp-cols),minmax(84px,1fr))}}

.stamp-online-modal-input{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:10px 12px;border-bottom:1px solid #5d471d}.stamp-online-modal-input input{min-height:40px;font-size:.8rem}.stamp-picker-foot{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.stamp-picker-foot button{min-width:0!important;flex:none!important}


/* === Ver. 1.0.71 – stabile offene Aufnahmen-Galerie ===
   Basis bleibt Ver. 1.0.64. Nur die Darstellung der Fotokarten wird korrigiert.
   Ziel: jedes Foto vollständig sichtbar, kein Zuschneiden, keine riesigen Hochformatbilder,
   keine Überlappungen; Auswahl/Bearbeiten/Info sauber unter dem Foto. */
.prep-grid{
  display:block!important;
  width:100%!important;
  max-width:980px!important;
  margin:0 auto!important;
  padding:10px 9px calc(180px + env(safe-area-inset-bottom,0px))!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.prep-card{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0 0 16px!important;
  padding:10px!important;
  gap:8px!important;
  overflow:hidden!important;
  border:1px solid #c5912d!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,#120d05 0,#050403 100%)!important;
  box-shadow:inset 0 0 0 2px #050403,inset 0 0 0 3px rgba(255,210,100,.32),0 10px 26px rgba(0,0,0,.46)!important;
}
.prep-card.sent-card{background:linear-gradient(180deg,#100e06,#050403)!important}
.prep-thumb{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:clamp(220px,66vw,430px)!important;
  min-height:220px!important;
  max-height:430px!important;
  aspect-ratio:auto!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #e2ad42!important;
  border-radius:16px!important;
  background:#000!important;
  box-shadow:inset 0 0 0 2px rgba(255,218,112,.16),0 4px 14px rgba(0,0,0,.38)!important;
}
.prep-thumb img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#000!important;
}
.prep-version{
  position:absolute!important;
  left:10px!important;
  bottom:10px!important;
  top:auto!important;
  transform:none!important;
  min-width:0!important;
  padding:6px 11px!important;
  border:1px solid #d29b32!important;
  border-radius:999px!important;
  background:rgba(13,9,3,.88)!important;
  color:#ffe4a0!important;
  font-size:.72rem!important;
  line-height:1!important;
  box-shadow:0 3px 10px rgba(0,0,0,.42)!important;
}
.prep-card-tools{
  position:static!important;
  inset:auto!important;
  transform:none!important;
  display:flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  gap:18px!important;
  width:100%!important;
  min-height:74px!important;
  margin:0!important;
  padding:8px 6px 10px!important;
  flex-wrap:nowrap!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.prep-card-tool,
.prep-card .prep-card-tools .prep-edit-mini{
  position:static!important;
  inset:auto!important;
  display:grid!important;
  place-items:center!important;
  width:56px!important;
  height:56px!important;
  min-width:56px!important;
  min-height:56px!important;
  padding:0!important;
  border:1px solid #b98121!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#4a300b 0,#1a1004 52%,#090603 100%)!important;
  color:#ffe6aa!important;
  font-size:1.28rem!important;
  line-height:1!important;
  box-shadow:inset 0 1px 0 rgba(255,232,160,.24),0 4px 10px rgba(0,0,0,.42)!important;
}
.prep-card-tool::before,.prep-card .prep-card-tools .prep-edit-mini::before{display:none!important}
.prep-card-tool:active,.prep-card .prep-card-tools .prep-edit-mini:active{transform:translateY(2px)!important}
.prep-select-btn{color:transparent!important}
.prep-select-btn .prep-checkmark{font-size:1.45rem!important;color:#fff!important}
.prep-select-btn.is-selected{border-color:#65cf8d!important;background:linear-gradient(180deg,#16834a,#07552f)!important;box-shadow:0 0 0 2px rgba(124,240,164,.14),0 4px 10px rgba(0,0,0,.42)!important}
.prep-info-mini.is-open{border-color:#e1ae43!important;background:linear-gradient(180deg,#6b470f,#241605)!important}
.prep-main{
  position:static!important;
  width:100%!important;
  height:auto!important;
  margin:0!important;
  padding:9px!important;
  border:1px solid rgba(151,111,35,.52)!important;
  border-radius:12px!important;
  background:#080603!important;
}
.prep-main.hidden{display:none!important}
.prep-select,.prep-card .prep-actions{display:none!important}

@media(max-width:620px){
  .prep-grid{padding:8px 7px calc(174px + env(safe-area-inset-bottom,0px))!important}
  .prep-card{margin-bottom:14px!important;padding:8px!important;border-radius:20px!important}
  .prep-thumb{height:clamp(220px,70vw,330px)!important;min-height:220px!important;max-height:330px!important;border-radius:14px!important}
  .prep-card-tools{min-height:68px!important;gap:16px!important;padding:7px 4px 9px!important}
  .prep-card-tool,.prep-card .prep-card-tools .prep-edit-mini{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;border-radius:14px!important;font-size:1.18rem!important}
}
@media(max-width:390px){
  .prep-thumb{height:clamp(210px,72vw,300px)!important;min-height:210px!important;max-height:300px!important}
  .prep-card-tools{gap:13px!important}
  .prep-card-tool,.prep-card .prep-card-tools .prep-edit-mini{width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important}
}
@media(orientation:landscape) and (max-height:560px){
  .prep-grid{max-width:900px!important;padding-right:min(48vw,450px)!important;padding-bottom:10px!important}
  .prep-thumb{height:min(54vh,310px)!important;min-height:180px!important;max-height:310px!important}
}


/* === Ver. 1.0.72 – Bildbeschriftungen kompakt + fixierte Vorschau === */
#infoPanel{padding-top:10px!important}
#infoPanel>.sheet-head{position:sticky;top:-10px;z-index:32;margin:-10px -2px 8px;padding:10px 2px 8px;background:linear-gradient(180deg,#171005 0,#090704 100%);box-shadow:0 6px 14px rgba(0,0,0,.34)}
#infoPanel .info-settings-box{padding:9px!important;margin:8px 0!important}
.caption-intro{display:grid;gap:2px;margin-bottom:7px}.caption-intro>b{font-size:.9rem;color:#ffe09a}.caption-intro small{font-size:.68rem;line-height:1.25;color:#bcae87}
.caption-preview-sticky{position:sticky!important;top:58px!important;z-index:30!important;margin:6px 0 9px!important;padding:7px!important;border-color:#9b762d!important;background:linear-gradient(180deg,#120d05,#070503)!important;box-shadow:0 8px 18px rgba(0,0,0,.48)!important}
.caption-preview-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}.caption-preview-head>b{font-size:.78rem;color:#ffe09a}.caption-preview-head small{font-size:.6rem;color:#bcae87}
#infoPanel .photo-info-preview-pane{aspect-ratio:16/7!important;min-height:112px!important;max-height:168px!important;margin-top:0!important;border-radius:10px!important}
.caption-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin:9px 1px 6px}.caption-section-title b{font-size:.8rem;color:#ffe09a}.caption-section-title small{font-size:.6rem;color:#a99d7d;text-align:right}
#infoPanel .caption-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-top:0!important}
#infoPanel .caption-layout-item{padding:6px!important;border-radius:10px!important;background:#090703!important;border-color:#5d471f!important}
.caption-main-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(118px,.9fr);gap:6px;align-items:end}
#infoPanel .caption-switch{min-height:40px;margin:0!important;padding:6px 8px!important;border-radius:8px!important;background:#120d05!important;font-size:.74rem!important}
#infoPanel .caption-switch span{font-weight:800;line-height:1.15}
.caption-position{margin:0!important;font-size:.61rem!important;color:#bcae87!important}.caption-position select{min-height:40px!important;padding:.42rem .48rem!important;font-size:.72rem!important}
.caption-fine{margin-top:4px;border-top:1px solid rgba(157,119,43,.22);padding-top:3px}.caption-fine summary{cursor:pointer;list-style:none;font-size:.61rem;color:#d1b66f;padding:3px 1px}.caption-fine summary::-webkit-details-marker{display:none}.caption-fine[open] summary{margin-bottom:4px;color:#ffe09a}
.caption-fine-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px}.caption-fine-grid label{margin:0!important;font-size:.58rem!important;color:#a99d7d!important}.caption-fine-grid select,.caption-fine-grid input{min-height:34px!important;padding:.3rem .4rem!important;font-size:.7rem!important}
.caption-settings-group{margin-top:7px;border:1px solid #5d471f;border-radius:11px;background:#090703;overflow:hidden}.caption-settings-group>summary{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 10px;cursor:pointer;list-style:none;background:#120d05}.caption-settings-group>summary::-webkit-details-marker{display:none}.caption-settings-group>summary b{font-size:.78rem;color:#ffe09a}.caption-settings-group>summary span{font-size:.6rem;color:#bcae87}.caption-settings-group[open]>summary{border-bottom:1px solid rgba(157,119,43,.28)}
#infoPanel .caption-settings-group .stamp-text-style,#infoPanel .caption-settings-group .photo-band-settings,#infoPanel .caption-settings-group .photo-info-presets{margin:0!important;padding:8px!important;border:0!important}
#infoPanel .stamp-text-style>b,#infoPanel .photo-band-settings>b,#infoPanel .photo-info-presets>b{display:none!important}
#infoPanel .stamp-text-style-grid{grid-template-columns:1fr 1fr 76px!important;gap:7px!important}.stamp-text-style-grid label{font-size:.65rem!important}.stamp-text-style-grid input[type=color]{height:36px!important}
#infoPanel .photo-band-grid{gap:6px!important;margin-top:6px!important}.photo-band-card{padding:7px!important;border-radius:9px!important;gap:6px!important}.photo-band-card>.switch-row{padding:6px!important;font-size:.7rem!important}.photo-band-card>label,.photo-band-options label{font-size:.62rem!important}.photo-band-options{gap:5px!important}.photo-band-options input[type=color]{height:34px!important}
.compact-hint{margin:4px 0 1px!important;font-size:.61rem!important;line-height:1.25!important}
#infoPanel .photo-info-preset-grid{gap:5px!important;margin-top:6px!important}.photo-info-preset-grid select,.photo-info-preset-grid input,.photo-info-preset-grid button{min-height:38px!important;font-size:.68rem!important;padding:.4rem .5rem!important}
#infoPanel .caption-company-box{display:grid;gap:6px}.caption-company-box>b{margin-bottom:1px!important}.caption-company-box label{margin:0!important;font-size:.68rem!important}.caption-company-box textarea{min-height:62px!important}.caption-company-box .logo-actions{margin:4px 0!important;gap:6px!important}.caption-company-box .logo-actions button{min-height:38px!important;font-size:.68rem!important}

@media(max-width:620px){
  .caption-preview-sticky{top:56px!important}
  #infoPanel .photo-info-preview-pane{aspect-ratio:2.05/1!important;min-height:104px!important;max-height:142px!important}
  #infoPanel .caption-layout-grid{grid-template-columns:1fr!important}
  .caption-main-row{grid-template-columns:minmax(0,1fr) minmax(126px,.92fr)!important}
  #infoPanel .stamp-text-style-grid{grid-template-columns:1fr 1fr 64px!important}
  .caption-section-title small{display:none}
}
@media(max-width:390px){
  #infoPanel{padding-left:9px!important;padding-right:9px!important}
  .caption-preview-sticky{top:54px!important}
  #infoPanel .photo-info-preview-pane{min-height:96px!important}
  .caption-main-row{grid-template-columns:minmax(0,1fr) minmax(116px,.9fr)!important}
  .caption-fine-grid{gap:4px}
}
/* 1.0.72 final: preview is a direct child of the scrolling panel, so sticky stays visible through company/logo settings too. */
#infoPanel>.caption-preview-sticky{margin:0 0 8px!important}


/* Ver. 1.0.77 – Aufnahmen-Kopfzeile sauber auf die 3 Buttons zentrieren */
.prep-head{
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
}
.prep-head>.prep-back{
  justify-self:start;
}
.prep-head>div{
  justify-self:center;
  text-align:center;
  align-items:center;
}
.prep-head-actions{
  justify-self:end;
}
.prep-head.compact>div small{
  max-width:none;
}
@media(max-width:560px){
  .prep-head{
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
    gap:8px;
  }
  .prep-head>div{
    width:100%;
  }
  .prep-head.compact>div small{
    max-width:none;
  }
}


/* Ver. 1.0.78 – Kamera Automatisch / Manuell */
.camera-mode-switch{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:2px}
.camera-mode-btn{min-height:58px;display:grid;place-items:center;gap:2px;padding:8px 10px;border-radius:14px;border:1px solid #80611f;background:linear-gradient(180deg,#1b1306,#090603);color:#ffe19a}
.camera-mode-btn b{font-size:.78rem}.camera-mode-btn small{font-size:.58rem;color:#c9b889}
.camera-mode-btn.active{border-color:#55caff;box-shadow:0 0 0 2px rgba(56,181,242,.28) inset;background:linear-gradient(180deg,#13263a,#07111c)}


/* Ver. 1.0.79 – sichere Querformat-Hilfe */
.orientation-assist{
  position:fixed;
  z-index:48;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(88vw,460px);
  display:grid;
  justify-items:center;
  gap:10px;
  padding:18px;
  border:1px solid rgba(222,170,66,.78);
  border-radius:24px;
  background:rgba(5,4,3,.88);
  box-shadow:0 18px 70px rgba(0,0,0,.7),0 0 28px rgba(217,158,44,.18);
  backdrop-filter:blur(9px);
  text-align:center;
}
.orientation-assist button{
  width:100%;
  min-height:82px;
  border-radius:22px;
  border:2px solid #c99536;
  background:linear-gradient(180deg,#3a2708,#120b02);
  color:#ffe39a;
  font-size:clamp(1.15rem,5vw,1.65rem);
  font-weight:900;
  box-shadow:inset 0 0 0 1px rgba(255,230,160,.18),0 0 22px rgba(210,153,45,.2);
}
.orientation-assist small{
  color:#e8d8ad;
  font-size:.86rem;
  line-height:1.35;
}
@media(orientation:landscape){
  .orientation-assist{width:min(64vw,520px)}
  .orientation-assist button{min-height:68px}
}


/* Ver. 1.0.80 – Bildbeschriftungen aufgeräumt + QR Ein/Aus */
#infoPanel .qr-caption-item{
  border-color:#8e6b27!important;
  background:linear-gradient(180deg,#151005,#090603)!important;
}
.caption-fixed-note{
  min-height:40px;
  display:grid;
  align-content:center;
  gap:1px;
  padding:5px 8px;
  border:1px solid rgba(158,119,42,.42);
  border-radius:8px;
  background:#0d0904;
  text-align:center;
}
.caption-fixed-note b{font-size:.64rem;color:#ffe09a}
.caption-fixed-note small{font-size:.56rem;color:#bcae87;line-height:1.15}
.caption-company-compact{padding:0!important;background:transparent!important;border:0!important}
.caption-company-compact .caption-company-details{margin:0!important}
.caption-company-content{display:grid;gap:7px;padding:9px}
.caption-company-content label{margin:0!important;font-size:.68rem!important}
.caption-company-content textarea{min-height:62px!important}
.caption-company-content .logo-actions{margin:2px 0!important;gap:6px!important}
.caption-company-content .logo-actions button{min-height:40px!important;font-size:.7rem!important}
.photo-info-qr{
  position:absolute;
  z-index:9;
  top:max(6px,var(--preview-top,0px));
  right:max(6px,var(--preview-right,0px));
  width:clamp(44px,12vw,82px);
  width:calc(clamp(44px,12vw,82px) * var(--qr-size-scale,2));
  height:auto;
  aspect-ratio:1;
  object-fit:contain;
  background:#fff;
  border:2px solid #fff;
  border-radius:3px;
  box-shadow:0 2px 8px rgba(0,0,0,.45);
}
@media(max-width:620px){
  .photo-info-qr{width:calc(clamp(40px,11vw,62px) * var(--qr-size-scale,2))}
}


/* Ver. 1.0.81 – QR-Inhalt Auswahl */
#infoPanel .qr-caption-item .qr-content-select{min-width:0}
#infoPanel .qr-caption-item .qr-content-select select{width:100%;min-width:0}
#infoPanel .qr-content-hint{display:block;margin-top:5px;color:#bcae87;font-size:.58rem;line-height:1.25}
@media(max-width:460px){#infoPanel .qr-main-row{grid-template-columns:minmax(0,.82fr) minmax(150px,1.18fr)!important}}


/* Ver. 1.0.83 – QR nicht auf der ersten Kamera-Seite anzeigen.
   In der Bildbeschriftungs-Vorschau bleibt er sichtbar; auf gespeicherten Fotos/Druck wird er weiterhin erzeugt. */
#photoInfoHud > .photo-info-qr{display:none!important}
#photoInfoPreviewClone .photo-info-qr{display:block!important}

/* Ver. 1.0.84 – Drucklayout erweitert */
.print-controls-extended{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.print-meta-info,.print-note{margin-top:8px;font-size:.8rem;line-height:1.35;color:#d8e8f7;opacity:.96}
.print-note{opacity:.82}
.print-preview-stage{display:flex;flex-direction:column;gap:14px;width:100%;height:100%;overflow:auto;padding:2px;box-sizing:border-box}
.print-preview-sheet{background:#fff;color:#111;box-shadow:0 4px 16px rgba(0,0,0,.18);width:100%;height:100%;box-sizing:border-box;display:grid}
.print-preview-sheet.gray img{filter:grayscale(1)}
.print-preview-page-label{font:600 11px/1.2 system-ui;color:#415267;text-align:right;padding:0 2px 4px}
.print-sheet-inner{display:grid;width:100%;height:100%;gap:8px;box-sizing:border-box}
.print-sheet-cell{min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid rgba(20,30,40,.14);background:#fff}
.print-sheet-cell.passport .print-sheet-cell-inner{aspect-ratio:var(--passport-ratio,35/45);width:100%;height:auto;max-height:100%;display:flex;align-items:center;justify-content:center}
.print-sheet-cell:not(.passport) .print-sheet-cell-inner{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.print-sheet-cell img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.print-sheet-empty{border:1px dashed rgba(60,80,100,.2);background:rgba(210,220,230,.18)}
.print-paper{overflow:auto;align-items:flex-start;justify-content:center}
.print-paper .print-preview-stage .print-paper-spacer{flex:1}
@media(max-width:620px){.print-controls-extended{grid-template-columns:1fr}.print-preview-stage{gap:10px}}

/* ===== Ver. 1.0.85 – sauberes Druckfenster ===== */
.print-v1085{width:min(96vw,820px)!important;max-height:96dvh!important;padding:12px!important;overflow:auto!important}
.print-v1085 .print-preview-head{position:sticky;top:-12px;z-index:8;margin:-12px -12px 10px;padding:12px;background:linear-gradient(180deg,#181106,#0b0804);border-bottom:1px solid #6f521e}
.print-settings-stack{display:grid;gap:10px}
.print-option-card{border:1px solid #5f4920;border-radius:13px;padding:10px;background:linear-gradient(180deg,#130e07,#090704)}
.print-option-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:8px;color:#f4d17b}
.print-option-title b{font-size:.96rem}.print-option-title small{font-size:.72rem;color:#c7b98e}
.print-v1085 .print-controls-extended{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.print-v1085 .print-controls label{display:grid;gap:5px;min-width:0;font-size:.78rem;color:#d8d3c4}
.print-v1085 .print-controls select,.print-v1085 .print-controls input{width:100%;min-height:42px;border-radius:10px;border:1px solid #604c25;background:#080a0d;color:#f4f6f8;padding:8px 10px;font:inherit}
.print-v1085 .print-controls select:disabled{opacity:.78;color:#cfc7b3}
.print-meta-info{margin:10px 0 6px!important;padding:8px 10px;border-radius:10px;border:1px solid #31465b;background:#09131d;color:#d9ecff!important;font-size:.78rem!important;line-height:1.35}
.print-warning{margin:6px 0 8px;padding:8px 10px;border-radius:10px;border:1px solid #8c6b1f;background:#211806;color:#ffe6a2;font-size:.78rem;line-height:1.35}
.print-v1085 .print-paper,.print-v1085 .print-paper.portrait,.print-v1085 .print-paper.landscape{display:block!important;width:100%!important;height:auto!important;aspect-ratio:auto!important;margin:8px 0!important;padding:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
.print-v1085 .print-preview-stage{display:grid!important;gap:14px!important;width:100%!important;height:auto!important;overflow:visible!important;padding:0!important}
.print-preview-page{position:relative;width:min(100%,520px);aspect-ratio:210/297;margin:0 auto;background:#fff;box-shadow:0 7px 24px rgba(0,0,0,.44);overflow:hidden}
.print-preview-page.landscape{width:min(100%,690px);aspect-ratio:297/210}
.print-preview-page-no{position:absolute;z-index:4;right:5px;top:5px;padding:3px 6px;border-radius:7px;background:rgba(0,0,0,.62);color:#fff;font:700 10px/1.2 system-ui;pointer-events:none}
.print-preview-printable{position:absolute;overflow:hidden;background:#fff}
.print-preview-printable.grid-size{display:grid;gap:1.5%}
.print-preview-printable.exact-size{display:flex;flex-wrap:wrap;align-content:center;justify-content:center}
.print-preview-cell{min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fff;box-shadow:inset 0 0 0 1px rgba(35,55,75,.14)}
.print-preview-cell.empty{background:repeating-linear-gradient(135deg,#fff,#fff 7px,#f4f6f8 7px,#f4f6f8 14px)}
.print-preview-cell img{display:block!important;max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important}
.print-preview-printable.gray img{filter:grayscale(1)}
.print-v1085 .print-note{margin:8px 0!important;padding:8px 10px;border-radius:10px;background:#0c0f12;color:#bfc7ce!important;font-size:.72rem!important;line-height:1.4}
.print-v1085 .print-actions{position:sticky;bottom:-12px;z-index:8;margin:10px -12px -12px!important;padding:10px 12px 12px;background:linear-gradient(0deg,#0a0703 75%,rgba(10,7,3,.88));border-top:1px solid #5b431b}
.print-v1085 .print-actions button{min-height:46px}
@media(max-width:620px){
  .print-v1085{width:100vw!important;max-width:none!important;max-height:100dvh!important;border-radius:0!important;padding:10px!important}
  .print-v1085 .print-preview-head{top:-10px;margin:-10px -10px 8px;padding:10px}
  .print-v1085 .print-controls-extended{grid-template-columns:1fr!important}
  .print-option-card{padding:9px}.print-option-title{margin-bottom:6px}
  .print-preview-page{width:min(100%,440px)}.print-preview-page.landscape{width:100%}
  .print-v1085 .print-actions{bottom:-10px;margin:8px -10px -10px!important;padding:9px 10px 10px}
}

/* ===== Ver. 1.0.86 – Druckfenster responsive repariert ===== */
.print-v1085 [hidden]{display:none!important}
.print-v1085 .print-preview-box img[hidden],
.print-v1085 #printPreviewImage[hidden]{display:none!important;visibility:hidden!important;width:0!important;height:0!important;max-width:0!important;max-height:0!important}
.print-v1085 .print-paper{min-width:0}
.print-v1085 .print-preview-stage{min-width:0}
.print-v1085 .print-meta-info,.print-v1085 .print-warning,.print-v1085 .print-note{overflow-wrap:anywhere;word-break:break-word}
.print-v1085 .print-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center}
.print-v1085 .print-actions button{width:100%}
.print-v1085 .print-preview-page{max-width:100%}
.print-v1085 .print-preview-page.landscape{max-width:100%}
@media(max-width:760px){
  .print-v1085{padding:10px!important}
  .print-v1085 .print-preview-head{position:sticky;top:0;margin:0 0 8px;padding:10px;border-radius:10px 10px 0 0}
  .print-v1085 .print-actions{position:static!important;margin:10px 0 0!important;padding:0!important;background:none!important;border-top:0!important;grid-template-columns:1fr}
  .print-v1085 .print-preview-page{width:100%!important}
}
@media(max-width:480px){
  .print-v1085{width:100vw!important;max-height:100dvh!important;border-radius:0!important;padding:8px!important}
  .print-v1085 .print-preview-head{padding:8px;margin:0 0 8px;top:0}
  .print-v1085 .print-controls label{font-size:.76rem}
  .print-v1085 .print-controls select,.print-v1085 .print-controls input{min-height:40px;padding:7px 9px}
  .print-meta-info{font-size:.74rem!important}
  .print-v1085 .print-note{font-size:.70rem!important}
  .print-preview-page{box-shadow:0 5px 18px rgba(0,0,0,.34)}
}
@media(max-height:760px){
  .print-v1085 .print-preview-head{position:static!important;border-radius:10px}
  .print-v1085 .print-actions{position:static!important}
}

/* ===== Ver. 1.0.87 – Sprachauswahl DE / BS / EN ===== */
.language-settings-box{display:grid;gap:8px;border:1px solid #6b5121;border-radius:14px;padding:11px;background:linear-gradient(180deg,#130e06,#090604)}
.language-settings-box>b{color:#f2cf77;font-size:.96rem}
.language-settings-box label{display:grid;gap:5px;color:#ddd3bd;font-size:.82rem}
.language-settings-box select{width:100%;min-height:44px;border-radius:10px;border:1px solid #715528;background:#080a0d;color:#fff;padding:8px 10px;font:inherit}
.language-settings-box small{color:#c9c1ae;line-height:1.35}


/* Ver. 1.0.89 – QR-Größe einstellbar; Standard 2 × 2 cm */
#infoPanel .qr-main-row{grid-template-columns:minmax(0,.72fr) minmax(125px,1.05fr) minmax(120px,.9fr)}
#infoPanel .qr-size-select{min-width:0}
#infoPanel .qr-size-select select{width:100%;min-width:0}
@media(max-width:560px){#infoPanel .qr-main-row{grid-template-columns:1fr 1fr!important}.qr-main-row .caption-switch{grid-column:1/-1}.qr-main-row .qr-content-select,.qr-main-row .qr-size-select{min-width:0}}

/* Ver. 1.0.93 – Erstauswahl der Installationssprache */
.install-language-step{grid-column:1/-1;display:grid;gap:10px;padding:12px;border:1px solid rgba(226,184,91,.52);border-radius:16px;background:linear-gradient(180deg,rgba(66,43,10,.72),rgba(12,8,3,.92));text-align:center}.install-language-step>b{font-size:1.02rem;color:#ffe9b3}.install-language-step>small{color:#d6c28e;line-height:1.35}.install-language-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.install-language-btn{min-height:92px;padding:8px 5px;display:grid;place-items:center;align-content:center;gap:4px;background:linear-gradient(180deg,#251b0d,#090603);border:1px solid #8d6a2d;border-radius:14px}.install-language-btn:active,.install-language-btn.selected{border-color:#ffe3a0;background:linear-gradient(180deg,#6e4b10,#1b1004);box-shadow:0 0 0 2px rgba(255,220,126,.18),0 0 22px rgba(255,190,48,.22)}.install-language-flag{font-size:2.45rem;line-height:1}.install-language-btn strong{font-size:.82rem;color:#fff1c7}.install-language-note{font-size:.72rem}.install-prompt-card.install-language-pending #installPromptBtn{display:none!important}@media(max-width:380px){.install-language-grid{gap:5px}.install-language-btn{min-height:82px}.install-language-flag{font-size:2.15rem}.install-language-btn strong{font-size:.73rem}}


/* Ver. 1.0.94 – integrierte Entwickler-Info/Kaffee-Seite */
#developerCoffeeBtn{font-weight:800}

/* Ver. 1.0.95 – Element-Ebenen und Bildoptionen */
.element-settings-box{width:min(520px,96vw)!important;max-height:min(88vh,720px);overflow:auto}
.element-settings-hint{margin:8px 2px 12px;color:#d9c59a;font-size:.82rem;line-height:1.35}
.element-layer-primary,.element-layer-secondary,.element-background-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}
.element-layer-primary button{min-height:58px;font-weight:900;font-size:.95rem}
.element-layer-secondary button,.element-background-actions button{min-height:44px;font-weight:800}
.element-image-options{margin-top:12px;padding:12px;border:1px solid #6f521e;border-radius:14px;background:rgba(255,214,124,.045)}
.element-image-options>b{display:block;margin-bottom:8px;color:#ffe4a3}
.element-image-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.element-image-grid label{display:flex;flex-direction:column;gap:5px;font-weight:750}
.element-image-grid select,.element-image-grid input{width:100%}
.element-image-options small{display:block;margin-top:8px;color:#c7b88f;line-height:1.3}
@media(max-width:520px){.element-layer-primary,.element-layer-secondary,.element-background-actions,.element-image-grid{grid-template-columns:1fr}.element-layer-primary button{min-height:52px}}

/* Ver. 1.0.96 – Standort-Editor für importierte Bilder */
.location-editor-modal{position:fixed;inset:0;z-index:14000;background:rgba(0,0,0,.78);display:flex;align-items:center;justify-content:center;padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom));backdrop-filter:blur(8px)}
.location-editor-modal.hidden{display:none!important}.location-editor-box{width:min(980px,100%);height:min(94dvh,980px);display:flex;flex-direction:column;background:#0b0b0d;border:1px solid rgba(212,175,55,.55);border-radius:20px;overflow:hidden;box-shadow:0 22px 80px rgba(0,0,0,.58)}
.location-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid rgba(212,175,55,.2);background:linear-gradient(180deg,#17130b,#0d0d0f)}.location-editor-head>div{display:flex;flex-direction:column;gap:3px}.location-editor-head b{font-size:1.05rem}.location-editor-head small{color:#b7b7bb}.location-editor-head button{width:42px;height:42px;border-radius:12px}
.location-editor-status{margin:10px 12px 0;padding:10px 12px;border-radius:12px;background:#15171a;border:1px solid #2a2d32;color:#e7e7e8;font-size:.9rem}.location-editor-status.error{border-color:#7f1d1d;background:#2b1111;color:#ffd2d2}.location-editor-scroll{flex:1;min-height:0;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:12px}
.location-preview-wrap{position:relative;min-height:150px;max-height:240px;background:#050506;border:1px solid #26282c;border-radius:14px;overflow:hidden;display:flex;align-items:center;justify-content:center}.location-preview-wrap.hidden{display:none}.location-preview-wrap img{display:block;max-width:100%;max-height:240px;object-fit:contain}.location-gps-chip{position:absolute;left:10px;bottom:10px;padding:7px 10px;border-radius:999px;background:rgba(92,23,23,.92);border:1px solid rgba(255,130,130,.55);font-size:.78rem;font-weight:700}.location-gps-chip.ok{background:rgba(19,78,48,.94);border-color:rgba(115,255,180,.45)}
.location-meta-grid,.location-coord-grid,.location-address-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.location-meta-grid label,.location-coord-grid label,.location-address-grid label{display:flex;flex-direction:column;gap:6px;font-size:.82rem;color:#c8c8cb}.location-editor-box input{min-height:42px;border-radius:10px;border:1px solid #34363b;background:#111216;color:#fff;padding:9px 10px}
.location-section{border:1px solid #2a2c31;background:#101115;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:10px}.location-section>b,.location-section-head>b{color:#f0d477}.location-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.location-section small{color:#9fa1a7}.location-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.location-search-results{display:flex;flex-direction:column;gap:6px}.location-search-result{text-align:left;white-space:normal;line-height:1.25;padding:10px;border-radius:10px;background:#181a1f;border:1px solid #353840;color:#f1f1f2}
.location-map{position:relative;height:min(43vh,390px);min-height:280px;overflow:hidden;border-radius:14px;background:#1a1b1d;touch-action:none;user-select:none;border:1px solid #3a3c40}.location-map.dragging{cursor:grabbing}.location-map-tiles{position:absolute;inset:0;will-change:transform}.location-map-tiles img{position:absolute;width:256px;height:256px;max-width:none;user-select:none;pointer-events:none}.location-map-cross{position:absolute;left:50%;top:50%;width:46px;height:46px;transform:translate(-50%,-50%);pointer-events:none;filter:drop-shadow(0 1px 2px #000)}.location-map-cross span{position:absolute;background:#ff3b30;border-radius:2px}.location-map-cross span:first-child{left:22px;top:4px;width:3px;height:38px}.location-map-cross span:nth-child(2){left:4px;top:22px;width:38px;height:3px}.location-map-cross i{position:absolute;left:18px;top:18px;width:10px;height:10px;border:2px solid #fff;border-radius:50%;background:#ff3b30}.location-map-attribution{position:absolute;right:5px;bottom:4px;padding:2px 5px;background:rgba(255,255,255,.82);color:#111;font-size:10px;border-radius:3px}.location-map-actions{display:flex;align-items:center;gap:6px}.location-map-actions button{width:38px;height:36px;padding:0}.location-map-actions span{min-width:28px;text-align:center;font-weight:700}.location-map-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.location-address-preview{display:flex;flex-direction:column;gap:4px;border-radius:10px;background:#181a1f;padding:10px}.location-address-preview span{color:#e4e4e7;line-height:1.35}.location-qr-section{display:grid;grid-template-columns:minmax(0,1fr) 120px;align-items:center}.location-qr-section>div{display:flex;flex-direction:column;gap:6px}.location-qr-section canvas{width:110px;height:110px;justify-self:end;border-radius:8px;background:#fff;padding:4px}.location-editor-actions{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;padding:12px;border-top:1px solid rgba(212,175,55,.2);background:#0b0c0f}.location-editor-actions button{min-height:46px}.location-editor-actions .primary:disabled{opacity:.45;filter:grayscale(.4)}
@media(max-width:640px){.location-editor-modal{padding:0}.location-editor-box{height:100dvh;border-radius:0;border-left:0;border-right:0}.location-meta-grid,.location-coord-grid,.location-address-grid{grid-template-columns:1fr 1fr}.location-map{height:38vh;min-height:260px}.location-map-buttons{grid-template-columns:1fr}.location-qr-section{grid-template-columns:1fr 96px}.location-qr-section canvas{width:88px;height:88px}.location-editor-actions{grid-template-columns:1fr}.location-editor-actions button:first-child{order:2}.location-search-row{grid-template-columns:1fr auto}}
@media(max-width:420px){.location-meta-grid,.location-coord-grid,.location-address-grid{grid-template-columns:1fr}.location-search-row{grid-template-columns:1fr}.location-search-row button{width:100%}}


/* Ver. 1.0.99 – kompakter Offline-Hinweis statt großer Statusleiste */
.top-actions .connection-indicator{position:relative;align-self:center;width:34px!important;min-width:34px!important;height:34px!important;border-radius:50%!important;padding:0!important;font-size:.82rem!important;line-height:1!important;background:rgba(32,10,8,.88)!important;border:1px solid #a84b3f!important;color:#ffd2cb!important;box-shadow:0 0 10px rgba(210,66,47,.18)!important;backdrop-filter:blur(7px);overflow:visible}
.top-actions .connection-indicator.offline::after{content:"×";position:absolute;right:-3px;bottom:-3px;display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#c83d2d;color:#fff;font-size:11px;font-weight:900;line-height:1;border:2px solid #100a06;box-shadow:0 1px 5px rgba(0,0,0,.6)}
.top-actions .connection-indicator:active{transform:scale(.94)}
.connection-popover{position:fixed;z-index:10020;top:calc(66px + env(safe-area-inset-top,0px));right:12px;max-width:min(78vw,320px);padding:9px 11px;border-radius:12px;background:rgba(28,15,8,.96);border:1px solid #8f6630;color:#ffe8bb;font-size:.74rem;font-weight:750;line-height:1.3;box-shadow:0 10px 28px rgba(0,0,0,.45);pointer-events:none}
@media(max-width:560px){.top-actions .connection-indicator{width:30px!important;min-width:30px!important;height:30px!important;font-size:.72rem!important}.connection-popover{top:calc(58px + env(safe-area-inset-top,0px));right:8px}}
