/* lernoffice.de – gemeinsame Optik der weiteren Werkzeuge (Bereich „Werkzeuge“, Himmelblau-Pastell) */
.owt {
	--owt-acc: #2e6c99; --owt-acc-d: #214f71; --owt-acc-l: #dcecf8; --owt-acc-xl: #f3f8fd; --owt-acc-b: #b3d3ec;
	--owt-ink: #1f2937; --owt-mut: #5b6574; --owt-line: #d9e0e8; --owt-line-l: #e8edf2; --owt-chrome: #f6f8fb; --owt-canvas: #eef2f6;
	--owt-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	position: relative; display: flex; flex-direction: column; height: max(520px, calc(100vh - 16px));
	background: #fff; border: 1px solid var(--owt-line); border-radius: 18px; overflow: hidden;
	font: 14px/1.4 var(--owt-ui); color: var(--owt-ink); box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .25);
}
.owt *, .owt *::before, .owt *::after { box-sizing: border-box; }
.owt.owt-fs { position: fixed; inset: 0; z-index: 99999; height: 100vh; border-radius: 0; border: 0; }
html.owt-noscroll { overflow: hidden; }

/* Kopfleiste */
.owt-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--owt-chrome); border-bottom: 1px solid var(--owt-line); flex-wrap: wrap; }
.owt-title { font-weight: 700; color: var(--owt-acc-d); margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.owt-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.owt-sep { width: 1px; height: 22px; background: var(--owt-line); margin: 0 2px; }

/* Knöpfe & Eingaben */
.owt-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--owt-line); background: #fff; color: var(--owt-ink); font: 600 13px/1 var(--owt-ui); cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.owt-btn:hover { background: var(--owt-acc-xl); border-color: var(--owt-acc-b); }
.owt-btn:focus-visible { outline: 2px solid var(--owt-acc); outline-offset: 2px; }
.owt-btn:disabled { opacity: .45; cursor: default; }
.owt-btn.owt-primary { background: var(--owt-acc); border-color: var(--owt-acc); color: #fff; }
.owt-btn.owt-primary:hover { background: var(--owt-acc-d); }
.owt-btn.owt-danger { background: #b8483a; border-color: #b8483a; color: #fff; }
.owt-btn.owt-on { background: var(--owt-acc-l); border-color: var(--owt-acc-b); color: var(--owt-acc-d); }
.owt-icon-btn { width: 34px; padding: 0; justify-content: center; }
.owt-small { height: 28px; padding: 0 9px; font-size: 12px; border-radius: 8px; }
.owt-input, .owt select, .owt textarea { font: 14px/1.4 var(--owt-ui); color: var(--owt-ink); border: 1px solid var(--owt-line); border-radius: 9px; padding: 7px 10px; background: #fff; }
.owt-input:focus, .owt select:focus, .owt textarea:focus { outline: none; border-color: var(--owt-acc); box-shadow: 0 0 0 3px var(--owt-acc-l); }
.owt label { font-size: 12.5px; color: var(--owt-mut); font-weight: 600; }
.owt-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.owt-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.owt-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.owt-swatch { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--owt-line); cursor: pointer; padding: 0; }
.owt-swatch.on { box-shadow: 0 0 0 2px var(--owt-acc); }

/* Aufbau */
.owt-body { flex: 1 1 auto; display: flex; min-height: 0; }
.owt-side { flex: 0 0 290px; border-right: 1px solid var(--owt-line); background: #fff; overflow: auto; padding: 14px; overscroll-behavior: auto; }
.owt-side h4 { margin: 14px 0 8px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--owt-mut); }
.owt-side h4:first-child { margin-top: 0; }
.owt-main { flex: 1 1 auto; min-width: 0; position: relative; background: var(--owt-canvas); overflow: auto; overscroll-behavior: auto; }
.owt-status { display: flex; gap: 14px; align-items: center; min-height: 30px; padding: 4px 12px; border-top: 1px solid var(--owt-line); background: var(--owt-chrome); color: var(--owt-mut); font-size: 12px; }
.owt-hint { font-size: 12.5px; color: var(--owt-mut); background: var(--owt-acc-xl); border: 1px solid var(--owt-acc-l); border-radius: 10px; padding: 8px 10px; }

/* Menü */
.owt-menu { position: absolute; z-index: 50; min-width: 240px; background: #fff; border: 1px solid var(--owt-line); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(15, 23, 42, .3); padding: 6px; }
.owt-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; font: 500 13.5px/1.2 var(--owt-ui); color: var(--owt-ink); cursor: pointer; text-align: left; }
.owt-menu-item small { margin-left: auto; color: var(--owt-mut); font-size: 11.5px; }
.owt-menu-item:hover, .owt-menu-item:focus-visible { background: var(--owt-acc-xl); outline: none; }
.owt-menu-sep { height: 1px; background: var(--owt-line-l); margin: 5px 4px; }

/* Dialog & Hinweis */
.owt-modal-bg { position: fixed; inset: 0; z-index: 100000; background: rgba(15, 23, 42, .38); display: grid; place-items: center; padding: 16px; }
.owt-modal { width: min(460px, 100%); background: #fff; border-radius: 16px; padding: 20px 22px; box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .45); font: 14px/1.5 ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif; color: #1f2937; }
.owt-modal h3 { margin: 0 0 8px; font-size: 17px; }
.owt-modal-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.owt-modal .owt-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid #d9e0e8; background: #fff; font: 600 13px/1 inherit; cursor: pointer; }
.owt-modal .owt-primary { background: #2e6c99; border-color: #2e6c99; color: #fff; }
.owt-modal .owt-danger { background: #b8483a; border-color: #b8483a; color: #fff; }
.owt-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 100001; background: #1f2937; color: #fff; padding: 10px 16px; border-radius: 12px; font: 500 13.5px/1.4 ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.owt-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Druck */
.owt-print { display: none; }
@media print {
	html.owt-printing body > *:not(.owt-print) { display: none !important; }
	html.owt-printing .owt-print { display: block !important; }
	.owt-print { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Schmal (Handy) */
@media (max-width: 860px) {
	.owt { height: auto; min-height: max(520px, calc(100vh - 16px)); }
	.owt-body { flex-direction: column; }
	.owt-side { flex: none; border-right: 0; border-bottom: 1px solid var(--owt-line); max-height: none; }
	.owt-main { min-height: 60vh; }
	.owt-title { max-width: 100%; }
	.owt-btn span { display: none; }
	.owt-btn.owt-primary span, .owt-modal .owt-btn span { display: inline; }
}
