/* s14 Marktdaten — Wertentwicklung auf der Modellseite.
   An das Ende von assets/css/s14-base.css anhängen oder als eigene Datei
   in inc/enqueue.php registrieren. Klassen wie überall mit s14- vorangestellt. */

.s14-md {
	margin: 40px 0;
	padding: 28px 32px;
	background: #f6f6f4;
	border-radius: 14px;
}

.s14-md-titel {
	margin: 0 0 6px;
	font-size: clamp(20px, 2vw, 26px);
	line-height: 1.2;
}

.s14-md-basis {
	margin: 0 0 22px;
	color: #55554f;
	font-size: 15px;
}

.s14-md-zahlen {
	display: flex;
	flex-wrap: wrap;
	gap: 28px 48px;
	margin: 0 0 26px;
}

.s14-md-zahl dt {
	margin: 0 0 4px;
	color: #55554f;
	font-size: 13px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.s14-md-zahl dd {
	margin: 0;
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 700;
	line-height: 1.1;
}

.s14-md-zahl:first-child dd {
	color: #c8102e;
}

.s14-md-band h4 {
	margin: 0 0 12px;
	font-size: 14px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #55554f;
}

.s14-md-band ol {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.s14-md-band li {
	display: grid;
	grid-template-columns: 148px 1fr 160px;
	align-items: center;
	gap: 14px;
	padding: 5px 0;
}

.s14-md-jahr {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.s14-md-balken {
	display: block;
	height: 10px;
	background: #e2e2dd;
	border-radius: 5px;
	overflow: hidden;
}

.s14-md-balken i {
	display: block;
	height: 100%;
	background: #1b2a41;
	border-radius: 5px;
}

.s14-md-wert {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* Weniger als drei Ergebnisse: gestreift, damit niemand eine
   Einzelbeobachtung für einen belastbaren Marktwert hält. */

.s14-md-duenn .s14-md-balken i {
	background: repeating-linear-gradient(
		135deg,
		#1b2a41 0 6px,
		#7d8697 6px 12px
	);
}

.s14-md-duenn .s14-md-wert small {
	font-style: italic;
}

/* Aufklappbare Einzelliste */

.s14-md-liste {
	margin: 0 0 20px;
	border-top: 1px solid #dcdbd4;
	padding-top: 16px;
}

.s14-md-liste summary {
	cursor: pointer;
	font-weight: 600;
	padding: 4px 0;
}

.s14-md-liste summary:hover {
	color: #c8102e;
}

.s14-md-liste-rahmen {
	overflow-x: auto;
	margin: 14px 0 12px;
}

.s14-md-liste table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.s14-md-liste th,
.s14-md-liste td {
	padding: 7px 10px;
	border-bottom: 1px solid #e2e2dd;
	text-align: left;
	white-space: nowrap;
}

.s14-md-liste th {
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #55554f;
	font-weight: 600;
}

.s14-md-liste td.num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.s14-md-liste td:first-child {
	white-space: normal;
	min-width: 190px;
}

.s14-md-wert small {
	color: #55554f;
}

.s14-md-fuss {
	margin: 0;
	color: #55554f;
	font-size: 14px;
	line-height: 1.55;
}

/* Gesperrte Ansicht für nicht angemeldete Besucher.
   Zeigt den Umfang der Datenbasis, nie einen Preis. */

.s14-md-gesperrt {
	border: 1px dashed #d4d3cc;
	background: #fbfbfa;
}

.s14-md-sperre {
	margin: 0 0 14px;
	padding: 14px 18px;
	background: #fff;
	border-left: 3px solid #c8102e;
	border-radius: 0 8px 8px 0;
	font-size: 16px;
	font-weight: 600;
}

.s14-md-link {
	color: #1b2a41;
	text-underline-offset: 3px;
}

.s14-md-link:hover {
	color: #c8102e;
}

@media (max-width: 700px) {
	.s14-md {
		padding: 22px 20px;
	}

	.s14-md-band li {
		grid-template-columns: 46px 1fr;
		row-gap: 2px;
	}

	.s14-md-wert {
		grid-column: 2;
		text-align: left;
	}
}
