/*
Theme Name: Käse Geiger
Theme URI: https://kaese-geiger.de/
Description: Child-Theme für Twenty Twenty-Five mit Startseite, Öffnungszeiten-Leiste und Farben des Käsespezialgeschäfts Geiger.
Template: twentytwentyfive
Version: 1.2.2
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kaese-geiger
*/

/* ---------- Grundlagen ---------- */
:root {
	--kg-radius: 14px;
	--kg-line: var(--wp--preset--color--accent-2);
	--kg-shadow: 0 10px 30px rgba(60, 40, 10, .08);
}
.wp-site-blocks > main.kg-main,
.wp-site-blocks > footer { margin-block-start: 0; }
.kg-main > * { margin-block-start: 0; }
.kg-main > * + * { margin-block-start: 0; }

.kg-eyebrow {
	font-size: 13px !important;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-4);
	margin-bottom: 0;
}
.kg-eyebrow + * { margin-block-start: .6rem !important; }
.kg-muted { color: var(--wp--preset--color--accent-4); }
em { font-style: italic; }
h1 em, h2 em { color: var(--wp--preset--color--accent-1); font-weight: 400; }

/* ---------- Öffnungszeiten-Leiste ---------- */
.kg-leiste {
	background: var(--wp--preset--color--accent-6);
	color: #EADFCB;
	font-size: 15px;
	line-height: 1.4;
	position: relative;
	z-index: 50;
}
.kg-leiste-in {
	max-width: 1160px;
	margin: 0 auto;
	padding: 8px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 4px 16px;
	flex-wrap: wrap;
}
.kg-leiste a { color: inherit; text-decoration: none; }
.kg-leiste a:hover { color: #fff; }
.kg-status { display: inline-flex; align-items: center; gap: 8px; }
.kg-punkt { width: 9px; height: 9px; border-radius: 50%; background: #8a8a8a; flex: none; }
.kg-offen .kg-punkt { background: #7BC47F; box-shadow: 0 0 0 4px rgba(123, 196, 127, .2); }

/* ---------- Kopfzeile ---------- */
.kg-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 40;
	background: rgba(255, 253, 248, .95);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--kg-line);
}
.kg-header-in { min-height: 78px; }
.kg-logo { margin: 0 !important; }
.kg-logo img { height: 46px; width: auto; display: block; }
.kg-nav { font-weight: 600; font-size: 16px; gap: 28px; }
.kg-nav a:hover { color: var(--wp--preset--color--accent-1); }
.kg-header .wp-block-button__link { padding: 11px 20px; font-size: 15px; }

/* ---------- Buttons ---------- */
.wp-block-button.kg-btn-ghost .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, .75);
}
.wp-block-button.kg-btn-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, .12); }
.wp-block-button.kg-btn-dark .wp-block-button__link {
	background: var(--wp--preset--color--contrast);
	color: #fff;
}
.wp-block-button__link { transition: transform .15s, background .15s; }
.wp-block-button__link:hover { transform: translateY(-1px); }

/* ---------- Hero ---------- */
.kg-hero { min-height: min(78vh, 720px); align-items: flex-end; color: #fff; }
.kg-hero .wp-block-cover__background {
	background: linear-gradient(100deg, rgba(30, 20, 10, .88) 0%, rgba(30, 20, 10, .62) 45%, rgba(30, 20, 10, .15) 100%) !important;
	opacity: 1 !important;
}
.kg-hero .wp-block-cover__inner-container { padding-block: 90px 110px; }
.kg-hero .kg-eyebrow { color: #F2C66A; }
.kg-hero h1 { color: #fff; max-width: 13ch; font-size: clamp(40px, 6vw, 72px); margin-block: .6rem 1.2rem; }
.kg-hero h1 em { color: #F2C66A; }
.kg-hero p { color: #F1E8D8; font-size: 20px; max-width: 34rem; }
.kg-seal {
	position: absolute;
	right: 0;
	top: -10px;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-6);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	transform: rotate(8deg);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
	gap: 0;
}
.kg-seal p { margin: 0 !important; color: inherit !important; }
.kg-seal .kg-seal-zahl { font-family: var(--wp--preset--font-family--fraunces); font-size: 40px !important; font-weight: 700; line-height: 1; }
.kg-seal .kg-seal-text { font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; }

/* ---------- Infokarten ---------- */
.kg-infos { margin-top: -56px !important; position: relative; z-index: 2; }
.kg-card {
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--kg-line);
	border-radius: var(--kg-radius);
	padding: 26px 28px;
	box-shadow: var(--kg-shadow);
}
.kg-card h3 { font-size: 20px; display: flex; gap: 10px; align-items: center; margin: 0 0 12px; }
.kg-card h3 img { width: 24px; height: 24px; }
.kg-card p { font-size: 16px; }
.kg-card .kg-gross { font-family: var(--wp--preset--font-family--fraunces); font-size: 24px; font-weight: 600; }
.kg-card .kg-gross a { text-decoration: none; }
.kg-link a {
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	border-bottom: 2px solid var(--wp--preset--color--accent-1);
}

/* Öffnungszeiten-Tabelle und -Liste (Shortcode) */
.kg-zeiten { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0; }
.kg-zeiten td { padding: 3px 0; border: 0; }
.kg-zeiten td:last-child { text-align: right; font-weight: 600; }
.kg-zeiten .kg-heute td { color: var(--wp--preset--color--accent-1); }
.kg-zeiten-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* ---------- Abschnitte ---------- */
.kg-section { padding-block: clamp(70px, 9vw, 110px) !important; }
.kg-section-head { margin-bottom: 40px !important; }
.kg-section-head > * { max-width: 640px; }
.kg-section h2 { font-size: clamp(32px, 4vw, 46px); }
.kg-intro h2 { font-size: clamp(34px, 4.4vw, 52px); }
.kg-intro-bild img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 60% 70%;
	border-radius: var(--kg-radius);
	box-shadow: 0 20px 40px rgba(60, 40, 10, .18);
}
.kg-weiss { background: var(--wp--preset--color--accent-5); border-block: 1px solid var(--kg-line); }

/* Sortiment-Kacheln */
.kg-tiles { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.kg-tiles > * { margin: 0 !important; }
.kg-tile {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--kg-line);
	border-radius: var(--kg-radius);
	padding: 30px;
	transition: transform .2s, box-shadow .2s;
}
.kg-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(60, 40, 10, .1); }
.kg-tile .kg-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--wp--preset--color--accent-2); display: grid; place-items: center; margin: 0 0 20px !important; }
.kg-tile .kg-icon img { width: 44px; height: 44px; }
.kg-tile h3 { font-size: 23px; margin: 0 0 8px; }
.kg-tile p { font-size: 16px; color: var(--wp--preset--color--accent-4); margin: 0; }
.kg-tile.kg-tile-gruen { background: var(--wp--preset--color--accent-3); border-color: var(--wp--preset--color--accent-3); color: #fff; }
.kg-tile.kg-tile-gruen h3 { color: #fff; }
.kg-tile.kg-tile-gruen p { color: #DDE6D9; }
.kg-tile.kg-tile-gruen .kg-icon { background: rgba(255, 255, 255, .14); }
.kg-laender { margin-top: 40px !important; gap: 10px !important; }
.kg-laender p { margin: 0; }
.kg-laender .kg-chip {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--kg-line);
	border-radius: 999px;
	padding: 7px 15px;
	font-size: 15px;
	font-weight: 600;
}

/* News (Abfrage-Loop) */
.kg-news-liste .wp-block-post-template { gap: 22px; }
.kg-news {
	height: 100%;
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--kg-line);
	border-top: 4px solid var(--wp--preset--color--accent-1);
	border-radius: var(--kg-radius);
	padding: 28px;
}
.kg-news .wp-block-post-featured-image { margin: -28px -28px 20px !important; }
.kg-news .wp-block-post-featured-image img { border-radius: calc(var(--kg-radius) - 2px) calc(var(--kg-radius) - 2px) 0 0; aspect-ratio: 16 / 10; object-fit: cover; }
.kg-news .wp-block-post-terms a {
	display: inline-block;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-6);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 6px;
	text-decoration: none;
}
.kg-news .wp-block-post-date { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--accent-4); }
.kg-news .wp-block-post-title { font-size: 22px; margin: 6px 0 8px; }
.kg-news .wp-block-post-title a { text-decoration: none; }
.kg-news .wp-block-post-excerpt { font-size: 16px; color: var(--wp--preset--color--accent-4); }
.kg-news .wp-block-post-excerpt__more-text { margin-top: 10px; }

/* Über uns */
.kg-dunkel { background: var(--wp--preset--color--accent-6); color: #CFC2AC; }
.kg-dunkel h2 { color: #fff; }
.kg-dunkel .kg-eyebrow { color: #F2C66A; }
.kg-dunkel p { color: #CFC2AC; }
.kg-stats { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 30px; margin-top: 36px !important; }
.kg-stats .kg-zahl { font-family: var(--wp--preset--font-family--fraunces); font-size: clamp(34px, 4vw, 44px); line-height: 1; color: #F2C66A; margin: 0; }
.kg-stats p { margin: 4px 0 0; font-size: 15px; }

/* Bewertungen */
.kg-bewertungen .wp-block-button__link {
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--kg-line);
	border-radius: 12px;
	padding: 12px 18px;
}
.kg-bewertungen .wp-block-button__link::before { content: "★ "; color: var(--wp--preset--color--accent-1); }
.kg-bewertungen .wp-block-button__link:hover { border-color: var(--wp--preset--color--accent-1); }

/* Kontakt */
.kg-kontaktliste p { margin: 0; }
.kg-kontaktliste .kg-label { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--accent-4); margin-top: 18px; }
.kg-kontaktliste .kg-wert { font-weight: 700; font-size: 19px; }
.kg-kontaktliste .kg-wert a { text-decoration: none; }
.kg-kontakt-info { display: flex; flex-direction: column; }
.kg-karte {
	flex: 1;
	min-height: 300px;
	margin-top: 32px !important;
	border: 1px solid var(--kg-line);
	border-radius: var(--kg-radius);
	overflow: hidden;
	background: var(--wp--preset--color--accent-2);
	display: grid;
	place-items: center;
}
.kg-karte iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }
.kg-karte-hinweis { max-width: 340px; padding: 24px; text-align: center; }
.kg-karte-hinweis p { font-size: 14px; color: var(--wp--preset--color--accent-4); margin: 14px 0 0; }
.kg-karte-laden {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-6);
	border: 0;
	border-radius: 999px;
	padding: 12px 26px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.kg-karte-laden:hover { filter: brightness(1.05); }
.kg-formular {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--kg-line);
	border-radius: var(--kg-radius);
	padding: 34px;
}
.kg-formular label { display: block; font-weight: 700; font-size: 15px; }
.kg-formular input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.kg-formular textarea {
	box-sizing: border-box;
	width: 100%;
	font: inherit;
	font-size: 17px;
	padding: 13px 15px;
	border: 1px solid #D8CBB2;
	border-radius: 10px;
	background: #fff;
	margin-top: 6px;
}
.kg-formular textarea { min-height: 150px; }
.kg-formular input:focus, .kg-formular textarea:focus { outline: 3px solid rgba(217, 162, 43, .35); border-color: var(--wp--preset--color--accent-1); }
.kg-formular input[type=submit] {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-6);
	border: 0;
	border-radius: 999px;
	padding: 14px 26px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

/* ---------- Footer ---------- */
.kg-footer { background: var(--wp--preset--color--accent-6); color: #CFC2AC; font-size: 16px; }
.kg-footer h4, .kg-footer .kg-footer-titel { font-size: 13px !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #F2C66A; }
.kg-footer a { color: inherit; text-decoration: none; }
.kg-footer a:hover { color: #fff; }
.kg-footer .kg-logo img { height: 40px; filter: brightness(0) invert(.92) sepia(.25); }
.kg-footer p { margin: 0; }
.kg-footer-unten { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; margin-top: 44px !important; font-size: 14px; color: #9E8E77; }

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
	.kg-tiles { grid-template-columns: 1fr 1fr; }
	.kg-seal { width: 110px; height: 110px; top: -40px; }
	.kg-seal .kg-seal-zahl { font-size: 30px !important; }
	.kg-seal .kg-seal-text { font-size: 10px !important; }
}
@media (max-width: 781px) {
	.kg-infos { margin-top: -40px !important; }
}
@media (max-width: 640px) {
	.kg-leiste-in { justify-content: center; text-align: center; font-size: 14px; padding: 7px 16px; row-gap: 2px; }
	.kg-leiste-adresse { display: none; }
	.kg-header-in { min-height: 68px; }
	.kg-logo img { height: 36px; }
	.kg-header .wp-block-buttons { display: none; }
	.kg-hero .wp-block-cover__inner-container { padding-block: 150px 90px; }
	.kg-hero p { font-size: 18px; }
	.kg-seal { width: 96px; height: 96px; top: -130px; }
	.kg-seal .kg-seal-zahl { font-size: 26px !important; }
	.kg-tiles { grid-template-columns: 1fr; }
	.kg-formular { padding: 22px; }
}

/* ---------- Ergänzungen für Block-Markup ---------- */
.kg-header-rechts { gap: 28px; }
.kg-hero { align-items: flex-end; }
.kg-hero-inhalt { position: relative; }
.kg-hero-inhalt > * + * { margin-block-start: 1.2rem; }
.kg-hero-inhalt .kg-eyebrow + h1 { margin-block-start: .6rem; }
.kg-tile .kg-icon { display: grid; place-items: center; }
.kg-tile .kg-icon img { margin: 0; }
.kg-card h3 img { flex: none; margin: 0; }
.kg-news-liste .wp-block-post-template { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kg-news > * { margin-block: 0 !important; }
.kg-news > * + * { margin-block-start: 8px !important; }
.kg-bewertungen-bereich { padding-block: 70px !important; }
.kg-bewertungen { gap: 12px !important; }
.kg-footer { padding-block: 60px 30px !important; }
.kg-footer .kg-logo { margin-bottom: 18px !important; }
.kg-footer-spalten { gap: 40px !important; }
.kg-zeiten-liste li.kg-heute { color: #F2C66A; }
@media (max-width: 960px) {
	.kg-news-liste .wp-block-post-template { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 781px) {
	.kg-news-liste .wp-block-post-template { grid-template-columns: 1fr; }
	.kg-bewertungen { justify-content: flex-start !important; }
}
.kg-stats p { hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 640px) { .kg-stats p { font-size: 14px; } }

/* „Gültig bis“-Hinweis in Beiträgen */
.kg-gueltig { color: var(--wp--preset--color--accent-3); }
