:root {
  --bg: #fdf8f2;
  --ink: #2b2320;
  --accent: #c4857a;
  --accent-ink: #12151a;
  --muted: #6f6058;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --space: 1.300rem;
  --section: 4.550rem;
}

/* Grundlayout aller erzeugten Seiten. Die Farben, Schriften und Abstände kommen
   aus den CSS-Variablen, die theme.ts vor diese Datei schreibt. */

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

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
input,
textarea,
button {
  font: inherit;
  color: inherit;
}
ul {
  list-style: none;
  padding: 0;
}

/* --- Grundtypografie --- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  text-wrap: pretty;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
}
h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.125rem);
}
/* Die Ebene der Überschrift hängt von der Seite ab, die Größe vom Block. */
.hero__title {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
}
.section__title {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.125rem);
}
h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.skiplink {
  position: absolute;
  left: -9999px;
}
.skiplink:focus {
  left: var(--space);
  top: var(--space);
  z-index: 2;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5em 1em;
  border-radius: var(--radius);
}

.container {
  width: min(68rem, 100% - 2 * var(--space));
  margin-inline: auto;
}

/* --- Kopf und Fuß --- */
.topbar {
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  background: var(--bg);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(var(--space) * 0.5) var(--space);
  padding-block: calc(var(--space) * 0.9);
}
.topbar__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-decoration: none;
}
.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space);
}
.topbar__nav a {
  text-decoration: none;
  color: var(--muted);
}
.topbar__nav a:hover {
  color: var(--accent);
}

.footer {
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  background: color-mix(in srgb, var(--ink) 5%, var(--bg));
  color: var(--muted);
  font-size: 0.95rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space);
  padding-block: calc(var(--section) * 0.55);
}
.footer address {
  font-style: normal;
}
.footer strong {
  color: var(--ink);
}
.footer__links {
  display: flex;
  gap: var(--space);
}

/* --- Abschnitte --- */
.section {
  padding-block: var(--section);
}
.pagetitle {
  padding-top: var(--section);
}
.pagetitle + .section {
  padding-top: 0;
}
.section--tinted {
  background: color-mix(in srgb, var(--ink) 4%, var(--bg));
}
.section__title {
  margin-bottom: calc(var(--space) * 1.2);
}
.section__intro {
  max-width: 44ch;
  margin-bottom: calc(var(--space) * 1.5);
  color: var(--muted);
}
.section__note {
  margin-top: calc(var(--space) * 1.5);
  color: var(--muted);
  font-size: 0.9rem;
}
.prose {
  max-width: 60ch;
}
.prose > * + * {
  margin-top: var(--space);
}
.prose h2,
.prose h3 {
  margin-top: calc(var(--space) * 2);
}
.prose li {
  list-style: disc;
  margin-left: 1.2em;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.7em 1.4em;
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.button:hover {
  background: color-mix(in srgb, var(--accent) 85%, black);
}
.button--quiet {
  background: transparent;
  color: var(--accent);
  border: 1px solid currentColor;
}

/* --- Hero --- */
.hero {
  padding-block: var(--section);
}
.hero__inner {
  display: grid;
  gap: calc(var(--space) * 2);
  align-items: center;
}
.hero__subtitle {
  margin-block: var(--space) calc(var(--space) * 1.5);
  max-width: 46ch;
  font-size: 1.15em;
  color: var(--muted);
}
.hero__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (min-width: 46rem) {
  .hero--withImage .hero__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Karten, Galerie, Team --- */
.cards,
.gallery,
.team,
.reviews {
  display: grid;
  gap: calc(var(--space) * 1.5);
}
.cards {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.card h3 {
  margin-bottom: calc(var(--space) * 0.4);
}
.card p {
  color: var(--muted);
}
.gallery {
  /* Feste Obergrenze je Spur: wenige Bilder bleiben bildgroß statt seitenbreit zu werden. */
  grid-template-columns: repeat(auto-fit, minmax(14rem, 20rem));
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery figcaption {
  margin-top: calc(var(--space) * 0.4);
  color: var(--muted);
  font-size: 0.9rem;
}
.team {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 12rem));
}
.team__portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: calc(var(--space) * 0.6);
}
.team__name {
  font-weight: 600;
}
.team__role {
  color: var(--muted);
}

/* --- Öffnungszeiten und Speisekarte --- */
.hours {
  max-width: 28rem;
}
.hours__row,
.menu__head {
  display: flex;
  justify-content: space-between;
  gap: var(--space);
  padding-block: 0.45em;
  border-bottom: 1px dashed color-mix(in srgb, var(--ink) 18%, transparent);
}
.hours dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.menu__category + .menu__category {
  margin-top: calc(var(--space) * 2);
}
.menu__list {
  margin-top: calc(var(--space) * 0.5);
}
.menu__name {
  font-weight: 600;
}
.menu__allergens {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85em;
}
.menu__price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.menu__description {
  color: var(--muted);
  font-size: 0.95em;
  padding-top: 0.3em;
}

/* --- Bewertungen --- */
.reviews {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.review {
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: var(--radius);
  padding: calc(var(--space) * 1.2);
}
.review__stars {
  color: var(--accent);
  letter-spacing: 0.1em;
}
.review blockquote {
  margin-block: calc(var(--space) * 0.6);
}
.review__author {
  color: var(--muted);
  font-size: 0.9rem;
}

/* --- Anfahrt und Kontakt --- */
.directions,
.contact {
  display: grid;
  gap: calc(var(--space) * 1.5);
}
.directions__info > * + * {
  margin-top: var(--space);
}
.directions address {
  font-style: normal;
  line-height: 1.8;
}
.directions__map img {
  width: 100%;
  border-radius: var(--radius);
}
.directions__map figcaption {
  margin-top: calc(var(--space) * 0.3);
  color: var(--muted);
  font-size: 0.8rem;
}
.contact__facts li {
  display: grid;
  gap: 0.1em;
  padding-block: 0.5em;
  border-bottom: 1px dashed color-mix(in srgb, var(--ink) 18%, transparent);
}
.contact__facts span {
  color: var(--muted);
  font-size: 0.85rem;
}
.contact__form {
  display: grid;
  gap: var(--space);
}
.contact__form label {
  display: grid;
  gap: 0.3em;
  font-size: 0.9rem;
  color: var(--muted);
}
.contact__form input,
.contact__form textarea {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  border-radius: var(--radius);
  padding: 0.6em 0.7em;
}
/* Honigtopf-Feld gegen Formular-Spam: nur Bots sehen es. */
.contact__trap {
  display: none;
}
.contact__hint {
  font-size: 0.85rem;
  color: var(--muted);
}
.contact__status {
  font-size: 0.95rem;
}
@media (min-width: 46rem) {
  .directions,
  .contact {
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--space) * 2.5);
  }
}

@media print {
  .topbar__nav,
  .skiplink,
  .button,
  .contact__form {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  .section {
    padding-block: 1rem;
  }
}
