/* Restaurant-Seite {slug}.gastro-online.at – Farben/Schriften je Wirt über --p, --a, --fh, --fb */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #F6F2EA;
  --surface: #FFFFFF;
  --ink: #1A1714;
  --muted: #5E574E;
  --line: #E4DDD0;
  --ok: #2F7D4F;
  --ok-soft: #E3F1E8;
  --warn: #8F3017;
  --warn-soft: #FBE7E1;
  --wrap: 1040px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font-family: var(--fb); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--a); }
h1, h2, h3, p { margin: 0; }

.sf-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* Kopf */
.sf-header { background: var(--surface); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.sf-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.sf-brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; min-width: 0; }
.sf-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; flex: none; }
.sf-brand-name { font-family: var(--fh); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Buttons */
.sf-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; transition: filter .15s ease, background .15s ease; }
.sf-btn-primary { background: var(--p); color: #fff; }
.sf-btn-primary:hover { filter: brightness(.92); }
.sf-btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); min-height: 42px; padding: .5rem 1rem; font-size: .95rem; }
.sf-btn-ghost:hover { border-color: var(--ink); }
.sf-btn:focus-visible, .sf-brand:focus-visible, .sf-footer a:focus-visible { outline: 3px solid var(--p); outline-offset: 3px; }

/* Titelbild */
.sf-cover { height: clamp(180px, 34vw, 380px); background-size: cover; background-position: center; }
.sf-hero { padding-block: clamp(24px, 5vw, 56px); display: grid; gap: clamp(16px, 2.5vw, 24px); }
.sf-hero.has-cover { margin-top: clamp(-96px, -8vw, -48px); }

/* Karten */
.sf-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); }
.sf-intro { display: grid; gap: 1rem; justify-items: start; box-shadow: 0 1px 2px rgb(26 23 20 / .04), 0 18px 48px -24px rgb(26 23 20 / .18); }
.sf-title { font-family: var(--fh); font-weight: 600; font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); line-height: 1.05; letter-spacing: -0.025em; }
.sf-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 42rem; }
.sf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2.5vw, 24px); }
.sf-h2 { font-family: var(--fh); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.015em; margin-bottom: 1rem; }
.sf-h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.5rem 0 .5rem; }

/* Status */
.sf-status { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; background: #EDE5D6; color: var(--muted); }
.sf-status.is-open { background: var(--ok-soft); color: #235E3B; }
.sf-status.is-paused { background: var(--warn-soft); color: var(--warn); }
.sf-dot { width: .5rem; height: .5rem; border-radius: 999px; background: currentColor; }

.sf-notice { width: 100%; background: var(--bg); border-radius: 16px; padding: 1rem 1.2rem; color: var(--ink); }
.sf-notice strong { display: block; margin-bottom: .15rem; }

/* Öffnungszeiten */
.sf-hours { margin: 0; display: grid; }
.sf-hours > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid #F0EAE0; }
.sf-hours > div:last-child { border-bottom: 0; }
.sf-hours dt { font-weight: 500; }
.sf-hours dd { margin: 0; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.sf-hours .is-today dt, .sf-hours .is-today dd { color: var(--ink); font-weight: 600; }
.sf-today { margin-left: .5rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--a); font-weight: 600; }
.sf-special { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .95rem; }
.sf-special li { display: flex; justify-content: space-between; gap: 1rem; }
.sf-special li span:last-child { color: var(--muted); text-align: right; }

.sf-address { font-style: normal; line-height: 1.7; }
.sf-modes { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sf-modes li { font-size: .85rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--line); }

/* Rechtstexte */
.sf-legal { display: grid; gap: 1.25rem; }
.sf-back a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.sf-back a:hover { color: var(--ink); }
.sf-prose { max-width: 44rem; display: grid; gap: .9rem; }
.sf-prose h2, .sf-prose h3 { font-family: var(--fh); font-weight: 600; margin-top: .75rem; }
.sf-prose p, .sf-prose ul, .sf-prose ol { margin: 0; }
.sf-prose ul, .sf-prose ol { padding-left: 1.3rem; }

/* Fuß */
.sf-footer { border-top: 1px solid var(--line); background: var(--surface); padding-bottom: env(safe-area-inset-bottom, 0px); }
.sf-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: 1.25rem; font-size: .875rem; color: var(--muted); }
.sf-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.sf-footer a { color: var(--muted); text-decoration: none; }
.sf-footer a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 560px) {
  .sf-header-call span { display: none; }
  .sf-header-call { padding: .5rem .75rem; }
  .sf-intro .sf-btn-primary { width: 100%; }
  .sf-footer-inner { flex-direction: column; align-items: flex-start; }
}
/* Zeitfenster nie mitten drin umbrechen – lieber je Fenster eine Zeile */
.sf-hours dd { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 .9rem; }
.sf-hours dd span { white-space: nowrap; }
