/* CRR170 – Hufaufnahme im Querformat und Foto-Analyselinien */
.hoof-overview-sheet,.hoof-history-sheet,.hoof-analysis-sheet{width:min(720px,100%)}
.hoof-intro{display:grid;gap:4px;padding:14px 15px;margin-bottom:11px;border-radius:17px;background:#e8edf6;color:#18336d;line-height:1.4}
.hoof-intro span,.hoof-safety-note span,.hoof-camera-tip span{font-size:13px}
.hoof-progress-card{padding:12px 14px;margin-bottom:10px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.hoof-progress-card>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.hoof-progress-card span{color:var(--muted);font-size:13px;font-weight:800}
.hoof-progress-card progress{display:block;width:100%;height:9px;accent-color:#a56f48}
.hoof-overview-list{display:grid;gap:9px;margin:13px 0}
.hoof-overview-row{padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--card)}
.hoof-overview-title{display:flex;align-items:center;gap:9px;margin-bottom:9px}.hoof-overview-title>span,.hoof-code{display:inline-grid;place-items:center;min-width:36px;height:28px;padding:0 7px;border-radius:10px;background:#18336d;color:#fff;font-size:12px;font-weight:900;letter-spacing:.05em}.hoof-overview-title b{font-size:15px}
.hoof-shot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hoof-shot-button{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:8px;align-items:center;justify-items:start;min-height:58px;padding:9px 11px;text-align:left}.hoof-shot-button>span{grid-row:1/3;font-size:18px}.hoof-shot-button b{font-size:14px}.hoof-shot-button small{font-size:11px;opacity:.78}
.hoof-safety-note{display:grid;gap:4px;padding:13px 14px;margin-top:12px;border-radius:16px;background:#f1e8df;color:#5d493b;line-height:1.42}

.hoof-camera-sheet{width:min(900px,100%);max-height:98vh;padding:11px;background:#0d1727;color:#fff}
.hoof-camera-sheet .sheet-head{padding:2px 3px 7px}.hoof-camera-sheet .close{background:#ffffff1d;color:#fff}.hoof-camera-sheet .input{background:#fff;color:#27211f}
.hoof-landscape-instruction{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:9px 12px;margin-bottom:8px;border:1px solid #ffffff24;border-radius:14px;background:#ffffff0d;color:#ece8e3}.hoof-landscape-instruction span{font-size:12px;color:#c9cbd0;text-align:right}
.hoof-camera-stage{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:18px;background:#03060b;box-shadow:inset 0 0 0 1px #ffffff22}
.hoof-camera-stage video,.hoof-camera-stage .hoof-capture-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hoof-frame{position:absolute;z-index:3;inset:0;pointer-events:none}.hoof-frame>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:.96;filter:drop-shadow(0 0 2px #0b1320) drop-shadow(0 0 6px #0b1320)}
.hoof-parallel-line{position:absolute;left:8%;right:8%;height:1px;border-top:2px dashed #e6bc81;opacity:.68}.hoof-parallel-line.one{top:27%}.hoof-parallel-line.two{bottom:16%}
.hoof-camera-guide{position:absolute;z-index:4;left:50%;top:9px;transform:translateX(-50%);max-width:88%;padding:7px 11px;border:1px solid #ffffff38;border-radius:999px;background:#0b1320dc;color:#fff;font-size:12px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hoof-level{position:absolute;z-index:5;right:9px;bottom:9px;padding:8px 10px;border:1px solid #ffffff38;border-radius:12px;background:#111a2add;color:#fff;font-size:11px;font-weight:850}.hoof-level.good{background:#2f765ae8}.hoof-level-mark{display:inline-block;width:36px;height:3px;margin-right:7px;border-radius:3px;background:#e6bc81;vertical-align:middle;transform:rotate(var(--hoof-roll,0deg))}
.hoof-camera-message{position:absolute;z-index:7;left:14px;right:14px;bottom:14px;padding:11px;border-radius:14px;background:#0b1320e8;text-align:center;font-size:13px}
.hoof-portrait-warning{display:none;position:absolute;z-index:8;inset:0;place-content:center;gap:5px;padding:24px;background:#0b1320e8;text-align:center}.hoof-portrait-warning b{font-size:19px}.hoof-portrait-warning span{font-size:13px;color:#d5d7dc}
.hoof-camera-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:9px}.hoof-camera-controls button{min-height:50px}.hoof-primary{background:#e6bc81;color:#17233a}.hoof-secondary{border:1px solid #ffffff2b;background:#ffffff14;color:#fff}
.hoof-capture-form{padding:12px;margin-top:10px;border-radius:17px;background:#f6f2ec;color:#2f2926}.hoof-capture-form textarea{min-height:72px}.hoof-camera-tip{display:grid;gap:3px;padding:10px 12px;margin-top:9px;border-radius:14px;background:#ffffff0d;color:#d9dce2;line-height:1.4}

.hoof-history-section{margin-top:17px}.hoof-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hoof-history-card{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:var(--card)}
.hoof-history-photo{position:relative;aspect-ratio:16/9;overflow:hidden;background:#dde1e6}.hoof-history-photo img{display:block;width:100%;height:100%;object-fit:cover}.hoof-history-photo .photo-loading{position:absolute;inset:0;display:grid;place-items:center;padding:10px;color:var(--muted);font-size:11px;text-align:center}
.hoof-history-meta{display:grid;gap:3px;padding:10px}.hoof-history-meta>b{font-size:15px}.hoof-history-meta>span,.hoof-history-meta>small{color:var(--muted);font-size:11px;line-height:1.35}.hoof-history-meta .hoof-analyzed{color:#347255;font-weight:800}.hoof-history-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin-top:7px}.hoof-history-actions button{min-height:36px}

.hoof-analysis-stage{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:18px;background:#111827}.hoof-analysis-stage>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hoof-analysis-stage>.photo-loading{position:absolute;z-index:1;inset:0;display:grid;place-items:center;color:#fff;background:#111827}
.hoof-analysis-stage svg{position:absolute;z-index:2;inset:0;width:100%;height:100%;touch-action:none}.hoof-analysis-line{stroke:#f4df70;stroke-width:6;stroke-linecap:round;filter:drop-shadow(0 1px 2px #000)}.hoof-analysis-line.ground{stroke:#fff;stroke-dasharray:15 10}.hoof-analysis-line.center{stroke:#fff;stroke-dasharray:12 10}.hoof-analysis-line.coronet{stroke:#dc9a7b}.hoof-analysis-line.projection{stroke:#f0a35b;stroke-width:10}
.hoof-analysis-handle{cursor:grab}.hoof-analysis-handle circle{fill:#18336d;stroke:#fff;stroke-width:4}.hoof-analysis-handle text{fill:#fff;font:900 14px "CRR Louis George Cafe",Arial,sans-serif;pointer-events:none}
.hoof-analysis-help{padding:9px 11px;margin:8px 0;border-radius:13px;background:#e8edf6;color:#425474;font-size:12px;line-height:1.45}
.hoof-analysis-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:9px 0}.hoof-analysis-results>div{display:grid;gap:4px;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--card)}.hoof-analysis-results span{min-height:30px;color:var(--muted);font-size:11px;line-height:1.25}.hoof-analysis-results b{font-size:18px;color:#18336d}

@media(orientation:portrait){.hoof-camera-stage .hoof-portrait-warning{display:grid}}
@media(max-width:520px){.hoof-landscape-instruction{align-items:flex-start;flex-direction:column}.hoof-landscape-instruction span{text-align:left}.hoof-history-grid{grid-template-columns:1fr}.hoof-analysis-results{grid-template-columns:1fr}.hoof-analysis-results span{min-height:0}.hoof-camera-guide{font-size:10px}.hoof-camera-controls{grid-template-columns:1fr}}
