/* with loaf Bakehouse – based on the owner's draft "with loaf Bakehouse" (2026-10-24).
   One deliberate light look: stone wall, bottle-green tiles, lamp amber.
   Fonts are self-hosted (no Google Fonts request, GDPR). */

@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/jost-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/jost-latin-500-normal.woff2) format("woff2"); }

:root {
  --stone: #efeae2;
  --green: #2f4a3a;
  --green-deep: #1f3328;
  --ink: #24302a;
  --muted: #5e6a62;
  --line: #ddd5c8;
  --field-line: #6f685d;      /* input underline: 4.4:1 on stone (≥ 3:1 for UI components) */
  --error: #9b2c1f;           /* 6.1:1 on stone */
  --glass: #46576a;           /* dark window behind the quote, also the no-JS hero background */
  --on-dark: #fbf8f2;
  --footer-text: #c9d3c9;
  --font: "Jost", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--stone); color: var(--ink); }
html { scroll-padding-top: 64px; }
body { font-family: var(--font); font-size: 17px; line-height: 1.6; }
a { color: inherit; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }

/* Focus: dark ring on light backgrounds, light ring on dark ones – always ≥ 3:1. */
:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 3px; }
.site-footer :focus-visible, .note :focus-visible { outline-color: var(--on-dark); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; z-index: 20; left: 16px; top: -100px;
  background: var(--green-deep); color: var(--stone); padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; z-index: 10; top: 0; left: 0; right: 0;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--green-deep);
  background: transparent; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
/* Without JS (no scroll tracking) and once past the hero, the bar gets its own background. */
.no-js .topbar, .topbar.solid { background: var(--stone); border-bottom-color: var(--line); }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.topbar .home { font-weight: 500; white-space: nowrap; }
.topbar .right { display: flex; gap: clamp(12px, 4vw, 32px); align-items: center; }
.topbar .sections { display: flex; gap: clamp(12px, 4vw, 32px); }
.topbar .sections a { border-bottom: 1px solid transparent; }
.topbar .sections a:hover { border-bottom-color: currentColor; }
.topbar .lang { display: flex; gap: 6px; align-items: center; }
.topbar .lang a { min-width: 32px; justify-content: center; }
.topbar .lang a[aria-current] { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 420px) {
  .topbar { letter-spacing: .1em; }
  .topbar .sections a[href="#besuch"] { display: none; } /* still reachable by scrolling and the footer */
}

/* ---------- hero ---------- */
/* Without JS: one screen with the quote on the dark "window" colour. With JS: the long scroll story. */
.hero { position: relative; height: 100vh; height: 100svh; background: var(--glass); }
.js .hero { height: 460vh; }
@media (prefers-reduced-motion: reduce) { .js .hero { height: 100vh; height: 100svh; } }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#scene, #grain { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#grain { pointer-events: none; mix-blend-mode: multiply; opacity: .45; }

.note {
  position: absolute; z-index: 3; inset: 15% 6%; /* scene.js places it on the drawn window */
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px;
  text-align: center; color: var(--on-dark);
}
.note .kicker { margin: 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.note blockquote {
  margin: 0; font-weight: 300; font-size: clamp(24px, 6vw, 40px); line-height: 1.25; letter-spacing: .01em;
  text-wrap: balance; text-shadow: 0 1px 14px rgba(25, 35, 45, .35); max-width: 34ch;
}
.note blockquote p { margin: 0; }
.note blockquote.long { font-size: clamp(18px, 4.6vw, 30px); line-height: 1.35; }
.note blockquote:focus { outline: none; }
.note .source { margin: 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.note .note-logo { width: clamp(76px, 20vw, 100px); height: auto; color: #fff; margin-top: 10px; }
.note .note-logo path { fill: currentColor; }
.note .note-logo path.bread { stroke: currentColor; stroke-width: 3; }
.note .note-logo line { stroke-width: 5; }

.cue {
  position: absolute; z-index: 3; left: 50%; transform: translateX(-50%);
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  color: #3d4a55; font-weight: 500; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  display: none; flex-direction: column; align-items: center; gap: 8px;
}
.js .cue { display: flex; }
.cue i { width: 1px; height: 34px; background: currentColor; transform-origin: top; animation: cue 1.8s ease-in-out 3; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

#logo { position: absolute; z-index: 3; pointer-events: none; overflow: visible; color: var(--green-deep); display: none; }
.js #logo { display: block; }
#logo path { fill: currentColor; }
#logo .lg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lg-bread .script, .lg-bread .bh { display: none; }
.lg-text .bread { display: none; }
.lg-bread .bread { stroke: currentColor; stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
.lg-text { clip-path: inset(0 100% 0 0); }

@media (prefers-reduced-motion: reduce) {
  .cue i { animation: none; }
  .topbar { transition: none; }
}

/* ---------- content ---------- */
.wrap {
  max-width: 1040px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
section.c { padding-block: 96px; scroll-margin-top: 56px; }
section.c + section.c { border-top: 1px solid var(--line); }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--green); font-weight: 500; }
h2 { font-weight: 300; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: .5em 0 1.4em; text-wrap: balance; color: var(--green-deep); letter-spacing: .01em; }
p { margin: 0 0 1em; max-width: 60ch; }

.menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 48px 56px; }
.menu h3 {
  font-weight: 500; font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
  margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--green); color: var(--green);
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 8px 0; font-weight: 300; }
.menu li span:first-child { min-width: 0; }
.menu li .p { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 15px; white-space: nowrap; }

.band { background: var(--stone); }
.band p { color: var(--muted); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- contact form ---------- */
form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
form .required { margin: 0; font-size: 14px; }
label { font-size: 14px; letter-spacing: .04em; color: var(--muted); }
input, textarea {
  font: inherit; font-size: 16px; font-weight: 300; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--field-line); border-radius: 0; padding: 8px 2px; width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 2px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-bottom: 2px solid var(--error); }
.error { margin: 0; color: var(--error); font-size: 14px; font-weight: 400; }
.error::before { content: "⚠ "; } /* icon + text: errors are never shown by colour alone */
.privacy-hint { margin: 0; font-size: 14px; }
.privacy-hint a { color: var(--green-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button {
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  background: var(--green-deep); color: var(--stone); border: 0; border-radius: 0;
  padding: 15px 26px; min-height: 44px; cursor: pointer; justify-self: start; margin-top: 6px;
}
button:hover { background: var(--green); }
button:disabled { opacity: .7; cursor: progress; }
.form-status p { margin: 0; font-weight: 400; }
.form-status.is-ok p { color: var(--green-deep); }
.form-status.is-ok p::before { content: "✓ "; }
.form-status.is-error p { color: var(--error); }
.form-status.is-error p::before { content: "⚠ "; }

/* ---------- visit ---------- */
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px; }
.addr { font-style: normal; font-weight: 300; font-size: 20px; line-height: 1.5; color: var(--green-deep); margin-bottom: 14px; }
.link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green); text-decoration-color: var(--muted); text-underline-offset: 6px;
}
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 8px 0; font-weight: 300; text-align: left; }
.hours td { text-align: right; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--green-deep); color: var(--footer-text); font-size: 14px; font-weight: 300; letter-spacing: .04em;
  padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; }
.site-footer .wm { width: 96px; height: auto; display: block; filter: brightness(0) invert(.95); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.site-footer .links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: rgba(239, 234, 226, .45); text-underline-offset: 5px; }
.site-footer .links a:hover { text-decoration-color: currentColor; }

/* ---------- text pages (Impressum, Datenschutz, errors) ---------- */
.page-header, .text-page {
  max-width: 720px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.page-header { padding-top: 40px; }
.page-header .back { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--green); }
.page-header .page-logo { display: block; width: 110px; margin: 20px 0 32px; }
.text-page { padding-bottom: 80px; min-height: 50vh; }
.text-page h1 { font-weight: 300; font-size: clamp(30px, 5vw, 40px); line-height: 1.2; color: var(--green-deep); margin: 0 0 .6em; }
.text-page h2 { font-weight: 500; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--green); margin: 2.2em 0 .6em; }
