/* Stadtcafé — shared design system: tokens, type, header, buttons, forms, footer. */

@font-face { font-family: "Source Serif 4 Display"; src: url("fonts/source-serif-4-display-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

:root {
  --night: #0e0c0a;
  --night-2: #16120f;
  --night-3: #221c17;
  --cream: #f3ecdf;
  --paper: #f1e9db;
  --latte: #e5d4ba;
  --caramel: #d2b287;
  --ink: #17120e;
  --ink-2: #4b4037;
  --oak: #c9a06f;
  --oak-deep: #7a5634;
  --spritz: #ea5a2b;
  --spritz-deep: #b5411b;
  --glow: #f4b060;
  --open: #46c07c;
  --closed: #e2483d;
  --on-dark-2: rgba(243, 236, 223, .7);
  --on-dark-3: rgba(243, 236, 223, .5);
  --line-dark: rgba(243, 236, 223, .14);
  --line-light: rgba(23, 18, 14, .15);
  /* Never closer to the edge than the notch or rounded corners allow (viewport-fit=cover). */
  --gutter: max(clamp(1.25rem, 4vw, 4rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --section: clamp(5.5rem, 11vw, 10.5rem);
  --header: 76px;
  --display: "Source Serif 4 Display", "Source Serif 4", Georgia, serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .15, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 1rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; color: var(--cream); background: var(--night); font: 400 1.0625rem/1.62 var(--serif); font-variant-numeric: oldstyle-nums proportional-nums; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--spritz); outline-offset: 4px; border-radius: 2px; }
::selection { color: var(--ink); background: var(--glow); }

.skip-link { position: fixed; z-index: 100; top: 1rem; left: 1rem; padding: .8rem 1.1rem; color: var(--ink); background: var(--cream); font: 600 .9rem/1 var(--sans); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.shell { width: min(1440px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.display-xxl, .display-xl, .display-l, .display-m { font-family: var(--display); font-weight: 700; letter-spacing: -.022em; text-wrap: balance; font-variant-numeric: lining-nums; }
.display-xxl { font-size: clamp(3.4rem, 8.6vw, 10.5rem); line-height: .92; }
.display-xl { font-size: clamp(2.9rem, 6.4vw, 7.4rem); line-height: .95; }
.display-l { font-size: clamp(2.35rem, 4.5vw, 4.9rem); line-height: 1; }
.display-m { font-size: clamp(1.7rem, 2.6vw, 2.6rem); line-height: 1.08; letter-spacing: -.012em; }
.lead { font-size: clamp(1.18rem, 1.55vw, 1.5rem); line-height: 1.5; }
.eyebrow { display: block; margin-bottom: 1.1rem; color: var(--oak); font: 400 1.08rem/1.2 var(--serif); font-variant-caps: all-small-caps; letter-spacing: .085em; }
.on-light { color: var(--ink); color-scheme: light; }
.on-light .eyebrow, .eyebrow.on-light { color: var(--oak-deep); }
.muted { color: var(--on-dark-2); }
.on-light .muted { color: var(--ink-2); }
.placeholder { color: var(--glow); font-variant-numeric: lining-nums; }
.on-light .placeholder { color: var(--spritz-deep); }

/* Header */
.site-header { position: fixed; z-index: 40; inset: 0 0 auto; display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); height: var(--header); padding-inline: var(--gutter); border-bottom: 1px solid transparent; transition: background .35s ease, border-color .35s ease; }
.site-header.is-solid { background: rgba(14, 12, 10, .94); border-color: var(--line-dark); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.wordmark { position: relative; z-index: 2; display: block; flex: none; }
/* The café's own wordmark (assets/stadtcafe-logo-header.svg, Mike's transparent logo file), sized by height. */
.wordmark svg { display: block; height: 1.25rem; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.6vw, 2.6rem); margin-left: auto; }
.site-nav > a { position: relative; padding: .4rem 0; white-space: nowrap; color: var(--on-dark-2); font: 550 .95rem/1 var(--sans); font-stretch: 108%; transition: color .25s ease; }
.site-nav > a::after { position: absolute; right: 0; bottom: -.1rem; left: 0; height: 1px; content: ""; background: var(--spritz); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.site-nav > a:hover, .site-nav > a[aria-current="page"] { color: var(--cream); }
.site-nav > a:hover::after, .site-nav > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-meta { display: none; }
/* Language switcher DE · EN · IT: on desktop after the page links, next to the status pill; in the phone menu above the address. */
.lang-switch { display: flex; align-items: center; padding-left: clamp(.7rem, 1.4vw, 1.3rem); border-left: 1px solid var(--line-dark); color: var(--on-dark-3); font: 400 1.02rem/1 var(--serif); font-variant-caps: all-small-caps; letter-spacing: .085em; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 1.75rem; min-height: 1.75rem; color: var(--oak); transition: color .25s ease; }
.lang-switch a:hover { color: var(--glow); }
.lang-switch a[aria-current="true"] { color: var(--cream); }
.open-status { display: inline-flex; align-items: center; gap: .55rem; color: var(--on-dark-2); font: 500 .85rem/1.2 var(--sans); font-stretch: 105%; }
.open-status::before { flex: none; width: .5rem; height: .5rem; content: ""; border-radius: 50%; background: var(--on-dark-3); }
.open-status.is-open::before { background: var(--open); animation: status-pulse 2.2s ease-in-out infinite; }
.open-status.is-closed::before { background: var(--closed); box-shadow: 0 0 0 4px rgba(226, 72, 61, .16); }
@keyframes status-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(70, 192, 124, .5); } 50% { box-shadow: 0 0 0 6px rgba(70, 192, 124, 0); } }
.on-light .open-status { color: var(--ink-2); }
.site-header .open-status { padding: .55rem .9rem; border: 1px solid var(--line-dark); border-radius: 999px; white-space: nowrap; }
.nav-toggle { display: none; }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3.1rem; padding: .9rem 1.55rem; border: 1px solid transparent; border-radius: 999px; font: 600 .95rem/1 var(--sans); font-stretch: 110%; letter-spacing: .005em; cursor: pointer; transition: color .3s ease, background .3s ease, border-color .3s ease; }
.btn .arrow, .link-arrow .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(.25rem); }
.btn--light { color: var(--ink); background: var(--cream); }
.btn--light:hover { background: var(--glow); }
.btn--ghost { color: var(--cream); border-color: rgba(243, 236, 223, .38); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(243, 236, 223, .06); }
.btn--dark { color: var(--cream); background: var(--ink); }
.btn--dark:hover { background: var(--spritz-deep); }
.btn--spritz { color: var(--ink); background: var(--spritz); }
.btn--spritz:hover { background: var(--glow); }
.link-arrow { display: inline-flex; align-items: baseline; gap: .55rem; padding-bottom: .3rem; border-bottom: 1px solid currentColor; font: 600 .95rem/1.2 var(--sans); font-stretch: 108%; }
.arrow-ne { font-family: var(--serif); }

/* Leader rows: menu lines, price lists */
.leader-row { display: flex; align-items: baseline; gap: .7rem; }
.leader-row .leader { flex: 1; min-width: 1.5rem; border-bottom: 1px dotted currentColor; opacity: .35; transform: translateY(-.28em); }
.price { font-variant-numeric: oldstyle-nums tabular-nums; white-space: nowrap; }

/* Opening hours */
.hours { display: grid; }
.hours > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; padding: .7rem 0; border-bottom: 1px solid var(--line-dark); }
.on-light .hours > div { border-color: var(--line-light); }
.hours dt { flex: 0 1 auto; }
.hours dd { margin-left: auto; font-variant-numeric: oldstyle-nums tabular-nums; }
.hours > div.is-today { color: var(--glow); }
.on-light .hours > div.is-today { color: var(--spritz-deep); }

/* Forms */
.form { display: grid; gap: 1.6rem 1.8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--oak); font: 400 1.02rem/1.2 var(--serif); font-variant-caps: all-small-caps; letter-spacing: .085em; }
.on-light .field label { color: var(--oak-deep); }
.field input, .field select, .field textarea { width: 100%; padding: .55rem 0 .7rem; border: 0; border-bottom: 1px solid rgba(243, 236, 223, .3); border-radius: 0; background: transparent; font: 400 1.22rem/1.4 var(--serif); transition: border-color .25s ease; -webkit-appearance: none; appearance: none; }
.on-light .field input, .on-light .field select, .on-light .field textarea { border-color: rgba(23, 18, 14, .3); }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field select { padding-right: 1.6rem; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--spritz); }
.field input::placeholder, .field textarea::placeholder { color: currentColor; opacity: .4; }
.consent { grid-column: 1 / -1; display: flex; gap: .8rem; align-items: flex-start; font-size: .98rem; line-height: 1.5; }
.consent input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--spritz); }
.consent a { text-decoration: underline; text-underline-offset: .2em; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.form-status { font: 500 .95rem/1.45 var(--sans); }

/* Reveal: an enhancement only when JS runs */
.has-js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.has-js .reveal.is-in { opacity: 1; transform: none; }
/* The curtain sits on the image, never on the observed box: Chrome's IntersectionObserver honours the target's own clip-path. */
.has-js .reveal-img img { clip-path: inset(0 0 100% 0); transform: scale(1.08); transition: clip-path 1.4s var(--ease), transform 1.8s var(--ease); }
.has-js .reveal-img.is-in img { clip-path: inset(0 0 0 0); transform: none; }

/* Pre-footer call to action */
.cta-band { position: relative; overflow: hidden; padding: var(--section) 0; color: var(--ink); background: var(--caramel); }
.cta-band::before { position: absolute; inset: 0; content: ""; background: repeating-linear-gradient(90deg, rgba(23, 18, 14, .075) 0 1px, transparent 1px 56px); pointer-events: none; }
.cta-band .shell { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: end; }
.cta-band .eyebrow { color: var(--ink); opacity: .75; }
.cta-actions { display: grid; border-top: 1px solid rgba(23, 18, 14, .24); }
.cta-actions a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid rgba(23, 18, 14, .24); font: 400 clamp(1.25rem, 1.8vw, 1.6rem)/1.2 var(--serif); transition: padding .35s var(--ease); }
.cta-actions a span:last-child { font: 600 .9rem/1 var(--sans); font-stretch: 108%; }
.cta-actions a:hover { padding-left: .6rem; }

/* Footer */
.site-footer { position: relative; padding-top: clamp(4.5rem, 9vw, 8rem); background: var(--night); border-top: 1px solid var(--line-dark); }
/* Three equal columns: visit, contact, hours; the hours table sits at the right edge so its rules end flush with the shell. */
.footer-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem clamp(1.5rem, 3.5vw, 3.5rem); }
.footer-col { display: grid; align-content: start; gap: .3rem; }
.footer-col .eyebrow { margin-bottom: .8rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line-dark); }  /* one rule under every heading, continued by the rows of the hours table */
.footer-col p, .footer-col address, .footer-col > a, .footer-col dt, .footer-col dd { font-size: 1.06rem; line-height: 1.55; }
.footer-col > a, .nav-meta a { overflow-wrap: anywhere; }
.footer-col > a:not(.link-arrow):hover { color: var(--glow); }
.footer-col .link-arrow { justify-self: start; margin-top: .9rem; font-size: .9rem; }
.footer-col .hours > div { padding: .38rem 0; }
.footer-col .open-status { margin-top: .9rem; }
.footer-mark { margin-top: clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
/* The wordmark is cut into slats like the oak counter front. */
.footer-mark span { --slat: max(12px, 1.05vw); --gap: max(2px, .17vw); display: block; width: min(92vw, 1400px); aspect-ratio: 1026.7 / 169; margin-inline: auto; background: linear-gradient(180deg, #e2bf8d 0%, var(--oak) 45%, #8d6440 100%); -webkit-mask-image: url("assets/stadtcafe-logo-header.svg?v=ohne-berg"), repeating-linear-gradient(90deg, #000 0 calc(var(--slat) - var(--gap)), transparent calc(var(--slat) - var(--gap)) var(--slat)); mask-image: url("assets/stadtcafe-logo-header.svg?v=ohne-berg"), repeating-linear-gradient(90deg, #000 0 calc(var(--slat) - var(--gap)), transparent calc(var(--slat) - var(--gap)) var(--slat)); -webkit-mask-size: 100% 100%, auto; mask-size: 100% 100%, auto; -webkit-mask-repeat: no-repeat, repeat; mask-repeat: no-repeat, repeat; -webkit-mask-composite: source-in; mask-composite: intersect; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .8rem 2rem; padding: 1.4rem 0 1.8rem; color: var(--on-dark-3); border-top: 1px solid var(--line-dark); font: 450 .82rem/1.6 var(--sans); }
.footer-legal nav { display: flex; gap: 1.4rem; }
/* Copyright and the builder's credit stay together on the left, the legal links on the right. */
.footer-owner { display: flex; flex-wrap: wrap; gap: 0 2rem; }
.footer-legal a:hover { color: var(--cream); }

/* Phones held sideways and very short windows: a slimmer bar. */
@media (orientation: landscape) and (max-height: 620px) {
  :root { --header: 58px; }
  .wordmark svg { height: .85rem; }
  .site-nav { gap: 1.4rem; }
  .site-nav > a { font-size: .88rem; }
}

/* With the language switcher the bar holds the full status text only on wide screens ("Closed today (public holiday)
   · opens tomorrow at 9.00" needs about 1300 px); below that the pill shows the state, the footer the whole line. */
@media (max-width: 1320px) {
  .site-header .status-detail { display: none; }
}

@media (max-width: 1080px) {
  .site-header .open-status { display: none; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 860px) {
  :root { --header: 68px; }
  .wordmark svg { height: .95rem; }
  .has-js .nav-toggle { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .7rem; margin-left: auto; padding: .6rem 0; border: 0; background: none; cursor: pointer; font: 600 .95rem/1 var(--sans); font-stretch: 108%; }
  .nav-toggle i { position: relative; display: block; width: 22px; height: 10px; }
  .nav-toggle i::before, .nav-toggle i::after { position: absolute; left: 0; width: 100%; height: 1.5px; content: ""; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
  .nav-toggle i::before { top: 0; }
  .nav-toggle i::after { top: 8px; }
  .nav-open .nav-toggle i::before { top: 4px; transform: rotate(45deg); }
  .nav-open .nav-toggle i::after { top: 4px; transform: rotate(-45deg); }
  .has-js .site-nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: .3rem; margin: 0; padding: calc(var(--header) + 2rem) var(--gutter) 2.5rem; background: var(--night); visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility .35s ease; }
  .has-js .nav-open .site-nav { visibility: visible; opacity: 1; }
  .has-js .site-nav > a { color: var(--cream); font: 700 clamp(2.6rem, 11vw, 4rem)/1.12 var(--display); letter-spacing: -.02em; }
  .has-js .site-nav > a::after { display: none; }
  .has-js .site-nav > a[aria-current="page"] { color: var(--glow); }
  .has-js .nav-meta { display: grid; gap: .3rem; margin-top: 2.4rem; color: var(--on-dark-2); font: 450 .95rem/1.5 var(--sans); }
  .has-js .lang-switch { margin-top: 2.4rem; padding-left: 0; border-left: 0; font-size: 1.12rem; }
  .has-js .lang-switch a { min-width: 0; padding-inline: .3rem; }
  .has-js .lang-switch a:first-child { padding-left: 0; }
  .has-js .lang-switch + .nav-meta { margin-top: .7rem; }
  /* backdrop-filter would make the header the containing block of the fixed overlay and trap it in the bar. */
  .nav-open .site-header { background: var(--night); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .cta-band .shell { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-mark span { --slat: 7px; --gap: 1.5px; }
  .footer-legal { flex-direction: column; }
  .footer-owner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-js .reveal, .has-js .reveal-img img { opacity: 1; transform: none; clip-path: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
