/*
Theme Name: GrilloMio
Theme URI: https://grillomio.de
Author: GrilloMio
Description: Individuelles WordPress-Theme für GrilloMio – BBQ- & Catering-Service. Dunkles Design mit rotem Akzent, Startseite, Kontaktformular und Galerie.
Version: 1.15.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grillomio
*/

/* ---------- Self-hosted heading webfont (no Google connection) ----------
   Fraunces — variable font, axes: opsz 9–144 + wght 500–700.
   Files: /fonts/fraunces-latin.woff2, /fonts/fraunces-latin-ext.woff2
   font-optical-sizing: auto (on h1–h4) drives the opsz axis automatically. */
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("fonts/fraunces-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("fonts/fraunces-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--gm-bg: #231F20;
	--gm-bg-soft: #2d2829;
	--gm-accent: #C73834;
	--gm-accent-dark: #a12b28;
	--gm-text: #ffffff;
	--gm-muted: rgba(255, 255, 255, 0.72);
	--gm-border: rgba(255, 255, 255, 0.14);
	--gm-max: 1180px;
	/* Body / running text — system sans-serif stack, no webfont / no external request */
	--gm-font: "Helvetica Neue", "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif;
	/* All headings (h1–h4) — serif. Change here once for the whole site. */
	--gm-font-head: "Fraunces", Georgia, "Times New Roman", Times, serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--gm-bg);
	color: var(--gm-text);
	font-family: var(--gm-font);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--gm-accent);
	text-decoration: none;
}

a:hover,
a:focus {
	color: #fff;
}

h1,
h2,
h3,
h4 {
	font-family: var(--gm-font-head);
	font-optical-sizing: auto;
	line-height: 1.15;
	margin: 0 0 0.5em;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

/* Slightly lighter weight for the smaller headings so h1/h2 stay dominant. */
h3,
h4 {
	font-weight: 600;
}

h1 {
	font-size: clamp(2rem, 5vw, 3.4rem);
}

h2 {
	font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

p {
	margin: 0 0 1.2em;
}

.gm-container {
	max-width: var(--gm-max);
	margin: 0 auto;
	padding: 0 24px;
}

.gm-skip-link {
	position: absolute;
	left: -9999px;
}

.gm-skip-link:focus {
	left: 16px;
	top: 16px;
	z-index: 999;
	background: var(--gm-accent);
	color: #fff;
	padding: 10px 16px;
}

/* ---------- Header ---------- */
.gm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--gm-bg);
	border-bottom: 1px solid var(--gm-border);
}
/* NB: no backdrop-filter / transform here — those would make .gm-header the
   containing block for the position:fixed mobile nav overlay. */

.gm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.gm-logo {
	display: flex;
	align-items: center;
	line-height: 0;
	color: #fff;
}

/* Header logo — height fixed, width auto keeps the aspect ratio intact.
   (Responsive heights are set in the consolidated media queries below.) */
.gm-logo__svg,
.gm-logo__img,
.gm-logo .custom-logo {
	height: 44px;
	width: auto;
	max-width: min(62vw, 300px);
	object-fit: contain;
	display: block;
}

.screen-reader-text {
	position: absolute !important;
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
}

.gm-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 28px;
}

.gm-nav a {
	color: #fff;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 1.5px;
	font-weight: 700;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}

.gm-nav a:hover,
.gm-nav .current-menu-item > a {
	border-bottom-color: var(--gm-accent);
}

.gm-nav-toggle {
	display: none;
	position: relative;
	width: 46px;
	height: 42px;
	background: none;
	border: 1px solid var(--gm-border);
	border-radius: 4px;
	cursor: pointer;
}

.gm-nav-toggle__bar,
.gm-nav-toggle__bar::before,
.gm-nav-toggle__bar::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 22px;
	height: 2px;
	background: #fff;
	transform: translateX(-50%);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.gm-nav-toggle__bar {
	top: 50%;
	margin-top: -1px;
}

.gm-nav-toggle__bar::before {
	top: -7px;
}

.gm-nav-toggle__bar::after {
	top: 7px;
}

.gm-nav-toggle[aria-expanded="true"] .gm-nav-toggle__bar {
	background: transparent;
}

.gm-nav-toggle[aria-expanded="true"] .gm-nav-toggle__bar::before {
	transform: translateX(-50%) translateY(7px) rotate(45deg);
}

.gm-nav-toggle[aria-expanded="true"] .gm-nav-toggle__bar::after {
	transform: translateX(-50%) translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.gm-btn {
	display: inline-block;
	background: var(--gm-accent);
	color: #fff;
	padding: 14px 30px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-size: 0.9rem;
	border: 2px solid var(--gm-accent);
	border-radius: 2px;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.gm-btn:hover,
.gm-btn:focus {
	background: transparent;
	color: #fff;
}

/* Outline button: transparent by default, fills with the accent colour on hover. */
.gm-btn--ghost {
	background: transparent;
	color: #fff;
}

.gm-btn--ghost:hover,
.gm-btn--ghost:focus {
	background: var(--gm-accent);
	color: #fff;
	border-color: var(--gm-accent);
}

/* Button with a trailing arrow that slides right on hover. */
.gm-btn--arrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.gm-btn__arrow {
	transition: transform 0.25s ease;
}

.gm-btn--arrow:hover .gm-btn__arrow,
.gm-btn--arrow:focus .gm-btn__arrow {
	transform: translateX(4px);
}

/* Large primary button (main CTA). */
.gm-btn--lg {
	padding: 20px 46px;
	font-size: 1.05rem;
}

.gm-btn--mail {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.gm-btn--mail:hover,
.gm-btn--mail:focus {
	background: var(--gm-accent);
	color: #fff;
	border-color: var(--gm-accent);
	transform: translateY(-2px);
	box-shadow: 0 0 0 4px rgba(199, 56, 52, 0.22), 0 18px 44px rgba(199, 56, 52, 0.45);
}

@media (prefers-reduced-motion: reduce) {
	.gm-btn__arrow {
		transition: none;
	}

	.gm-btn--mail:hover,
	.gm-btn--mail:focus {
		transform: none;
	}
}

/* ---------- Hero ---------- */
.gm-hero {
	position: relative;
	min-height: 86vh;
	display: flex;
	align-items: center;
	text-align: center;
	overflow: hidden;
	background: #000;
	isolation: isolate;
}

.gm-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.gm-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 42%;
	transform-origin: 50% 45%;
	/* Slow, endless Ken Burns: 100% -> 110% over 20s, then back, no hard jump. */
	animation: gm-kenburns 20s ease-in-out infinite alternate;
	will-change: transform;
}

@keyframes gm-kenburns {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.1);
	}
}

/* Stronger, more cinematic contrast: top-to-bottom darkening + centre vignette. */
.gm-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(120% 80% at 50% 45%, rgba(35, 31, 32, 0.25) 0%, rgba(35, 31, 32, 0.72) 70%, rgba(24, 20, 21, 0.9) 100%),
		linear-gradient(180deg, rgba(24, 20, 21, 0.72) 0%, rgba(35, 31, 32, 0.35) 40%, rgba(24, 20, 21, 0.88) 100%);
}

.gm-hero__overlay::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: var(--gm-accent);
}

.gm-hero__content {
	position: relative;
	z-index: 2;
	max-width: 820px;
	margin: 0 auto;
	padding: 96px 24px;
}

.gm-hero__kicker {
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 4px;
	font-weight: 700;
	font-size: 0.85rem;
	margin-bottom: 18px;
	display: inline-block;
	padding: 7px 16px;
	border: 1px solid var(--gm-accent);
	background: rgba(199, 56, 52, 0.16);
}

.gm-hero h1 {
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.gm-hero p.gm-hero__lead {
	font-size: 1.18rem;
	color: #f1eded;
	margin-bottom: 34px;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* ---------- Entrance animation ---------- */
.gm-reveal {
	opacity: 0;
	transform: translateY(24px);
}

.gm-hero.is-ready .gm-reveal {
	animation: gm-reveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gm-hero.is-ready .gm-reveal--d1 {
	animation-delay: 0.12s;
}

.gm-hero.is-ready .gm-reveal--d2 {
	animation-delay: 0.24s;
}

.gm-hero.is-ready .gm-reveal--d3 {
	animation-delay: 0.36s;
}

@keyframes gm-reveal {
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gm-hero__img {
		animation: none;
		transform: none;
	}

	.gm-reveal {
		opacity: 1;
		transform: none;
	}

	.gm-hero.is-ready .gm-reveal {
		animation: none;
	}
}

/* ---------- Sections ---------- */
.gm-section {
	padding: 84px 0;
}

.gm-section--soft {
	background: var(--gm-bg-soft);
}

.gm-section__head {
	max-width: 680px;
	margin: 0 auto 54px;
	text-align: center;
}

.gm-section__head p {
	color: var(--gm-muted);
	margin: 0;
}

.gm-section__head::after {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	background: var(--gm-accent);
	margin: 22px auto 0;
}

/* ---------- Feature grid ---------- */
.gm-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.gm-card {
	background: var(--gm-bg);
	border: 1px solid rgba(199, 56, 52, 0.3);
	padding: 40px;
	border-radius: 4px;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.5s ease;
}

.gm-section--soft .gm-card {
	background: var(--gm-bg-soft);
}

.gm-card__icon {
	display: block;
	color: var(--gm-accent);
	margin-bottom: 20px;
}

.gm-card__icon svg {
	display: block;
	width: 44px;
	height: 44px;
}

.gm-card h3 {
	color: var(--gm-accent);
	font-size: 1.15rem;
}

.gm-card p {
	color: var(--gm-muted);
	margin: 0;
}

/* Hover lift */
.gm-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 24px rgba(199, 56, 52, 0.25);
	border-color: rgba(199, 56, 52, 0.55);
}

/* Scroll-in reveal (staggered via JS transition-delay). Only active once
   JS has added .gm-reveal-ready to <html>, so no-JS visitors still see the cards. */
.gm-reveal-ready .gm-grid[data-reveal-group] .gm-card {
	opacity: 0;
	transform: translateY(20px);
}

.gm-reveal-ready .gm-grid[data-reveal-group] .gm-card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.gm-reveal-ready .gm-grid[data-reveal-group] .gm-card.is-visible:hover {
	transform: translateY(-8px);
}

@media (prefers-reduced-motion: reduce) {
	.gm-reveal-ready .gm-grid[data-reveal-group] .gm-card,
	.gm-reveal-ready .gm-grid[data-reveal-group] .gm-card.is-visible {
		opacity: 1;
		transform: none;
	}

	.gm-card {
		transition: none;
	}
}

/* ---------- About split ---------- */
.gm-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.gm-split p {
	color: var(--gm-muted);
}

/* ---------- "Über GrilloMio" section ---------- */
.gm-about {
	position: relative;
	overflow: hidden; /* clips the blob + contains the reveal slide */
}

/* Soft blurred accent blob for depth behind the image. */
.gm-about__blob {
	position: absolute;
	top: -130px;
	left: -150px;
	width: 560px;
	height: 560px;
	border-radius: 50%;
	background: var(--gm-accent);
	opacity: 0.08;
	filter: blur(80px);
	pointer-events: none;
	z-index: 0;
}

.gm-about > .gm-container {
	position: relative;
	z-index: 1;
}

/* Image staged with an offset accent block behind it + hover zoom. */
.gm-about__figure {
	position: relative;
	margin: 0;
}

/* Offset accent block peeking out behind the bottom-right of the photo. */
.gm-about__figure::before {
	content: "";
	position: absolute;
	top: 42px;
	left: 42px;
	right: -22px;
	bottom: -22px;
	background: var(--gm-accent);
	border-radius: 6px;
	z-index: 0;
}

.gm-about__frame {
	position: relative;
	z-index: 1;
	overflow: hidden;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.gm-about__frame img {
	display: block;
	width: 100%;
	transition: transform 0.5s ease;
}

.gm-about__figure:hover .gm-about__frame img {
	transform: scale(1.03);
}

/* Kicker + bigger title */
.gm-kicker {
	display: block;
	margin: 0 0 14px;
	color: var(--gm-accent);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.gm-about__title {
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	margin-bottom: 0.55em;
}

/* Stats as counters — no boxes, thin dividers between */
.gm-stats {
	list-style: none;
	margin: 14px 0 34px;
	padding: 0;
	display: flex;
}

.gm-stat {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 2px 22px;
}

.gm-stat:first-child {
	padding-left: 0;
}

.gm-stat + .gm-stat {
	border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.gm-stat__icon {
	line-height: 0;
	color: var(--gm-accent);
}

.gm-stat__icon svg {
	display: block;
	width: 26px;
	height: 26px;
}

.gm-stat__num {
	font-family: var(--gm-font-head);
	font-optical-sizing: auto;
	font-weight: 700;
	font-size: clamp(2.3rem, 3.2vw, 3rem);
	line-height: 1;
	color: var(--gm-accent);
}

.gm-stat__label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--gm-muted);
}

.gm-stat__text {
	font-family: var(--gm-font-head);
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: #fff;
}

/* Scroll-in reveal: image from the left, text column from the right. */
.gm-reveal-ready [data-reveal-split] .gm-split__media {
	opacity: 0;
	transform: translateX(-40px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.gm-reveal-ready [data-reveal-split] .gm-split__body {
	opacity: 0;
	transform: translateX(40px);
	transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.gm-reveal-ready [data-reveal-split].is-visible .gm-split__media,
.gm-reveal-ready [data-reveal-split].is-visible .gm-split__body {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.gm-reveal-ready [data-reveal-split] .gm-split__media,
	.gm-reveal-ready [data-reveal-split] .gm-split__body {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.gm-about__frame img {
		transition: none;
	}
}

/* ---------- Gallery ---------- */
.gm-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.gm-gallery__item {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	aspect-ratio: 1 / 1;
	margin: 0;
	background: var(--gm-bg-soft);
	border: 1px solid rgba(199, 56, 52, 0.2);
	transition: border-color 0.3s ease;
}

.gm-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gm-gallery__item:hover {
	border-color: var(--gm-accent);
}

.gm-gallery__item:hover img {
	transform: scale(1.05);
}

/* Dark overlay sliding up from the bottom on hover. */
.gm-gallery__item::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(to top, rgba(20, 17, 18, 0.88) 0%, rgba(20, 17, 18, 0.25) 55%, rgba(20, 17, 18, 0) 100%);
	opacity: 0;
	transform: translateY(35%);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.gm-gallery__item:hover::before {
	opacity: 1;
	transform: translateY(0);
}

/* Masonry-style preview: real column flow, images keep their natural height. */
.gm-gallery--masonry {
	display: block;
	column-count: 3;
	column-gap: 16px;
}

.gm-gallery--masonry .gm-gallery__item {
	aspect-ratio: auto;
	width: 100%;
	margin: 0 0 16px;
	break-inside: avoid;
}

.gm-gallery--masonry .gm-gallery__item img {
	height: auto;
}

/* Staggered scroll-in for the preview thumbnails. */
.gm-reveal-ready .gm-gallery--masonry[data-reveal-group] .gm-gallery__item {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.gm-reveal-ready .gm-gallery--masonry[data-reveal-group] .gm-gallery__item.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.gm-reveal-ready .gm-gallery--masonry[data-reveal-group] .gm-gallery__item {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- CTA section ---------- */
.gm-section.gm-cta {
	position: relative;
	overflow: hidden;
	padding-top: 128px;
	padding-bottom: 128px;
	background: linear-gradient(160deg, #322b2b 0%, var(--gm-bg) 46%, #1b1718 100%);
}

/* Warm ember glow rising from the bottom. */
.gm-cta::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -55%;
	width: min(1000px, 130%);
	aspect-ratio: 1;
	transform: translateX(-50%);
	background: radial-gradient(circle, rgba(199, 56, 52, 0.16) 0%, rgba(199, 56, 52, 0.05) 42%, transparent 68%);
	pointer-events: none;
}

/* ---- Rising ember particles (pure CSS: transform + opacity keyframes) ---- */
.gm-cta__embers {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.gm-cta__ember {
	position: absolute;
	bottom: -14px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
	color: #ff6b4a;
	box-shadow: 0 0 6px 1px currentColor;
	opacity: 0;
	will-change: transform, opacity;
	animation: gm-ember-a 8s linear infinite;
}

@keyframes gm-ember-a {
	0%   { transform: translate3d(0, 0, 0) scale(1);            opacity: 0; }
	6%   { opacity: 0.62; }
	25%  { transform: translate3d(16px, -26vh, 0) scale(0.85);  opacity: 0.55; }
	50%  { transform: translate3d(-12px, -52vh, 0) scale(0.6);  opacity: 0.4; }
	75%  { transform: translate3d(10px, -78vh, 0) scale(0.38);  opacity: 0.16; }
	100% { transform: translate3d(-6px, -104vh, 0) scale(0.12); opacity: 0; }
}

@keyframes gm-ember-b {
	0%   { transform: translate3d(0, 0, 0) scale(1);            opacity: 0; }
	9%   { opacity: 0.5; }
	30%  { transform: translate3d(-18px, -30vh, 0) scale(0.8);  opacity: 0.45; }
	60%  { transform: translate3d(14px, -60vh, 0) scale(0.5);   opacity: 0.28; }
	100% { transform: translate3d(-8px, -103vh, 0) scale(0.1);  opacity: 0; }
}

@keyframes gm-ember-c {
	0%   { transform: translate3d(0, 0, 0) scale(1);            opacity: 0; }
	14%  { opacity: 0.68; }
	40%  { transform: translate3d(9px, -40vh, 0) scale(0.7);    opacity: 0.48; }
	70%  { transform: translate3d(-7px, -70vh, 0) scale(0.42);  opacity: 0.2; }
	100% { transform: translate3d(4px, -101vh, 0) scale(0.14);  opacity: 0; }
}

/* Per-particle spread, colour, size, speed and (negative) start offset. */
.gm-cta__ember:nth-child(1)  { left: 4%;  animation-name: gm-ember-b; animation-duration: 9s;    animation-delay: -0.5s; }
.gm-cta__ember:nth-child(2)  { left: 11%; width: 3px; height: 3px; color: #c73834; animation-duration: 7s;    animation-delay: -3.4s; }
.gm-cta__ember:nth-child(3)  { left: 17%; width: 6px; height: 6px; color: #ffa500; animation-name: gm-ember-c; animation-duration: 10.5s; animation-delay: -6.1s; }
.gm-cta__ember:nth-child(4)  { left: 23%; animation-name: gm-ember-a; animation-duration: 8.5s;  animation-delay: -1.7s; }
.gm-cta__ember:nth-child(5)  { left: 29%; width: 4px; height: 4px; color: #c73834; animation-name: gm-ember-b; animation-duration: 6s;    animation-delay: -4.9s; }
.gm-cta__ember:nth-child(6)  { left: 35%; width: 3px; height: 3px; animation-name: gm-ember-c; animation-duration: 11s;   animation-delay: -8s; }
.gm-cta__ember:nth-child(7)  { left: 41%; width: 6px; height: 6px; color: #ffa500; animation-name: gm-ember-a; animation-duration: 9.5s;  animation-delay: -2.3s; }
.gm-cta__ember:nth-child(8)  { left: 47%; animation-name: gm-ember-b; animation-duration: 7.5s;  animation-delay: -5.6s; }
.gm-cta__ember:nth-child(9)  { left: 52%; width: 2px; height: 2px; color: #c73834; animation-name: gm-ember-c; animation-duration: 5.5s;  animation-delay: -0.9s; }
.gm-cta__ember:nth-child(10) { left: 58%; width: 5px; height: 5px; animation-name: gm-ember-a; animation-duration: 10s;   animation-delay: -7.2s; }
.gm-cta__ember:nth-child(11) { left: 64%; width: 4px; height: 4px; color: #ffa500; animation-name: gm-ember-b; animation-duration: 8s;    animation-delay: -3s; }
.gm-cta__ember:nth-child(12) { left: 70%; width: 3px; height: 3px; color: #c73834; animation-name: gm-ember-c; animation-duration: 9s;    animation-delay: -6.7s; }
.gm-cta__ember:nth-child(13) { left: 76%; width: 6px; height: 6px; animation-name: gm-ember-a; animation-duration: 11s;   animation-delay: -1.2s; }
.gm-cta__ember:nth-child(14) { left: 82%; animation-name: gm-ember-b; animation-duration: 6.5s;  animation-delay: -4.4s; }
.gm-cta__ember:nth-child(15) { left: 88%; width: 4px; height: 4px; color: #ffa500; animation-name: gm-ember-c; animation-duration: 8.5s;  animation-delay: -9.1s; }
.gm-cta__ember:nth-child(16) { left: 93%; width: 3px; height: 3px; color: #c73834; animation-name: gm-ember-a; animation-duration: 7s;    animation-delay: -2.8s; }
.gm-cta__ember:nth-child(17) { left: 8%;  width: 2px; height: 2px; animation-name: gm-ember-c; animation-duration: 6s;    animation-delay: -5.9s; }
.gm-cta__ember:nth-child(18) { left: 97%; width: 5px; height: 5px; color: #ffa500; animation-name: gm-ember-b; animation-duration: 10s;   animation-delay: -10s; }

@media (prefers-reduced-motion: reduce) {
	.gm-cta__embers {
		display: none;
	}
}

.gm-cta__inner {
	position: relative;
	z-index: 1;
	text-align: center;
}

.gm-cta h2 {
	font-size: clamp(2rem, 3.8vw, 3rem);
	margin-bottom: 0.5em;
}

.gm-cta__text {
	max-width: 560px;
	margin: 0 auto 34px;
	color: var(--gm-muted);
}

.gm-cta__phone {
	margin: 22px 0 0;
	font-size: 0.92rem;
	color: var(--gm-muted);
}

.gm-cta__phone a {
	color: #fff;
	font-weight: 600;
	white-space: nowrap;
}

.gm-cta__phone a:hover,
.gm-cta__phone a:focus {
	color: var(--gm-accent);
}

/* ---------- Contact ---------- */
.gm-contact {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 56px;
	align-items: start;
}

.gm-contact__info p {
	color: var(--gm-muted);
}

.gm-contact__info strong {
	color: #fff;
	display: block;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 0.8rem;
	margin-top: 22px;
}

/* ---------- Contact form (Contact Form 7, plugin CSS disabled) ---------- */
.gm-contact__form .wpcf7 {
	margin: 0;
}

/* CF7 keeps hidden inputs in a <fieldset>/<div> — never show it. */
.gm-contact__form .hidden-fields-container,
.gm-contact__form form > div[style*="display: none"] {
	display: none !important;
}

.gm-form,
.gm-form-cf7 {
	display: grid;
	gap: 20px;
}

.gm-form-cf7 .gm-field {
	margin: 0;
}

/* wpautop drops stray <br> inside the field paragraphs — hide them. */
.gm-form-cf7 .gm-field br {
	display: none;
}

.gm-form-cf7 .gm-field > label {
	display: block;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 6px;
	color: var(--gm-muted);
}

.gm-form-cf7 .wpcf7-form-control-wrap {
	display: block;
}

.gm-form-cf7 input[type="text"],
.gm-form-cf7 input[type="email"],
.gm-form-cf7 input[type="tel"],
.gm-form-cf7 input[type="date"],
.gm-form-cf7 input[type="number"],
.gm-form-cf7 textarea {
	width: 100%;
	background: var(--gm-bg-soft);
	border: 1px solid var(--gm-border);
	color: #fff;
	padding: 13px 15px;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
	border-radius: 2px;
	-webkit-appearance: none;
	appearance: none;
}

.gm-form-cf7 input[type="date"] {
	color-scheme: dark;
}

.gm-form-cf7 input[type="number"] {
	-moz-appearance: textfield;
}

.gm-form-cf7 input[type="number"]::-webkit-inner-spin-button,
.gm-form-cf7 input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.gm-form-cf7 input::placeholder,
.gm-form-cf7 textarea::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.gm-form-cf7 input:focus,
.gm-form-cf7 textarea:focus {
	outline: 2px solid var(--gm-accent);
	outline-offset: 0;
	border-color: var(--gm-accent);
}

.gm-form-cf7 textarea {
	display: block;
	min-height: 150px;
	resize: vertical;
}

/* DSGVO acceptance checkbox */
.gm-field--check .wpcf7-list-item {
	display: block;
	margin: 0;
}

.gm-field--check .wpcf7-list-item-label,
.gm-field--check label {
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.9rem;
	color: var(--gm-muted);
	margin: 0;
}

.gm-field--check label {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	cursor: pointer;
}

.gm-field--check input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	border: 1px solid var(--gm-border);
	border-radius: 3px;
	background: var(--gm-bg-soft);
	cursor: pointer;
}

.gm-field--check input[type="checkbox"]:checked {
	background: var(--gm-accent);
	border-color: var(--gm-accent);
}

.gm-field--check input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.gm-field--check input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--gm-accent);
	outline-offset: 2px;
}

.gm-field--check a {
	color: #fff;
	text-decoration: underline;
}

/* Submit */
.gm-form-cf7 .gm-field--submit {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 4px;
}

.gm-form-cf7 .wpcf7-submit {
	display: inline-block;
	background: var(--gm-accent);
	color: #fff;
	padding: 15px 34px;
	font-family: inherit;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-size: 0.9rem;
	border: 2px solid var(--gm-accent);
	border-radius: 2px;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, box-shadow 0.3s ease;
}

.gm-form-cf7 .wpcf7-submit:hover,
.gm-form-cf7 .wpcf7-submit:focus {
	background: transparent;
	color: #fff;
	box-shadow: 0 10px 30px rgba(199, 56, 52, 0.35);
}

.gm-form-cf7 .wpcf7-submit:disabled {
	opacity: 0.55;
	cursor: default;
}

.gm-form-cf7 .wpcf7-spinner {
	display: none;
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, 0.25);
	border-top-color: var(--gm-accent);
	border-radius: 50%;
}

.wpcf7-form.submitting .gm-form-cf7 .wpcf7-spinner {
	display: inline-block;
	animation: gm-spin 0.7s linear infinite;
}

@keyframes gm-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Inline field validation */
.gm-form-cf7 .wpcf7-not-valid {
	border-color: var(--gm-accent) !important;
}

.gm-form-cf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	color: var(--gm-accent);
	font-size: 0.82rem;
	font-weight: 600;
}

/* CF7's a11y mirror of the response — keep it screen-reader only. */
.gm-contact__form .screen-reader-response {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Response message – matches .gm-notice */
.gm-contact__form .wpcf7-response-output {
	margin: 0;
	border: 0;
	padding: 0;
}

.gm-contact__form .wpcf7-response-output:empty {
	display: none;
}

.wpcf7-form.sent .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.payment-required .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 14px 18px;
	border: 1px solid var(--gm-border);
	border-radius: 3px;
	background: var(--gm-bg-soft);
	color: #fff;
	font-weight: 600;
	line-height: 1.5;
}

.wpcf7-form.sent .wpcf7-response-output {
	background: rgba(46, 125, 50, 0.18);
	border-color: #2e7d32;
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.payment-required .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
	background: rgba(199, 56, 52, 0.18);
	border-color: var(--gm-accent);
}

.gm-notice {
	padding: 14px 18px;
	border-radius: 3px;
	margin-bottom: 24px;
	font-weight: 600;
}

.gm-notice--ok {
	background: rgba(46, 125, 50, 0.2);
	border: 1px solid #2e7d32;
}

.gm-notice--err {
	background: rgba(199, 56, 52, 0.2);
	border: 1px solid var(--gm-accent);
}

/* ---------- Page content ---------- */
.gm-page {
	padding: 64px 0 84px;
}

.gm-page__header {
	text-align: center;
	margin-bottom: 48px;
}

.gm-entry {
	max-width: 780px;
	margin: 0 auto;
}

.gm-entry a {
	text-decoration: underline;
}

/* ---------- Footer ---------- */
.gm-footer {
	background: #1c1819;
	border-top: 1px solid var(--gm-border);
	padding: 44px 0;
	text-align: center;
	color: var(--gm-muted);
	font-size: 0.9rem;
}

.gm-footer a {
	color: #fff;
}

.gm-footer__legal {
	margin: 6px 0 14px;
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	font-size: 0.85rem;
}

.gm-footer__legal a {
	color: var(--gm-muted);
	transition: color 0.2s ease;
}

.gm-footer__legal a:hover,
.gm-footer__legal a:focus {
	color: var(--gm-accent);
}

.gm-footer__legal span {
	color: rgba(255, 255, 255, 0.3);
}

.gm-footer__logo {
	display: inline-block;
	line-height: 0;
	margin-bottom: 18px;
}

.gm-footer__logo-img {
	height: 72px;
	width: auto;
	max-width: min(80vw, 380px);
	object-fit: contain;
	display: block;
}

/* "Cookie-Einstellungen" trigger in the footer (Complianz binds the click). */
.gm-footer__cookie {
	margin-top: 4px;
}

.gm-footer__cookie .cmplz-manage-consent {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: 0.85rem;
	color: var(--gm-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	transition: color 0.2s ease;
}

.gm-footer__cookie .cmplz-manage-consent:hover,
.gm-footer__cookie .cmplz-manage-consent:focus {
	color: var(--gm-accent);
}

/* ---------- Cookie-consent banner (Complianz) – GrilloMio design ----------
   Colours come from Complianz's own generated CSS (set in the plugin to
   #231F20 / #C73834 / white). Here we only adjust what the plugin can't:
   the serif heading, a true full-width bottom bar and a few dark-theme fixes. */
.cmplz-cookiebanner .cmplz-header .cmplz-title {
	display: block !important; /* plugin hides it < 425px – we keep the serif heading */
	font-family: var(--gm-font-head);
	font-optical-sizing: auto;
	font-size: 1.1rem !important;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	justify-self: center;
}

/* category accordion boxes: Complianz defaults to light grey → make dark */
.cmplz-cookiebanner .cmplz-categories .cmplz-category {
	background-color: var(--gm-bg-soft) !important;
	border: 1px solid rgba(199, 56, 52, 0.25);
}

/* The plugin's separate "documents" link row is unreliable without a Complianz-
   generated policy (leaves a {title} placeholder). We link the Datenschutz-
   erklärung directly in the banner message instead, so hide this row. */
.cmplz-cookiebanner .cmplz-links.cmplz-documents,
.cmplz-manage-consent-container .cmplz-links.cmplz-documents {
	display: none !important;
}

/* full-width bar at the bottom, no side gaps / rounded corners */
@media (min-width: 1024px) {
	#cmplz-cookiebanner-container .cmplz-cookiebanner.cmplz-bottom {
		margin: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		border-left: 0 !important;
		border-right: 0 !important;
	}
}

/* the floating "manage consent" tab that Complianz adds bottom-right – we use
   the footer link instead, so keep it out of the way */
#cmplz-manage-consent .cmplz-manage-consent {
	display: none !important;
}

/* ============================================================
   RESPONSIVE
   Breakpoints:  1024px (tablet)  ·  900px (hamburger nav)
                 768px (mobile)   ·  480px (small phone)
   ============================================================ */

/* ---- Tablet and below (≤ 1024px) ---- */
@media (max-width: 1024px) {
	.gm-container {
		padding: 0 22px;
	}

	.gm-section {
		padding: 68px 0;
	}

	.gm-hero__content {
		padding: 80px 22px;
	}

	.gm-contact {
		gap: 40px;
	}

	.gm-split {
		gap: 34px;
	}

	.gm-card {
		padding: 32px;
	}
}

/* ---- Hamburger navigation + single-column blocks (≤ 900px) ---- */
@media (max-width: 900px) {
	/* slimmer header */
	.gm-header__inner {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.gm-logo__svg,
	.gm-logo__img,
	.gm-logo .custom-logo {
		height: 34px;
	}

	/* hamburger button sits above the overlay and morphs to an X */
	.gm-nav-toggle {
		display: block;
		z-index: 210;
	}

	.gm-nav-toggle[aria-expanded="true"] {
		border-color: transparent;
	}

	/* full-screen menu overlay */
	.gm-nav {
		position: fixed;
		inset: 0;
		z-index: 200;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 80px 20px;
		overflow-y: auto;
		background: var(--gm-bg);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-14px);
		transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
	}

	.gm-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		transition: opacity 0.3s ease, transform 0.3s ease;
	}

	.gm-nav ul {
		flex-direction: column;
		gap: 4px;
		text-align: center;
	}

	.gm-nav a {
		display: block;
		font-family: var(--gm-font-head);
		font-size: 1.7rem;
		font-weight: 700;
		letter-spacing: 2px;
		padding: 14px 26px;
		border-bottom: 0;
	}

	.gm-nav a:hover,
	.gm-nav a:focus,
	.gm-nav .current-menu-item > a {
		color: var(--gm-accent);
		border-bottom: 0;
	}

	/* lock the page behind the open overlay */
	html.gm-nav-open,
	html.gm-nav-open body {
		overflow: hidden;
	}

	/* stack the two-/three-column blocks */
	.gm-grid,
	.gm-split,
	.gm-contact {
		grid-template-columns: 1fr;
	}

	.gm-split {
		gap: 30px;
	}

	.gm-contact {
		gap: 34px;
	}

	.gm-gallery {
		grid-template-columns: repeat(2, 1fr);
	}

	.gm-gallery--masonry {
		column-count: 2;
	}

	/* stats: stack with a top divider instead of a left one */
	.gm-stats {
		flex-direction: column;
	}

	.gm-stat {
		flex-direction: row;
		align-items: baseline;
		flex-wrap: wrap;
		gap: 6px 12px;
		padding: 16px 0;
	}

	.gm-stat__icon {
		align-self: center;
	}

	.gm-stat:first-child {
		padding-top: 0;
	}

	.gm-stat + .gm-stat {
		border-left: none;
		border-top: 1px solid rgba(255, 255, 255, 0.16);
	}

	/* "Über GrilloMio" image staging – smaller offsets so nothing overflows */
	.gm-about__figure::before {
		top: 20px;
		left: 20px;
		right: -14px;
		bottom: -14px;
	}

	.gm-about__blob {
		width: 340px;
		height: 340px;
		top: -70px;
		left: -100px;
	}
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {
	.gm-container {
		padding: 0 20px;
	}

	.gm-section {
		padding: 54px 0;
	}

	.gm-section__head {
		margin-bottom: 38px;
	}

	.gm-section.gm-cta {
		padding-top: 70px;
		padding-bottom: 70px;
	}

	.gm-page {
		padding: 42px 0 58px;
	}

	.gm-page__header {
		margin-bottom: 32px;
	}

	/* hero */
	.gm-hero {
		min-height: 76vh;
	}

	.gm-hero__content {
		padding: 60px 20px;
	}

	.gm-hero h1 {
		font-size: 1.95rem;
	}

	.gm-hero p.gm-hero__lead {
		font-size: 1rem;
		margin-bottom: 26px;
	}

	.gm-hero__kicker {
		font-size: 0.72rem;
		letter-spacing: 3px;
		margin-bottom: 14px;
	}

	.gm-about__title {
		font-size: 1.95rem;
	}

	.gm-cta h2 {
		font-size: 1.85rem;
	}

	/* generous tap targets; keep buttons centred in their block */
	.gm-btn {
		padding: 15px 26px;
	}

	.gm-btn--mail {
		font-size: 0.95rem;
		padding-left: 18px;
		padding-right: 18px;
		word-break: break-word;
	}

	/* the form submit spans the full width even on tablet */
	.gm-form-cf7 .gm-field--submit {
		display: block;
	}

	.gm-form-cf7 .wpcf7-submit {
		display: block;
		width: 100%;
	}

	/* form: roomier touch spacing */
	.gm-form,
	.gm-form-cf7 {
		gap: 22px;
	}

	.gm-form-cf7 input[type="text"],
	.gm-form-cf7 input[type="email"],
	.gm-form-cf7 input[type="tel"],
	.gm-form-cf7 input[type="date"],
	.gm-form-cf7 input[type="number"],
	.gm-form-cf7 textarea {
		padding: 14px 15px;
	}

	.gm-card {
		padding: 30px 24px;
	}

	.gm-footer {
		padding: 36px 0;
	}
}

/* ---- Small phones (≤ 480px) ---- */
@media (max-width: 480px) {
	.gm-container {
		padding: 0 16px;
	}

	.gm-section {
		padding: 44px 0;
	}

	.gm-hero__content {
		padding: 48px 16px;
	}

	.gm-hero h1 {
		font-size: 1.62rem;
	}

	.gm-about__title {
		font-size: 1.62rem;
	}

	.gm-cta h2 {
		font-size: 1.55rem;
	}

	.gm-logo__svg,
	.gm-logo__img,
	.gm-logo .custom-logo {
		height: 30px;
	}

	.gm-nav a {
		font-size: 1.45rem;
	}

	/* full-width buttons on phones */
	.gm-btn {
		display: block;
		width: 100%;
		text-align: center;
	}

	.gm-btn--arrow,
	.gm-btn--mail {
		display: flex;
		justify-content: center;
	}

	/* galleries drop to a single column */
	.gm-gallery {
		grid-template-columns: 1fr;
	}

	.gm-gallery--masonry {
		column-count: 1;
	}

	.gm-stat__num {
		font-size: 2rem;
	}

	.gm-card {
		padding: 26px 20px;
	}

	.gm-btn--mail {
		font-size: 0.8rem;
		letter-spacing: 0.5px;
		gap: 8px;
		padding: 15px 12px;
	}

	.gm-footer__logo-img {
		height: 52px;
	}
}
