/* ============================================================
   OLIVO — Cucina Mediterranea (Vortium Demo)
   Eigenständiges Stylesheet — warm, editorial, appetitlich.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600&display=swap");

:root {
    --bg:      #faf6ef;
    --bg-2:    #f1e9da;
    --cream:   #fbf8f2;
    --dark:    #2b3327;
    --dark-2:  #222a20;
    --text:    #262520;
    --text-2:  #6d6656;
    --line:    #e5ddcc;
    --accent:  #bb5a34;   /* Terracotta */
    --accent-2:#a44c29;
    --gold:    #b08b4f;   /* warmes Messing */
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --wrap: 1200px;
    --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

/* ---------- Typografie ---------- */
.display {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.7rem, 7vw, 5.4rem);
    line-height: 1.03;
    letter-spacing: -.01em;
}
.h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2rem, 4.4vw, 3.3rem);
    line-height: 1.1;
    letter-spacing: -.01em;
}
.h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.eyebrow {
    display: inline-block;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text-2); line-height: 1.7; }
.gold-word { color: var(--accent); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--sans);
    font-weight: 600; font-size: .93rem;
    padding: 15px 30px;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .3s var(--ease);
    letter-spacing: .01em;
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn-ghost:hover { background: currentColor; color: var(--dark); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
    color: #fff;
}
.header-utility {
    display: flex; align-items: center; justify-content: flex-end; gap: 22px;
    padding: 9px clamp(20px, 5vw, 56px);
    font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,.14);
}
.header-utility button, .header-utility a { background: none; border: none; color: inherit; cursor: pointer; font: inherit; opacity: .85; }
.header-utility button:hover, .header-utility a:hover { opacity: 1; }
.header-utility .sep { opacity: .4; }
.header-main {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding: 20px clamp(20px, 5vw, 56px);
}
.nav-group { display: flex; gap: 30px; font-size: .9rem; font-weight: 500; letter-spacing: .02em; }
.nav-group.right { justify-content: flex-end; }
.nav-group a { position: relative; padding: 4px 0; opacity: .9; }
.nav-group a::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--accent);
    transition: width .3s var(--ease);
}
.nav-group a:hover { opacity: 1; }
.nav-group a:hover::after { width: 100%; }
.brand {
    font-family: var(--serif); font-weight: 600; font-size: 1.7rem; letter-spacing: .12em;
    text-align: center; display: flex; flex-direction: column; align-items: center; line-height: 1;
}
.brand small { font-family: var(--sans); font-size: .56rem; letter-spacing: .34em; font-weight: 500; opacity: .7; margin-top: 6px; }

/* Header solid beim Scrollen — oder dauerhaft auf Seiten ohne dunklen Hero */
.site-header.scrolled,
.site-header.always-solid { background: var(--cream); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.site-header.scrolled .header-utility,
.site-header.always-solid .header-utility { border-bottom-color: var(--line); }
.site-header.scrolled .nav-group a::after,
.site-header.always-solid .nav-group a::after { background: var(--accent); }

.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.burger span { width: 24px; height: 2px; background: currentColor; transition: .3s var(--ease); }

/* ---------- Mobile Nav ---------- */
.m-nav {
    position: fixed; inset: 0; z-index: 99; background: var(--dark); color: #fff;
    display: flex; flex-direction: column; justify-content: center; gap: 8px;
    padding: 0 40px; opacity: 0; pointer-events: none; transform: translateY(-12px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.m-nav.open { opacity: 1; pointer-events: auto; transform: none; }
.m-nav a { font-family: var(--serif); font-size: 1.9rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .hero-bg .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; border: none; }
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(30,36,26,.35) 0%, rgba(30,36,26,.25) 45%, rgba(25,30,22,.86) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(70px, 11vh, 130px); padding-top: 200px; }
.hero .eyebrow { color: #e8c9a0; }
.hero .display { max-width: 15ch; }
.hero .lead { color: rgba(255,255,255,.9); max-width: 46ch; margin-top: 24px; }
.hero-cta { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.scroll-hint {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.scroll-hint .bar { width: 1px; height: 40px; background: rgba(255,255,255,.5); animation: scrollpulse 2s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100% { transform: scaleY(.4); opacity: .4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 150px) 0; }
.section.light { background: var(--bg); }
.section.cream { background: var(--cream); }
.section.dark { background: var(--dark); color: #fff; }
.section.dark .lead { color: rgba(255,255,255,.78); }
.section.dark .eyebrow { color: var(--gold); }

.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.editorial { max-width: 760px; }
.editorial.center { margin: 0 auto; text-align: center; }

/* ---------- Facts ---------- */
.facts { display: flex; flex-wrap: wrap; gap: clamp(30px, 6vw, 80px); margin-top: clamp(48px, 7vw, 80px); }
.fact .num { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--accent); line-height: 1; }
.section.dark .fact .num { color: var(--gold); }
.fact .lbl { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-top: 10px; }
.section.dark .fact .lbl { color: rgba(255,255,255,.6); }

/* ---------- Gerichte-Grid ---------- */
.dish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.dish { }
.dish .media { position: relative; aspect-ratio: 4/5; margin-bottom: 22px; overflow: hidden; border-radius: 3px; }
.dish .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dish:hover .media img { transform: scale(1.05); }
.dish .tag { display: inline-block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.dish .name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 6px; }
.dish .desc { font-size: .95rem; color: var(--text-2); }
.dish .price { font-family: var(--serif); font-size: 1.2rem; color: var(--text); margin-top: 12px; display: inline-block; }

/* ---------- Split (Text + Bild) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media { aspect-ratio: 4/5; overflow: hidden; border-radius: 3px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Speisekarte ---------- */
.menu-block { margin-bottom: clamp(48px, 7vw, 84px); }
.menu-block > .cat-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 30px; }
.menu-block .cat-head h3 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 500; white-space: nowrap; }
.menu-block .cat-head .rule { flex: 1; height: 1px; background: var(--line); }
.menu-block .cat-head .note { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.menu-list { display: flex; flex-direction: column; gap: 22px; }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: baseline; }
.menu-item .mi-name { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; }
.menu-item .mi-name .diet { font-family: var(--sans); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line); border-radius: 20px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.menu-item .mi-price { font-family: var(--serif); font-size: 1.28rem; color: var(--accent); font-weight: 600; }
.menu-item .mi-desc { grid-column: 1 / -1; font-size: .92rem; color: var(--text-2); max-width: 62ch; }

/* ---------- Quote ---------- */
.quote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.3; }
.quote .cite { margin-top: 26px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.section.dark .quote .cite { color: rgba(255,255,255,.6); }

/* ---------- Info-Cards (Öffnungszeiten / Adresse) ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.info-card { border: 1px solid var(--line); border-radius: 4px; padding: clamp(26px, 3vw, 40px); background: var(--cream); }
.section.dark .info-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.info-card h4 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin-bottom: 16px; }
.info-card .row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: .95rem; color: var(--text-2); border-bottom: 1px dashed var(--line); }
.section.dark .info-card .row { color: rgba(255,255,255,.72); border-bottom-color: rgba(255,255,255,.12); }
.info-card .row:last-child { border-bottom: none; }
.info-card .row strong { color: var(--text); font-weight: 600; }
.section.dark .info-card .row strong { color: #fff; }

/* ---------- Formular ---------- */
.form-card { background: var(--cream); border: 1px solid var(--line); border-radius: 5px; padding: clamp(28px, 4vw, 52px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: .98rem; color: var(--text);
    padding: 13px 15px; border: 1px solid var(--line); border-radius: 3px; background: #fff;
    transition: border-color .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .82rem; color: var(--text-2); margin-top: 14px; }

/* ---------- CTA-Band ---------- */
.cta-band { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-band .h2 { margin-bottom: 18px; }

/* ---------- Platzhalter (Bild folgt) ---------- */
.ph {
    position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
    background: repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 13px, #ece3d1 13px, #ece3d1 26px);
    border: 1px solid var(--line); color: var(--text-2); overflow: hidden; padding: 24px;
}
.ph.on-dark { background: repeating-linear-gradient(45deg, #2f382a, #2f382a 13px, #37412f 13px, #37412f 26px); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.75); }
.ph small { display: block; text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.ph.on-dark small { color: var(--gold); }
.ph p { font-size: .9rem; line-height: 1.5; }
.r-16-9 { aspect-ratio: 16/9; }
.r-4-5  { aspect-ratio: 4/5; }
.r-3-2  { aspect-ratio: 3/2; }
.r-1-1  { aspect-ratio: 1/1; }
.r-21-9 { aspect-ratio: 21/9; }

/* KI-Hinweis auf Bildern (falls Fotos KI-generiert geliefert werden) */
.ki-note {
    position: absolute; right: 8px; bottom: 8px; z-index: 3;
    font-size: .6rem; letter-spacing: .08em; text-transform: uppercase;
    background: rgba(0,0,0,.55); color: #fff; padding: 3px 8px; border-radius: 3px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-2); color: #fff; padding: clamp(60px, 8vw, 100px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(30px, 4vw, 60px); padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand { align-items: flex-start; text-align: left; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,.6); max-width: 34ch; font-size: .95rem; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: .3s var(--ease); }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h5 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col a { display: block; color: rgba(255,255,255,.65); font-size: .93rem; padding: 5px 0; transition: color .25s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 28px; font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom nav a:hover { color: #fff; }

/* ---------- Cookie-Banner ---------- */
.cookie {
    position: fixed; right: 22px; bottom: 22px; z-index: 200; max-width: 380px;
    background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,.18); transform: translateY(140%); transition: transform .5s var(--ease);
}
.cookie.show { transform: none; }
.cookie h4 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 8px; }
.cookie p { font-size: .84rem; color: var(--text-2); margin-bottom: 16px; }
.cookie p a { color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 10px 18px; font-size: .82rem; }

/* ---------- Demo-Fahne ---------- */
.demo-flag {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    background: var(--dark); color: rgba(255,255,255,.85);
    font-size: .8rem; text-align: center; padding: 9px 16px;
    border-top: 2px solid var(--accent);
}
.demo-flag strong { color: #fff; }
.demo-flag a { color: var(--gold); text-decoration: underline; }
body { padding-bottom: 40px; } /* Platz für Demo-Fahne */

/* ---------- Scroll-Reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-2 { transition-delay: .1s; }
.rv-3 { transition-delay: .2s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .nav-group, .header-utility { display: none; }
    .header-main { grid-template-columns: auto 1fr auto; }
    .brand { align-items: flex-start; }
    .header-main .brand { grid-column: 2; justify-self: center; }
    .burger { display: flex; }
    .site-header { color: #fff; }
    .dish-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .split { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .info-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .hero-inner { padding-top: 150px; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
    .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
    .menu-item { grid-template-columns: 1fr; }
    .menu-item .mi-price { grid-row: 1; justify-self: start; }
}

/* ============================================================
   Zurueck-zu-Vortium-Button (Demo-Chrome, immer sichtbar)
   ============================================================ */
.back-to-vortium {
    position: fixed; left: 16px; bottom: 52px; z-index: 160;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 16px 9px 13px; border-radius: 100px;
    background: #0b1020; color: #fff;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: .82rem; font-weight: 600; letter-spacing: .01em; line-height: 1;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
    transition: transform .25s ease, box-shadow .25s ease;
}
.back-to-vortium:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.36); color: #fff; }
.back-to-vortium img { width: 20px; height: 20px; border-radius: 5px; display: block; }
.back-to-vortium .btv-arrow { font-size: 1rem; line-height: 1; transition: transform .25s ease; }
.back-to-vortium:hover .btv-arrow { transform: translateX(-3px); }
@media (max-width: 600px) {
    .back-to-vortium { left: 10px; bottom: 48px; padding: 8px 13px 8px 11px; font-size: .76rem; }
    .back-to-vortium img { width: 18px; height: 18px; }
}
