/* Ristorante San Remo – lokale, frameworkfreie Styles */
:root {
    --ivory: #f5efe2;
    --paper: #fffaf1;
    --paper-2: #f0e4d1;
    --ink: #28251f;
    --muted: #6e675b;
    --green: #204b3b;
    --green-deep: #17362c;
    --terracotta: #a94e35;
    --wine: #7e2f2c;
    --gold: #b39255;
    --line: rgba(52, 43, 30, .16);
    --shadow: 0 20px 55px rgba(47, 37, 24, .12);
    --radius: 22px;
    --serif: Georgia, "Times New Roman", Times, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); line-height: 1.65; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--terracotta); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #d58b50; outline-offset: 4px; border-radius: 4px; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 9999; padding: 10px 14px; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(245,239,226,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.site-header::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--green) 0 33.3%, var(--paper) 33.3% 66.6%, var(--terracotta) 66.6%); }
.header-inner { min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; width: min(270px, 52vw); flex: 0 0 auto; }
.brand img { width: 100%; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.main-nav a { position: relative; color: var(--ink); text-decoration: none; font-weight: 650; font-size: .94rem; padding: 12px 0; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 1px; transform: scaleX(0); background: var(--terracotta); transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 10px 13px; min-height: 46px; border-radius: 999px; font: inherit; font-weight: 700; gap: 8px; align-items: center; }

h1, h2, h3 { font-family: var(--serif); color: var(--green-deep); line-height: 1.08; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.5rem, 6vw, 5.6rem); margin: .15em 0 .28em; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); margin: .2em 0 .45em; letter-spacing: -.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin: 0 0 1em; }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 800; color: var(--terracotta); }
.eyebrow.light { color: #e5be86; }
.section { padding: clamp(70px, 9vw, 128px) 0; }

.hero { padding: clamp(54px, 7vw, 96px) 0 clamp(80px, 10vw, 130px); display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(38px, 6vw, 86px); }
.hero h1 { max-width: 10ch; }
.hero-lead { max-width: 55ch; font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 760; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: #fff; box-shadow: 0 12px 28px rgba(32,75,59,.20); }
.button-primary:hover { background: var(--green-deep); color: #fff; }
.button-ghost { border: 1px solid rgba(32,75,59,.28); color: var(--green); background: rgba(255,255,255,.28); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-facts div { display: grid; gap: 2px; }
.hero-facts span { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.hero-facts strong { font-family: var(--serif); font-size: 1.12rem; color: var(--green-deep); }
.arch-frame { position: relative; overflow: hidden; border-radius: 48% 48% 22px 22px / 24% 24% 22px 22px; box-shadow: var(--shadow); background: var(--paper-2); }
.arch-frame::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.48); border-radius: inherit; pointer-events: none; }
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media { aspect-ratio: 1 / 1.08; min-height: 520px; }
.small-arch { border-radius: 42% 42% 20px 20px / 20% 20% 20px 20px; }

.warm-section { background: var(--paper-2); border-block: 1px solid rgba(103,76,44,.12); }
.welcome-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(40px, 8vw, 110px); }
.section-heading { position: sticky; top: 150px; align-self: start; }
.prose { max-width: 720px; font-size: 1.06rem; }
.prose p { margin-bottom: 1.25em; }
.signature { font-family: var(--serif); font-size: 1.55rem; color: var(--green); }

.split-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(42px, 7vw, 90px); align-items: center; }
.feature-image { aspect-ratio: 4 / 3; }
.feature-copy { max-width: 540px; }
.feature-copy p { font-size: 1.08rem; }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; text-decoration-thickness: 1px; }

.dark-section { background: var(--green-deep); color: #f7f1e5; }
.dark-section h2 { color: #fff8eb; }
.dark-section a { color: #fff; }
.visit-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(42px, 8vw, 110px); align-items: start; }
.hours-list { margin: 28px 0; border-top: 1px solid rgba(255,255,255,.2); }
.hours-list div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.hours-list dt { font-weight: 700; }
.hours-list dd { margin: 0; }
.contact-card { background: var(--paper); color: var(--ink); padding: clamp(28px, 5vw, 52px); border-radius: var(--radius); box-shadow: 0 30px 70px rgba(0,0,0,.16); }
.contact-card h2 { font-size: clamp(2rem, 3.5vw, 3.1rem); }
.contact-card a:not(.button) { font-size: 1.1rem; font-weight: 800; }

.page-hero { padding: clamp(54px, 7vw, 88px) 0 50px; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(34px, 7vw, 86px); align-items: center; }
.page-hero h1 { font-size: clamp(3.2rem, 7vw, 6.4rem); }
.page-hero p { max-width: 62ch; font-size: 1.08rem; color: var(--muted); }
.page-hero-image { aspect-ratio: 3 / 2; max-height: 430px; }
.page-intro { padding: clamp(65px, 8vw, 108px) 0 36px; max-width: 980px; }
.page-intro p:last-child { max-width: 58ch; color: var(--muted); font-size: 1.08rem; }

.jump-nav { position: sticky; top: 105px; z-index: 40; display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; background: rgba(245,239,226,.96); border-block: 1px solid var(--line); scrollbar-width: thin; }
.jump-nav a { flex: 0 0 auto; padding: 8px 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 700; }
.menu-page { padding: 30px 0 100px; }
.menu-section { scroll-margin-top: 170px; padding: clamp(50px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.menu-section-title { display: grid; grid-template-columns: .46fr 1.54fr; column-gap: 40px; align-items: start; margin-bottom: 28px; }
.menu-section-title .eyebrow { grid-column: 1; }
.menu-section-title h2 { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.menu-section-title > p:not(.eyebrow) { grid-column: 2; margin-top: 8px; color: var(--muted); }
.menu-list { border-top: 1px solid var(--line); }
.menu-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.menu-item h3 { margin: 0 0 4px; font-size: 1.22rem; color: var(--ink); }
.menu-item h3 small, .delivery-pizza h3 small { font: 600 .72rem/1.3 var(--sans); color: var(--muted); }
.menu-item p { margin: 0; color: var(--muted); }
.menu-price { white-space: nowrap; font-family: var(--serif); color: var(--green-deep); font-size: 1.15rem; font-weight: 700; }
.subsection-heading { margin: 50px 0 12px; font-size: 1.7rem; color: var(--terracotta); }
.menu-note, .source-note, .delivery-callout, .operator-warning { border: 1px solid rgba(169,78,53,.24); background: #f7e8d8; border-radius: var(--radius); padding: 20px 22px; }
.menu-note { margin-top: 28px; }
.source-note { margin-top: 52px; }
.source-note p { margin-bottom: 10px; }
.section-inline-note { color: var(--muted); }

.delivery-callout { margin-top: 24px; margin-bottom: 28px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; background: var(--green-deep); color: #fff; border-color: transparent; }
.delivery-callout h2 { color: #fff; margin-bottom: 0; }
.delivery-fees p { margin: 0 0 8px; }
.delivery-pizza-list { border-top: 1px solid var(--line); }
.delivery-pizza { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.delivery-pizza h3 { margin: 0 0 4px; font-size: 1.16rem; color: var(--ink); }
.delivery-pizza p { margin: 0; color: var(--muted); }
.price-set { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.price-set div { min-width: 0; text-align: center; padding: 10px 7px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.price-set dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.price-set dd { margin: 2px 0 0; font-weight: 800; color: var(--green-deep); white-space: nowrap; font-size: .92rem; }
.legend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.legend-grid > div { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.legend-grid h3 { margin-top: 0; }

.gallery-shell { padding-bottom: 110px; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.gallery-card { position: relative; grid-column: span 4; border: 0; padding: 0; background: var(--paper); border-radius: 18px; overflow: hidden; cursor: zoom-in; box-shadow: 0 10px 30px rgba(44,33,21,.08); text-align: left; }
.gallery-card:nth-child(1), .gallery-card:nth-child(6) { grid-column: span 8; }
.gallery-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.gallery-card:hover img { transform: scale(1.025); }
.gallery-caption { display: block; padding: 14px 16px 16px; color: var(--ink); font: 700 .94rem/1.4 var(--serif); }
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(15,17,15,.94); display: grid; grid-template-columns: 74px minmax(0,1fr) 74px; align-items: center; padding: 28px; }
.lightbox-figure { margin: 0; display: grid; justify-items: center; gap: 12px; max-height: calc(100vh - 56px); }
.lightbox-figure img { max-width: min(1500px, 100%); max-height: calc(100vh - 120px); object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.lightbox-figure figcaption { color: #fff; text-align: center; font-size: .95rem; }
.lightbox-nav, .lightbox-close { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; width: 52px; height: 52px; border-radius: 999px; font: 400 1.8rem/1 var(--sans); cursor: pointer; }
.lightbox-close { position: absolute; top: 18px; right: 18px; }
.lightbox-prev { justify-self: start; }
.lightbox-next { justify-self: end; }
.lightbox-open { overflow: hidden; }

.legal-page { padding: clamp(70px, 9vw, 110px) 0 110px; max-width: 900px; }
.legal-page h1 { font-size: clamp(3rem, 7vw, 5.8rem); }
.legal-page h2 { margin-top: 46px; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.legal-page p, .legal-page li { max-width: 76ch; }
.legal-facts { padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.operator-warning { margin-top: 44px; background: #fff1c9; border-color: #d2ad4b; }
.operator-warning code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.site-footer { background: #171b18; color: #e9e5db; padding: 62px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr .8fr; gap: 46px; }
.footer-brand img { width: min(270px, 100%); filter: invert(1) sepia(.12) brightness(1.55); opacity: .94; }
.footer-brand p { max-width: 34ch; color: #bdb8ad; }
.footer-heading { font: 700 1rem/1.2 var(--sans); color: #fff; text-transform: uppercase; letter-spacing: .1em; margin: 8px 0 16px; }
.site-footer address { font-style: normal; color: #c8c3b9; }
.site-footer a { color: #f0ebe0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: #9f9a90; font-size: .86rem; }

@media (max-width: 980px) {
    .header-inner { min-height: 88px; }
    .hero { grid-template-columns: 1fr; }
    .hero h1 { max-width: 13ch; }
    .hero-media { min-height: 0; aspect-ratio: 16 / 10; }
    .welcome-grid { grid-template-columns: 1fr; gap: 24px; }
    .section-heading { position: static; }
    .visit-grid { grid-template-columns: 1fr; }
    .gallery-card { grid-column: span 6; }
    .gallery-card:nth-child(1), .gallery-card:nth-child(6) { grid-column: span 6; }
}

@media (max-width: 860px) {
    .brand { width: 220px; }
    .menu-toggle { display: inline-flex; }
    .main-nav { display: none; position: absolute; top: 91px; left: 0; right: 0; padding: 16px 20px 24px; background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: 0 22px 40px rgba(40,32,22,.12); }
    .nav-open .main-nav { display: grid; gap: 4px; }
    .main-nav a { padding: 12px; background: var(--paper); border-radius: 12px; }
    .main-nav a::after { display: none; }
    .page-hero { grid-template-columns: 1fr; }
    .page-hero-image { max-height: none; aspect-ratio: 16 / 9; }
    .jump-nav { top: 91px; width: 100%; padding-inline: 20px; }
    .menu-section { scroll-margin-top: 155px; }
    .menu-section-title { grid-template-columns: 1fr; }
    .menu-section-title .eyebrow, .menu-section-title h2, .menu-section-title > p:not(.eyebrow) { grid-column: 1; grid-row: auto; }
    .delivery-callout { grid-template-columns: 1fr; gap: 16px; }
    .delivery-pizza { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .shell { width: min(100% - 28px, 1180px); }
    .header-inner { min-height: 78px; }
    .brand { width: 190px; }
    .main-nav { top: 81px; }
    .menu-toggle-label { display: none; }
    .hero { padding-top: 42px; gap: 34px; }
    .hero-actions { flex-direction: column; }
    .button { width: 100%; }
    .hero-facts { display: grid; grid-template-columns: 1fr 1fr; }
    .split-feature { grid-template-columns: 1fr; }
    .feature-image { order: 2; }
    .jump-nav { top: 81px; padding-inline: 14px; }
    .menu-item { grid-template-columns: 1fr; gap: 8px; }
    .menu-price { justify-self: start; padding: 4px 10px; background: var(--paper); border-radius: 999px; border: 1px solid var(--line); }
    .price-set { grid-template-columns: 1fr 1fr 1fr; }
    .price-set dd { white-space: normal; }
    .legend-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-card, .gallery-card:nth-child(1), .gallery-card:nth-child(6) { grid-column: auto; }
    .lightbox { grid-template-columns: 48px minmax(0,1fr) 48px; padding: 16px 8px; }
    .lightbox-nav { width: 44px; height: 44px; font-size: 1.4rem; }
    .lightbox-close { width: 44px; height: 44px; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    h1 { font-size: clamp(2.3rem, 13vw, 3.4rem); }
    .hero-facts { grid-template-columns: 1fr; }
    .price-set { gap: 4px; }
    .price-set div { padding: 8px 4px; }
    .price-set dd { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
