/*
Theme Name:   Lahanna Child – Glücksküche 2026
Template:     lahanna
Description:  Neues Design "Küchentisch" für die Glücksküche. Auf der Live-Seite per Klick unter Design > Themes aktivierbar; "Lahanna" aktivieren stellt das bisherige Aussehen sofort wieder her.
Version:      0.3.6
Text Domain:  lahanna
*/

/* ==========================================================================
   Farben und Masse - eine Stelle, alles andere greift darauf zurueck
   ========================================================================== */
:root {
	--gk-bg: #f6efe5;
	--gk-paper: #fffdf9;
	--gk-ink: #3a2e28;
	--gk-muted: #5a4c44;
	--gk-salmon: #f4967e;
	--gk-deep: #9a3b26;
	--gk-star: #c4502f;
	--gk-sage: #4f6144;
	--gk-line: #e4c9bc;
	--gk-head: "Unna", Georgia, serif;
	--gk-hand: "Sacramento", cursive;
	--gk-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--gk-radius: 6px;
	--gk-shadow: 0 3px 12px rgba(58, 46, 40, .12);
	--gk-shadow-up: 0 10px 24px rgba(58, 46, 40, .18);
}

/* ==========================================================================
   Etappe 1 · Basis
   ========================================================================== */
body,
body.gk-design {
	background: var(--gk-bg);
	color: var(--gk-ink);
	font-family: var(--gk-body);
	font-size: 16px;
	line-height: 1.6;
}

body a { color: var(--gk-deep); }
body a:hover { color: var(--gk-ink); }

:focus-visible {
	outline: 3px solid var(--gk-deep);
	outline-offset: 3px;
}

h1, h2, h3, h4,
.entry-title,
.widget-title {
	font-family: var(--gk-head);
	font-weight: 700;
	color: var(--gk-ink);
	letter-spacing: 0;
	text-transform: none;
}

/* Kopf: das Logo etwas kleiner, damit die Rezepte frueher kommen (Feinschliff in Etappe 4) */
.site-header .site-title img {
	width: auto;
	height: 72px;
	max-height: 72px;
}

@media (min-width: 992px) {
	.site-header .site-title img {
		height: 112px;
		max-height: 112px;
	}
}

/* ==========================================================================
   Etappe 1 · Slider oben auf der Startseite
   ========================================================================== */
.top-content .slider-box {
	background: none;
	padding: 0;
	box-shadow: none;
}

.top-content .main-slider-post .post-thumbnail,
.top-content .slider-post {
	border-radius: 3px;
}

.main-slider-post .entry-title,
.main-slider-post .entry-title a {
	font-family: var(--gk-head);
	font-weight: 700;
	letter-spacing: -.01em;
	text-transform: none;
	color: #fff;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}

.main-slider-post .post-wrap {
	background: linear-gradient(to top, rgba(30, 20, 15, .72), rgba(30, 20, 15, .1) 70%, transparent);
}

.main-slider-post .cat-links a {
	font-family: var(--gk-body);
	font-weight: 600;
	color: #fff;
	border-bottom-color: var(--gk-salmon);
}

.main-slider-post .more-link {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 12px 20px;
	background: var(--gk-deep);
	color: #fff;
	border: 0;
	border-radius: 10px;
	box-shadow: 3px 3px 0 var(--gk-ink);
	font-family: var(--gk-body);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
}

.main-slider-post .more-link:hover { background: var(--gk-ink); color: #fff; }

/* ==========================================================================
   Etappe 1 · Rezeptraster
   ========================================================================== */
.blog-stream.gk-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
}

@media (min-width: 700px) {
	.blog-stream.gk-grid {
		grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
		gap: 24px;
	}
}

.site .blog-stream.gk-grid article.gk-card {
	position: relative;
	display: flex;
	flex-direction: column;
	float: none;
	width: auto;
	margin: 0;
	padding: 8px 8px 14px;
	background: var(--gk-paper);
	border: 0;
	border-radius: var(--gk-radius);
	box-shadow: var(--gk-shadow);
	text-align: left;
	transition: transform .2s ease, box-shadow .2s ease;
}

@media (min-width: 700px) {
	.site .blog-stream.gk-grid article.gk-card:nth-child(odd) { transform: rotate(-.6deg); }
	.site .blog-stream.gk-grid article.gk-card:nth-child(even) { transform: rotate(.5deg); }
}

@media (prefers-reduced-motion: no-preference) {
	.site .blog-stream.gk-grid article.gk-card:hover,
	.site .blog-stream.gk-grid article.gk-card:focus-within {
		transform: translateY(-4px) rotate(0);
		box-shadow: var(--gk-shadow-up);
	}
}

.gk-card-img {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 3px;
	background: var(--gk-line);
}

.gk-card-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gk-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 10px 4px 0;
}

.gk-card-cat {
	font-family: var(--gk-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--gk-sage);
}

.site .blog-stream.gk-grid .gk-card .entry-title {
	margin: 6px 0 8px;
	padding: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
	text-transform: none;
}

@media (min-width: 700px) {
	.site .blog-stream.gk-grid .gk-card .entry-title { font-size: 22px; }
}

.gk-card .entry-title a {
	color: var(--gk-ink);
	text-decoration: none;
}

/* ganze Karte klickbar (ein Link, keine doppelten Tab-Stopps) */
.gk-card .entry-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.gk-card .entry-title a:focus-visible { outline: none; }
.gk-card:focus-within { outline: 3px solid var(--gk-deep); outline-offset: 3px; }

.gk-card-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin-top: auto;
	font-size: 13px;
	color: var(--gk-muted);
}

.gk-rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.gk-stars {
	position: relative;
	display: inline-block;
	font-size: 15px;
	letter-spacing: 1px;
	line-height: 1;
	white-space: nowrap;
}

.gk-stars::before,
.gk-stars > span::before {
	content: "★★★★★";
}

.gk-stars::before { color: #dccbc0; }

.gk-stars > span {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	overflow: hidden;
	color: var(--gk-star);
}

.gk-rating-n { font-weight: 600; color: var(--gk-ink); }
.gk-rating-n small { font-weight: 400; color: var(--gk-muted); font-size: 12px; }

/* Likes (I Recommend This): klein, aber ueber der Karten-Verlinkung klickbar */
.gk-card .entry-like { position: relative; z-index: 2; }
.gk-card .irecommendthis {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 32px;
	color: var(--gk-muted);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.gk-card .irecommendthis:hover { color: var(--gk-deep); }

/* ==========================================================================
   Etappe 1 · Seitenwechsel und Seitenleiste
   ========================================================================== */
.sidebar .widget-title {
	font-family: var(--gk-hand);
	font-size: 36px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	color: var(--gk-deep);
}

.sidebar .widget-title::after { display: none; }

.sidebar .widget {
	font-family: var(--gk-body);
	font-size: 15px;
	color: var(--gk-muted);
}

.sidebar .tptn_posts li a {
	font-family: var(--gk-head);
	font-size: 18px;
	font-weight: 700;
	color: var(--gk-ink);
	text-decoration: none;
}

/* ==========================================================================
   Etappe 1 · Rezeptuebersicht [gk_rezepte] (/recipes/)
   ========================================================================== */
.gk-index-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 0 0 22px;
}

.gk-index-search,
.gk-index-select { flex: 1 1 220px; margin: 0; }

.gk-index-filters input[type="search"],
.gk-index-filters select {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1.5px dashed #c9806b;
	border-radius: 10px;
	background: var(--gk-paper);
	color: var(--gk-ink);
	font: 400 16px var(--gk-body);
}

.gk-index-chips { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }

.gk-chip {
	min-height: 44px;
	padding: 8px 15px;
	border: 1.5px dashed #c9806b;
	border-radius: 10px;
	background: var(--gk-paper);
	color: var(--gk-ink);
	font: 600 14px var(--gk-body);
	cursor: pointer;
}

.gk-chip[aria-pressed="true"] {
	border-style: solid;
	border-color: var(--gk-sage);
	background: var(--gk-sage);
	color: #fff;
}

.gk-index-count { width: 100%; margin: 2px 0 0; color: var(--gk-muted); font-size: 14px; }

.gk-index-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

@media (min-width: 700px) {
	.gk-index-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
}

.gk-index-card {
	display: flex;
	flex-direction: column;
	padding: 8px 8px 12px;
	border-radius: var(--gk-radius);
	background: var(--gk-paper);
	box-shadow: var(--gk-shadow);
	color: var(--gk-ink);
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}

.gk-index-card[hidden] { display: none; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.gk-index-card:hover { transform: translateY(-4px); box-shadow: var(--gk-shadow-up); }
}

.gk-index-card img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 3px;
}

.gk-index-cat {
	padding: 10px 4px 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--gk-sage);
}

.gk-index-title {
	padding: 6px 4px 2px;
	font-family: var(--gk-head);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
}

.gk-index-card .gk-rating { padding: 2px 4px 0; font-size: 13px; }
.gk-index-time { padding: 2px 4px 0; color: var(--gk-muted); font-size: 13px; }
.gk-index-empty { padding: 24px 0; color: var(--gk-muted); text-align: center; }

/* ==========================================================================
   Etappe 2 · Einzelbeitrag
   ========================================================================== */
.single .hentry-wrap,
.page .hentry-wrap {
	background: var(--gk-paper);
	border-radius: var(--gk-radius);
	box-shadow: var(--gk-shadow);
}

.single .post-header .entry-header { text-align: center; }

.single .post-header .entry-title {
	margin: 0 0 .35em;
	font-size: clamp(30px, 2.6vw + 18px, 52px);
	font-weight: 700;
	line-height: 1.1;
}

.single .post-header .entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 14px;
	color: var(--gk-muted);
	font-family: var(--gk-body);
	font-size: 13px;
	letter-spacing: 0;
	text-transform: none;
}

.single .entry-meta .cat-links a {
	display: inline-block;
	padding: 6px 12px;
	border: 1.5px dashed #c9806b;
	border-radius: 10px;
	background: transparent;
	color: var(--gk-ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-decoration: none;
	text-transform: uppercase;
}

.single .entry-meta .irecommendthis { color: var(--gk-muted); font-weight: 600; text-decoration: none; }

/* Titelfoto wie ein Fotoabzug */
.single .post-header .featured-image img {
	display: block;
	margin-inline: auto;
	padding: 8px 8px 8px;
	background: #fff;
	border-radius: 4px;
	box-shadow: var(--gk-shadow-up);
}

.single .entry-content,
.page .entry-content {
	color: var(--gk-ink);
	font-family: var(--gk-body);
	font-size: clamp(16px, .25vw + 15px, 18px);
	line-height: 1.7;
}

.entry-content h2 {
	margin: 1.4em 0 .5em;
	font-size: clamp(26px, 1vw + 20px, 34px);
	line-height: 1.15;
}

.entry-content h3 {
	font-size: clamp(21px, .6vw + 17px, 26px);
	line-height: 1.2;
}

.entry-content img:not(.emoji) { border-radius: 3px; }

.entry-content a:not([class]) {
	color: var(--gk-deep);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content a:not([class]):hover { text-decoration-thickness: 2px; color: var(--gk-ink); }


/* YASR: "Wie findest du das Rezept?" */
.yasr-visitor-votes,
.yasr-auto-insert-visitor { text-align: center !important; }
.yasr-custom-text-vv-before { font-family: var(--gk-hand); font-size: 30px; line-height: 1.1; color: var(--gk-deep); }
.yasr-vv-stats-text-container { font-size: 14px; color: var(--gk-muted); }

/* ==========================================================================
   Etappe 2 · Rezeptkarte (Cooked)
   ========================================================================== */
.entry-content .cooked-recipe-embed {
	margin: 1.8em 0;
	padding: clamp(16px, 3vw, 36px);
	border: 2px dashed #c9806b;
	border-radius: 14px;
	background: var(--gk-paper);
	color: var(--gk-ink);
	font-size: 16px;
	line-height: 1.6;
	scroll-margin-top: 80px;
}

/* wpautop laesst leere Absaetze um Cookeds Bloecke */
.cooked-recipe-embed > p:empty { display: none; }

.cooked-recipe-embed .cooked-recipe-info strong {
	color: var(--gk-muted);
	font-family: var(--gk-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
}

.cooked-recipe-embed .cooked-recipe-info .cooked-time-icon,
.cooked-recipe-embed .cooked-recipe-info .cooked-servings-icon { color: var(--gk-deep); opacity: 1; }

/* Eigene Icons: Ruehrschuessel mit Loeffel (Vorbereitung), dampfender Topf (Kochzeit); Gesamtzeit behaelt die Uhr */
.cooked-recipe-embed .cooked-recipe-info .cooked-prep-time .cooked-time-icon,
.cooked-recipe-embed .cooked-recipe-info .cooked-cook-time .cooked-time-icon {
	width: 2rem;
	height: 2rem;
	margin-top: -1rem;
	background: center / contain no-repeat;
	font-size: 0;
	opacity: 1;
}

.cooked-recipe-embed .cooked-recipe-info .cooked-prep-time .cooked-time-icon i,
.cooked-recipe-embed .cooked-recipe-info .cooked-cook-time .cooked-time-icon i { display: none; }

.cooked-recipe-embed .cooked-recipe-info .cooked-prep-time .cooked-time-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a3b26' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h18a9 8 0 0 1-18 0z'/%3E%3Cpath d='M8.5 21h7'/%3E%3Cpath d='M20.5 2.5l-5.2 5.2'/%3E%3Cellipse cx='13.3' cy='9.7' rx='2.6' ry='1.5' transform='rotate(-45 13.3 9.7)'/%3E%3C/svg%3E");
}

.cooked-recipe-embed .cooked-recipe-info .cooked-cook-time .cooked-time-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a3b26' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 11h20'/%3E%3Cpath d='M4 11v6a4 4 0 0 0 4 4h8a4 4 0 0 0 4-4v-6'/%3E%3Cpath d='M8 8c-.8-1 .8-2 0-3.5'/%3E%3Cpath d='M12 8c-.8-1 .8-2 0-3.5'/%3E%3Cpath d='M16 8c-.8-1 .8-2 0-3.5'/%3E%3C/svg%3E");
}

@media (max-width: 599px) {
	.cooked-recipe-embed .cooked-recipe-info span.cooked-time { margin-left: 1rem; padding-left: 2rem; font-size: 14px; line-height: 1.2rem; }
	.cooked-recipe-embed .cooked-recipe-info > section.cooked-right > span.cooked-time:first-child { margin-left: 0; }
	.cooked-recipe-embed .cooked-recipe-info span.cooked-time strong { font-size: 10px; }
	.cooked-recipe-embed .cooked-recipe-info .cooked-time .cooked-time-icon { font-size: 1.5rem; margin-top: -.75rem; }
	.cooked-recipe-embed .cooked-recipe-info .cooked-prep-time .cooked-time-icon,
	.cooked-recipe-embed .cooked-recipe-info .cooked-cook-time .cooked-time-icon { width: 1.45rem; height: 1.45rem; margin-top: -.72rem; font-size: 0; }
}

.cooked-recipe-embed .cooked-recipe-info .cooked-print > a,
.cooked-recipe-embed .cooked-recipe-info .cooked-fsm-button { color: var(--gk-deep); }

/* "Ergibt 60 Portionen": Link, der die Portionswahl oeffnet */
.cooked-recipe-embed .cooked-recipe-info .cooked-servings > a {
	color: var(--gk-deep);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.cooked-recipe-embed .cooked-recipe-info .cooked-servings > a::after { content: " ▾"; font-size: 14px; }
.cooked-recipe-embed .cooked-recipe-excerpt { color: var(--gk-muted); }

/* Ueberschriften der Bloecke in Handschrift */
.cooked-recipe-embed > .cooked-recipe-ingredients::before,
.cooked-recipe-embed > .cooked-recipe-directions::before,
.cooked-recipe-embed .gk-nutrition-title {
	display: block;
	margin: .6em 0 .2em;
	color: var(--gk-deep);
	font-family: var(--gk-hand);
	font-size: 42px;
	font-weight: 400;
	line-height: 1;
}

.cooked-recipe-embed > .cooked-recipe-ingredients::before { content: "Zutaten"; }
.cooked-recipe-embed > .cooked-recipe-directions::before { content: "Zubereitung"; }

.cooked-recipe-embed .cooked-single-ingredient.cooked-heading,
.cooked-recipe-embed .cooked-single-direction.cooked-heading {
	margin-top: .8rem;
	border: 0;
	color: var(--gk-ink);
	font-family: var(--gk-head);
	font-size: 20px;
	font-weight: 700;
}

.cooked-recipe-embed .cooked-single-ingredient.cooked-ingredient {
	padding-top: .6rem;
	padding-bottom: .6rem;
	border-bottom: 1.5px dotted #d9bfb2;
}

.cooked-recipe-embed .cooked-ing-amount,
.cooked-recipe-embed .cooked-ing-measurement,
.cooked-recipe-embed .gk-ing-qty { font-weight: 700; }

.cooked-recipe-embed .cooked-recipe-ingredients .cooked-ingredient-checkbox {
	top: 50%;
	width: 1.35rem;
	height: 1.35rem;
	margin-top: -.675rem;
	border: 2px solid var(--gk-sage);
	border-radius: 5px;
	background: #fff;
	line-height: 1.35rem;
}

.cooked-recipe-embed .cooked-recipe-ingredients .cooked-ingredient-checkbox.cooked-checked { background: var(--gk-sage); color: #fff; }

.cooked-recipe-embed .cooked-direction {
	padding-top: .8rem;
	padding-bottom: .8rem;
	border-bottom: 1.5px dotted #d9bfb2;
	font-size: 17px;
	line-height: 1.65;
}

.cooked-recipe-embed .cooked-direction:last-child { border-bottom: 0; }

/* Schrittnummern: Handschrift statt Kreis */
.cooked-recipe-embed .cooked-direction .cooked-direction-number {
	top: .5rem;
	width: 2.4rem;
	height: auto;
	min-width: 0;
	padding: 0;
	border-radius: 0;
	background: none;
	color: var(--gk-deep);
	opacity: 1;
	font-family: var(--gk-hand);
	font-size: 44px;
	font-weight: 400;
	line-height: 1;
	text-align: left;
}

.cooked-recipe-embed .cooked-direction-has-number .cooked-dir-content { padding-left: 2.8rem; }
.cooked-recipe-embed .cooked-dir-content > p:first-child { margin-top: 0; }

.cooked-recipe-embed .cooked-dir-content img {
	display: block;
	width: auto;
	max-width: min(260px, 70%);
	height: auto;
	margin-top: 8px;
	border: 6px solid #fff;
	border-radius: 3px;
	box-shadow: var(--gk-shadow);
}

/* Naehrwerte (eigener Shortcode [gk-naehrwerte]) */
.cooked-recipe-embed .gk-nutrition { margin: 1.4em 0 .6em; }
.cooked-recipe-embed .gk-nutrition dl { margin: 0; }
.cooked-recipe-embed .gk-nutrition dl > div { display: flex; justify-content: space-between; gap: 1em; padding: .4rem 0; border-bottom: 1.5px dotted #d9bfb2; }
.cooked-recipe-embed .gk-nutrition dt,
.cooked-recipe-embed .gk-nutrition dd { margin: 0; padding: 0; }
.cooked-recipe-embed .gk-nutrition dd { font-weight: 700; white-space: nowrap; }
.cooked-recipe-embed .gk-nutrition .gk-nutrition-sub { padding-left: 1em; color: var(--gk-muted); }
.cooked-recipe-embed .gk-nutrition .gk-nutrition-sub dd { font-weight: 400; }
.cooked-recipe-embed .gk-nutrition-note { margin: .5em 0 0; color: var(--gk-muted); font-size: 13px; }

/* Desktop: Zutaten links (klebt beim Scrollen), Zubereitung rechts */
@media (min-width: 900px) {
	.entry-content .cooked-recipe-embed {
		display: grid;
		grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
		column-gap: 44px;
	}

	.cooked-recipe-embed > * { grid-column: 1 / -1; }

	.cooked-recipe-embed > .cooked-recipe-ingredients {
		grid-column: 1;
		position: sticky;
		top: 16px;
		align-self: start;
	}

	.cooked-recipe-embed > .cooked-recipe-directions { grid-column: 2; }
}

/* Kochmodus (Vollbild) nur dezent einfaerben, Funktion bleibt Cooked */
.cooked-fsm-content { font-family: var(--gk-body); }

/* ==========================================================================
   Etappe 3 · Kategorien, Suche, Archive, 404
   ========================================================================== */
.archive-header { text-align: center; }

.archive-header .entry-title {
	font-family: var(--gk-head);
	font-size: clamp(34px, 3vw + 20px, 56px);
	font-weight: 700;
	line-height: 1.1;
	text-transform: none;
}

.archive-header .entry-title i {
	display: block;
	margin-bottom: 4px;
	font-family: var(--gk-hand);
	font-size: clamp(28px, 1vw + 22px, 38px);
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1;
	text-transform: none;
	color: var(--gk-deep);
}

.archive-header .entry-title .cat-title { font-weight: 700; }
.archive-header .category-description { max-width: 40em; margin: .6em auto 0; color: var(--gk-muted); }

/* Buttons und Suchfelder */
.site .button,
.site input[type="submit"],
.site button[type="submit"],
.site .search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border: 0;
	border-radius: 10px;
	background: var(--gk-deep);
	box-shadow: 3px 3px 0 var(--gk-ink);
	color: #fff;
	font-family: var(--gk-body);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
}

.site .button:hover,
.site input[type="submit"]:hover,
.site button[type="submit"]:hover,
.site .search-submit:hover { background: var(--gk-ink); color: #fff; }

.site .button.gk-button-alt { background: var(--gk-paper); color: var(--gk-ink); box-shadow: 3px 3px 0 var(--gk-deep); }
.site .button.gk-button-alt:hover { background: var(--gk-sage); color: #fff; }

.site .search-form input[type="search"],
.site .search-form input[type="text"] {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1.5px dashed #c9806b;
	border-radius: 10px;
	background: var(--gk-paper);
	color: var(--gk-ink);
	font: 400 16px var(--gk-body);
}

.gk-404 .http-alert,
.no-results .http-alert { text-align: center; }
.gk-404 .gk-404-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 1.4em; }

/* ==========================================================================
   Etappe 2 · "Das könnte dir auch schmecken" (verwandte Beitraege)
   ========================================================================== */


/* ==========================================================================
   Etappe 2 · Drucken (Browser-Druck des Beitrags; Cookeds eigene Druckseite bleibt unberuehrt)
   ========================================================================== */
@media print {
	body { background: #fff; color: #000; font-size: 12pt; }
	.site-header, .top-content, .sidebar, #secondary, .site-footer, #comments, .comments-area, .wpdiscuz_top_clearing,
	.gk-jump-wrap, .yasr-auto-insert-visitor, .navigation, #cookiesettings, .post-header .featured-image, .related-posts,
	.cooked-recipe-info .cooked-right .cooked-print, .cooked-fsm-button, .irecommendthis, .entry-view { display: none !important; }
	.hentry-wrap { box-shadow: none; background: #fff; }
	.entry-content .cooked-recipe-embed { display: block; border: 1px solid #999; padding: 10px; margin: 0; box-shadow: none; }
	.cooked-recipe-embed > .cooked-recipe-ingredients { position: static; }
	.cooked-recipe-embed .cooked-direction { break-inside: avoid; }
	.cooked-recipe-embed .cooked-dir-content img { max-width: 140px; box-shadow: none; border-width: 0; }
	a { color: #000; text-decoration: none; }
}

/* "Nichts gefunden": das grosse Symbol (ein zweites H1) ist reine Deko */
.http-alert > h1 { display: none; }
.site-content .hentry-wrap { background: var(--gk-paper); border-radius: var(--gk-radius); box-shadow: var(--gk-shadow); }

/* ==========================================================================
   Etappe 4 · Kopf, Menue, Fuss
   ========================================================================== */
.site-header .header-wrap,
.site-header .menu-wrap { background-color: var(--gk-bg); }
.site-header .header-bg-shape { color: var(--gk-bg); }

.site-header:not(.clone) .menu-wrap {
	border-top: 2px dashed var(--gk-line);
	border-bottom: 2px dashed var(--gk-line);
}

.site-header.clone .menu-wrap {
	background-color: rgba(255, 253, 249, .92);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	backdrop-filter: saturate(160%) blur(10px);
	box-shadow: 0 1px 0 var(--gk-line), 0 6px 20px rgba(58, 46, 40, .08);
}

.nav-menu > ul > li > a {
	font-family: var(--gk-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--gk-ink);
}

.nav-menu > ul > li > a:hover,
.nav-menu > ul > li.current-menu-item > a,
.nav-menu > ul > li.current-menu-ancestor > a { color: var(--gk-deep); }

.nav-menu .sub-menu {
	background: var(--gk-paper);
	border: 1.5px dashed #c9806b;
	border-radius: var(--gk-radius);
	box-shadow: var(--gk-shadow);
}

.nav-menu .sub-menu a {
	font-family: var(--gk-body);
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--gk-ink);
}

.nav-menu .sub-menu a:hover { color: var(--gk-deep); }

/* Instagram/YouTube: in einer Reihe, auf Hoehe der Menuezeile */
.site-navigation .social-container .textwidget {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.site-navigation .social-container .textwidget > div { position: static !important; line-height: 0; }
.site-navigation .social-container .textwidget a { display: block; padding: 6px; opacity: .9; transition: opacity .2s ease; }
.site-navigation .social-container .textwidget a:hover { opacity: 1; }
.site-navigation .social-container .textwidget img { display: block; width: auto; height: 24px; }
.site-navigation .social-container .textwidget img[src*="IG_Glyph"] { height: 48px; }
.site-navigation .social-container .textwidget a:has(img[src*="IG_Glyph"]) { padding: 0 6px; }

@media (max-width: 991px) {
	.site-navigation .social-container { display: flex; align-items: center; top: 0; height: 50px; }
}

/* Fuss */
.site-footer { margin-top: 48px; background: none; }

.site-footer .site-info {
	padding: 34px 20px;
	background: transparent;
	color: var(--gk-ink);
	font-family: var(--gk-body);
	font-size: 15px;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
}

.site-footer .site-info font,
.site-footer .site-info p { font-size: inherit; letter-spacing: 0; text-transform: none; }

.site-footer a {
	display: inline-block;
	margin: 0 10px;
	padding: 8px 2px;
	color: var(--gk-ink);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.site-footer a:hover { color: var(--gk-deep); }

/* Handy: engerer Rahmen, flacherer Slider, kleinere Abstaende */
@media (max-width: 767px) {
	.site-main { padding: 14px 0; }

	.site-main .layout-medium,
	.top-content .layout-medium { width: auto; margin-left: 12px; margin-right: 12px; }

	.single .hentry-wrap,
	.page .hentry-wrap { padding: 18px 14px; }

	/* Der Theme-Slider ist 120 % so hoch wie breit - auf dem Handy viel zu hoch */
	.slider-box.ratio-tall .post-wrap { padding-top: 72% !important; }

	.sidebar .widget { padding: 16px 14px; }
	.site-footer { margin-top: 24px; }
	.site-footer .site-info { padding: 24px 16px; }
}

/* Slider-Titel werden nie mitten im Wort getrennt (die Skript-Anpassung steht in glueckskueche-design.php) */
.slider-box .entry-title { word-break: normal; overflow-wrap: normal; hyphens: manual; line-height: 1.15; }

/* Kategorien im Slider zeigen wir weiter (Schnell-Orientierung), nur das "Sticky"-Pin-Symbol faellt weg */
.hentry.sticky .entry-header:before { content: none; display: none; }

/* Cookie-Hinweis (Pixelmate): eine kurze Frage, Datenschutz/Impressum bleiben im Fuss und im "Mehr"-Dialog */
.pixelmate-banner-notice-bottom h3,
.pixelmate-wrapper-bottom .pixelmate-general-footer { display: none !important; }

body:has(.pixelmate-wrapper-bottom) .site-footer { padding-bottom: 0; }

@media (max-width: 767px) {
	.pixelmate-wrapper-bottom {
		left: 8px;
		right: 8px;
		bottom: calc(8px + env(safe-area-inset-bottom));
		width: auto;
		border-radius: 10px;
		box-shadow: 0 4px 24px rgba(58, 46, 40, .22);
		overflow: hidden;
	}

	.pixelmate-banner-bottom {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-areas: "text text" "allow deny";
		gap: 6px 8px;
		align-items: center;
	}

	.pixelmate-banner-notice-bottom,
	.pixelmate-wrapper-bottom .pixelmate-banner-content-bottom { display: contents !important; }

	.pixelmate-general-notice-bottom { grid-area: text; padding: 0 40px 0 0 !important; font-size: 12px !important; line-height: 1.35 !important; text-align: left; }
	.pixelmate-general-single-bottom { grid-area: text; justify-self: end; min-height: 20px; padding: 0 !important; font-size: 11px !important; line-height: 1.3 !important; text-decoration: underline; }

	.pixelmate-general-allow-bottom,
	.pixelmate-general-deny-bottom { width: 100%; min-height: 36px; padding: 4px 8px !important; font-size: 13px !important; font-weight: 600; line-height: 1.2 !important; }

	.pixelmate-general-allow-bottom { grid-area: allow; }
	.pixelmate-general-deny-bottom { grid-area: deny; }
}

/* Computer: kleine Karte unten links statt Leiste ueber die ganze Breite. Gleicher Aufbau wie am Handy:
   oben die Frage mit "Mehr", darunter zwei gleich breite Knoepfe. */
@media (min-width: 768px) {
	.pixelmate-wrapper-bottom {
		left: 20px;
		right: auto;
		bottom: 20px;
		width: 420px;
		max-width: calc(100vw - 40px);
		border-radius: 12px;
		box-shadow: 0 6px 28px rgba(58, 46, 40, .22);
		overflow: hidden;
	}

	.pixelmate-banner-bottom {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-areas: "text text" "allow deny";
		gap: 10px 8px;
		align-items: center;
		padding: 14px 16px !important;
	}

	.pixelmate-banner-notice-bottom,
	.pixelmate-wrapper-bottom .pixelmate-banner-content-bottom { display: contents !important; }

	.pixelmate-general-notice-bottom { grid-area: text; padding: 0 96px 0 0 !important; font-size: 14px !important; line-height: 1.4 !important; text-align: left; }
	.pixelmate-general-single-bottom { grid-area: text; justify-self: end; min-height: 20px; padding: 0 !important; font-size: 13px !important; line-height: 1.3 !important; text-decoration: underline; }

	.pixelmate-general-allow-bottom,
	.pixelmate-general-deny-bottom { width: 100%; min-height: 38px; margin: 0 !important; padding: 6px 10px !important; font-size: 13px !important; font-weight: 600; line-height: 1.2 !important; }

	.pixelmate-general-allow-bottom { grid-area: allow; }
	.pixelmate-general-deny-bottom { grid-area: deny; }
}

/* ==========================================================================
   Etappe 5 · Kommentare (wpDiscuz)
   ========================================================================== */
/* Das Theme gibt jedem Textfeld min-height: 9em; wpDiscuz setzt beim Tippen seine eigene Hoehe - das Feld sprang. */
#wpdcom .wpd-form .wpdiscuz-textarea-wrap textarea.wc_comment { min-height: 0; height: 56px; }


/* Seiten (Datenschutz, Impressum, Ueber mich ...): ohne eigene Flaeche, Text direkt auf dem Seitenhintergrund. Rezeptbeitraege behalten ihre Karte. */
.page .site-content .hentry-wrap {
	background: none;
	border-radius: 0;
	box-shadow: none;
}

/* ==========================================================================
   Rezept-Video (Cooked-Galerie mit YouTube): kompakt, 16:9, zentriert
   ========================================================================== */
.cooked-recipe-embed .cooked-recipe-gallery {
	width: 100%;
	max-width: 560px;
	margin: 1.6em auto .4em;
}

.cooked-recipe-embed .cooked-recipe-gallery::before {
	content: "Rezept im Video";
	display: block;
	margin-bottom: .7em;
	text-align: center;
	color: var(--gk-deep);
	font-family: var(--gk-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.cooked-recipe-embed .cooked-recipe-gallery .fotorama__wrap {
	width: 100% !important;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(42, 36, 32, .06), 0 10px 26px rgba(42, 36, 32, .14);
}

.cooked-recipe-embed .cooked-recipe-gallery .fotorama__stage {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
}

/* Fotorama misst die Breite beim Laden, bevor das (asynchron geladene) CSS greift - daher alles auf 100 % festsetzen */
.cooked-recipe-embed .cooked-recipe-gallery .fotorama__stage__shaft,
.cooked-recipe-embed .cooked-recipe-gallery .fotorama__stage__frame {
	width: 100% !important;
	height: 100% !important;
	left: 0 !important;
	margin-left: 0 !important;
	transform: none !important;
}

.cooked-recipe-embed .cooked-recipe-gallery .fotorama__img {
	width: 100% !important;
	height: 100% !important;
	top: 0 !important;
	left: 0 !important;
	object-fit: cover;
}

.cooked-recipe-embed .cooked-recipe-gallery .fotorama__video {
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
}

.cooked-recipe-embed .cooked-recipe-gallery .fotorama__video iframe {
	width: 100% !important;
	height: 100% !important;
}

.cooked-recipe-embed .cooked-recipe-gallery .fotorama__caption,
.cooked-recipe-embed .cooked-recipe-gallery .fotorama__nav-wrap { display: none !important; }

.cooked-recipe-embed .cooked-recipe-gallery .fotorama__video-play {
	transform: scale(.75);
	opacity: .92;
}

/* ==========================================================================
   Startseiten-Slider am Handy: nur Titel, "Zum Rezept" darunter, Punkte frei
   ========================================================================== */
@media (max-width: 767px) {
	.main-slider-post .entry-meta { display: none !important; }

	.main-slider-post .post-thumbnail .entry-header .more-link {
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		min-height: 38px;
		margin-top: 14px;
		padding: 8px 16px;
		font-size: 14px;
		box-shadow: 2px 2px 0 var(--gk-ink);
	}

	.main-slider-post .more-link.outside { display: none !important; }

	.is-slider-v-align-center .slider-box .main-slider-post .entry-header { top: 45%; }

	.top-content .owl-carousel .owl-dots { bottom: 8px; }
}
