/* scannen.css — /tools/scannen (05.10.2026). Baut auf werkzeug.css auf. */
.sc [hidden] { display: none !important; }
.sc-schritt { display: flex; flex-direction: column; gap: 0.9rem; }
.sc-symbol { background: linear-gradient(145deg, #3aa4b2, #1c6470); box-shadow: 0 10px 22px rgba(28, 100, 112, 0.25); }
.sc-kamera { align-self: center; height: 46px; padding: 0 1.3rem; border-radius: 14px; }
@media (hover: hover) and (pointer: fine) { .sc-kamera { display: none; } }

/* Ecken */
.sc-eckenkarte { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.sc-anleitung { margin: 0; font-size: 0.9rem; color: var(--sub); text-align: center; }
.sc-buehne { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; }
.sc-buehne canvas#scFoto { display: block; border-radius: 10px; }
.sc-rahmen { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
#scMaske { fill: rgba(15, 42, 74, 0.45); }
#scViereck { fill: rgba(90, 174, 232, 0.12); stroke: #5aaee8; stroke-width: 2.5; stroke-linejoin: round; }
.sc-punkt {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: none; cursor: grab; touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.sc-punkt::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: #fff; border: 3px solid #2288cc; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); transition: transform 0.15s;
}
.sc-punkt:hover::after, .sc-punkt:focus-visible::after { transform: scale(1.15); }
.sc-punkt.aktiv { cursor: grabbing; }
.sc-punkt.aktiv::after { transform: scale(0.7); background: #2288cc; }
.sc-punkt:focus { outline: none; }
.sc-lupe {
  position: absolute; width: 120px; height: 120px; border-radius: 50%; pointer-events: none; z-index: 3;
  box-shadow: 0 0 0 3px #fff, 0 10px 26px rgba(0, 0, 0, 0.35);
}
.sc-unten { width: 100%; align-items: center; }
.sc-abstand { flex: 1; }

/* Ergebnis */
.sc-ergebnis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); gap: 1rem; align-items: start; }
.sc-ergebnis[hidden] { display: none !important; }
@media (max-width: 860px) { .sc-ergebnis { grid-template-columns: 1fr; } }
.sc-vorschau { display: flex; justify-content: center; background: linear-gradient(160deg, #e9f1fa, #dde9f6); }
.sc-blatt { position: relative; display: flex; justify-content: center; }
.sc-blatt canvas { display: block; max-width: 100%; max-height: 72vh; height: auto; width: auto; box-shadow: 0 14px 34px rgba(15, 42, 74, 0.18); border-radius: 3px; background: #fff; }
.sc-rechnet { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.55); border-radius: 3px; min-height: 8rem; min-width: 8rem; }
.sc-rechnet i { width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid var(--bg2); border-top-color: var(--pri2); animation: scDreh 0.8s linear infinite; }
@keyframes scDreh { to { transform: rotate(360deg); } }
.sc-seite { display: flex; flex-direction: column; gap: 0.9rem; }
.sc-werkzeuge { display: flex; flex-direction: column; gap: 0.8rem; }
.sc-werkzeuge .wz-etikett { margin: 0; }
.sc-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.sc-filter button {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.6rem; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card2);
  font: 600 0.84rem 'Inter', sans-serif; color: var(--text2); cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sc-filter button:hover { background: var(--card); }
.sc-filter button.an { border-color: var(--pri3); background: var(--card); color: var(--pri); box-shadow: 0 4px 12px rgba(26, 106, 170, 0.1); }
.sc-filter i { width: 22px; height: 28px; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 1px rgba(15, 42, 74, 0.12); }
.f-hell { background: linear-gradient(#fff, #fff) 5px 7px / 12px 2px no-repeat, linear-gradient(#1a2a3a, #1a2a3a) 5px 12px / 10px 2px no-repeat, linear-gradient(#1a2a3a, #1a2a3a) 5px 17px / 12px 2px no-repeat, #fdfdfb; }
.f-sw { background: linear-gradient(#000, #000) 5px 7px / 12px 2px no-repeat, linear-gradient(#000, #000) 5px 12px / 10px 2px no-repeat, linear-gradient(#000, #000) 5px 17px / 12px 2px no-repeat, #fff; }
.f-grau { background: linear-gradient(#555, #555) 5px 7px / 12px 2px no-repeat, linear-gradient(#555, #555) 5px 12px / 10px 2px no-repeat, linear-gradient(#555, #555) 5px 17px / 12px 2px no-repeat, #e6e6e6; }
.f-original { background: linear-gradient(#5a4a3a, #5a4a3a) 5px 7px / 12px 2px no-repeat, linear-gradient(#5a4a3a, #5a4a3a) 5px 12px / 10px 2px no-repeat, linear-gradient(#5a4a3a, #5a4a3a) 5px 17px / 12px 2px no-repeat, linear-gradient(160deg, #e9dfcf, #b8a88f); }

.sc-seiten-kopf { display: flex; justify-content: space-between; align-items: baseline; }
.sc-anzahl { font-size: 0.78rem; color: var(--sub); }
.sc-seiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr)); gap: 0.5rem; margin-bottom: 0.8rem; }
.sc-mini { position: relative; }
.sc-mini-bild {
  display: block; width: 100%; aspect-ratio: 595 / 842; border-radius: 6px; border: 2px solid transparent; padding: 0; cursor: pointer;
  background: #fff center / cover no-repeat; box-shadow: 0 0 0 1px var(--border), 0 4px 10px rgba(15, 42, 74, 0.08); transition: border-color 0.15s;
}
.sc-mini.an .sc-mini-bild { border-color: var(--pri2); }
.sc-mini-bild span { position: absolute; left: 4px; bottom: 4px; min-width: 18px; padding: 0 4px; border-radius: 6px; background: rgba(15, 42, 74, 0.75); color: #fff; font-size: 0.68rem; font-weight: 700; }
.sc-mini-weg {
  position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0;
  background: var(--card); color: var(--sub); box-shadow: 0 2px 6px rgba(15, 42, 74, 0.2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.sc-mini-weg:hover { color: var(--danger); }
.sc-mini-weg svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.sc-neue { width: 100%; }
.sc-speichern { display: flex; flex-direction: column; gap: 0.5rem; }
.sc-speichern .wz-primaer { height: 48px; font-size: 0.95rem; border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .sc-rechnet i { animation-duration: 2.5s; } }
