/* ==========================================================================
   Glücksküche design layer – loaded after the Lahanna theme styles.
   Every rule is scoped to body.gk-design (added by mu-plugins/glueckskueche-design.php),
   so ?design=classic shows the untouched theme.
   ========================================================================== */

@font-face {
	font-family: "Fraunces";
	src: url(fonts/fraunces-latin.woff2) format("woff2");
	font-weight: 500 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url(fonts/inter-latin.woff2) format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}


/* ----- Tokens ----- */

.gk-design {
	--gk-bg: #fbf7f2;
	--gk-surface: #fff;
	--gk-ink: #2a2420;
	--gk-muted: #6b5f57;
	--gk-line: #ede3d8;
	--gk-accent: #b5502f;
	--gk-accent-dark: #a84a2c;
	--gk-accent-soft: #fbe6db;
	--gk-accent-soft-ink: #8a3a20;
	--gk-peach: #fcbaa1;
	--gk-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--gk-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--gk-radius: 18px;
	--gk-radius-sm: 12px;
	--gk-shadow: 0 1px 2px rgba(42, 36, 32, .04), 0 8px 24px rgba(42, 36, 32, .07);
	--gk-shadow-hover: 0 2px 4px rgba(42, 36, 32, .06), 0 16px 36px rgba(42, 36, 32, .12);
}


/* ----- Base ----- */

body.gk-design {
	background: var(--gk-bg);
	color: var(--gk-ink);
	font-family: var(--gk-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.gk-design input,
.gk-design select,
.gk-design textarea,
.gk-design button {
	font-family: inherit;
}

.gk-design h1,
.gk-design h2,
.gk-design h3,
.gk-design h4,
.gk-design .entry-title,
.gk-design blockquote,
.gk-design .slider-box .entry-title,
.gk-design .link-box .entry-title,
.gk-design .site-title {
	font-family: var(--gk-serif);
	font-weight: 600;
	letter-spacing: -0.01em;
}

.gk-design h5,
.gk-design h6,
.gk-design .widget-title,
.gk-design .tab-titles {
	font-family: var(--gk-sans);
}

.gk-design ::selection {
	background: var(--gk-peach);
	color: var(--gk-ink);
}

.gk-design :focus-visible {
	outline: 3px solid var(--gk-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
	html:has(body.gk-design) {
		scroll-behavior: smooth;
	}
}


/* ----- Header & navigation ----- */

.gk-design .site-header .header-wrap,
.gk-design .site-header .menu-wrap {
	background-color: var(--gk-bg);
}

.gk-design .site-header .header-bg-shape {
	color: var(--gk-bg);
}

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

.gk-design .site-header.clone .menu-wrap {
	background-color: rgba(251, 247, 242, .9);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	backdrop-filter: saturate(160%) blur(12px);
	box-shadow: 0 1px 0 var(--gk-line), 0 6px 20px rgba(42, 36, 32, .06);
}

.gk-design .nav-menu > ul > li > a {
	font-family: var(--gk-sans);
	font-weight: 500;
	letter-spacing: .01em;
	text-transform: none !important;
	color: var(--gk-ink);
}

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

.gk-design .nav-menu .sub-menu {
	border-color: var(--gk-line);
	border-radius: var(--gk-radius-sm);
	box-shadow: var(--gk-shadow);
}

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

/* Social icons widget: its inline top/left offsets were tuned for the old menu height.
   Line the icons up in a row, centred on the menu line, at one height. */
.gk-design .site-navigation .social-container .textwidget {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.gk-design .site-navigation .social-container .textwidget > div {
	position: static !important;
	line-height: 0;
}

.gk-design .site-navigation .social-container .textwidget a {
	display: block;
	padding: 6px;
	opacity: .85;
	transition: opacity .2s ease;
}

.gk-design .site-navigation .social-container .textwidget a:hover {
	opacity: 1;
}

.gk-design .site-navigation .social-container .textwidget img {
	display: block;
	width: auto;
	height: 24px;
}

.gk-design .site-navigation .social-container .textwidget img[src*="IG_Glyph"] {
	height: 48px;
}

/* the 48px icon is a big enough tap target on its own; keep the menu line height */
.gk-design .site-navigation .social-container .textwidget a:has(img[src*="IG_Glyph"]) {
	padding: 0 6px;
}

@media (min-width: 992px) {
	.gk-design .site-header:not(.clone) .site-title img {
		max-height: 110px;
	}

	.gk-design .nav-menu > ul > li > a {
		font-size: 15px;
	}
}

@media (max-width: 991px) {
	html:has(body.gk-design) {
		font-size: 14px;
	}

	.gk-design .site-title img {
		max-height: 54px;
	}

	/* The theme pins the icons 12px from the top here; centre them in the 50px bar
	   (the height of .menu-toggle) like on desktop. */
	.gk-design .site-navigation .social-container {
		display: flex;
		align-items: center;
		top: 0;
		height: 50px;
	}
}


/* ----- Featured slider (home) ----- */

.gk-design .slider-box .post-thumbnail {
	border-radius: var(--gk-radius);
	overflow: hidden;
}

.gk-design .slider-box .entry-title {
	line-height: 1.15;
	letter-spacing: -0.015em;
}

/* The slider widget always prints the post categories; hide them */
.gk-design .slider-box .entry-meta {
	display: none;
}

.gk-design .slider-box .more-link {
	border-radius: 999px;
	font-family: var(--gk-sans);
	font-weight: 600;
	letter-spacing: .01em;
	text-transform: none;
}


/* ----- Post cards: blog list (home) and masonry grid (archives) ----- */

.gk-design .blog-stream.blog-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
	gap: clamp(12px, 1.6vw, 22px);
}

.gk-design .blog-stream.blog-list::before,
.gk-design .blog-stream.blog-list::after {
	display: none;
}

.gk-design .blog-stream.blog-list .hentry,
.gk-design .blog-stream.blog-grid .hentry-wrap {
	background: var(--gk-surface);
	border-radius: var(--gk-radius);
	box-shadow: var(--gk-shadow);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}

.gk-design .blog-stream.blog-list .hentry {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.gk-design .blog-stream.blog-grid .hentry-wrap {
	padding: 0;
}

@media (hover: hover) {
	.gk-design .blog-stream.blog-list .hentry:hover,
	.gk-design .blog-stream.blog-grid .hentry-wrap:hover {
		transform: translateY(-4px);
		box-shadow: var(--gk-shadow-hover);
	}
}

/* The list layout shows the image as a background of .featured-image */
.gk-design .blog-stream.blog-list .featured-image {
	float: none;
	width: 100%;
	margin: 0;
	padding-top: 0;
	aspect-ratio: 4 / 5;
	background-size: cover;
	background-position: center;
}

.gk-design .blog-stream.blog-grid .featured-image {
	margin: 0;
}

.gk-design .blog-stream.blog-grid .featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

.gk-design .blog-stream.blog-list .hentry-middle,
.gk-design .blog-stream.blog-grid .hentry-middle {
	float: none;
	width: 100%;
	padding: 14px 16px 16px;
	text-align: left;
}

.gk-design .blog-stream.blog-list .hentry-middle {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.gk-design .blog-stream .entry-header {
	margin: 0;
	padding: 0;
	text-align: left;
}

.gk-design .blog-stream.blog-list .entry-title,
.gk-design .blog-stream.blog-grid .entry-title {
	margin: 0 0 8px;
	font-size: clamp(16px, .6vw + 12px, 19px);
	line-height: 1.25;
}

.gk-design .blog-stream .entry-title a {
	color: var(--gk-ink);
}

.gk-design .blog-stream .entry-title a:hover {
	color: var(--gk-accent-dark);
}

.gk-design .blog-stream .entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	color: var(--gk-muted);
	font-family: var(--gk-sans);
	font-size: 12px;
	letter-spacing: 0;
	text-transform: none;
}

.gk-design .blog-stream.blog-list .cat-links a:nth-of-type(n+3),
.gk-design .blog-stream.blog-grid .cat-links a:nth-of-type(n+3) {
	display: none;
}

.gk-design .blog-stream.blog-list .hentry.has-post-thumbnail .entry-content,
.gk-design .blog-stream.blog-grid .hentry .entry-content {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 10px 0 0;
	color: var(--gk-muted);
	font-size: 14px;
	line-height: 1.55;
	text-align: left;
}

.gk-design .blog-stream .entry-content p:not(.more) {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}

.gk-design .blog-stream .entry-content p:not(.more) ~ p:not(.more) {
	display: none;
}

.gk-design .blog-stream .entry-content .more {
	margin: auto 0 0;
	padding-top: 10px;
}

.gk-design .blog-stream .more-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--gk-accent-dark);
	font-family: var(--gk-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .01em;
	text-transform: none;
}

.gk-design .blog-stream .more-link::after {
	content: "→";
	transition: transform .2s ease;
}

.gk-design .blog-stream .more-link:hover::after {
	transform: translateX(3px);
}

/* Phones: compact two-column recipe grid (square image + title) */
@media (max-width: 599px) {
	.gk-design .blog-stream.blog-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.gk-design .blog-stream.blog-list .hentry {
		border-radius: 12px;
	}

	.gk-design .blog-stream.blog-list .featured-image {
		aspect-ratio: 1 / 1;
	}

	.gk-design .blog-stream.blog-list .hentry-middle {
		padding: 8px 10px 10px;
	}

	.gk-design .blog-stream.blog-list .entry-title {
		margin: 0;
		font-size: 14px;
		line-height: 1.3;
	}

	.gk-design .blog-stream.blog-list .entry-meta,
	.gk-design .blog-stream.blog-list .hentry.has-post-thumbnail .entry-content {
		display: none;
	}
}


/* ----- Category pills ----- */

.gk-design .blog-stream .cat-links,
.gk-design .post-header .cat-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
}

.gk-design .blog-stream .cat-links .prefix,
.gk-design .post-header .cat-links .prefix {
	display: none;
}

.gk-design .blog-stream .cat-links a,
.gk-design .post-header .cat-links a {
	display: inline-block;
	margin: 0;
	padding: 4px 10px;
	border: 0;
	border-radius: 999px;
	background: var(--gk-accent-soft);
	box-shadow: none;
	color: var(--gk-accent-soft-ink);
	font-family: var(--gk-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1.4;
	text-transform: none;
}

.gk-design .blog-stream .cat-links a:hover,
.gk-design .post-header .cat-links a:hover {
	background: var(--gk-peach);
	color: var(--gk-ink);
}


/* ----- Pagination ----- */

.gk-design nav.navigation .nav-previous a,
.gk-design nav.navigation .nav-next a {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--gk-surface);
	box-shadow: var(--gk-shadow);
	color: var(--gk-ink);
	font-family: var(--gk-sans);
	font-size: 13px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: .01em;
}

.gk-design nav.navigation .nav-previous a:hover,
.gk-design nav.navigation .nav-next a:hover {
	background: var(--gk-accent);
	color: #fff;
}


/* ----- Single posts & pages ----- */

.gk-design.single .hentry-wrap,
.gk-design.page .hentry-wrap {
	border-radius: 24px;
	box-shadow: var(--gk-shadow);
}

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

.gk-design.single .post-header .entry-title {
	margin-bottom: .35em;
	font-size: clamp(24px, 1.8vw + 16px, 40px);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.gk-design .post-header .entry-meta {
	color: var(--gk-muted);
	font-family: var(--gk-sans);
	font-size: 12px;
	letter-spacing: 0;
	text-transform: none;
}

.gk-design .post-header .featured-image img {
	border-radius: var(--gk-radius);
}

.gk-design.single .entry-content,
.gk-design.page .entry-content {
	color: var(--gk-ink);
	font-size: clamp(15px, .25vw + 14px, 17px);
	line-height: 1.65;
}

.gk-design .entry-content h2 {
	margin: 1.4em 0 .5em;
	font-size: clamp(20px, .8vw + 16px, 26px);
	line-height: 1.2;
}

.gk-design .entry-content h3 {
	font-size: clamp(17px, .5vw + 14.5px, 20px);
	line-height: 1.3;
}

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

.gk-design .entry-content a:not([class]):not(.cooked-recipe-info a) {
	color: var(--gk-accent-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.gk-design .entry-content a:not([class]):not(.cooked-recipe-info a):hover {
	text-decoration-thickness: 2px;
}

.gk-design .related-posts .post-thumbnail {
	border-radius: 14px;
	overflow: hidden;
}


/* ----- "Zum Rezept" button ----- */

.gk-design .gk-jump-wrap {
	margin: 0 0 1em;
	text-align: center;
}

.gk-design .entry-content .gk-jump {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--gk-accent);
	box-shadow: 0 6px 16px rgba(181, 80, 47, .28);
	color: #fff;
	font-family: var(--gk-sans);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background .2s ease, transform .2s ease;
}

.gk-design .entry-content .gk-jump:hover {
	background: var(--gk-accent-dark);
	color: #fff;
	transform: translateY(-1px);
}


/* ----- Recipe card (Cooked) ----- */

.gk-design .entry-content .cooked-recipe-embed {
	margin: 1.6em 0;
	padding: clamp(14px, 2.4vw, 28px);
	border: 1px solid var(--gk-line);
	border-radius: 18px;
	background: var(--gk-bg);
	font-size: 15px;
	line-height: 1.6;
	scroll-margin-top: 80px;
}

/* wpautop leaves empty paragraphs around Cooked's blocks */
.gk-design .cooked-recipe-embed > p:empty {
	display: none;
}

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

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

/* Own icons: mixing bowl with wooden spoon for the prep time, steaming pot for the cook time.
   The total time keeps Cooked's clock. */
.gk-design .cooked-recipe-embed .cooked-recipe-info .cooked-prep-time .cooked-time-icon,
.gk-design .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;
}

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

.gk-design .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='%23b5502f' 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");
}

.gk-design .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='%23b5502f' 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");
}

/* Phones: the three times smaller */
@media (max-width: 599px) {
	.gk-design .cooked-recipe-embed .cooked-recipe-info span.cooked-time {
		margin-left: 1rem;
		padding-left: 2rem;
		font-size: 13px;
		line-height: 1.2rem;
	}

	.gk-design .cooked-recipe-embed .cooked-recipe-info > section.cooked-right > span.cooked-time:first-child {
		margin-left: 0;
	}

	.gk-design .cooked-recipe-embed .cooked-recipe-info span.cooked-time strong {
		font-size: 10px;
	}

	.gk-design .cooked-recipe-embed .cooked-recipe-info .cooked-time .cooked-time-icon {
		font-size: 1.5rem;
		margin-top: -.75rem;
	}

	.gk-design .cooked-recipe-embed .cooked-recipe-info .cooked-prep-time .cooked-time-icon,
	.gk-design .cooked-recipe-embed .cooked-recipe-info .cooked-cook-time .cooked-time-icon {
		width: 1.45rem;
		height: 1.45rem;
		margin-top: -.72rem;
		font-size: 0;
	}
}

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

/* "Ergibt 65 Portionen": a link that opens the servings switcher; it inherited the pale theme link colour */
.gk-design .cooked-recipe-embed .cooked-recipe-info .cooked-servings > a {
	color: var(--gk-accent-dark);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.gk-design .cooked-recipe-embed .cooked-recipe-info .cooked-servings > a::after {
	content: " ▾";
	font-size: 14px;
}

.gk-design .cooked-recipe-embed .cooked-recipe-excerpt {
	color: var(--gk-muted);
}

.gk-design .cooked-recipe-embed > .cooked-recipe-ingredients::before,
.gk-design .cooked-recipe-embed > .cooked-recipe-directions::before {
	display: block;
	margin: 1em 0 .4em;
	padding-bottom: .35em;
	border-bottom: 2px solid var(--gk-peach);
	color: var(--gk-ink);
	font-family: var(--gk-serif);
	font-size: clamp(19px, .6vw + 15px, 23px);
	font-weight: 600;
	line-height: 1.2;
}

.gk-design .cooked-recipe-embed > .cooked-recipe-ingredients::before {
	content: "Zutaten";
}

.gk-design .cooked-recipe-embed > .cooked-recipe-directions::before {
	content: "Zubereitung";
}

/* Nutrition per serving ([gk-naehrwerte] from the Rezept-App plugin) */
.gk-design .cooked-recipe-embed .gk-nutrition {
	margin: 1.4em 0 .6em;
}

.gk-design .cooked-recipe-embed .gk-nutrition-title {
	margin: 0 0 .4em;
	padding-bottom: .35em;
	border-bottom: 2px solid var(--gk-peach);
	color: var(--gk-ink);
	font-family: var(--gk-serif);
	font-size: clamp(19px, .6vw + 15px, 23px);
	font-weight: 600;
	line-height: 1.2;
}

.gk-design .cooked-recipe-embed .gk-nutrition dl {
	margin: 0;
}

.gk-design .cooked-recipe-embed .gk-nutrition dl > div {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	padding: .4rem 0;
	border-bottom: 1px dashed var(--gk-line);
}

.gk-design .cooked-recipe-embed .gk-nutrition dt,
.gk-design .cooked-recipe-embed .gk-nutrition dd {
	margin: 0;
	padding: 0;
}

.gk-design .cooked-recipe-embed .gk-nutrition dt {
	font-weight: 400;
}

.gk-design .cooked-recipe-embed .gk-nutrition dd {
	font-weight: 700;
	white-space: nowrap;
}

.gk-design .cooked-recipe-embed .gk-nutrition .gk-nutrition-sub {
	padding-left: 1em;
	color: var(--gk-muted);
}

.gk-design .cooked-recipe-embed .gk-nutrition .gk-nutrition-sub dd {
	font-weight: 400;
}

.gk-design .cooked-recipe-embed .gk-nutrition-note {
	margin: .5em 0 0;
	color: var(--gk-muted);
	font-size: 13px;
}

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

.gk-design .cooked-recipe-embed .cooked-single-ingredient.cooked-ingredient {
	padding-top: .45rem;
	padding-bottom: .45rem;
	border-bottom: 1px dashed var(--gk-line);
}

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

.gk-design .cooked-recipe-embed .cooked-recipe-ingredients .cooked-ingredient-checkbox {
	top: 50%;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: -.575rem;
	border: 2px solid var(--gk-accent);
	border-radius: 6px;
	background: var(--gk-surface);
	line-height: 1.15rem;
}

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

.gk-design .cooked-recipe-embed .cooked-direction {
	padding-top: .7rem;
	padding-bottom: .7rem;
	border-bottom: 1px solid var(--gk-line);
}

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

.gk-design .cooked-recipe-embed .cooked-direction .cooked-direction-number {
	top: .7rem;
	box-sizing: border-box;
	min-width: 1.75rem;
	width: auto;
	height: 1.75rem;
	padding: 0 .3em;
	border-radius: 999px;
	background: var(--gk-accent);
	color: #fff;
	opacity: 1;
	font-family: var(--gk-sans);
	font-size: .85rem;
	font-weight: 700;
	line-height: 1.75rem;
	text-align: center;
}

.gk-design .cooked-recipe-embed .cooked-direction-has-number .cooked-dir-content {
	padding-left: 2.6rem;
}

.gk-design .cooked-recipe-embed .cooked-dir-content > p:first-child {
	margin-top: 0;
}

/* Phones: the step number sits small above the text instead of taking a column of its own */
@media (max-width: 599px) {
	/* display: block so the number is not set inside a taller text line (that added space above it) */
	.gk-design .cooked-recipe-embed .cooked-direction .cooked-direction-number {
		position: static;
		display: block;
		width: fit-content;
		min-width: 1.5rem;
		height: 1.5rem;
		margin: 0 0 4px;
		font-size: .75rem;
		line-height: 1.5rem;
	}

	.gk-design .cooked-recipe-embed .cooked-direction {
		padding-top: 0;
	}

	.gk-design .cooked-recipe-embed .cooked-direction-has-number .cooked-dir-content {
		padding-left: 0;
	}
}

.gk-design .cooked-recipe-embed .cooked-dir-content img {
	border-radius: 14px;
}

/* Step photos below the text, but clearly smaller than the full card width */
.gk-design .cooked-recipe-embed .cooked-dir-content img {
	display: block;
	width: auto;
	max-width: min(240px, 60%);
	height: auto;
	margin-top: 8px;
	border-radius: 12px;
}


/* ----- Sidebar widgets ----- */

.gk-design .sidebar .widget {
	padding: 20px 18px;
	border-radius: var(--gk-radius);
	background: var(--gk-surface);
	box-shadow: var(--gk-shadow);
}

.gk-design .sidebar .widget-title {
	color: var(--gk-accent-dark);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.gk-design .tptn_posts img {
	border-radius: 10px;
}


/* ----- Forms & buttons ----- */

.gk-design .mc4wp-form input[type="email"],
.gk-design .mc4wp-form input[type="text"],
.gk-design .gk-newsletter-form input[type="email"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--gk-line);
	border-radius: var(--gk-radius-sm);
	background: var(--gk-bg);
	box-shadow: none;
	color: var(--gk-ink);
	font-size: 16px;
}

.gk-design .mc4wp-form input[type="submit"],
.gk-design .gk-newsletter-form input[type="submit"] {
	width: 100%;
	margin-top: 10px;
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--gk-accent);
	color: #fff;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .01em;
	text-transform: none;
}

.gk-design .mc4wp-form input[type="submit"]:hover,
.gk-design .gk-newsletter-form input[type="submit"]:hover {
	background: var(--gk-accent-dark);
}

/* Newsletter (mu-plugins/glueckskueche-newsletter.php) */
.gk-design .gk-newsletter-intro {
	margin: 0 0 10px;
}

.gk-design .gk-newsletter-note {
	margin: 10px 0 0;
	color: var(--gk-muted);
	font-size: 12px;
	line-height: 1.45;
}

.gk-design .gk-newsletter-msg {
	margin: 0 0 10px;
	padding: 10px 12px;
	border-radius: var(--gk-radius-sm);
	font-size: 14px;
}

.gk-design .gk-newsletter-msg.ok {
	background: #e8f3e8;
	color: #24572a;
}

.gk-design .gk-newsletter-msg.error {
	background: var(--gk-accent-soft);
	color: var(--gk-accent-soft-ink);
}

.gk-newsletter-hp {
	position: absolute !important;
	left: -9999px !important;
}

.gk-newsletter-confirmed {
	position: fixed;
	left: 50%;
	top: 16px;
	z-index: 99999;
	max-width: calc(100% - 32px);
	padding: 12px 18px;
	border-radius: 12px;
	background: #24572a;
	color: #fff;
	font-size: 15px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
	transform: translateX(-50%);
}

/* 16px inputs stop iOS from zooming in on focus */
@media (max-width: 767px) {
	.gk-design input[type="text"],
	.gk-design input[type="email"],
	.gk-design input[type="search"],
	.gk-design textarea,
	.gk-design select {
		font-size: 16px;
	}
}


/* ----- Recipe overview [gk_rezepte] (/recipes/) ----- */

.gk-index-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 0 0 18px;
}

.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: 46px;
	padding: 10px 14px;
	border: 1px solid var(--gk-line, #ede3d8);
	border-radius: 999px;
	background: var(--gk-surface, #fff);
	color: var(--gk-ink, #2a2420);
	font-size: 16px;
}

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

.gk-chip {
	min-height: 40px;
	padding: 8px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--gk-surface, #fff);
	box-shadow: inset 0 0 0 1px var(--gk-line, #ede3d8);
	color: var(--gk-ink, #2a2420);
	font: 500 14px var(--gk-sans, sans-serif);
	cursor: pointer;
}

.gk-chip[aria-pressed="true"] {
	background: var(--gk-accent, #b5502f);
	box-shadow: none;
	color: #fff;
}

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

.gk-index-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
	gap: clamp(10px, 1.6vw, 20px);
}

.gk-index-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 14px;
	background: var(--gk-surface, #fff);
	box-shadow: 0 1px 2px rgba(42, 36, 32, .04), 0 8px 24px rgba(42, 36, 32, .07);
	color: var(--gk-ink, #2a2420);
	text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease;
}

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

@media (hover: hover) {
	.gk-index-card:hover {
		transform: translateY(-3px);
		box-shadow: 0 2px 4px rgba(42, 36, 32, .06), 0 16px 36px rgba(42, 36, 32, .12);
	}
}

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

.gk-index-title {
	padding: 10px 12px 2px;
	font-family: var(--gk-serif, serif);
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.3;
}

.gk-index-time {
	padding: 0 12px 12px;
	color: var(--gk-muted, #6b5f57);
	font-size: 12.5px;
}

.gk-index-empty {
	padding: 24px 0;
	color: var(--gk-muted, #6b5f57);
	text-align: center;
}

@media (max-width: 599px) {
	.gk-index-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gk-index-title {
		font-size: 14px;
	}
}


/* ----- Comments (wpDiscuz) ----- */

/* The theme gives every textarea min-height: 9em; wpDiscuz resizes its box to its own small height as
   soon as you type, so the box jumped. Start at wpDiscuz's size so it stays the same. */
.gk-design #wpdcom .wpd-form .wpdiscuz-textarea-wrap textarea.wc_comment {
	min-height: 0;
	height: 56px;
}


/* ----- Footer ----- */

.gk-design .site-footer {
	margin-top: 48px;
	background: var(--gk-ink);
}

.gk-design .site-footer .site-info {
	padding: 36px 20px;
	background: transparent;
	color: #d9cbbd;
	font-size: 14px;
	text-align: center;
}

.gk-design .site-footer .site-info font {
	font-size: inherit;
}

.gk-design .site-footer a {
	margin: 0 10px;
	color: #f3e9df;
	text-decoration: none;
}

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


/* ----- Phones: tighter page frame so more content fits on screen ----- */

@media (max-width: 767px) {
	.gk-design .site-main {
		padding: 14px 0;
	}

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

	.gk-design.single .hentry-wrap,
	.gk-design.page .hentry-wrap {
		padding: 18px 14px;
		border-radius: 16px;
	}

	/* Theme slider is 120% as tall as wide – far too tall on a phone */
	.gk-design .slider-box.ratio-tall .post-wrap {
		padding-top: 72% !important;
	}

	.gk-design .sidebar .widget {
		padding: 16px 14px;
	}

	.gk-design .site-footer {
		margin-top: 24px;
	}

	.gk-design .site-footer .site-info {
		padding: 24px 16px;
	}
}

/* Hide the theme's sticky-post pin icon above post titles */
.gk-design .hentry.sticky .entry-header:before {
	content: none;
	display: none;
}

/* Slider titles never split a word; the footer script in glueckskueche-design.php shrinks the
   title instead when its longest word is too wide */
.gk-design .slider-box .entry-title {
	word-break: normal;
	overflow-wrap: normal;
	hyphens: manual;
}

/* Cookie banner (Pixelmate): just one short sentence, no heading (its text is emptied in the
   Pixelmate settings; the empty h3 would still take room) and no Datenschutz/Impressum links –
   those stay in the site footer and in the "Mehr" dialog. */
.gk-design .pixelmate-banner-notice-bottom h3,
.gk-design .pixelmate-wrapper-bottom .pixelmate-general-footer {
	display: none !important;
}

/* While the banner is on the page, keep the footer (with Impressum/Datenschutz) clear of it */
body.gk-design:has(.pixelmate-wrapper-bottom) .site-footer {
	padding-bottom: 96px;
}

/* Cookie banner on phones: a small card at the bottom. Pixelmate writes some styles inline with
   !important (box padding, corners, button colours) – those are set in its settings instead; the
   rest is here. Two rows: the question with "Mehr" at its end, then two equal buttons. The two
   wrappers around text and buttons are flattened (display: contents) so everything sits in one grid. */
@media (max-width: 767px) {
	.gk-design .pixelmate-wrapper-bottom {
		left: 8px;
		right: 8px;
		bottom: calc(8px + env(safe-area-inset-bottom));
		width: auto;
		border-radius: 12px;
		box-shadow: 0 4px 24px rgba(42, 36, 32, .18);
		overflow: hidden;
	}

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

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

	/* "Mehr" sits at the end of the question's row */
	.gk-design .pixelmate-general-notice-bottom {
		grid-area: text;
		padding: 0 40px 0 0 !important;
		font-size: 11px !important;
		line-height: 1.35 !important;
		text-align: left;
	}

	.gk-design .pixelmate-general-single-bottom {
		grid-area: text;
		justify-self: end;
		min-height: 20px;
		padding: 0 !important;
		font-size: 10.5px !important;
		line-height: 1.3 !important;
		text-decoration: underline;
	}

	/* Equal buttons; width: 100% makes Pixelmate's fixed 6px right margin harmless */
	.gk-design .pixelmate-general-allow-bottom,
	.gk-design .pixelmate-general-deny-bottom {
		width: 100%;
		min-height: 30px;
		padding: 4px 8px !important;
		font-size: 12px !important;
		font-weight: 600;
		line-height: 1.2 !important;
	}

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

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