/* Bäckerei Ruth – Stylesheet */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --cream: #fbf4e8;
  --paper: #fffaf2;
  --flour: #f3e4cc;
  --wheat: #e0a93b;
  --crust: #8a4f24;
  --crust-dark: #5e3317;
  --ink: #3a2417;
  --muted: #6b5242;
  --berry: #a63d2a;
  --berry-dark: #7f2c1d;
  --sage: #56683f;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(94, 51, 23, .35);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  background-image: radial-gradient(circle at 1px 1px, rgba(138, 79, 36, .07) 1px, transparent 0);
  background-size: 22px 22px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--berry-dark); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--berry); }
:focus-visible { outline: 3px solid var(--wheat); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); color: var(--crust-dark); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--flour); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--crust-dark); }
.brand img { width: 46px; height: 46px; }
.brand strong { font-family: var(--serif); font-size: 1.45rem; display: block; line-height: 1; }
.brand > span > span { font-size: .8rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.nav-toggle { display: none; background: none; border: 2px solid var(--crust); color: var(--crust-dark); border-radius: 10px; padding: .45rem .8rem; font: 700 1rem var(--sans); cursor: pointer; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; flex-wrap: wrap; }
.nav a { display: block; padding: .5rem .8rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .98rem; }
.nav a:hover { background: var(--flour); color: var(--crust-dark); }
.nav a[aria-current="page"] { background: var(--berry); color: #fff; }

@media (max-width: 880px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--flour); box-shadow: var(--shadow); }
  .js .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: .6rem 1.25rem 1rem; }
  .nav a { padding: .8rem 1rem; font-size: 1.08rem; }
  .site-header .wrap { flex-wrap: wrap; }
  html:not(.js) .nav { width: 100%; }
  html:not(.js) .nav ul { flex-direction: row; padding: 0 0 .6rem; }
}

/* ---------- Notice bar ---------- */
.today { background: var(--crust-dark); color: #fbeedd; font-size: .95rem; }
.today .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1.5rem; padding: .45rem 0; }
.today a { color: #ffe3b3; font-weight: 700; }
.dot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: #9cc46b; margin-right: .4em; vertical-align: .05em; }
.dot.closed { background: #e2836f; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.eyebrow { font-weight: 800; color: var(--berry); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; margin-bottom: .8rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-art { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--paper); transform: rotate(1.2deg); }
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { transform: none; }
}

.btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid var(--berry); background: var(--berry); color: #fff; }
.btn:hover { background: var(--berry-dark); border-color: var(--berry-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--berry-dark); }
.btn.ghost:hover { background: var(--flour); color: var(--berry-dark); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section.alt { background: var(--paper); border-block: 1px solid var(--flour); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 .5rem; }
.page-head p { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; align-items: start; }
@media (max-width: 380px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--paper); border: 1px solid var(--flour); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card .body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .meta { margin-top: auto; padding-top: .7rem; display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; border-top: 1px dashed var(--flour); }
.price { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--berry-dark); white-space: nowrap; }
.unit { font-size: .88rem; color: var(--muted); }
.tag { display: inline-block; align-self: flex-start; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .6rem; border-radius: 999px; background: #efe0c3; color: var(--crust-dark); }
.tag.season { background: #e4ecd6; color: #3f4f2c; }

.feature { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: start; }
.feature .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--flour); display: grid; place-items: center; }
.feature .ico svg { width: 34px; height: 34px; }
.feature h3 { margin-bottom: .2rem; }
.feature p { color: var(--muted); margin: 0; }

.panel { background: var(--paper); border: 1px solid var(--flour); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow); }
.illu { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 5px solid var(--paper); }

/* ---------- Hours ---------- */
.hours { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.hours th, .hours td { text-align: left; padding: .6rem .5rem; border-bottom: 1px dashed var(--flour); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today { background: #fbe9c6; }
.hours tr.is-today th::after { content: " · heute"; color: var(--berry); font-weight: 800; }
.hours .closed td { color: var(--muted); }
.note { font-size: .95rem; color: var(--muted); }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: .8rem; align-items: center; }
.contact-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--flour); display: grid; place-items: center; }
.contact-list svg { width: 22px; height: 22px; }
.big-link { font-size: 1.3rem; font-weight: 800; font-family: var(--serif); }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px dotted var(--wheat); }
.timeline li { position: relative; padding: 0 0 1.4rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: .45rem; width: 15px; height: 15px; border-radius: 50%; background: var(--berry); border: 3px solid var(--cream); }
.timeline strong { font-family: var(--serif); font-size: 1.2rem; color: var(--crust-dark); display: block; }

blockquote { margin: 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.4; color: var(--crust-dark); }
blockquote footer { font-family: var(--sans); font-size: 1rem; color: var(--muted); margin-top: .6rem; }

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }

.season-banner { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; align-items: center; background: #eef2e3; border: 1px solid #d8e0c4; border-radius: var(--radius); padding: 1.2rem 1.5rem; }
.season-banner img { border-radius: 12px; }
@media (max-width: 560px) { .season-banner { grid-template-columns: 1fr; } .season-banner img { max-width: 220px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--crust-dark); color: #f3e2c9; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.site-footer a { color: #ffe3b3; }
.site-footer h2 { color: #fff3df; font-size: 1.2rem; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .3rem; }
.site-footer .legal { border-top: 1px solid rgba(255, 243, 223, .2); margin-top: 2rem; padding-top: 1rem; font-size: .9rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.site-footer table { border-collapse: collapse; }
.site-footer td { padding: .1rem 1rem .1rem 0; }

.notfound { text-align: center; padding: 4rem 0; }
.notfound img { width: min(320px, 80%); margin: 0 auto 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 480px) {
  .site-header .wrap { flex-wrap: nowrap; min-height: 64px; }
  .brand { gap: .5rem; }
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: 1.2rem; }
  .brand > span > span { font-size: .66rem; letter-spacing: .04em; }
  .nav-toggle { padding: .4rem .6rem; }
  .today .wrap { font-size: .88rem; }
}
.section.tight-top { padding-top: 0; }
.illu img { width: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.brand > span > span { white-space: nowrap; }
@media (max-width: 400px) { .hide-xs { display: none; } }
.notfound img { border-radius: var(--radius); box-shadow: var(--shadow); }
