/* Office-Werkzeuge – Word im Browser: Oberfläche (Präfix owd-) */
.owd {
	--owd-acc: #1d4ed8;
	--owd-acc-d: #1e3a8a;
	--owd-acc-m: #2563eb;
	--owd-acc-l: #dbeafe;
	--owd-acc-xl: #eff6ff;
	--owd-ink: #1f2937;
	--owd-mut: #5b6574;
	--owd-line: #d6dbe3;
	--owd-line-l: #e6e9ee;
	--owd-chrome: #f4f6fa;
	--owd-canvas: #e9edf3;
	--owd-ui: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: max(520px, 78vh);
	background: #fff;
	color: var(--owd-ink);
	border: 1px solid var(--owd-line);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -18px rgba(15, 23, 42, .25);
	font: 13px/1.35 var(--owd-ui);
	text-align: left;
	isolation: isolate;
	-webkit-text-size-adjust: 100%;
	overflow: hidden;
}
.owd *, .owd *::before, .owd *::after { box-sizing: border-box; }
.owd :where(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.owd :where(button) { cursor: pointer; margin: 0; }
.owd svg.owd-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.owd :focus-visible { outline: 2px solid var(--owd-acc); outline-offset: 1px; }
.owd-muted { color: var(--owd-mut); }
.owd-small { font-size: 12px; }

/* ---------- Kopf: Registerkarten + Menüband ---------- */
.owd-top { flex: none; background: var(--owd-chrome); border-bottom: 1px solid var(--owd-line); }
.owd-tabrow { display: flex; align-items: center; gap: 12px; padding: 4px 10px 0; min-height: 38px; }
.owd-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.owd-tabs::-webkit-scrollbar { display: none; }
.owd-tab { position: relative; border: 0; background: none; padding: 7px 12px 9px; border-radius: 8px 8px 0 0; font-weight: 600; color: #3f4a59; white-space: nowrap; }
.owd-tab:hover { background: rgba(29, 78, 216, .07); color: var(--owd-acc-d); }
.owd-tab.on { color: var(--owd-acc); }
.owd-tab.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--owd-acc); }
.owd-tab.owd-filetab { color: var(--owd-acc); }
.owd-tab.owd-ctxtab { color: #7c3aed; }
.owd-tab.owd-ctxtab::before { content: ""; position: absolute; left: 4px; right: 4px; top: 2px; height: 3px; border-radius: 3px; background: #c4b5fd; }
.owd-tab.owd-ctxtab.on { color: #6d28d9; }
.owd-tab.owd-ctxtab.on::after { background: #7c3aed; }
.owd-tab[hidden] { display: none; }
.owd-titlebar { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; min-width: 0; color: var(--owd-mut); font-size: 12px; white-space: nowrap; }
.owd-tname { font-weight: 650; color: var(--owd-ink); overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.owd-saved { display: inline-flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; }
.owd-saved svg.owd-i { width: 14px; height: 14px; color: #16a34a; stroke-width: 2.4; }
.owd-sv-error { color: #b45309; }
.owd-tplbar { display: flex; align-items: center; gap: 6px; flex: none; padding-bottom: 4px; }
.owd-dlbtn { gap: 6px; padding: 0 10px 0 12px; box-shadow: 0 1px 2px rgba(29, 78, 216, .3); }
.owd-dlbtn svg.owd-dlcar { width: 14px; height: 14px; margin-left: -2px; stroke-width: 2.2; }
.owd-menu-dl { min-width: 240px; }
.owd-tplnote { display: flex; align-items: center; gap: 8px; flex: none; padding: 6px 8px 6px 12px; background: #fefce8; border-bottom: 1px solid #fde68a; color: #713f12; font-size: 12.5px; }
.owd-tplnote > svg.owd-i { width: 16px; height: 16px; color: #ca8a04; }
.owd-tplnote > span { flex: 1 1 auto; min-width: 0; }
.owd-tplnote mark { background: #fde047; color: inherit; padding: 0 3px; border-radius: 3px; }
.owd-tplnx { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: inherit; }
.owd-tplnx:hover { background: rgba(202, 138, 4, .14); }
.owd-tplnx svg.owd-i { width: 15px; height: 15px; }

.owd-ribbon { padding: 0 8px 8px; }
.owd-panel { display: flex; align-items: stretch; gap: 0; min-height: 92px; padding: 4px 4px 2px; background: #fff; border: 1px solid var(--owd-line-l); border-radius: 10px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.owd-panel[hidden] { display: none; }
.owd-grp { display: flex; flex-direction: column; flex: none; position: relative; padding: 0 7px; }
.owd-grp + .owd-grp::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--owd-line-l); }
.owd-gin { flex: 1 1 auto; display: flex; align-items: center; gap: 2px; }
.owd-gl { flex: none; text-align: center; font-size: 11px; color: #8a93a2; line-height: 16px; white-space: nowrap; padding-top: 1px; }
.owd-b { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 32px; min-width: 32px; padding: 0 6px; border: 1px solid transparent; border-radius: 7px; background: none; color: #2f3a48; white-space: nowrap; position: relative; transition: background-color .12s, color .12s; }
.owd-b:hover:not(:disabled) { background: #eef3fb; color: var(--owd-acc-d); }
.owd-b:active:not(:disabled) { background: #e2eaf7; }
.owd-b.on { background: var(--owd-acc-l); color: var(--owd-acc-d); border-color: #bfdbfe; }
.owd-b:disabled { opacity: .38; cursor: default; }
.owd-bt { padding: 0 9px 0 7px; }
.owd-bl { font-size: 12.5px; font-weight: 500; }
.owd-dd { padding-right: 4px; }
.owd-dd svg.owd-chev, .owd-sarr svg.owd-chev { width: 12px; height: 12px; stroke-width: 2.2; margin-left: -1px; opacity: .7; }
.owd-li { display: inline-block; width: 18px; text-align: center; font: 700 15px/1 Georgia, "Times New Roman", serif; }
.owd-li-f { font-family: var(--owd-ui); font-weight: 800; }
.owd-li-k { font-style: italic; font-weight: 600; }
.owd-li-u { text-decoration: underline; text-underline-offset: 2px; font-family: var(--owd-ui); font-weight: 600; }
.owd-li-s { text-decoration: line-through; font-family: var(--owd-ui); font-weight: 600; }
.owd-split { display: inline-flex; align-items: center; border-radius: 7px; }
.owd-split > .owd-b:first-child { flex-direction: column; gap: 0; padding: 3px 4px 0; border-radius: 7px 0 0 7px; }
.owd-split > .owd-b:first-child svg.owd-i { width: 16px; height: 16px; }
.owd-split.owd-split-h > .owd-b:first-child { flex-direction: row; padding: 0 4px; }
.owd-split.owd-split-h > .owd-b:first-child svg.owd-i { width: 18px; height: 18px; }
.owd-split:hover > .owd-b { background: #f3f6fb; }
.owd-sarr { min-width: 16px; padding: 0 2px; border-radius: 0 7px 7px 0; }
.owd-cbar { display: block; width: 16px; height: 4px; border-radius: 1px; margin-top: 1px; background: #c00000; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.owd-sel { height: 30px; border: 1px solid var(--owd-line); border-radius: 7px; background: #fff; padding: 0 6px; margin: 0 2px; color: var(--owd-ink); }
.owd-sel:hover { border-color: #b7c0ca; }
.owd-sel:focus { border-color: var(--owd-acc); outline: none; box-shadow: 0 0 0 2px var(--owd-acc-l); }
.owd-sel-font { width: 150px; }
.owd-sizebox { display: inline-flex; align-items: center; }
.owd-sel-size { width: 46px; margin-right: 0; border-radius: 7px 0 0 7px; text-align: center; }
.owd-sizedd { height: 28px; min-width: 18px; border: 1px solid var(--owd-line); border-left: 0; border-radius: 0 7px 7px 0; margin-right: 4px; }
.owd-fnl { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; color: var(--owd-mut); font-size: 12px; }
.owd-fnin { height: 30px; width: 220px; border: 1px solid var(--owd-line); border-radius: 7px; padding: 0 8px; color: var(--owd-ink); font-size: 13px; }
.owd-fnin:focus { border-color: var(--owd-acc); outline: none; box-shadow: 0 0 0 2px var(--owd-acc-l); }
.owd-rinfo { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--owd-mut); line-height: 1.3; margin-left: 10px; }
.owd-rinfo svg.owd-i { color: var(--owd-acc); }
.owd-rows { display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.owd-row { display: flex; align-items: center; gap: 1px; }
.owd-row .owd-b { height: 28px; min-width: 28px; padding: 0 5px; }
.owd-row .owd-bt { padding: 0 8px 0 5px; justify-content: flex-start; }
.owd-row .owd-sel { height: 28px; margin: 0 2px 0 0; }
.owd-b.owd-big { flex-direction: column; justify-content: center; height: 62px; min-width: 54px; max-width: 98px; padding: 4px 7px 3px; gap: 4px; }
.owd-big svg.owd-i { width: 24px; height: 24px; stroke-width: 1.6; }
.owd-big .owd-bl { font-size: 11.5px; line-height: 1.15; white-space: normal; text-align: center; hyphens: manual; }
.owd-big.owd-dd svg.owd-chev { display: none; }
.owd-big.owd-dd .owd-bl::after { content: " ▾"; font-size: 10px; color: #6b7280; }
/* Formatvorlagen-Galerie */
.owd-grp-styles { flex: 1 1 auto; min-width: 250px; }
.owd-grp-styles .owd-gin { min-width: 0; }
.owd-gallery { display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; max-width: max-content; height: 62px; border: 1px solid var(--owd-line-l); border-radius: 8px; background: #fbfcfe; overflow: hidden; }
.owd-glist { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 2px; padding: 3px; min-width: 0; height: 60px; overflow: hidden; }
.owd-gi { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; width: 90px; height: 54px; padding: 4px 8px; border: 1px solid transparent; border-radius: 6px; background: #fff; text-align: left; overflow: hidden; }
.owd-gi:hover { border-color: #bfdbfe; background: var(--owd-acc-xl); }
.owd-gi.on { border-color: var(--owd-acc); box-shadow: inset 0 0 0 1px var(--owd-acc); background: var(--owd-acc-xl); }
.owd-gprev { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; color: #111; font: 14px/1.15 Calibri, Carlito, "Segoe UI", sans-serif; }
.owd-gname { display: block; max-width: 100%; font-size: 10.5px; color: var(--owd-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owd-gi-title .owd-gprev { font-size: 17px; letter-spacing: -.3px; }
.owd-gi-subtitle .owd-gprev { color: #5a5a5a; letter-spacing: .5px; font-size: 13px; }
.owd-gi-h1 .owd-gprev { color: #2f5496; font-size: 16px; }
.owd-gi-h2 .owd-gprev { color: #2f5496; font-size: 14.5px; }
.owd-gi-h3 .owd-gprev { color: #1f3763; font-size: 13.5px; }
.owd-gi-h4 .owd-gprev { color: #2f5496; font-style: italic; }
.owd-gi-quote .owd-gprev { color: #404040; font-style: italic; }
.owd-gmore { height: auto; min-width: 20px; border-radius: 0; border-left: 1px solid var(--owd-line-l); }
/* Absatzfelder (Layout) */
.owd-pfields { display: flex; gap: 14px; padding: 0 2px; }
.owd-pcol { display: grid; gap: 4px; align-content: center; }
.owd-pcol > b { font-size: 11.5px; font-weight: 600; color: var(--owd-mut); }
.owd-pf { display: grid; grid-template-columns: 70px 56px auto; align-items: center; gap: 6px; font-size: 12.5px; color: #374151; }
.owd-pfin { height: 26px; width: 100%; border: 1px solid var(--owd-line); border-radius: 6px; padding: 0 6px; text-align: right; font-variant-numeric: tabular-nums; }
.owd-pfin:focus { border-color: var(--owd-acc); outline: none; box-shadow: 0 0 0 2px var(--owd-acc-l); }
.owd-pf i { font-style: normal; color: var(--owd-mut); font-size: 11.5px; }
.owd-imgw { grid-template-columns: auto 64px auto; margin-right: 6px; }
/* Verdichtung bei wenig Platz */
.owd-rc1 .owd-row .owd-bt[data-lv="1"] .owd-bl { display: none; }
.owd-rc1 .owd-row .owd-bt[data-lv="1"] { padding: 0 5px; }
.owd-rc1 .owd-grp { padding: 0 5px; }
.owd-rc2 .owd-gl { display: none; }
.owd-rc2 .owd-panel { min-height: 74px; }
.owd-rc2 .owd-big { min-width: 46px; padding: 4px 4px 3px; }
.owd-rc2 .owd-big .owd-bl { font-size: 11px; }
.owd-rc2 .owd-grp-styles { min-width: 200px; }
.owd-rc3 .owd-sel-font { width: 112px; }
.owd-rc3 .owd-grp { padding: 0 3px; }

/* ---------- Arbeitsfläche mit Seiten ---------- */
.owd-body { flex: 1 1 auto; display: flex; min-height: 0; position: relative; }
.owd-canvaswrap { flex: 1 1 auto; position: relative; min-width: 0; min-height: 0; }
.owd-canvas { position: absolute; inset: 0; overflow: auto; overflow-anchor: none; background: var(--owd-canvas); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b9c2cf transparent; }
.owd-canvas::-webkit-scrollbar { width: 12px; height: 12px; }
.owd-canvas::-webkit-scrollbar-thumb { background: #bcc5d1; border-radius: 8px; border: 3px solid var(--owd-canvas); }
.owd-canvas::-webkit-scrollbar-thumb:hover { background: #9aa5b4; }
.owd-canvas.owd-hfcur { cursor: text; }
.owd-stage { position: relative; }
.owd-pages { position: absolute; transform-origin: 0 0; }
.owd-sheets { position: absolute; inset: 0; }
.owd-sheet { position: absolute; left: 0; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .07), 0 2px 5px rgba(15, 23, 42, .07), 0 14px 30px -16px rgba(15, 23, 42, .32); }
.owd-hz { position: absolute; left: 0; right: 0; }
.owd-hz-h { top: 0; }
.owd-hz-f { bottom: 0; }
.owd-hc { position: absolute; }
.owd-hz-f .owd-hc { top: auto; }
.owd-hzl { display: none; position: absolute; left: 10px; padding: 1px 7px; border-radius: 4px; background: var(--owd-acc); color: #fff; font: 600 11px/16px var(--owd-ui); }
.owd-hz-h .owd-hzl { bottom: 4px; }
.owd-hz-f .owd-hzl { top: 4px; }
.owd-hz.owd-hzhover { background: rgba(219, 234, 254, .35); box-shadow: inset 0 -1px 0 #93c5fd; }
.owd-hz-f.owd-hzhover { box-shadow: inset 0 1px 0 #93c5fd; }
.owd-hz.owd-hzhover .owd-hzl { display: block; }
.owd-hz.owd-hzhover.owd-empty .owd-hzl::after { content: " – Doppelklick zum Bearbeiten"; font-weight: 400; }

/* Der Textfluss */
.owd-doc { position: absolute; outline: none; z-index: 1; caret-color: #000; }
.owd .owd-doc:focus, .owd .owd-doc:focus-visible { outline: none; }
.owd-ovl { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 3; }
.owd-painting .owd-doc { cursor: copy; }
.owd-doc.owd-colcur, .owd-colresizing, .owd-colresizing * { cursor: col-resize !important; }
.owd-imgresizing, .owd-imgresizing * { cursor: nwse-resize !important; }

/* ---------- Dokumentinhalt (Editor und Druck) ---------- */
:is(.owd, .owd-print) :is(.owd-doc, .owd-hfc) {
	font-family: var(--owd-font, Calibri, Carlito, "Segoe UI", Arial, sans-serif);
	font-size: var(--owd-size, 11pt);
	line-height: var(--owd-lh, 1.15);
	color: #000;
	white-space: pre-wrap;
	overflow-wrap: break-word;
	word-wrap: break-word;
	tab-size: 12.7mm;
	-moz-tab-size: 12.7mm;
	text-align: left;
	font-weight: 400;
	font-style: normal;
	letter-spacing: normal;
	text-transform: none;
	text-indent: 0;
	font-kerning: normal;
	-webkit-font-smoothing: auto;
}
:is(.owd, .owd-print) .owd-doc :is(p, h1, h2, h3, h4, blockquote) { margin: 0 0 var(--owd-sa, 8pt); padding: 0; border: 0; background: none; font-family: inherit; text-transform: none; letter-spacing: normal; max-width: none; width: auto; float: none; quotes: none; }
:is(.owd, .owd-print) .owd-doc p { font-size: inherit; line-height: inherit; color: inherit; font-weight: inherit; font-style: inherit; }
:is(.owd, .owd-print) .owd-doc :is(h1, h2, h3, h4) { font-weight: 400; line-height: 1.15; page-break-after: avoid; break-after: avoid; }
:is(.owd, .owd-print) .owd-doc h1 { font-size: 16pt; color: #2f5496; margin-top: 12pt; margin-bottom: 4pt; }
:is(.owd, .owd-print) .owd-doc h2 { font-size: 13pt; color: #2f5496; margin-top: 10pt; margin-bottom: 4pt; }
:is(.owd, .owd-print) .owd-doc h3 { font-size: 12pt; color: #1f3763; margin-top: 8pt; margin-bottom: 4pt; }
:is(.owd, .owd-print) .owd-doc h4 { font-size: 1em; font-style: italic; color: #2f5496; margin-top: 8pt; margin-bottom: 2pt; }
:is(.owd, .owd-print) .owd-doc > :first-child:is(h1, h2, h3, h4) { margin-top: 0; }
:is(.owd, .owd-print) .owd-doc p.owd-title { font-size: 28pt; line-height: 1.1; letter-spacing: -.5pt; color: #000; margin-bottom: 4pt; }
:is(.owd, .owd-print) .owd-doc p.owd-subtitle { font-size: 15pt; line-height: 1.2; letter-spacing: .5pt; color: #5a5a5a; margin-bottom: 10pt; }
:is(.owd, .owd-print) .owd-doc blockquote { font-style: italic; color: #404040; text-align: center; margin: 10pt 12.7mm; padding: 0; border: 0; background: none; font-size: inherit; }
:is(.owd, .owd-print) .owd-doc blockquote::before, :is(.owd, .owd-print) .owd-doc blockquote::after { content: none; }
:is(.owd, .owd-print) .owd-doc :is(ul, ol) { margin: 0 0 var(--owd-sa, 8pt); padding: 0 0 0 12.7mm; list-style-position: outside; }
:is(.owd, .owd-print) .owd-doc :is(ul, ol) :is(ul, ol) { margin: 0; padding-left: 7mm; }
:is(.owd, .owd-print) .owd-doc li { margin: 0; padding: 0 0 0 1mm; font-size: inherit; line-height: inherit; color: inherit; background: none; border: 0; }
:is(.owd, .owd-print) .owd-doc li::before { content: none; }
:is(.owd, .owd-print) .owd-doc ul { list-style-type: disc; }
:is(.owd, .owd-print) .owd-doc ul ul { list-style-type: circle; }
:is(.owd, .owd-print) .owd-doc ul ul ul { list-style-type: square; }
:is(.owd, .owd-print) .owd-doc ul ul ul ul { list-style-type: disc; }
:is(.owd, .owd-print) .owd-doc ol { list-style-type: decimal; }
:is(.owd, .owd-print) .owd-doc ol ol { list-style-type: lower-alpha; }
:is(.owd, .owd-print) .owd-doc ol ol ol { list-style-type: lower-roman; }
:is(.owd, .owd-print) .owd-doc ol ol ol ol { list-style-type: decimal; }
:is(.owd, .owd-print) .owd-doc ol[type="1"] { list-style-type: decimal; }
:is(.owd, .owd-print) .owd-doc ol[type="a"] { list-style-type: lower-alpha; }
:is(.owd, .owd-print) .owd-doc ol[type="A"] { list-style-type: upper-alpha; }
:is(.owd, .owd-print) .owd-doc ol[type="i"] { list-style-type: lower-roman; }
:is(.owd, .owd-print) .owd-doc ol[type="I"] { list-style-type: upper-roman; }
:is(.owd, .owd-print) .owd-doc li::marker { color: #000; }
:is(.owd, .owd-print) .owd-doc a { color: #0563c1; text-decoration: underline; text-underline-offset: 1.5px; background: none; border: 0; box-shadow: none; }
:is(.owd, .owd-print) .owd-doc :is(strong, b) { font-weight: 700; }
:is(.owd, .owd-print) .owd-doc :is(em, i) { font-style: italic; }
:is(.owd, .owd-print) .owd-doc u { text-decoration: underline; text-underline-offset: 1.5px; }
:is(.owd, .owd-print) .owd-doc s { text-decoration: line-through; }
:is(.owd, .owd-print) .owd-doc u s, :is(.owd, .owd-print) .owd-doc s u { text-decoration: underline line-through; }
:is(.owd, .owd-print) .owd-doc :is(sub, sup) { font-size: .66em; line-height: 0; position: relative; vertical-align: baseline; }
:is(.owd, .owd-print) .owd-doc sup { top: -.5em; }
:is(.owd, .owd-print) .owd-doc sub { bottom: -.25em; }
:is(.owd, .owd-print) .owd-doc hr { border: 0; border-top: 1px solid #8c8c8c; height: 0; margin: 6pt 0 var(--owd-sa, 8pt); background: none; }
:is(.owd, .owd-print) .owd-doc img { display: inline; max-width: 100%; height: auto; vertical-align: bottom; border: 0; border-radius: 0; box-shadow: none; margin: 0; }
.owd .owd-doc img::selection { background: transparent; }
:is(.owd, .owd-print) .owd-doc img:is([style*="float: left"], [style*="float:left"]) { margin: 2pt 10pt 4pt 0; }
:is(.owd, .owd-print) .owd-doc img:is([style*="float: right"], [style*="float:right"]) { margin: 2pt 0 4pt 10pt; }
:is(.owd, .owd-print) .owd-doc table { border-collapse: collapse; border-spacing: 0; width: 100%; table-layout: fixed; margin: 0 0 var(--owd-sa, 8pt); border: 0; background: none; font-size: inherit; }
/* Zellen ohne Rahmenangabe: dünnes Gitter wie Word „Tabelle einfügen“ (Tabellenraster) und wie die .docx (0,5 pt schwarz) */
:is(.owd, .owd-print) .owd-doc :is(td, th) { padding: 1.5pt 5.4pt; vertical-align: top; border: .5pt solid #000; background: none; text-align: left; font-weight: inherit; overflow-wrap: anywhere; }
:is(.owd, .owd-print) .owd-doc td > :is(p, h1, h2, h3, h4, blockquote) { margin-top: 0; margin-bottom: 0; }
:is(.owd, .owd-print) .owd-doc td > :is(ul, ol) { margin-bottom: 0; }
:is(.owd, .owd-print) .owd-doc .owd-field { background: #fef9c3; border-radius: 2px; box-shadow: 0 0 0 1px rgba(202, 138, 4, .22); }
.owd .owd-hfc .owd-field { background: #fef9c3; border-radius: 2px; box-shadow: 0 0 0 1px rgba(202, 138, 4, .22); }:is(.owd, .owd-print) .owd-hfc p { margin: 0; }
:is(.owd, .owd-print) .owd-hfc { font-size: calc(var(--owd-size, 11pt) * .9); color: #333; }
.owd ::highlight(owd-field-open) { background-color: #fde047; color: #000; }
.owd ::highlight(owd-find) { background-color: #fde68a; color: #000; }
.owd ::highlight(owd-find-cur) { background-color: #f59e0b; color: #000; }

/* Seitenumbruch, Abstandshalter, Inhaltsverzeichnis */
.owd-doc .owd-pgs { display: block; pointer-events: none; user-select: none; -webkit-user-select: none; margin: 0; padding: 0; border: 0; }
.owd-doc tr.owd-pgs { display: table-row; }
.owd-doc tr.owd-pgs > td { border: 0 !important; padding: 0 !important; background: none !important; }
.owd-doc .owd-pagebreak { position: relative; min-height: 14px; margin: 0; cursor: default; user-select: none; }
.owd .owd-doc .owd-pagebreak::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 1px dashed #9aa6b8; }
.owd .owd-doc .owd-pagebreak::after { content: "Seitenumbruch"; position: absolute; left: 50%; top: 0; transform: translateX(-50%); padding: 0 8px; background: #fff; color: #7b8698; font: 11px/14px var(--owd-ui); letter-spacing: .02em; }
:is(.owd, .owd-print) .owd-doc .owd-toc { position: relative; margin: 0 0 var(--owd-sa, 8pt); white-space: normal; user-select: none; -webkit-user-select: none; }
:is(.owd, .owd-print) .owd-doc .owd-toc > p { display: flex; align-items: baseline; margin: 0 0 5pt; white-space: pre; }
:is(.owd, .owd-print) .owd-doc .owd-toc > p > a { display: flex; align-items: baseline; flex: 1 1 0; min-width: 0; color: inherit; text-decoration: none; white-space: normal; }
:is(.owd, .owd-print) .owd-doc .owd-toc > p > a::after { content: ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ."; flex: 1 1 0; min-width: 2em; overflow: hidden; white-space: nowrap; margin: 0 2px 0 6px; color: #444; }
.owd .owd-doc .owd-toc { cursor: pointer; border-radius: 3px; }
.owd .owd-doc .owd-toc:hover { background: #f5f8ff; box-shadow: 0 0 0 4px #f5f8ff, 0 0 0 5px #bfdbfe; }
.owd .owd-doc .owd-toc > p > a:hover { color: var(--owd-acc); }
.owd .owd-doc .owd-tocbar { position: absolute; left: -5px; bottom: 100%; margin-bottom: 4px; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px 0 6px; border: 1px solid #bfdbfe; border-radius: 6px; background: #eff6ff; color: var(--owd-acc); font: 600 11.5px/1 var(--owd-ui); white-space: nowrap; opacity: 0; transition: opacity .15s; cursor: pointer; z-index: 2; }
.owd .owd-doc .owd-tocbar svg.owd-i { width: 13px; height: 13px; stroke-width: 2.2; }
.owd .owd-doc .owd-tocbar::after { content: "Inhaltsverzeichnis aktualisieren"; }
.owd .owd-doc .owd-tocbar:hover { background: var(--owd-acc); color: #fff; border-color: var(--owd-acc); }
.owd .owd-doc .owd-toc:hover .owd-tocbar { opacity: 1; }
.owd .owd-doc .owd-tocempty::after { content: "Noch keine Überschriften – formatieren Sie Absätze als „Überschrift 1–3“ und aktualisieren Sie das Verzeichnis."; display: block; padding: 6px 0; color: #6b7280; font: italic 12px/1.4 var(--owd-ui); white-space: normal; }
@media (hover: none) { .owd .owd-doc .owd-tocbar { opacity: 1; } }

/* Überlagerungen: Bildrahmen, Zellauswahl, Spaltenlinie, Ablegen */
.owd-imgframe { position: absolute; border: calc(1.5px * var(--owd-iz, 1)) solid var(--owd-acc); pointer-events: none; }
.owd-ih { position: absolute; width: calc(11px * var(--owd-iz, 1)); height: calc(11px * var(--owd-iz, 1)); margin: calc(-6px * var(--owd-iz, 1)) 0 0 calc(-6px * var(--owd-iz, 1)); background: #fff; border: calc(1.5px * var(--owd-iz, 1)) solid var(--owd-acc); border-radius: 50%; pointer-events: auto; touch-action: none; }
.owd-ih::before { content: ""; position: absolute; inset: calc(-6px * var(--owd-iz, 1)); }
.owd-ih-nw { left: 0; top: 0; cursor: nwse-resize; }
.owd-ih-ne { left: 100%; top: 0; cursor: nesw-resize; }
.owd-ih-sw { left: 0; top: 100%; cursor: nesw-resize; }
.owd-ih-se { left: 100%; top: 100%; cursor: nwse-resize; }
.owd-imsz { position: absolute; right: 0; top: 100%; margin-top: calc(6px * var(--owd-iz, 1)); padding: calc(1px * var(--owd-iz, 1)) calc(6px * var(--owd-iz, 1)); background: rgba(17, 24, 39, .82); color: #fff; border-radius: calc(4px * var(--owd-iz, 1)); font: calc(11px * var(--owd-iz, 1))/1.5 var(--owd-ui); white-space: nowrap; opacity: 0; transition: opacity .12s; }
.owd-imgresizing .owd-imsz { opacity: 1; }
.owd-csel { position: absolute; background: rgba(37, 99, 235, .13); pointer-events: none; }
.owd-colguide { position: absolute; width: 0; border-left: 1px dashed var(--owd-acc); z-index: 20; pointer-events: none; }
.owd-drop { position: absolute; inset: 0; display: none; place-items: center; z-index: 20; background: rgba(239, 246, 255, .92); border: 2px dashed var(--owd-acc); border-radius: 6px; color: var(--owd-acc-d); }
.owd-drop.on { display: grid; }
.owd-drop div { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 16px; }
.owd-drop svg.owd-i { width: 40px; height: 40px; stroke-width: 1.5; }
.owd-drop b { font-size: 16px; }

/* ---------- Navigationsbereich ---------- */
.owd-nav { flex: none; width: 250px; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--owd-line); background: #fbfcfe; }
.owd-nav[hidden] { display: none; }
.owd-navh { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 4px 14px; font-size: 14px; }
.owd-navsub { padding: 0 14px 6px; font-size: 12px; font-weight: 600; color: var(--owd-acc); border-bottom: 1px solid var(--owd-line-l); }
.owd-navlist { flex: 1 1 auto; overflow-y: auto; padding: 6px 6px 10px; }
.owd-navi { display: block; width: 100%; padding: 5px 8px; border: 0; border-radius: 6px; background: none; text-align: left; color: var(--owd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.owd-navi:hover { background: #eef3fb; }
.owd-navi.on { background: var(--owd-acc-l); color: var(--owd-acc-d); font-weight: 600; box-shadow: inset 3px 0 0 var(--owd-acc); }
.owd-navl1 { font-weight: 600; }
.owd-navl2 { padding-left: 22px; }
.owd-navl3 { padding-left: 36px; font-size: 12.5px; }
.owd-navl4 { padding-left: 50px; font-size: 12.5px; color: var(--owd-mut); }
.owd-navempty { margin: 8px; color: var(--owd-mut); font-size: 12.5px; line-height: 1.45; }

/* ---------- Statusleiste ---------- */
.owd-status { flex: none; display: flex; align-items: center; gap: 4px; height: 30px; padding: 0 8px; background: var(--owd-chrome); border-top: 1px solid var(--owd-line); font-size: 12px; color: var(--owd-mut); white-space: nowrap; }
.owd-sbtn { border: 0; background: none; padding: 3px 8px; border-radius: 5px; color: inherit; font-size: 12px; font-variant-numeric: tabular-nums; }
.owd-sbtn:hover { background: #e4eaf3; color: var(--owd-ink); }
.owd-sitem { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.owd-slang svg.owd-i { width: 17px; height: 17px; color: var(--owd-acc); }
.owd-sfill { flex: 1 1 auto; }
.owd-szoom { display: inline-flex; align-items: center; gap: 4px; }
.owd-zb { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 5px; background: none; color: #4b5563; }
.owd-zb svg.owd-i { width: 14px; height: 14px; }
.owd-zb:hover { background: #e4eaf3; }
.owd-zr { width: 104px; accent-color: var(--owd-acc); height: 16px; }
.owd-zl { border: 0; background: none; min-width: 46px; padding: 2px 4px; border-radius: 5px; font-size: 12px; color: var(--owd-mut); font-variant-numeric: tabular-nums; }
.owd-zl:hover { background: #e4eaf3; }

/* ---------- Menüs & Schwebendes ---------- */
.owd-pop, .owd-tip { position: fixed; z-index: 100020; }
.owd-menu { min-width: 220px; max-width: min(380px, calc(100vw - 16px)); padding: 6px; background: #fff; border: 1px solid var(--owd-line); border-radius: 10px; box-shadow: 0 16px 40px -12px rgba(15, 23, 42, .35), 0 2px 6px rgba(15, 23, 42, .08); overflow-y: auto; font: 13px/1.3 var(--owd-ui); color: var(--owd-ink); }
.owd-mi { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 32px; padding: 5px 10px; border: 0; border-radius: 6px; background: none; text-align: left; color: var(--owd-ink); }
.owd-mi:hover:not(:disabled), .owd-mi:focus-visible { background: #eef3fb; color: var(--owd-acc-d); outline: none; }
.owd-mi:disabled { opacity: .4; cursor: default; }
.owd-mi .owd-i { width: 18px; height: 18px; color: #4b5563; }
.owd-mi span.owd-i { display: inline-block; }
.owd-mi svg.owd-mchk { visibility: hidden; color: var(--owd-acc); stroke-width: 2.4; }
.owd-mi.on svg.owd-mchk { visibility: visible; }
.owd-mi.on { font-weight: 600; }
.owd-mi.on .owd-i { color: var(--owd-acc); }
.owd-ml { flex: 1 1 auto; display: grid; gap: 1px; }
.owd-ml small { font-size: 11.5px; color: var(--owd-mut); font-weight: 400; }
.owd-mk { color: #8a94a3; font-size: 11.5px; margin-left: 12px; }
.owd-msep { height: 1px; margin: 5px 4px; background: var(--owd-line-l); }
.owd-mcustom { padding: 2px; }
.owd-menu-margins { min-width: 330px; }
.owd-mstyle .owd-ml { font-family: Calibri, Carlito, "Segoe UI", sans-serif; font-size: 14px; }
.owd-mstyle.owd-gi-title .owd-ml { font-size: 19px; }
.owd-mstyle.owd-gi-subtitle .owd-ml { color: #5a5a5a; }
.owd-mstyle:is(.owd-gi-h1, .owd-gi-h2) .owd-ml { color: #2f5496; font-size: 15px; }
.owd-mstyle.owd-gi-h3 .owd-ml { color: #1f3763; }
.owd-mstyle:is(.owd-gi-h4, .owd-gi-quote) .owd-ml { font-style: italic; color: #2f5496; }
.owd-mstyle.owd-gi-quote .owd-ml { color: #404040; }
.owd-pal { display: grid; gap: 8px; padding: 4px; }
.owd-palt { font-weight: 600; font-size: 12px; color: var(--owd-mut); }
.owd-palnone { border: 1px solid var(--owd-line); background: #fff; border-radius: 6px; padding: 5px 8px; text-align: left; }
.owd-palnone:hover { border-color: var(--owd-acc); }
.owd-palg { display: grid; grid-template-columns: repeat(10, 20px); gap: 4px; }
.owd-palg5 { grid-template-columns: repeat(5, 26px); }
.owd-palg5 .owd-sw { width: 26px; height: 22px; }
.owd-sw { width: 20px; height: 20px; padding: 0; border: 1px solid rgba(0, 0, 0, .14); border-radius: 4px; }
.owd-sw:hover { transform: scale(1.15); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--owd-acc); }
.owd-sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--owd-acc); }
.owd-palmore { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--owd-mut); cursor: pointer; }
.owd-palmore input { width: 36px; height: 24px; padding: 0; border: 1px solid var(--owd-line); border-radius: 4px; background: #fff; }
.owd-tgrid-t { padding: 2px 4px 6px; font-weight: 600; font-size: 12px; color: var(--owd-mut); }
.owd-tgrid { display: grid; grid-template-columns: repeat(10, 18px); gap: 3px; padding: 0 4px 4px; }
.owd-tgc { width: 18px; height: 18px; padding: 0; border: 1px solid #c9d1dc; border-radius: 2px; background: #fff; }
.owd-tgc.on { background: var(--owd-acc-l); border-color: var(--owd-acc); }
.owd-symg { display: grid; grid-template-columns: repeat(10, 30px); gap: 2px; padding: 2px; }
.owd-sym { width: 30px; height: 30px; border: 1px solid transparent; border-radius: 5px; background: none; font: 16px/1 "Segoe UI Symbol", "Segoe UI", Arial, sans-serif; color: var(--owd-ink); }
.owd-sym:hover { background: var(--owd-acc-xl); border-color: #bfdbfe; }
.owd-tip { display: none; max-width: 420px; padding: 6px 10px; background: #111827; color: #fff; border-radius: 7px; box-shadow: 0 10px 26px -10px rgba(15, 23, 42, .5); font: 12px/1.4 var(--owd-ui); pointer-events: none; position: absolute; z-index: 40; overflow-wrap: anywhere; }
.owd-tip.on { display: block; }
.owd-toast { position: absolute; left: 50%; bottom: 46px; transform: translate(-50%, 10px); max-width: min(560px, calc(100% - 32px)); padding: 9px 16px; background: #1f2937; color: #fff; border-radius: 10px; font-size: 13px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 30; text-align: center; }
.owd-toast.on { opacity: 1; transform: translate(-50%, 0); }
.owd-toast.owd-toastw { text-align: left; }
.owd-toastl { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.45; }

/* ---------- Dialoge ---------- */
.owd-ov { position: fixed; inset: 0; z-index: 100030; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .38); animation: owdFade .12s ease-out; }
@keyframes owdFade { from { opacity: 0; } }
.owd-dlg { width: min(460px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .5); font: 13.5px/1.45 var(--owd-ui); color: var(--owd-ink); }
.owd-dlg.owd-wide { width: min(640px, 100%); }
.owd-dh { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 6px 20px; }
.owd-dh h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--owd-ink); }
.owd-x { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 7px; background: none; color: #6b7280; }
.owd-x:hover { background: #f1f5f9; color: var(--owd-ink); }
.owd-db { padding: 4px 20px 8px; overflow: auto; }
.owd-db p { margin: 0 0 10px; }
.owd-df { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 10px 20px 18px; }
.owd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 14px; border: 1px solid var(--owd-line); border-radius: 8px; background: #fff; color: var(--owd-ink); font-weight: 600; font-size: 13px; white-space: nowrap; }
.owd-btn:hover:not(:disabled) { border-color: #aeb8c3; background: #f8fafc; }
.owd-btn:disabled { opacity: .45; cursor: default; }
.owd-btn svg.owd-i { width: 16px; height: 16px; }
.owd-btn.owd-pri { background: var(--owd-acc); border-color: var(--owd-acc); color: #fff; }
.owd-btn.owd-pri:hover:not(:disabled) { background: #1e40af; border-color: #1e40af; }
.owd-btn.owd-ghost { border-color: transparent; background: none; color: var(--owd-mut); }
.owd-btn.owd-ghost:hover:not(:disabled) { background: #eef2f7; color: var(--owd-ink); }
.owd-btn.owd-small { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
.owd-form { display: grid; gap: 10px; }
.owd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.owd-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 12px; }
.owd-span2 { grid-column: span 2; }
.owd-fs2 { margin: 0; padding: 8px 12px 12px; border: 1px solid var(--owd-line-l); border-radius: 10px; min-width: 0; }
.owd-fs2 legend { padding: 0 4px; font-size: 12px; font-weight: 700; color: var(--owd-acc-d); }
.owd-fl { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: #374151; }
.owd-in { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--owd-line); border-radius: 8px; background: #fff; color: var(--owd-ink); font-weight: 400; font-size: 13.5px; }
.owd-in:focus { border-color: var(--owd-acc); outline: none; box-shadow: 0 0 0 3px var(--owd-acc-l); }
.owd-chk { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.owd-chk input, .owd-fopts input { accent-color: var(--owd-acc); }
.owd-wctab { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.owd-wctab td { padding: 6px 2px; border-bottom: 1px solid var(--owd-line-l); }
.owd-wctab td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.owd-hfdlg { gap: 14px; }
.owd-hfbox { border: 1px solid var(--owd-line); border-radius: 10px; overflow: hidden; }
.owd-hflbl { padding: 6px 10px 0; font-size: 12px; font-weight: 700; color: var(--owd-acc-d); }
.owd-hftb { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; padding: 4px 6px; border-bottom: 1px solid var(--owd-line-l); }
.owd-hftb button { display: inline-flex; align-items: center; justify-content: center; height: 28px; min-width: 28px; padding: 0 6px; border: 1px solid transparent; border-radius: 6px; background: none; }
.owd-hftb button:hover { background: #eef3fb; color: var(--owd-acc-d); }
.owd-hftb i { width: 1px; height: 18px; background: var(--owd-line-l); margin: 0 4px; }
.owd-hftb .owd-hfins { font-size: 12px; border-color: var(--owd-line-l); }
.owd .owd-hfed { min-height: 56px; padding: 10px 12px; outline: none; background: #fff; white-space: pre-wrap; }
.owd .owd-hfed:focus { background: #fbfdff; }

/* ---------- Suchen & Ersetzen ---------- */
.owd-find { position: absolute; top: 10px; right: 22px; z-index: 25; width: 340px; max-width: calc(100% - 24px); display: grid; gap: 9px; padding: 12px 14px 14px; background: #fff; border: 1px solid var(--owd-line); border-radius: 12px; box-shadow: 0 20px 44px -16px rgba(15, 23, 42, .4); }
.owd-findh { display: flex; align-items: center; gap: 4px; }
.owd-findh .owd-x { margin-left: auto; }
.owd-ftab { border: 0; background: none; padding: 5px 10px; border-radius: 7px; font-weight: 600; color: var(--owd-mut); }
.owd-ftab.on { background: var(--owd-acc-l); color: var(--owd-acc-d); }
.owd-fin { display: flex; gap: 4px; }
.owd-fbtn { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--owd-line); border-radius: 8px; background: #fff; color: #4b5563; }
.owd-fbtn:hover { border-color: var(--owd-acc); color: var(--owd-acc); }
.owd-find .owd-ronly { display: none; }
.owd-find.owd-rmode .owd-ronly { display: grid; }
.owd-find.owd-rmode .owd-fbtns .owd-ronly { display: inline-flex; }
.owd-fopts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: #374151; }
.owd-fopts label { display: inline-flex; align-items: center; gap: 6px; }
.owd-fbtns { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.owd-fmsg { min-height: 16px; font-size: 12.5px; color: var(--owd-mut); }

/* ---------- Lektions-Modus ---------- */
.owd.owd-mode-lesson { height: max(560px, 82vh); }
.owd-lesson { flex: none; width: 340px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 10px; border-left: 1px solid var(--owd-line); background: linear-gradient(180deg, #f5f8ff, #fff 160px); display: flex; flex-direction: column; gap: 9px; }
.owd-lesson > * { flex-shrink: 0; }
.owd-lhead { display: flex; align-items: center; gap: 10px; }
.owd-lhead > svg.owd-i { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--owd-acc-l); color: var(--owd-acc-d); stroke-width: 1.7; }
.owd-lkick { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--owd-acc); }
.owd-ltitle { margin: 0; font-size: 16px; line-height: 1.25; font-weight: 750; color: var(--owd-ink); }
.owd-lintro { margin: 0; color: var(--owd-mut); font-size: 13px; line-height: 1.45; }
.owd-lprog { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--owd-mut); }
.owd-ldots { display: flex; gap: 5px; flex-wrap: wrap; }
.owd-ldot { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1.5px solid #cfd6dd; border-radius: 50%; background: #fff; font-size: 11.5px; font-weight: 700; color: var(--owd-mut); }
.owd-ldot svg.owd-i { width: 13px; height: 13px; stroke-width: 3; }
.owd-ldot.cur { border-color: var(--owd-acc); color: var(--owd-acc); box-shadow: 0 0 0 3px var(--owd-acc-l); }
.owd-ldot.done { background: #16a34a; border-color: #16a34a; color: #fff; }
.owd-ltask { padding: 10px 12px; background: #fff; border: 1px solid var(--owd-line-l); border-radius: 12px; font-size: 13.5px; line-height: 1.5; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.owd-ltask p { margin: 0 0 8px; }
.owd-ltask p:last-child { margin: 0; }
.owd-ltask ol, .owd-ltask ul { margin: 0 0 8px; padding-left: 20px; }
.owd-db code, .owd-lesson code, .owd-lesson kbd { font-family: Consolas, "Cascadia Mono", "Courier New", monospace; font-size: .9em; background: #eef2f7; padding: 1px 5px; border-radius: 4px; }
.owd-lfb { display: none; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; }
.owd-lfb.on { display: flex; }
.owd-lfb > svg.owd-i { width: 20px; height: 20px; flex: none; margin-top: 1px; stroke-width: 2.4; }
.owd-lfb-ok { background: #ecfdf3; color: #14532d; border: 1px solid #a7f3c0; }
.owd-lfb-bad { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.owd-lfb-hint { background: #fffbeb; color: #78350f; border: 1px solid #fde68a; }
.owd-lfb-info { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }
.owd-lbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.owd-lbtns .owd-btn { width: 100%; }
.owd-lbtns .owd-pri { grid-column: 1 / -1; min-height: 38px; font-size: 14px; }
.owd-lnav { display: flex; justify-content: space-between; align-items: center; gap: 4px; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--owd-line-l); }
.owd-lnav .owd-btn { padding: 0 8px; }
.owd-lnav .owd-pri { color: #fff; }
.owd-ldone { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #16a34a; color: #fff; font-size: 13.5px; }
.owd-ldone svg.owd-i { width: 22px; height: 22px; stroke-width: 2.6; flex: none; }

/* ---------- Vollbild ---------- */
.owd.owd-fs { position: fixed; inset: 0; z-index: 100000; width: 100vw; height: 100vh !important; height: 100dvh !important; border: 0; border-radius: 0; box-shadow: none; }
html.owd-noscroll, html.owd-noscroll body { overflow: hidden !important; }

/* ---------- Schmal / Mobil ---------- */
.owd-narrow .owd-titlebar .owd-saved span { display: none; }
.owd-narrow .owd-tname { max-width: 130px; }
.owd-narrow .owd-ribbon { padding: 0 6px 6px; }
.owd-narrow .owd-panel { min-height: 0; border-radius: 8px; }
.owd-narrow .owd-gl { display: none; }
.owd-narrow .owd-big { height: 54px; }
.owd-narrow .owd-gallery { height: 54px; }
.owd-narrow .owd-gi { height: 46px; width: 70px; }
.owd-narrow .owd-nav { position: absolute; left: 0; top: 0; bottom: 0; z-index: 15; box-shadow: 12px 0 30px -18px rgba(15, 23, 42, .5); }
.owd-narrow .owd-body { flex-direction: column; }
.owd-narrow .owd-lesson { order: -1; width: auto; max-height: none; border-left: 0; border-bottom: 1px solid var(--owd-line); padding: 12px 14px; gap: 10px; }
.owd-narrow.owd-mode-lesson { height: auto; }
.owd-narrow.owd-mode-lesson .owd-canvaswrap { flex: none; height: 62vh; min-height: 340px; }
.owd-narrow .owd-zr, .owd-narrow .owd-slang span, .owd-narrow .owd-stchars { display: none; }
.owd-narrow .owd-tplreset span, .owd-narrow.owd-mode-template .owd-saved, .owd-narrow .owd-nfbtn span { display: none; }
.owd-narrow .owd-tplreset, .owd-narrow .owd-nfbtn { padding: 0 7px; }
.owd-narrow .owd-find { right: 8px; top: 8px; }
.owd-tiny .owd-dlbtn span { display: none; }
.owd-tiny .owd-dlbtn { padding: 0 8px; }
.owd-tiny .owd-tname { display: none; }
.owd-tiny .owd-tabrow { padding: 4px 6px 0; gap: 6px; }
.owd-tiny .owd-tab { padding: 7px 9px 9px; }
.owd-tiny .owd-sitem:not(.owd-slang) { display: none; }
.owd-tiny .owd-sel-font { width: 116px; }
@media (pointer: coarse) {
	.owd-b { height: 36px; min-width: 36px; }
	.owd-row .owd-b { height: 34px; min-width: 34px; }
	.owd-ih { width: calc(16px * var(--owd-iz, 1)); height: calc(16px * var(--owd-iz, 1)); margin: calc(-8px * var(--owd-iz, 1)) 0 0 calc(-8px * var(--owd-iz, 1)); }
}
@media (prefers-reduced-motion: reduce) {
	.owd *, .owd-ov { transition: none !important; animation: none !important; }
}

/* ---------- Druck ---------- */
.owd-print { display: none; }
.owd-ppage { position: relative; overflow: hidden; background: #fff; break-after: page; page-break-after: always; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.owd-ppage:last-child { break-after: auto; page-break-after: auto; }
.owd-print :is(.owd-pbody, .owd-phd, .owd-pft) { position: absolute; }
.owd-print .owd-pbody > :first-child, .owd-print .owd-pbody > :first-child > :first-child { margin-top: 0; }
.owd-print .owd-doc .owd-field { background: none; box-shadow: none; }
.owd-print .owd-doc a { color: #0563c1; }
@media print {
	html.owd-printing body > *:not(.owd-print) { display: none !important; }
	html.owd-printing, html.owd-printing body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
	html.owd-printing .owd-print { display: block !important; }
}

/* Druck/PDF: Zellbreiten inkl. Innenabstand wie im Editor (sonst ragen Tabellen über den Rand) */
.owd-print, .owd-print *, .owd-print *::before, .owd-print *::after { box-sizing: border-box; }
