/*
Theme Name:  Ashe Child – Eine Prise Salz
Template:    ashe
Description: Child-Theme für eineprisesalz.blog. Eigene Templates und Gestaltung von MN Webdesign auf Basis von Ashe.
Author:      MN Webdesign – Marvin Nowozin
Author URI:  https://marvinnowozin.de
Version:     1.2.0
Text Domain: ashe-child
*/

/* Der Elternstil von Ashe wird in functions.php davor geladen. */

/* ------------------------------------------------------------------
   Rezept-Raster (Übersichtsseiten) – 21.10.2026
   ------------------------------------------------------------------ */

.mn-archiv-kopf h1 {           /* wie Ashes bisherige H4, nur jetzt als echte Hauptüberschrift */
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 5px;
}
.mn-archiv-text {
	display: inline-block;
	max-width: 700px;
	font-size: 15px;
	line-height: 24.2px;
}
.mn-archiv-text p { margin-bottom: 10px; }

.mn-raster {
	list-style: none;
	margin: -6px;                /* Platz für den Fokusrahmen – Ashes .main-container schneidet sonst ab */
	padding: 6px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 34px 26px;
}
.mn-raster > li { margin: 0; padding: 0; }
.mn-karte-link {
	display: block;
	color: inherit;
	text-decoration: none;
}
.mn-karte-bild {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 4px;
	background: #f3eee9;
}
.mn-karte-bild img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}
.mn-karte-link:hover .mn-karte-bild img { transform: scale(1.04); }
.mn-karte-text { padding-top: 12px; }
.mn-karte-zeit {
	font: 600 11px/1 "Open Sans", sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #e8946a;
}
.mn-karte-zeit .fa-clock { margin-right: 4px; }
.mn-karte-titel {
	font-family: "Playfair Display", serif;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	margin: 7px 0 0;
	color: #030303;
	transition: color .2s;
}
.mn-karte-link:hover .mn-karte-titel,
.mn-karte-link:focus-visible .mn-karte-titel { color: #e8946a; }
.mn-karte-link:focus-visible {
	outline: 2px solid #e8946a;
	outline-offset: 4px;
	border-radius: 4px;
}

.mn-seiten {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 46px 0 10px;
	font: 600 13px "Open Sans", sans-serif;
}
.mn-seiten .page-numbers {
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e5e0da;
	border-radius: 4px;
	color: #030303;
	text-decoration: none;
}
.mn-seiten a.page-numbers:hover { border-color: #e8946a; color: #e8946a; }
.mn-seiten .page-numbers.current { background: #e8946a; border-color: #e8946a; color: #fff; }
.mn-seiten .page-numbers.dots { border-color: transparent; }

@media (max-width: 640px) {
	.mn-raster { grid-template-columns: 1fr; gap: 30px; }
	.mn-karte-titel { font-size: 19px; }
}

/* ------------------------------------------------------------------
   „Springe zu Rezept“ unter dem Titel – 21.10.2026
   ------------------------------------------------------------------ */
.mn-sprungknopf { margin: 0 0 22px; }
.mn-sprungknopf .wprm-recipe-snippet { margin: 0; }

/* ------------------------------------------------------------------
   Schlanker Kopf am Handy – 21.10.2026 (Paket 1)
   Vorher: Kopf 292 px hoch, Rezepttitel erst bei 75 % der ersten Bildschirmseite.
   ------------------------------------------------------------------ */
@media screen and (max-width: 768px) {
	#page-header .entry-header {           /* Ashe: height 250 px bzw. padding 50 px, jeweils !important */
		height: auto !important;
		padding: 18px 0 14px !important;
	}
	#page-header .site-description { display: none; }   /* Untertitel nur am Handy ausblenden */
	body .main-content { padding-top: 22px; }
	body.single-post .post-header .post-title,
	body.page .post-header .post-title {
		font-size: 28px;
		line-height: 1.25;
	}
}

/* Ashes Dunkelmodus (Schalter im Menü) kennt das Raster nicht – 21.10.2026 */
body.ashe-dark-mode .mn-seiten .page-numbers { color: #c4c4c4; border-color: #383838; }
body.ashe-dark-mode .mn-seiten a.page-numbers:hover { color: #e8946a; border-color: #e8946a; }
body.ashe-dark-mode .mn-seiten .page-numbers.current { color: #fff; border-color: #e8946a; }
body.ashe-dark-mode .mn-karte-bild { background: #2f2f2f; }
