/* Tante Hilde – Tank- & Lade-Lotse
   Alle Regeln sind unter .thtl gekapselt, damit das Theme unberührt bleibt. */

.thtl {
	--thtl-red: #dd3333;
	--thtl-red-text: #c62828;
	--thtl-red-dark: #b52626;
	--thtl-red-soft: #fceded;
	--thtl-ink: #1f2328;
	--thtl-muted: #5f6670;
	--thtl-line: #e3e6ea;
	--thtl-bg: #ffffff;
	--thtl-bg-soft: #f6f7f9;
	--thtl-ok: #1e7b45;
	--thtl-ok-soft: #e8f5ed;
	--thtl-warn: #9a5b00;
	--thtl-warn-soft: #fff4e0;
	--thtl-bad: #b3261e;
	--thtl-bad-soft: #fdebea;
	--thtl-radius: 14px;
	color: var(--thtl-ink);
	font-size: 16px;
	line-height: 1.55;
	margin: 1.5rem 0;
}

.thtl *,
.thtl *::before,
.thtl *::after {
	box-sizing: border-box;
}

.thtl [hidden] {
	display: none !important;
}

.thtl p {
	margin: 0 0 .75rem;
}

.thtl ul,
.thtl ol {
	margin: 0 0 .75rem;
	padding-left: 1.2rem;
}

.thtl li {
	margin-bottom: .35rem;
}

.thtl .thtl-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Navigation ---------- */
.thtl-nav {
	display: flex;
	gap: .4rem;
	overflow-x: auto;
	padding: .25rem 0 .75rem;
	-webkit-overflow-scrolling: touch;
}

.thtl-nav a {
	flex: 0 0 auto;
	padding: .45rem .8rem;
	border-radius: 999px;
	background: var(--thtl-bg-soft);
	border: 1px solid var(--thtl-line);
	color: var(--thtl-ink);
	text-decoration: none !important;
	font-size: .9rem;
	white-space: nowrap;
}

.thtl-nav a:hover,
.thtl-nav a:focus-visible {
	border-color: var(--thtl-red);
	color: var(--thtl-red-text);
}

/* ---------- Antriebswahl ---------- */
.thtl-drive {
	background: var(--thtl-ink);
	color: #fff;
	border-radius: var(--thtl-radius);
	padding: 1rem;
	margin-bottom: 1.25rem;
}

.thtl .thtl-drive__q {
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: .6rem;
}

.thtl-drive__opts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: .5rem;
}

.thtl .thtl-drive__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .45rem;
	min-height: 52px;
	padding: .5rem .6rem;
	border-radius: 12px;
	border: 2px solid rgba(255, 255, 255, .25);
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: .98rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
}

.thtl .thtl-drive__btn:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, .15);
	color: #fff;
}

.thtl .thtl-drive__btn.is-on {
	background: var(--thtl-red);
	border-color: var(--thtl-red);
	color: #fff;
}

.thtl-drive__icon {
	font-size: 1.25rem;
}

/* ---------- Karten ---------- */
.thtl-card {
	background: var(--thtl-bg);
	border: 1px solid var(--thtl-line);
	border-top: 4px solid var(--thtl-red);
	border-radius: var(--thtl-radius);
	padding: 1.1rem 1rem;
	margin-bottom: 1.25rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	scroll-margin-top: 90px;
}

.thtl .thtl-h {
	font-size: 1.25rem;
	line-height: 1.3;
	margin: 0 0 .75rem;
	padding: 0;
	border: 0;
}

.thtl .thtl-h4 {
	font-size: 1.05rem;
	margin: 1rem 0 .5rem;
	padding: 0;
}

.thtl-small {
	display: block;
	font-size: .85rem;
	color: var(--thtl-muted);
}

.thtl-block {
	border-top: 1px solid var(--thtl-line);
	margin-top: 1rem;
	padding-top: .25rem;
}

/* ---------- Formulare ---------- */
.thtl input[type="text"],
.thtl select {
	width: 100%;
	min-height: 48px;
	padding: .6rem .8rem;
	font-size: 16px;
	border: 1px solid #c9ced4;
	border-radius: 10px;
	background: #fff;
	color: var(--thtl-ink);
	margin: 0;
	box-shadow: none;
}

.thtl input:focus,
.thtl select:focus {
	outline: 2px solid var(--thtl-red);
	outline-offset: 1px;
	border-color: var(--thtl-red);
}

.thtl-ort {
	display: grid;
	grid-template-columns: 1fr;
	gap: .5rem;
	margin-bottom: .4rem;
}

.thtl-check {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-size: .95rem;
	min-height: 44px;
}

.thtl-check input {
	width: 20px;
	height: 20px;
	accent-color: var(--thtl-red);
}

/* ---------- Buttons & Chips ---------- */
.thtl .thtl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	min-height: 44px;
	padding: .55rem 1rem;
	border-radius: 10px;
	border: 1px solid var(--thtl-red);
	background: var(--thtl-red);
	color: #fff;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none !important;
	text-transform: none;
	letter-spacing: normal;
}

.thtl .thtl-btn:hover {
	background: var(--thtl-red-dark);
	border-color: var(--thtl-red-dark);
	color: #fff;
}

.thtl .thtl-btn[disabled] {
	opacity: .6;
	cursor: wait;
}

.thtl .thtl-btn--ghost {
	background: #fff;
	color: var(--thtl-red-text);
}

.thtl .thtl-btn--ghost:hover {
	background: var(--thtl-red-soft);
	color: var(--thtl-red-dark);
}

.thtl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin: .5rem 0 .75rem;
}

.thtl .thtl-chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: .5rem .9rem;
	border-radius: 999px;
	border: 1px solid var(--thtl-line);
	background: var(--thtl-bg-soft);
	color: var(--thtl-ink);
	font-size: .95rem;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
}

.thtl .thtl-chip:hover,
.thtl .thtl-chip:focus-visible,
.thtl .thtl-chip[aria-expanded="true"] {
	border-color: var(--thtl-red);
	background: var(--thtl-red-soft);
	color: var(--thtl-red-dark);
}

.thtl .thtl-chip--small {
	min-height: 40px;
	font-size: .9rem;
	padding: .4rem .8rem;
	background: #fff;
}

.thtl-sub {
	padding: .6rem;
	margin-top: -.25rem;
	border-radius: 12px;
	background: var(--thtl-red-soft);
}

.thtl .thtl-icon {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--thtl-line);
	background: #fff;
	font-size: 1.1rem;
	line-height: 1;
	padding: 0;
	cursor: pointer;
}

.thtl .thtl-icon:hover {
	border-color: var(--thtl-red);
}

/* ---------- Segment-Schalter ---------- */
.thtl-seg {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	margin-bottom: .6rem;
}

.thtl .thtl-seg__btn {
	flex: 1 1 auto;
	min-height: 44px;
	padding: .45rem .7rem;
	border-radius: 10px;
	border: 1px solid var(--thtl-line);
	background: var(--thtl-bg-soft);
	color: var(--thtl-ink);
	font-size: .92rem;
	font-weight: 600;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.2;
}

.thtl .thtl-seg__btn.is-on {
	background: var(--thtl-ink);
	border-color: var(--thtl-ink);
	color: #fff;
}

.thtl-seg--small .thtl-seg__btn {
	flex: 0 1 auto;
	font-size: .88rem;
}

.thtl .thtl-seg--small .thtl-seg__btn.is-on {
	background: var(--thtl-red);
	border-color: var(--thtl-red);
}

/* ---------- Preise & Rechner ---------- */
.thtl-prices {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: .5rem;
	margin-bottom: .6rem;
}

.thtl-price {
	display: flex;
	flex-direction: column;
	background: var(--thtl-bg-soft);
	border-radius: 12px;
	padding: .65rem .8rem;
}

.thtl-price span {
	font-size: .85rem;
	color: var(--thtl-muted);
}

.thtl-price strong {
	font-size: 1.15rem;
}

.thtl-price em {
	font-style: normal;
	font-size: .85rem;
	color: var(--thtl-muted);
}

.thtl-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .6rem;
	margin-bottom: .75rem;
}

.thtl-field span {
	display: block;
	font-size: .85rem;
	font-weight: 600;
	margin-bottom: .25rem;
}

.thtl-result {
	background: var(--thtl-ok-soft);
	border-left: 5px solid var(--thtl-ok);
	border-radius: 12px;
	padding: .75rem 1rem;
}

.thtl-result p:last-child {
	margin-bottom: 0;
}

.thtl-result__main {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: .2rem .6rem;
	margin-bottom: .25rem;
}

.thtl-result__main strong {
	font-size: 1.5rem;
}

.thtl-result__main span {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--thtl-ok);
}

/* ---------- Live-Ergebnisse ---------- */
.thtl-live {
	background: var(--thtl-bg-soft);
	border-radius: 12px;
	padding: .8rem;
	margin-bottom: .75rem;
}

.thtl-live__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin-bottom: .5rem;
}

.thtl-live__head strong {
	flex: 1 1 100%;
}

.thtl-live__head select {
	flex: 1 1 160px;
	width: auto;
}

.thtl .thtl-results {
	list-style: none;
	padding: 0;
	margin: 0 0 .5rem;
}

.thtl-res {
	display: flex;
	align-items: center;
	gap: .75rem;
	background: #fff;
	border: 1px solid var(--thtl-line);
	border-radius: 12px;
	padding: .6rem .7rem;
	margin-bottom: .45rem !important;
}

.thtl-res.is-best {
	border: 2px solid var(--thtl-ok);
}

.thtl-res__price {
	flex: 0 0 82px;
	display: flex;
	flex-direction: column;
	text-align: center;
}

.thtl-res__price strong {
	font-size: 1.15rem;
}

.thtl-res__price span {
	font-size: .78rem;
	color: var(--thtl-muted);
}

.thtl-res__body {
	flex: 1 1 auto;
	min-width: 0;
}

.thtl .thtl-res__nav {
	flex: 0 0 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--thtl-red);
	color: #fff;
	font-weight: 700;
	text-decoration: none !important;
}

.thtl-badge {
	display: inline-block;
	margin-top: .2rem;
	font-size: .78rem;
	font-weight: 700;
	padding: .1rem .5rem;
	border-radius: 999px;
}

.thtl-badge--ok { background: var(--thtl-ok-soft); color: var(--thtl-ok); }
.thtl-badge--warn { background: var(--thtl-warn-soft); color: var(--thtl-warn); }
.thtl-badge--bad { background: var(--thtl-bad-soft); color: var(--thtl-bad); }
.thtl-badge--muted { background: var(--thtl-bg-soft); color: var(--thtl-muted); }

/* ---------- Tipps ---------- */
.thtl-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: .65rem;
}

.thtl-tip {
	background: var(--thtl-bg-soft);
	border-radius: 12px;
	padding: .8rem .9rem;
}

.thtl-tip .thtl-h4 {
	margin-top: 0;
}

.thtl-tip ul {
	font-size: .95rem;
	margin-bottom: 0;
}

/* ---------- Wörterbuch ---------- */
.thtl-details {
	border: 1px solid var(--thtl-line);
	border-radius: 12px;
	margin-bottom: .6rem;
}

.thtl-details > summary {
	cursor: pointer;
	padding: .75rem 1rem;
	font-weight: 600;
	list-style: none;
	display: flex;
	align-items: center;
	gap: .5rem;
	min-height: 48px;
}

.thtl-details > summary::-webkit-details-marker {
	display: none;
}

.thtl-details > summary::after {
	content: "▾";
	margin-left: auto;
	color: var(--thtl-muted);
	transition: transform .2s;
}

.thtl-details[open] > summary::after {
	transform: rotate(180deg);
}

.thtl-count {
	font-size: .75rem;
	color: var(--thtl-muted);
	background: var(--thtl-bg-soft);
	border-radius: 999px;
	padding: .1rem .5rem;
}

.thtl .thtl-words {
	list-style: none;
	margin: 0;
	padding: 0 .5rem .5rem;
}

.thtl-word {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .55rem .5rem;
	border-top: 1px solid var(--thtl-line);
	margin: 0 !important;
}

.thtl-word__text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.thtl-da {
	font-weight: 700;
	font-size: 1.05rem;
}

.thtl-note {
	font-size: .82rem;
	color: var(--thtl-muted);
}

/* ---------- Größere Bildschirme ---------- */
@media (min-width: 640px) {
	.thtl-card {
		padding: 1.4rem 1.5rem;
	}

	.thtl-drive {
		padding: 1.2rem 1.5rem;
	}

	.thtl-drive__opts {
		grid-template-columns: repeat(4, 1fr);
	}

	.thtl-ort {
		grid-template-columns: 1fr auto;
	}

	.thtl-fields {
		grid-template-columns: repeat(3, 1fr);
	}

	.thtl-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.thtl-details > summary::after {
		transition: none;
	}
}

/* ---------- Ladeanzeige (Stufe 3) ---------- */
.thtl .thtl-select-small {
	flex: 0 1 auto;
	width: auto;
	min-height: 44px;
}

.thtl-cheap {
	display: block;
	margin: .2rem 0;
	font-size: .85rem;
	font-weight: 600;
	color: var(--thtl-ok);
}

.thtl-inline {
	display: inline;
}

.thtl-res__price span + span {
	margin-top: .1rem;
}
