@import url('./home-reference.css');

:root {
    --cream: #FBF4EC; --surface: #FFFAF3; --sand: #F4E8DA;
    --espresso: #2A1A14; --muted: #60524B; --paprika: #E05A2B;
    --paprika-strong: #C9481F; --line: #E9DCCD; --line-strong: #DCCBB8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--cream); color: var(--espresso); font-family: Figtree, system-ui, sans-serif; }
button, input { font: inherit; }
a { color: var(--espresso); }
button { cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--espresso); outline-offset: 3px; }
a:hover { color: var(--paprika-strong); }
[hidden] { display: none !important; }
.cart-button { border: 0; }
.hero-copy, .hero-collage { flex-basis: 0; }
.hero-copy { flex-grow: 1.08; }
.hero-collage { flex-grow: 1; }
.food-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-status { z-index: 2; }
.demo-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.4; }
.service-toggle[aria-pressed="true"] { background: var(--surface); color: var(--espresso); box-shadow: 0 2px 6px #2A1A141f; }
.service-toggle[aria-pressed="false"] { background: transparent; color: var(--muted); box-shadow: none; }
.category-chip[aria-pressed="true"] { background: var(--espresso); color: var(--surface); border-color: var(--espresso); }
.category-chip[aria-pressed="false"] { background: var(--surface); color: var(--espresso); border-color: var(--line-strong); }
.category-chip:hover { transform: translateY(-2px); }
.category-chip, .restaurant-card { transition: transform .18s ease, box-shadow .18s ease; }
.search-field:focus-within { outline: 3px solid var(--espresso); outline-offset: 2px; }
.search-field input:focus-visible { outline: 0; }
.location-feedback:empty, .results-feedback:empty { display: none; }
.location-feedback, .results-feedback { margin: 4px 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
#restaurants-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.restaurant-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); overflow: hidden; text-decoration: none; color: var(--espresso); box-shadow: 0 10px 28px -22px #2A1A1473; }
.restaurant-card:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -22px #2A1A1473; color: var(--espresso); }
.restaurant-photo { height: 190px; position: relative; background: radial-gradient(ellipse at 55% 70%, #F9C9A8, #F4E8DA); display: grid; place-items: center; }
.restaurant-photo img { width: 100%; height: 100%; object-fit: contain; }
.restaurant-photo img.restaurant-placeholder { width: 80px; height: 94px; }
.restaurant-photo .status-badge { position: absolute; top: 14px; left: 14px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 700; }
.status-badge > span { width: 8px; height: 8px; background: currentColor; border-radius: 50%; }
.status-open { color: #1F5A3F; background: #E3EFE7; }
.status-closed { color: #4A453E; background: #ECE7DF; }
.restaurant-info { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.restaurant-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.restaurant-title h3 { font: 500 23px/1.2 Fraunces, Georgia, serif; margin: 0; letter-spacing: -.01em; overflow-wrap: anywhere; }
.restaurant-title > span { font-size: 14px; color: var(--muted); }
.restaurant-info > p { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0 0 6px; }
.restaurant-meta { margin: auto 0 0; padding-top: 14px; border-top: 1px dashed var(--line-strong); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.restaurant-meta dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.restaurant-meta dd { margin: 3px 0 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.empty-state { border: 1px dashed var(--line-strong); border-radius: 22px; padding: 40px 24px; text-align: center; }
.empty-state h3 { font: 500 26px Fraunces, Georgia, serif; margin: 0 0 12px; }
.empty-state p { color: var(--muted); line-height: 1.6; max-width: 480px; margin: 0 auto 20px; }
.button-light, .button-primary { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; min-height: 52px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--espresso); font-weight: 700; text-decoration: none; }
.button-primary { background: var(--paprika-strong); color: var(--surface); border-color: var(--paprika-strong); }
.button-primary:hover, .find-restaurants:hover { background: #A93F1A; color: var(--surface); }
.map-shell { min-width: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); }
.map-layout { display: grid; grid-template-columns: .85fr 1.4fr; }
.group-layout { display: grid; grid-template-columns: .95fr 1.05fr; }
.partner-layout { display: grid; grid-template-columns: 1.1fr 1fr; }
#home-restaurants-map { min-height: 410px; z-index: 1; }
.map-message { display: grid; place-items: center; min-height: 410px; padding: 32px; text-align: center; background: var(--sand); color: var(--muted); }
.map-caption { padding: 12px 20px; margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.map-pin { display: inline-flex; justify-content: center; align-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--espresso); border: 2px solid var(--surface); color: var(--surface); font: 700 14px Figtree, sans-serif; box-shadow: 0 4px 12px #2A1A1440; }
.map-pin.pickup { background: var(--surface); color: var(--espresso); border-color: var(--espresso); }
.map-pin.closed { background: #8A8378; }
.leaflet-control-zoom a { min-width: 44px; min-height: 44px; line-height: 44px; color: var(--espresso); }
.leaflet-popup-content { font-family: Figtree, sans-serif; line-height: 1.5; }
.leaflet-popup-content strong { font-size: 16px; }
.leaflet-popup-content a { display: block; padding-top: 8px; color: var(--paprika-strong); font-weight: 700; }
.preview-notice { grid-column: 1 / -1; padding: 14px 18px; border: 1px solid #DCCBB8; border-radius: 14px; font-size: 14px; line-height: 1.6; margin: 0; }
.demo-button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.group-details { font-size: 14px; line-height: 1.6; max-width: 520px; }
.group-details summary { min-height: 44px; cursor: pointer; font-weight: 600; padding-top: 12px; }
.group-details p { color: var(--muted); margin-top: 8px; }
.cart-dialog { width: min(480px, calc(100% - 32px)); padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--espresso); }
.cart-dialog::backdrop { background: #2A1A1480; backdrop-filter: blur(3px); }
.cart-dialog h2 { font: 500 32px Fraunces, serif; margin: 16px 0; }
.cart-dialog p { color: var(--muted); line-height: 1.6; }
.dialog-close { float: right; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--cream); color: var(--espresso); font-size: 26px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 1050px) {
    .header-inner { gap: 16px; }
    .header-inner > nav { order: 3; flex-basis: 100%; justify-content: center; }
    .header-inner > div { margin-left: auto; }
    .hero-section { gap: 32px; }
    .hero-copy { flex-basis: 440px; }
    .hero-collage { flex-basis: 440px; max-width: 650px; margin: 0 auto; }
    .hero-section h1 { font-size: clamp(42px, 6vw, 64px); }
    #restaurants-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    html { scroll-padding-top: 145px; }
    .header-inner { padding: 10px 16px; gap: 10px; }
    .header-inner > nav { gap: 0; justify-content: space-between; flex-wrap: nowrap; overflow-x: auto; }
    .header-inner > nav { scrollbar-width: none; }
    .header-inner > nav::-webkit-scrollbar { display: none; }
    .header-inner > nav a { padding: 10px 8px; font-size: 12px; white-space: nowrap; }
    .header-inner > div a, .cart-button { padding: 0 12px; font-size: 13px; }
    .header-inner > div { gap: 6px; }
    .header-inner .cart-button { width: 44px; font-size: 0; gap: 0; padding: 0; justify-content: center; }
    .header-inner > a > span { font-size: 25px; }
    .header-inner > a > svg { width: 30px; height: 35px; }
    .hero-section { padding: 36px 16px 48px; gap: 28px; }
    .hero-copy { flex-basis: 100%; }
    .hero-copy > span { font-size: 12px; padding: 8px 10px; }
    .hero-copy h1 { font-size: clamp(39px, 10.8vw, 62px); }
    .hero-copy > p { font-size: 17px; }
    .hero-collage { flex-basis: 100%; min-height: 440px; }
    .hero-photo-main { height: 300px; width: 80%; }
    .hero-photo-small { top: 160px; height: 200px; width: 48%; }
    .hero-status { top: auto; bottom: 0; right: 0; width: min(315px, 86%); padding: 16px; }
    .search-field, .find-restaurants { flex: 1 1 100%; }
    .find-restaurants { justify-content: center; }
    main > section:not(.hero-section):not(#karte):not(#gruppe):not(#partner) { padding-left: 16px; padding-right: 16px; }
    #restaurants-grid { grid-template-columns: minmax(0, 1fr); }
    #restaurants { padding-bottom: 56px; }
    .map-layout, .group-layout, .how-layout, .partner-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .how-layout { display: grid; }
    .map-layout, .group-layout, .partner-layout { padding: 56px 16px; }
    .map-layout > div, .group-layout > div, .how-layout > ol, .how-layout > aside, .partner-layout > div { min-width: 0; }
    #home-restaurants-map, .map-message { min-height: 340px; }
    #ablauf { padding-top: 56px; padding-bottom: 56px; }
    #partner h2, #gruppe h2 { font-size: 38px; }
    .group-layout > div:first-of-type { padding: 20px; }
    footer > div { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 360px) {
    .header-inner > a > span { font-size: 22px; }
    .header-inner > a > svg { width: 26px; height: 31px; }
    .header-inner > div a { padding: 0 4px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .restaurant-card, .category-chip { transition: none; transform: none !important; }
}
.hero-status .mv-036{background:#FCEFD6;color:#7A4B05}.hero-status .mv-037{background:#C98A12}
