/* Daniel – Mama's Pizza Place. Mobile first, Breakpoints 600 / 900 px. */

@font-face {
	font-family: "Figtree";
	src: url("../fonts/figtree-var.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Shrikhand";
	src: url("../fonts/shrikhand.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--red: #C62A1F;
	--red-dark: #A11F16;
	--red-soft: #FBE6E3;
	--green: #2E6B3F;
	--green-dark: #24553A;
	--green-soft: #E2EFE4;
	--cream: #FFF9EF;
	--flour: #F7ECDA;
	--crust: #E9A93B;
	--ink: #33201A;
	--ink-soft: #6B5449;
	--line: #EADBC4;
	--white: #FFFFFF;

	--font-display: "Shrikhand", Georgia, serif;
	--font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius-xl: 32px;
	--radius: 20px;
	--radius-sm: 12px;
	--shadow: 0 1px 0 rgba(51, 32, 26, .05), 0 14px 32px -20px rgba(51, 32, 26, .45);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--gutter: 16px;
	--header-h: 64px;
	--chips-h: 0px;
}

/* ---------- Basis ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + var(--chips-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.has-order-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--red); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: 760px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--ink); color: var(--white); padding: .6em 1em; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

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

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .6em 1.4em;
	border: 2px solid transparent; border-radius: 999px;
	font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
	cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn--order { background: var(--red); color: var(--white); }
.btn--order:hover { background: var(--red-dark); color: var(--white); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--flour); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #4A3027; color: var(--white); }
.btn--lg { min-height: 56px; padding-inline: 1.7em; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: .4em 1.1em; font-size: .95rem; }
.btn--block { display: flex; width: 100%; }
.icon { flex: none; width: 1.2em; height: 1.2em; }

/* ---------- Header ---------- */

.site-header {
	position: sticky; top: 0; z-index: 40;
	background: rgba(255, 249, 239, .94);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand {
	font-family: var(--font-display); font-size: 1.35rem; line-height: 1; color: var(--red);
	text-decoration: none; margin-right: auto;
}
.brand:hover { color: var(--red-dark); }
.brand--logo { display: block; }
.brand__logo { display: block; width: auto; height: 54px; max-width: 180px; object-fit: contain; object-position: left center; padding-block: 4px; }
.site-nav { display: none; }
.site-header__order { min-height: 44px; padding-inline: 1.1em; font-size: .95rem; }

.branchbar { background: var(--ink); color: var(--cream); font-size: .9rem; }
.branchbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.branchbar a { color: var(--cream); font-weight: 600; }
.branchbar a:hover { color: var(--crust); }
.branchbar :focus-visible { outline-color: var(--cream); }

/* ---------- Hero ---------- */

.hero { padding: 28px 0 56px; overflow: hidden; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero__title {
	font-family: var(--font-display); font-weight: 400;
	font-size: clamp(2.9rem, 13vw, 5.6rem); line-height: .98; letter-spacing: -.01em;
	color: var(--red);
}
.hero__text { margin: 20px 0 28px; font-size: 1.15rem; max-width: 34em; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { flex: 1 1 auto; }
.hero__branch { margin: 14px 0 0; font-size: .95rem; color: var(--ink-soft); }
.hero__visual { width: 100%; max-width: 480px; justify-self: center; }
.hero__visual .diner, .hero__img {
	width: 100%; height: auto; border-radius: var(--radius-xl);
	box-shadow: 0 30px 50px -30px rgba(43, 58, 140, .55);
}
.hero__img { aspect-ratio: 480 / 540; object-fit: cover; }
.hero--wide .hero__visual { max-width: none; }
.hero--wide .hero__img { aspect-ratio: 16 / 9; }

/* ---------- Abschnitte ---------- */

.section { padding: 64px 0; }
.section__title {
	font-family: var(--font-display); font-weight: 400;
	font-size: clamp(2.1rem, 8vw, 3.2rem); line-height: 1.04;
}
.section__lead { margin: 14px 0 0; max-width: 38em; font-size: 1.08rem; }

/* ---------- Filialen ---------- */

.branches { background: var(--red); color: var(--white); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.branches .section__lead { color: rgba(255, 255, 255, .9); }
.branches :focus-visible { outline-color: var(--white); }

.finder { margin: 28px 0 32px; display: grid; gap: 18px; max-width: 640px; }
.finder__geo { justify-self: start; }
.finder__label { display: block; margin-bottom: 8px; font-weight: 600; }
.finder__row { display: flex; gap: 8px; }
.finder__row input {
	flex: 1; min-width: 0; min-height: 48px; padding: .6em 1.1em;
	border: 2px solid transparent; border-radius: 999px; background: var(--white); color: var(--ink);
}
.finder__row input::placeholder { color: #8E7A70; }
.finder__row input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.finder__result { margin: 0; min-height: 1.6em; font-weight: 600; }
.finder__result:empty { display: none; }
.finder__result .btn { margin-top: 10px; }

.branch-grid { display: grid; gap: 16px; }
.branch-card {
	display: flex; flex-direction: column; gap: 14px;
	padding: 22px; border-radius: var(--radius);
	background: var(--white); color: var(--ink);
	box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .55);
	scroll-margin-top: calc(var(--header-h) + 16px);
	transition: box-shadow .2s;
}
.branch-card :focus-visible { outline-color: var(--ink); }
.branch-card.is-mine { box-shadow: 0 0 0 4px var(--crust), 0 18px 36px -24px rgba(0, 0, 0, .55); }
.branch-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.branch-card__name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.badge {
	padding: .25em .75em; border-radius: 999px;
	background: var(--crust); color: var(--ink); font-size: .82rem; font-weight: 700; white-space: nowrap;
}
.badge[hidden] { display: none; }
.status {
	display: inline-flex; align-items: center; gap: .5em; align-self: flex-start;
	margin: 0; padding: .3em .85em; border-radius: 999px; font-size: .9rem; font-weight: 700;
}
.status::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: currentColor; }
.status.is-open { background: var(--green-soft); color: var(--green-dark); }
.status.is-closed { background: var(--red-soft); color: var(--red-dark); }
.branch-card__facts { display: grid; gap: 8px; }
.branch-card__facts li { display: flex; gap: .6em; align-items: flex-start; }
.branch-card__facts .icon { margin-top: .2em; color: var(--red); }
.branch-card__facts a { text-decoration-color: var(--line); }
.hours { margin: 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .95rem; }
.hours__row { display: flex; gap: 12px; }
.hours dt { flex: 0 0 4.2em; font-weight: 700; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.branch-card .btn { margin-top: auto; }

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

.menu { padding-bottom: 72px; }
.chips {
	position: sticky; top: var(--header-h); z-index: 30;
	margin-top: 24px; padding: 10px 0;
	background: rgba(255, 249, 239, .94);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.chips__track {
	position: relative; display: flex; gap: 8px;
	overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.chips__track::-webkit-scrollbar { display: none; }
.chip {
	flex: none; scroll-snap-align: start;
	padding: .45em 1.1em; border: 2px solid var(--line); border-radius: 999px;
	background: var(--white); font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
	transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.menu-cat { padding-top: 40px; scroll-margin-top: calc(var(--header-h) + var(--chips-h) + 8px); }
.menu-cat__title { font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--red); }
.menu-cat__desc { margin: 6px 0 0; color: var(--ink-soft); }
.dishes { margin-top: 12px; }
.dish { display: grid; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dish--img { grid-template-columns: 1fr 112px; align-items: start; }
.dish__img {
	grid-column: 2; grid-row: 1;
	width: 112px; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
	border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow);
}
.dish--img .dish__body { grid-column: 1; grid-row: 1; min-width: 0; }
.dish__head { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.dish__name { font-weight: 800; font-size: 1.1rem; line-height: 1.3; }
.dish__leader { flex: 1; min-width: 16px; border-bottom: 2px dotted #CDB89B; transform: translateY(-.28em); }
.dish__price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish__desc { margin: 4px 0 0; color: var(--ink-soft); font-size: .98rem; max-width: 38em; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sizes li {
	padding: .15em .7em; border: 1.5px solid var(--line); border-radius: 999px;
	background: var(--white); font-size: .82rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
.menu-cat__sizes { margin-top: 12px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--flour); }
.menu-cat__sizes p { margin: 0; font-size: .92rem; font-weight: 700; }
.menu-cat__sizes .sizes { margin-top: 8px; }
.dish__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 8px 0 0; font-size: .85rem; }
.tag { display: inline-flex; align-items: center; gap: .3em; font-weight: 700; }
.tag .icon { width: 1.1em; height: 1.1em; }
.tag--vegetarisch, .tag--vegan { color: var(--green); }
.tag--scharf { color: var(--red); }
.dish__allergens { color: var(--ink-soft); letter-spacing: .02em; }

.allergens { margin-top: 32px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--flour); font-size: .95rem; }
.allergens summary { cursor: pointer; font-weight: 700; }
.allergens dl { display: grid; gap: 4px 20px; margin: 12px 0 0; }
.allergens dl div { display: flex; gap: .6em; }
.allergens dt { font-weight: 800; min-width: 1.2em; }
.allergens dd { margin: 0; }
.empty { padding: 24px; border-radius: var(--radius); background: var(--flour); }

/* ---------- Geschichte ---------- */

.story { background: var(--flour); }
.story__grid { display: grid; gap: 32px; align-items: center; }
.story__text { max-width: 36em; font-size: 1.12rem; line-height: 1.7; }
.story__text .section__title { margin-bottom: 20px; }
.story__figure { margin: 0; }
.story__img { width: 100%; border-radius: var(--radius-xl); aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Franchise ---------- */

.franchise { background: var(--green); color: var(--white); }
.franchise .section__lead { color: rgba(255, 255, 255, .9); }
.franchise :focus-visible { outline-color: var(--white); }
.franchise__grid { display: grid; gap: 36px; align-items: start; }
.checks { display: grid; gap: 12px; margin-top: 24px; }
.checks li { display: flex; gap: .7em; align-items: flex-start; font-weight: 600; }
.checks .icon {
	width: 1.6em; height: 1.6em; padding: .25em; margin-top: -.05em;
	border-radius: 50%; background: var(--white); color: var(--green);
}

.form { padding: 24px; border-radius: var(--radius-xl); background: var(--white); color: var(--ink); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .6); }
.form :focus-visible { outline-color: var(--ink); }
.form__title { font-size: 1.35rem; font-weight: 800; margin-bottom: 18px; }
.form__grid { display: grid; gap: 14px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .95rem; }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: .65em .95em;
	border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--cream);
	transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid rgba(51, 32, 26, .25); outline-offset: 0; }
.check { display: flex; gap: .7em; align-items: flex-start; margin: 18px 0 20px; font-size: .92rem; line-height: 1.5; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.notice--ok { background: var(--green-soft); color: var(--green-dark); }
.notice--error { background: var(--red-soft); color: var(--red-dark); }

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

main.page { padding: 48px 0 80px; }
.entry__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 8vw, 3.4rem); color: var(--red); margin-bottom: 28px; }
.entry__content { line-height: 1.7; display: flow-root; }
.entry__content .kc_column, .entry__content .kc_column_inner { float: none; width: auto; padding-inline: 0; }
.entry__content h2, .entry__content h3 { margin: 1.6em 0 .5em; font-weight: 800; line-height: 1.25; }
.entry__content h2 { font-size: 1.5rem; }
.entry__content h3 { font-size: 1.2rem; }
.entry__content ul, .entry__content ol { padding-left: 1.3em; margin: 0 0 1em; list-style: revert; }
.page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.post-list { display: grid; gap: 14px; }
.post-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.post-list a { font-weight: 700; }
.post-list time { color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: rgba(255, 249, 239, .82); padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--crust); }
.site-footer :focus-visible { outline-color: var(--cream); }
.site-footer__grid { display: grid; gap: 24px; }
.site-footer__name { font-family: var(--font-display); font-size: 1.6rem; color: var(--cream); margin-bottom: 6px; line-height: 1.1; }
.site-footer__title { color: var(--cream); font-weight: 800; margin-bottom: 4px; }
.site-footer__legal {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 249, 239, .16);
}
.site-footer__legal p { margin: 0; }
.legal-links { display: flex; gap: 20px; }

/* ---------- Mobile Bestellleiste ---------- */

.order-bar {
	position: fixed; inset: auto 0 0 0; z-index: 50;
	padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 249, 239, .96);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--line);
	box-shadow: 0 -10px 24px -18px rgba(51, 32, 26, .5);
}
.order-bar .btn { min-height: 52px; font-size: 1.05rem; }
.order-bar__branch { margin: 4px 0 0; font-size: .8rem; text-align: center; color: var(--ink-soft); }

/* ---------- ab 600 px ---------- */

@media (min-width: 600px) {
	:root { --gutter: 28px; }
	.hero__actions .btn { flex: 0 0 auto; }
	.branch-grid { grid-template-columns: repeat(2, 1fr); }
	.form { padding: 32px; }
	.form__grid { grid-template-columns: 1fr 1fr; }
	.field--wide { grid-column: 1 / -1; }
	.allergens dl { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- ab 900 px ---------- */

@media (min-width: 900px) {
	:root { --gutter: 40px; }
	body.has-order-bar { padding-bottom: 0; }
	.order-bar { display: none; }

	.site-header__inner { min-height: 76px; gap: 28px; }
	.brand { font-size: 1.6rem; margin-right: 0; }
	.brand__logo { height: 76px; }
	.site-nav { display: flex; gap: 26px; margin-left: auto; font-weight: 600; }
	.site-nav a { text-decoration: none; }
	.site-nav a:hover { color: var(--red); text-decoration: underline; }
	.site-header__order { min-height: 48px; padding-inline: 1.4em; font-size: 1rem; }

	.hero { padding: 56px 0 96px; }
	.hero__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
	.hero__visual { justify-self: end; }
	.hero--wide .hero__grid { grid-template-columns: .85fr 1.15fr; }
	.hero--wide .hero__title { font-size: clamp(2.9rem, 6vw, 4.8rem); }

	.section { padding: 96px 0; }
	.branch-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.finder { grid-template-columns: auto 1fr; align-items: end; max-width: none; gap: 20px 28px; }
	.finder__geo { min-height: 52px; }
	.finder__row input, .finder__row .btn { min-height: 52px; }
	.finder__result { grid-column: 1 / -1; }

	.dishes { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
	.dish--img { grid-template-columns: 1fr 132px; }
	.dish__img { width: 132px; }
	.menu-cat { padding-top: 56px; }
	.menu-cat__title { font-size: 2.4rem; }
	.allergens dl { grid-template-columns: repeat(3, 1fr); }

	.story__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
	.story__grid--text { grid-template-columns: 1fr; }

	.franchise__grid { grid-template-columns: .9fr 1.1fr; gap: 64px; }
	.franchise__intro { position: sticky; top: calc(var(--header-h) + 32px); }

	.site-footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

/* ---------- Weniger Bewegung ---------- */

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