/* Backstube Sonnenhof – Warm & Lokal */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #b4541a;
  --accent-dark: #96420f;
  --bg: #f8f1e4;
  --surface: #fffaf1;
  --sand: #efdfc4;
  --gold: #e3a53c;
  --ink: #2b1b12;
  --muted: #6b5546;
  --line: #e2d2b8;
  --radius: 18px;
  --wrap: 1160px;
  --pad: 24px;
  --section: clamp(72px, 10vw, 128px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 76px; /* Platz für die Anruf-Leiste auf dem Handy */
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
h1 em, h2 em { font-style: italic; font-weight: 450; color: var(--accent-dark); }

p { margin: 0; }

a { color: var(--accent-dark); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
}
.skip:focus { top: 16px; }

.eyebrow {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 18px;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 34em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font: 650 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--light { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.btn--light:hover { background: #fff; border-color: #fff; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 650;
  color: var(--accent-dark);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease);
}
.link:hover { background-size: 100% 2px; }
.link svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ---------- Kopf ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 241, 228, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 20px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font: 600 1.18rem/1 var(--serif);
  letter-spacing: -0.01em;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span span { color: var(--accent-dark); font-style: italic; font-weight: 500; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 650 0.95rem/1 var(--sans);
  cursor: pointer;
}
.js .menu-btn { display: inline-flex; }

.nav {
  flex-basis: 100%;
  padding-bottom: 10px;
}
.js .nav { display: none; }
.js .nav.is-open { display: block; }
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}
.js .nav ul { flex-direction: column; padding: 8px 0 12px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 calc(100% - 8px) / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease);
}
.js .nav a { font: 550 1.5rem/1.2 var(--serif); min-height: 52px; }
.nav a:hover { background-size: 100% 2px; }
.header__cta { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; }
.hero__grid { display: grid; gap: 40px; }
.hero h1 { margin-bottom: 22px; }
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}
.hero__art {
  position: relative;
  max-width: 440px;
  width: 100%;
  margin-inline: auto;
}
.hero__art svg { width: 100%; height: auto; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes sunrise {
  from { transform: translateY(70px); }
  to { transform: none; }
}
@keyframes rays {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: none; }
}
.hero [data-enter] { animation: rise 0.7s var(--ease) both; }
.hero [data-enter="2"] { animation-delay: 0.08s; }
.hero [data-enter="3"] { animation-delay: 0.16s; }
.hero [data-enter="4"] { animation-delay: 0.24s; }
.art-sun { animation: sunrise 1.1s var(--ease) both; }
.art-rays { transform-origin: 220px 300px; animation: rays 1s 0.35s var(--ease) both; }

/* ---------- Besuch-Leiste ---------- */
.facts {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.facts__grid { display: grid; }
.fact {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.fact:last-child { border-bottom: 0; }
.fact svg { width: 28px; height: 28px; flex: none; color: var(--accent); margin-top: 2px; }
.fact__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact__value { font: 550 1.15rem/1.35 var(--serif); }
.fact__value a { color: inherit; text-decoration: none; display: inline-block; padding: 10px 0; margin: -10px 0; }
.fact__value a:hover { color: var(--accent-dark); }

/* ---------- Abschnitte ---------- */
.section { padding: var(--section) 0; }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head p { margin-top: 18px; }

/* Angebot */
.offer { display: grid; gap: 16px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #d3bd98;
  box-shadow: 0 14px 30px -18px rgba(43, 27, 18, 0.35);
}
.card__icon { width: 56px; height: 56px; color: var(--accent); }
.card p { color: var(--muted); }
.card .link { margin-top: auto; align-self: flex-start; }
.card .link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card--feature {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  overflow: hidden;
}
.card--feature:hover { border-color: var(--accent); }
.card--feature h3 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.1; max-width: 12em; }
.card--feature p { color: #fff; max-width: 30em; }
.card--feature .link { color: #fff; }
.card--feature .card__art {
  width: min(100%, 360px);
  margin: 6px auto -34px;
  align-self: center;
}

/* Statement */
.statement {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(72px, 11vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.statement__text {
  font: 500 clamp(2.1rem, 6.4vw, 5rem)/1.05 var(--serif);
  letter-spacing: -0.02em;
  max-width: 13em;
  text-wrap: balance;
}
.statement__text em { color: var(--gold); font-weight: 400; }
.statement__sub { margin-top: 28px; max-width: 32em; color: #e6d6bd; font-size: 1.1rem; }
.statement__wheat {
  position: absolute;
  right: -30px;
  bottom: -20px;
  width: clamp(110px, 26vw, 330px);
  color: var(--gold);
  opacity: 0.1;
  pointer-events: none;
}
.statement .wrap { position: relative; z-index: 1; }

/* Ablauf */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 6px 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: counter(step);
  grid-row: span 2;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sand);
  color: var(--accent-dark);
  font: 600 1.5rem/1 var(--serif);
}
.step p { color: var(--muted); grid-column: 2; }
.split { display: grid; gap: 44px; }

/* Kontakt */
.contact { background: var(--sand); }
.contact__grid { display: grid; gap: 24px; }
.place {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.place__map { background: #f3e6cf; }
.place__map svg { width: 100%; height: auto; }
.place__body { padding: 28px; display: grid; gap: 22px; }
.place__address { font: 550 1.5rem/1.25 var(--serif); font-style: normal; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption {
  text-align: left;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 8px;
}
.hours th, .hours td {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.hours th { padding-right: 12px; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; vertical-align: top; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--accent-dark); }
.today-tag {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.place__links { display: grid; gap: 4px; }
.place__links a { justify-self: start; }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.form h3 { font-size: 1.6rem; }
.form > p { color: var(--muted); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 650; font-size: 0.95rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid #c9b592;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 84, 26, 0.25);
}
.field-row { display: grid; gap: 18px; }
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__note { font-size: 0.9rem; color: var(--muted); }
.form__msg { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form__msg--ok { background: #e3efd9; color: #24481a; }
.form__msg--err { background: #f8dcd3; color: #7a1f0c; }
[hidden] { display: none !important; }

/* ---------- Fuß ---------- */
.footer {
  background: var(--ink);
  color: #e6d6bd;
  padding: 56px 0 40px;
}
.footer a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; gap: 32px; }
.footer .brand { color: #fff; font-size: 1.4rem; }
.footer .brand span span { color: var(--gold); }
.footer h2 {
  font: 650 0.8rem/1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cdb994;
  margin-bottom: 10px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer address { font-style: normal; }
.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #4a3527;
  font-size: 0.9rem;
  color: #cdb994;
}

/* ---------- Anruf-Leiste (Handy) ---------- */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(248, 241, 228, 0.96);
  border-top: 1px solid var(--line);
}
.callbar .btn { width: 100%; }

/* ---------- Textseiten ---------- */
.page { padding: 48px 0 var(--section); }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 28px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 1.2em; }
.todo {
  background: #fbe3a8;
  color: #4a2c00;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.notice {
  border: 1.5px dashed var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--surface);
  margin-bottom: 28px;
}
.lost { text-align: center; padding: 64px 0 var(--section); }
.lost svg { width: 200px; margin: 0 auto 28px; }
.lost p { margin: 18px auto 30px; color: var(--muted); max-width: 30em; }
.lost .hero__actions { align-items: stretch; max-width: 420px; margin-inline: auto; }

/* ---------- Ab Tablet ---------- */
@media (min-width: 760px) {
  :root { --pad: 40px; }
  body { font-size: 1.0625rem; padding-bottom: 0; }
  .callbar { display: none; }
  .hero { padding: 64px 0 88px; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__art { max-width: 520px; }
  .lead { font-size: 1.2rem; }
  .facts__grid { grid-template-columns: repeat(3, 1fr); }
  .fact { border-bottom: 0; padding: 28px 28px 28px 0; }
  .fact + .fact { border-left: 1px solid var(--line); padding-left: 28px; }
  .offer { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .card { padding: 34px; }
  .card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 0.8fr; align-items: center; column-gap: 32px; }
  .card--feature > * { grid-column: 1; justify-self: start; }
  .offer > .card:last-child { grid-column: 1 / -1; }
  .card--feature .card__art { grid-column: 2; grid-row: 1 / span 4; margin: 0 0 -70px; width: 100%; max-width: 420px; align-self: end; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .form, .place__body { padding: 36px; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .statement__wheat { opacity: 0.2; }
  .today-tag { display: inline; font-size: inherit; letter-spacing: 0; text-transform: none; }
  .today-tag::before { content: "· "; }
  .lost .hero__actions { flex-direction: row; justify-content: center; max-width: none; }
}

@media (min-width: 1000px) {
  .menu-btn, .js .menu-btn { display: none; }
  .header__row { flex-wrap: nowrap; min-height: 76px; }
  .nav, .js .nav { display: block; flex-basis: auto; padding: 0; margin-left: auto; }
  .nav ul, .js .nav ul { flex-direction: row; gap: 30px; padding: 0; }
  .js .nav a { font: 600 1rem/1.2 var(--sans); min-height: 44px; }
  .header__cta { display: inline-flex; min-height: 46px; padding: 10px 20px; }
  .offer { grid-template-columns: repeat(3, 1fr); }
  .offer > .card:last-child { grid-column: auto; }
  .split { grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: start; }
  .split .section__head { position: sticky; top: 120px; margin-bottom: 0; }
  .contact__grid { grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: stretch; }
  .place { display: flex; flex-direction: column; }
  .place__map { position: relative; flex: 1 1 220px; min-height: 220px; }
  .place__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
