/*
Theme Name: Gasthof Fersch
Description: Theme des Gasthofs Fersch in Greding. Ohne externe Ressourcen und ohne Cookies für Besucher.
Version: 0.1.0
Requires at least: 7.0
Requires PHP: 8.2
Text Domain: gasthof-fersch
License: GPL-2.0-or-later
*/

/* ---------- Grundlagen ---------- */

:root {
	--gf-tanne: var(--wp--preset--color--tanne);
	--gf-wald: var(--wp--preset--color--wald);
	--gf-senf: var(--wp--preset--color--senf);
	--gf-senftext: var(--wp--preset--color--senftext);
	--gf-holz: var(--wp--preset--color--holz);
	--gf-grau: var(--wp--preset--color--grau);
	--gf-linie: var(--wp--preset--color--linie);
	--gf-serif: var(--wp--preset--font-family--serif);
	--gf-radius: 6px;
	/* Tischdecken-Karo */
	--gf-karo:
		linear-gradient(90deg, rgba(47, 74, 54, 0.55) 50%, transparent 50%),
		linear-gradient(rgba(47, 74, 54, 0.55) 50%, transparent 50%);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

:where(a, button, summary, input):focus-visible {
	outline: 3px solid var(--gf-senf);
	outline-offset: 2px;
	border-radius: 3px;
}

img {
	height: auto;
}

.gf-karo {
	height: 14px;
	background-color: var(--wp--preset--color--leinen);
	background-image: var(--gf-karo);
	background-size: 14px 14px;
}

/* ---------- Kopf ---------- */

.gf-kopf {
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 1px 0 var(--gf-linie);
}

.gf-kopf::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -8px;
	height: 8px;
	background-color: var(--wp--preset--color--leinen);
	background-image: var(--gf-karo);
	background-size: 8px 8px;
}

.admin-bar .gf-kopf {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.gf-marke {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--gf-tanne);
}

.gf-emblem {
	width: 52px;
	height: 52px;
	flex: none;
}

.gf-marke-text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.gf-marke-name {
	font-family: var(--gf-serif);
	font-weight: 800;
	font-size: 1.6rem;
	letter-spacing: 0.01em;
}

.gf-marke-ort {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gf-senftext);
	margin-top: 0.3rem;
}

.gf-nav a {
	color: var(--gf-tanne);
	text-decoration: none;
	padding: 0.3rem 0;
	border-bottom: 2px solid transparent;
	transition: border-color 0.15s;
}

.gf-nav a:hover,
.gf-nav .current-menu-item > a,
.gf-nav [aria-current="page"] {
	border-bottom-color: var(--gf-senf);
}

.gf-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--leinen);
	padding: 1.5rem;
}

.gf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1rem;
	font-size: 1.4rem;
}

/* ---------- Bausteine ---------- */

.gf-eyebrow {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gf-senftext);
	margin-bottom: 0.25rem;
}

.gf-lead {
	font-size: var(--wp--preset--font-size--gross);
	line-height: 1.5;
	color: var(--gf-grau);
}

.gf-kasten {
	background: var(--wp--preset--color--papier);
	border: 1px solid var(--gf-linie);
	border-radius: var(--gf-radius);
	padding: 1.5rem 1.75rem;
}

.gf-kasten > :first-child {
	margin-top: 0;
}

.gf-kasten > :last-child {
	margin-bottom: 0;
}

.gf-karten {
	gap: 1.25rem;
}

.gf-karte {
	background: var(--wp--preset--color--papier);
	border: 1px solid var(--gf-linie);
	border-radius: var(--gf-radius);
	padding: 1.75rem 1.5rem 1.5rem;
	position: relative;
	overflow: hidden;
}

.gf-karte::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 6px;
	background-image: var(--gf-karo);
	background-size: 6px 6px;
}

.gf-karte > * {
	margin: 0;
}

.gf-karte > * + * {
	margin-top: 0.6rem;
}

.gf-karte h3 a {
	color: inherit;
	text-decoration: none;
}

.gf-karte h3 a::after {
	content: " →";
	color: var(--gf-senf);
}

.gf-extern a::after {
	content: " ↗";
	display: inline-block;
	margin-left: 0.15em;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
	color: var(--gf-tanne);
}

/* Platzhalter: fehlende Angaben, die vor dem Livegang ersetzt werden muessen */
.gf-platzhalter {
	background: #FBE7A1;
	color: #5A4300;
	padding: 0.05em 0.35em;
	border-radius: 3px;
	outline: 1px dashed #C9952B;
	font-style: normal;
}

.gf-hinweis {
	background: #FFF5D6;
	border: 2px dashed var(--gf-senf);
	border-radius: var(--gf-radius);
	padding: 1rem 1.25rem;
	font-size: var(--wp--preset--font-size--klein);
	color: #5A4300;
}

/* ---------- Startseite ---------- */

.gf-hero {
	position: relative;
	overflow: hidden;
}

.gf-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 18px;
	background-color: var(--wp--preset--color--leinen);
	background-image: var(--gf-karo);
	background-size: 18px 18px;
}

.gf-hero .gf-eyebrow {
	color: var(--gf-senf);
}

.gf-hero h1 {
	margin-top: 0.3rem;
}

.gf-hero .gf-lead {
	color: rgba(245, 239, 227, 0.88);
	max-width: 34rem;
}

.gf-hero .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
	background: var(--wp--preset--color--papier);
	color: var(--gf-wald);
}

.gf-hero .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--leinen);
}

.gf-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* Wirtshausschild rechts im Kopfbereich */
.gf-schild {
	aspect-ratio: 1;
	max-width: 340px;
	margin-inline: auto;
	border-radius: 50%;
	border: 3px solid var(--gf-senf);
	outline: 10px solid rgba(201, 149, 43, 0.18);
	outline-offset: 8px;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem;
}

.gf-schild p {
	margin: 0;
}

.gf-schild-gross {
	font-family: var(--gf-serif);
	font-weight: 800;
	font-size: clamp(2.2rem, 5vw, 3rem);
	line-height: 1;
	color: var(--wp--preset--color--leinen);
}

.gf-schild-klein {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gf-senf);
}

.gf-schild-linie {
	width: 60%;
	height: 2px;
	background: var(--gf-senf);
	margin: 0.9rem 0 !important;
	opacity: 0.6;
}

.gf-zeiten {
	border-collapse: collapse;
	width: 100%;
}

.gf-zeiten td {
	padding: 0.45rem 0;
	border-bottom: 1px dotted var(--gf-linie);
}

.gf-zeiten td:last-child {
	text-align: right;
	font-weight: 700;
}

/* ---------- Speisekarte ---------- */

.gf-karte-papier {
	background: var(--wp--preset--color--papier);
	border: 1px solid var(--gf-linie);
	border-radius: var(--gf-radius);
	padding: clamp(1.5rem, 5vw, 3rem);
	box-shadow: 0 18px 40px -30px rgba(30, 48, 36, 0.6);
}

.gf-karte-papier h2 {
	text-align: center;
	margin-top: var(--wp--preset--spacing--40);
	margin-bottom: 1rem;
}

.gf-karte-papier h2:first-child,
.gf-karte-papier .gf-hinweis + h2 {
	margin-top: 1.5rem;
}

.gf-karte-papier h2::after {
	content: "";
	display: block;
	width: 3rem;
	height: 2px;
	background: var(--gf-senf);
	margin: 0.6rem auto 0;
}

.gf-gericht {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-top: 1.1rem !important;
	margin-bottom: 0 !important;
	font-family: var(--gf-serif);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--gf-tanne);
}

.gf-gericht-name {
	flex: 1;
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
}

.gf-gericht-name::after {
	content: "";
	flex: 1;
	border-bottom: 2px dotted var(--gf-linie);
	transform: translateY(-0.25em);
	min-width: 1.5rem;
}

.gf-preis {
	white-space: nowrap;
	color: var(--gf-holz);
}

.gf-beschreibung {
	margin-top: 0.15rem !important;
	margin-bottom: 0 !important;
	color: var(--gf-grau);
	font-size: var(--wp--preset--font-size--klein);
	font-style: italic;
}

/* ---------- Seiten ---------- */

.gf-seitenkopf {
	position: relative;
}

.gf-seitenkopf::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 10px;
	background-image: var(--gf-karo);
	background-size: 10px 10px;
	opacity: 0.5;
}

.gf-seitenkopf .wp-block-post-title::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 3px;
	background: var(--gf-senf);
	margin-top: 1rem;
}

.gf-seitenkopf .wp-block-post-excerpt {
	margin-top: 1rem;
}

.gf-seitenkopf .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: var(--wp--preset--font-size--gross);
	color: var(--gf-grau);
}

.wp-block-post-content > h2.wp-block-heading {
	margin-top: var(--wp--preset--spacing--40);
}

/* ---------- Fuß ---------- */

.gf-fuss {
	position: relative;
}

.gf-fuss::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 12px;
	background-color: var(--wp--preset--color--leinen);
	background-image: var(--gf-karo);
	background-size: 12px 12px;
}

.gf-fuss a {
	color: var(--wp--preset--color--leinen);
	text-decoration-color: rgba(201, 149, 43, 0.7);
}

.gf-fuss a:hover {
	color: var(--gf-senf);
}

.gf-fuss p {
	color: rgba(245, 239, 227, 0.85);
	font-size: 1.0625rem;
}

.gf-fuss-titel {
	font-family: var(--gf-serif);
	font-size: 1.75rem !important;
	font-weight: 800;
	color: var(--wp--preset--color--leinen) !important;
	margin-bottom: 0.3rem;
}

.gf-fuss-kopf {
	font-size: 0.8rem !important;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gf-senf) !important;
	margin-bottom: 0.4rem;
}

/* ---------- Klein ---------- */

@media (max-width: 781px) {
	.gf-schild {
		max-width: 230px;
		padding: 1.25rem;
		outline-width: 6px;
		outline-offset: 5px;
	}
}

@media (max-width: 600px) {
	.gf-marke-name {
		font-size: 1.3rem;
	}

	.gf-emblem {
		width: 44px;
		height: 44px;
	}

	.gf-gericht {
		font-size: 1.125rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
