/* Public site: one stylesheet for every theme. A theme changes the look through the
   custom properties in partials/theme.blade.php (--bg, --text, --accent,
   --accent-soft, --radius, --button-radius). System fonts only, nothing external. */

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }
img { max-width: 100%; }
h1, h2 { line-height: 1.15; font-weight: 800; }
h1 { font-size: 2rem; margin: .5rem 0; }
h2 { font-size: 1.15rem; margin: 1.75rem 0 .75rem; }

main, .site-header, .site-footer { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* Header and navigation; on phones the nav folds behind a checkbox toggle (no JS). */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand-logo { display: block; width: auto; height: auto; max-height: 44px; max-width: 60vw; }
@media (min-width: 720px) { .brand-logo { max-height: 56px; } }
.brand { color: var(--accent); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.nav-toggle { display: none; }
.nav-button { cursor: pointer; font-size: 1.4rem; color: var(--accent); }
.site-nav { display: none; width: 100%; flex-direction: column; gap: 10px; padding-top: 12px; }
.nav-toggle:checked ~ .site-nav { display: flex; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.languages { display: flex; gap: 8px; font-size: .9rem; }
.languages strong { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 720px) {
    .nav-button { display: none; }
    .site-nav { display: flex; width: auto; flex-direction: row; align-items: center; gap: 22px; padding-top: 0; }
}

/* Promo bar (every page) */
.promo { padding: 8px 16px; background: var(--accent); color: var(--bg); text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .03em; }
.promo a { color: inherit; text-decoration: none; }

/* Buttons and the live status pill */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-block; padding: 10px 20px; border-radius: var(--button-radius); font-weight: 700; text-decoration: none; }
.button.primary { background: var(--accent); color: var(--bg); }
.button.secondary { background: var(--accent-soft); color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); font-size: .85rem; font-weight: 700; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9a8f88; }
.status-open::before { background: #34b26a; }

/* Home cover (look A): full width, header and text over a dark shade */
.cover { position: relative; min-height: min(78vh, 640px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; color: #fff; background: var(--accent); }
.cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.cover-photo.active { opacity: 1; }   /* several photos: site.js moves "active" along (a slideshow) */
.cover-shade { position: absolute; inset: 0; background: linear-gradient(rgba(20, 14, 10, .55), rgba(20, 14, 10, .05) 35%, rgba(20, 14, 10, .15) 55%, rgba(20, 14, 10, .8)); }
.cover-plain .cover-shade { display: none; }
.cover .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.cover .brand, .cover .nav-button, .cover .site-nav a, .cover .languages strong { color: #fff; }
.cover .nav-toggle:checked ~ .site-nav { background: rgba(20, 14, 10, .75); padding: 14px 16px; border-radius: var(--radius); }
.cover-text { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px 28px; }
.cover-text h1 { margin: .6rem 0 .2rem; font-size: 2.4rem; }
.cover-text .tagline { margin: 0 0 1.1rem; font-size: 1.05rem; opacity: .92; }
.cover .status { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(4px); }

@media (min-width: 720px) {
    .cover-text h1 { font-size: 3.4rem; }
}

/* Home "Besuchen Sie uns" */
.visit { margin-top: 2.5rem; background: var(--accent-soft); }
.visit-inner { max-width: 1240px; margin: 0 auto; padding: 14px 16px 30px; }
.visit .status, .visit .button.secondary { background: #fff; }

/* Home "Beliebt": large cards, swiped sideways on phones (scroll-snap, no JS) */
.featured h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.featured h2 a { font-size: .875rem; font-weight: 700; text-decoration: none; }
.featured-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; }
.featured-row::-webkit-scrollbar { display: none; }
.featured-card { position: relative; flex: 0 0 78%; aspect-ratio: 4 / 5; scroll-snap-align: start; border-radius: 0; overflow: hidden; color: #fff; text-decoration: none; background: var(--accent-soft); box-shadow: 0 6px 18px rgba(0, 0, 0, .1); }
.featured-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20, 14, 10, 0) 38%, rgba(20, 14, 10, .85)); }
.featured-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 20px 22px; }
.featured-text b { display: block; font-size: 1.6rem; line-height: 1.15; }
.featured-text span { display: block; margin-top: 6px; font-size: .9rem; opacity: .9; }
.featured-text .featured-more { display: inline-block; margin-top: 14px; padding-bottom: 3px; border-bottom: 2px solid var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: 1; }

@media (min-width: 720px) {
    .featured-row { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 4px 0 14px; }
}

/* Dish rows (menu) */
.dish { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 8px; background: #fff; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.dish img { width: 80px; height: 80px; flex-shrink: 0; object-fit: cover; border-radius: calc(var(--radius) * .75); }
.dish-text { flex: 1; min-width: 0; }
.dish-text b { display: block; }
.dish-text span { display: block; font-size: .875rem; opacity: .75; }
.price { color: var(--accent); font-weight: 700; white-space: nowrap; }
.dish-compact { background: transparent; box-shadow: none; border-bottom: 1px dashed var(--accent-soft); border-radius: 0; padding: 8px 4px; margin: 0; }

/* Menu: fold-out categories */
.menu details { margin-bottom: 10px; }
.menu details summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #fff; border-radius: var(--radius); font-weight: 800; cursor: pointer; list-style: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.menu details summary::-webkit-details-marker { display: none; }
/* The "+" is two bars; opening a category folds the upright bar away into a "−" */
.menu details summary::after { content: ""; flex-shrink: 0; width: 14px; height: 14px; background: linear-gradient(var(--accent) 0 0) center / 100% 2.5px no-repeat, linear-gradient(var(--accent) 0 0) center / 2.5px 100% no-repeat; }
.menu details[open] summary::after { background-size: 100% 2.5px, 2.5px 0; }
.menu .dishes { padding: 10px 0 4px; }

/* Contact and legal */
.card { margin-bottom: 14px; padding: 4px 18px 14px; background: #fff; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.hours { border-collapse: collapse; width: 100%; }
.hours th { text-align: left; font-weight: 600; padding: 4px 12px 4px 0; }
.hours td { padding: 4px 0; }
.legal { max-width: 70ch; }

/* Footer */
.site-footer { margin-top: 3rem; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--accent-soft); font-size: .875rem; opacity: .85; }
.site-footer a { color: inherit; }

/* Coming soon */
.coming-soon main { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; text-align: center; }

/* Home "Aktuelles & Angebote" */
.teaser-grid { display: grid; gap: 14px; }
.teaser { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.teaser img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.teaser-text { display: block; padding: 12px 14px 16px; }
.teaser-text b { display: block; font-size: 1.05rem; }
.teaser-text span { display: block; font-size: .9rem; opacity: .75; }
@media (min-width: 560px) { .teaser-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .teaser-grid { grid-template-columns: repeat(3, 1fr); } }

/* Home "Willkommen": the text, and next to it (below it on phones) the ambience collage: a large oval
   and a small circle of photos, crossed by tilted rings */
.intro { white-space: pre-line; max-width: 70ch; font-size: 1.05rem; }
.welcome h2 { font-size: 2rem; }
.welcome h2 .line { display: block; }
.shine { color: var(--accent); }
.collage { position: relative; width: 88%; max-width: 340px; aspect-ratio: 1 / 1.12; margin: 2rem auto 0; }
.collage-frame { position: absolute; overflow: hidden; border-radius: 50%; }
.collage-large { left: 16%; top: 4%; width: 68%; aspect-ratio: 3 / 4.2; }
.collage-small { left: 2%; bottom: 4%; z-index: 1; width: 34%; aspect-ratio: 1; border: 5px solid var(--bg); }
.collage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.collage img.active { opacity: 1; }   /* site.js moves "active" along (a slideshow) */
.rings { position: absolute; left: -6%; top: -4%; z-index: 2; width: 112%; height: 108%; overflow: visible; pointer-events: none; }
.rings g { transform: rotate(-28deg); transform-origin: center; }
.rings ellipse { fill: none; stroke: var(--accent); stroke-width: 1.1; }
.rings ellipse:nth-child(2) { stroke-width: .7; opacity: .7; }
.rings ellipse:nth-child(3) { stroke-width: .5; opacity: .5; }
@media (min-width: 720px) {
    .welcome:has(.collage) { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
    .welcome h2 { font-size: 2.8rem; }
    .collage { max-width: 460px; }
}

/* Home "Einblicke": mosaic, the first photo large */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 120px; gap: 8px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius) * .75); }
.gallery img:first-child { grid-row: span 2; }
@media (min-width: 720px) { .gallery { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 180px; } }

/* Home "Gästestimmen" */
.review { margin: 0 0 12px; padding: 14px 18px; background: #fff; border-radius: var(--radius); box-shadow: 0 4px 12px rgba(0, 0, 0, .06); }
.review .stars { color: var(--accent); letter-spacing: 2px; }
.review blockquote { margin: 6px 0; font-size: 1.02rem; }
.review figcaption { font-size: .85rem; opacity: .65; }

/* Footer: address, contact, opening hours, then © and the legal links */
.footer-grid { display: grid; gap: 22px; }
.footer-grid strong { display: block; margin-bottom: 6px; }
.footer-grid p { margin: 0 0 8px; }
.site-footer .hours th, .site-footer .hours td { padding: 1px 12px 1px 0; font-size: .85rem; }
.footer-bottom { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--accent-soft); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr 1.4fr; } }

/* Page headings and the plain (photo-less) cover */
@media (min-width: 720px) { h1 { font-size: 2.6rem; } }
.cover-plain .button.primary { background: var(--bg); color: var(--accent); }

/* Menu dishes: rows on phones, cards with the photo in the upper half from tablet width */
.dish { position: relative; }
.dish-info { flex-shrink: 0; width: 30px; height: 30px; border: 2px solid var(--accent); border-radius: 50%; background: #fff; color: var(--accent); font: italic 800 .95rem Georgia, serif; cursor: pointer; }
@media (min-width: 720px) {
    .dish-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 12px; }
    .dish-grid .dish { flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0; overflow: hidden; }
    .dish-grid .dish img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
    .dish-grid .dish-text { padding: 14px 16px 0; }
    .dish-grid .dish-text b { font-size: 1.1rem; }
    .dish-grid .price { padding: 8px 16px 16px; }
    .dish-grid .dish-info { position: absolute; top: 10px; right: 10px; }
}
@media (min-width: 1024px) { .dish-grid { grid-template-columns: repeat(3, 1fr); } }

/* Dish details popup (HTML popover) */
.dish-popup { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 0; border: 0; border-radius: var(--radius); background: #fff; color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.dish-popup::backdrop { background: rgba(20, 14, 10, .55); }
/* .dish .dish-popup: the popup sits inside the dish row, so it must win over the row's 80 px thumbnail rule. */
.dish .dish-popup img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.dish .dish-popup .price { padding: 0; }
.dish-popup-text { padding: 16px 20px 22px; }
.dish-popup-text h3 { margin: 0 0 4px; font-size: 1.35rem; }
.dish-popup-text p { margin: 0 0 10px; }
.dish-popup-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--text); font-size: 1.05rem; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.dish-labels span { display: inline-block; margin: 0 6px 4px 0; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .8rem; font-weight: 700; }

/* Floating order (or call) button; site.js adds "shown" once the top of the page is scrolled away */
.button.float-action { position: fixed; right: 16px; bottom: 16px; z-index: 10; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25)); }
.float-action:not(.shown) { visibility: hidden; opacity: 0; translate: 0 150%; }
.site-footer { padding-bottom: 90px; }   /* the button never covers the end of the page */

/* Motion, only for visitors who have not asked for reduced motion. public/js/site.js marks what
   starts below the fold ("reveal"), adds "revealed" when it scrolls into view and runs the cover
   slideshow. Without the script everything simply shows. */
@media (prefers-reduced-motion: no-preference) {
    /* Pages crossfade into each other (Chrome, Edge, Safari; elsewhere they switch as before) */
    @view-transition { navigation: auto; }

    /* Pulsing rings: the "open now" dot and the floating button */
    .status-open::before { --pulse-size: 6px; box-shadow: 0 0 0 0 rgba(52, 178, 106, .6); animation: pulse 2s ease-out infinite; }
    .float-action { --pulse-size: 14px; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); animation: pulse 2.4s ease-out infinite; transition: translate .6s cubic-bezier(.19, 1, .22, 1), opacity .5s, visibility .5s; }

    /* Cover: the photos settle, then drift slowly and crossfade; the text rises in */
    .cover-photo { transition: opacity 1.5s ease; animation: cover-settle 2.4s cubic-bezier(.19, 1, .22, 1), cover-drift 20s ease-in-out 2.4s infinite alternate; }
    .cover-text > * { animation: rise 1.1s cubic-bezier(.19, 1, .22, 1) .2s both; }
    .cover-text > :nth-child(2) { animation-delay: .35s; }
    .cover-text > :nth-child(3) { animation-delay: .5s; }
    .cover-text > :nth-child(4) { animation-delay: .65s; }

    /* Promo bar: the theme colour flows through lighter and darker shades; a soft sheen crosses the text */
    .promo { position: relative; overflow: hidden; background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 80%, #fff), var(--accent), color-mix(in srgb, var(--accent) 80%, #000), var(--accent)) 0 0 / 300% 100%; animation: promo-flow 10s ease-in-out infinite alternate; }
    .promo::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); pointer-events: none; animation: promo-sheen 5s ease-in-out infinite; }

    /* Welcome: the heading's lines rise one after another and the name shimmers. The collage's oval
       opens, the small photo rises, the rings draw themselves in and turn, and the photos zoom slowly. */
    .welcome h2.revealed, .collage.revealed { animation: none; }
    .welcome h2.revealed .line { animation: rise 1.1s cubic-bezier(.19, 1, .22, 1) both; }
    .welcome h2.revealed .line + .line { animation-delay: .15s; }
    .shine { background: linear-gradient(105deg, var(--accent) 40%, color-mix(in srgb, var(--accent) 35%, #fff) 50%, var(--accent) 60%) 100% 0 / 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 4.5s ease-in-out 1.5s infinite; }
    .collage.revealed .collage-large { animation: unveil 1.8s cubic-bezier(.77, 0, .18, 1) both; }
    .collage.revealed .collage-small { animation: rise 1.3s cubic-bezier(.19, 1, .22, 1) .8s both; }
    .collage.reveal ellipse { stroke-dasharray: 1; stroke-dashoffset: 1; }
    .collage.revealed ellipse { animation: draw 3s cubic-bezier(.65, 0, .35, 1) .6s forwards; }
    .collage.revealed ellipse:nth-child(2) { animation-delay: .9s; }
    .collage.revealed ellipse:nth-child(3) { animation-delay: 1.2s; }
    .rings g { animation: orbit 40s linear infinite; }
    .collage img { transition: opacity 1.6s ease; animation: collage-zoom 9s ease-in-out infinite alternate; }

    /* Reveal on scroll; cards in a row come in one after another */
    .reveal:not(.revealed) { opacity: 0; }
    .revealed { animation: rise 1.1s cubic-bezier(.19, 1, .22, 1) var(--d, 0s) both; }
    :is(.featured-card, .teaser, .gallery img):nth-child(3n+2) { --d: .12s; }
    :is(.featured-card, .teaser, .gallery img):nth-child(3n) { --d: .24s; }

    /* Hover: cards lift and their photo zooms; a light sheen sweeps across buttons */
    @media (hover: hover) {
        .featured-card, .teaser, .dish-grid .dish { transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
        :is(.featured-card, .teaser, .dish-grid .dish):hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0, 0, 0, .16); }
        :is(.featured-card, .teaser, .dish-grid .dish) > img { transition: transform 1.2s cubic-bezier(.19, 1, .22, 1); }
        :is(.featured-card, .teaser, .dish-grid .dish):hover > img { transform: scale(1.06); }
        .button { position: relative; overflow: hidden; }
        .button::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .8s cubic-bezier(.2, .7, .2, 1); }
        .button:hover::after { left: 130%; }
    }

    /* Menu: a category slides open where the browser can animate it (Chrome, Edge); the clip margin
       keeps the dish cards' shadows. Its "+" turns into a "−" everywhere. */
    @supports (interpolate-size: allow-keywords) {
        .menu { interpolate-size: allow-keywords; }
        .menu details::details-content { block-size: 0; overflow: clip; overflow-clip-margin: 24px; transition: block-size .4s cubic-bezier(.22, .61, .36, 1), content-visibility .4s allow-discrete; }
        .menu details[open]::details-content { block-size: auto; }
    }
    .menu details summary::after { transition: background-size .3s, rotate .3s; }
    .menu details[open] summary::after { rotate: 180deg; }

    /* Menu: an opened category's dishes glide in one after another (--i from site.js) */
    .menu details[open] .dish { animation: softin .6s cubic-bezier(.22, .61, .36, 1) calc(min(var(--i, 0), 8) * 50ms) both; }
    .dish-popup:popover-open { animation: popup-in .35s cubic-bezier(.22, .61, .36, 1); }
    .dish-popup:popover-open::backdrop { animation: fade-in .35s ease; }

    /* Phone navigation: the links slide in one after another */
    .nav-toggle:checked ~ .site-nav > * { animation: slide-in .4s cubic-bezier(.2, .7, .2, 1) both; }
    .nav-toggle:checked ~ .site-nav > :nth-child(2) { animation-delay: .05s; }
    .nav-toggle:checked ~ .site-nav > :nth-child(3) { animation-delay: .1s; }
    .nav-toggle:checked ~ .site-nav > :nth-child(4) { animation-delay: .15s; }

    /* Reviews: the stars pop in one by one */
    .review.revealed .stars span { display: inline-block; animation: star-pop .5s cubic-bezier(.34, 1.56, .64, 1) .3s both; }
    .review.revealed .stars span:nth-child(2) { animation-delay: .4s; }
    .review.revealed .stars span:nth-child(3) { animation-delay: .5s; }
    .review.revealed .stars span:nth-child(4) { animation-delay: .6s; }
    .review.revealed .stars span:nth-child(5) { animation-delay: .7s; }

    @keyframes cover-settle { from { transform: scale(1.15); } }
    @keyframes cover-drift { to { transform: scale(1.08); } }
    @keyframes rise { from { opacity: 0; translate: 0 40px; } }
    @keyframes softin { from { opacity: 0; translate: 0 10px; } }
    @keyframes popup-in { from { opacity: 0; translate: 0 24px; scale: .97; } }
    @keyframes fade-in { from { opacity: 0; } }
    @keyframes slide-in { from { opacity: 0; translate: -10px 0; } }
    @keyframes star-pop { from { opacity: 0; scale: .3; } }
    @keyframes pulse { to { box-shadow: 0 0 0 var(--pulse-size) transparent; } }
    @keyframes promo-flow { to { background-position: 100% 0; } }
    @keyframes promo-sheen { 60%, 100% { left: 130%; } }
    @keyframes shine { 35%, 100% { background-position: 0 0; } }
    @keyframes unveil { from { clip-path: ellipse(0% 0% at 50% 50%); } to { clip-path: ellipse(50% 50% at 50% 50%); } }
    @keyframes draw { to { stroke-dashoffset: 0; } }
    @keyframes orbit { from { transform: rotate(-28deg); } to { transform: rotate(332deg); } }
    @keyframes collage-zoom { to { transform: scale(1.12); } }
}
