/* ==========================================================================
   Inhaltsseiten im Corporate Design
   (Kontakt, Versand & Zahlung, Bogenkurse, Mietmaterial, Gutscheine,
    Impressum, Datenschutzerklärung)

   Kundenvorgabe 2026-10-06: «im gleichen Look wie der Rest der Page».

   Es sind schlichte Inhaltsseiten (entry-title + entry-content mit h2/h3/p/a)
   auf Divis Vorgabe-Template. Dieses Blatt färbt den Standardinhalt auf das
   CD um — dunkler Grund, CD-Schriften, Orange-Akzente, Lesespalte.

   Farben/Schriften/Masse NUR über var(--hs-…). Keine `--hs-grau-*`: die sind
   nur in dunkel.css definiert (Startseite) und hier nicht geladen — darum
   gedämpfte Töne als explizites rgba.

   ⚠ JEDE REGEL BEGINNT MIT `body.hs-inhalt` — wie bei kb.css Pflicht, damit
   Divis Grundstile (gleiche oder geringere Spezifität) sicher unterliegen.
   ========================================================================== */

body.hs-inhalt {
	/* Höhe der festen Kopfleiste — wie Kundenbereich: 72 statt 65 als Puffer,
	   der Grund darunter ist ohnehin schwarz. */
	--inhalt-leiste: 72px;

	background: var(--hs-schwarz);
	color: var(--hs-weiss);

	/* Dunkler Grund auch für Dinge ohne eigenes Stilblatt (Rollbalken,
	   Auswahllisten). */
	color-scheme: dark;
}

/* Der Versatz zur festen Leiste als Polsterung IN schwarzer Fläche — nie als
   Aussenrand vor hellem Grund (sonst blitzt beim Mess-Moment ein heller
   Streifen auf). Dieselbe Lehre wie im Kundenbereich. */
body.hs-inhalt #main-content {
	background: var(--hs-schwarz);
	padding-top: var(--inhalt-leiste);
}

body.hs-inhalt #left-area,
body.hs-inhalt #content-area,
body.hs-inhalt .container,
body.hs-inhalt article,
body.hs-inhalt .entry-content { background: transparent; }

body.hs-inhalt .hs-fuss { margin-top: 0; }

/* Gleicher Seitenrand wie überall; Divis zu geizige 80 %-Spalte ersetzt. */
body.hs-inhalt #main-content .container {
	width: min(100% - 2 * clamp(20px, 4vw, 64px), 1080px);
	max-width: none;
}

/* Divi zieht auf manchen Seiten eine Seitenspalte ein, die hier keine ist. */
body.hs-inhalt #sidebar { display: none; }
body.hs-inhalt #left-area { width: 100%; padding-right: 0; }

/* ==========================================================================
   DER HERO — identisch zu den Kategorieseiten (Kundenentscheid 2026-10-12)

   Dieselben Klassen und Werte wie archive-product.php / kat.css, hier für
   `body.hs-inhalt`. Die eigene Vollbreit-Vorlage `hs-inhalt-seite.php` spannt
   wie archive-product.php direkt nach dem Kopf ein `<main>` auf — darum trägt
   die Infoseite denselben Kopf (Bild, Schleier, Auge, Titel) wie z. B.
   /produkt-kategorie/bogenbaubedarf/.
   ========================================================================== */

body.hs-inhalt { --inhalt-rand: clamp(20px, 4vw, 64px); }

body.hs-inhalt .hs-inhalt-seite { margin-top: 0; }

body.hs-inhalt .hs-k2-tor {
	position: relative;
	min-height: 40svh;
	display: flex;
	align-items: flex-end;
	padding: calc(var(--inhalt-leiste) + var(--hs-s6)) var(--inhalt-rand) var(--hs-s8);
	background: var(--hs-schwarz);
	color: var(--hs-weiss);
	overflow: hidden;
}

/* Ohne Bild (Impressum, Datenschutz): flachere Tafel statt leerer Fläche. */
body.hs-inhalt .hs-k2-tor--ohnebild { min-height: 26svh; }

body.hs-inhalt .hs-k2-tor picture { position: absolute; inset: 0; display: block; }

/*
 * `body.hs-inhalt` ist hier Pflicht (0-2-1), nicht Kosmetik: auf Seiten mit
 * WooCommerce-Mitteln (Gutscheine) setzt `woocommerce-layout.css`
 * `.woocommerce-page img { height:auto }` (0-1-1) und drückte das Heldenbild
 * sonst in sein Eigenverhältnis.
 */
body.hs-inhalt .hs-k2-tor__bild {
	position: absolute;
	inset: 0;
	object-fit: cover;
	width: 100%;
	height: 100%;
	max-width: none;
	opacity: .55;
}

body.hs-inhalt .hs-k2-tor__schleier {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.15) 100%);
}

body.hs-inhalt .hs-k2-tor__inhalt {
	position: relative;
	max-width: 46ch;
	display: grid;
	gap: var(--hs-s3);
}

body.hs-inhalt .hs-k2-auge {
	margin: 0;
	font-size: var(--hs-label);
	text-transform: uppercase;
	letter-spacing: .18em;
	font-weight: 700;
	color: var(--hs-orange);
}

body.hs-inhalt .hs-k2-titel {
	margin: 0;
	font-family: var(--hs-font-titel);
	font-size: clamp(2.25rem, 4.2vw, 3.5rem);
	line-height: 1.08;
	letter-spacing: .02em;
	font-weight: 700;
	color: var(--hs-weiss);
}

body.hs-inhalt .hs-k2-pfad ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 var(--hs-s2);
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--hs-label);
	text-transform: uppercase;
	letter-spacing: .18em;
	font-weight: 700;
}
body.hs-inhalt .hs-k2-pfad a { text-decoration: none; color: rgba(255,255,255,.78); }
body.hs-inhalt .hs-k2-pfad a:hover { color: var(--hs-orange); }
body.hs-inhalt .hs-k2-pfad__teiler { opacity: .45; }

/* Der Lesekörper unter dem Hero — gleiche Lesespalte wie bisher, eigener Rand. */
body.hs-inhalt .hs-inhalt-leib {
	width: min(100% - 2 * var(--inhalt-rand), 1080px);
	margin-inline: auto;
	padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 120px);
}

/* ==========================================================================
   Der Seitentitel — CD-Schrift mit oranger Kante, wie Kundenbereich/Kategorie
   ========================================================================== */

body.hs-inhalt h1.entry-title {
	margin: 0 0 var(--hs-s8);
	font-family: var(--hs-font-titel);
	font-size: clamp(1.9rem, 4vw, 3.25rem);
	line-height: 1.06;
	letter-spacing: .02em;
	font-weight: 700;
	color: var(--hs-weiss);
}

body.hs-inhalt h1.entry-title::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	margin-top: var(--hs-s4);
	background: var(--hs-orange);
}

/* ==========================================================================
   Der Fliesstext
   ========================================================================== */

body.hs-inhalt .entry-content {
	max-width: 68ch;          /* Rechts-/Infotexte lesen sich schmal besser */
	font-family: var(--hs-font-text);
	font-size: var(--hs-text);
	line-height: 1.7;
	color: rgba(255, 255, 255, .86);
}

body.hs-inhalt .entry-content > :first-child { margin-top: 0; }
body.hs-inhalt .entry-content p { margin: 0 0 var(--hs-s4); }

body.hs-inhalt .entry-content h2 {
	font-family: var(--hs-font-titel);
	font-weight: 700;
	font-size: clamp(1.35rem, 2.4vw, 1.9rem);
	line-height: 1.15;
	color: var(--hs-weiss);
	margin: var(--hs-s8) 0 var(--hs-s4);
}

body.hs-inhalt .entry-content h3 {
	font-family: var(--hs-font-titel);
	font-weight: 700;
	font-size: clamp(1.1rem, 1.8vw, 1.4rem);
	color: var(--hs-weiss);
	margin: var(--hs-s6) 0 var(--hs-s2);
}

body.hs-inhalt .entry-content h4 {
	font-family: var(--hs-font-titel);
	font-weight: 700;
	color: var(--hs-weiss);
	margin: var(--hs-s6) 0 var(--hs-s2);
}

/* Verweise: Hausfarbe, Zeigezustand weiss — wie der Inhalt im Kundenbereich. */
body.hs-inhalt .entry-content a {
	color: var(--hs-orange);
	text-decoration: underline;
	text-underline-offset: .18em;
	text-decoration-thickness: 1px;
}
body.hs-inhalt .entry-content a:hover { color: var(--hs-weiss); }
body.hs-inhalt .entry-content a:focus-visible { outline: 3px solid var(--hs-orange); outline-offset: 2px; }

/* Listen */
body.hs-inhalt .entry-content ul,
body.hs-inhalt .entry-content ol { margin: 0 0 var(--hs-s4); padding-left: 1.4em; }
body.hs-inhalt .entry-content li { margin: 0 0 var(--hs-s2); }
body.hs-inhalt .entry-content li::marker { color: var(--hs-orange); }

body.hs-inhalt .entry-content strong,
body.hs-inhalt .entry-content b { color: var(--hs-weiss); font-weight: 700; }

/* Tabellen (z. B. Versand & Zahlung) */
body.hs-inhalt .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 var(--hs-s6);
}
body.hs-inhalt .entry-content th,
body.hs-inhalt .entry-content td {
	text-align: left;
	padding: var(--hs-s2) var(--hs-s3);
	border-bottom: 1px solid rgba(255, 255, 255, .14);
	vertical-align: top;
}
body.hs-inhalt .entry-content th { color: var(--hs-weiss); font-weight: 700; }

/* Die redaktionelle „Noch zu ergänzen"-Notiz: als dezenter Merkkasten, nicht
   als Fliesstext — sie ist ein Hinweis, kein Seiteninhalt. */
body.hs-inhalt .entry-content .hs-offen {
	margin-top: var(--hs-s6);
	padding: var(--hs-s3) var(--hs-s4);
	border-left: 3px solid var(--hs-orange);
	background: rgba(255, 255, 255, .05);
	color: rgba(255, 255, 255, .6);
	font-size: var(--hs-klein);
}
body.hs-inhalt .entry-content .hs-offen strong { color: rgba(255, 255, 255, .8); }

/* ==========================================================================
   Schmale Fenster
   ========================================================================== */

@media (max-width: 620px) {
	body.hs-inhalt .entry-content { max-width: none; }
}

/* Die Kopfleiste bricht erst unter 321 px auf zwei Zeilen um — dann mehr Puffer. */
@media (max-width: 320px) {
	body.hs-inhalt { --inhalt-leiste: 102px; }
}

/* ==========================================================================
   Öffnungszeiten (Shortcode [hs_oeffnungszeiten]) — wie im Fuss, aus einer Quelle
   ========================================================================== */

body.hs-inhalt .hs-zeiten { margin: 0 0 var(--hs-s6); max-width: 30rem; }

body.hs-inhalt .hs-zeiten__stand {
	display: inline-flex;
	align-items: center;
	gap: var(--hs-s2);
	margin: 0 0 var(--hs-s4);
	font-weight: 700;
	color: var(--hs-weiss);
}
body.hs-inhalt .hs-zeiten__punkt {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .4);
}
body.hs-inhalt .hs-zeiten__stand.ist-offen .hs-zeiten__punkt { background: var(--hs-orange); }

body.hs-inhalt .hs-zeiten__liste {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px var(--hs-s6);
}
body.hs-inhalt .hs-zeiten__liste > div { display: contents; }
body.hs-inhalt .hs-zeiten__liste dt { color: rgba(255, 255, 255, .78); }
body.hs-inhalt .hs-zeiten__liste dd {
	margin: 0;
	text-align: right;
	font-variant-numeric: tabular-nums;
	color: rgba(255, 255, 255, .78);
}
body.hs-inhalt .hs-zeiten__liste .ist-heute dt,
body.hs-inhalt .hs-zeiten__liste .ist-heute dd { color: var(--hs-weiss); font-weight: 700; }
body.hs-inhalt .hs-zeiten__liste .ist-zu dd { color: rgba(255, 255, 255, .45); }

/* ==========================================================================
   Karte (Google-Maps iFrame)
   ========================================================================== */

body.hs-inhalt .hs-karte { margin: 0 0 var(--hs-s6); }
body.hs-inhalt .hs-karte iframe {
	display: block;
	width: 100%;
	height: 360px;
	border: 1px solid rgba(255, 255, 255, .16);
}
