/* Farben, Schrift und Karten nach documentation/BRANDING.md, Seitenaufbau nach dem Vorbild
   der großen Lieferdienste: Kopfzeile mit Adresse, Raster aus Restaurantkarten, Speisekarte
   mit festem Warenkorb rechts. Unter 1024px wandert der Warenkorb in eine Leiste unten,
   unter 640px werden Modale zu Sheets von unten. */

:root {
	--orange: #ed6521;
	--orange-deep: #d15315;
	--orange-deeper: #b9480f;
	--orange-decor: #f07a3d;
	--orange-light: #ffe7db;
	--orange-wash: #fff5ef;
	/* Orange als Textfarbe auf Weiß, 5,5:1 */
	--orange-text: #b34712;
	--ink: #231d1a;
	/* Wie auf der Landing: 43 % statt #766f65, damit kleine Texte auf dem Seitengrund 4,5:1 erreichen. */
	--muted: hsl(35 8% 43%);
	--green: #41b969;
	--green-deep: hsl(140 50% 34%);
	--green-light: hsl(140 40% 95%);
	--blue: #2747a6;
	--blue-light: #eef1fb;
	--bg: hsl(35 20% 98%);
	--surface: #ffffff;
	--surface-muted: hsl(35 10% 96%);
	--border: hsl(35 20% 90%);
	/* Der Verlauf der Landing: Markenorange oben, nach unten ins tiefere Rotorange. */
	--brand-gradient: linear-gradient(180deg, var(--orange) 0%, #e0552a 45%, #b9402a 100%);
	--shadow-soft: 0 4px 20px -2px hsl(20 14% 12% / 0.1);
	--shadow-lift: 0 12px 32px -8px hsl(20 14% 12% / 0.22);
	--radius: 16px;
	--radius-lg: 20px;
	--header-h: 72px;
	--safe-bottom: env(safe-area-inset-bottom, 0px);
	color-scheme: light;
}

/* Selbst ausgeliefert statt von Google geholt, wie auf der Landing; Lizenz in fonts/OFL.txt. */
@font-face {
	font-family: 'Plus Jakarta Sans';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('/fonts/plus-jakarta-sans-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: 'Plus Jakarta Sans';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('/fonts/plus-jakarta-sans-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;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure {
	margin: 0;
}

img {
	max-width: 100%;
}

button,
input,
select {
	font: inherit;
	color: inherit;
}

a {
	color: var(--orange-text);
}

:focus-visible {
	outline: 3px solid #f6b48f;
	outline-offset: 2px;
}

[hidden] {
	display: none !important;
}

#app {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
}

.outlet {
	flex: 1;
}

.container {
	width: 100%;
	max-width: 1152px;
	margin: 0 auto;
	padding: 0 24px;
}

.container.narrow {
	max-width: 896px;
}

/* ---------- Text ---------- */

/* Wie die Überschriften der Landing (.home h1/h2): 1.375rem, ab 1024px 1.875rem. */
.page-title,
.section-title {
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.25;
}

.section-title {
	margin-bottom: 24px;
}

@media (min-width: 1024px) {
	.page-title,
	.section-title {
		font-size: 1.875rem;
	}
}

.section-title.small {
	margin-bottom: 6px;
	font-size: 1.375rem;
}

.h3 {
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.25;
}

.h4 {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

.t-body {
	font-size: 1rem;
}

.t-small {
	font-size: 0.875rem;
	line-height: 1.45;
}

.t-title {
	font-size: 1.0625rem;
	font-weight: 600;
}

.kicker {
	margin-bottom: 12px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.kicker.orange {
	color: var(--orange);
}

.muted {
	color: var(--muted);
}

.success {
	color: var(--green-deep);
}

.bold {
	font-weight: 700;
}

.price {
	font-weight: 700;
}

.text-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--orange-text);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* ---------- Hilfsklassen ---------- */

.row {
	display: flex;
	align-items: center;
}

.grow {
	flex: 1;
	min-width: 0;
}

.gap-s {
	gap: 8px;
}

.mt-s {
	margin-top: 8px;
}

.mt-m {
	margin-top: 16px;
}

/* ---------- Buttons ---------- */

.button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 24px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.button .mdi {
	font-size: 1.2em;
	line-height: 1;
}

.button.primary {
	background: var(--orange-deep);
	color: #fff;
}

.button.primary:hover:not(:disabled) {
	background: var(--orange-deeper);
}

.button.secondary {
	border-color: var(--ink);
	background: var(--surface);
	color: var(--ink);
}

.button.secondary:hover:not(:disabled) {
	background: var(--surface-muted);
}

.button.ghost {
	padding: 0 10px;
	background: none;
	color: var(--orange-text);
}

.button.ghost:hover:not(:disabled) {
	background: var(--orange-wash);
}

.button.small {
	min-height: 36px;
	padding: 0 14px;
	font-size: 0.875rem;
}

.button.ghost.small {
	padding: 0 8px;
}

.button.large {
	min-height: 52px;
	font-size: 1rem;
}

.button.block {
	width: 100%;
}

.button:disabled {
	border-color: transparent;
	background: var(--surface-muted);
	color: #a59c92;
	cursor: not-allowed;
}

.button.ghost:disabled {
	background: none;
}

.button.loading > * {
	visibility: hidden;
}

.button.loading::after {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

.icon-button {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	font-size: 22px;
	cursor: pointer;
	transition: background 0.15s;
}

.icon-button:hover:not(:disabled) {
	background: var(--surface-muted);
}

.icon-button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.info-button {
	display: inline-flex;
	padding: 2px;
	border: 0;
	background: none;
	color: var(--muted);
	font-size: 20px;
	line-height: 1;
	vertical-align: middle;
	cursor: pointer;
}

.info-button.small {
	font-size: 16px;
}

.info-button:hover {
	color: var(--ink);
}

.badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	white-space: nowrap;
}

.badge.muted {
	background: var(--surface-muted);
	color: var(--muted);
}

.badge.success {
	background: var(--green-light);
	color: var(--green-deep);
}

.spinner {
	width: 32px;
	height: 32px;
	border: 3px solid var(--orange-deep);
	border-right-color: transparent;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

.spinner-wrap {
	display: flex;
	justify-content: center;
	padding: 48px 0;
}

.center-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 96px 24px;
}

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

/* ---------- Eingaben ---------- */

.input,
.select {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1.5px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
	color: var(--ink);
	font-size: 1rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus,
.select:focus {
	border-color: var(--ink);
	outline: none;
	box-shadow: 0 0 0 4px var(--orange-light);
}

.input:disabled {
	background: var(--surface-muted);
	color: var(--muted);
}

.input::placeholder {
	color: #a59c92;
}

.select {
	padding-right: 40px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23231d1a' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-position: right 12px center;
	background-repeat: no-repeat;
	background-size: 22px;
	cursor: pointer;
}

.field {
	display: block;
	margin-bottom: 16px;
}

.field-label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.875rem;
	font-weight: 600;
}

.field-hint {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 0.8125rem;
}

.checkbox {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.875rem;
	cursor: pointer;
}

.checkbox input {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--orange-deep);
}

.notice {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 12px 0;
	padding: 12px 14px;
	border-radius: 12px;
}

.notice > .mdi {
	font-size: 20px;
	line-height: 1.2;
}

.notice-text {
	flex: 1;
	min-width: 0;
}

.notice.info {
	background: var(--blue-light);
	color: #233a86;
}

.notice.success {
	background: var(--green-light);
	color: var(--green-deep);
}

.notice.warning {
	background: var(--orange-light);
	color: #7a3410;
}

.stepper {
	display: inline-flex;
	align-items: center;
	height: 44px;
	border: 1.5px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
}

.stepper .icon-button {
	width: 40px;
	height: 40px;
	font-size: 20px;
}

.stepper-count {
	min-width: 24px;
	font-weight: 700;
	text-align: center;
}

.stepper.busy {
	opacity: 0.5;
	pointer-events: none;
}

.tabs {
	display: flex;
	gap: 4px;
	margin: 12px 0 24px;
	border-bottom: 1px solid var(--border);
}

.tabs button {
	position: relative;
	padding: 12px 16px;
	border: 0;
	background: none;
	color: var(--muted);
	font-weight: 700;
	cursor: pointer;
}

.tabs button[aria-selected='true'] {
	color: var(--ink);
}

.tabs button[aria-selected='true']::after,
.category-bar button[aria-current='true']::after {
	content: '';
	position: absolute;
	right: 12px;
	bottom: -1px;
	left: 12px;
	height: 3px;
	border-radius: 3px;
	background: var(--orange-deep);
}

.empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 48px 16px;
	text-align: center;
}

.empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: var(--surface-muted);
	color: var(--muted);
	font-size: 32px;
}

.empty .button {
	margin-top: 12px;
}

.pressable {
	cursor: pointer;
}

/* ---------- Kopfzeile ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	/* In Markenorange mit weißem Logo wie auf der Landing; Orange darauf (Warenkorb) wird Ink. */
	background: var(--orange);
}

.header-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	min-height: 60px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.brand-icon {
	width: auto;
	height: 32px;
}

.brand-text {
	width: auto;
	height: 20px;
}

.header-address {
	justify-self: center;
	min-width: 0;
	max-width: 100%;
}

.header-address:empty {
	display: none;
}

.address-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 440px;
	padding: 8px 14px;
	border: 1.5px solid var(--surface);
	border-radius: 999px;
	background: var(--surface);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s;
}

.address-pill:hover {
	border-color: var(--ink);
}

.address-pill .mdi-map-marker {
	color: var(--orange-deep);
	font-size: 20px;
}

.address-pill-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
}

.header-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.header-link:hover {
	background: rgb(255 255 255 / 0.15);
}

.header-link .mdi {
	font-size: 22px;
	line-height: 1;
}

.cart-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-right: 4px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
}

.cart-pill .mdi {
	font-size: 20px;
	line-height: 1;
}

.cart-pill-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-size: 0.75rem;
}

.email-banner {
	background: var(--orange-light);
	color: #7a3410;
	font-size: 0.875rem;
}

.email-banner-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.email-banner-row > .mdi {
	font-size: 20px;
}

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

.site-footer {
	margin-top: 64px;
	padding: 56px 0 40px;
	background: var(--ink);
	color: #e9e4de;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.2fr;
	gap: 32px;
}

.footer-brand img {
	width: auto;
	height: 26px;
	margin-bottom: 14px;
}

.footer-brand .muted {
	max-width: 360px;
	color: #b8afa5;
}

.footer-heading {
	margin-bottom: 12px;
	color: #b8afa5;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.footer-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.footer-links a {
	color: #fff;
	text-decoration: none;
}

.footer-links a:hover {
	text-decoration: underline;
}

.store-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.store-badges img {
	display: block;
	width: auto;
	height: 40px;
}

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

/* Nicht overflow: hidden — sonst schnitte die Fläche die Vorschlagsliste der Adresssuche ab.
   Abgeschnitten wird nur die Ebene mit dem Kreis. */
.brand-surface {
	position: relative;
	background: var(--brand-gradient);
}

.brand-decor {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

/* Der angeschnittene Kreis oben rechts — das einzige Dekor. */
.brand-decor::before {
	content: '';
	position: absolute;
	top: -22%;
	right: -12%;
	width: 42%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--orange-decor);
}

.hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
	align-items: center;
	gap: 56px;
	padding-top: 64px;
	padding-bottom: 72px;
}

.hero-copy .kicker {
	color: var(--ink);
}

.hero-title {
	color: #fff;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.25;
}

@media (min-width: 1024px) {
	.hero-title {
		font-size: 3rem;
	}
}

.hero-title em {
	color: var(--ink);
	font-style: normal;
	white-space: nowrap;
}

.hero-lead {
	max-width: 620px;
	margin: 20px 0 28px;
	color: var(--ink);
	font-size: 1.125rem;
}

.onboarding-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.onboarding-actions .button {
	min-width: 200px;
}

/* Auf Orange hebt sich ein oranger Button nicht ab — dort ist die Hauptaktion dunkel. */
.hero .onboarding-actions .button.primary {
	background: var(--ink);
}

.hero .onboarding-actions .button.primary:hover {
	background: #000;
}

.hero .onboarding-actions .button.secondary {
	border-color: #fff;
}

.hero-card {
	display: grid;
	gap: 16px;
	padding: 24px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-lift);
}

.hero-visual img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	border-radius: 28px;
	object-fit: cover;
	box-shadow: var(--shadow-lift);
}

.saved-address {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--surface-muted);
	font-weight: 600;
}

.saved-address > .mdi {
	color: var(--orange-deep);
	font-size: 22px;
}

.hero-card .text-link {
	justify-self: start;
	font-size: 0.875rem;
}

.section {
	padding: 80px 0;
}

.muted-surface {
	background: var(--surface-muted);
}

.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.step {
	position: relative;
	display: grid;
	gap: 8px;
}

.step img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	margin-bottom: 6px;
	border-radius: var(--radius);
	object-fit: cover;
}

.step-number {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--orange-deep);
	color: #fff;
	font-weight: 800;
}

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.brand-card {
	display: grid;
	align-content: start;
	gap: 8px;
	padding: 32px;
	border-radius: var(--radius-lg);
}

.brand-card.ink {
	background: var(--ink);
	color: #fff;
}

.brand-card.ink em {
	color: var(--orange);
	font-style: normal;
}

.brand-card.green {
	background: var(--green-deep);
	color: #fff;
}

.brand-card.green .kicker {
	color: var(--ink);
}

.card-title {
	font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
	font-weight: 800;
	line-height: 1.15;
}

.community-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.community-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 18px 8px 8px;
	border: 1.5px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	font-weight: 700;
	cursor: pointer;
	transition: border-color 0.15s;
}

.community-chip:hover {
	border-color: var(--ink);
}

.community-chip img,
.community-chip .mdi {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--surface-muted);
	object-fit: contain;
	font-size: 20px;
}

.app-teaser {
	padding-top: 0;
}

.app-teaser-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 32px;
	border-radius: var(--radius-lg);
	background: var(--orange-wash);
}

.app-teaser-row .section-title {
	margin-bottom: 4px;
}

/* ---------- Adresssuche ---------- */

.address-finder {
	display: grid;
	gap: 16px;
}

.address-fields {
	display: grid;
	grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
	gap: 12px;
}

.select-wrap,
.combobox {
	position: relative;
}

.select-wrap > .mdi,
.combobox > .mdi {
	position: absolute;
	top: 13px;
	left: 14px;
	z-index: 1;
	color: var(--muted);
	font-size: 20px;
	line-height: 1;
	pointer-events: none;
}

.select-wrap .select,
.combobox .input {
	padding-left: 42px;
}

.suggestions {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	z-index: 30;
	max-height: 320px;
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
	box-shadow: var(--shadow-lift);
	list-style: none;
}

.suggestion {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	cursor: pointer;
}

.suggestion > .mdi {
	margin-top: 2px;
	color: var(--muted);
	font-size: 20px;
}

.suggestion strong {
	display: block;
}

.suggestion .muted {
	font-size: 0.875rem;
}

.suggestion:hover,
.suggestion.active {
	background: var(--surface-muted);
}

.suggestion.info {
	color: var(--muted);
	cursor: default;
}

.suggestion.unavailable {
	opacity: 0.6;
}

.suggestion-hint {
	display: block;
	color: var(--orange-text);
	font-size: 0.8125rem;
	font-weight: 600;
}

.address-map:empty {
	display: none;
}

.map-wrap {
	position: relative;
}

.map {
	height: 220px;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--surface-muted);
}

.map-info {
	position: absolute;
	right: 12px;
	bottom: 12px;
	left: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	background: rgb(255 255 255 / 0.95);
	box-shadow: var(--shadow-soft);
	font-size: 0.8125rem;
	text-align: center;
}

/* ---------- Restaurantübersicht ---------- */

.restaurants-main {
	padding-top: 32px;
}

.page-head {
	display: grid;
	gap: 6px;
	margin-bottom: 18px;
}

.usp-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0 0 28px;
	padding: 0;
	font-size: 0.875rem;
	font-weight: 600;
	list-style: none;
}

.usp-strip li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.usp-strip .mdi {
	color: var(--green-deep);
	font-size: 20px;
}

.restaurant-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 24px;
}

.restaurant-grid.compact {
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 16px;
	margin-top: 16px;
}

/* Kachel wie auf der Landing: das Bild sitzt eingerückt in der weißen Karte, darunter Name
   und Beträge. Das Bild trägt die Karte, der Rest hält sich zurück. */
.restaurant-card {
	display: flex;
	flex-direction: column;
	padding: 8px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	color: inherit;
	text-decoration: none;
	transition: box-shadow 0.2s, transform 0.2s;
}

a.restaurant-card:hover {
	box-shadow: var(--shadow-lift);
	transform: translateY(-2px);
}

.rc-media {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	background: var(--surface-muted);
}

.rc-media .rc-hero {
	border-radius: 14px;
}

.rc-media.small {
	aspect-ratio: 3 / 1;
}

.rc-hero {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rc-logo {
	position: absolute;
	bottom: -22px;
	left: 12px;
	width: 56px;
	height: 56px;
	padding: 4px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: #fff;
	object-fit: contain;
}

.rc-body {
	display: grid;
	gap: 8px;
	padding: 32px 6px 6px;
}

.rc-title {
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.25;
}

.rc-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 0.875rem;
}

.rc-meta span,
.rc-next {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.rc-meta .mdi,
.rc-next .mdi {
	font-size: 18px;
}

.rc-price {
	color: var(--muted);
}

/* Der geteilte Betrag ist der Grund, warum die Karte hier steht — er steht deshalb als
   Einziges in Grün, wie auf der Landing. */
.price-new {
	color: var(--green-deep);
	font-weight: 700;
}

/* Feste Stärke, sonst wirkt der Preis bei kleinen Schriftgraden ungestrichen. */
.price-old {
	text-decoration-thickness: 1.5px;
}

.rc-next {
	font-size: 0.875rem;
	font-weight: 600;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.chip {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--surface-muted);
	color: var(--ink);
	font-size: 0.8125rem;
	font-weight: 600;
}

.chip.muted {
	background: var(--surface-muted);
	color: var(--muted);
}

.chip.ghost {
	background: none;
	color: var(--muted);
}

.restaurant-card.inactive .rc-hero {
	filter: grayscale(0.6);
}

.restaurant-card.inactive .button {
	justify-self: start;
}

.inactive-section {
	margin-top: 56px;
}

/* ---------- Lieferzeit wählen ---------- */

.delivery-times {
	display: grid;
	gap: 12px;
	padding-top: 24px;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	justify-self: start;
	color: var(--muted);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.back-link:hover {
	color: var(--ink);
}

.delivery-times-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 8px 0 12px;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.delivery-times .slot-day {
	margin-top: 16px;
}

.delivery-times .slot-options {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
}

/* ---------- Restaurantseite ---------- */

.restaurant-hero {
	padding-top: 24px;
}

.restaurant-cover {
	height: clamp(150px, 20vw, 280px);
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: linear-gradient(135deg, var(--orange-light), var(--surface-muted));
}

.restaurant-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.restaurant-intro {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 20px;
	margin-top: 20px;
}

/* Das Logo ragt ins Titelbild, der Name steht daneben unter dem Bild. */
.restaurant-intro.with-logo {
	margin-top: -44px;
	padding: 0 24px;
}

.restaurant-logo {
	width: 104px;
	height: 104px;
	padding: 6px;
	border: 4px solid #fff;
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--shadow-soft);
	object-fit: contain;
}

.restaurant-intro .page-title {
	margin-bottom: 8px;
}

.restaurant-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	color: var(--muted);
	font-size: 0.9375rem;
}

.restaurant-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.restaurant-meta .mdi {
	font-size: 18px;
}

.restaurant-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	align-items: start;
	gap: 40px;
	padding-top: 16px;
}

.menu-tools {
	position: sticky;
	top: var(--header-h);
	z-index: 10;
	padding-top: 12px;
	background: var(--bg);
}

.search-field {
	position: relative;
	display: block;
	max-width: 420px;
	margin-bottom: 4px;
}

.search-field > .mdi {
	position: absolute;
	top: 11px;
	left: 16px;
	color: var(--muted);
	font-size: 20px;
	line-height: 1;
}

.search-field .input {
	height: 44px;
	padding-left: 44px;
	border-radius: 999px;
}

.category-bar {
	display: flex;
	gap: 2px;
	overflow-x: auto;
	border-bottom: 1px solid var(--border);
	scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
	display: none;
}

.category-bar button {
	position: relative;
	flex-shrink: 0;
	padding: 14px 12px;
	border: 0;
	background: none;
	color: var(--muted);
	font-size: 0.9375rem;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.category-bar button:hover,
.category-bar button[aria-current='true'] {
	color: var(--ink);
}

.menu-section {
	padding-top: 32px;
}

.menu-section-title {
	margin-bottom: 4px;
	font-size: 1.5rem;
	font-weight: 800;
}

.menu-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 12px;
	margin-top: 14px;
}

.menu-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.menu-item:hover {
	border-color: #cfc5b8;
	box-shadow: var(--shadow-soft);
}

.menu-item-title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

.menu-item-count {
	display: inline-flex;
	margin-right: 6px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--orange-deep);
	color: #fff;
	font-size: 0.8125rem;
	vertical-align: 1px;
}

.menu-item-description {
	display: -webkit-box;
	margin-top: 4px;
	overflow: hidden;
	color: var(--muted);
	font-size: 0.875rem;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.menu-item-price {
	margin-top: 8px;
	font-weight: 700;
}

.menu-item-add {
	background: var(--surface-muted);
	color: var(--ink);
}

.menu-item:hover .menu-item-add,
.menu-item-add:hover {
	background: var(--orange-deep) !important;
	color: #fff;
}

.basket-column {
	position: sticky;
	top: calc(var(--header-h) + 16px);
	max-height: calc(100dvh - var(--header-h) - 32px);
	overflow-y: auto;
	border-radius: var(--radius-lg);
	scrollbar-width: thin;
}

.basket-panel {
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.basket-panel.in-modal {
	padding: 0;
	border: 0;
}

.basket-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.basket-panel.in-modal .basket-head {
	display: none;
}

.basket-section {
	display: grid;
	gap: 10px;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
}

.basket-slot-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.basket-slot-head > .mdi {
	color: var(--orange-deep);
	font-size: 22px;
}

.reservation {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--ink);
	font-size: 0.875rem;
	font-weight: 600;
}

.reservation .mdi {
	color: var(--orange-deep);
}

.countdown {
	font-variant-numeric: tabular-nums;
}

.basket-empty {
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 28px 8px 12px;
	text-align: center;
}

.basket-empty > .mdi {
	color: #c9bfb3;
	font-size: 44px;
}

.mobile-basket-bar {
	display: none;
}

/* ---------- Lieferzeiten & Plätze ---------- */

.slot-options {
	display: grid;
	gap: 8px;
}

.slot-option {
	display: grid;
	gap: 6px;
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.slot-option:hover:not(:disabled) {
	border-color: var(--ink);
}

.slot-option.selected {
	border-color: var(--orange-deep);
	background: var(--orange-wash);
}

.slot-option:disabled {
	background: var(--surface-muted);
	cursor: not-allowed;
	opacity: 0.7;
}

.slot-option-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}

.slot-time {
	font-size: 1.125rem;
	font-weight: 800;
}

.slot-day + .slot-day {
	margin-top: 20px;
}

.slot-day-title {
	margin: 16px 0 8px;
	font-size: 1rem;
	font-weight: 800;
}

.seat-status {
	display: grid;
	gap: 8px;
}

.seat-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}

.seat-dots {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.seat {
	width: 11px;
	height: 11px;
	border-radius: 50%;
}

.seat.confirmed {
	background: var(--accent);
}

.seat.reserved {
	border: 2px solid var(--accent);
}

.seat.free {
	background: #e7e0d7;
}

.seat.viewer {
	outline: 2px solid var(--accent);
	outline-offset: 1.5px;
}

.seat-threshold {
	width: 1.5px;
	height: 14px;
	margin: 0 3px;
	background: var(--muted);
	opacity: 0.45;
}

.seat-banner {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	padding: 8px 10px;
	border-radius: 10px;
	background: var(--tone-bg);
	color: var(--accent);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
}

.seat-banner .mdi {
	font-size: 18px;
	line-height: 1.1;
}

.seat-status.compact .seat-banner {
	padding: 6px 8px;
	font-size: 0.8125rem;
}

.tone-success {
	--accent: var(--green-deep);
	--tone-bg: var(--green-light);
}

.tone-info {
	--accent: var(--blue);
	--tone-bg: var(--blue-light);
}

.tone-warning {
	--accent: var(--orange-text);
	--tone-bg: var(--orange-wash);
}

.tone-muted {
	--accent: var(--muted);
	--tone-bg: var(--surface-muted);
}

/* ---------- Warenkorb & Bestellung ---------- */

.cart-items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cart-item {
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
}

.cart-item-main {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.cart-item-count {
	min-width: 26px;
	font-weight: 800;
}

.cart-item-title {
	font-weight: 600;
}

.cart-item-price {
	font-weight: 700;
	white-space: nowrap;
}

.cart-item-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 8px;
}

.cart-item-actions .stepper {
	height: 36px;
}

.cart-item-actions .stepper .icon-button {
	width: 34px;
	height: 34px;
	font-size: 18px;
}

.summary {
	margin: 14px 0 10px;
}

.summary-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 3px 0;
	font-size: 0.9375rem;
}

.summary-row.success {
	color: var(--green-deep);
}

.summary-row.total {
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px solid var(--border);
	font-size: 1.0625rem;
	font-weight: 800;
}

.mov {
	display: grid;
	gap: 6px;
	margin: 4px 0 16px;
}

.mov-bar {
	height: 6px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--surface-muted);
}

.mov-bar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--orange-deep);
	transition: width 0.3s;
}

.mov.reached .mov-bar span {
	background: var(--green-deep);
}

.partner-note {
	margin-top: 16px;
	color: var(--muted);
}

.partner-note summary {
	display: grid;
	gap: 4px;
	list-style: none;
	cursor: pointer;
}

.partner-note summary::-webkit-details-marker {
	display: none;
}

.colophon {
	display: grid;
	gap: 2px;
	margin-top: 8px;
}

.status-block .h4 {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 6px;
}

.booking-status {
	display: grid;
	align-content: start;
	gap: 20px;
}

.order-detail-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
}

.order-detail-items .h4 {
	margin-bottom: 4px;
}

.invoices {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
}

.invoices .h4 {
	width: 100%;
}

/* ---------- Kasse ---------- */

.checkout-head {
	padding-top: 32px;
	padding-bottom: 24px;
}

.checkout-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	align-items: start;
	gap: 20px 40px;
}

.panel {
	margin-bottom: 20px;
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.panel-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	font-size: 1.25rem;
	font-weight: 800;
}

.step-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ink);
	color: #fff;
	font-size: 0.875rem;
}

.address-line {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--surface-muted);
	font-weight: 600;
}

.address-line .mdi {
	color: var(--orange-deep);
	font-size: 20px;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

.payment-slot {
	display: grid;
	gap: 16px;
	margin-top: 16px;
}

.payment-element {
	min-height: 140px;
}

.checkout-summary {
	position: sticky;
	top: calc(var(--header-h) + 24px);
}

.checkout-summary-inner {
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.summary-restaurant {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 4px 0 6px;
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
}

.summary-restaurant .mdi {
	color: var(--muted);
}

/* ---------- Bestellungen & Konto ---------- */

.orders-page .container,
.account-layout {
	padding-top: 32px;
}

.order-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 16px;
}

.order-card {
	display: grid;
	gap: 12px;
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: var(--surface);
	transition: box-shadow 0.2s;
}

.order-card:hover {
	box-shadow: var(--shadow-soft);
}

.order-card.muted-card {
	opacity: 0.75;
}

.order-card-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.order-logo {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 3px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: #fff;
	color: var(--muted);
	font-size: 22px;
	object-fit: contain;
}

.order-total {
	font-weight: 800;
}

.order-card-link {
	display: inline-flex;
	align-items: center;
	color: var(--orange-text);
	font-size: 0.875rem;
	font-weight: 700;
}

.account-layout .page-title {
	margin-bottom: 24px;
}

.account-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: 20px;
}

.account-grid .panel {
	margin: 0;
}

.setting-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
}

.setting-row:last-child {
	border-bottom: 0;
}

.bonus-balance {
	margin-bottom: 4px;
	color: var(--green-deep);
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1.1;
}

.invite-box {
	display: grid;
	gap: 10px;
	margin: 18px 0;
	padding: 16px;
	border-radius: 14px;
	background: var(--orange-wash);
}

.invite-code {
	font-size: 1.125rem;
	letter-spacing: 0.08em;
}

.bonus-history {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.bonus-history li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid var(--border);
}

.link-list {
	display: flex;
	flex-direction: column;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.link-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

.link-list a:hover {
	color: var(--orange-text);
}

.link-list .mdi {
	color: var(--muted);
	font-size: 20px;
}

/* ---------- Modale, Hinweise, Erfolg ---------- */

dialog {
	max-width: none;
	max-height: none;
	padding: 0;
	border: 0;
	color: var(--ink);
}

dialog:focus-visible {
	outline: none;
}

dialog::backdrop {
	background: rgb(35 29 26 / 0.55);
}

.modal {
	width: min(560px, calc(100vw - 32px));
	max-height: min(90dvh, 920px);
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-lift);
	animation: pop 0.18s ease-out;
}

.modal[open] {
	display: flex;
	flex-direction: column;
}

.modal-sm {
	width: min(440px, calc(100vw - 32px));
}

.modal-lg {
	width: min(860px, calc(100vw - 32px));
}

.modal-head {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 12px;
	padding: 20px 20px 8px 24px;
}

.modal-head.floating {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	padding: 12px;
}

.modal-title {
	flex: 1;
	min-width: 0;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.25;
}

.modal-body {
	display: grid;
	align-content: start;
	gap: 14px;
	flex: 1;
	min-height: 0;
	padding: 8px 24px 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.modal-body.flush {
	padding: 0;
}

.modal-body .field {
	margin-bottom: 0;
}

.modal-foot {
	display: flex;
	flex-shrink: 0;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding: 16px 24px calc(16px + var(--safe-bottom));
	border-top: 1px solid var(--border);
}

.modal-foot .button.grow {
	flex: 1;
}

.product-head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.product-head .muted {
	margin-top: 6px;
}

.choice-group {
	min-width: 0;
	margin: 6px 0 0;
	padding: 0;
	border: 0;
}

.choice-group legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	margin-bottom: 4px;
	padding: 0;
}

.choice {
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--border);
}

.choice-main {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 10px 0;
	border: 0;
	background: none;
	text-align: left;
	cursor: pointer;
}

.choice-mark {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border: 2px solid #b0a69a;
	border-radius: 50%;
	transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.choice-mark.box {
	border-radius: 6px;
}

.choice.selected .choice-mark {
	border-color: var(--orange-deep);
	background: var(--orange-deep);
	box-shadow: inset 0 0 0 4px #fff;
}

.choice.selected .choice-mark.box {
	box-shadow: inset 0 0 0 3px #fff;
}

.choice-price {
	color: var(--muted);
	font-size: 0.9375rem;
	white-space: nowrap;
}

.excerpt-scroll {
	overflow-x: auto;
}

.excerpt-scroll img {
	display: block;
	max-width: none;
}

.excerpt figcaption {
	margin-top: 6px;
}

.motivation-frame {
	display: block;
	width: 100%;
	height: min(70dvh, 680px);
	border: 0;
}

.info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 4px;
}

.info-grid .h4 {
	margin-bottom: 6px;
}

.info-grid .colophon {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 0.875rem;
}

.icon-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

.icon-link:hover {
	color: var(--orange-text);
}

.alert {
	width: min(420px, calc(100vw - 32px));
	padding: 24px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-lift);
	animation: pop 0.15s ease-out;
}

.alert-title {
	margin-bottom: 8px;
	font-size: 1.25rem;
	font-weight: 800;
}

.alert-text {
	display: grid;
	gap: 6px;
	max-height: 50dvh;
	overflow-y: auto;
	color: var(--muted);
}

.alert-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 20px;
}

.alert-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
}

dialog.success {
	display: none;
	width: min(400px, calc(100vw - 32px));
	padding: 32px 24px 16px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	color: var(--ink);
	text-align: center;
	animation: pop 0.3s cubic-bezier(0.3, 1.5, 0.5, 1);
}

dialog.success[open] {
	display: grid;
	gap: 10px;
}

.success-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--green-light);
	color: var(--green-deep);
	font-size: 40px;
}

.success-highlight {
	color: var(--green-deep);
	font-size: 1.75rem;
	font-weight: 800;
	animation: lift 0.4s 0.15s both ease-out;
}

.success-title {
	font-size: 1.375rem;
	font-weight: 800;
}

.success-share {
	display: grid;
	gap: 10px;
	margin-top: 16px;
}

@keyframes pop {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
}

@keyframes lift {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

@keyframes slide-up {
	from {
		transform: translateY(100%);
	}
}

/* ---------- Tablet: Warenkorb wandert nach unten ---------- */

@media (max-width: 1023px) {
	.restaurant-layout {
		grid-template-columns: minmax(0, 1fr);
		padding-bottom: 96px;
	}

	.basket-column {
		display: none;
	}

	.mobile-basket-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 40;
		display: block;
		padding: 12px 16px calc(12px + var(--safe-bottom));
		border-top: 1px solid var(--border);
		background: var(--surface);
		box-shadow: 0 -6px 20px -10px hsl(20 14% 12% / 0.25);
	}

	.checkout-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.checkout-summary {
		position: static;
		order: -1;
	}

	.hero-grid {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 48px;
		padding-bottom: 56px;
	}

	.hero-visual {
		display: none;
	}

	.steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* ---------- Handy ---------- */

@media (max-width: 767px) {
	.container {
		padding: 0 16px;
	}

	.header-row {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 4px 12px;
		min-height: 60px;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.header-address {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: stretch;
	}

	.address-pill {
		width: 100%;
		max-width: none;
	}

	.address-pill-text {
		flex: 1;
		text-align: left;
	}

	.brand-icon {
		height: 24px;
	}

	.brand-text {
		height: 15px;
	}

	.hide-mobile {
		display: none;
	}

	.onboarding-actions .button {
		flex: 1;
		min-width: 0;
	}

	.header-link {
		padding: 8px;
	}

	.address-fields,
	.form-grid,
	.split,
	.account-grid,
	.order-detail-grid,
	.info-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.section {
		padding: 48px 0;
	}

	.steps {
		grid-template-columns: minmax(0, 1fr);
	}

	.brand-card {
		padding: 24px;
	}

	.restaurant-cover {
		margin: 0 -16px;
		border-radius: 0;
	}

	.restaurant-intro {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		margin-top: 16px;
	}

	.restaurant-intro.with-logo {
		margin-top: -36px;
		padding: 0;
	}

	.restaurant-intro .grow {
		width: 100%;
	}

	.restaurant-logo {
		width: 80px;
		height: 80px;
		border-radius: 18px;
	}

	.restaurant-grid,
	.order-grid,
	.menu-items {
		grid-template-columns: minmax(0, 1fr);
	}

	.panel {
		padding: 20px 16px;
	}

	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Modale kommen auf dem Handy als Sheet von unten. */
	.modal,
	.modal-sm,
	.modal-lg {
		width: 100%;
		max-height: 92dvh;
		margin: auto 0 0;
		border-radius: var(--radius-lg) var(--radius-lg) 0 0;
		animation: slide-up 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
	}

	.modal-head {
		padding: 16px 12px 4px 20px;
	}

	.modal-body {
		padding: 8px 20px 20px;
	}

	.modal-foot {
		padding: 12px 20px calc(12px + var(--safe-bottom));
	}

	.modal-foot .button:not(.grow) {
		flex: 1;
	}

	.motivation-frame {
		height: 62dvh;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
