/* Office-Werkzeuge – lernoffice Präsentation: Oberfläche (Präfix owp-) */
.owp {
	--owp-acc: #1f7a68;
	--owp-acc-d: #155a4c;
	--owp-acc-m: #2a8c78;
	--owp-acc-l: #d5f2ea;
	--owp-acc-xl: #f1fbf8;
	--owp-ink: #1f2937;
	--owp-mut: #5b6574;
	--owp-line: #dcd6d0;
	--owp-line-l: #ebe7e3;
	--owp-chrome: #f3f8f6;
	--owp-canvas: #e1e9e6;
	--owp-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(--owp-ink);
	border: 1px solid var(--owp-line);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(41, 25, 12, .05), 0 12px 32px -18px rgba(41, 25, 12, .28);
	font: 13px/1.35 var(--owp-ui);
	text-align: left;
	isolation: isolate;
	-webkit-text-size-adjust: 100%;
	overflow: hidden;
}
.owp *, .owp *::before, .owp *::after, .owp-pop *, .owp-show * { box-sizing: border-box; }
.owp :where(button, input, select, textarea), .owp-pop :where(button, input, select) { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.owp :where(button), .owp-pop :where(button), .owp-show :where(button) { cursor: pointer; margin: 0; }
.owp svg.owp-i, .owp-pop svg.owp-i, .owp-show svg.owp-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.owp :focus-visible, .owp-pop :focus-visible { outline: 2px solid var(--owp-acc); outline-offset: 1px; }
.owp .owp-txi:focus-visible, .owp .owp-tbl td:focus-visible, .owp .owp-sorter:focus-visible, .owp .owp-thumbs:focus-visible, .owp .owp-canvas:focus-visible, .owp .owp-notesta:focus-visible { outline: none; }
.owp-muted { color: var(--owp-mut); }
.owp-small { font-size: 12px; }
.owp kbd, .owp-pop kbd { font: 600 11px/1 Consolas, "Cascadia Mono", monospace; background: #fff; border: 1px solid var(--owp-line); border-bottom-width: 2px; border-radius: 4px; padding: 2px 4px; color: var(--owp-ink); }

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

.owp-ribbon { padding: 0 8px 8px; }
.owp-panel { display: flex; align-items: stretch; min-height: 113px; padding: 4px 4px 2px; background: #fff; border: 1px solid var(--owp-line-l); border-radius: 10px; box-shadow: 0 1px 2px rgba(41, 25, 12, .04); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.owp-panel[hidden] { display: none; }
.owp-grp { display: flex; flex-direction: column; flex: none; position: relative; padding: 0 7px; }
.owp-grp + .owp-grp::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--owp-line-l); }
.owp-gin { flex: 1 1 auto; display: flex; align-items: center; gap: 2px; }
.owp-gl { flex: none; text-align: center; font-size: 11px; color: #958b82; line-height: 16px; white-space: nowrap; padding-top: 1px; }
.owp-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: #3b3330; white-space: nowrap; position: relative; transition: background-color .12s, color .12s; }
.owp-b:hover:not(:disabled) { background: #eef8f4; color: var(--owp-acc-d); }
.owp-b:active:not(:disabled) { background: #d9f0e8; }
.owp-b.on { background: var(--owp-acc-l); color: var(--owp-acc-d); border-color: #86d1bd; }
.owp-b:disabled { opacity: .36; cursor: default; }
.owp-bt { padding: 0 9px 0 7px; }
.owp-bl { font-size: 12.5px; font-weight: 500; }
.owp-dd { padding-right: 4px; }
.owp-dd svg.owp-chev, .owp-sarr svg.owp-chev { width: 12px; height: 12px; stroke-width: 2.2; margin-left: -1px; opacity: .7; }
.owp-li { display: inline-block; width: 18px; text-align: center; font: 700 15px/1 Georgia, "Times New Roman", serif; }
.owp-li-f { font-family: var(--owp-ui); font-weight: 800; }
.owp-li-k { font-style: italic; font-weight: 600; }
.owp-li-u { text-decoration: underline; text-underline-offset: 2px; font-family: var(--owp-ui); font-weight: 600; }
.owp-li-s { text-decoration: line-through; font-family: var(--owp-ui); font-weight: 600; }
.owp-split { display: inline-flex; align-items: center; border-radius: 7px; }
.owp-split > .owp-b:first-child { flex-direction: column; gap: 0; padding: 3px 4px 0; border-radius: 7px 0 0 7px; }
.owp-split > .owp-b:first-child svg.owp-i { width: 16px; height: 16px; }
.owp-split:hover > .owp-b:not(:disabled) { background: #f5faf8; }
.owp-sarr { min-width: 16px; padding: 0 2px; border-radius: 0 7px 7px 0; }
.owp-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); }
.owp-sel { height: 30px; border: 1px solid var(--owp-line); border-radius: 7px; background: #fff; padding: 0 6px; margin: 0 2px; color: var(--owp-ink); }
.owp-sel:hover:not(:disabled) { border-color: #bfb5ab; }
.owp-sel:focus { border-color: var(--owp-acc); outline: none; box-shadow: 0 0 0 2px var(--owp-acc-l); }
.owp-sel:disabled { opacity: .5; }
.owp-sel-font { width: 140px; }
.owp-sizebox { display: inline-flex; align-items: center; }
.owp-sel-size { width: 46px; margin-right: 0; border-radius: 7px 0 0 7px; text-align: center; }
.owp-sizedd { height: 28px; min-width: 18px; border: 1px solid var(--owp-line); border-left: 0; border-radius: 0 7px 7px 0; margin-right: 4px; }
.owp-fnl { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; color: var(--owp-mut); font-size: 12px; }
.owp-fnin { height: 30px; width: 220px; border: 1px solid var(--owp-line); border-radius: 7px; padding: 0 8px; color: var(--owp-ink); font-size: 13px; }
.owp-fnin:focus { border-color: var(--owp-acc); outline: none; box-shadow: 0 0 0 2px var(--owp-acc-l); }
.owp-rinfo { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--owp-mut); line-height: 1.35; margin-left: 10px; }
.owp-rinfo svg.owp-i { color: var(--owp-acc); }
.owp-rinfo b { color: var(--owp-ink); }
.owp-keys { margin-left: 2px; line-height: 1.9; }
.owp-rows { display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.owp-row { display: flex; align-items: center; gap: 1px; }
.owp-row .owp-b { height: 28px; min-width: 28px; padding: 0 5px; }
.owp-row .owp-bt { padding: 0 8px 0 5px; justify-content: flex-start; }
.owp-row .owp-sel { height: 28px; margin: 0 2px 0 0; }
.owp-b.owp-big { flex-direction: column; justify-content: center; height: 64px; min-width: 54px; max-width: 98px; padding: 4px 7px 3px; gap: 4px; }
.owp-big svg.owp-i { width: 25px; height: 25px; stroke-width: 1.55; }
.owp-big .owp-bl { font-size: 11.5px; line-height: 1.15; white-space: normal; text-align: center; hyphens: manual; }
.owp-big.owp-dd svg.owp-chev { display: none; }
.owp-big.owp-dd .owp-bl::after { content: " ▾"; font-size: 10px; color: #8a7f75; }
/* Neue Folie (geteilter großer Knopf) */
.owp-bigsplit { display: inline-flex; flex-direction: column; align-items: stretch; height: 66px; border-radius: 8px; }
.owp-bigsplit .owp-b { border-radius: 8px 8px 0 0; min-width: 62px; }
.owp-bsa { height: 38px; }
.owp-bsa svg.owp-i { width: 26px; height: 26px; stroke-width: 1.55; }
.owp-bsb { height: 26px; border-radius: 0 0 8px 8px !important; gap: 2px; padding: 0 4px; }
.owp-bsb .owp-bl { font-size: 11.5px; }
.owp-bigsplit:hover .owp-b:not(:disabled) { background: #f5faf8; }
.owp-bigsplit .owp-b:hover:not(:disabled) { background: #eef8f4; }
/* Formen-Minigalerie */
.owp-shmini { display: grid; grid-template-columns: repeat(4, 27px) 18px; grid-template-rows: 27px 27px; gap: 2px; padding: 2px; border: 1px solid var(--owp-line-l); border-radius: 8px; background: #fdfcfb; }
.owp-shb { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid transparent; border-radius: 5px; background: none; padding: 0; }
.owp-shb:hover { background: var(--owp-acc-xl); border-color: #a9e2d3; }
.owp-shmore { grid-row: 1 / 3; grid-column: 5; height: auto !important; min-width: 18px !important; padding: 0 !important; }
svg.owp-shi { width: 21px; height: 18px; overflow: visible; }
svg.owp-shi path { fill: #fde4d3; stroke: #155a4c; stroke-width: 1.3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* Design-Galerie */
.owp-grp-themes { flex: 1 1 auto; min-width: 260px; }
.owp-grp-themes .owp-gin { min-width: 0; }
.owp-thgal { display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; height: 76px; border: 1px solid var(--owp-line-l); border-radius: 8px; background: #fdfcfb; overflow: hidden; }
.owp-thlist { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; padding: 3px; min-width: 0; height: 74px; overflow: hidden; }
.owp-thi { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 88px; height: 68px; padding: 3px; border: 1px solid transparent; border-radius: 6px; background: none; }
.owp-thi img { display: block; width: 100%; height: 46px; object-fit: contain; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); background: #fff; }
.owp-thi span { font-size: 10.5px; line-height: 13px; color: var(--owp-mut); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owp-thgrid .owp-thi img { height: auto; }
.owp-thi:hover { border-color: #86d1bd; background: var(--owp-acc-xl); }
.owp-thi.on { border-color: var(--owp-acc); box-shadow: inset 0 0 0 1px var(--owp-acc); background: var(--owp-acc-xl); }
.owp-thmore { height: auto !important; min-width: 20px !important; border-radius: 0 !important; border-left: 1px solid var(--owp-line-l) !important; }
.owp-varlist { display: grid; grid-template-columns: repeat(4, 50px); gap: 4px; }
.owp-vari { padding: 2px; border: 1px solid transparent; border-radius: 6px; background: none; }
.owp-vari:hover { border-color: #86d1bd; }
.owp-vari.on { border-color: var(--owp-acc); box-shadow: inset 0 0 0 1px var(--owp-acc); }
.owp-varbg { position: relative; display: block; height: 52px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); overflow: hidden; }
.owp-varbg b { position: absolute; left: 6px; top: 5px; font: 700 15px/1 var(--owp-ui); }
.owp-varbg i { position: absolute; bottom: 6px; width: 7px; height: 16px; border-radius: 1px; }
.owp-varbg i:nth-of-type(1) { left: 6px; }
.owp-varbg i:nth-of-type(2) { left: 15px; }
.owp-varbg i:nth-of-type(3) { left: 24px; }
.owp-varbg i:nth-of-type(4) { left: 33px; }
/* Größe (cm) */
.owp-geo { display: grid; gap: 3px; }
.owp-pf { display: grid; grid-template-columns: 54px 58px 20px; align-items: center; gap: 5px; font-size: 12px; color: #4a4038; }
.owp-pfin { height: 24px; width: 100%; border: 1px solid var(--owp-line); border-radius: 6px; padding: 0 6px; text-align: right; font-variant-numeric: tabular-nums; }
.owp-pfin:focus { border-color: var(--owp-acc); outline: none; box-shadow: 0 0 0 2px var(--owp-acc-l); }
.owp-pfin:disabled { background: #f6f4f2; }
.owp-pf i { font-style: normal; color: var(--owp-mut); font-size: 11.5px; }
/* Verdichtung bei wenig Platz */
.owp-rc1 .owp-row .owp-bt[data-lv="1"] .owp-bl { display: none; }
.owp-rc1 .owp-row .owp-bt[data-lv="1"] { padding: 0 5px; }
.owp-rc1 .owp-grp { padding: 0 5px; }
.owp-rc2 .owp-gl { display: none; }
.owp-rc2 .owp-panel { min-height: 76px; }
.owp-rc2 .owp-big { min-width: 46px; padding: 4px 4px 3px; }
.owp-rc2 .owp-big .owp-bl { font-size: 11px; }
.owp-rc2 .owp-grp-themes { min-width: 190px; }
.owp-rc3 .owp-sel-font { width: 108px; }
.owp-rc3 .owp-grp { padding: 0 3px; }
.owp-rc3 .owp-keys { display: none; }

/* ---------- Arbeitsbereich ---------- */
.owp-body { flex: 1 1 auto; display: flex; min-height: 0; position: relative; }
.owp-side { flex: none; width: 196px; display: flex; flex-direction: column; min-height: 0; background: var(--owp-chrome); border-right: 1px solid var(--owp-line); }
.owp-side[hidden] { display: none; }
.owp-thumbs { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 10px 10px 4px 4px; position: relative; outline: none; scrollbar-width: thin; scrollbar-color: #c9c0b7 transparent; }
.owp-th { position: relative; display: grid; grid-template-columns: 24px 1fr; align-items: start; margin-bottom: 12px; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.owp-thn { padding-top: 2px; text-align: right; padding-right: 7px; font-size: 11.5px; font-weight: 600; color: #7b7068; font-variant-numeric: tabular-nums; }
.owp-thf { position: relative; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(41, 25, 12, .14), 0 1px 3px rgba(41, 25, 12, .1); transition: box-shadow .12s; }
.owp-thf img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; }
.owp-th:hover .owp-thf { box-shadow: 0 0 0 2px #86d1bd, 0 2px 6px rgba(41, 25, 12, .14); }
.owp-th.on .owp-thf { box-shadow: 0 0 0 2.5px var(--owp-acc), 0 4px 12px -2px rgba(31, 122, 104, .35); }
.owp-th.on .owp-thn { color: var(--owp-acc); }
.owp-thumbs:focus-visible .owp-th.on .owp-thf { box-shadow: 0 0 0 2.5px var(--owp-acc), 0 0 0 5px var(--owp-acc-l); }
.owp-th.owp-hidden .owp-thf img { opacity: .45; }
.owp-th.owp-hidden .owp-thn { text-decoration: line-through; }
.owp-th.owp-hidden .owp-thf::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(120, 113, 108, .12) 8px 10px); }
.owp-thmenu { position: absolute; right: 4px; top: 4px; display: none; place-items: center; width: 24px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .92); color: var(--owp-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.owp-thmenu svg.owp-i { width: 16px; height: 16px; }
.owp-th:hover .owp-thmenu, .owp-th.on .owp-thmenu { display: grid; }
.owp-thmenu:hover { background: #fff; color: var(--owp-acc); }
.owp-th.owp-thdrag { opacity: .45; }
.owp-thmark { position: absolute; height: 3px; border-radius: 2px; background: var(--owp-acc); pointer-events: none; z-index: 3; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.owp-thmark.owp-thmark-v { width: 3px; }
.owp-addslide { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 10px 10px 28px; height: 32px; border: 1px dashed #c9bfb6; border-radius: 8px; background: rgba(255, 255, 255, .6); color: var(--owp-mut); font-weight: 600; font-size: 12.5px; }
.owp-addslide:hover { border-color: var(--owp-acc); color: var(--owp-acc); background: #fff; }
.owp-addslide svg.owp-i { width: 16px; height: 16px; }

.owp-main { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.owp-main[hidden] { display: none; }
.owp-canvaswrap { flex: 1 1 auto; position: relative; min-width: 0; min-height: 0; }
.owp-canvas { position: absolute; inset: 0; overflow: auto; background: var(--owp-canvas); overscroll-behavior: contain; outline: none; scrollbar-width: thin; scrollbar-color: #bdb3aa transparent; }
.owp-stage { position: relative; }
.owp-slide { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: #fff; box-shadow: 0 0 0 1px rgba(41, 25, 12, .08), 0 2px 6px rgba(41, 25, 12, .08), 0 18px 40px -20px rgba(41, 25, 12, .45); overflow: hidden; touch-action: none; }
.owp-bg, .owp-els { position: absolute; inset: 0; }
.owp-bg svg { display: block; width: 100%; height: 100%; }
.owp-bg { pointer-events: none; }
.owp-empty .owp-slide::after { content: "Klicken Sie hier, um die erste Folie hinzuzufügen"; position: absolute; inset: 0; display: grid; place-items: center; font: 600 26px/1.3 var(--owp-ui); color: #9a8f86; cursor: pointer; }

/* Elemente auf der Folie */
.owp-el { position: absolute; transform-origin: 50% 50%; cursor: move; }
.owp-el-line { pointer-events: none; }
.owp-lsvg { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.owp-lhit { stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: move; }
.owp-shp { position: absolute; left: 0; top: 0; overflow: visible; }
.owp-tx { position: absolute; display: flex; flex-direction: column; justify-content: flex-start; overflow: visible; }
.owp-va-middle { justify-content: center; }
.owp-va-bottom { justify-content: flex-end; }
/* Textregeln wie OWP.TEXT_CSS in pptx.js (render/Export identisch) */
.owp-txi { flex: none; min-width: 0; line-height: normal; overflow-wrap: break-word; word-wrap: break-word; white-space: pre-wrap; outline: none; margin: 0; padding: 0; }
.owp-txi :is(p, li) { margin: 0; padding: 0; }
.owp-txi li + li { margin-top: .25em; }
.owp-txi :is(ul, ol) { margin: 0; padding: 0 0 0 1.25em; }
.owp-txi ul { list-style: disc; }
.owp-txi ul ul { list-style: circle; }
.owp-txi ol { list-style: decimal; }
.owp-txi ol ol { list-style: lower-alpha; }
.owp-txi li::marker { color: inherit; }
.owp-txi strong { font-weight: 700; }
.owp-txi em { font-style: italic; }
.owp-txi u { text-decoration: underline; text-underline-offset: .12em; }
.owp-txi s { text-decoration: line-through; }
.owp-txi :is(p, li):empty::before { content: "\200b"; }
.owp-phempty { outline: 1.5px dashed rgba(120, 113, 108, .55); outline-offset: -1px; }
.owp-phempty .owp-txi { opacity: .5; }
.owp-edit { cursor: default; }
.owp-edit .owp-txi, .owp-edit td { cursor: text; -webkit-user-select: text; user-select: text; }
.owp-edit .owp-txi::selection, .owp-edit .owp-txi *::selection { background: rgba(31, 122, 104, .28); }
.owp-img { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.owp-imgph { display: grid; place-items: center; align-content: center; gap: 6px; width: 100%; height: 100%; background: #f3f0ed; color: #9a8f86; font-size: 18px; outline: 1.5px dashed #c9bfb6; outline-offset: -2px; }
.owp-imgph svg.owp-i { width: 42px; height: 42px; }
.owp-tbl { width: 100%; height: 100%; border-collapse: collapse; table-layout: fixed; line-height: normal; }
.owp-tbl td { border: 1px solid; padding: 4.8px 9.6px; vertical-align: top; overflow-wrap: break-word; text-align: left; outline: none; white-space: pre-wrap; }
.owp-tbl td :is(p, li) { margin: 0; padding: 0; }
.owp-tbl td li + li { margin-top: .25em; }
.owp-tbl td :is(ul, ol) { margin: 0; padding: 0 0 0 1.25em; }
.owp-tbl td:focus { box-shadow: inset 0 0 0 2px rgba(31, 122, 104, .55); }
.owp-dragging, .owp-dragging * { cursor: move !important; }
.owp-rotating, .owp-rotating * { cursor: grabbing !important; }

/* Auswahl & Anfasser */
.owp-ovl { position: absolute; pointer-events: none; z-index: 2; }
.owp-frame { position: absolute; border: 1px solid var(--owp-acc); transform-origin: 50% 50%; }
.owp-frame.owp-multi { border-style: dashed; border-color: rgba(31, 122, 104, .75); }
.owp-frame.owp-editing { border: 1.5px dashed var(--owp-acc); }
.owp-frame.owp-group { border: 1px dashed #6b6158; }
.owp-h { position: absolute; width: 11px; height: 11px; margin: -6px 0 0 -6px; border: 1.5px solid var(--owp-acc); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); pointer-events: auto; touch-action: none; }
.owp-h-nw { left: 0; top: 0; } .owp-h-n { left: 50%; top: 0; } .owp-h-ne { left: 100%; top: 0; } .owp-h-e { left: 100%; top: 50%; }
.owp-h-se { left: 100%; top: 100%; } .owp-h-s { left: 50%; top: 100%; } .owp-h-sw { left: 0; top: 100%; } .owp-h-w { left: 0; top: 50%; }
.owp-h:is(.owp-h-n, .owp-h-s, .owp-h-e, .owp-h-w) { border-radius: 3px; }
.owp-hrot { left: 50%; top: -28px; width: 16px; height: 16px; margin: -8px 0 0 -8px; cursor: grab; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.4-5.7'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.owp-hrot::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 13px; background: var(--owp-acc); }
.owp-editing .owp-h, .owp-editing .owp-hrot { display: none; }
.owp-hp { border-radius: 50%; width: 13px; height: 13px; margin: -7px 0 0 -7px; cursor: crosshair; }
.owp-lsel { position: absolute; height: 0; border-top: 1px dashed var(--owp-acc); transform-origin: 0 0; }
.owp-guide { position: absolute; }
.owp-gv { width: 0; border-left: 1px dashed #e11d48; }
.owp-gh { height: 0; border-top: 1px dashed #e11d48; }
.owp-cguide { position: absolute; }
.owp-cgv { top: 0; bottom: 0; border-left: 1px dashed rgba(120, 113, 108, .45); }
.owp-cgh { left: 0; right: 0; border-top: 1px dashed rgba(120, 113, 108, .45); }
.owp-marquee { position: absolute; border: 1px solid var(--owp-acc); background: rgba(31, 122, 104, .08); }

.owp-drop { position: absolute; inset: 10px; z-index: 30; display: none; place-items: center; border: 2px dashed var(--owp-acc); border-radius: 12px; background: rgba(255, 247, 237, .92); pointer-events: none; }
.owp-drop.on { display: grid; }
.owp-drop > div { display: grid; justify-items: center; gap: 6px; color: var(--owp-acc-d); text-align: center; }
.owp-drop svg.owp-i { width: 40px; height: 40px; }
.owp-drop b { font-size: 16px; }

/* Notizen */
.owp-notes { flex: none; display: flex; flex-direction: column; border-top: 1px solid var(--owp-line); background: #fff; }
.owp-notesh { display: flex; align-items: center; height: 26px; padding: 0 8px; background: var(--owp-chrome); border-bottom: 1px solid var(--owp-line-l); }
.owp-notest { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 6px; border-radius: 5px; font-size: 12px; font-weight: 600; color: var(--owp-mut); }
.owp-notest:hover { background: #efe9e3; color: var(--owp-ink); }
.owp-notest svg.owp-i { width: 14px; height: 14px; transition: transform .15s; }
.owp-notesta { display: block; width: 100%; height: 74px; resize: vertical; min-height: 40px; max-height: 40vh; border: 0; padding: 8px 14px; font: 13.5px/1.45 var(--owp-ui); color: var(--owp-ink); outline: none; background: #fff; }
.owp-notesta::placeholder { color: #a39a92; }
.owp-notes.owp-closed .owp-notesta { display: none; }
.owp-notes.owp-closed .owp-notest svg.owp-i { transform: rotate(-90deg); }
.owp-notes.owp-closed .owp-notesh { border-bottom: 0; }

/* Foliensortierung */
.owp-sorter { flex: 1 1 auto; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); align-content: start; gap: 22px 20px; padding: 22px 26px; background: var(--owp-canvas); position: relative; outline: none; }
.owp-sorter[hidden] { display: none; }
.owp-sorter .owp-th { grid-template-columns: 1fr; margin: 0; }
.owp-sorter .owp-thn { order: 2; text-align: left; padding: 6px 0 0 2px; }
.owp-sorter .owp-thf { order: 1; }

/* Modus-Bereich (Sonder-Modi) */
.owp-mode { position: absolute; inset: 0; z-index: 20; overflow: auto; background: #fff; }
.owp-mode[hidden] { display: none; }
.owp-modemsg { max-width: 460px; margin: 60px auto; padding: 26px 28px; border: 1px solid var(--owp-line-l); border-radius: 14px; text-align: center; box-shadow: 0 10px 30px -18px rgba(41, 25, 12, .35); }
.owp-modemsg > svg.owp-i { width: 34px; height: 34px; color: var(--owp-acc); }
.owp-modemsg h3 { margin: 8px 0 6px; font-size: 18px; }
.owp-modemsg p { margin: 0 0 16px; color: var(--owp-mut); line-height: 1.5; }

/* ---------- Statusleiste ---------- */
.owp-status { flex: none; display: flex; align-items: center; gap: 4px; height: 30px; padding: 0 8px; background: var(--owp-chrome); border-top: 1px solid var(--owp-line); font-size: 12px; color: var(--owp-mut); white-space: nowrap; }
.owp-sbtn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 3px 8px; border-radius: 5px; color: inherit; font-size: 12px; font-variant-numeric: tabular-nums; }
.owp-sbtn:hover { background: #e2ebe8; color: var(--owp-ink); }
.owp-sbtn svg.owp-i { width: 15px; height: 15px; }
.owp-sbtn.on { color: var(--owp-acc-d); }
.owp-sitem { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; }
.owp-sfill { flex: 1 1 auto; }
.owp-szoom { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
.owp-zb { display: inline-grid; place-items: center; width: 24px; height: 22px; border: 0; border-radius: 5px; background: none; color: #5b524b; }
.owp-zb svg.owp-i { width: 15px; height: 15px; }
.owp-zb:hover { background: #e2ebe8; }
.owp-vbtn.on { background: #d9f0e8; color: var(--owp-acc-d); }
.owp-vbtn:last-of-type svg.owp-i { fill: currentColor; stroke-width: 1.2; width: 12px; height: 12px; }
.owp-zr { width: 100px; accent-color: var(--owp-acc); height: 16px; }
.owp-zl { border: 0; background: none; min-width: 46px; padding: 2px 4px; border-radius: 5px; font-size: 12px; color: var(--owp-mut); font-variant-numeric: tabular-nums; }
.owp-zl:hover { background: #e2ebe8; }

/* ---------- Menüs & Schwebendes ---------- */
.owp-pop { position: fixed; z-index: 100060; }
.owp-menu { min-width: 220px; max-width: min(460px, calc(100vw - 16px)); padding: 6px; background: #fff; border: 1px solid var(--owp-line); border-radius: 10px; box-shadow: 0 16px 40px -12px rgba(41, 25, 12, .38), 0 2px 6px rgba(41, 25, 12, .08); overflow-y: auto; font: 13px/1.3 var(--owp-ui); color: var(--owp-ink); }
.owp-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(--owp-ink); }
.owp-mi:hover:not(:disabled), .owp-mi:focus-visible { background: #eef8f4; color: var(--owp-acc-d); outline: none; }
.owp-mi:disabled { opacity: .4; cursor: default; }
.owp-mi .owp-i { width: 18px; height: 18px; color: #5b524b; }
.owp-mi span.owp-i { display: inline-block; }
.owp-mi svg.owp-mchk { visibility: hidden; color: var(--owp-acc); stroke-width: 2.4; }
.owp-mi.on svg.owp-mchk { visibility: visible; }
.owp-mi.on { font-weight: 600; }
.owp-mi.on .owp-i { color: var(--owp-acc); }
.owp-ml { flex: 1 1 auto; display: grid; gap: 1px; }
.owp-ml small { font-size: 11.5px; color: var(--owp-mut); font-weight: 400; }
.owp-mk { color: #958b82; font-size: 11.5px; margin-left: 12px; }
.owp-msep { height: 1px; margin: 5px 4px; background: var(--owp-line-l); }
.owp-mcustom { padding: 2px; }
.owp-lgt, .owp-tgrid-t { padding: 2px 4px 7px; font-weight: 600; font-size: 12px; color: var(--owp-mut); }
.owp-lgrid { display: grid; grid-template-columns: repeat(3, 118px); gap: 8px; padding: 0 4px 4px; }
.owp-lgi { display: grid; gap: 4px; padding: 4px; border: 1px solid transparent; border-radius: 7px; background: none; text-align: center; }
.owp-lgi img { display: block; width: 100%; aspect-ratio: var(--ar, 16/9); object-fit: contain; border-radius: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(41, 25, 12, .15); }
.owp-lgi span { font-size: 11px; line-height: 1.2; color: var(--owp-ink); }
.owp-lgi:hover { border-color: #86d1bd; background: var(--owp-acc-xl); }
.owp-lgi.on { border-color: var(--owp-acc); background: var(--owp-acc-xl); }
.owp-shgrid { display: grid; grid-template-columns: repeat(7, 36px); gap: 3px; padding: 0 4px 4px; }
.owp-shg { display: grid; place-items: center; width: 36px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 6px; background: none; color: #5b524b; }
.owp-shg:hover { background: var(--owp-acc-xl); border-color: #a9e2d3; }
.owp-shg svg.owp-shi { width: 24px; height: 21px; }
.owp-thgrid { display: grid; grid-template-columns: repeat(4, 124px); gap: 8px; padding: 0 4px 4px; }
.owp-thgrid .owp-thi { width: auto; height: auto; padding: 4px; gap: 4px; }
.owp-thgrid .owp-thi img { max-height: none; }
.owp-thgrid .owp-thi span { font-size: 11.5px; color: var(--owp-ink); }
.owp-pal { display: grid; gap: 6px; padding: 4px; }
.owp-palt { font-weight: 600; font-size: 12px; color: var(--owp-mut); }
.owp-palsub { font-size: 11px; color: #958b82; margin-top: 2px; }
.owp-palnone { border: 1px solid var(--owp-line); background: #fff; border-radius: 6px; padding: 5px 8px; text-align: left; }
.owp-palnone:hover { border-color: var(--owp-acc); }
.owp-palg { display: grid; grid-template-columns: repeat(10, 20px); gap: 3px 4px; }
.owp-palg5 { grid-template-columns: repeat(5, 26px); }
.owp-palg5 .owp-sw { width: 26px; height: 22px; }
.owp-sw { width: 20px; height: 20px; padding: 0; border: 1px solid rgba(0, 0, 0, .14); border-radius: 4px; }
.owp-swt { height: 15px; border-radius: 2px; }
.owp-sw:hover { transform: scale(1.15); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--owp-acc); }
.owp-sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--owp-acc); }
.owp-palmore { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--owp-mut); cursor: pointer; }
.owp-palmore input { width: 36px; height: 24px; padding: 0; border: 1px solid var(--owp-line); border-radius: 4px; background: #fff; }
.owp-opac { display: flex; flex-wrap: wrap; gap: 4px; }
.owp-opac button { border: 1px solid var(--owp-line); background: #fff; border-radius: 6px; padding: 4px 8px; font-size: 12px; }
.owp-opac button:hover, .owp-wgrid button:hover { border-color: var(--owp-acc); color: var(--owp-acc-d); }
.owp-wgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.owp-wgrid button { display: flex; align-items: center; gap: 8px; border: 1px solid transparent; background: none; border-radius: 6px; padding: 4px 6px; font-size: 12px; text-align: left; }
.owp-wgrid i { display: inline-block; width: 34px; background: var(--owp-ink); border-radius: 1px; }
.owp-tgrid { display: grid; grid-template-columns: repeat(10, 18px); gap: 3px; padding: 0 4px 4px; }
.owp-tgc { width: 18px; height: 18px; padding: 0; border: 1px solid #d4cbc2; border-radius: 2px; background: #fff; }
.owp-tgc.on { background: var(--owp-acc-l); border-color: var(--owp-acc); }
.owp-symg { display: grid; grid-template-columns: repeat(10, 30px); gap: 2px; padding: 2px; }
.owp-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(--owp-ink); }
.owp-sym:hover { background: var(--owp-acc-xl); border-color: #a9e2d3; }
.owp-toast { position: absolute; left: 50%; bottom: 46px; transform: translate(-50%, 10px); max-width: min(560px, calc(100% - 32px)); padding: 9px 16px; background: #292524; color: #fff; border-radius: 10px; font: 13px/1.4 var(--owp-ui); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 40; text-align: center; }
.owp-toast.on { opacity: 1; transform: translate(-50%, 0); }
.owp-toast.owp-ok { background: #166534; }
.owp-toast.owp-warn { background: #92400e; }
.owp-toast.owp-err { background: #991b1b; }
.owp-toast.owp-toastw { text-align: left; }
.owp-toastl { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.45; }
.owp-show .owp-toast { position: fixed; bottom: 70px; z-index: 5; }

/* ---------- Dialoge ---------- */
.owp-ov { position: fixed; inset: 0; z-index: 100070; display: grid; place-items: center; padding: 16px; background: rgba(28, 20, 14, .42); animation: owpFade .12s ease-out; font: 13.5px/1.45 var(--owp-ui); }
@keyframes owpFade { from { opacity: 0; } }
.owp-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(28, 20, 14, .55); color: var(--owp-ink); }
.owp-dlg.owp-wide { width: min(860px, 100%); }
.owp-dh { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 6px 20px; }
.owp-dh h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--owp-ink); }
.owp-x { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 7px; background: none; color: #6b6158; }
.owp-x:hover { background: #f5f0eb; color: var(--owp-ink); }
.owp-db { padding: 4px 20px 10px; overflow: auto; }
.owp-db p { margin: 0 0 10px; }
.owp-df { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 10px 20px 18px; }
.owp-df .owp-left { margin-right: auto; }
.owp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 14px; border: 1px solid var(--owp-line); border-radius: 8px; background: #fff; color: var(--owp-ink); font-weight: 600; font-size: 13px; white-space: nowrap; text-decoration: none; cursor: pointer; }
.owp-btn:hover:not(:disabled) { border-color: #b8aca1; background: #fcfaf8; }
.owp-btn:disabled { opacity: .45; cursor: default; }
.owp-btn svg.owp-i { width: 16px; height: 16px; }
.owp-btn.owp-pri { background: var(--owp-acc); border-color: var(--owp-acc); color: #fff; }
.owp-btn.owp-pri:hover:not(:disabled) { background: var(--owp-acc-d); border-color: var(--owp-acc-d); color: #fff; }
.owp-btn.owp-ghost { border-color: transparent; background: none; color: var(--owp-mut); }
.owp-btn.owp-ghost:hover:not(:disabled) { background: #f3eee9; color: var(--owp-ink); }
.owp-btn.owp-small { min-height: 30px; padding: 0 11px; font-size: 12.5px; }
.owp-form { display: grid; gap: 10px; }
.owp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.owp-span2 { grid-column: span 2; }
.owp-fl { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: #4a4038; }
.owp-in { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--owp-line); border-radius: 8px; background: #fff; color: var(--owp-ink); font-weight: 400; font-size: 13.5px; }
.owp-in:focus { border-color: var(--owp-acc); outline: none; box-shadow: 0 0 0 3px var(--owp-acc-l); }
.owp-cin { padding: 2px 4px; height: 36px; cursor: pointer; }
.owp-fl input[type="range"] { accent-color: var(--owp-acc); }
.owp-fl output { font-weight: 400; color: var(--owp-mut); }
.owp-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--owp-line); border-radius: 9px; padding: 3px; background: #faf8f6; }
.owp-seg label { position: relative; cursor: pointer; }
.owp-seg input { position: absolute; opacity: 0; pointer-events: none; }
.owp-seg span { display: block; padding: 6px 4px; border-radius: 6px; text-align: center; font-weight: 600; font-size: 12.5px; color: var(--owp-mut); }
.owp-seg input:checked + span { background: #fff; color: var(--owp-acc-d); box-shadow: 0 1px 3px rgba(41, 25, 12, .18); }
.owp-seg input:focus-visible + span { outline: 2px solid var(--owp-acc); }
.owp-bgp { display: grid; gap: 10px; }
.owp-bgp[hidden] { display: none; }
.owp-bgsw { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; }
.owp-bgsw .owp-sw { width: 100%; height: 22px; }
.owp-bgnote { margin: 4px 0 0 !important; }
/* Neue Präsentation */
.owp-dlg-new .owp-db { padding-bottom: 20px; }
.owp-newfmt { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; font-size: 12.5px; color: var(--owp-mut); }
.owp-newfmt span { margin-right: 4px; font-weight: 600; }
.owp-newfmt button { border: 1px solid var(--owp-line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; }
.owp-newfmt button.on { border-color: var(--owp-acc); background: var(--owp-acc-xl); color: var(--owp-acc-d); font-weight: 600; }
.owp-newsec { margin: 6px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--owp-acc); }
.owp-newgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.owp-newi { display: grid; gap: 6px; padding: 6px; border: 1px solid transparent; border-radius: 10px; background: none; text-align: center; }
.owp-newi img { display: block; width: 100%; max-height: 220px; object-fit: contain; border-radius: 5px; box-shadow: 0 0 0 1px rgba(41, 25, 12, .14), 0 4px 10px -6px rgba(41, 25, 12, .35); background: #fff; }
.owp-newi span { font-size: 12.5px; font-weight: 600; }
.owp-newi:hover { border-color: #86d1bd; background: var(--owp-acc-xl); }

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

/* ---------- Vollbild (Editor) ---------- */
.owp.owp-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.owp-noscroll, html.owp-noscroll body { overflow: hidden !important; }

/* ---------- Bildschirmpräsentation ---------- */
.owp-show { position: fixed; inset: 0; z-index: 100050; display: grid; place-items: center; background: #000; outline: none; cursor: none; user-select: none; -webkit-user-select: none; touch-action: none; font: 14px/1.4 "Segoe UI", system-ui, sans-serif; color: #fff; }
.owp-show.owp-shui { cursor: default; }
.owp-shst { position: relative; }
.owp-shl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; pointer-events: none; }
.owp-shl.on { opacity: 1; }
.owp-fade .owp-shl { transition: opacity .38s ease; }
.owp-shcover { position: fixed; inset: 0; display: none; z-index: 2; }
.owp-shcover.on { display: block; }
.owp-cv-black { background: #000; }
.owp-cv-white { background: #fff; }
.owp-shend { position: fixed; inset: 0; z-index: 2; display: none; align-items: flex-start; justify-content: center; padding-top: 8vh; background: #000; color: #d6d3d1; font-size: 18px; cursor: pointer; }
.owp-shended .owp-shend { display: flex; }
.owp-laser { position: fixed; z-index: 4; display: none; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle, #fff 0 15%, #ff1f1f 35%, rgba(255, 0, 0, .55) 60%, rgba(255, 0, 0, 0) 72%); box-shadow: 0 0 14px 4px rgba(255, 30, 30, .55); pointer-events: none; }
.owp-lasering .owp-laser { display: block; }
.owp-lasering, .owp-lasering * { cursor: none !important; }
.owp-shnum { position: fixed; right: 28px; bottom: 80px; z-index: 5; display: none; padding: 8px 18px; border-radius: 12px; background: rgba(0, 0, 0, .72); color: #fff; font: 700 40px/1 var(--owp-ui, "Segoe UI"), sans-serif; font-variant-numeric: tabular-nums; }
.owp-shnum.on { display: block; }
.owp-shtimer { position: fixed; right: 22px; top: 18px; z-index: 5; min-width: 64px; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; text-align: center; font: 700 30px/1 "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.owp-shtimer[hidden] { display: none; }
.owp-shtimer.owp-urgent { background: #1f7a68; }
.owp-shbar { position: fixed; left: 18px; bottom: 18px; z-index: 6; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(28, 25, 23, .82); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); opacity: 0; transition: opacity .25s; backdrop-filter: blur(6px); }
.owp-shui .owp-shbar, .owp-shbar:focus-within, .owp-shbar:hover { opacity: 1; }
.owp-shbar button { display: inline-grid; place-items: center; width: 36px; height: 34px; border: 0; border-radius: 8px; background: none; color: #f5f5f4; }
.owp-shbar button:hover { background: rgba(255, 255, 255, .14); }
.owp-shbar i { width: 1px; height: 20px; margin: 0 4px; background: rgba(255, 255, 255, .2); }
.owp-shcnt { padding: 0 8px; font-size: 13px; color: #e7e5e4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.owp-shgrid { position: fixed; inset: 0; z-index: 7; overflow: auto; padding: 18px 26px 30px; background: rgba(12, 10, 9, .94); cursor: default; }
.owp-shgh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 16px; font-weight: 600; }
.owp-shgh button { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; }
.owp-shgl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.owp-shgl button { position: relative; padding: 0; border: 2px solid transparent; border-radius: 6px; background: #000; overflow: hidden; }
.owp-shgl button img { display: block; width: 100%; }
.owp-shgl button span { position: absolute; left: 6px; bottom: 5px; padding: 1px 7px; border-radius: 5px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; }
.owp-shgl button:hover { border-color: #86d1bd; }
.owp-shgl button.on { border-color: #2a8c78; }
.owp-shgl button.owp-hidden img { opacity: .45; }
.owp-show .owp-menu { cursor: default; }

/* ---------- Galerie-Modus ---------- */
.owp.owp-gallery { height: auto; border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; display: block; }
.owp-galhead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.owp-galf { display: flex; flex-wrap: wrap; gap: 6px; }
.owp-chip { border: 1px solid var(--owp-line); background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 13px; color: #4a4038; }
.owp-chip:hover { border-color: var(--owp-acc); color: var(--owp-acc-d); }
.owp-chip.on { background: var(--owp-acc); border-color: var(--owp-acc); color: #fff; }
.owp-galn { font-size: 13px; color: var(--owp-mut); }
.owp-galgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.owp-card { display: flex; flex-direction: column; border: 1px solid var(--owp-line-l); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(41, 25, 12, .05), 0 10px 26px -18px rgba(41, 25, 12, .35); transition: box-shadow .15s, transform .15s; }
.owp-card:hover { box-shadow: 0 2px 4px rgba(41, 25, 12, .06), 0 18px 36px -18px rgba(41, 25, 12, .45); transform: translateY(-2px); }
.owp-card[hidden] { display: none; }
.owp-cardprev { position: relative; display: block; width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--owp-line-l); background: #f3f0ed; cursor: zoom-in; overflow: hidden; }
.owp-cardprev img { display: block; width: 100%; height: 100%; object-fit: contain; }
.owp-cardzoom { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(28, 25, 23, .78); color: #fff; font-size: 12px; opacity: 0; transition: opacity .15s; }
.owp-cardzoom svg.owp-i { width: 14px; height: 14px; }
.owp-cardprev:hover .owp-cardzoom, .owp-cardprev:focus-visible .owp-cardzoom { opacity: 1; }
.owp-cardb { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1 1 auto; }
.owp-cardb h3 { margin: 0; font-size: 15.5px; line-height: 1.3; color: var(--owp-ink); }
.owp-cardb p { margin: 0 0 8px; font-size: 12.5px; color: var(--owp-mut); }
.owp-cardbtns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.owp-cardbtns [hidden] { display: none; }
.owp-galprev { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.owp-galprev figure { margin: 0; }
.owp-galprev img { display: block; width: 100%; border-radius: 6px; box-shadow: 0 0 0 1px rgba(41, 25, 12, .14), 0 6px 14px -8px rgba(41, 25, 12, .4); background: #fff; }
.owp-galprev figcaption { margin-top: 5px; font-size: 12px; color: var(--owp-mut); }
.owp-dlg-galprev { width: min(1100px, 100%) !important; }

/* ---------- Schmal / Mobil ---------- */
.owp-narrow .owp-titlebar .owp-saved span { display: none; }
.owp-narrow .owp-tname { max-width: 120px; }
.owp-narrow .owp-ribbon { padding: 0 6px 6px; }
.owp-narrow .owp-panel { min-height: 0; border-radius: 8px; }
.owp-narrow .owp-gl { display: none; }
.owp-narrow .owp-big { height: 54px; }
.owp-narrow .owp-bigsplit { height: 56px; }
.owp-narrow .owp-bsa { height: 32px; }
.owp-narrow .owp-bsb { height: 22px; }
.owp-narrow .owp-body { flex-direction: column; }
.owp-narrow .owp-side { width: auto; flex-direction: row; border-right: 0; border-bottom: 1px solid var(--owp-line); }
.owp-narrow .owp-thumbs { display: flex; overflow-x: auto; overflow-y: hidden; padding: 8px 6px 6px; gap: 6px; }
.owp-narrow .owp-th { flex: none; width: 112px; grid-template-columns: 1fr; margin: 0; touch-action: pan-x; }
.owp-narrow .owp-thn { position: absolute; left: 3px; bottom: 3px; top: auto; z-index: 1; padding: 0 5px; border-radius: 4px; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px rgba(41, 25, 12, .12); font-size: 10.5px; text-align: center; }
.owp-narrow .owp-thmenu { display: none !important; }
.owp-narrow .owp-addslide { width: 44px; margin: 8px 6px 6px 0; height: auto; }
.owp-narrow .owp-addslide span { display: none; }
.owp-narrow .owp-notesta { height: 56px; }
.owp-narrow .owp-lesson { order: -1; width: auto; max-height: none; border-left: 0; border-bottom: 1px solid var(--owp-line); padding: 12px 14px; gap: 10px; }
.owp-narrow.owp-mode-lesson { height: auto; }
.owp-narrow.owp-mode-lesson .owp-main { flex: none; height: 56vh; min-height: 300px; }
.owp-narrow .owp-zr, .owp-narrow .owp-slang, .owp-narrow .owp-vbtn { display: none; }
.owp-narrow .owp-tplreset span, .owp-narrow.owp-mode-template .owp-saved { display: none; }
.owp-narrow .owp-tplreset { padding: 0 7px; }
.owp-narrow .owp-sorter { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); padding: 14px; gap: 14px; }
.owp-narrow .owp-snotes span { display: none; }
.owp-tiny .owp-dlbtn span, .owp-tiny .owp-playbtn span { display: none; }
.owp-tiny .owp-dlbtn, .owp-tiny .owp-playbtn { padding: 0 8px; }
.owp-tiny .owp-tname { display: none; }
.owp-tiny .owp-tabrow { padding: 4px 6px 0; gap: 6px; }
.owp-tiny .owp-tab { padding: 7px 9px 9px; }
.owp-tiny .owp-sel-font { width: 104px; }
@media (max-width: 600px) {
	.owp-lgrid { grid-template-columns: repeat(2, 118px); }
	.owp-thgrid { grid-template-columns: repeat(2, 124px); }
	.owp-shgrid { grid-template-columns: repeat(6, 36px); }
	.owp-shbar { left: 50%; transform: translateX(-50%); bottom: 12px; }
	.owp-shbar [data-s="presenter"], .owp-shbar [data-s="laser"] { display: none; }
	.owp-shgl { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (pointer: coarse) {
	.owp-b { height: 36px; min-width: 36px; }
	.owp-row .owp-b { height: 34px; min-width: 34px; }
	.owp-h { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
	.owp-hrot { width: 22px; height: 22px; margin: -11px 0 0 -11px; top: -34px; }
	.owp-show { cursor: default; }
}
@media (prefers-reduced-motion: reduce) {
	.owp *, .owp-ov, .owp-show * { transition: none !important; animation: none !important; }
}

/* ---------- Druck / PDF: eine Folie pro Seite ---------- */
.owp-print { display: none; }
.owp-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; }
.owp-ppage:last-child { break-after: auto; page-break-after: auto; }
.owp-ppage > svg { display: block; width: 100%; height: 100%; }
@media print {
	html.owp-printing body > *:not(.owp-print) { display: none !important; }
	html.owp-printing, html.owp-printing body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
	html.owp-printing .owp-print { display: block !important; }
}

/* Übungen: Aufgaben-Panel immer vollständig zeigen (keine eigene Scrollleiste) */
.owp.owp-mode-lesson:not(.owp-narrow) { height: auto; min-height: max(580px, 84vh); }
.owp.owp-mode-lesson:not(.owp-narrow) .owp-body { flex: 1 0 auto; }
.owp.owp-mode-lesson:not(.owp-narrow) .owp-lesson { overflow: visible; }

/* Fenster fast bildschirmhoch (Bildschirm minus Kopfzeile der Website); am Ende des Inhalts scrollt die Seite weiter (keine Scroll-Falle) – Nutzerwunsch 16.11.2026 */
.owp:not(.owp-fs):not(.owp-mode-lesson) { height: max(520px, calc(100vh - 16px)); }
.owp.owp-mode-lesson:not(.owp-narrow):not(.owp-fs) { min-height: max(560px, calc(100vh - 16px)); }
.owp-canvas { overscroll-behavior: auto; }
