/* =========================================================
   OPPA — shared extras and sub-pages (Speisekarte, Kontakt,
   Impressum, Datenschutz). Pages follow the Jasuvi page set
   but keep the Ovena look from styles.css / sections.css.
   ========================================================= */

/* ---------- Shared ---------- */
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 8px;
  background: var(--brand); color: var(--surface-2);
}
.skip-link:focus { top: 12px; }
.site-nav a[aria-current="page"] { background: var(--accent-tint); }
.footer-slogan { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }

/* Floating order + reservation buttons (client requirement: always visible while scrolling) */
.float-cta {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: grid; gap: 10px; transition: transform .35s var(--ease), opacity .35s;
}
.float-cta .btn { justify-content: flex-start; box-shadow: 0 14px 30px -12px rgba(63, 91, 42, .45); }
.float-cta .btn i { font-size: 15px; }
.float-cta.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }

/* ---------- Sub-page hero (Ovena hero card, smaller) ---------- */
.subpage { padding-bottom: 120px; }
.page-hero { padding-top: 158px; }
.page-hero-card {
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 30px;
  padding: 60px 54px; border-radius: var(--radius-lg); background: var(--surface); overflow: hidden;
}
.page-hero-copy { display: grid; gap: 22px; justify-items: start; }
.page-hero-copy .display { max-width: 620px; }
.page-hero-media { position: relative; display: grid; place-items: center; }
.page-hero-media::before {
  content: ""; position: absolute; width: 110%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 137, 162, .4) 0%, rgba(255, 137, 162, .12) 40%, transparent 66%);
}
.page-hero-media img { position: relative; width: min(340px, 100%); border-radius: 50%; }
.page-hero--plain .container { display: grid; gap: 18px; justify-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }

/* ---------- Speisekarte ---------- */
.menu-page { padding-top: 56px; }
.menu-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.filter-btn {
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 500;
}
.filter-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--surface-2); }
.menu-chips {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 130px); z-index: 20;
  margin: 0 -8px 40px; padding: 8px; border-radius: 18px;
  background: rgba(251, 241, 241, .94); backdrop-filter: blur(8px);
}
.menu-chips-track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.menu-chips a {
  flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--accent-soft);
  background: var(--surface-2); color: var(--brand); font-size: 14px; font-weight: 500; white-space: nowrap;
}
.menu-chips a:hover, .menu-chips a.is-active { background: var(--accent-tint); border-color: var(--accent); }
.menu-cat { padding-top: 40px; scroll-margin-top: 210px; }
.menu-cat[hidden] { display: none; }
.menu-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.menu-cat .title { font-size: clamp(26px, 3vw, 36px); }
.menu-count { color: var(--brand); font-size: 14px; font-weight: 600; }
.menu-note { margin-top: 8px; color: var(--brand); font-weight: 500; }
.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.dish {
  display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start;
  padding: 18px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.dish:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.dish[hidden] { display: none; }
.dish-img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.dish-img--empty { display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); font-size: 28px; }
.dish-body { display: grid; gap: 8px; min-width: 0; }
.dish-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dish-head h3 { color: var(--heading); font-size: 18px; font-weight: 600; line-height: 1.35; }
.dish-code {
  display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; vertical-align: 2px;
  background: var(--accent-tint); color: var(--plum); font-size: 12px; font-weight: 700;
}
.dish-price { flex: none; color: var(--brand); font-weight: 700; white-space: nowrap; }
.dish-desc { font-size: 14px; line-height: 1.55; }
.dish-variants { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.dish-variants li { display: flex; justify-content: space-between; gap: 12px; padding-top: 4px; border-top: 1px dashed var(--line); }
.dish-variants li span:last-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.dish-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  background: var(--bg); color: var(--ink); font-weight: 600;
}
.tag-vegan { background: #e5efdc; color: var(--brand); }
.tag-spicy { background: #ffe1dc; color: #a12d1a; }
.allergens { color: var(--muted); }
.menu-empty { padding: 40px 0; text-align: center; }

.bubble-tea { padding-top: 120px; }
.bubble-lead { max-width: 620px; }
.bubble-board { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }

.allergen-legend { margin-top: 100px; padding: 40px; border-radius: var(--radius-lg); background: var(--surface); }
.allergen-legend dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 28px; margin: 24px 0 0; }
.allergen-legend dl div { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.allergen-legend dt { flex: none; min-width: 26px; color: var(--plum); font-weight: 700; }
.allergen-legend dd { margin: 0; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 80px; }
.contact-card { display: grid; gap: 22px; align-content: start; padding: 44px; border-radius: var(--radius-lg); background: var(--surface); }
.hours-list { display: grid; grid-template-columns: auto 1fr; margin: 0 0 12px; }
.hours-list dt, .hours-list dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours-list dt { padding-right: 24px; color: var(--ink); font-weight: 600; }
.hours-list dd { text-align: right; }
.contact-lines { display: grid; gap: 12px; font-style: normal; color: var(--ink); }
.contact-lines i { width: 22px; color: var(--brand); }
.contact-lines a:hover { color: var(--brand); }
.contact-media { position: relative; margin: 0; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; }
.contact-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-tag {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface-2); color: var(--brand); font-size: 14px; font-weight: 600;
}
.contact-form-section { padding-bottom: 40px; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; text-align: left; font-size: 14px; }
.consent input { flex: none; width: 18px !important; height: 18px !important; margin-top: 3px; accent-color: var(--brand); }
.consent a { color: var(--brand); text-decoration: underline; }
.visit { padding-top: 60px; }
.visit-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 7; }
.visit-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.visit-card:hover img { transform: scale(1.03); }
.visit-overlay {
  position: absolute; left: 32px; bottom: 32px; display: grid; gap: 14px; justify-items: start;
  padding: 28px 30px; border-radius: var(--radius-md); background: rgba(255, 248, 248, .94);
}

/* ---------- Impressum / Datenschutz ---------- */
.legal { max-width: 860px; padding-top: 30px; }
.legal-todo { margin: 0 0 20px; padding: 14px 18px; border-radius: 12px; background: var(--accent-tint); color: var(--plum); font-size: 14px; }
.legal-block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.legal-block h2 { margin-bottom: 10px; color: var(--heading); font-size: 22px; font-weight: 600; }
.legal-block p + p { margin-top: 10px; }
.legal a { color: var(--brand); text-decoration: underline; overflow-wrap: anywhere; }

/* ---------- Breakpoints ---------- */
@media (max-width: 1024px) {
  .dish-grid { grid-template-columns: 1fr; }
  .allergen-legend dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .logo img { height: 60px; }
  .page-hero { padding-top: 106px; }
  .page-hero-card { grid-template-columns: 1fr; padding: 34px 22px 40px; }
  .page-hero-media img { width: min(220px, 70%); }
  .menu-chips { top: calc(env(safe-area-inset-top, 0px) + 96px); }
  .menu-cat { scroll-margin-top: 170px; }
  .dish { grid-template-columns: 72px 1fr; gap: 14px; padding: 14px; }
  .dish-img { width: 72px; height: 72px; }
  .dish-head { flex-direction: column; gap: 4px; }
  .allergen-legend { padding: 26px 20px; }
  .allergen-legend dl { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; padding-top: 50px; }
  .contact-card { padding: 30px 22px; }
  .contact-media { min-height: 300px; }
  .visit-card { aspect-ratio: 4 / 5; }
  .visit-overlay { left: 14px; right: 14px; bottom: 14px; padding: 20px; }
  /* Floating actions become a bottom bar on phones */
  .float-cta {
    left: 0; right: 0; bottom: 0; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 248, 248, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
  }
  .float-cta .btn { justify-content: center; height: 46px; padding: 0 12px; font-size: 15px; box-shadow: none; }
  /* No body padding for the bottom bar: it hides itself once the footer is in view,
     and body padding showed as a blush strip under the green footer. */
}

/* ---------- Line-break polish (short labels never break mid-phrase) ---------- */
/* Badges/eyebrows: if they must wrap, split evenly ("…Freiheit · / Feilitzschstr. 1"). */
.badge, .eyebrow, .story-card-foot { text-wrap: balance; }
.hours-list dd, .btn, .menu-code, .price { white-space: nowrap; }
.hours-list dt { text-wrap: balance; }
.visit-overlay .btn { font-size: 15px; padding: 0 18px; }
@media (max-width: 1024px) {
  .story-card-foot { gap: 10px; padding: 12px 14px; font-size: 14px; }
}
@media (max-width: 767px) {
  .badge { padding: 7px 12px; font-size: 12.5px; letter-spacing: .01em; }
  /* Sub-page heroes: both buttons side by side, sharing the width. */
  .page-hero .btn-row { flex-direction: row; flex-wrap: nowrap; gap: 10px; width: 100%; }
  .page-hero .btn-row .btn { flex: 1 1 0; min-width: 0; height: 46px; padding: 0 10px; gap: 8px; font-size: 15px; }
}
@media (max-width: 380px) {
  /* 320–380px: drop the arrow/phone icons so both labels fit in one row. */
  .page-hero .btn-row .btn i { display: none; }
  .page-hero .btn-row .btn { font-size: 14px; }
  .float-cta { gap: 6px; padding-inline: 8px; }
  .float-cta .btn { padding: 0 8px; gap: 6px; font-size: 14px; }
  .float-cta .btn i { font-size: 13px; }
}
@media (max-width: 400px) {
  /* Opening hours on narrow phones: day label above its time, left-aligned. */
  .hours-list { grid-template-columns: 1fr; }
  .hours-list dt { padding: 12px 0 2px; border-bottom: 0; }
  .hours-list dd { padding: 0 0 12px; text-align: left; }
}
