/* Blogbeiträge ohne Elementor (Auftrag T-2, 23.09.2026).
   Der Inhalt steht als Gutenberg-Blöcke in post_content. Diese Datei gibt ihnen
   den Hausstil und ersetzt, was vorher Elementor-CSS gemacht hat: Abstände,
   Zweispalter, Bilder, Knopf und Produktraster. Grundlage sind die Variablen aus
   global.css und farbe.css, der weisse Inhaltskasten steht in global.css
   („Einzelner Beitrag"). Geladen nur auf Einzelbeiträgen, siehe gkg/blog.php. */

/* --- Text ------------------------------------------------------------------ */

.single-post.gkg-site .wd-entry-content > *:first-child{margin-top:0}
.single-post.gkg-site .wd-entry-content > *:last-child{margin-bottom:0}
.single-post.gkg-site .wd-entry-content p{margin:0 0 1.05em}
.single-post.gkg-site .wd-entry-content strong,
.single-post.gkg-site .wd-entry-content b{color:var(--ink);font-weight:600}
.single-post.gkg-site .wd-entry-content em{color:inherit}

.single-post.gkg-site .wd-entry-content h2{
  font-family:var(--serif);font-weight:400;color:var(--ink);
  font-size:clamp(23px,2.2vw,29px);line-height:1.18;
  margin:38px 0 14px;padding-bottom:10px;border-bottom:1px solid rgba(24,23,18,.1)
}
.single-post.gkg-site .wd-entry-content h3{
  font-family:var(--serif);font-weight:400;color:var(--ink);
  font-size:21px;line-height:1.22;margin:30px 0 10px
}
.single-post.gkg-site .wd-entry-content h4{
  font-family:var(--sans);font-weight:600;color:var(--ink);
  font-size:16.5px;line-height:1.3;margin:24px 0 8px
}

.single-post.gkg-site .wd-entry-content a{
  color:#4C7A1A;text-decoration:underline;text-decoration-color:rgba(76,122,26,.35);
  text-underline-offset:2px
}
/* Zwei Beiträge nennen Quellen als volle Adresse. Ohne Umbruch schieben die am
   Handy die ganze Seite nach rechts (Beitrag 13357 war 496 statt 390 breit). */
.single-post.gkg-site .wd-entry-content a{overflow-wrap:anywhere}
.single-post.gkg-site .wd-entry-content p,
.single-post.gkg-site .wd-entry-content li{overflow-wrap:break-word}
.single-post.gkg-site .wd-entry-content a:hover{text-decoration-color:#4C7A1A}

.single-post.gkg-site .wd-entry-content ul,
.single-post.gkg-site .wd-entry-content ol{margin:0 0 1.05em;padding-left:1.3em}
.single-post.gkg-site .wd-entry-content li{margin:0 0 .4em}
.single-post.gkg-site .wd-entry-content ul li::marker{color:#6FA52C}

.single-post.gkg-site .wd-entry-content blockquote{
  margin:26px 0;padding:2px 0 2px 20px;border-left:2px solid #A8D46A;
  font-family:var(--serif);font-size:19px;line-height:1.45;color:var(--ink)
}
.single-post.gkg-site .wd-entry-content blockquote p:last-child{margin-bottom:0}

/* --- Bilder ---------------------------------------------------------------- */

.single-post.gkg-site .wd-entry-content figure{margin:24px 0}
.single-post.gkg-site .wd-entry-content figure img{
  display:block;width:100%;height:auto;border-radius:14px
}
.single-post.gkg-site .wd-entry-content figure a{display:block;text-decoration:none}
.single-post.gkg-site .wd-entry-content figcaption{
  margin-top:8px;font-size:13.5px;color:var(--ink-3);text-align:left
}

/* --- Kasten (Inhaltsverzeichnis) ------------------------------------------- */

/* Zwei Beiträge stellen ihr Inhaltsverzeichnis in einen umrandeten Kasten.
   Vorher eine harte 1-px-Linie, jetzt dieselbe Idee im Stil der Seite. */
.single-post.gkg-site .wd-entry-content .gkg-blog-kasten{
  background:var(--cream);border-radius:14px;padding:22px 26px;margin:0 0 30px
}
.single-post.gkg-site .wd-entry-content .gkg-blog-kasten > *:first-child{margin-top:0}
.single-post.gkg-site .wd-entry-content .gkg-blog-kasten > *:last-child{margin-bottom:0}
.single-post.gkg-site .wd-entry-content .gkg-blog-kasten h2{
  font-size:19px;margin:0 0 12px;padding-bottom:0;border-bottom:0
}
.single-post.gkg-site .wd-entry-content .gkg-blog-kasten ol{margin-bottom:0}

/* --- Zwei Spalten ---------------------------------------------------------- */

.single-post.gkg-site .wd-entry-content .wp-block-columns{
  display:flex;gap:28px;align-items:flex-start;margin:28px 0
}
.single-post.gkg-site .wd-entry-content .wp-block-column{flex:1 1 0;min-width:0}
.single-post.gkg-site .wd-entry-content .wp-block-column > *:first-child{margin-top:0}
.single-post.gkg-site .wd-entry-content .wp-block-column > *:last-child{margin-bottom:0}
.single-post.gkg-site .wd-entry-content .wp-block-column[style*="flex-basis"]{flex-grow:0}

/* --- Knopf ----------------------------------------------------------------- */

.single-post.gkg-site .wd-entry-content .wp-block-buttons{
  display:flex;flex-wrap:wrap;gap:12px;margin:28px 0
}
.single-post.gkg-site .wd-entry-content .wp-block-button__link{
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--black);color:#fff;border:1.5px solid transparent;
  font:500 15px/1 var(--sans);padding:14px 24px;border-radius:999px;
  text-decoration:none;text-transform:none;letter-spacing:0;
  transition:background-color .18s,color .18s
}
.single-post.gkg-site .wd-entry-content .wp-block-button__link:hover{
  background:#4C7A1A;color:#fff
}

/* --- Produktraster --------------------------------------------------------- */

.single-post.gkg-site .wd-entry-content .gkg-blog-produkte{
  display:grid;grid-template-columns:repeat(var(--gkg-spalten,4),minmax(0,1fr));
  gap:14px;margin:30px 0;list-style:none;padding:0
}
.single-post.gkg-site .wd-entry-content .gkg-blog-produkte .wd-product{
  margin:0!important;width:auto!important;padding:0!important
}
/* In einer schmalen Spalte bleibt eine Kachel je Zeile. */
.single-post.gkg-site .wd-entry-content .wp-block-column .gkg-blog-produkte{
  grid-template-columns:minmax(0,1fr)
}

/* Vier Kacheln in einem 820 px breiten Text lassen jeder rund 180 px. Die
   Shop-Kachel ist für 300 px gemacht: 20-px-Titel mit Silbentrennung (farbe.css
   Zeile 133) zerhackte die Namen in Zweibuchstaben-Reste. Im Blog deshalb eine
   kompakte Fassung, ohne Trennstriche. */
.single-post.gkg-site .wd-entry-content .gkg-blog-produkte .wd-product{
  display:flex;flex-direction:column
}
.single-post.gkg-site .wd-entry-content .gkg-blog-produkte .wd-entities-title{
  font-size:14.5px;line-height:1.3;padding:11px 10px 2px;
  hyphens:none;-webkit-hyphens:none;overflow-wrap:break-word;word-break:normal
}
/* Im Fliesstext sind Links unterstrichen. In einer Kachel ist alles ein Link,
   das ergäbe eine unruhige Wand aus Strichen. */
.single-post.gkg-site .wd-entry-content .gkg-blog-produkte a{
  text-decoration:none;color:inherit
}
.single-post.gkg-site .wd-entry-content .gkg-blog-produkte .wd-entities-title a{color:var(--ink)}
.single-post.gkg-site .wd-entry-content .gkg-blog-produkte .wd-entities-title a:hover{color:#4C7A1A}
.single-post.gkg-site .wd-entry-content .gkg-blog-produkte .wd-product .star-rating{
  font-size:10.5px;margin:4px 10px 0
}
/* Preis und Pflichtangaben stehen unten, damit die Kacheln auf einer Linie enden. */
.single-post.gkg-site .wd-entry-content .gkg-blog-produkte .wd-product .price{
  font-size:14.5px;padding:0 10px;margin-top:auto
}
.single-post.gkg-site .wd-entry-content .gkg-blog-produkte .wd-product .price del{font-size:13px}
/* Preisangabenverordnung: Steuer- und Versandhinweis bleiben, nur ruhiger. */
.single-post.gkg-site .wd-entry-content .gkg-blog-produkte .wd-product .woocommerce-price-suffix{
  display:block;font-size:10.5px;line-height:1.35;margin-top:2px
}
.single-post.gkg-site .wd-entry-content .gkg-blog-produkte .wd-product .wc-gzd-additional-info{
  font-size:10.5px;line-height:1.35;padding:0 10px;margin-top:2px
}
.single-post.gkg-site .wd-entry-content .gkg-blog-produkte .wd-product .wd-product-cats,
.single-post.gkg-site .wd-entry-content .gkg-blog-produkte .wd-product .wd-hover-base{display:none}
/* Rabattkreis wie im Shop, nur eine Spur kleiner für das engere Raster. */
.single-post.gkg-site .wd-entry-content .gkg-blog-produkte .wd-product .onsale{
  transform:scale(.82);transform-origin:left bottom
}

/* --- Handy ----------------------------------------------------------------- */

@media (max-width:900px){
  .single-post.gkg-site .wd-entry-content .gkg-blog-produkte{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:14px
  }
}
@media (max-width:760px){
  .single-post.gkg-site .wd-entry-content .wp-block-columns{display:block;margin:22px 0}
  .single-post.gkg-site .wd-entry-content .wp-block-column{margin-bottom:22px}
  .single-post.gkg-site .wd-entry-content .wp-block-column:last-child{margin-bottom:0}
  .single-post.gkg-site .wd-entry-content .wp-block-column[style*="flex-basis"]{flex-basis:auto!important}
  .single-post.gkg-site .wd-entry-content h2{font-size:22px;margin:30px 0 12px}
  .single-post.gkg-site .wd-entry-content h3{font-size:19px;margin:24px 0 8px}
  .single-post.gkg-site .wd-entry-content figure{margin:20px 0}
}

/* ------------------------------------------------------------------
   Bewegung im Blog (Julian 27.09.2026). Drei Sachen, gilt für alle
   Beiträge. Alles läuft über CSS-Übergänge, zusätzliches Javascript
   entsteht nur für das Verzeichnis, und das nutzt den Beobachter, den
   gkg.js ohnehin schon hat. Wer Bewegung abgestellt hat, bekommt
   überall den ruhigen Zustand, siehe prefers-reduced-motion.
   ------------------------------------------------------------------ */

/* 1. Lesefortschritt: der dünne Streifen ganz oben. Ohne Javascript,
   die Leiste hängt direkt am Scrollstand des Dokuments. Browser ohne
   scroll()-Zeitleiste zeigen schlicht keinen Streifen, das ist kein
   Verlust. Über der Kopfzeile (z-index 60), unter den Overlays (100). */
@supports (animation-timeline: scroll()) {
	.single-post.gkg-site::before {
		content: "";
		position: fixed;
		top: 0; left: 0; right: 0;
		height: 3px;
		z-index: 70;
		transform-origin: 0 50%;
		transform: scaleX(0);
		background: linear-gradient(90deg, var(--gruen-tief), var(--gruen));
		animation: gkg-lesefortschritt linear both;
		animation-timeline: scroll(root block);
	}
	@keyframes gkg-lesefortschritt { to { transform: scaleX(1); } }
}

/* 2. Absätze schweben beim Erscheinen ein. Startzustand hier, das
   Einblenden übernimmt die vorhandene .drin-Regel aus global.css.
   Bewusst ohne den --i-Versatz der Startseite: bei sechzig Absätzen
   summiert sich der sonst zu mehreren Sekunden Verzögerung auf. */
html.anim .single-post.gkg-site .wd-entry-content > * {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .6s var(--out-quint), transform .6s var(--out-quint);
}

/* 3. Verzeichnis, das mitläuft. Steht links im freien Rand, deshalb
   erst ab 1200 px: darunter bleiben weniger als 190 px, und der Text
   soll nicht schmaler werden. gkg.js baut es aus den Überschriften und
   nur, wenn es mindestens vier davon gibt. */
.gkg-blog-toc { display: none; }

@media (min-width: 1200px) {
	.gkg-blog-toc {
		display: block;
		position: fixed;
		left: 22px;
		top: 50%;
		transform: translateY(-50%);
		width: 168px;
		max-height: 68vh;
		overflow-y: auto;
		z-index: 50;
		scrollbar-width: none;
		font-size: 13px;
		line-height: 1.35;
	}
	.gkg-blog-toc::-webkit-scrollbar { display: none; }
	.gkg-blog-toc ol { list-style: none; margin: 0; padding: 0; }
	.gkg-blog-toc li { margin: 0; }
	.gkg-blog-toc li::marker { content: none; }
	.single-post.gkg-site .gkg-blog-toc a {
		display: block;
		padding: 5px 0 5px 12px;
		border-left: 2px solid rgba(24, 23, 18, .13);
		color: var(--ink-2);
		text-decoration: none;
		transition: color .3s, border-color .3s, opacity .3s;
		opacity: .78;
	}
	.single-post.gkg-site .gkg-blog-toc a:hover { color: var(--ink); opacity: 1; }
	.single-post.gkg-site .gkg-blog-toc a.hier {
		color: var(--gruen-tief);
		border-left-color: var(--gruen-tief);
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.single-post.gkg-site::before { display: none; }
	html.anim .single-post.gkg-site .wd-entry-content > * { opacity: 1; transform: none; }
	.single-post.gkg-site .gkg-blog-toc a { transition: none; }
}

/* Beitragstitel kleiner (Julian 27.09.2026): 52 px waren für kurze Titel richtig,
   bei langen wurde daraus ein dreizeiliger Block, der die halbe erste Bildschirmhöhe
   einnahm. Die Titel reichen von 22 bis 74 Zeichen, die Größe muss also den längsten
   vertragen. Gemessen bei 820 px Textbreite: mit 42 px bleibt der längste Titel bei
   zwei Zeilen. Am Handy von 34 auf 28 px, dort waren es vier Zeilen. */
.single-post.gkg-site .wd-single-post-header .wd-post-title {
	font-size: clamp(28px, 3.4vw, 42px) !important;
	line-height: 1.1 !important;
}

/* „Passt dazu": drei verwandte Beiträge unter jedem Artikel. Bewusst schlicht
   gehalten, der Block steht hinter dem Produktbaustein und soll ihm nicht die
   Aufmerksamkeit nehmen. Am Handy untereinander, ab 640 px nebeneinander. */
.single-post.gkg-site .gkg-blog-weiter {
	margin: 44px 0 0;
	padding: 28px 0 0;
	border-top: 1px solid rgba(24, 23, 18, .12);
}
.single-post.gkg-site .gkg-blog-weiter h2 {
	font-size: 21px !important;
	margin: 0 0 18px !important;
}
.single-post.gkg-site .gkg-blog-weiter ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}
.single-post.gkg-site .gkg-blog-weiter li { margin: 0; padding: 0; }
.single-post.gkg-site .gkg-blog-weiter li::marker { content: none; }
.single-post.gkg-site .gkg-blog-weiter a {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: var(--ink);
	border-bottom: 0;
}
.single-post.gkg-site .gkg-blog-weiter .gkg-weiter-bild {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--cream-2);
}
.single-post.gkg-site .gkg-blog-weiter .gkg-weiter-bild img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s var(--out-quint);
}
.single-post.gkg-site .gkg-blog-weiter a:hover .gkg-weiter-bild img { transform: scale(1.06); }
.single-post.gkg-site .gkg-blog-weiter .gkg-weiter-text { min-width: 0; }
.single-post.gkg-site .gkg-blog-weiter .gkg-weiter-kat {
	display: block;
	font-size: 11.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--gruen-tief);
	margin-bottom: 2px;
}
.single-post.gkg-site .gkg-blog-weiter .gkg-weiter-titel {
	display: block;
	font-family: var(--serif);
	font-size: 17px;
	line-height: 1.22;
	transition: color .25s;
}
.single-post.gkg-site .gkg-blog-weiter a:hover .gkg-weiter-titel { color: var(--gruen-tief); }

@media (min-width: 640px) {
	.single-post.gkg-site .gkg-blog-weiter ul { grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.single-post.gkg-site .gkg-blog-weiter a { flex-direction: column; align-items: flex-start; gap: 10px; }
	.single-post.gkg-site .gkg-blog-weiter .gkg-weiter-bild { width: 100%; height: 118px; }
}

/* ------------------------------------------------------------------
   Bausteine für Anleitungen (Julian 01.10.2026, Beitrag 19853).
   Nummerierte Schritte, hervorgehobene Zahlen im Fliesstext, eine
   Kennzahl als Blickfang, Werkstatt-Kästen statt Zitatblöcke und
   Karten mit Einkaufsliste.

   Akzentfarbe ist das Grün der Seite (--gruen, --gruen-tief aus
   global.css), nicht das Gold aus f3.css. Der Blog führt seit dem
   Umbau T-2 seine eigene Akzentfarbe, siehe Links und Zitate oben.
   ------------------------------------------------------------------ */

/* Die Ziffer steht in der Überschrift selbst, damit sie mitfliesst und
   im Inhaltsverzeichnis von gkg.js sauber als Text ankommt. */
.single-post.gkg-site .wd-entry-content h2.gkg-schritt .gkg-ziffer{
	color: var(--gruen-tief);
	margin-right: .34em;
}

/* Zahlen und Preise. Unterstreichung statt Hintergrundbalken: der Balken
   lief bei 62 % Höhe mitten durch die Buchstaben. skip-ink lässt die
   Unterlängen von g, p und y frei. */
.single-post.gkg-site .wd-entry-content .gkg-wert{
	color: var(--ink);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--gruen);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
	text-decoration-skip-ink: auto;
}

/* Eine Kennzahl zwischen zwei Haarlinien. Vorher ein schwarzer Kasten,
   der im Lesefluss zu laut war. */
.single-post.gkg-site .wd-entry-content .gkg-zahl{
	display: flex;
	align-items: baseline;
	gap: 26px;
	margin: 36px 0;
	padding: 24px 0;
	border-top: 1px solid rgba(24, 23, 18, .12);
	border-bottom: 1px solid rgba(24, 23, 18, .12);
}
.single-post.gkg-site .wd-entry-content .gkg-zahl strong{
	flex: none;
	font-family: var(--serif);
	font-weight: 400;
	font-size: 54px;
	line-height: .9;
	color: var(--gruen-tief);
}
.single-post.gkg-site .wd-entry-content .gkg-zahl span{
	font-size: 16.5px;
	line-height: 1.55;
	max-width: 34ch;
}

/* Werkstatt-Kasten. Dasselbe Papierfeld wie das Inhaltsverzeichnis,
   dazu eine Marke, die sagt, woher der Hinweis kommt. */
.single-post.gkg-site .wd-entry-content .gkg-tipp{
	display: block;
	margin: 28px 0;
	padding: 22px 24px;
	background: var(--cream);
	border-radius: 14px;
}
.single-post.gkg-site .wd-entry-content .gkg-tipp-label{
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gruen-tief);
}
.single-post.gkg-site .wd-entry-content .gkg-tipp-label::before{
	content: "";
	flex: none;
	width: 24px;
	height: 1px;
	background: var(--gruen);
}
.single-post.gkg-site .wd-entry-content .gkg-tipp p:last-child{margin-bottom: 0}

/* Drei Karten mit Einkaufsliste. */
.single-post.gkg-site .wd-entry-content .gkg-karten{
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 28px 0;
}
.single-post.gkg-site .wd-entry-content .gkg-karte{
	background: var(--cream);
	border-radius: 14px;
	padding: 22px 20px;
}
.single-post.gkg-site .wd-entry-content .gkg-karte h3{margin: 0 0 12px; font-size: 18px}
.single-post.gkg-site .wd-entry-content .gkg-karte-label{
	margin: 0 0 8px;
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gruen-tief);
}
.single-post.gkg-site .wd-entry-content ul.gkg-einkauf{
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	font-size: 14.5px;
	line-height: 1.5;
}
.single-post.gkg-site .wd-entry-content ul.gkg-einkauf li{
	position: relative;
	margin: 0 0 7px;
	padding-left: 16px;
}
.single-post.gkg-site .wd-entry-content ul.gkg-einkauf li::before{
	content: "";
	position: absolute;
	left: 0;
	top: .62em;
	width: 8px;
	height: 1px;
	background: var(--gruen);
}
.single-post.gkg-site .wd-entry-content .gkg-karte-notiz{
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ink-3);
}

@media (max-width: 760px){
	.single-post.gkg-site .wd-entry-content .gkg-karten{grid-template-columns: minmax(0, 1fr)}
	.single-post.gkg-site .wd-entry-content .gkg-zahl{
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		margin: 28px 0;
	}
	.single-post.gkg-site .wd-entry-content .gkg-zahl strong{font-size: 44px}
	.single-post.gkg-site .wd-entry-content .gkg-tipp{padding: 18px 20px}
}
