/* Hunde-Steckbrief (Simply Read Modern) */
.srm-dog { container-type: inline-size; margin: 0 0 40px; font-size: 16px; line-height: 1.5; }
.srm-dog h2, .srm-dog h3 { margin: 0; }
.srm-dog ul { list-style: none; margin: 0; padding: 0; }
.srm-dog ul li:before { content: none !important; }
.srm-dog__head { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: start; }
.srm-dog__photo { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: #2A2A22; aspect-ratio: 3 / 4; }
.srm-dog__photo img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0 !important; display: block; }
.srm-dog__badge {
	position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, .93); color: #2F4A2B; font-weight: 700; font-size: 13px;
}
.srm-dog__badge--ruhestand { color: #6E4A12; }
.srm-dog__intro { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.srm-dog__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--srm-accent); margin-bottom: -12px; }
.srm-dog__name { font-family: var(--srm-display); font-size: clamp(40px, 6cqi, 60px) !important; line-height: 1 !important; letter-spacing: -0.02em; margin: 0 !important; }
.srm-dog__breedname { font-size: 17px; color: var(--srm-text-2); margin-top: -8px; }
.srm-dog__breedname strong { color: var(--srm-text); }
.srm-dog__age { display: flex; align-items: center; gap: 18px; padding: 16px 20px; background: #fff; border: 1px solid #ECE6D8; border-radius: 18px; }
.srm-dog__age-badge {
	flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; background: #FBF1DE; color: #7A5416;
	display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.srm-dog__age-badge strong { font-family: var(--srm-display); font-size: 28px; }
.srm-dog__age-badge span { font-size: 12px; font-weight: 700; margin-top: 3px; }
.srm-dog__age-text { font-family: var(--srm-display); font-weight: 700; font-size: 23px; line-height: 1.2; }
.srm-dog__age-sub { font-size: 15px; color: var(--srm-text-2); margin-top: 3px; }
.srm-dog__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.srm-dog__facts > div { background: #fff; border: 1px solid #ECE6D8; border-radius: 14px; padding: 12px 14px; }
.srm-dog__facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--srm-muted); margin: 0; }
.srm-dog__facts dd { margin: 3px 0 0; font-size: 16px; font-weight: 700; }
.srm-dog__char { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 16px 20px; background: var(--srm-text); color: #fff; border-radius: 16px; }
.srm-dog__char span { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #F2D9A6; }
.srm-dog__char strong { font-family: var(--srm-display); font-size: 20px; }

.srm-dog__panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 28px; }
.srm-dog__panel { background: #F3F1EA; border-radius: 20px; padding: 22px 24px; min-width: 0; }
.srm-dog__panel h3 { font-family: var(--srm-display); font-size: 22px !important; margin: 0 0 14px !important; }
.srm-dog__panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.srm-dog__panel-head h3 { margin: 0 !important; }
.srm-dog__panel-head span { font-size: 14px; font-weight: 700; color: var(--srm-muted); }
.srm-dog__progress { height: 8px; border-radius: 4px; background: #E2DACA; margin: 12px 0 6px; overflow: hidden; }
.srm-dog__progress span { display: block; height: 100%; background: #2F8F55; border-radius: 4px; }

/* Ahnentafel */
.srm-dog__tree { display: flex; align-items: center; gap: 14px; }
.srm-dog__self {
	flex: 0 0 auto; padding: 10px 16px; border-radius: 12px; background: var(--srm-text); color: #fff;
	font-family: var(--srm-display); font-weight: 700; font-size: 19px;
}
.srm-dog__parents { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding-left: 16px; border-left: 2px solid #CFC5B0; }
.srm-dog__branch { display: flex; align-items: center; gap: 12px; position: relative; }
.srm-dog__branch:before { content: ""; position: absolute; left: -18px; top: 50%; width: 16px; border-top: 2px solid #CFC5B0; }
.srm-dog__node { background: #fff; border: 1px solid #E2DACA; border-radius: 12px; padding: 8px 12px; line-height: 1.3; min-width: 0; }
.srm-dog__node small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--srm-muted); }
.srm-dog__node strong { display: block; }
.srm-dog__node em { display: block; font-style: normal; font-size: 12.5px; font-weight: 700; color: #2F6B45; margin-top: 2px; }
.srm-dog__branch > .srm-dog__node { flex: 1 1 auto; }
.srm-dog__grand { flex: 0 1 46%; display: flex; flex-direction: column; gap: 6px; padding-left: 12px; border-left: 2px solid #CFC5B0; }
.srm-dog__node--small { padding: 5px 10px; font-size: 14px; }
.srm-dog__note { margin: 14px 0 0 !important; font-size: 14px; color: var(--srm-muted); }

/* Schritte */
.srm-dog__steps li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid #E2DACA; margin: 0; }
.srm-dog__steps li:first-child { border-top: 0; }
.srm-dog__steps strong { display: block; }
.srm-dog__step-detail { display: block; font-size: 14px; color: var(--srm-text-2); }
.srm-dog__ico { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; box-sizing: border-box; border: 2px solid #CFC5B0; background: transparent no-repeat center / 14px 14px; margin-top: 1px; }
.is-ok .srm-dog__ico { background-color: #2F8F55; border-color: #2F8F55; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.is-geplant .srm-dog__ico { background-color: #FBF1DE; border-color: #D08A1C; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A5A12' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.is-ruhe .srm-dog__ico { background-color: #9A6A1E; border-color: #9A6A1E; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3C/svg%3E"); }

/* Würfe */
.srm-dog__litters { display: flex; flex-direction: column; gap: 10px; }
.srm-dog__litters li { margin: 0; }
.srm-dog__litters a, .srm-dog__litters li > div {
	display: flex; align-items: center; gap: 14px; padding: 10px 12px; background: #fff;
	border: 1px solid #ECE6D8; border-radius: 14px; color: var(--srm-text); text-decoration: none;
}
.srm-dog__litters a:hover { border-color: var(--srm-accent); }
.srm-dog__litters small { display: block; font-size: 14px; color: var(--srm-text-2); }
.srm-dog__letter {
	flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: #3E5A3A; color: #F2D9A6;
	display: flex; align-items: center; justify-content: center; font-family: var(--srm-display); font-weight: 700; font-size: 22px;
}

/* Schmale Spalte / Handy */
@container (max-width: 640px) {
	.srm-dog__head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.srm-dog__photo { aspect-ratio: 4 / 5; }
	.srm-dog__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.srm-dog__panels { grid-template-columns: minmax(0, 1fr); }
}
/* Ahnentafel reagiert auf die Breite ihres Kastens */
.srm-dog__panel { container-type: inline-size; }
@container (max-width: 560px) {
	.srm-dog__tree { flex-direction: column; align-items: stretch; }
	.srm-dog__self { align-self: flex-start; }
	.srm-dog__parents { margin-left: 18px; }
	.srm-dog__branch { flex-direction: column; align-items: stretch; gap: 6px; }
	.srm-dog__grand { flex: 1 1 auto; margin-left: 14px; flex-direction: row; flex-wrap: wrap; }
	.srm-dog__grand .srm-dog__node { flex: 1 1 140px; }
}
@container (max-width: 460px) {
	.srm-dog__age { padding: 14px; gap: 14px; }
	.srm-dog__age-badge { width: 60px; height: 60px; }
	.srm-dog__age-text { font-size: 19px; }
}

/* Geschlechtssymbole als SVG: größer und kräftig */
.srm-dog__facts .srm-sym { margin-right: 3px; vertical-align: -0.28em; }
.srm-sym--w { color: #B5527A; }
.srm-sym--m { color: #3F6FA8; }
.srm-dog__facts dd { line-height: 1.45; overflow: visible; }
.srm-dog__node small .srm-sym { width: 1.35em; height: 1.35em; vertical-align: -0.35em; }

/* Eltern mit Foto in der Ahnentafel */
.srm-dog__node.has-photo { display: flex; align-items: center; gap: 12px; }
.srm-dog__nodetext { display: block; min-width: 0; }
.srm-dog__nodetext small, .srm-dog__nodetext strong, .srm-dog__nodetext em { display: block; }
.srm-dog__avatar { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(35, 38, 31, .18); }
.srm-dog__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0 !important; }

/* Handy: SVG-Symbole etwas höher, damit sie mittig zur Schrift sitzen */
@media (max-width: 600px) {
	.srm-sym { vertical-align: -0.22em; }
	.srm-dog__node small .srm-sym { vertical-align: -0.28em; }
}
