/* Cafe 7Stern — customer website (Paket Start)
   Direction per Website-Prompt: classic, warm Viennese café. Cream ground, espresso text,
   terracotta accent, sage for secondary labels. Lora (display) + Source Sans 3 (text), self-hosted.
   Tokens first, then components. Mobile-first. */

@font-face { font-family: 'Lora'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/lora-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 500; font-display: swap; src: url('assets/fonts/lora-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/lora-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/lora-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/source-sans-3-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/source-sans-3-latin-600-normal.woff2') format('woff2'); }

:root {
  --cream: #f7f1e7;
  --cream-deep: #efe6d8;
  --paper: #fffdf9;
  --espresso: #2d211c;
  --espresso-soft: #4a3a33;
  --terracotta: #a9553b;
  --terracotta-dark: #8a4530;
  --sage: #7e8977;
  --line: #dccfbf;
  --text: #2d211c;
  --muted: #6b5d55;

  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-text: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 3.6vw, 2.375rem);
  --step-4: clamp(2.25rem, 6vw, 3.75rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 6px;
  --measure: 62ch;
  --wrap: 74rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-text); font-size: var(--step-0); line-height: 1.6; color: var(--text); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--terracotta-dark); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.12; letter-spacing: -0.005em; color: var(--espresso); }
p { margin: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { display: block; font-family: var(--font-text); font-weight: 600; font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); margin-bottom: var(--space-2); }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: var(--measure); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; text-decoration: none; font-weight: 600; font-size: var(--step-0); padding: 0.9rem 1.5rem; min-height: 3rem; border-radius: var(--radius); border: 2px solid var(--terracotta); background: var(--terracotta); color: #fff; }
.btn:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); }
.btn.secondary { background: transparent; color: var(--terracotta-dark); }
.btn.secondary:hover { background: rgba(169, 85, 59, 0.08); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 4.25rem; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.01em; color: var(--espresso); text-decoration: none; white-space: nowrap; }
.header-call .full { display: none; }
.wordmark em { font-style: italic; font-weight: 500; color: var(--terracotta); }
.site-nav { display: none; }
.site-nav a { text-decoration: none; color: var(--espresso-soft); font-weight: 600; font-size: var(--step--1); letter-spacing: 0.04em; text-transform: uppercase; padding: 0.5rem 0.75rem; }
.site-nav a:hover { color: var(--terracotta-dark); }
.header-call { text-decoration: none; font-weight: 600; font-size: var(--step--1); color: var(--terracotta-dark); border: 2px solid var(--terracotta); border-radius: var(--radius); padding: 0.5rem 0.9rem; white-space: nowrap; }
.header-call:hover { background: var(--terracotta); color: #fff; }

/* Hero — split, photo bleeds to the edge on desktop */
.hero { background: var(--paper); }
.hero .wrap { display: grid; gap: var(--space-4); padding-block: var(--space-4) 0; }
.hero h1 { font-size: var(--step-4); max-width: 14ch; }
.hero .address { margin-top: var(--space-3); font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: var(--step-1); color: var(--terracotta-dark); }
.hero .lead { margin-top: var(--space-2); color: var(--espresso-soft); }
.hero-actions { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Sections */
.section { padding-block: var(--space-5); }
.section h2 { font-size: var(--step-3); max-width: 18ch; }
.section .text p + p { margin-top: var(--space-2); }
.section .text p { max-width: var(--measure); }
.split { display: grid; gap: var(--space-4); }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.media-duo { display: grid; gap: var(--space-2); }
.trust { margin-top: var(--space-3); font-size: var(--step--1); color: var(--muted); }
.trust strong { color: var(--espresso); font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }

/* Speisekarte */
.menu { background: var(--cream-deep); }
.menu-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); max-width: var(--measure); }
.menu-list li { padding: var(--space-2) 0; border-top: 1px solid var(--line); display: grid; gap: 0.25rem; }
.menu-list li:last-child { border-bottom: 1px solid var(--line); }
.menu-list h3 { font-size: var(--step-1); font-weight: 600; }
.menu-list p { color: var(--espresso-soft); }
.note { margin-top: var(--space-3); padding: var(--space-2) var(--space-3); border-left: 3px solid var(--sage); background: var(--paper); color: var(--espresso-soft); max-width: var(--measure); font-size: var(--step--1); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-top: var(--space-4); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.gallery figure:first-child, .gallery figure:last-child { grid-column: 1 / -1; }
.gallery figure:first-child img, .gallery figure:last-child img { aspect-ratio: 16 / 10; }

/* Öffnungszeiten & Besuch — the one dark band */
.visit { background: var(--espresso); color: var(--cream); }
.visit h2, .visit h3 { color: var(--cream); }
.visit .eyebrow { color: #b9b1a3; }
.visit .wrap { display: grid; gap: var(--space-4); }
.hours { width: 100%; border-collapse: collapse; font-size: var(--step-0); margin-top: var(--space-3); max-width: 28rem; }
.hours th, .hours td { text-align: left; padding: 0.6rem 0; border-bottom: 1px solid rgba(247, 241, 231, 0.18); vertical-align: top; }
.hours th { font-weight: 400; width: 45%; }
.hours td { font-weight: 600; }
.hours .closed td { color: #b9b1a3; font-weight: 400; }
.visit address { font-style: normal; font-size: var(--step-1); line-height: 1.45; margin-top: var(--space-3); }
.visit .actions { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.visit .btn.secondary { color: var(--cream); border-color: var(--cream); }
.visit .btn.secondary:hover { background: rgba(247, 241, 231, 0.12); }
.map { margin-top: var(--space-2); border-radius: var(--radius); overflow: hidden; background: #3b2d27; border: 1px solid rgba(247, 241, 231, 0.18); }
.map .map-placeholder { padding: var(--space-4) var(--space-3); display: grid; gap: var(--space-2); justify-items: start; }
.map .map-placeholder p { color: #d9d0c2; max-width: 40ch; font-size: var(--step--1); }
.map iframe { display: block; width: 100%; height: 22rem; border: 0; }

/* Kontakt */
.contact .wrap { display: grid; gap: var(--space-3); }
.contact-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); font-size: var(--step-1); }
.contact-list span { display: block; font-size: var(--step--1); color: var(--sage); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-list a { color: var(--espresso); text-decoration: none; border-bottom: 1px solid var(--terracotta); }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: var(--space-4) calc(var(--space-4) + 4rem); font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { display: grid; gap: var(--space-2); }
.site-footer strong { color: var(--espresso); font-family: var(--font-display); }
.site-footer a { color: var(--espresso-soft); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Mobile call bar (the prompt asks for a permanently reachable call button on phones) */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
.call-bar .btn { width: 100%; }

/* Legal pages */
.legal .wrap { max-width: 46rem; padding-block: var(--space-4) var(--space-5); }
.legal h1 { font-size: var(--step-3); margin-bottom: var(--space-3); }
.legal h2 { font-size: var(--step-1); margin-top: var(--space-4); margin-bottom: var(--space-1); }
.legal p { margin-top: var(--space-2); max-width: var(--measure); }
.legal .placeholder { background: #fbead9; color: var(--terracotta-dark); padding: 0 0.3rem; border-radius: 3px; }
.legal .back { display: inline-block; margin-bottom: var(--space-3); font-size: var(--step--1); }

/* Tablet / desktop */
@media (min-width: 46em) {
  .site-nav { display: flex; gap: 0.25rem; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: stretch; padding-block: var(--space-5) 0; gap: var(--space-5); }
  .hero-figure { align-self: stretch; }
  .hero-figure img { height: 100%; aspect-ratio: auto; min-height: 30rem; }
  .split { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-5); }
  .split.flip .text { order: 2; }
  .media-duo { grid-template-columns: 1fr 1fr; }
  .media-duo img { aspect-ratio: 3 / 4; }
  /* 2fr/1fr rows: a 4:3 image in the wide cell and a 2:3 crop in the narrow
     cell share the same height, so no cell is ever left empty. */
  .gallery { grid-template-columns: 2fr 1fr; }
  .gallery figure:first-child, .gallery figure:last-child { grid-column: auto; }
  .gallery figure img, .gallery figure:first-child img { aspect-ratio: 4 / 3; height: auto; }
  .gallery figure:nth-child(even) img, .gallery figure:last-child img { aspect-ratio: 2 / 3; }
  .header-call .full { display: inline; }
  .visit .wrap { grid-template-columns: 1fr 1.2fr; align-items: start; gap: var(--space-6); }
  .contact .wrap { grid-template-columns: 1fr 1fr; align-items: start; }
  .site-footer { padding-bottom: var(--space-4); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr 1fr; }
  .call-bar { display: none; }
}
@media (min-width: 64em) {
  .hero .wrap { padding-block: var(--space-6) 0; }
}
