body { background: #f4f6f9; }
.page-header, .content-card, .round-card {
    background: #fff;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,.06);
}
.page-header { padding: 24px; }
.page-logo { width: 82px; height: 82px; object-fit: contain; }
.small-muted { color: #6c757d; font-size: .94rem; }
.round-card { transition: .2s ease; }
.round-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.09); }
.table > :not(caption) > * > * { vertical-align: middle; }
.result-scroll { overflow-x: auto; }
.result-entry-page { max-width: 1200px; margin-inline: auto; }
.result-entry-page .team-entry-card { padding: 1rem !important; }
.result-entry-page .team-entry-head { margin-bottom: .75rem !important; }
.result-entry-page .participation-box { width: 220px; }
.compact-result-grid { min-width: 860px; table-layout: fixed; }
.compact-result-grid th { white-space: nowrap; }
.compact-result-grid th,
.compact-result-grid td { padding: .42rem .5rem; }
.compact-result-grid th:nth-child(1) { width: 58px; }
.compact-result-grid th:nth-child(3) { width: 145px; }
.compact-result-grid th:nth-child(4) { width: 68px; }
.compact-result-grid th:nth-child(n+5):nth-child(-n+8) { width: 76px; }
.compact-result-grid th:nth-child(9) { width: 88px; }
.compact-result-grid .player-input,
.compact-result-grid .pass-input { width: 100%; min-width: 0; }
.result-entry-page .team-note { margin-top: .75rem !important; }
.summary-cell { background: #f8f9fa; cursor: pointer; min-width: 64px; }
.summary-cell:hover { background: #e9f2ff; }
/* Detailerfassung: Bahnspalte kompakt, V/A/G/F gleich breit und gleich hoch */
.detail-table { table-layout: fixed; min-width: 620px; }
.detail-table .detail-col-bahn { width: 96px; }
.detail-table .detail-col-wert { width: calc((100% - 96px) / 4); }
.detail-table th,
.detail-table td { vertical-align: middle; padding: .4rem; }
.detail-table .lane-value { width: 100%; min-width: 0; height: 42px; text-align: center; font-size: 1rem; font-weight: 600; padding: .45rem .5rem; }
.detail-table .calculated.lane-value { display: flex; align-items: center; justify-content: center; background: #f1f3f5; color: #212529; }
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.team-summary { background: #eef2f6; font-weight: 700; }
.status-wertung { border-left: 6px solid #198754; }
.status-aus_wertung { border-left: 6px solid #dc3545; }
.status-ausser_konkurrenz { border-left: 6px solid #6c757d; }
.placement-1 { background: #fff3a3; }
.placement-2 { background: #e9ecef; }
.placement-3 { background: #e8b27a; }
.sticky-actions { position: sticky; bottom: 0; z-index: 20; background: rgba(255,255,255,.96); border-top: 1px solid #dee2e6; padding: 14px; }
@media (max-width: 575.98px) {
    .page-header { padding: 18px; }
    .page-logo { width: 64px; height: 64px; }
    .result-entry-page .participation-box { width: 100%; }
}
@media print {
    body { background: #fff; }
    .no-print { display: none !important; }
    .page-header, .content-card, .round-card { box-shadow: none; border: 1px solid #dee2e6; }
}

/* Ungespeicherte Eingaben dezent sichtbar markieren */
.result-entry-page .team-entry-card.has-unsaved-changes {
    outline: 2px solid rgba(220, 53, 69, .55);
    outline-offset: -2px;
    background: rgba(220, 53, 69, .025);
}
.compact-result-grid tr[data-result-row].has-unsaved-changes > td {
    background: rgba(220, 53, 69, .055);
}
.compact-result-grid tr[data-result-row].has-unsaved-changes > td:first-child {
    box-shadow: inset 4px 0 0 rgba(220, 53, 69, .72);
}
