/* Hundestore24 Design – Produktboxen, Hinweise, Tabellen und Karten
   Alle Klassen beginnen mit "hs-", damit nichts mit dem Theme kollidiert. */

:root {
	--hs-gruen: #2f5d50;
	--hs-gruen-dunkel: #24493f;
	--hs-gruen-mittel: #8db3a4;
	--hs-gruen-hell: #eef5f1;
	--hs-bernstein: #f2a541;
	--hs-bernstein-dunkel: #d9822b;
	--hs-bernstein-hell: #fff6e8;
	--hs-text: #22302b;
	--hs-grau: #5e6b66;
	--hs-rand: #e3e8e5;
	--hs-radius: 14px;
}

/* ---------- Werbehinweis oben im Artikel ---------- */
.hs-werbehinweis {
	background: var(--hs-bernstein-hell);
	border-left: 4px solid var(--hs-bernstein);
	border-radius: 8px;
	padding: .8em 1em;
	font-size: .9em;
	line-height: 1.5;
	color: var(--hs-text);
}
.hs-werbehinweis a { color: inherit; text-decoration: underline; }

/* ---------- Tipp / Hinweis / Warnung ---------- */
.hs-tipp, .hs-hinweis, .hs-warnung {
	border-radius: 10px;
	padding: 1em 1.15em;
	line-height: 1.55;
	color: var(--hs-text);
}
.hs-tipp    { background: var(--hs-gruen-hell); border-left: 4px solid var(--hs-gruen); }
.hs-hinweis { background: #f4f6f5; border-left: 4px solid var(--hs-gruen-mittel); }
.hs-warnung { background: #fdf0ec; border-left: 4px solid #c8553d; }

/* ---------- Inhaltsverzeichnis ---------- */
.hs-inhalt-titel { font-weight: 700; margin-bottom: .35em !important; }
ul.hs-inhalt {
	background: var(--hs-gruen-hell);
	border-radius: var(--hs-radius);
	padding: 1em 1.25em 1em 2.3em;
	margin-top: 0;
}
ul.hs-inhalt li { margin: .25em 0; }
ul.hs-inhalt a { color: var(--hs-gruen); text-decoration: none; }
ul.hs-inhalt a:hover { text-decoration: underline; }

/* ---------- Produktbox ---------- */
.hs-produkt {
	position: relative;
	background: #fff;
	border: 1px solid var(--hs-rand);
	border-radius: var(--hs-radius);
	box-shadow: 0 2px 10px rgba(34, 48, 43, .06);
	padding: 1.25em;
	margin: 1.6em 0;
}
.hs-produkt,
.hs-produkt > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 1.25em;
	align-items: start;
}
.hs-produkt:has(> .wp-block-group__inner-container) { display: block; }
/* Box ohne Bild (z. B. bei neuen Artikeln): Text über die volle Breite */
.hs-produkt:not(:has(.hs-produkt-bild)),
.hs-produkt > .wp-block-group__inner-container:not(:has(> .hs-produkt-bild)) { grid-template-columns: 1fr; }
.hs-produkt > *,
.hs-produkt > .wp-block-group__inner-container > * { margin: 0 !important; max-width: none !important; }
.hs-produkt-bild img { display: block; width: 100%; height: auto; border-radius: 12px; }
.hs-produkt-text p { margin: 0 0 .45em; }
.hs-anzeige {
	position: absolute;
	top: .8em;
	right: .9em;
	margin: 0 !important;
	padding: .15em .65em;
	border-radius: 99px;
	background: #f1f3f2;
	color: var(--hs-grau);
	font-size: .7em !important;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.hs-produkt-name {
	font-weight: 700;
	font-size: 1.15em;
	line-height: 1.3;
	color: var(--hs-text);
	padding-right: 5.5em;
}
.hs-produkt-fuer { color: var(--hs-grau); font-size: .95em; }
.hs-pro, .hs-contra { list-style: none; margin: .6em 0 !important; padding: 0 !important; }
.hs-pro li, .hs-contra li { position: relative; margin: .3em 0; padding-left: 1.6em; line-height: 1.45; }
.hs-pro li::before { content: "✓"; position: absolute; left: 0; color: var(--hs-gruen); font-weight: 700; }
.hs-contra li::before { content: "–"; position: absolute; left: .2em; color: #c8553d; font-weight: 700; }
.hs-cta { margin-top: .9em !important; }
a.hs-button {
	display: inline-block;
	padding: .75em 1.2em;
	border-radius: 10px;
	background: var(--hs-bernstein);
	box-shadow: 0 2px 0 var(--hs-bernstein-dunkel);
	color: #1e1e1e !important;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none !important;
	transition: transform .1s ease, filter .1s ease;
}
a.hs-button:hover { filter: brightness(1.05); transform: translateY(-1px); }
a.hs-button:focus-visible { outline: 3px solid var(--hs-gruen); outline-offset: 2px; }

/* ---------- Fußnote ---------- */
.hs-fussnote { font-size: .82em; color: var(--hs-grau); }

/* ---------- Tabellen ---------- */
.wp-block-table.hs-tabelle { overflow-x: auto; margin: 1.5em 0; }
.wp-block-table.hs-tabelle table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .95em; }
.wp-block-table.hs-tabelle th {
	background: var(--hs-gruen);
	color: #fff;
	text-align: left;
	padding: .7em .8em;
	border: 0;
}
.wp-block-table.hs-tabelle td {
	padding: .65em .8em;
	border: 0;
	border-bottom: 1px solid var(--hs-rand);
	vertical-align: top;
}
.wp-block-table.hs-tabelle tr:nth-child(even) td { background: #f7faf8; }

/* ---------- Ratgeber-Karten (Startseite) ---------- */
.hs-karten {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1em;
	margin: 1.5em 0;
}
a.hs-karte {
	display: flex;
	align-items: center;
	gap: .9em;
	padding: 1em;
	border: 1px solid var(--hs-rand);
	border-radius: var(--hs-radius);
	background: #fff;
	color: var(--hs-text) !important;
	text-decoration: none !important;
	transition: box-shadow .15s ease, transform .15s ease;
}
a.hs-karte:hover { box-shadow: 0 6px 18px rgba(34, 48, 43, .1); transform: translateY(-2px); }
.hs-karte img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; }
.hs-karte-text { display: block; }
.hs-karte-text strong { display: block; color: var(--hs-text); line-height: 1.3; }
.hs-karte-text span { display: block; margin-top: .2em; color: var(--hs-grau); font-size: .9em; line-height: 1.4; }

/* ---------- Kategorie-Links (Startseite) ---------- */
ul.hs-kategorien { display: flex; flex-wrap: wrap; gap: .6em; margin: 1em 0; padding: 0; list-style: none; }
ul.hs-kategorien li { margin: 0; }
ul.hs-kategorien a {
	display: inline-block;
	padding: .45em .95em;
	border: 1px solid var(--hs-gruen-mittel);
	border-radius: 99px;
	color: var(--hs-gruen);
	text-decoration: none;
}
ul.hs-kategorien a:hover { background: var(--hs-gruen-hell); }

/* ---------- Checkliste ---------- */
ul.hs-check { list-style: none; padding-left: 0; }
ul.hs-check li { position: relative; margin: .4em 0; padding-left: 1.9em; }
ul.hs-check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 1.05em;
	height: 1.05em;
	border: 2px solid var(--hs-gruen);
	border-radius: 4px;
}

/* ---------- Mobil ---------- */
@media (max-width: 600px) {
	.hs-produkt,
	.hs-produkt > .wp-block-group__inner-container { grid-template-columns: 1fr; }
	.hs-produkt > .hs-produkt-bild,
	.hs-produkt > .wp-block-group__inner-container > .hs-produkt-bild { max-width: 120px !important; }
	a.hs-button { display: block; text-align: center; }
}
