/* Freie Zeichnung im Stil einer Notiz-App (24.10.2026, Farbsystem Nebel).
   Eine schmale, schwebende Werkzeugleiste nur mit Symbolen; Farben und Stärken
   direkt sichtbar. Die Seiten liegen untereinander auf einer ruhigen grauen Fläche.
   Wird nach styles.css geladen und überschreibt die älteren Notizbuch-Regeln. */

.notebook17.notebook-gn{background:#eaedf0}

/* Kopfzeile */
.notebook17.notebook-gn .note-document-head{background:#fff;border-bottom:1px solid #e3e6ea;min-height:56px}
.notebook17.notebook-gn .note-name input{font-weight:600}
.notebook-gn .note-save-state{font-size:12px;line-height:16px;color:#5b6672;white-space:nowrap}
.notebook-gn .note-save-state:empty{display:none}

/* Werkzeugleiste: eine Zeile, mittig, als schwebende Karte */
.notebook17.notebook-gn .notebook-toolbar.note-gn-toolbar{position:relative;display:flex;justify-content:center;align-items:center;min-height:0;padding:8px 12px 0;background:transparent;border:0;box-shadow:none;z-index:7;overflow:visible}
.notebook-gn .note-gn-bar{display:flex;align-items:center;gap:4px;max-width:100%;padding:4px 6px;background:#fff;border:1px solid #e3e6ea;border-radius:16px;box-shadow:0 4px 12px rgb(31 41 51 / .08);overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}
.notebook-gn .note-gn-bar::-webkit-scrollbar{display:none}
.notebook17.notebook-gn .note-tools{display:flex;align-items:center;gap:2px;flex:none!important;width:auto!important;flex-basis:auto!important;flex-wrap:nowrap!important;justify-content:flex-start!important}
.notebook17.notebook-gn .note-tool-button{flex:none;flex-direction:row;width:44px;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:10px;color:#46515c;background:transparent;box-shadow:none}
.notebook17.notebook-gn .note-tool-button>small,.notebook17.notebook-gn .note-tool-button .note-tool-caret{display:none!important}
.notebook17.notebook-gn .note-tool-button .icon{width:22px;height:22px;stroke-width:1.7}
.notebook17.notebook-gn .note-tool-button:hover{background:#f2f4f6;color:#1f2933}
.notebook17.notebook-gn .note-tool-button.active{background:#e8edf3;color:#344b64;box-shadow:none}
.notebook17.notebook-gn .note-toolbar-divider{flex:none;width:1px;height:26px;margin:0 4px;background:#e3e6ea}
.notebook17.notebook-gn .note-toolbar-divider[hidden]{display:none}

/* Farben: vier feste Farben und ein Ring für weitere */
.notebook17.notebook-gn .note-quick-colors{display:flex!important;align-items:center;gap:2px;margin:0}
.notebook17.notebook-gn .note-quick-colors .color-swatch,.notebook-gn .note-more-colors{flex:none;width:36px!important;height:36px!important;min-width:36px;min-height:36px;padding:0;border:0;border-radius:50%;background:transparent;display:grid;place-items:center;outline:0;box-shadow:none}
.notebook17.notebook-gn .note-quick-colors .color-swatch::before,.notebook-gn .note-more-colors::before{content:"";position:static;inset:auto;border:0;outline:0;width:24px;height:24px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px rgb(31 41 51 / .12)}
.notebook17.notebook-gn .note-quick-colors .color-swatch.active::before,.notebook-gn .note-more-colors.active::before{box-shadow:0 0 0 2px #fff,0 0 0 4px #47627f}
.notebook-gn .note-more-colors::before{background:conic-gradient(#a8423f,#e2b84a,#5e9c93,#47627f,#7e76b3,#a8423f)}
.notebook-gn .note-more-colors.active::before{background:var(--swatch)}

/* Strichstärken als Punkte */
.notebook-gn .note-quick-widths{display:flex;align-items:center;gap:2px}
.notebook-gn .note-quick-widths[hidden]{display:none}
.notebook-gn .note-width-dot{flex:none;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:10px;background:transparent;color:#1f2933}
.notebook-gn .note-width-dot:hover{background:#f2f4f6}
.notebook-gn .note-width-dot.active{background:#e8edf3}
.notebook-gn .note-width-dot i{display:block;flex:none;min-width:0;max-width:none;border-radius:50%}
.notebook-gn .note-width-dot i.ring{background:transparent;border:1.5px solid #5b6672}
.notebook-gn .note-width-dot b{font-weight:500;line-height:1}

/* Menüs unter der Leiste */
.notebook17.notebook-gn .note-tool-options{top:calc(100% + 6px);left:max(8px,calc(50% - 160px))!important;width:320px;border-color:#e3e6ea;border-radius:16px;box-shadow:0 12px 32px rgb(31 41 51 / .12)}
.notebook-gn .note-insert-list{display:flex;flex-direction:column;gap:2px}
.notebook-gn .note-insert-list>:is(button,label){display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 12px;border:0;border-radius:10px;background:transparent;color:#1f2933;font:inherit;font-size:15px;text-align:start;cursor:pointer}
.notebook-gn .note-insert-list>:is(button,label):hover,.notebook-gn .note-insert-list>button.active{background:#e8edf3}
.notebook-gn .note-insert-list>button:disabled{color:#6b7580;cursor:default;background:transparent}
.notebook-gn .note-insert-list .icon{width:18px;height:18px;color:#47627f;flex:none}
.notebook-gn .note-menu-hint{margin:0 0 12px;font-size:13px;line-height:18px;color:#5b6672}

/* Menü-Inhalte: Segmente, Schalter, Favoriten, Farben, Seiten, Sticker */
.notebook-gn .note-tool-options h4{margin:12px 0 6px;font-size:12px;line-height:16px;font-weight:600;color:#5b6672;text-transform:uppercase;letter-spacing:.04em}
.notebook-gn .note-segment{display:flex;gap:2px;margin:0 0 12px;padding:2px;border-radius:10px;background:#f2f4f6}
.notebook-gn .note-segment button{flex:1;min-height:36px;padding:4px 8px;border:0;border-radius:8px;background:transparent;color:#46515c;font:inherit;font-size:13px;cursor:pointer}
.notebook-gn .note-segment button.active{background:#fff;color:#1f2933;font-weight:600;box-shadow:0 1px 3px rgb(31 41 51 / .12)}
.notebook-gn .note-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;margin:0 0 4px;font-size:14px;color:#1f2933;cursor:pointer}
.notebook-gn .note-switch span{order:-1}
.notebook-gn .note-switch input{appearance:none;flex:none;position:relative;width:40px;height:24px;margin:0;border-radius:999px;background:#d3d7dc;cursor:pointer;transition:background .15s}
.notebook-gn .note-switch input::after{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgb(31 41 51 / .25);transition:transform .15s}
.notebook-gn .note-switch input:checked{background:#47627f}
.notebook-gn .note-switch input:checked::after{transform:translateX(16px)}
.notebook-gn .note-switch input:focus-visible{outline:2px solid #47627f;outline-offset:2px}
.notebook-gn .note-range-label{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 8px;margin:8px 0;font-size:14px}
.notebook-gn .note-range-label input{flex-basis:100%;accent-color:#47627f}
.notebook-gn .note-range-label output{font-variant-numeric:tabular-nums;color:#5b6672}
.notebook-gn .note-menu-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.notebook-gn .note-favorite-list{display:flex;flex-direction:column;gap:2px}
.notebook-gn .note-favorite-list>div{display:flex;align-items:center;gap:4px}
.notebook-gn .note-favorite-list>div>button:first-child{flex:1;display:flex;align-items:center;gap:10px;min-height:40px;padding:4px 8px;border:0;border-radius:8px;background:transparent;font:inherit;font-size:14px;color:#1f2933;text-align:start;cursor:pointer}
.notebook-gn .note-favorite-list>div>button:first-child:hover{background:#f2f4f6}
.notebook-gn .note-favorite-list i{width:20px;height:20px;border-radius:50%;box-shadow:inset 0 0 0 1px rgb(31 41 51 / .12)}
.notebook-gn .note-favorites{display:flex;align-items:center;gap:2px}
.notebook-gn .note-favorites[hidden]{display:none}
.notebook-gn .note-favorite{position:relative;flex:none;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:10px;background:transparent;color:#46515c;cursor:pointer}
.notebook-gn .note-favorite .icon{width:18px;height:18px}
.notebook-gn .note-favorite i{position:absolute;left:9px;right:9px;bottom:5px;border-radius:2px}
.notebook-gn .note-favorite:hover{background:#f2f4f6}
.notebook-gn .note-favorite.active{background:#e8edf3}
.notebook-gn .note-palette{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.notebook-gn .note-palette .color-swatch{width:32px!important;height:32px!important;min-width:32px;border:0;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px rgb(31 41 51 / .12);padding:0}
.notebook-gn .note-palette .color-swatch::before{display:none}
.notebook-gn .note-palette .color-swatch.active{box-shadow:0 0 0 2px #fff,0 0 0 4px #47627f}
.notebook-gn .note-palette-item{position:relative;display:inline-flex}
.notebook-gn .note-palette.editing .color-swatch{cursor:w-resize}
.notebook-gn .note-palette.editing .color-swatch:disabled{cursor:default;opacity:1}
.notebook-gn .note-palette-remove{position:absolute;top:-6px;right:-6px;width:20px;height:20px;padding:0;border:0;border-radius:50%;background:#1f2933;color:#fff;font-size:14px;line-height:20px;cursor:pointer}
.notebook-gn .note-color-custom{display:flex;align-items:center;gap:8px}
.notebook-gn .note-custom-color{flex:none;position:relative;width:40px;height:40px;border-radius:50%;overflow:hidden;background:conic-gradient(#a8423f,#e2b84a,#5e9c93,#47627f,#7e76b3,#a8423f);cursor:pointer}
.notebook-gn .note-custom-color input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.notebook-gn #note-hex{flex:1;min-width:0;height:40px;padding:0 10px;border:1px solid #d3d7dc;border-radius:10px;font:inherit;font-family:ui-monospace,monospace;font-size:14px;text-transform:uppercase}
.notebook-gn .note-colors-link{display:inline-flex;margin-top:4px}
.notebook-gn .note-page-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:12px;max-height:46dvh;overflow:auto;padding:2px}
.notebook-gn .note-page-card{display:flex;flex-direction:column;gap:4px}
.notebook-gn .note-page-thumb{position:relative;display:block;padding:0;border:1px solid #e3e6ea;border-radius:8px;background:#fff;overflow:hidden;cursor:pointer}
.notebook-gn .note-page-thumb svg{display:block;width:100%;height:auto;aspect-ratio:1000/700;pointer-events:none}
.notebook-gn .note-page-thumb span{position:absolute;left:6px;bottom:6px;min-width:20px;padding:1px 6px;border-radius:999px;background:rgb(31 41 51 / .78);color:#fff;font-size:12px;line-height:16px}
.notebook-gn .note-page-card.active .note-page-thumb{border-color:#47627f;box-shadow:0 0 0 2px #47627f}
.notebook-gn .note-page-tools{display:flex;justify-content:space-between}
.notebook-gn .note-page-tools .icon-btn{width:30px;height:30px;min-width:30px;min-height:30px;padding:0;font-size:14px}
.notebook-gn .note-page-add{margin-top:12px}
.notebook-gn .note-popover-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.notebook-gn .note-sticker-grid>div{display:flex;flex-direction:column;gap:2px}
.notebook-gn .note-sticker-grid>div.is-hidden>button{opacity:.4}
.notebook-gn .note-sticker-grid.editing>div>button{pointer-events:none}
.notebook-gn .note-sticker-tools{display:flex;justify-content:center;gap:2px}
.notebook-gn .note-sticker-tools .icon-btn{width:28px;height:28px;min-width:28px;min-height:28px;padding:0;font-size:13px}
.notebook-gn .note-paper-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}

/* Laserpointer: rote Spur mit weichem Schein, verblasst nach dem Absetzen */
#note-laser{filter:drop-shadow(0 0 4px rgb(229 72 77 / .8));opacity:1;transition:opacity .15s}
#note-laser.fading{opacity:0;transition:opacity .8s ease-out .1s}
.notebook-gn .note-canvas-wrap[data-tool="laser"]{cursor:crosshair}
[data-note-sel-handle]{cursor:nwse-resize}
[data-note-sel-handle="rotate"]{cursor:grab}
@media (prefers-reduced-motion:reduce){#note-laser,#note-laser.fading{transition:none}}

/* Zeichenfläche: Seiten auf ruhigem Grau, keine Rahmen um die Fläche */
.notebook17.notebook-gn .note-canvas-wrap{padding:0!important;background:#eaedf0;box-shadow:none}
.notebook17.notebook-gn .note-canvas-wrap>#note-canvas{display:block;width:100%;height:100%;border:0!important;border-radius:0!important;box-shadow:none!important;background:#eaedf0}
.notebook-gn .note-page-pill{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);z-index:2;min-height:32px;padding:6px 14px;border:0;border-radius:999px;background:rgb(31 41 51 / .78);color:#fff;font-size:12px;line-height:16px;font-variant-numeric:tabular-nums;backdrop-filter:blur(8px);cursor:pointer}
.notebook-gn .note-page-pill.active,.notebook-gn .note-page-pill:hover{background:#1f2933}

/* Handy: Leiste unten, Seitenanzeige darüber, Menüs öffnen nach oben */
@media (max-width:700px){
 .notebook17.notebook-gn .notebook-toolbar.note-gn-toolbar{order:3;padding:6px 8px calc(6px + env(safe-area-inset-bottom));justify-content:center}
 .notebook-gn .note-gn-bar{flex-wrap:wrap;justify-content:center;gap:2px;padding:4px;overflow:visible}
 .notebook17.notebook-gn .note-tools{flex-basis:100%!important;width:100%!important;justify-content:space-between!important}
 .notebook17.notebook-gn .note-tools+.note-toolbar-divider{display:none}
 .notebook17.notebook-gn .note-tool-button{width:40px;min-width:40px!important}
 .notebook17.notebook-gn .note-quick-colors .color-swatch,.notebook-gn .note-more-colors,.notebook-gn .note-width-dot{width:34px!important;min-width:34px}
 .notebook17.notebook-gn .note-tool-options{position:absolute!important;top:auto!important;bottom:calc(100% + 6px)!important;left:8px!important;right:8px!important;width:auto!important;max-width:none!important;max-height:60dvh}
 .notebook17.notebook-gn .note-canvas-wrap{order:2}
 .notebook-gn .note-page-pill{bottom:12px}
 .notebook17.notebook-gn .note-view-controls{display:none}
}
@media (max-width:520px){
 .notebook17.notebook-gn .note-document-head .note-save-state{display:none}
}
