/* Bild-Zuschnitt (fotoschnitt.js, übernommen aus tools/Kontakte): Zuschnitt im Kreis, Zoom, Drehen, Begradigen, Spiegeln.
   Die Variablen --ink --paper --muted --bd --brand --brand-light --g-glass* legt stil.css (Abschnitt Datum & Uhrzeit) auf unsere. */
.fs { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); color: var(--ink);
    background: var(--grund); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5), 0 0 0 1px color-mix(in srgb, var(--brand) 22%, transparent); overflow: auto; }
.fs::backdrop { background: rgba(36, 29, 27, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.fs__h { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px 12px;
    background: color-mix(in srgb, var(--grund) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--bd); }
.fs__h > :first-child { justify-self: start; }
.fs__h > :last-child { justify-self: end; }
.fs__h b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.fs__buehne { position: relative; width: min(100%, 60dvh); aspect-ratio: 1; margin: 14px auto 0; border-radius: 16px; overflow: hidden;
    background: var(--ink); background-image: linear-gradient(45deg, color-mix(in srgb, var(--paper) 8%, transparent) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--paper) 8%, transparent) 75%),
    linear-gradient(45deg, color-mix(in srgb, var(--paper) 8%, transparent) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--paper) 8%, transparent) 75%);
    background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.fs__h + .fs__buehne { width: min(calc(100% - 28px), 60dvh); }
.fs__cv { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
.fs__cv.is-zieht { cursor: grabbing; }
.fs__cv:focus-visible { box-shadow: inset 0 0 0 3px var(--brand-light); }
.fs__laedt, .fs__ablegen { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 600; pointer-events: none;
    color: var(--paper); background: color-mix(in srgb, var(--ink) 55%, transparent); }
.fs__ablegen { border: 2px dashed var(--brand-light); border-radius: 16px; background: color-mix(in srgb, var(--brand) 35%, transparent); }
.fs__laedt[hidden], .fs__ablegen[hidden] { display: none; }
.fs__werkzeug { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.fs__zeile { display: flex; align-items: center; gap: 10px; }
.fs__zeile--knoepfe { flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 2px; }
.fs__regler { flex: 1; min-width: 0; accent-color: var(--brand); height: 28px; cursor: pointer; }
.fs__sym { display: grid; place-items: center; width: 34px; flex: none; color: var(--muted); }
.fs__grad { width: 48px; flex: none; text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fs__k { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 34px; height: 34px; min-height: 0; padding: 0 10px; border-radius: 8px; font: inherit;
    font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; border: 1px solid var(--g-glass-line); background: var(--g-glass); box-shadow: var(--g-glass-shadow);
    transition: background .12s, transform .12s; }
.fs__zeile:not(.fs__zeile--knoepfe) .fs__k { padding: 0; width: 34px; }
.fs__k:hover { background: var(--g-glass-hover); }
.fs__k:active { background: var(--g-glass-press); transform: scale(.96); }
.fs__tipp { margin: 2px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); text-align: center; }
@media (pointer: coarse) { .fs__k { min-height: 44px; min-width: 44px; } .fs__zeile:not(.fs__zeile--knoepfe) .fs__k { width: 44px; } }
@media (max-width: 560px) {
    .fs { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
    .fs__k span { display: none; }
    .fs__zeile--knoepfe .fs__k { width: 44px; padding: 0; }
}
