/* ==========================================================================
   Rezeptkarten und Seitenwechsel wie auf der Live-Seite (1:1 aus mu-plugins/glueckskueche-design/design.css,
   Abschnitte "Post cards", "Category pills", "Pagination"). Die Live-Farben gelten nur innerhalb der Karten
   und der Seitenwechsel-Leiste, der Rest der Seite behaelt die Farben des Kind-Themes.
   ========================================================================== */

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

.gk-design .blog-stream,
.gk-design nav.navigation,
.gk-design .sidebar .widget_gk_newsletter {
	--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);
}

.gk-design .blog-stream .entry-title {
	font-family: var(--gk-serif);
	font-weight: 600;
	letter-spacing: -0.01em;
}

/* ----- 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;
}



/* ===== Newsletter-Box (aus Live design.css, Forms & Newsletter) ===== */

.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;
	}
}



/* Newsletter-Box als weisse Karte wie auf Live (Sidebar widgets) */
.gk-design .sidebar .widget_gk_newsletter {
	padding: 20px 18px;
	border-radius: var(--gk-radius);
	background: var(--gk-surface);
	box-shadow: var(--gk-shadow);
}

.gk-design .sidebar .widget_gk_newsletter,
.gk-design .sidebar .widget_gk_newsletter .gk-newsletter-form {
	background: var(--gk-surface);
}

.gk-design .sidebar .widget_gk_newsletter input[type="submit"] {
	box-shadow: none;
}

/* Kein Vorschautext in den Rezeptkarten, nur "Zum Rezept" bleibt */
.gk-design .blog-stream .entry-content p:not(.more) {
	display: none;
}

/* Karten-Metadaten einheitlich: Kategorien in einer Zeile, Aufrufe immer darunter, keine Likes */
.gk-design .blog-stream .entry-meta.below-title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.gk-design .blog-stream .entry-meta .entry-like {
	display: none;
}

.gk-design .blog-stream .entry-meta .cat-links,
.gk-design .blog-stream .entry-meta .entry-view {
	margin: 0;
}


/* ===== Rezeptseiten ===== */

/* Bilder wie auf Live: rund (14px), ohne weissen Rahmen und ohne Schatten */
.single .entry-content img:not(.emoji),
.single .cooked-recipe-embed .cooked-dir-content img {
	border: 0;
	border-radius: 14px;
	box-shadow: none;
}

.single .cooked-recipe-embed .cooked-dir-content img {
	border-radius: 12px;
}


/* Kommentare (wpDiscuz) im Live-Aufbau, Akzentfarbe im Rot der Seite statt Orange */
#wpdcom .wpd-thread-head .wpd-thread-info {
	border-bottom-color: #b5502f !important;
}

#wpdcom .wpd-prim-button,
#wpdcom .wc_comm_submit {
	background-color: #b5502f !important;
	color: #fff !important;
}

#wpdcom .wpd-prim-button:hover,
#wpdcom .wc_comm_submit:hover {
	background-color: #a84a2c !important;
}

#wpdcom a,
#wpdcom .wpd-comment-footer .wpd-reply-button:hover,
#wpdcom .wpd-thread-filter .wpdf-active,
#wpdcom .wpd-thread-filter .wpdf-active svg {
	color: #b5502f;
	fill: #b5502f;
}

#wpdcom .wpd-thread-filter .wpdf-active {
	border-bottom-color: #b5502f !important;
}

/* wpDiscuz-Quelltextfeld ist nur fuer den Editor gedacht und auf Live unsichtbar */
#wpd-editor-source-code-wrapper,
#wpd-editor-source-code-wrapper-bg {
	display: none;
}

/* Beitragsbild oben wie auf Live: 18px rund, ohne weissen Rahmen und Schatten */
.single .post-header .featured-image img {
	padding: 0;
	border: 0;
	border-radius: 18px;
	background: none;
	box-shadow: none;
}

/* Kommentar-Kopf wie auf Live ("0 KOMMENTARE" mit Unterstrich), Unterstrich in Rot */
#wpdcom .wpd-thread-head .wpd-thread-info {
	margin-bottom: -2px;
	padding-bottom: 3px;
	border-bottom: 2px solid #b5502f !important;
	color: #555;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}

#wpdcom .wpd-thread-head {
	display: flex;
}

/* Kommentar: E-Mail-Feld und Stift-Icon ausblenden */
#wpdcom .wc_email-wrapper{display:none}
.comments-area #respond::before{content:none;display:none}

/* Naehrwertetikett: Portionsgroesse-Wert in eigener Zeile, kleiner */
.cooked-nutrition-label .cooked-nut-servings .cooked-serving-size{display:block !important}
.cooked-nutrition-label .cooked-serving-size .cooked-right{float:none;display:block;margin:2px 0 0;text-align:left}

/* "Das koennte dir auch schmecken" wie Live (Layout aus dem Eltern-Theme), nur runde Bilder */
.gk-design .related-posts .post-thumbnail{border-radius:14px;overflow:hidden}

/* "Zum Rezept"-Button wie Live */
.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;min-height:0;padding:10px 20px;border-radius:999px;background:#b5502f;box-shadow:0 6px 16px rgba(181,80,47,.28);color:#fff;font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;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:#a84a2c;color:#fff;transform:translateY(-1px)}
.gk-design .related-posts .entry-title,.gk-design .related-posts .entry-title a{font-family:"Fraunces",Georgia,"Times New Roman",serif;font-size:26px;font-weight:600;line-height:1.2;letter-spacing:-0.01em;color:#fff}
#wpdcom .wpd-comment-author,#wpdcom .wpd-comment-author a{color:#b5502f !important}
.gk-design .related-posts .widget-title,.gk-design .related-posts .widget-title span{font-family:var(--gk-hand);font-size:36px;font-weight:400;line-height:1;letter-spacing:0;text-transform:none;color:var(--gk-deep)}
.gk-design .related-posts .widget-title::after{display:none}
.single .site-content .entry-content{margin-bottom:0}
.single .entry-content>.cooked-recipe-embed:last-child,.single .entry-content>.cooked-recipe-embed:has(+ .tptn_counter:last-child){margin-bottom:0}
@media (min-width:768px){.single .site-content .hentry-wrap{padding-bottom:36px}}
.site-footer .site-info{padding-bottom:20px}
