/* Werkzeuge (Präfix ljt-), dunkles Design. Akzentfarbe kommt vom Bereich der Seite (--akz). */
.ljt { background: var(--weiss); border: 1px solid var(--linie); border-radius: 22px; box-shadow: var(--schatten); padding: 18px; }
.ljt-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 38px 20px; border: 2.5px dashed var(--linie-stark); border-radius: 16px; background: var(--flaeche); cursor: pointer; transition: border-color .15s, background .15s; }
.ljt-drop:hover, .ljt-drop-aktiv { border-color: var(--akz); background: var(--akz-hell); }
.ljt-drop-icon { color: var(--akz); line-height: 0; }
.ljt-drop strong { font-size: clamp(20px, 2.4vw, 26px); color: var(--tinte); letter-spacing: -.02em; }
.ljt-drop-hinweis { color: var(--leise); font-size: 15.5px; max-width: 36em; }
.ljt-drop .ljt-btn { margin-top: 10px; }

.ljt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15.5px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--linie); background: var(--weiss); color: var(--tinte); cursor: pointer; text-decoration: none; white-space: nowrap; }
.ljt-btn:hover { border-color: var(--akz); color: var(--akz); }
.ljt-btn-primary { background: var(--akz); border-color: var(--akz); color: var(--auf-akz); }
.ljt-btn-primary:hover { filter: brightness(1.1); color: var(--auf-akz); }
.ljt-btn-gross { padding: 14px 26px; font-size: 17px; }
.ljt-btn[disabled] { opacity: .5; cursor: default; }
.ljt-icon { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--linie); background: var(--weiss); color: var(--leise); font-size: 19px; line-height: 1; cursor: pointer; }
.ljt-icon:hover { border-color: var(--akz); color: var(--akz); }
.ljt-icon[disabled] { opacity: .35; cursor: default; }

.ljt-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 22px; padding: 18px 6px 4px; }
.ljt-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ljt-field-label { font-weight: 700; font-size: 15px; color: var(--tinte); }
.ljt-field small { color: var(--leise); font-size: 13.5px; line-height: 1.4; }
.ljt-input { font: inherit; font-size: 16px; padding: 9px 12px; border: 1.5px solid var(--linie-stark); border-radius: 10px; background: var(--weiss); color: var(--tinte); width: 100%; }
.ljt-input:focus { outline: none; border-color: var(--akz); }
.ljt-color { width: 64px; height: 40px; padding: 2px; border: 1.5px solid var(--linie-stark); border-radius: 10px; background: var(--weiss); cursor: pointer; }
.ljt-range-wrap { display: flex; align-items: center; gap: 12px; }
.ljt-range { flex: 1; min-width: 0; accent-color: var(--akz); height: 28px; }
.ljt-range-wrap output { min-width: 3.4em; text-align: right; font-weight: 700; color: var(--tinte); font-variant-numeric: tabular-nums; }
.ljt-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ljt-check { display: inline-flex; align-items: center; gap: 7px; font-size: 15.5px; cursor: pointer; }
.ljt-check input { width: 18px; height: 18px; accent-color: var(--akz); }

.ljt-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ljt-list:empty { display: none; }
.ljt-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 14px; background: var(--weiss); }
.ljt-item-fehler { border-color: rgba(255, 123, 114, .5); background: rgba(255, 123, 114, .08); }
.ljt-thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background-color: #fff; background-image: linear-gradient(45deg, #e6e9f2 25%, transparent 25%, transparent 75%, #e6e9f2 75%), linear-gradient(45deg, #e6e9f2 25%, transparent 25%, transparent 75%, #e6e9f2 75%); background-size: 14px 14px; background-position: 0 0, 7px 7px; }
.ljt-thumb img { max-width: 100%; max-height: 100%; display: block; }
.ljt-thumb-klick { cursor: zoom-in; }
.ljt-thumb-leer { font-size: 12px; font-weight: 800; color: var(--leise); }
.ljt-item-gross .ljt-thumb { flex-basis: 150px; width: 150px; height: 150px; }
.ljt-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ljt-item-text strong { color: var(--tinte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.ljt-item-info { font-size: 14.5px; color: var(--leise); }
.ljt-item-info em { font-style: normal; font-weight: 700; }
.ljt-kleiner { color: var(--gut); }
.ljt-groesser { color: var(--warn); }
.ljt-err { color: var(--schlecht); }
.ljt-item-knoepfe { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ljt-item-laeuft .ljt-thumb { animation: ljt-puls 1s ease-in-out infinite alternate; }
@keyframes ljt-puls { from { opacity: 1; } to { opacity: .45; } }

.ljt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.ljt-note { display: flex; align-items: flex-start; gap: 8px; margin: 16px 4px 2px; font-size: 14.5px; color: var(--leise); line-height: 1.45; }
.ljt-note svg { flex-shrink: 0; margin-top: 1px; color: var(--gut); }
.lj-tool-hinweis { padding: 20px; background: var(--flaeche); border-radius: 14px; }

/* Vorher/Nachher (PNG komprimieren) */
.ljt-vergleich { position: relative; margin-top: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--linie); background-color: #fff; background-image: linear-gradient(45deg, #e6e9f2 25%, transparent 25%, transparent 75%, #e6e9f2 75%), linear-gradient(45deg, #e6e9f2 25%, transparent 25%, transparent 75%, #e6e9f2 75%); background-size: 18px 18px; background-position: 0 0, 9px 9px; line-height: 0; touch-action: pan-y; user-select: none; }
.ljt-vergleich img { display: block; width: 100%; height: auto; pointer-events: none; }
.ljt-vergleich-oben { position: absolute; left: 0; top: 0; bottom: 0; overflow: hidden; background: inherit; }
.ljt-vergleich-oben img { position: absolute; left: 0; top: 0; height: 100%; width: auto; max-width: none; }
.ljt-vergleich-griff { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(20, 22, 43, .35); cursor: ew-resize; }
.ljt-vergleich-griff::after { content: "↔"; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: #fff; color: #14162b; display: grid; place-items: center; font-size: 18px; line-height: 1; box-shadow: 0 1px 6px rgba(20, 22, 43, .35); }
.ljt-vergleich-label { position: absolute; top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(20, 22, 43, .78); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.3; }
.ljt-vergleich-label-l { left: 10px; }
.ljt-vergleich-label-r { right: 10px; }

/* Pfeil-Generator */
.ljt-pfeil { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 22px; align-items: start; }
.ljt-pfeil-bild { border-radius: 16px; border: 1px solid var(--linie); aspect-ratio: 1; display: grid; place-items: center; background-color: #fff; background-image: linear-gradient(45deg, #e6e9f2 25%, transparent 25%, transparent 75%, #e6e9f2 75%), linear-gradient(45deg, #e6e9f2 25%, transparent 25%, transparent 75%, #e6e9f2 75%); background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.ljt-pfeil-bild.ljt-dunkel { background-color: #23263b; background-image: linear-gradient(45deg, #2e3250 25%, transparent 25%, transparent 75%, #2e3250 75%), linear-gradient(45deg, #2e3250 25%, transparent 25%, transparent 75%, #2e3250 75%); }
.ljt-pfeil-bild svg { width: 86%; height: 86%; }
.ljt-pfeil-opts { display: flex; flex-direction: column; gap: 16px; }
.ljt-wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.ljt-wahl button { width: 52px; height: 52px; padding: 6px; border-radius: 12px; border: 1.5px solid var(--linie); background: var(--weiss); color: var(--tinte); cursor: pointer; font-size: 22px; line-height: 1; }
.ljt-wahl button svg { width: 100%; height: 100%; display: block; }
.ljt-wahl button:hover { border-color: var(--akz); }
.ljt-wahl button[aria-pressed="true"] { border-color: var(--akz); background: var(--akz-hell); box-shadow: inset 0 0 0 1.5px var(--akz); }
.ljt-wahl-klein button { width: 42px; height: 42px; font-size: 19px; }
.ljt-farben { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ljt-farben button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .28); cursor: pointer; padding: 0; }
.ljt-farben button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--weiss), 0 0 0 5px var(--akz); }
.ljt-galerie-titel { font-size: 20px; margin: 26px 4px 12px; color: var(--tinte); }
.ljt-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.ljt-galerie button { position: relative; aspect-ratio: 1; padding: 12px; border-radius: 14px; border: 1px solid #dfe2ea; background: #f3f4f8; cursor: pointer; }
.ljt-galerie button.ljt-dunkel { background: #23263b; border-color: #23263b; }
.ljt-galerie button:hover { border-color: var(--akz); box-shadow: var(--schatten); }
.ljt-galerie button svg { width: 100%; height: 100%; display: block; }

/* Schriften zum Kopieren */
.ljs-feld { width: 100%; font: inherit; font-size: 20px; line-height: 1.4; padding: 14px 16px; border: 2px solid var(--linie-stark); border-radius: 14px; color: var(--tinte); background: var(--weiss); resize: vertical; min-height: 64px; }
.ljs-feld:focus { outline: none; border-color: var(--akz); }
.ljs-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ljs-chips-label { font-size: 14.5px; color: var(--leise); margin-right: 2px; }
.ljs-chip { font: inherit; font-size: 14.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--linie); background: var(--weiss); color: var(--text); cursor: pointer; }
.ljs-chip:hover { border-color: var(--akz); color: var(--akz); }
.ljs-chip[aria-pressed="true"] { background: var(--akz); border-color: var(--akz); color: var(--auf-akz); }
.ljs-liste { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ljs-gruppe { font-size: 18px; font-weight: 800; color: var(--tinte); margin: 22px 4px 2px; letter-spacing: -.01em; }
.ljs-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border: 1px solid var(--linie); border-radius: 14px; background: var(--weiss); cursor: pointer; transition: border-color .12s, background .12s; }
.ljs-row:hover { border-color: var(--akz); background: var(--akz-hell); }
.ljs-inhalt { flex: 1; min-width: 0; }
.ljs-inhalt small { display: block; font-size: 13px; color: var(--leise); margin-bottom: 2px; }
.ljs-text { font-size: 21px; line-height: 1.5; color: var(--tinte); overflow-wrap: anywhere; white-space: pre-wrap; }
.ljs-knopf { flex-shrink: 0; }
.ljs-kopiert { background: var(--gut) !important; border-color: var(--gut) !important; color: #06281b !important; }
.ljs-zuviel { border-color: rgba(255, 123, 114, .5); background: rgba(255, 123, 114, .08); }
.ljs-zuviel small { color: var(--schlecht); font-weight: 700; }
.ljs-knapp small { color: var(--warn); }
.ljs-gross { margin-top: 16px; padding: 22px 18px; border-radius: 16px; background: var(--flaeche); font-size: clamp(24px, 4vw, 34px); line-height: 1.5; color: var(--tinte); text-align: center; overflow-wrap: anywhere; min-height: 90px; white-space: pre-wrap; }
.ljs-zalgo { padding: 70px 18px; line-height: 2; overflow: hidden; }
.ljs-hoch .ljs-text { line-height: 2.2; padding: 22px 0; overflow: hidden; }
.ljs-sauber {font-size: 20px; text-align: left; padding: 14px 16px; min-height: 56px; margin-top: 10px; }
.ljk-suche { font-size: 18px; padding: 13px 16px; border-radius: 14px; }
.ljk-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 10px; }
.ljk-k { font-family: "Segoe UI", system-ui, "Noto Sans", "Noto Sans JP", "Yu Gothic UI", "Hiragino Sans", sans-serif; font-size: 18px; line-height: 1.4; padding: 12px 8px; border: 1px solid var(--linie); border-radius: 12px; background: var(--weiss); color: var(--tinte); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ljk-k:hover { border-color: var(--akz); background: var(--akz-hell); }
.ljk-gruppe { scroll-margin-top: 80px; }
.ljk-meldung { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--tinte); color: var(--grund); padding: 10px 18px; border-radius: 999px; font-size: 15.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 60; max-width: 90vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ljk-meldung-an { opacity: 1; transform: translate(-50%, 0); }

/* GIF-Werkzeuge */
.ljg-block { display: flex; flex-direction: column; gap: 8px; }
.ljg-hinweis { margin: 0; font-size: 14.5px; color: var(--leise); }
.ljg-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; padding: 8px 2px 10px; }
.ljg-bild { display: flex; flex-direction: column; gap: 5px; padding: 6px; border: 1px solid var(--linie); border-radius: 12px; background: var(--weiss); cursor: pointer; font: inherit; font-size: 12.5px; color: var(--leise); text-align: center; }
.ljg-bild:hover, .ljg-bild:focus-visible { border-color: var(--akz); color: var(--tinte); outline: none; }
.ljg-bild img, .ljg-buehne canvas, .ljg-ergebnis img, .ljg-kachel canvas { background-color: #fff; background-image: linear-gradient(45deg, #e6e9f2 25%, transparent 25%, transparent 75%, #e6e9f2 75%), linear-gradient(45deg, #e6e9f2 25%, transparent 25%, transparent 75%, #e6e9f2 75%); background-size: 14px 14px; background-position: 0 0, 7px 7px; }
.ljg-bild img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; display: block; }
.ljt-thumb video { max-width: 100%; max-height: 100%; display: block; }
.ljg-streifen { display: flex; gap: 8px; overflow-x: auto; padding: 16px 2px 8px; }
.ljg-kachel { flex: 0 0 auto; width: 96px; padding: 6px; border: 1px solid var(--linie); border-radius: 12px; background: var(--weiss); }
.ljg-kachel canvas { width: 84px; height: 84px; border-radius: 8px; display: block; }
.ljg-kachel-knoepfe { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 12.5px; color: var(--leise); }
.ljg-mini { border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; line-height: 1; padding: 4px 5px; border-radius: 6px; color: var(--text); }
.ljg-mini:hover:not(:disabled) { background: var(--akz-hell); color: var(--akz); }
.ljg-mini:disabled { opacity: .3; cursor: default; }
.ljg-buehne { display: grid; place-items: center; padding: 14px 0 8px; }
.ljg-buehne canvas, .ljg-ergebnis img { max-width: 100%; max-height: 60vh; height: auto; border-radius: 12px; box-shadow: var(--schatten); }
.ljg-buehne + .ljg-hinweis { text-align: center; }
.ljg-ergebnis { margin-top: 18px; padding: 18px; border: 1.5px solid var(--akz); border-radius: 18px; background: var(--akz-hell); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ljg-status { font-size: 15px; color: var(--leise); }

/* Editoren: gemeinsame Knopfleiste */
.ljp-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 2px 2px 14px; }
.ljp-knopf { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1.5px solid var(--linie-stark); border-radius: 10px; background: var(--weiss); color: var(--tinte); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.ljp-knopf:hover:not(:disabled) { border-color: var(--akz); }
.ljp-knopf-aktiv { background: var(--akz); border-color: var(--akz); color: var(--auf-akz); }
.ljp-knopf:disabled { opacity: .4; cursor: default; }
.ljp-trenner { width: 1px; height: 26px; background: var(--linie); margin: 0 4px; }
.ljp-titel { margin: 18px 0 0; font-size: 16px; color: var(--tinte); }

/* Pixel Art */
.ljp-arbeit { display: grid; grid-template-columns: minmax(0, 576px) minmax(220px, 1fr); gap: 20px; align-items: start; }
.ljp-feld { width: 100%; height: auto; aspect-ratio: 1; display: block; border: 1px solid var(--linie-stark); border-radius: 8px; touch-action: none; cursor: crosshair; image-rendering: pixelated; }
.ljp-rechts { display: flex; flex-direction: column; gap: 12px; }
.ljp-palette { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.ljp-farbe { aspect-ratio: 1; border: 1.5px solid rgba(255, 255, 255, .22); border-radius: 7px; cursor: pointer; padding: 0; min-width: 0; }
.ljp-farbe-aktiv { outline: 3px solid var(--akz); outline-offset: 1px; }
.ljp-animation { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.ljp-anim-links { flex: 1 1 320px; min-width: 0; }
.ljp-anim-rechts { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.ljp-bild { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px; border: 1.5px solid var(--linie); border-radius: 10px; background: var(--weiss); cursor: pointer; font: inherit; font-size: 12px; color: var(--leise); }
.ljp-bild-aktiv { border-color: var(--akz); box-shadow: 0 0 0 2px var(--akz-hell); }
.ljp-bild canvas, .ljp-vorschau { image-rendering: pixelated; border-radius: 6px; background-color: #fff; background-image: linear-gradient(45deg, #e6e9f2 25%, transparent 25%, transparent 75%, #e6e9f2 75%), linear-gradient(45deg, #e6e9f2 25%, transparent 25%, transparent 75%, #e6e9f2 75%); background-size: 12px 12px; background-position: 0 0, 6px 6px; }
.ljp-vorschau { width: 128px; height: 128px; border: 1px solid var(--linie); }
@media (max-width: 760px) { .ljp-arbeit { grid-template-columns: minmax(0, 1fr); } .ljp-palette { grid-template-columns: repeat(10, 1fr); } }

/* Avatar */
.lja { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.lja-links { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 12px; }
.lja-bild svg { width: 100%; height: auto; display: block; border-radius: 18px; background-color: #fff; background-image: linear-gradient(45deg, #e6e9f2 25%, transparent 25%, transparent 75%, #e6e9f2 75%), linear-gradient(45deg, #e6e9f2 25%, transparent 25%, transparent 75%, #e6e9f2 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.lja-feld { display: flex; flex-direction: column; gap: 16px; }
.lja-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.lja-teil { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; border: 1.5px solid var(--linie); border-radius: 12px; background: var(--weiss); cursor: pointer; font: inherit; font-size: 12.5px; color: var(--text); }
.lja-teil svg { width: 64px; height: 64px; display: block; }
.lja-teil:hover { border-color: var(--akz); }
.lja-teil-aktiv { border-color: var(--akz); box-shadow: 0 0 0 2px var(--akz-hell); font-weight: 700; }
.lja-farben { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 7px; max-width: 520px; }
.lja-rechts { min-width: 0; }
@media (max-width: 760px) { .lja { grid-template-columns: minmax(0, 1fr); } .lja-links { position: static; width: 100%; max-width: 300px; margin: 0 auto; } }

/* Fotocollage */
.ljc-vorlagen { display: flex; flex-wrap: wrap; gap: 8px; }
.ljc-vorlage { padding: 5px; border: 1.5px solid var(--linie); border-radius: 10px; background: var(--weiss); color: #b6bdd1; cursor: pointer; line-height: 0; }
.ljc-vorlage:hover { border-color: var(--akz); }
.ljc-vorlage-aktiv { border-color: var(--akz); color: var(--akz); box-shadow: 0 0 0 2px var(--akz-hell); }
.ljc-leinwand { max-width: 100%; max-height: 70vh; height: auto; width: auto; display: block; border-radius: 6px; box-shadow: var(--schatten); touch-action: none; cursor: grab; }
.ljc-feldleiste { margin-top: 4px; min-height: 44px; }
.ljc-zoom { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; }

/* SVG-Editor */
.ljv-buehne { position: relative; width: 100%; max-height: 72vh; margin: 0 auto; border: 1px solid var(--linie-stark); border-radius: 8px; overflow: hidden; touch-action: none; outline: none; background-color: #fff; background-image: linear-gradient(45deg, #eef0f6 25%, transparent 25%, transparent 75%, #eef0f6 75%), linear-gradient(45deg, #eef0f6 25%, transparent 25%, transparent 75%, #eef0f6 75%); background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.ljv-buehne:focus-visible { border-color: var(--akz); box-shadow: 0 0 0 3px var(--akz-hell); }
.ljv-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ljv-griffe { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ljv-rahmen { fill: none; stroke: #2f5bea; stroke-width: 1.5; stroke-dasharray: 5 4; }
.ljv-griff { fill: #fff; stroke: #2f5bea; stroke-width: 2; pointer-events: all; cursor: pointer; }
.ljv-eigen { margin-top: 14px; }
.ljv-titel { display: block; font-size: 15px; color: var(--tinte); }
.ljv-eigen .ljt-opts { padding-top: 8px; }
.ljv-farbe { display: flex; align-items: center; gap: 10px; }
.ljv-details { margin-top: 16px; border: 1px solid var(--linie); border-radius: 12px; padding: 10px 14px; }
.ljv-details summary { cursor: pointer; font-weight: 700; color: var(--tinte); }
.ljv-code { margin-top: 10px; font-family: Consolas, "Courier New", monospace; font-size: 13.5px; line-height: 1.45; white-space: pre; resize: vertical; min-height: 200px; }

/* Foto-Editor: Arbeitsfläche mit Menüleiste, Werkzeugleiste, Optionsleiste und Bedienfeldern */
.ljf-app { --f0: #121316; --f1: #1e2024; --f2: #282a2f; --f3: #34373d; --fl: #0b0c0e; --ft: #d9dbe0; --fm: #969aa4; --akz: #4f9dff; --akz-hell: rgba(79, 157, 255, .18); --auf-akz: #fff;
  position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr) 290px; grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "kopf kopf kopf" "opt opt opt" "wz buehne seite" "status status status";
  height: clamp(580px, calc(100vh - 120px), 960px); background: var(--f1); color: var(--ft); border: 1px solid #000; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .07); font-size: 13px; line-height: 1.4; outline: none; -webkit-user-select: none; user-select: none; text-align: left; }
.ljf-app:fullscreen { height: 100vh; width: 100vw; border-radius: 0; border: 0; }
.ljf-app.ljf-voll { position: fixed; inset: 0; z-index: 95; height: 100vh; height: 100dvh; width: 100vw; border-radius: 0; border: 0; }
.ljf-app.ljf-zieh { box-shadow: 0 0 0 2px var(--akz); }
.ljf-app button { font: inherit; color: inherit; }
.ljf-app input, .ljf-app textarea { -webkit-user-select: text; user-select: text; }
.ljf-app :focus-visible { outline: 2px solid var(--akz); outline-offset: 1px; }

.ljf-kopf { grid-area: kopf; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 4px 8px; min-height: 40px; background: var(--f2); border-bottom: 1px solid var(--fl); }
.ljf-menus { display: flex; flex-wrap: wrap; gap: 1px; }
.ljf-menu { position: relative; }
.ljf-menu-knopf { background: none; border: 0; padding: 6px 10px; border-radius: 5px; cursor: pointer; font-size: 13px; }
.ljf-menu-knopf:hover, .ljf-menu-knopf[aria-expanded="true"] { background: var(--f3); color: #fff; }
.ljf-menu-liste { position: absolute; left: 0; top: calc(100% + 4px); z-index: 30; min-width: 236px; padding: 5px; display: flex; flex-direction: column; background: #2b2d33; border: 1px solid #000; border-radius: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .07); }
.ljf-menu-punkt { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: none; border: 0; padding: 7px 10px; border-radius: 5px; text-align: left; cursor: pointer; white-space: nowrap; }
.ljf-menu-punkt:hover:not(:disabled), .ljf-menu-punkt:focus-visible { background: var(--akz); color: #fff; outline: none; }
.ljf-menu-punkt:disabled { color: #6b6f78; cursor: default; }
.ljf-menu-punkt kbd { font: inherit; font-size: 11.5px; color: var(--fm); }
.ljf-menu-punkt:hover:not(:disabled) kbd { color: rgba(255, 255, 255, .82); }
.ljf-menu-linie { height: 1px; background: rgba(255, 255, 255, .09); margin: 5px 4px; }
.ljf-kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 3px; }
.ljf-k { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; background: none; border: 0; border-radius: 6px; cursor: pointer; color: var(--ft); line-height: 0; }
.ljf-k:hover:not(:disabled) { background: var(--f3); color: #fff; }
.ljf-k:disabled { opacity: .3; cursor: default; }
.ljf-trenner { width: 1px; height: 20px; background: rgba(255, 255, 255, .12); margin: 0 5px; }
.ljf-zoom { min-width: 60px; height: 28px; padding: 0 6px; background: var(--f0); border: 1px solid var(--fl); border-radius: 6px; cursor: pointer; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.ljf-zoom:hover { border-color: var(--akz); }
.ljf-b { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--f3); border: 1px solid rgba(255, 255, 255, .08); border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 12.5px; white-space: nowrap; line-height: 1.3; }
.ljf-b:hover:not(:disabled) { background: #42454d; color: #fff; }
.ljf-b:disabled { opacity: .4; cursor: default; }
.ljf-app .ljf-b-haupt { background: var(--akz); border-color: var(--akz); color: #fff; }
.ljf-app .ljf-b-haupt:hover:not(:disabled) { background: #6aadff; }
.ljf-export { margin-left: 8px; }
.ljf-export svg { flex: none; }

.ljf-opt { grid-area: opt; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 6px 12px; min-height: 44px; background: var(--f1); border-bottom: 1px solid var(--fl); }
.ljf-o-name { display: inline-flex; align-items: center; gap: 7px; padding-right: 14px; border-right: 1px solid rgba(255, 255, 255, .1); color: #fff; line-height: 1; }
.ljf-o { display: inline-flex; align-items: center; gap: 8px; color: var(--fm); font-size: 12.5px; }
.ljf-o > span:first-child { white-space: nowrap; }
.ljf-hinweis { color: var(--fm); font-size: 12.5px; line-height: 1.45; }
.ljf-app .ljt-range-wrap { gap: 8px; min-width: 150px; }
.ljf-app .ljt-range { height: 20px; accent-color: var(--akz); }
.ljf-app .ljt-range-wrap output { min-width: 3.7em; font-weight: 600; font-size: 12px; color: var(--ft); }
.ljf-app .ljt-input, .ljf-ein { font: inherit; font-size: 13px; padding: 6px 8px; background: var(--f0); border: 1px solid #000; border-radius: 6px; color: var(--ft); width: 100%; box-shadow: 0 1px 0 rgba(255, 255, 255, .05); }
.ljf-app .ljt-input:focus, .ljf-ein:focus { outline: none; border-color: var(--akz); }
.ljf-ein { resize: vertical; }
.ljf-farbe { flex: none; width: 30px; height: 26px; padding: 0; border: 1px solid #000; border-radius: 5px; background: none; cursor: pointer; }
.ljf-farbe-gross { width: 34px; height: 34px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }

.ljf-werkzeuge { grid-area: wz; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; background: var(--f2); border-right: 1px solid var(--fl); overflow-y: auto; }
.ljf-w { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; background: none; border: 0; border-radius: 7px; cursor: pointer; color: var(--ft); line-height: 0; }
.ljf-w:hover:not(:disabled) { background: var(--f3); color: #fff; }
.ljf-app .ljf-w-aktiv, .ljf-app .ljf-w-aktiv:hover:not(:disabled) { background: var(--akz); color: #fff; }
.ljf-w:disabled { opacity: .3; cursor: default; }
.ljf-w-trenner { flex: none; width: 26px; height: 1px; background: rgba(255, 255, 255, .12); margin: 6px 0; }

.ljf-buehne { grid-area: buehne; position: relative; display: flex; overflow: auto; padding: 20px; min-width: 0; min-height: 0; background-color: var(--f0); background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 18px 18px; outline: none; }
.ljf-blatt { position: relative; margin: auto; flex: none; line-height: 0; box-shadow: 0 0 0 1px #000, 0 14px 50px rgba(0, 0, 0, .65); }
.ljf-ansicht { display: block; max-width: none; touch-action: none; background-color: #fff; background-image: linear-gradient(45deg, #d9dbe2 25%, transparent 25%, transparent 75%, #d9dbe2 75%), linear-gradient(45deg, #d9dbe2 25%, transparent 25%, transparent 75%, #d9dbe2 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.ljf-ring { position: absolute; border-radius: 50%; border: 1px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .7); pointer-events: none; }
.ljf-start { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; max-width: 440px; padding: 36px 28px; border: 1.5px dashed rgba(255, 255, 255, .2); border-radius: 16px; color: var(--fm); font-size: 14px; line-height: 1.5; }
.ljf-start strong { font-size: 21px; color: #fff; letter-spacing: -.02em; }
.ljf-start-icon { color: var(--akz); line-height: 0; }
.ljf-start .ljf-reihe { margin-top: 10px; justify-content: center; }
.ljf-start .ljf-b { padding: 9px 16px; font-size: 13.5px; }
.ljf-zieh .ljf-start { border-color: var(--akz); background: var(--akz-hell); }
.ljf-meldung { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); margin: 0; padding: 7px 12px; border-radius: 8px; background: rgba(30, 32, 36, .95); border: 1px solid rgba(255, 255, 255, .12); color: #ffd28a; font-size: 12.5px; line-height: 1.4; width: max-content; max-width: calc(100% - 24px); z-index: 2; }
.ljf-meldung:empty { display: none; }

.ljf-seite { grid-area: seite; min-height: 0; overflow-y: auto; background: var(--f1); border-left: 1px solid var(--fl); }
.ljf-panel { border-bottom: 1px solid var(--fl); }
.ljf-p-titel { display: flex; align-items: center; gap: 7px; margin: 0; padding: 8px 12px; background: var(--f2); border-bottom: 1px solid var(--fl); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.ljf-p-inhalt { display: flex; flex-direction: column; gap: 9px; padding: 11px 12px 13px; }
.ljf-seite .ljf-o, .ljf-dialog .ljf-o { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 8px; }
.ljf-seite .ljf-reihe .ljf-o { display: inline-flex; }
.ljf-seite .ljt-range-wrap, .ljf-dialog .ljt-range-wrap { min-width: 0; }
.ljf-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ljf-haken { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ljf-haken input { accent-color: var(--akz); width: 15px; height: 15px; margin: 0; }
.ljf-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 8px; }
.ljf-f { display: flex; flex-direction: column; gap: 4px; padding: 0; background: none; border: 0; cursor: pointer; font-size: 11.5px; color: var(--fm); text-align: center; min-width: 0; }
.ljf-f canvas { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 6px; box-shadow: 0 0 0 1px #000; display: block; background: var(--f0); }
.ljf-f:hover:not(:disabled) { color: #fff; }
.ljf-f:hover:not(:disabled) canvas { box-shadow: 0 0 0 2px var(--akz); }
.ljf-f:disabled { opacity: .45; cursor: default; }
.ljf-ebenen { display: flex; flex-direction: column; gap: 2px; margin: 0 -6px; max-height: 232px; overflow-y: auto; }
.ljf-ebene { flex: none; display: flex; align-items: center; gap: 2px; border-radius: 7px; }
.ljf-ebene:hover { background: rgba(255, 255, 255, .05); }
.ljf-ebene-aktiv, .ljf-ebene-aktiv:hover { background: var(--akz-hell); box-shadow: inset 0 0 0 1px var(--akz); }
.ljf-auge { flex: none; display: grid; place-items: center; width: 30px; height: 46px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--ft); line-height: 0; }
.ljf-auge-aus { color: #62666f; }
.ljf-ebene-wahl { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 3px 8px 3px 2px; background: none; border: 0; cursor: pointer; text-align: left; }
.ljf-ebene-wahl canvas { flex: none; width: 52px; height: 40px; border-radius: 4px; box-shadow: 0 0 0 1px #000; background-color: #fff; background-image: linear-gradient(45deg, #d9dbe2 25%, transparent 25%, transparent 75%, #d9dbe2 75%), linear-gradient(45deg, #d9dbe2 25%, transparent 25%, transparent 75%, #d9dbe2 75%); background-size: 8px 8px; background-position: 0 0, 4px 4px; }
.ljf-ebene-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.ljf-ebene-wahl i { font-style: normal; font-weight: 800; font-family: Georgia, serif; color: var(--fm); }
.ljf-ebenen-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1px; padding-top: 7px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ljf-ebenen-fuss .ljf-k { width: 27px; }

.ljf-status { grid-area: status; display: flex; align-items: center; gap: 14px; padding: 5px 12px; min-height: 28px; background: var(--f2); border-top: 1px solid var(--fl); color: var(--fm); font-size: 12px; }
.ljf-status-info { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ljf-status-text { flex: 1; min-width: 0; color: #ffd28a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ljf-status-schutz { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: #6fd3a8; line-height: 1; }
.ljf-dialog { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .55); }
.ljf-dialog-kasten { width: 100%; max-width: 390px; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #2b2d33; border: 1px solid #000; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .07); }
.ljf-dialog-kasten > strong { font-size: 15px; color: #fff; }
.ljf-dialog-knoepfe { justify-content: flex-end; margin-top: 4px; }
@media (max-width: 900px) {
  .ljf-app { grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto auto minmax(300px, 58vh) auto auto; grid-template-areas: "kopf kopf" "opt opt" "wz buehne" "seite seite" "status status"; height: auto; }
  .ljf-app:fullscreen, .ljf-app.ljf-voll { height: 100vh; height: 100dvh; overflow-y: auto; }
  .ljf-seite { border-left: 0; border-top: 1px solid var(--fl); overflow: visible; }
  .ljf-kopf-rechts { margin-left: 0; }
  .ljf-filter { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ljf-status-schutz span { display: none; }
  .ljf-buehne { padding: 12px; }
}

/* Arbeitsfläche der übrigen Editoren (Pixel Art, SVG-Editor, Collage, Avatar): gleicher Rahmen wie der Foto-Editor, aber ohne Menüs */
.lje-app { --f0: #121316; --f1: #1e2024; --f2: #282a2f; --f3: #34373d; --fl: #0b0c0e; --ft: #d9dbe0; --fm: #969aa4; --akz: #4f9dff; --akz-hell: rgba(79, 157, 255, .18); --auf-akz: #fff;
  --tinte: #fff; --text: #d9dbe0; --leise: #969aa4; --linie: rgba(255, 255, 255, .12); --linie-stark: #000; --weiss: #2b2d33; --flaeche: #121316;
  display: flex; flex-direction: column; background: var(--f1); color: var(--ft); border: 1px solid #000; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .07); font-size: 14px; line-height: 1.45; outline: none; text-align: left; }
.lje-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; min-height: 46px; background: var(--f2); border-bottom: 1px solid var(--fl); }
.lje-kopf .ljp-leiste { padding: 0; }
.lje-kopf-titel { font-weight: 700; color: #fff; font-size: 13px; }
.lje-rechts { margin-left: auto; }
.lje-mitte { display: grid; grid-template-columns: minmax(0, 1fr) 320px; height: clamp(460px, calc(100vh - 250px), 720px); min-height: 0; }
.lje-breit .lje-mitte { grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); }
.lje-buehne { container-type: size; display: flex; overflow: auto; padding: 20px; min-width: 0; min-height: 0; background-color: var(--f0); background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 18px 18px; }
.lje-buehne > * { margin: auto; flex: none; }
.lje-breit .lje-buehne { container-type: normal; }
.lje-seite { min-height: 0; overflow-y: auto; background: var(--f1); border-left: 1px solid var(--fl); }
.lje-panel { border-bottom: 1px solid var(--fl); }
.lje-titel { margin: 0; padding: 8px 12px; background: var(--f2); border-bottom: 1px solid var(--fl); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.lje-inhalt { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.lje-unten { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--f1); border-top: 1px solid var(--fl); }
.lje-unten-titel { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.lje-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 6px 12px; min-height: 30px; background: var(--f2); border-top: 1px solid var(--fl); font-size: 12.5px; color: var(--fm); }
.lje-fuss .ljg-status { flex: 1 1 200px; min-width: 0; color: #ffd28a; font-size: 12.5px; }
.lje-schutz { color: #6fd3a8; }
.lje-app .ljp-knopf { padding: 6px 11px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 6px; background: var(--f3); color: var(--ft); font-size: 13px; }
.lje-app .ljp-knopf:hover:not(:disabled) { background: #42454d; border-color: rgba(255, 255, 255, .08); color: #fff; }
.lje-app .ljp-knopf-aktiv, .lje-app .ljp-knopf-aktiv:hover:not(:disabled) { background: var(--akz); border-color: var(--akz); color: #fff; }
.lje-app .ljp-trenner { height: 20px; background: rgba(255, 255, 255, .14); }
.lje-app .ljt-btn { padding: 7px 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .08); background: var(--f3); color: var(--ft); font-size: 13px; font-weight: 600; }
.lje-app .ljt-btn:hover:not([disabled]) { background: #42454d; border-color: rgba(255, 255, 255, .08); color: #fff; }
.lje-app .ljt-btn-primary, .lje-app .ljt-btn-primary:hover:not([disabled]) { background: var(--akz); border-color: var(--akz); color: #fff; filter: none; }
.lje-app .ljt-btn-primary:hover:not([disabled]) { background: #6aadff; }
.lje-app .ljt-btn-gross { padding: 9px 14px; font-size: 13.5px; }
.lje-app .ljt-bar { margin-top: 0; gap: 6px; }
.lje-app .ljt-field { gap: 5px; }
.lje-app .ljt-field-label { font-size: 12.5px; font-weight: 600; color: var(--fm); }
.lje-app .ljt-field small { font-size: 12px; color: var(--fm); }
.lje-app .ljt-input { font-size: 13.5px; padding: 6px 8px; background: var(--f0); border: 1px solid #000; border-radius: 6px; color: var(--ft); box-shadow: 0 1px 0 rgba(255, 255, 255, .05); }
.lje-app .ljt-color { width: 46px; height: 30px; border: 1px solid #000; border-radius: 6px; background: none; }
.lje-app .ljt-range { height: 20px; }
.lje-app .ljt-range-wrap output { font-size: 12.5px; color: var(--ft); }
.lje-app .ljt-check { font-size: 13px; }
.lje-app .ljt-check input { width: 15px; height: 15px; }
.lje-app .ljt-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; }
.lje-app .ljg-status, .lje-app .ljg-hinweis { font-size: 12.5px; }
.lje-app .ljp-feld { width: 100%; width: min(100cqw, 100cqh); height: auto; border: 0; border-radius: 0; box-shadow: 0 0 0 1px #000, 0 14px 50px rgba(0, 0, 0, .6); }
.lje-app .ljp-palette { grid-template-columns: repeat(8, 1fr); }
.lje-app .ljp-vorschau { align-self: flex-start; }
.lje-app .ljg-streifen { padding: 2px; }
.lje-app .ljv-buehne { width: 100%; max-height: 100%; border: 0; border-radius: 0; box-shadow: 0 0 0 1px #000, 0 14px 50px rgba(0, 0, 0, .6); }
.lje-app .ljv-eigen { margin-top: 0; display: flex; flex-direction: column; gap: 10px; }
.lje-app .ljv-titel { color: #fff; font-size: 13px; }
.lje-app .ljv-details { margin-top: 0; border-color: rgba(255, 255, 255, .12); border-radius: 8px; font-size: 13px; }
.lje-app .ljv-details summary { color: var(--ft); }
.lje-app .ljc-leinwand { max-width: 100%; max-height: 100%; border-radius: 0; box-shadow: 0 0 0 1px #000, 0 14px 50px rgba(0, 0, 0, .6); }
.lje-app .ljc-feldleiste { margin-top: 0; min-height: 34px; }
.lje-app .ljc-vorlage { padding: 3px; border-width: 1px; border-color: rgba(255, 255, 255, .12); background: var(--f3); color: #7d818b; }
.lje-app .ljc-vorlage svg { width: 30px; height: 30px; }
.lje-app .ljc-vorlage-aktiv { border-color: var(--akz); color: var(--akz); }
.lja-vorschau { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 300px; }
.lja-vorschau .lja-bild svg { border-radius: 12px; }
.lja-bild img { width: 100%; height: auto; display: block; border-radius: 12px; background-color: #fff; background-image: linear-gradient(45deg, #d9dbe2 25%, transparent 25%, transparent 75%, #d9dbe2 75%), linear-gradient(45deg, #d9dbe2 25%, transparent 25%, transparent 75%, #d9dbe2 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.lja-teil img { width: 76px; height: 76px; display: block; border-radius: 8px; }
.lje-app .lja-wahl { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.lja-grund { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.lja-ohne { background-color: #fff; background-image: linear-gradient(45deg, #c9ccd4 25%, transparent 25%, transparent 75%, #c9ccd4 75%), linear-gradient(45deg, #c9ccd4 25%, transparent 25%, transparent 75%, #c9ccd4 75%); background-size: 10px 10px; background-position: 0 0, 5px 5px; }
.lje-app .lja-teil { border-width: 1px; background: var(--f3); border-color: rgba(255, 255, 255, .08); color: var(--ft); }
.lje-app .lja-teil-aktiv { border-color: var(--akz); box-shadow: 0 0 0 1px var(--akz); }
@media (max-width: 900px) {
  .lje-mitte, .lje-breit .lje-mitte { grid-template-columns: minmax(0, 1fr); height: auto; }
  .lje-buehne { height: min(92vw, 62vh); padding: 12px; }
  .lje-breit .lje-buehne { height: auto; }
  .lje-seite { border-left: 0; border-top: 1px solid var(--fl); overflow: visible; }
}

/* SVG-Icons */
.ljs-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.ljs-icon { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 8px; border: 1.5px solid #dfe2ea; border-radius: 12px; background: #f3f4f8; cursor: pointer; font: inherit; font-size: 11.5px; color: #5b6072; min-width: 0; }
.ljs-icon span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ljs-icon:hover, .ljs-icon:focus-visible { border-color: var(--akz); color: #14162b; outline: none; box-shadow: 0 0 0 2px var(--akz); }
.ljs-icon-aktiv { border-color: var(--akz); box-shadow: 0 0 0 2px var(--akz-hell); }
.ljs-dunkel .ljs-icon, .ljs-gross.ljs-dunkel { background: #23263a; color: #c9cee0; }
.ljs-detail { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin: 6px 0 16px; padding: 16px; border: 1.5px solid var(--akz); border-radius: 16px; background: var(--akz-hell); }
.ljs-gross { flex: 0 0 auto; display: grid; place-items: center; width: 148px; height: 148px; border-radius: 14px; background: #f3f4f8; }
.ljs-detail-text { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ljs-detail-text strong { font-size: 18px; color: var(--tinte); }
.ljs-code { min-height: 0; white-space: pre-wrap; word-break: break-all; }

/* Bild zu Text */
.ljo-ergebnis { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.ljo-ergebnis .ljt-bar { margin-top: 6px; }
.ljo-text { min-height: 260px; resize: vertical; line-height: 1.55; font-family: inherit; }
.ljt-thumb canvas { max-width: 100%; max-height: 100%; display: block; }

/* Gruß-GIFs: Raster und Großansicht */
.lj-gifs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.lj-gif { margin: 0; }
.lj-gif-link { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--flaeche); box-shadow: var(--schatten); transition: transform .15s; line-height: 0; }
.lj-gif-link:hover { transform: translateY(-3px); }
.lj-gif-link img { width: 100%; height: auto; aspect-ratio: 1; display: block; }
.lj-gif-link::after { content: "GIF"; position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 7px; background: rgba(20, 22, 43, .72); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; line-height: 1.4; }
.lj-gif figcaption { margin-top: 8px; font-size: 14.5px; color: var(--text); text-align: center; }
.lj-gifd-offen { overflow: hidden; }
.lj-gifd { position: fixed; inset: 0; z-index: 90; background: rgba(12, 14, 30, .78); display: grid; place-items: center; padding: 14px; overflow-y: auto; }
.lj-gifd-kasten { position: relative; width: 100%; max-width: 520px; background: var(--weiss); border-radius: 22px; padding: 18px 18px 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.lj-gifd-buehne { position: relative; }
.lj-gifd-bild { width: 100%; height: auto; aspect-ratio: 1; display: block; border-radius: 14px; background: var(--flaeche); }
.lj-gifd-zu { position: absolute; right: 8px; top: 8px; z-index: 2; background: rgba(255, 255, 255, .95); color: #14162b; font-size: 24px; width: 40px; height: 40px; }
.lj-gifd-pfeil { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; font-size: 28px; background: rgba(255, 255, 255, .92); color: #14162b; }
.lj-gifd-vor { left: 8px; }
.lj-gifd-nach { right: 8px; }
.lj-gifd-titel { text-align: center; font-weight: 700; color: var(--tinte); margin: 12px 0 2px; }
.lj-gifd-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.lj-gifd-meldung { text-align: center; font-size: 14.5px; color: var(--leise); min-height: 1.4em; margin-top: 10px; }

/* Schriftzug als Bild */
.ljb-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.ljb-font { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px 8px; border: 1.5px solid var(--linie); border-radius: 14px; background: var(--weiss); color: var(--tinte); cursor: pointer; font: inherit; min-width: 0; }
.ljb-font:hover { border-color: var(--akz); }
.ljb-font[aria-pressed="true"] { border-color: var(--akz); background: var(--akz-hell); box-shadow: inset 0 0 0 1.5px var(--akz); }
.ljb-font[disabled] { opacity: .4; cursor: default; }
.ljb-font-probe { font-size: 34px; line-height: 1.25; height: 44px; white-space: nowrap; }
.ljb-font small { font-size: 12.5px; color: var(--leise); }
.ljb-vorschau { margin-top: 16px; border-radius: 16px; border: 1px solid var(--linie); padding: 14px; display: grid; place-items: center; min-height: 180px; overflow: hidden; background-color: #fff; background-image: linear-gradient(45deg, #e6e9f2 25%, transparent 25%, transparent 75%, #e6e9f2 75%), linear-gradient(45deg, #e6e9f2 25%, transparent 25%, transparent 75%, #e6e9f2 75%); background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.ljb-vorschau.ljt-dunkel { background-color: #23263b; background-image: linear-gradient(45deg, #2e3250 25%, transparent 25%, transparent 75%, #2e3250 75%), linear-gradient(45deg, #2e3250 25%, transparent 25%, transparent 75%, #2e3250 75%); }
.ljb-canvas { max-width: 100%; height: auto; display: block; border-radius: 8px; }
.ljb .ljt-bar .ljt-item-info { flex-basis: 100%; }
.lj-prose .lj-tool { margin: 18px 0 26px; }

@media (max-width: 720px) {
  .lj-gifs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lj-gifd-knoepfe .ljt-btn-gross { width: 100%; }
  .ljs-row { padding: 10px 10px 10px 12px; gap: 8px; }
  .ljs-text { font-size: 18px; }
  .ljs-knopf { padding: 8px 12px; font-size: 14px; }
  .ljk-raster { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .ljt { padding: 12px; border-radius: 18px; }
  .ljt-drop { padding: 28px 14px; }
  .ljt-item { flex-wrap: wrap; }
  .ljt-item-knoepfe { width: 100%; justify-content: flex-end; }
  .ljt-item-gross .ljt-thumb { flex-basis: 100%; width: 100%; height: 200px; }
  .ljt-pfeil { grid-template-columns: 1fr; }
  .ljt-pfeil-bild { max-width: 300px; margin: 0 auto; width: 100%; }
  .ljt-btn-gross { width: 100%; }
}
