/* cloud-traum · Foto-Werkstatt */
.fw__drop { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; text-align: center; padding: 26px 18px; border: 2px dashed var(--c-line); margin-bottom: 18px; }
.fw__drop > .ic { width: 38px; height: 38px; color: var(--c-brand); }
.fw__drop.is-over { border-color: var(--c-brand); background: var(--c-brand-soft); }
.fw__pick { position: relative; cursor: pointer; }
.fw__grid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .fw__grid { grid-template-columns: 1.5fr 1fr; } .fw__sum { position: sticky; top: 96px; } }
.fw__box { padding: clamp(16px, 3vw, 24px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fw__opts { display: flex; flex-direction: column; gap: 14px; }
.fw__opts[hidden], .about[hidden], .fldw[hidden] { display: none; }
.seg--small .seg__opts span { min-height: 40px; font-size: 14px; }
.fw__always { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 14px; color: var(--c-local); font-weight: 600; }
.fw__always .ic { width: 18px; height: 18px; }
.fw__total { font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; }
.fw__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.fw__item { display: grid; grid-template-columns: auto 120px 1fr; gap: 12px 16px; padding: 12px; align-items: start; }
.fw__item--err { display: block; padding: 14px 16px; color: var(--c-coral); }
.fw__item.is-busy { opacity: .7; }
.fw__thumb { padding: 0; border: 1px solid var(--c-line); cursor: zoom-in; width: 120px; height: 120px; border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(var(--c-bg-2) 0 25%, var(--c-surface) 0 50%) 0 0 / 14px 14px; display: flex; align-items: center; justify-content: center; }
.fw__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fw__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fw__name { margin: 0; font-weight: 600; word-break: break-all; }
.fw__sizes { margin: 0; font-size: 14px; color: var(--c-soft); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fw__tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c-local) 14%, transparent); color: var(--c-local); font-weight: 600; }
.fw__tag--warn { background: color-mix(in srgb, var(--c-amber) 16%, transparent); color: var(--c-amber); }
.fw__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fw__meta li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--c-bg-2); color: var(--c-soft); }
.fw__meta li.is-gps { background: color-mix(in srgb, var(--c-coral) 12%, transparent); }
.fw__meta .fw__rm { color: var(--c-local); font-weight: 600; }
.fw__meta .fw__none { background: none; padding-left: 0; color: var(--c-muted); }
.fw__acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fw__dl[aria-disabled='true'] { opacity: .45; pointer-events: none; }
@media (max-width: 520px) { .fw__item { grid-template-columns: auto 84px 1fr; gap: 10px; } .fw__thumb { width: 84px; height: 84px; } }

/* ── Foto-Werkstatt 2.0 ─────────────────────────────────────────────── */
.fw__preset { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; border-bottom: 1px dashed var(--c-line); }
.fw__preset select { min-width: 0; max-width: 100%; }
.fw__presetRow { align-items: center; }
.fw__in { font: inherit; font-size: 15px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-bg); color: var(--c-text); flex: 1 1 160px; min-width: 0; }
.fw__in:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-brand) 20%, transparent); }
.fw__always[data-stufe='standort'] { color: var(--c-amber); }
.fw__always[data-stufe='behalten'] { color: var(--c-coral); }
.seg__opts label.is-off { opacity: .45; }
.fw__tabs { margin: 4px 0 0; align-self: flex-start; max-width: 100%; }
.fw__tabs .tab[hidden] { display: none; }
.fw__panel { display: flex; flex-direction: column; gap: 14px; }
.fw__panel[hidden], .fw__renbox[hidden], .fw__tplFill[hidden], [data-wz][hidden], .fw__rowf[hidden], .fw__only[hidden] { display: none; }
.fw__panel > div[data-for] { display: flex; flex-direction: column; gap: 14px; }
.fw__panel > div[data-for][hidden] { display: none; }
.fw__only { margin: 0; color: var(--c-muted); font-size: 14px; }
.fw__sub { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--c-bg-2); }
.fw__sub .kicker { margin: 0; }
.fw__chks { display: flex; flex-wrap: wrap; gap: 0 18px; }
.fw__phs { align-items: center; gap: 6px; margin: 6px 0 2px; }
.fw__phs .chip { min-height: 32px; font-family: var(--f-mono, monospace); font-size: 13px; }
/* Filter-Leiste */
.fw__filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.fw__flt { flex: 0 0 auto; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 4px 6px; border: 2px solid transparent; border-radius: 12px; background: none; color: var(--c-soft); font: inherit; font-size: 12.5px; line-height: 1.2; text-align: center; cursor: pointer; scroll-snap-align: start; }
.fw__flt canvas { width: 72px; height: 72px; border-radius: 9px; display: block; }
.fw__flt[aria-checked='true'] { border-color: var(--c-brand); color: var(--c-brand); font-weight: 700; background: var(--c-brand-soft); }
.fw__flt:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }
/* Gruppen in „Extras“ */
.fw__groups { gap: 10px !important; }
.fw__grp { border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface); }
.fw__grp > summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 700; }
.fw__grp > summary::-webkit-details-marker { display: none; }
.fw__grp > summary::after { content: '▾'; color: var(--c-muted); transition: transform .2s; }
.fw__grp[open] > summary::after { transform: rotate(180deg); }
.fw__grpS { margin-left: auto; font-weight: 400; font-size: 13px; color: var(--c-muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.fw__grpB { display: flex; flex-direction: column; gap: 12px; padding: 0 14px 14px; }
.fw__file { font-size: 14px; color: var(--c-soft); word-break: break-all; }
.fw__pos { display: grid; grid-template-columns: repeat(3, 38px); gap: 6px; margin-bottom: 6px; }
.fw__pos label { position: relative; width: 38px; height: 30px; }
.fw__pos input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.fw__pos span { display: block; width: 100%; height: 100%; border-radius: 7px; border: 1px solid var(--c-line); background: var(--c-bg); }
.fw__pos input:checked + span { background: var(--c-brand); border-color: var(--c-brand); }
.fw__pos input:focus-visible + span { outline: 3px solid var(--c-brand); outline-offset: 2px; }
/* Start-Leiste */
.fw__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.fw__stats[hidden], .fw__prog[hidden], .fw__stale[hidden], .fw__hint[hidden], .fw__bar[hidden] { display: none; }
.fw__stats div { padding: 8px 10px; border-radius: 10px; background: var(--c-bg-2); min-width: 0; }
.fw__stats dt { font-size: 12px; color: var(--c-muted); }
.fw__stats dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; }
.fw__stats div:last-child dd { color: var(--c-local); }
.fw__prog .meter__bar { background: var(--c-brand); }
.fw__stale { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; background: color-mix(in srgb, var(--c-amber) 14%, transparent); color: var(--c-text); }
.fw__stale .ic { width: 18px; height: 18px; flex: none; color: var(--c-amber); }
.fw__hint { margin: 0; font-size: 14px; padding: 8px 12px; border-radius: 10px; background: var(--c-bg-2); }
.fw__start { width: 100%; min-height: 54px; font-size: 18px; }
.fw__startBig { min-height: 54px; font-size: 18px; align-self: stretch; }
.fw__start.is-stale, .fw__startBig.is-stale { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-amber) 45%, transparent); }
/* Leiste über der Liste */
.fw__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 18px 0 0; padding: 10px 14px; border: 1px solid var(--c-line); border-radius: var(--r-m); background: var(--c-surface); }
.fw__bar .fld__help { flex-basis: 100%; }
.fw__bar .fld--inline { margin-left: auto; }
.fw__selN { font-weight: 700; color: var(--c-brand); }
.fw__sel { display: flex; align-items: center; justify-content: center; width: 28px; min-height: 40px; cursor: pointer; }
.fw__sel input { width: 20px; height: 20px; accent-color: var(--c-brand); cursor: pointer; }
.fw__item.is-sel { border-color: var(--c-brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-brand) 35%, transparent); }
.fw__item.is-old .fw__thumb img { opacity: .55; }
.fw__name { display: flex; flex-direction: column; gap: 2px; }
.fw__new { font-weight: 600; color: var(--c-brand); font-size: 14px; }
.fw__new:empty { display: none; }
.fw__tag--ed { background: color-mix(in srgb, var(--c-brand) 14%, transparent); color: var(--c-brand); }
.fw__meta .fw__keep { color: var(--c-amber); font-weight: 600; }
.fw__rowf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.fw__rowf .chk { min-height: 36px; font-size: 14px; }
.fw__fsel { font: inherit; font-size: 14px; min-height: 36px; padding: 4px 8px; border-radius: 9px; border: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-text); }
.fw__acts .btn:disabled { opacity: .45; cursor: default; transform: none; }
body.fw-noscroll { overflow: hidden; }
/* Fenster über der Seite (Vergleich, Auswahl) */
.fw-ov { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 12, 30, .62); }
.fw-ov[hidden] { display: none; }
.fw-ov__box { display: flex; flex-direction: column; gap: 12px; width: min(1100px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 16px; border-radius: var(--r-l); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow); color: var(--c-text); }
.fw-ov__head { display: flex; align-items: center; gap: 8px; }
.fw-ov__t { margin: 0 auto 0 0; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fw-ov__head .btn[aria-pressed='true'] { background: var(--c-brand); color: var(--c-on-brand); border-color: var(--c-brand); }
.fw-cmp__view { flex: 1; min-height: 0; overflow: hidden; border-radius: 12px; background: repeating-conic-gradient(var(--c-bg-2) 0 25%, var(--c-surface) 0 50%) 0 0 / 16px 16px; display: flex; }
.fw-cmp__stage { position: relative; flex: 1; min-height: 50vh; }
.fw-cmp__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fw-cmp__b { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.fw-cmp__l, .fw-cmp__r { position: absolute; top: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; font-weight: 600; }
.fw-cmp__l { left: 10px; } .fw-cmp__r { right: 10px; }
.fw-cmp.is-100 .fw-cmp__view { overflow: auto; }
.fw-cmp.is-100 .fw-cmp__stage { flex: none; min-height: 0; }
.fw-cmp.is-100 .fw-cmp__stage img { position: static; width: auto; height: auto; max-width: none; object-fit: none; display: block; }
.fw-cmp.is-100 .fw-cmp__b { position: absolute; inset: 0 auto auto 0; }
.fw-cmp__range { width: 100%; accent-color: var(--c-brand); }
.fw-cmp__info { margin: 0; }
.fw-pick .fw-ov__box { width: min(860px, 100%); }
.fw-pick .tabs { margin: 0; align-self: flex-start; }
.fw-pick__grid { flex: 1; min-height: 120px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; align-content: start; padding: 2px; }
.fw-pick__it { display: flex; flex-direction: column; gap: 6px; align-items: stretch; padding: 6px; border-radius: 12px; border: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-text); font: inherit; font-size: 13px; cursor: pointer; }
.fw-pick__it:hover, .fw-pick__it:focus-visible { border-color: var(--c-brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-brand) 25%, transparent); }
.fw-pick__it img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--c-bg-2); }
.fw-pick__it.is-transp img { object-fit: contain; background: repeating-conic-gradient(var(--c-bg-2) 0 25%, var(--c-surface) 0 50%) 0 0 / 12px 12px; }
.fw-pick__it.is-busy { opacity: .5; }
.fw-pick__own { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.fw-pick__own[hidden] { display: none; }
.fw-pick__drop { display: flex; flex-direction: column; gap: 2px; align-items: center; padding: 16px; border: 2px dashed var(--c-line); border-radius: 12px; cursor: pointer; text-align: center; }
.fw-pick__drop.is-over { border-color: var(--c-brand); background: var(--c-brand-soft); }
.fw-pick__msg:empty { display: none; }
@media (max-width: 520px) { .fw-ov { padding: 0; } .fw-ov__box { max-height: 100vh; max-height: 100dvh; height: 100%; border-radius: 0; padding: 12px; } .fw__stats dd { font-size: 13px; } }
/* Fieldsets wachsen sonst mit ihrem Inhalt (Filter-Leiste) und sprengen die Spalte */
.fw fieldset { min-width: 0; max-width: 100%; }
.fw__box > * { max-width: 100%; }
.fw__feinCv { width: 100%; max-width: 360px; height: auto; aspect-ratio: 16 / 10; border-radius: 10px; background: repeating-conic-gradient(var(--c-bg-2) 0 25%, var(--c-surface) 0 50%) 0 0 / 14px 14px; align-self: center; }
.fw__regler { row-gap: 2px; }
[data-rahmen][hidden], [data-pdf][hidden] { display: none; }
#fwGrpUrh { margin-top: -4px; }
/* Stufe 3 */
.fw__histo { display: block; width: 128px; height: 32px; color: var(--c-brand); background: var(--c-bg-2); border-radius: 6px; }
.fw__tag--info { background: var(--c-bg-2); color: var(--c-soft); font-weight: 500; }
.fw__item.is-aus { opacity: .55; }
.fw__dupN:empty { display: none; }
.fw__dupN { font-size: 14px; color: var(--c-soft); }
[data-teil][hidden], #fwDruckEigen[hidden], #fwIcoFarbe[hidden], #fwColFarbe[hidden], #fwColMuster[hidden], #fwPalActs[hidden] { display: none; }
.fw__colWrap { position: relative; align-self: center; width: 100%; max-width: 440px; padding: 14px; border-radius: 12px;
  background: repeating-conic-gradient(color-mix(in srgb, var(--c-line) 55%, transparent) 0 25%, transparent 0 50%) 0 0 / 18px 18px, var(--c-bg-2); }
/* Rahmen um die ganze Collage: Gesamtgröße auch auf weißem Hintergrund sichtbar */
.fw__colCv { display: block; width: 100%; height: auto; outline: 2px dashed var(--c-brand); outline-offset: 3px; box-shadow: 0 6px 20px rgba(20, 10, 60, .22); }
.fw__colOv { position: absolute; inset: 14px; touch-action: none; }
.fw__colZ { position: absolute; cursor: grab; border-radius: 4px; }
.fw__colZ.is-zieh { opacity: .55; cursor: grabbing; }
.fw__colZ.is-ziel { box-shadow: inset 0 0 0 3px var(--c-brand); background: color-mix(in srgb, var(--c-brand) 18%, transparent); }
.fw__colZ.is-ziel[data-zone=l] { box-shadow: inset 6px 0 0 var(--c-brand); } .fw__colZ.is-ziel[data-zone=r] { box-shadow: inset -6px 0 0 var(--c-brand); }
.fw__colZ.is-ziel[data-zone=o] { box-shadow: inset 0 6px 0 var(--c-brand); } .fw__colZ.is-ziel[data-zone=u] { box-shadow: inset 0 -6px 0 var(--c-brand); }
.fw__colZ.is-ziel:not([data-zone=mitte]) { background: none; }
.fw__colZk { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.fw__colZ:hover .fw__colZk, .fw__colZ:focus-within .fw__colZk { opacity: 1; }
@media (hover: none) { .fw__colZk { opacity: .9; } }
.fw__colZb { width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(15, 12, 35, .72); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.fw__colZb:hover, .fw__colZb:focus-visible { background: var(--c-brand); color: var(--c-on-brand); }
.fw__colT { position: absolute; z-index: 2; touch-action: none; }
.fw__colT--h { cursor: col-resize; } .fw__colT--v { cursor: row-resize; }
.fw__colT::after { content: ''; position: absolute; border-radius: 3px; background: var(--c-brand); opacity: 0; transition: opacity .15s; }
.fw__colT--h::after { left: 5px; width: 4px; top: 30%; height: 40%; } .fw__colT--v::after { top: 5px; height: 4px; left: 30%; width: 40%; }
.fw__colWrap:hover .fw__colT::after { opacity: .55; } .fw__colT:hover::after { opacity: 1; }
.fw__colInfo { text-align: center; margin: 0; }
.fw__colSet, .fw__colVor { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fw__colVor > .row { justify-content: center; }
@media (min-width: 900px) {
  #fwGrpCol[open] { grid-column: 1 / -1; }
  #fwGrpCol[open] > .fw__grpB { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px 28px; align-items: start; }
  #fwGrpCol[open] > .fw__grpB > :not(.fw__colSet):not(.fw__colVor) { grid-column: 1 / -1; }
  #fwGrpCol[open] .fw__colSet { grid-column: 1; grid-row: 2; } #fwGrpCol[open] .fw__colVor { grid-column: 2; grid-row: 2; }
  .fw__colVor { position: sticky; top: 90px; }
}
.fw__colLay { display: flex; flex-wrap: wrap; gap: 6px; }
.fw__colLw { position: relative; display: inline-flex; }
.fw__colL { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; min-width: 70px; padding: 6px 6px 5px; border-radius: 10px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-soft); font: inherit; font-size: 12px; cursor: pointer; }
.fw__colL svg rect { fill: color-mix(in srgb, var(--c-brand) 30%, transparent); }
.fw__colL:hover { border-color: var(--c-brand); }
.fw__colL[aria-pressed=true] { border-color: var(--c-brand); box-shadow: 0 0 0 2px var(--c-brand); color: var(--c-text); font-weight: 600; }
.fw__colL[aria-pressed=true] svg rect { fill: var(--c-brand); }
.fw__colLx { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-muted); font-size: 14px; line-height: 1; cursor: pointer; }
.fw__colLx:hover { color: var(--c-coral); border-color: var(--c-coral); }
.fw__colLinie { display: flex; gap: 8px; align-items: center; } .fw__colLinie input[type=range] { flex: 1; min-width: 60px; } .fld .fw__colLinie input[type=color] { width: 56px; flex: none; }
input[type=color]#fwColFarbe, input[type=color]#fwIcoFarbe { width: 56px; height: 40px; padding: 3px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-bg); }
.fw__pal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fw__palIt { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--c-line); border-radius: 10px; }
.fw__palSw { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--c-line); flex: none; }
.fw__palTx { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 13px; color: var(--c-soft); }
.fw__palTx b { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--c-text); font-size: 15px; }
.fw-pass .fw-ov__box { width: min(560px, 100%); overflow-y: auto; }
.fw-pass__cv { width: 100%; max-width: 480px; aspect-ratio: 1; align-self: center; border-radius: 12px; touch-action: none; cursor: grab; }

/* ══ Foto-Werkstatt 3.0: Reiter, Werkstatt-Leiste, Panels ══════════════════ */
.fw__nav { position: sticky; top: 69px; z-index: 20; display: flex; flex-direction: column; gap: 8px; padding: 8px 0; background: var(--c-bg); }
.fw__nav .tabs { margin: 0; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; align-self: flex-start; }
.fw__nav .tabs::-webkit-scrollbar { display: none; }
.fw__nav .tab { white-space: nowrap; flex: 0 0 auto; }
.fw__nav .tab .ic { width: 20px; height: 20px; }
.fw__tabTx { display: inline-flex; flex-direction: column; line-height: 1.1; text-align: left; }
.fw__tabTx small { font-size: .7rem; font-weight: 500; color: var(--c-muted); }
.fw__tabN { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--c-brand); color: var(--c-on-brand); font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; }
.fw__tabN:empty { display: none; }
.fw__leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 14px; }
.fw__lInfo { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fw__lInfo .fw__total { font-size: 1rem; margin: 0; }
.fw__lLink { all: unset; cursor: pointer; font-size: .85rem; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; border-radius: 4px; }
.fw__lLink:hover { color: var(--c-brand); text-decoration: underline; }
.fw__lLink:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.fw__lActs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fw__lActs .fw__start { width: auto; min-width: 140px; min-height: 46px; font-size: 17px; }
.fw__lActs { flex-wrap: nowrap; }
@media (max-width: 900px) { .fw__lActs { flex-wrap: wrap; } }
.fw__ergKurz { color: var(--c-local); font-weight: 600; }
.fw__leiste .fw__prog { flex-basis: 100%; order: 5; }
.fw__leiste .fw__stale, .fw__leiste .fw__hint { flex-basis: 100%; margin: 0; order: 6; }
.fw__panel { padding-top: 10px; }
.fw__panel[hidden] { display: none; }
#fw[data-tab] .fw__drop.is-over, #fw.is-over .fw__drop { border-color: var(--c-brand); background: var(--c-brand-soft); }
#fw.is-over .fw__panel:not([hidden]) { outline: 3px dashed var(--c-brand); outline-offset: 6px; border-radius: 12px; }
/* Inhalte unter der Werkstatt nur auf „Start“ */
html[data-fw-tab]:not([data-fw-tab='start']) #anleitung, html[data-fw-tab]:not([data-fw-tab='start']) #faq { display: none; }

/* Start */
.fw__schnell { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.fw__sk { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: var(--c-surface); border: 2px solid var(--c-text); box-shadow: 4px 4px 0 var(--c-text); transition: transform .08s, box-shadow .08s; }
.fw__sk .ic { width: 34px; height: 34px; color: var(--c-brand); }
.fw__sk b { font-family: var(--f-head); font-size: 1.1rem; color: var(--c-text); }
.fw__sk span { font-size: .9rem; color: var(--c-muted); }
.fw__sk:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--c-brand); }
.fw__sk:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--c-text); }
.fw__sk:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 3px; }
.fw__restore { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; margin-bottom: 14px; border-color: var(--c-brand); background: var(--c-brand-soft); }
.fw__restore[hidden] { display: none; }
.fw__restore p { margin: 0; flex: 1 1 200px; font-weight: 600; }
.fw__leer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 22px; margin-bottom: 14px; }
.fw__leer[hidden], .fw__drop[hidden], .fw__neu[hidden], .fw__edHost[hidden] { display: none; }
.fw__leer > .ic { width: 40px; height: 40px; color: var(--c-brand); }
.fw__leer p { margin: 0; flex: 1 1 240px; }
.fw__drop--klein { padding: 12px 16px; justify-content: flex-start; text-align: left; margin-bottom: 0; }
.fw__drop--klein > .ic { width: 26px; height: 26px; }
.fw__drop--klein span { flex: 1 1 200px; }

/* Bilder: Leiste und Raster */
.fw__bar { justify-content: space-between; }
.fw__barZ { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fw__bar .fld--inline { margin-left: 0; }
.fw__ansicht .seg__opts label { min-width: 0; flex: 0 0 auto; }
.seg--small .seg__opts span { min-height: 36px; font-size: 14px; padding: 0 12px; }
.fw__behalten { flex-basis: 100%; }
.fw__list[data-ansicht='raster'] { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.fw__list[data-ansicht='raster'] .fw__item { grid-template-columns: auto 1fr; }
.fw__list[data-ansicht='raster'] .fw__item > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
.fw__list[data-ansicht='raster'] .fw__thumb { width: 100%; height: 150px; }
.fw__list[data-ansicht='raster'] .fw__item > :nth-child(3) { grid-column: 1 / -1; }
.fw__neu { padding: 18px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; }

/* Alle bearbeiten */
.fw__bereich { margin-bottom: 14px; }
.fw__alleGrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.fw__karten { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fw__karten > .card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.fw__karten.is-strip .fw__karte[data-schritt]:not([data-schritt='meta']):not([data-schritt='ren']) { opacity: .5; }
.fw__grpT { font-weight: 700; }
.fw__grpS { margin-left: auto; font-weight: 500; font-size: .85rem; color: var(--c-muted); }
.fw__grpB { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.fw__satz { margin: 0; color: var(--c-soft); }
.fw__ziel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .85rem; padding: 6px 10px; border-radius: 10px; background: var(--c-bg-2); }
.fw__ziel[hidden] { display: none; }
.fw__zielTx { margin-right: auto; }
.btn--xs { min-height: 30px; padding: 0 10px; font-size: .8rem; border-radius: 8px; }
.fw__presetBox { padding: 14px; }
.fw__vorschau { position: sticky; top: 140px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.fw__vorschau.is-busy .fw__vsBild { opacity: .6; }
.fw__vsKopf { display: flex; align-items: center; gap: 8px; }
.fw__vsName { flex: 1; min-width: 0; font-size: .85rem; font-weight: 600; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw__vsBild { position: relative; border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(var(--c-bg-2) 0 25%, var(--c-surface) 0 50%) 0 0 / 16px 16px; aspect-ratio: 4 / 3; }
.fw__vsBild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fw__vsB { position: absolute; inset: 0; }
.fw__kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }

/* Ergebnis */
.fw__ergKopf { padding: 16px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.fw__ergKopf[hidden], .fw__erstellt[hidden] { display: none; }
.fw__ergList, #fwErstellt { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fw__erg { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px 16px; align-items: center; padding: 10px 12px; }
#fwErstellt .fw__erg { grid-template-columns: minmax(0, 1fr) auto auto; }
.fw__ergImg { width: 96px; height: 72px; object-fit: contain; border-radius: 8px; background: var(--c-bg-2); }
.fw__ergName { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.fw__ergGr { margin: 0; font-size: .85rem; color: var(--c-muted); }
.fw__ergTun { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.fw__ergTun li { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--c-brand-soft); color: var(--c-soft); }
.fw__ergKn { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.fw__erg.is-stale { opacity: .6; }
.fw__erg.is-err .fw__ergGr { color: var(--c-coral); }
.fw__erstellt { margin-top: 18px; }

/* Comic-Knöpfe (9): kräftiger Rand, harter Schatten */
#fw .btn--primary, #fw .btn--ghost, .fw-ov .btn--primary, .fw-ov .btn--ghost { border: 2px solid var(--c-text); box-shadow: 3px 3px 0 var(--c-text); transition: transform .08s, box-shadow .08s; }
#fw .btn--primary:hover:not(:disabled), .fw-ov .btn--primary:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--c-text); }
#fw .btn:active:not(:disabled), .fw-ov .btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--c-text); }
#fw .btn:disabled, .fw-ov .btn:disabled { box-shadow: none; border-color: var(--c-line); }
#fw .btn--xs, #fw .fw-ed .btn { box-shadow: 2px 2px 0 var(--c-text); }

/* ?-Hilfe */
.fw-tipw { position: relative; display: inline-flex; vertical-align: middle; margin-left: 6px; }
.fw-tip { width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 0; background: var(--c-brand); color: var(--c-on-brand); font: 700 12px/20px var(--f-body, sans-serif); cursor: pointer; flex: 0 0 auto; }
.fw-tip:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.fw-tip__blase { position: absolute; z-index: 30; top: calc(100% + 8px); left: -12px; width: min(300px, 80vw); margin: 0; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--c-text); background: var(--c-surface); color: var(--c-text); font-size: .85rem; font-weight: 400; line-height: 1.45; box-shadow: 3px 3px 0 var(--c-text); text-transform: none; letter-spacing: 0; }
.fw-tip__blase[hidden] { display: none; }
.fw-tipw.is-links .fw-tip__blase { left: auto; right: -12px; }

/* Metadaten-Fenster */
.fw-mf .fw-ov__box { max-width: 760px; }
.fw-mf__body { overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.fw-mf__schnell { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fw-mf__grid { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px 14px; align-items: start; }
.fw-mf__z { display: contents; }
.fw-mf__k { font-weight: 700; padding-top: 8px; }
.fw-mf__w { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.fw-mf__w input:not([type=checkbox]), .fw-mf__w textarea, .fw-mf__w select { font: inherit; min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-text); }
.fw-mf__w > input, .fw-mf__w > textarea { flex: 1 1 260px; }
.fw-mf__ist { font-variant-numeric: tabular-nums; }
.fw-mf__zst, .fw-mf__extra { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fw-mf__hint { flex-basis: 100%; font-size: .8rem; color: var(--c-muted); margin: 0; }
.fw-mf__grid > .fw-mf__hint { grid-column: 1 / -1; }
.fw-mf__w [aria-invalid='true'] { border-color: var(--c-coral); }
.fw-mf__stern { font-size: 1.4rem; background: none; border: 0; cursor: pointer; color: var(--c-amber); padding: 2px; }
.fw-mf__roh summary { cursor: pointer; font-weight: 600; }
.fw-mf__tab { width: 100%; border-collapse: collapse; font-size: .8rem; margin-top: 8px; }
.fw-mf__tab td, .fw-mf__tab th { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--c-line); vertical-align: top; overflow-wrap: anywhere; }
.fw-mf__tab td:first-child { color: var(--c-muted); width: 52px; }
.fw-mf__fuss { display: flex; justify-content: flex-end; gap: 10px; padding-top: 12px; border-top: 1px solid var(--c-line); }

/* Hilfe-Fenster, Auswahl (Geräte-Emojis) */
.fw-hilfe .fw-ov__box { max-width: 820px; }
.fw-hilfe__body { overflow: auto; }
.fw-hilfe__teil { padding: 0; margin-bottom: 18px; }
.fw-pick__such { font: inherit; min-height: 40px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-text); margin-bottom: 10px; }
.fw-pick__such[hidden] { display: none; }
.fw-pick__em { font-size: 30px; line-height: 1; padding: 8px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-bg); cursor: pointer; aspect-ratio: 1; }
.fw-pick__em:hover { border-color: var(--c-brand); }
.fw-pick .tab[hidden] { display: none; }

@media (max-width: 1000px) {
  .fw__alleGrid { grid-template-columns: 1fr; }
  .fw__vorschau { position: static; order: -1; }
  .fw__schnell { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fw__nav .tab { padding: 0 10px; gap: 5px; font-size: 14px; }
  .fw__tabTx small { display: none; }
  .fw__leiste { padding: 8px 10px; gap: 6px 10px; }
  .fw__lActs { width: 100%; }
  .fw__lActs .fw__start { flex: 1; }
  .fw__lHide { display: none; }
  .fw__lLink { white-space: normal; }
  .fw-mf__grid { grid-template-columns: 1fr; gap: 4px; }
  .fw-mf__k { padding-top: 10px; }
  .fw__erg { grid-template-columns: 72px minmax(0, 1fr); }
  .fw__ergImg { width: 72px; height: 56px; }
  .fw__ergKn { grid-column: 1 / -1; justify-content: flex-start; }
}

#fw[data-tab='bearbeiten'] .fw__lInfo { display: none; }
#fw[data-tab='bearbeiten'] .fw__leiste { padding: 6px 10px; justify-content: flex-end; }


.fw__ergTun .fw__ergNotiz { background: var(--c-bg-2); } .fw__ergTun .is-warn { background: color-mix(in srgb, var(--c-amber) 20%, transparent); }
.fw__wird { font-size: .8rem; color: var(--c-muted); font-style: italic; }
.fw-mf__x { min-width: 32px; min-height: 32px; border-radius: 8px; border: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-text); cursor: pointer; font-weight: 700; }
.fw-mf__x:hover { border-color: var(--c-coral); color: var(--c-coral); }
.fw-mf__tab tr.is-weg th, .fw-mf__tab tr.is-weg td:not(:last-child) { text-decoration: line-through; color: var(--c-muted); }
.fw-mf__tab td:last-child { width: 40px; text-align: right; }

/* Bearbeiten: (fast) Vollbild – volle Breite, Höhe = Fenster unter dem Seitenkopf */
@media (max-width: 640px) { .fw__nav { position: static; } }
html[data-fw-tab='bearbeiten'] #tool > .wrap { max-width: none; }

#fw[data-tab='bearbeiten'] .fw__nav { position: static; }
#fw[data-tab='bearbeiten'] .fw-ed--host { height: calc(100vh - var(--fw-hdr, 68px) - 12px); height: calc(100dvh - var(--fw-hdr, 68px) - 12px); min-height: 460px; scroll-margin-top: calc(var(--fw-hdr, 68px) + 6px); }
.fw-ed.fw-ed--voll { position: fixed; inset: 0; z-index: 80; height: auto !important; border-radius: 0; border: 0; margin: 0; }
@media (max-width: 640px) { #fw[data-tab='bearbeiten'] .fw-ed--host { height: calc(100dvh - var(--fw-hdr, 68px) - 4px); margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; } }
