/*
 * Global site styles, ported verbatim from the former SvelteKit `src/app.css`
 * (the `@fontsource/fira-mono` import was dropped — it required a bundler and
 * only affected `pre`, which never appears in the content), followed by the
 * component-scoped styles that used to live inside the Svelte components.
 * Component styles are re-scoped to their elements so they don't leak globally.
 */

:root {
	--font-body: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
		Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	--font-mono: 'Fira Mono', monospace;
	--color-bg-0: rgb(202, 216, 228);
	--color-bg-1: hsl(209, 36%, 86%);
	--color-bg-2: hsl(224, 44%, 95%);
	--color-theme-1: #ff3e00;
	--color-theme-2: #4075a6;
	--color-text: rgba(0, 0, 0, 0.7);
	--column-width: 42rem;
	--column-margin-top: 4rem;
	font-family: var(--font-body);
	color: var(--color-text);
}

body {
	min-height: 100vh;
	margin: 0;
	background-attachment: fixed;
	background-color: var(--color-bg-1);
	background-size: 100vw 100vh;
	background-image: radial-gradient(
			50% 50% at 50% 50%,
			rgba(255, 255, 255, 0.75) 0%,
			rgba(255, 255, 255, 0) 100%
		),
		linear-gradient(180deg, var(--color-bg-0) 0%, var(--color-bg-1) 15%, var(--color-bg-2) 50%);
}

h1,
h2,
p {
	font-weight: 300;
}

p {
	line-height: 1.5;
}

a {
	color: var(--color-theme-1);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.leaflet-control-zoom a:hover {
	text-decoration: none!important;
}

h1 {
	font-size: 2rem;
	text-align: center;
}

h2 {
	font-size: 1rem;
}

pre {
	font-size: 16px;
	font-family: var(--font-mono);
	background-color: rgba(255, 255, 255, 0.45);
	border-radius: 3px;
	box-shadow: 2px 2px 6px rgb(255 255 255 / 25%);
	padding: 0.5em;
	overflow-x: auto;
	color: var(--color-text);
}

.text-column {
	display: flex;
	max-width: 48rem;
	flex: 0.6;
	flex-direction: column;
	justify-content: center;
	margin: 0 auto;
}

input,
button {
	font-size: inherit;
	font-family: inherit;
}

button:focus:not(:focus-visible) {
	outline: none;
}

@media (min-width: 720px) {
	h1 {
		font-size: 2.4rem;
	}
}

.visually-hidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: auto;
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}
.leaflet-control-attribution.leaflet-control {
	display: none;
}
#grve-content {
	padding-top: 30px;
}
svg {
	color : #AE2B2E;
}

/* ------------------------------------------------------------------ *
 * Mobile menu overlay (ported from Header.svelte <style>)
 * ------------------------------------------------------------------ */
.menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: rgba(255, 255, 255, 0.95);
	z-index: 99999;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow-y: auto;
}

/* Hidden state (replaces Svelte's {#if open}); toggled by menu.js */
.menu-overlay[hidden] {
	display: none;
}

.close-button {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	color: #333;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.3s ease;
	z-index: 100000;
}

.close-button:hover {
	background-color: rgba(0, 0, 0, 0.05);
	color: #e74c3c;
}

nav#grve-hidden-menu {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	padding: 2rem;
}

.grve-menu-wrapper {
	display: flex;
	justify-content: center;
	width: 100%;
}

#grve-menu-overlay .grve-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
	text-align: center;
}

#grve-menu-overlay .grve-menu li {
	margin: 1rem 0;
}

#grve-menu-overlay .grve-menu li a {
	color: #333;
	font-size: 1.25rem;
	font-weight: 500;
	text-decoration: none;
	display: inline-block;
	padding: 0.5rem 1rem;
	transition: all 0.3s ease;
}

#grve-menu-overlay .grve-menu li a:hover {
	color: #e74c3c;
}

#grve-menu-overlay .grve-menu li.current-menu-item a {
	color: #e74c3c;
	font-weight: 700;
}

#menu-websitenavi-1 li a span {
	font-size: 20px;
	font-weight: 500;
	text-decoration: none;
	display: inline-block;
	padding: 0.5rem 1rem;
	transition: all 0.3s ease;
}

/* ------------------------------------------------------------------ *
 * Animated hamburger button (ported from AnimatedHamburger.svelte)
 * Scoped to #grve-hamburger so it does not affect other buttons.
 * ------------------------------------------------------------------ */
#grve-hamburger {
	cursor: pointer;
	display: flex;
	align-items: center;
	overflow: hidden;
	border: none;
	background: transparent;
	padding-top: 20px;
}

#grve-hamburger svg {
	transition: transform 400ms;
}

#grve-hamburger .top {
	stroke-dasharray: 40 160;
	transition: stroke-dashoffset 400ms;
}

#grve-hamburger .middle {
	transform-origin: 50%;
	transition: transform 400ms;
}

#grve-hamburger .bottom {
	stroke-dasharray: 40 85;
	transition: stroke-dashoffset 400ms;
}

#grve-hamburger .grve-hamburger-icon.open {
	transform: rotate(45deg);
}

#grve-hamburger .grve-hamburger-icon.open .top,
#grve-hamburger .grve-hamburger-icon.open .bottom {
	stroke-dashoffset: -64px;
}

#grve-hamburger .grve-hamburger-icon.open .middle {
	transform: rotate(90deg);
}

/* ------------------------------------------------------------------ *
 * Reservation form (ported from tischreservierung/+page.svelte <style>)
 * The generic `button {}` rule is scoped to #bookingForm so it only
 * styles the form's submit button (as it did when scoped in Svelte).
 * ------------------------------------------------------------------ */
#bookingForm #address {
	display: none;
}
.submitbutton {
	width: 100%;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
}
#bookingForm button {
	display: block;
	width: 50%;
	margin: 0 auto;
	padding: 10px;
	background-color: #a82b2a;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}
#bookingForm button:hover {
	background-color: green;
}
#bookingForm button:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}
.selector-container {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	margin-bottom: 15px;
}
.selector-wrapper {
	display: flex;
	align-items: center;
	margin-bottom: 0px !important;
}
.selector-wrapper label {
	margin-right: 10px;
}
#location-select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	margin-bottom: 15px;
}

/* Minimal utility classes used by the form's validation messages.
   (The Svelte markup referenced Tailwind-style names, but the project never
   bundled Tailwind; these few rules make the error text render legibly.) */
.text-red-600 {
	color: #dc2626;
}
.text-sm {
	font-size: 0.875rem;
}
.text-right {
	text-align: right;
}
.mb-2 {
	margin-bottom: 0.5rem;
}
.ml-2 {
	margin-left: 0.5rem;
}
.flex-grow {
	flex-grow: 1;
}

/* Spinner shown while the reservation is being submitted
   (replaces the former <Stretch> svelte-loading-spinners component). */
.rtb-spinner {
	display: inline-block;
	width: 40px;
	height: 40px;
	border: 4px solid rgba(0, 128, 0, 0.25);
	border-top-color: green;
	border-radius: 50%;
	animation: rtb-spin 0.9s linear infinite;
}
@keyframes rtb-spin {
	to {
		transform: rotate(360deg);
	}
}
