/* da Gino Tischreservierung – übernimmt Schriften/Farben der Website über CSS-Variablen */
.gr-panel, .gr-bar-wrap {
	--gr-green: var(--dg-green, #4f6228);
	--gr-green-d: var(--dg-green-dark, #3a481c);
	--gr-cream: var(--dg-cream, #f6efe2);
	--gr-paper: var(--dg-paper, #fffaf2);
	--gr-ink: var(--dg-ink, #2b2118);
	--gr-muted: var(--dg-muted, #75685a);
	--gr-line: var(--dg-line, #e6dac5);
	--gr-red: var(--dg-red, #b23a2a);
	--gr-serif: var(--dg-serif, Georgia, 'Times New Roman', serif);
	--gr-sans: var(--dg-sans, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
	--gr-script: var(--dg-script, 'Brush Script MT', cursive);
	font-family: var(--gr-sans);
	color: var(--gr-ink);
	box-sizing: border-box;
}
.gr-panel *, .gr-panel *::before, .gr-panel *::after, .gr-bar-wrap * { box-sizing: border-box; }

/* ---------- Panel ---------- */
.gr-panel { container: grpanel / inline-size; max-width: 1080px; margin: 0 auto; }
.gr-bar-wrap { container: grbar / inline-size; }
.gr-shell {
	display: grid;
	grid-template-columns: minmax(250px, 330px) 1fr;
	background: var(--gr-paper);
	border-radius: 22px;
	box-shadow: 0 30px 80px -30px rgba(43, 33, 24, .35), 0 0 0 1px var(--gr-line);
	overflow: hidden;
	text-align: left;
}
.gr-aside {
	position: relative;
	background: var(--gr-green);
	background-image: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .10), transparent 60%), radial-gradient(90% 60% at 0% 100%, rgba(0, 0, 0, .18), transparent 70%);
	color: #fbf6ec;
	padding: 40px 34px;
	display: flex;
	flex-direction: column;
}
.gr-kicker { font-family: var(--gr-script); font-size: 30px; line-height: 1; margin: 0 0 6px; color: #e9dfc7; }
.gr-title { font-family: var(--gr-serif); font-weight: 400; font-size: 34px; line-height: 1.1; margin: 0 0 12px; color: #fff; }
.gr-sub { margin: 0 0 30px; color: rgba(251, 246, 236, .82); font-size: 15px; line-height: 1.55; }
.gr-summary { margin: 0; display: grid; gap: 2px; }
.gr-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(251, 246, 236, .18); }
.gr-summary dt { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(251, 246, 236, .7); align-self: center; }
.gr-summary dd { margin: 0; font-family: var(--gr-serif); font-size: 19px; color: #fff; text-align: right; }
.gr-aside-foot { margin-top: auto; padding-top: 34px; }
.gr-aside-foot p { margin: 0 0 4px; font-size: 13px; color: rgba(251, 246, 236, .72); }
.gr-phone { color: #fff !important; text-decoration: none !important; font-family: var(--gr-serif); font-size: 22px; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.gr-phone:hover { border-bottom-color: #fff; }

.gr-main { padding: 34px 40px 40px; min-width: 0; }
.gr-steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: s; }
.gr-steps li { margin: 0; padding: 0; }
.gr-steps button {
	all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
	display: flex; align-items: center; gap: 9px;
	padding: 10px 0 12px; border-bottom: 2px solid var(--gr-line);
	font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gr-muted);
	transition: color .2s, border-color .2s;
}
.gr-steps button span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 12px; letter-spacing: 0; flex: none; }
.gr-steps button:disabled { cursor: default; opacity: .45; }
.gr-steps button.is-done { color: var(--gr-green); border-bottom-color: var(--gr-green); }
.gr-steps button.is-done span { background: var(--gr-green); color: #fff; border-color: var(--gr-green); }
.gr-steps button.is-current { color: var(--gr-ink); border-bottom-color: var(--gr-ink); }
.gr-steps button:focus-visible { outline: 2px solid var(--gr-green); outline-offset: 3px; border-radius: 4px; }

.gr-stage { min-height: 380px; }
.gr-step { animation: gr-in .35s ease both; }
@keyframes gr-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gr-h { font-family: var(--gr-serif); font-weight: 400; font-size: 30px; line-height: 1.15; margin: 0 0 8px; color: var(--gr-ink); outline: none; }
.gr-lead { margin: 0 0 22px; color: var(--gr-muted); font-size: 15px; }
.gr-hint { margin: 22px 0 0; font-size: 14px; color: var(--gr-muted); }
.gr-hint a, .gr-check a { color: var(--gr-green); font-weight: 600; }
.gr-note { background: #fbf0d6; color: #6d4e00; border-radius: 10px; padding: 11px 14px; font-size: 14px; margin: 6px 0 18px; }
.gr-error { background: #f8e1dc; color: #8a2416; border-radius: 10px; padding: 11px 14px; font-size: 14px; margin: 14px 0 0; }
.gr-empty { color: var(--gr-muted); font-size: 14px; margin: 16px 0 0; }

/* Personen */
.gr-guests { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.gr-guest {
	all: unset; box-sizing: border-box; cursor: pointer; text-align: center;
	background: #fff; border: 1.5px solid var(--gr-line); border-radius: 14px; padding: 16px 6px 13px;
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.gr-guest strong { display: block; font-family: var(--gr-serif); font-weight: 400; font-size: 30px; line-height: 1; color: var(--gr-ink); }
.gr-guest small { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gr-muted); }
.gr-guest:hover { border-color: var(--gr-green); transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(79, 98, 40, .6); }
.gr-guest.is-active { background: var(--gr-green); border-color: var(--gr-green); }
.gr-guest.is-active strong, .gr-guest.is-active small { color: #fff; }
.gr-guest:focus-visible, .gr-day:focus-visible, .gr-slot:focus-visible, .gr-nav:focus-visible { outline: 2px solid var(--gr-green); outline-offset: 2px; }

/* Kalender */
.gr-cal { max-width: 560px; background: #fff; border: 1px solid var(--gr-line); border-radius: 16px; padding: 18px 18px 14px; margin-top: 14px; }
.gr-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.gr-cal-title { font-family: var(--gr-serif); font-weight: 400; font-size: 22px; }
.gr-nav { all: unset; cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gr-line); font-size: 22px; line-height: 1; color: var(--gr-ink); }
.gr-nav:hover:not(:disabled) { background: var(--gr-cream); }
.gr-nav:disabled { opacity: .3; cursor: default; }
.gr-cal-wd, .gr-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.gr-cal-wd span { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gr-muted); padding: 4px 0 8px; }
.gr-day { all: unset; box-sizing: border-box; height: 46px; display: grid; place-items: center; border-radius: 12px; font-size: 15px; font-weight: 600; position: relative; cursor: default; }
.gr-day.st-available { cursor: pointer; background: #eef2e4; color: var(--gr-green-d); }
.gr-day.st-available:hover { background: var(--gr-green); color: #fff; }
.gr-day.st-full { color: #b9ab98; text-decoration: line-through; background: #f7f1e6; }
.gr-day.st-closed, .gr-day.st-past, .gr-day.st-out_of_window { color: #cdbfa9; }
.gr-day.st-closed::after { content: ''; position: absolute; bottom: 18%; width: 4px; height: 4px; border-radius: 50%; background: #d8cab3; }
.gr-day.is-today { box-shadow: inset 0 0 0 1.5px var(--gr-ink); }
.gr-day.is-active { background: var(--gr-green) !important; color: #fff !important; }
.gr-cal-grid.is-loading .gr-day:not(.is-empty) { background: linear-gradient(90deg, #f4ede1 25%, #fbf7f0 50%, #f4ede1 75%); background-size: 200% 100%; animation: gr-shimmer 1.2s infinite linear; color: transparent; }
@keyframes gr-shimmer { to { background-position: -200% 0; } }
.gr-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; font-size: 12px; color: var(--gr-muted); }
.gr-legend li { margin: 0; display: flex; align-items: center; gap: 7px; }
.gr-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.l-av { background: #eef2e4; box-shadow: inset 0 0 0 1px #c9d4b1; }
.l-full { background: #f7f1e6; box-shadow: inset 0 0 0 1px #e0d3bd; }
.l-closed { background: #fff; box-shadow: inset 0 0 0 1px #e6dac5; }

/* Zeiten */
.gr-slots { display: grid; gap: 22px; }
.gr-slots.is-loading { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gr-skel { height: 50px; border-radius: 12px; background: linear-gradient(90deg, #f4ede1 25%, #fbf7f0 50%, #f4ede1 75%); background-size: 200% 100%; animation: gr-shimmer 1.2s infinite linear; }
.gr-slot-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gr-muted); }
.gr-slot-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.gr-slot {
	all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 14px 6px; border-radius: 12px;
	border: 1.5px solid var(--gr-line); background: #fff; font-weight: 700; font-size: 16px; color: var(--gr-ink);
	transition: border-color .15s, background .15s, transform .15s;
}
.gr-slot small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }
.gr-slot:hover:not(:disabled) { border-color: var(--gr-green); transform: translateY(-1px); }
.gr-slot.is-active { background: var(--gr-green); border-color: var(--gr-green); color: #fff; }
.gr-slot:disabled { cursor: default; color: #c3b6a2; background: #faf6ef; border-style: dashed; }
.gr-link { all: unset; cursor: pointer; color: var(--gr-green); font-weight: 600; text-decoration: underline; margin-top: 8px; }

/* Formular */
.gr-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.gr-span2 { grid-column: 1 / -1; }
.gr-field label, .gr-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gr-muted); margin-bottom: 7px; }
.gr-field label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.gr-field input, .gr-field select, .gr-field textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--gr-ink); background: #fff;
	border: 1.5px solid var(--gr-line); border-radius: 12px; padding: 13px 14px; margin: 0;
	transition: border-color .15s, box-shadow .15s; box-shadow: none; height: auto; line-height: 1.4;
}
.gr-field input:focus, .gr-field select:focus, .gr-field textarea:focus { outline: none; border-color: var(--gr-green); box-shadow: 0 0 0 4px rgba(79, 98, 40, .14); }
.gr-field.has-error input, .gr-check.has-error span { border-color: var(--gr-red); }
.gr-check.has-error span { color: var(--gr-red); }
.gr-seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--gr-line); border-radius: 12px; overflow: hidden; background: #fff; }
.gr-seg label { margin: 0; position: relative; }
.gr-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gr-seg span { display: block; text-align: center; padding: 13px 4px; font-size: 15px; cursor: pointer; border-right: 1px solid var(--gr-line); }
.gr-seg label:last-child span { border-right: 0; }
.gr-seg input:checked + span { background: var(--gr-green); color: #fff; }
.gr-seg input:focus-visible + span { outline: 2px solid var(--gr-green); outline-offset: -4px; }
.gr-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--gr-ink); cursor: pointer; }
.gr-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gr-green); flex: none; }
.gr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.gr-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.gr-submit {
	all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	background: var(--gr-green); color: #fff !important; text-decoration: none !important; padding: 17px 34px; border-radius: 12px;
	font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	box-shadow: 0 14px 26px -14px rgba(58, 72, 28, .9); transition: background .2s, transform .2s;
}
.gr-submit:hover { background: var(--gr-green-d); transform: translateY(-1px); }
.gr-submit:disabled { opacity: .7; cursor: progress; }
.gr-submit.is-busy::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: gr-spin .7s linear infinite; }
.gr-ghost { background: transparent; color: var(--gr-green) !important; box-shadow: inset 0 0 0 1.5px var(--gr-green); }
.gr-ghost:hover { background: var(--gr-green); color: #fff !important; }
@keyframes gr-spin { to { transform: rotate(360deg); } }
.gr-fine { margin: 0; font-size: 13px; color: var(--gr-muted); }

/* Erfolg */
.gr-success { text-align: center; padding: 26px 0 10px; }
.gr-success .gr-actions { justify-content: center; }
.gr-tick { width: 76px; height: 76px; margin: 0 auto 18px; display: block; }
.gr-tick circle { fill: none; stroke: var(--gr-green); stroke-width: 2.5; stroke-dasharray: 160; stroke-dashoffset: 160; animation: gr-draw .7s ease forwards; }
.gr-tick path { fill: none; stroke: var(--gr-green); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: gr-draw .45s .55s ease forwards; }
@keyframes gr-draw { to { stroke-dashoffset: 0; } }

/* ---------- Leiste ---------- */
.gr-bar { display: grid; grid-template-columns: 1.15fr 1fr 1fr auto; gap: 14px; align-items: end; margin: 0; }
.gr-bar-field label { display: block; font-size: 13px; font-weight: 600; color: inherit; opacity: .9; margin-bottom: 6px; }
.gr-bar-field input, .gr-bar-field select {
	width: 100%; font: inherit; font-size: 16px; color: var(--gr-ink); background: #fffaf2; border: 0; border-radius: 6px;
	padding: 0 14px; height: 52px; margin: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.gr-bar-field input:focus, .gr-bar-field select:focus { outline: 2px solid #fff; outline-offset: 2px; }
.gr-bar-btn {
	all: unset; box-sizing: border-box; cursor: pointer; height: 52px; padding: 0 30px; border-radius: 6px; background: #fffaf2; color: var(--gr-green);
	font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-align: center; transition: transform .2s, box-shadow .2s;
}
.gr-bar-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 20px -12px rgba(0, 0, 0, .5); }
.gr-bar-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Responsive (Container Queries: richtet sich nach der Spaltenbreite, nicht nach dem Bildschirm) ---------- */
@container grpanel (max-width: 820px) {
	.gr-shell { grid-template-columns: 1fr; }
	.gr-aside { padding: 28px 26px 22px; }
	.gr-sub { margin-bottom: 18px; }
	.gr-summary { grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.gr-summary div { flex-direction: column; gap: 4px; border: 0; background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 10px 12px; }
	.gr-summary dd { text-align: left; font-size: 16px; }
	.gr-aside-foot { display: none; }
	.gr-main { padding: 26px 24px 30px; }
}
@container grpanel (max-width: 560px) {
	.gr-shell { border-radius: 16px; }
	.gr-title { font-size: 28px; }
	.gr-summary dd { font-size: 14px; }
	.gr-main { padding: 22px 16px 26px; }
	.gr-steps button { font-size: 0; justify-content: center; }
	.gr-steps button span { font-size: 12px; }
	.gr-h { font-size: 25px; }
	.gr-guests { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
	.gr-guest { padding: 14px 2px 12px; border-radius: 12px; }
	.gr-guest strong { font-size: 26px; }
	.gr-guest small { display: none; }
	.gr-cal { padding: 12px 8px 10px; }
	.gr-cal-wd, .gr-cal-grid { gap: 3px; }
	.gr-day { border-radius: 9px; font-size: 14px; height: 40px; }
	.gr-fields { grid-template-columns: 1fr; }
	.gr-submit { width: 100%; }
}
@container grbar (max-width: 760px) {
	.gr-bar { grid-template-columns: 1.2fr 1fr 1fr; }
	.gr-bar-btn { grid-column: 1 / -1; }
}
@container grbar (max-width: 460px) {
	.gr-bar { grid-template-columns: 1fr 1fr; }
	.gr-bar-field:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
	.gr-panel *, .gr-panel *::before, .gr-panel *::after { animation: none !important; transition: none !important; }
	.gr-tick circle, .gr-tick path { stroke-dashoffset: 0; }
}

/* No-Show-Zustimmung & Datenschutz-Hinweis */
.gr-terms { background: var(--gr-cream, #f6efe2); border: 1px solid rgba(79, 98, 40, .25); border-radius: 10px; padding: 14px 16px; }
.gr-terms strong { color: var(--gr-ink); white-space: nowrap; }
.gr-privacy { margin: 0; font-size: 13px; line-height: 1.5; color: var(--gr-muted, #7a6a55); }
.gr-privacy a { color: var(--gr-green); font-weight: 600; }
.gr-noshow-note { font-size: 14px; color: var(--gr-muted, #7a6a55); }
.gr-legal h2 { margin-top: 1.6em; }
.gr-legal h2:first-child { margin-top: 0; }
