/*
 * Hundeprofil – Frontend
 * Alle Regeln hängen unter .hpr-dog bzw. .hpr-list, damit Themes (z. B. Tabellen-/Listen-Resets) nicht dazwischenfunken.
 */
.hpr-dog { --hpr-line: #dfe5ea; --hpr-soft: #f4f7fa; --hpr-accent: #4f7ca3; --hpr-on-accent: #fff; margin: 0 0 30px; color: var(--hpr-text, inherit); container-type: inline-size; }
.hpr-dog, .hpr-dog *, .hpr-dog *::before, .hpr-dog *::after { box-sizing: border-box; }
.hpr-dog [hidden] { display: none !important; }
.hpr-dog ul, .hpr-dog dl, .hpr-dog dd, .hpr-dog figure { margin: 0; padding: 0; }
.hpr-dog ul li { margin: 0; padding: 0; list-style: none; }
.hpr-dog .hpr-sr, .hpr-dog .hpr-toggle-text.hpr-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hpr-dog .hpr-ico { display: inline-block; flex: 0 0 auto; width: 22px; height: 22px; max-width: none; vertical-align: middle; }
.hpr-dog .hpr-section { margin: 30px 0 0; }
.hpr-dog .hpr-section > h3 { margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--hpr-line); }

.hpr-dog .hpr-cover { margin: 0 0 22px; }
.hpr-dog .hpr-cover img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: var(--hpr-radius-img, 4px); }

/* Angaben: zweispaltig, dezent */
.hpr-dog .hpr-facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.hpr-dog .hpr-fact { margin: 0; padding: 9px 0; background: none; border: 0; border-bottom: 1px solid var(--hpr-line); }
.hpr-dog .hpr-fact-wide { grid-column: 1 / -1; }
.hpr-dog .hpr-fact-body { min-width: 0; }
.hpr-dog .hpr-fact dt { display: flex; align-items: center; gap: 6px; margin: 0 0 1px; font-size: .78em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6b7782; }
.hpr-dog .hpr-fact dt .hpr-ico { width: 15px; height: 15px; color: #8a96a0; }
.hpr-dog .hpr-fact dd { margin: 0; font-weight: 500; color: var(--hpr-text); overflow-wrap: break-word; }
.hpr-dog .hpr-fact-med { margin: 18px 0; padding: 14px 18px 12px; background: var(--hpr-soft, #f6f8fa); border: 1px solid var(--hpr-line); border-radius: var(--hpr-radius-img, 4px); }
.hpr-dog .hpr-fact-med dd { font-weight: 400; }
.hpr-dog .hpr-med-title { margin-bottom: 6px !important; }
.hpr-dog .hpr-med-group { margin: 0 0 14px; }
.hpr-dog .hpr-med-group h4 { margin: 0 0 3px; font-size: .95em; font-weight: 700; color: var(--hpr-text); }
.hpr-dog .hpr-checks li { display: flex; align-items: flex-start; gap: 8px; padding: 2px 0; }
.hpr-dog .hpr-checks .hpr-ico { width: 16px; height: 16px; margin-top: 3px; color: #3a9b5c; }
.hpr-dog .hpr-med-note { margin: 10px 0 0; font-size: .88em; font-style: italic; color: #555; }
.hpr-dog .hpr-fact-pedigree { margin-top: 6px; text-align: center; }
.hpr-dog .hpr-fact-pedigree dt { justify-content: center; }
.hpr-dog .hpr-pedigree { display: flex; flex-direction: column; align-items: center; margin-top: 6px; }
.hpr-dog .hpr-pedigree a { display: inline-block; cursor: zoom-in; line-height: 0; }
.hpr-dog .hpr-pedigree img { display: block; width: 100%; max-width: 300px; height: auto; border: 1px solid var(--hpr-line); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); transition: box-shadow .15s; }
.hpr-dog .hpr-pedigree a:hover img, .hpr-dog .hpr-pedigree a:focus-visible img { box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.hpr-dog .hpr-hint { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 6px; font-size: .85em; font-weight: 400; color: #555; }
.hpr-dog .hpr-hint .hpr-ico { width: 15px; height: 15px; }
@container (max-width: 330px) { .hpr-dog .hpr-facts-grid { grid-template-columns: 1fr; } }

/* Titel */
.hpr-dog .hpr-titles-block { margin: 0 0 22px; }
.hpr-dog .hpr-titles-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.hpr-dog .hpr-titles-head .hpr-ico { width: 28px; height: 28px; color: var(--hpr-accent-text, var(--hpr-accent)); }
.hpr-dog .hpr-titles-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 22px; }
.hpr-dog .hpr-titles-col { padding-left: 12px; border-left: 3px solid var(--hpr-accent); }
.hpr-dog .hpr-titles-col h5 { margin: 0 0 6px; font-size: .8em; letter-spacing: .06em; text-transform: uppercase; color: var(--hpr-accent-text, var(--hpr-accent)); }
.hpr-dog .hpr-titles-col li { margin: 0; padding: 4px 0; border-bottom: 1px dotted var(--hpr-line); font-weight: 600; color: var(--hpr-text); overflow-wrap: break-word; }
.hpr-dog .hpr-titles-col li:last-child { border-bottom: 0; }

/* Ergebnisse */
.hpr-dog .hpr-year { display: flex; align-items: baseline; gap: 4px 12px; margin: 26px 0 8px; padding: 2px 0 2px 10px; font-size: 1.2em; border-left: 4px solid var(--hpr-accent); cursor: pointer; list-style: none; }
.hpr-dog .hpr-year::-webkit-details-marker { display: none; }
.hpr-dog .hpr-year::after { content: ""; align-self: center; flex: 0 0 auto; width: 8px; height: 8px; margin-left: auto; margin-right: 6px; border: solid var(--hpr-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.hpr-dog .hpr-year-box[open] > .hpr-year::after { transform: rotate(-135deg); }
.hpr-dog .hpr-year:focus-visible { outline: 2px solid var(--hpr-accent); outline-offset: 2px; }
.hpr-dog .hpr-year-n { font-size: .7em; font-weight: 400; color: var(--hpr-muted, #666); }
.hpr-dog .hpr-table-wrap { position: relative; overflow-x: auto; }
.hpr-dog .hpr-table { width: 100%; margin: 0; border-collapse: collapse; border-spacing: 0; font-size: .92em; table-layout: fixed; }
.hpr-dog .hpr-table th, .hpr-dog .hpr-table td { padding: 8px 8px; text-align: left; vertical-align: middle; border: 0; border-bottom: 1px solid var(--hpr-line); background: transparent; line-height: 1.35; color: var(--hpr-text); }
.hpr-dog .hpr-table thead th { padding-top: 6px; padding-bottom: 6px; font-size: .75em; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--hpr-on-accent, #fff); background: var(--hpr-accent); white-space: nowrap; border-bottom: 0; }
.hpr-dog .hpr-table thead th:first-child { border-radius: 4px 0 0 4px; }
.hpr-dog .hpr-table thead th:last-child { border-radius: 0 4px 4px 0; }
.hpr-dog .hpr-c-date { white-space: nowrap; font-weight: 600; }
.hpr-dog .hpr-c-ort { overflow-wrap: break-word; }
.hpr-dog .hpr-badge { display: inline-block; padding: 1px 7px; font-size: .85em; font-weight: 700; color: var(--hpr-accent-text, var(--hpr-accent)); background: #fff; border: 1px solid var(--hpr-accent); border-radius: var(--hpr-radius-btn, 16px); }
.hpr-dog .hpr-place { display: inline-block; min-width: 24px; padding: 1px 6px; text-align: center; font-weight: 700; color: #fff; background: #8a96a0; border-radius: var(--hpr-radius-btn, 16px); }
.hpr-dog .hpr-place-1 { background: #d4a017; }
.hpr-dog .hpr-place-2 { background: #8d98a1; }
.hpr-dog .hpr-place-3 { background: #b9774a; }
.hpr-dog .hpr-col-toggle { white-space: nowrap; text-align: right !important; }
/* Feste Spaltenbreiten: die Tabelle verschiebt sich beim Öffnen der Details nicht. */
.hpr-dog .hpr-table th:nth-child(1) { width: 100px; }
.hpr-dog .hpr-table th:nth-child(2) { width: 56px; }
.hpr-dog .hpr-table th:nth-child(4) { width: 68px; }
.hpr-dog .hpr-table th:nth-child(6) { width: 104px; }
.hpr-dog .hpr-row-main.is-open td { background: var(--hpr-soft); border-bottom-color: transparent; }
.hpr-dog .hpr-row-detail td { padding: 0 8px 12px; background: var(--hpr-soft); }

.hpr-dog .hpr-detail-list { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; }
.hpr-dog .hpr-detail-list li { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; min-width: 0; margin: 0; padding: 3px 10px; background: #fff; border: 1px solid var(--hpr-line); border-radius: var(--hpr-radius-btn, 16px); }
.hpr-dog .hpr-detail-list .hpr-wide { flex: 1 1 14em; border-radius: 6px; }
.hpr-dog .hpr-detail-list .hpr-k { font-size: .75em; text-transform: uppercase; letter-spacing: .04em; color: #5f6b75; }
.hpr-dog .hpr-detail-list .hpr-v { min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.hpr-dog .hpr-detail-list .hpr-award, .hpr-dog .hpr-detail-list .hpr-result { background: var(--hpr-accent); border-color: var(--hpr-accent); }
.hpr-dog .hpr-detail-list .hpr-award .hpr-v, .hpr-dog .hpr-detail-list .hpr-result .hpr-v { color: var(--hpr-on-accent, #fff); }
.hpr-dog .hpr-flagimg { display: inline-block; width: 20px; height: 15px; max-width: none; margin: 0 6px 0 0; vertical-align: -2px; object-fit: cover; border: 1px solid var(--hpr-line); border-radius: 2px; }

.hpr-dog .hpr-toggle { display: none; align-items: center; gap: 6px; margin: 0; padding: 4px 10px; font: inherit; font-size: .85em; font-weight: 600; line-height: 1.3; text-transform: none; letter-spacing: 0; color: var(--hpr-accent-text, var(--hpr-accent)); background: #fff; border: 1px solid var(--hpr-accent); border-radius: var(--hpr-radius-btn, 16px); box-shadow: none; cursor: pointer; }
.hpr-js .hpr-dog .hpr-toggle { display: inline-flex; }
.hpr-dog .hpr-toggle:hover, .hpr-dog .hpr-toggle:focus-visible, .hpr-dog .hpr-toggle[aria-expanded="true"] { color: var(--hpr-on-accent, #fff); background: var(--hpr-accent); }
.hpr-dog .hpr-chevron { display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.hpr-dog .hpr-toggle[aria-expanded="true"] .hpr-chevron { transform: rotate(-135deg) translateY(-2px); }

/* schmale Spalte (Seitenleiste im Theme): kompakter, Knopftext ausblenden */
@container (max-width: 520px) {
	.hpr-dog .hpr-table { font-size: .85em; }
	.hpr-dog .hpr-table th, .hpr-dog .hpr-table td { padding: 7px 4px; }
	.hpr-dog .hpr-table thead th { letter-spacing: 0; }
	.hpr-dog .hpr-toggle { padding: 5px 8px; }
	.hpr-dog .hpr-toggle-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

.hpr-dog .hpr-legend { margin: 22px 0 0; font-size: .9em; }
.hpr-dog .hpr-legend summary { cursor: pointer; font-weight: 700; color: var(--hpr-accent-text, var(--hpr-accent)); }
.hpr-dog .hpr-legend ul { margin: 8px 0 0; columns: 2 240px; }
.hpr-dog .hpr-legend li { margin: 0 0 4px; padding: 0; break-inside: avoid; }


/* Lightbox (liegt außerhalb von .hpr-dog) */
.hpr-lock { overflow: hidden; }
.hpr-overlay { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .88); }
.hpr-overlay[hidden] { display: none; }
.hpr-overlay:not([hidden]) { animation: hpr-fade .25s ease-out; }
.hpr-ov-figure { margin: 0; max-width: 92vw; max-height: 92vh; text-align: center; color: #fff; opacity: 0; }
.hpr-ov-figure.is-in { animation: hpr-zoom .35s ease-out forwards; }
@keyframes hpr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hpr-zoom { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.hpr-overlay:not([hidden]), .hpr-ov-figure.is-in { animation: none; }
	.hpr-ov-figure.is-in { opacity: 1; }
}
.hpr-ov-figure img { display: block; max-width: 92vw; max-height: 82vh; width: auto; height: auto; margin: 0 auto; background: #fff; }
.hpr-ov-figure figcaption { margin-top: 8px; font-size: .95em; line-height: 1.4; white-space: pre-line; }
.hpr-ov-count { display: block; margin-top: 4px; font-size: .85em; opacity: .8; }
.hpr-overlay button { position: absolute; width: 44px; height: 44px; padding: 0; font-size: 34px; line-height: 1; color: #fff; background: rgba(255, 255, 255, .12); border: 0; border-radius: 50%; cursor: pointer; }
.hpr-overlay button:hover, .hpr-overlay button:focus-visible { background: rgba(255, 255, 255, .3); }
.hpr-overlay button[hidden] { display: none; }
.hpr-ov-close { top: 16px; right: 16px; }
.hpr-ov-prev { left: 16px; top: 50%; margin-top: -22px; }
.hpr-ov-next { right: 16px; top: 50%; margin-top: -22px; }

/* Übersicht [hunde] */
.hpr-list { display: grid; gap: 22px 18px; margin: 0 0 30px; padding: 0; list-style: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hpr-list.hpr-cols-1 { grid-template-columns: 1fr; }
.hpr-list.hpr-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hpr-list.hpr-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hpr-list.hpr-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hpr-list.hpr-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hpr-list .hpr-card { margin: 0; padding: 0; list-style: none; }
.hpr-list .hpr-card a { display: block; color: inherit; text-decoration: none; }
.hpr-list .hpr-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f0f0f0; border: 1px solid #d9d9d9; border-radius: var(--hpr-radius-img, 4px); }
.hpr-list .hpr-card-img img { display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; transition: transform .2s; }
.hpr-list .hpr-card a:hover .hpr-card-img img, .hpr-list .hpr-card a:focus-visible .hpr-card-img img { transform: scale(1.04); }
.hpr-list .hpr-card-name { display: block; margin-top: 8px; font-weight: 700; }
.hpr-list .hpr-card-age { display: block; font-size: .9em; color: #666; }
@media (max-width: 900px) { .hpr-list[class*="hpr-cols-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .hpr-list[class*="hpr-cols-"] { grid-template-columns: 1fr; } }

/* Details: Platz/Note, Auszeichnungen, BIG/BIS, Bericht + Foto */
.hpr-dog .hpr-c-judge { overflow-wrap: anywhere; }
.hpr-dog .hpr-detail-list .hpr-judge-narrow { display: none; }
.hpr-dog .hpr-row-detail td { padding-bottom: 26px; }
.hpr-dog .hpr-detail-list .hpr-result, .hpr-dog .hpr-detail-list .hpr-award, .hpr-dog .hpr-detail-list .hpr-special { box-sizing: border-box; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; line-height: 1; border-width: 1px; border-radius: var(--hpr-radius-btn, 16px); box-shadow: none; }
.hpr-dog .hpr-detail-list .hpr-result .hpr-v, .hpr-dog .hpr-detail-list .hpr-award .hpr-v, .hpr-dog .hpr-detail-list .hpr-special .hpr-v { font-size: 1em; line-height: 1; letter-spacing: 0; }
.hpr-dog .hpr-detail-list .hpr-result .hpr-pl { display: inline-block; min-width: 1.5em; margin-left: 7px; padding: 2px 4px; border-radius: 10px; background: rgba(255, 255, 255, .3); text-align: center; font-size: .9em; }
.hpr-dog .hpr-detail-list .hpr-special svg { display: block; width: 16px; height: 16px; flex: 0 0 auto; }
.hpr-dog .hpr-detail-list .hpr-special .hpr-v { color: inherit; }
.hpr-dog .hpr-detail-list .hpr-special { background: linear-gradient(135deg, #fbe38a, #d4a017); border-color: #a87c0b; color: #4a3500; }
.hpr-dog .hpr-detail-list .hpr-special.hpr-sp-silber { background: linear-gradient(135deg, #f4f6f8, #b9c0c7); border-color: #8a929a; color: #2a2f34; }
.hpr-dog .hpr-detail-list .hpr-special.hpr-sp-bronze { background: linear-gradient(135deg, #efc9a0, #bf8244); border-color: #8a5524; color: #3a1f08; }
.hpr-dog .hpr-detail-list .hpr-special.hpr-sp-weiss { background: #fff; border-color: #8c8f94; color: #2b2b2b; }
.hpr-dog .hpr-detail-list .hpr-special.hpr-sp-system { background: var(--hpr-accent, #4f7ca3); border-color: var(--hpr-accent, #4f7ca3); color: var(--hpr-on-accent, #fff); }

.hpr-dog .hpr-detail-body { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; }
.hpr-dog .hpr-col { min-width: 0; }
.hpr-dog .hpr-col > .hpr-k { display: block; margin: 0 0 4px; font-size: .75em; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #5f6b75; }
.hpr-dog .hpr-col-report { flex: 1 1 0; }
.hpr-dog .hpr-report { padding: 8px 12px; background: #fff; border: 1px solid var(--hpr-line); border-radius: 6px; }
.hpr-dog .hpr-report .hpr-v { display: block; font-style: italic; line-height: 1.5; overflow-wrap: anywhere; }
.hpr-dog .hpr-photo { flex: 0 0 34%; max-width: 280px; }
.hpr-dog .hpr-photo a { display: block; line-height: 0; cursor: zoom-in; }
.hpr-dog .hpr-photo img { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--hpr-line); border-radius: var(--hpr-radius-img, 4px); }
.hpr-dog .hpr-detail-body:not(.has-both) .hpr-photo { flex-basis: auto; width: 100%; max-width: 280px; }
.hpr-dog .hpr-report-scan { display: block; }
.hpr-dog .hpr-report-scan a { display: block; line-height: 0; cursor: zoom-in; }
.hpr-dog .hpr-report-scan img { display: block; width: 100%; max-width: 420px; height: auto; border: 1px solid var(--hpr-line); border-radius: var(--hpr-radius-img, 4px); }
.hpr-dog .hpr-report .hpr-v + .hpr-report-scan { margin-top: 8px; }

/* Mehrere Fotos: 2 nebeneinander, ab 3 dreispaltig, weitere in der nächsten Zeile; quadratisch zugeschnitten */
.hpr-dog .hpr-detail-body.has-multi { flex-direction: column; }
.hpr-dog .hpr-photo.is-multi, .hpr-dog .hpr-detail-body:not(.has-both) .hpr-photo.is-multi { flex-basis: auto; width: 100%; max-width: 640px; }
.hpr-dog .hpr-photos.cols-2, .hpr-dog .hpr-photos.cols-3 { display: grid; gap: 8px; }
.hpr-dog .hpr-photos.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hpr-dog .hpr-photos.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hpr-dog .hpr-photos.cols-2 a, .hpr-dog .hpr-photos.cols-3 a { aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--hpr-radius-img, 4px); }
.hpr-dog .hpr-photos.cols-2 img, .hpr-dog .hpr-photos.cols-3 img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

@container (max-width: 520px) {
	/* Spalte auf Breite 0 statt display:none, damit colspan der Detailzeile stimmt */
	.hpr-dog .hpr-table th:nth-child(5), .hpr-dog .hpr-table td.hpr-c-judge { width: 0; max-width: 0; padding: 0; overflow: hidden; font-size: 0; border: 0; }
	.hpr-dog .hpr-table th:nth-child(1) { width: 92px; }
	.hpr-dog .hpr-table th:nth-child(2) { width: 52px; }
	.hpr-dog .hpr-table th:nth-child(4) { width: 56px; }
	.hpr-dog .hpr-table th:nth-child(6) { width: 48px; }
	.hpr-dog .hpr-detail-list .hpr-judge-narrow { display: inline-flex; }
	.hpr-dog .hpr-row-detail td { padding-left: 4px; padding-right: 4px; }
	.hpr-dog .hpr-detail-body.has-both { flex-direction: column; }
	.hpr-dog .hpr-detail-body.has-both .hpr-photo { flex-basis: auto; width: 100%; max-width: none; }
	.hpr-dog .hpr-photo.is-multi { max-width: none; }
}

/* Weitere Angaben bei Züchter / Eigentümer */
.hpr-dog .hpr-more { display: block; margin-top: 6px; }
.hpr-dog .hpr-toggle.hpr-toggle-small { padding: 2px 9px; font-size: .78em; }
.hpr-dog .hpr-kennel { display: block; margin-top: 2px; font-size: .9em; font-weight: 400; overflow-wrap: anywhere; }
.hpr-dog .hpr-kennel-k { color: #5f6b75; }
.hpr-dog .hpr-kennel a { color: var(--hpr-accent-text, var(--hpr-accent)); text-decoration: underline; text-underline-offset: 2px; }
.hpr-dog .hpr-note { display: block; margin-top: 6px; font-size: .85em; font-weight: 400; font-style: italic; line-height: 1.5; color: #5f6b75; overflow-wrap: anywhere; }
.hpr-dog .hpr-note[hidden] { display: none; }

/* ---------- Ausstellungsübersicht [hunde_ausstellungen] ---------- */
.hpr-dog .hpr-filtered { display: none !important; }
.hpr-dog .hpr-sub { display: block; margin-top: 1px; font-size: .85em; font-weight: 400; color: #5f6b75; }
.hpr-dog .hpr-c-dog { overflow-wrap: anywhere; font-weight: 600; }
.hpr-dog .hpr-c-dog a { color: var(--hpr-accent-text, var(--hpr-accent)); text-decoration: none; }
.hpr-dog .hpr-c-dog a:hover, .hpr-dog .hpr-c-dog a:focus-visible { text-decoration: underline; }
.hpr-dog .hpr-empty, .hpr-dog .hpr-nomatch { margin: 18px 0; padding: 14px 16px; background: var(--hpr-soft); border: 1px solid var(--hpr-line); border-radius: 6px; }
.hpr-dog .hpr-nomatch[hidden] { display: none; }
/* Spaltenbreiten: Datum | Hund | Art | Ort | Richter | Details */
.hpr-dog .hpr-table.hpr-t-all th:nth-child(1) { width: 100px; }
.hpr-dog .hpr-table.hpr-t-all th:nth-child(2) { width: auto; }
.hpr-dog .hpr-table.hpr-t-all th:nth-child(3) { width: 56px; }
.hpr-dog .hpr-table.hpr-t-all th:nth-child(4) { width: auto; }
.hpr-dog .hpr-table.hpr-t-all th:nth-child(5) { width: auto; }
.hpr-dog .hpr-table.hpr-t-all th:nth-child(6) { width: 104px; }
@container (max-width: 520px) {
	.hpr-dog .hpr-table.hpr-t-all th:nth-child(1) { width: 80px; }
	.hpr-dog .hpr-table.hpr-t-all th:nth-child(3) { width: 52px; }
	.hpr-dog .hpr-table.hpr-t-all th:nth-child(5), .hpr-dog .hpr-table.hpr-t-all td.hpr-c-judge { width: 0; }
	.hpr-dog .hpr-table.hpr-t-all th:nth-child(6) { width: 48px; }
}

/* Filterleiste (nur mit JavaScript sichtbar) */
.hpr-dog .hpr-filter { display: none; margin: 0 0 8px; padding: 10px 16px; background: var(--hpr-soft); border: 1px solid var(--hpr-line); border-radius: 6px; }
.hpr-js .hpr-dog .hpr-filter { display: block; }
.hpr-dog .hpr-filter > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-height: 28px; cursor: pointer; list-style: none; }
.hpr-dog .hpr-filter > summary::-webkit-details-marker { display: none; }
.hpr-dog .hpr-filter > summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border: solid var(--hpr-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.hpr-dog .hpr-filter[open] > summary::after { transform: rotate(-135deg); }
.hpr-dog .hpr-filter > summary:focus-visible { outline: 2px solid var(--hpr-accent); outline-offset: 2px; }
.hpr-dog .hpr-filter-title { font-weight: 700; color: var(--hpr-accent-text, var(--hpr-accent)); }
.hpr-dog .hpr-filter-form { margin-top: 12px; }
.hpr-dog .hpr-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 14px; }
.hpr-dog .hpr-f-item { display: block; margin: 0; font-size: .9em; }
.hpr-dog .hpr-f-q { grid-column: 1 / -1; }
.hpr-dog .hpr-f-item > span { display: block; margin: 0 0 3px; font-size: .8em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5f6b75; }
.hpr-dog .hpr-f-item select, .hpr-dog .hpr-f-item input { box-sizing: border-box; width: 100%; min-height: 40px; margin: 0; padding: 6px 10px; font: inherit; color: inherit; background: #fff; border: 1px solid #aab4bc; border-radius: 4px; }
.hpr-dog .hpr-f-item select:focus-visible, .hpr-dog .hpr-f-item input:focus-visible { outline: 2px solid var(--hpr-accent); outline-offset: 1px; }
.hpr-dog .hpr-filter-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.hpr-dog .hpr-filter-reset { margin: 0; padding: 6px 14px; font: inherit; font-size: .9em; font-weight: 600; color: var(--hpr-accent-text, var(--hpr-accent)); background: #fff; border: 1px solid var(--hpr-accent); border-radius: var(--hpr-radius-btn, 16px); cursor: pointer; }
.hpr-dog .hpr-filter-reset:hover, .hpr-dog .hpr-filter-reset:focus-visible { color: var(--hpr-on-accent, #fff); background: var(--hpr-accent); }
.hpr-dog .hpr-filter-count { font-size: .9em; color: #5f6b75; }

/* Ziel eines Ausstellungs-Ankers (#hpr-r-…) */
.hpr-dog .hpr-row-main { scroll-margin-top: 90px; }
.hpr-dog .hpr-row-main.hpr-target > td, .hpr-dog .hpr-row-main.hpr-target + .hpr-row-detail > td { background: var(--hpr-soft); }

/* YouTube-Link-Box unter dem Richterbericht */
.hpr-dog .hpr-k-video { display: block; margin-top: 12px; }
.hpr-dog .hpr-video { display: flex; flex-direction: column; gap: 6px; }
.hpr-dog .hpr-video-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.hpr-dog .hpr-video-link:hover span:not(.hpr-sr) { text-decoration: underline; }
.hpr-dog .hpr-yt { flex: 0 0 auto; }
.hpr-dog .hpr-col-report > .hpr-k:first-child + .hpr-report { margin-top: 2px; }
