/* Preisindex Startseite – heller, produktstarker Aufbau.
   Alle Regeln unter .pih, damit das Theme nicht beeinflusst wird. Farben über die Variablen. */
.pih {
	--pih-navy: #0f3b6c;
	--pih-link: #1757a6;
	--pih-orange: #f39200;
	--pih-ink: #1a2330;
	--pih-muted: #66717f;
	--pih-line: #e4e8ed;
	--pih-soft: #f3f5f8;
	--pih-green: #0a8a43;
	--pih-green-bg: #e3f5ea;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px 48px;
	color: var(--pih-ink);
	font-size: 16px;
	line-height: 1.45;
}
.pih *, .pih *::before, .pih *::after { box-sizing: border-box; }
.pih a { color: inherit; text-decoration: none; }
.pih h1, .pih h2, .pih h3 { color: inherit; margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.pih ul, .pih ol { list-style: none; margin: 0; padding: 0; }
.pih p { margin: 0; }
.pih img { display: block; }

.pih-preview-note {
	background: #fff7d6; border: 1px solid #f0d36b; border-radius: 8px;
	padding: 8px 12px; margin: 14px 0 0; font-size: 14px;
}

/* ---------- Black-Friday-Band ---------- */
.pih-bf {
	display: flex; align-items: center; gap: 14px; margin-top: 14px;
	background: #111827; color: #fff; border-radius: 10px; padding: 10px 14px;
}
.pih-bf__title { display: flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; }
.pih-bf__tag { background: var(--pih-orange); color: #1b1300; font-weight: 800; font-size: 13px; padding: 4px 9px; border-radius: 6px; text-transform: uppercase; letter-spacing: .03em; }
.pih-bf__when { font-size: 14px; color: #d1d7e0; }
.pih-bf__when strong { color: #fff; }
.pih-bf__links { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.pih-bf__links::-webkit-scrollbar { display: none; }
.pih-bf__links a { display: block; white-space: nowrap; font-size: 13.5px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.pih-bf__links a:hover { background: rgba(255, 255, 255, .2); }
.pih-bf__cta { flex-shrink: 0; font-weight: 700; font-size: 14px; color: var(--pih-orange) !important; white-space: nowrap; }

/* ---------- Einleitung ---------- */
.pih-intro { padding: 22px 0 6px; }
.pih-intro h1 { font-size: clamp(22px, 2.4vw, 28px); color: var(--pih-ink); }
.pih-intro__facts { margin-top: 4px; color: var(--pih-muted); font-size: 14.5px; }
.pih-intro__facts strong { color: var(--pih-ink); }

/* ---------- Kategorie-Leiste ---------- */
.pih-catstrip { margin: 14px -20px 0; }
.pih-catstrip ul {
	display: flex; gap: 6px; overflow-x: auto; padding: 4px 20px 10px;
	scroll-snap-type: x proximity; scrollbar-width: thin;
}
.pih-catstrip li { flex: 0 0 auto; scroll-snap-align: start; }
.pih-catstrip a { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; text-align: center; }
.pih-catstrip__img {
	width: 76px; height: 76px; border-radius: 50%; background: var(--pih-soft);
	display: grid; place-items: center; overflow: hidden; transition: box-shadow .15s, background .15s;
}
.pih-catstrip__img { position: relative; }
.pih-catstrip__emoji { font-size: 30px; line-height: 1; }
.pih-catstrip__img:has(img) .pih-catstrip__emoji { visibility: hidden; }
.pih-catstrip__img img {
	position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px);
	object-fit: contain; mix-blend-mode: multiply; background: var(--pih-soft);
}
.pih-catstrip__name { font-size: 12.5px; line-height: 1.25; font-weight: 600; color: var(--pih-ink); }
.pih-catstrip a:hover .pih-catstrip__img { background: #e8edf3; box-shadow: 0 0 0 2px var(--pih-link) inset; }
.pih-catstrip a:hover .pih-catstrip__name { color: var(--pih-link); }
.pih-catstrip__all .pih-catstrip__img { font-size: 28px; color: var(--pih-link); font-weight: 700; }

/* ---------- Abschnitte ---------- */
.pih-section { margin-top: 36px; }
.pih-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.pih-head h2 { font-size: clamp(20px, 2vw, 24px); }
.pih-head p { font-size: 14px; color: var(--pih-muted); margin-top: 2px; }
.pih-more { font-weight: 600; color: var(--pih-link) !important; white-space: nowrap; font-size: 15px; }
.pih-more:hover { text-decoration: underline; }

/* ---------- Produktkarten ---------- */
.pih-grid { display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pih-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pih-card {
	position: relative; background: #fff; border: 1px solid var(--pih-line); border-radius: 12px;
	display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s;
}
.pih-card:hover { border-color: #cfd6df; box-shadow: 0 8px 24px rgba(16, 35, 60, .09); }
.pih-card > a { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 10px; flex: 1; }
.pih-card__img { position: relative; display: grid; place-items: center; height: 180px; margin-bottom: 6px; }
.pih-card__img img { max-width: 100%; max-height: 180px; width: auto; height: auto; object-fit: contain; }
.pih-card__badge {
	position: absolute; top: 0; left: 0; z-index: 1;
	background: var(--pih-green); color: #fff; font-size: 12.5px; font-weight: 800;
	padding: 3px 8px; border-radius: 6px;
}
.pih-card__badge--low { background: var(--pih-navy); }
.pih-card__name {
	font-size: 14px; line-height: 1.35; color: var(--pih-ink); min-height: 2.7em;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pih-card > a:hover .pih-card__name { color: var(--pih-link); text-decoration: underline; }
.pih-card__price { font-size: 20px; font-weight: 800; color: var(--pih-ink); margin-top: auto; }
.pih-card__price small { font-size: 13px; font-weight: 600; color: var(--pih-muted); }
.pih-card__meta { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12.5px; color: var(--pih-muted); min-height: 18px; }
.pih-card__hint { font-size: 12px; color: var(--pih-green); font-weight: 600; }
.pih-card__src { font-size: 10.5px; color: #9aa3ae; padding: 0 14px 10px; }

.pih-spark { width: 64px; height: 18px; flex-shrink: 0; }
.pih-spark polyline { stroke: #9aa6b4; }
.pih-spark--down polyline { stroke: var(--pih-green); }

/* ---------- Beliebte Suchen ---------- */
.pih-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; font-size: 14px; }
.pih-popular span { color: var(--pih-muted); margin-right: 4px; }
.pih-popular a { padding: 6px 12px; border-radius: 999px; background: var(--pih-soft); }
.pih-popular a:hover { background: #e6ebf1; color: var(--pih-link); }

/* ---------- Ratgeber ---------- */
.pih-themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pih-themes a {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 12px 14px; border: 1px solid var(--pih-line); border-radius: 10px; font-size: 14.5px; font-weight: 600;
}
.pih-themes a::after { content: "›"; color: var(--pih-link); font-weight: 700; }
.pih-themes a:hover { border-color: var(--pih-link); color: var(--pih-link); }

/* ---------- Vergleiche ---------- */
.pih-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.pih-compare__col { border: 1px solid var(--pih-line); border-radius: 12px; padding: 14px 16px; }
.pih-compare__col h3 { font-size: 16px; margin-bottom: 4px; }
.pih-compare__col li a { display: block; padding: 8px 0; font-size: 14.5px; border-bottom: 1px solid var(--pih-line); }
.pih-compare__col li a:hover { color: var(--pih-link); }
.pih-compare__col .pih-more { display: inline-block; margin-top: 10px; font-size: 14px; }

/* ---------- Vorteile ---------- */
.pih-how ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; background: var(--pih-soft); border-radius: 12px; padding: 18px; }
.pih-how li { font-size: 14px; color: var(--pih-muted); padding-left: 28px; position: relative; }
.pih-how li::before {
	content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
	background: var(--pih-green); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.pih-how strong { display: block; color: var(--pih-ink); font-size: 15px; }
.pih-how__note { margin-top: 10px; font-size: 13.5px; color: var(--pih-muted); }
.pih-how__note a { color: var(--pih-link); }
.pih-how__note a:hover { text-decoration: underline; }

/* ---------- SEO-Text: volle Breite, auf großen Bildschirmen in Spalten ---------- */
.pih-seo { color: var(--pih-muted); font-size: 15px; border-top: 1px solid var(--pih-line); padding-top: 28px; }
.pih-seo h2 { font-size: 19px; color: var(--pih-ink); margin-bottom: 12px; }
.pih-seo__text { column-gap: 40px; }
.pih-seo__text p { margin: 0 0 10px; break-inside: avoid; }
@media (min-width: 900px) { .pih-seo__text { column-count: 3; } }
@media (min-width: 640px) and (max-width: 899px) { .pih-seo__text { column-count: 2; } }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
	.pih-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.pih-grid--row .pih-card:nth-child(5) { display: none; }
	.pih-themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pih-how ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.pih-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pih-bf { flex-wrap: wrap; }
	.pih-bf__links { order: 3; flex-basis: 100%; }
}

/* ---------- Handy ---------- */
@media (max-width: 600px) {
	.pih { padding: 0 14px 36px; }
	.pih-catstrip { margin: 10px -14px 0; }
	.pih-catstrip ul { padding: 4px 14px 8px; gap: 2px; }
	.pih-catstrip a { width: 78px; }
	.pih-catstrip__img { width: 62px; height: 62px; }
	.pih-catstrip__img img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
	.pih-catstrip__emoji { font-size: 24px; }
	.pih-catstrip__name { font-size: 11.5px; }
	.pih-section { margin-top: 28px; }
	.pih-head { align-items: flex-start; }
	.pih-head p { display: none; }
	/* Karten horizontal wischen */
	.pih-grid {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%;
		overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 0 14px 6px; scrollbar-width: none;
	}
	.pih-grid::-webkit-scrollbar { display: none; }
	.pih-grid--row .pih-card:nth-child(5) { display: flex; }
	.pih-card { scroll-snap-align: start; }
	.pih-card > a { padding: 10px 10px 8px; }
	.pih-card__img { height: 130px; }
	.pih-card__img img { max-height: 130px; }
	.pih-card__price { font-size: 17px; }
	.pih-card__src { padding: 0 10px 8px; }
	.pih-spark { width: 40px; }
	.pih-card__hint { display: none; }
	.pih-themes { grid-template-columns: 1fr 1fr; }
	.pih-themes a { font-size: 13.5px; padding: 10px 12px; }
	.pih-how ul { grid-template-columns: 1fr; }
	.pih-bf__cta { display: none; }
}
