/* Helios Taschenrechner – Frontend-Styles
   Farben zentral anpassen über die Variablen: */
:root {
	--htr-accent: #005ea8;      /* Primärfarbe (Buttons, Links, Akzente) */
	--htr-accent-dark: #004a86;
	--htr-text: #222;
	--htr-muted: #666;
	--htr-border: #e2e2e2;
	--htr-bg-soft: #f7f9fb;
	--htr-radius: 10px;
}

/* ---------- Gemeinsame Bausteine ---------- */

.htr-btn {
	display: inline-block;
	background: var(--htr-accent);
	color: #fff;
	padding: .7em 1.5em;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	transition: background .2s ease;
}
.htr-btn:hover {
	background: var(--htr-accent-dark);
	color: #fff;
}

.htr-serie {
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .8rem;
	font-weight: 700;
	color: var(--htr-accent);
	margin: 0 0 .4em;
}

/* ---------- Tabellen (Datenblatt & Preise) ---------- */

.htr-preistabelle,
.htr-datenblatt {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
	font-size: .95rem;
}
.htr-preistabelle th,
.htr-preistabelle td,
.htr-datenblatt th,
.htr-datenblatt td {
	border: 1px solid var(--htr-border);
	padding: .65em .9em;
	text-align: left;
	vertical-align: top;
}
.htr-preistabelle thead th {
	background: var(--htr-accent);
	color: #fff;
}
.htr-datenblatt th {
	width: 35%;
	background: var(--htr-bg-soft);
	font-weight: 600;
}
.htr-preistabelle tbody tr:nth-child(even) td {
	background: var(--htr-bg-soft);
}
.htr-freigeraete {
	font-style: italic;
	color: var(--htr-muted);
	margin-top: .5em;
}

.htr-features {
	margin: 1em 0;
	padding-left: 1.3em;
}
.htr-features li {
	margin-bottom: .4em;
}

/* ---------- Detailseite [htr_produktdetail] ---------- */

.htr-detail {
	color: var(--htr-text);
	max-width: 1100px;
	margin: 0 auto;
}
.htr-hero {
	background: var(--htr-bg-soft);
	border-radius: var(--htr-radius);
	padding: 2.5em 2em;
	margin-bottom: 2em;
	text-align: center;
}
.htr-hero .htr-title {
	margin: 0 0 .3em;
	font-size: 2.2rem;
	line-height: 1.2;
}
.htr-hero .htr-lead {
	max-width: 720px;
	margin: 0 auto;
	color: var(--htr-muted);
	font-size: 1.1rem;
}
.htr-detail-grid {
	display: grid;
	grid-template-columns: minmax(260px, 2fr) 3fr;
	gap: 2.5em;
	align-items: start;
	margin-bottom: 2.5em;
}
.htr-image {
	margin: 0;
	background: #fff;
	border: 1px solid var(--htr-border);
	border-radius: var(--htr-radius);
	padding: 1.5em;
	text-align: center;
}
.htr-image img {
	max-width: 100%;
	height: auto;
}
.htr-funktionen-badge {
	display: inline-block;
	background: var(--htr-accent);
	color: #fff;
	border-radius: 999px;
	padding: .35em 1.1em;
	font-weight: 700;
	margin: .8em 0;
}
.htr-block {
	margin-bottom: 2.5em;
}
.htr-block > h2 {
	border-bottom: 3px solid var(--htr-accent);
	display: inline-block;
	padding-bottom: .2em;
	margin-bottom: .8em;
}

/* ---------- Übersicht [htr_uebersicht] ---------- */

.htr-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2em;
	max-width: 1100px;
	margin: 0 auto;
}
.htr-card {
	border: 1px solid var(--htr-border);
	border-radius: var(--htr-radius);
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease;
}
.htr-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
	transform: translateY(-3px);
}
.htr-card-image {
	display: block;
	background: var(--htr-bg-soft);
	text-align: center;
	padding: 1.5em;
}
.htr-card-image img {
	max-height: 220px;
	width: auto;
	max-width: 100%;
}
.htr-card-body {
	padding: 1.3em 1.5em 1.6em;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.htr-card-body h3 {
	margin: 0 0 .5em;
	font-size: 1.25rem;
}
.htr-card-body h3 a {
	color: var(--htr-text);
	text-decoration: none;
}
.htr-card-excerpt {
	color: var(--htr-muted);
	font-size: .95rem;
	flex: 1;
}
.htr-card-meta {
	font-size: .85rem;
	color: var(--htr-muted);
	margin: .6em 0 0;
}
.htr-card-price {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--htr-accent);
	margin: .4em 0 1em;
}
.htr-card .htr-btn {
	align-self: flex-start;
}

/* ---------- Responsive ---------- */

@media (max-width: 780px) {
	.htr-detail-grid {
		grid-template-columns: 1fr;
	}
	.htr-hero .htr-title {
		font-size: 1.7rem;
	}
}
