/* Palma Bread — „Stämpel & Vete" · PixelUno Preview
   Papier / Karton / Tinte / ein Weizen-Gold. Domine + Public Sans. */

/* ---------- Fonts (selbst gehostet, siehe build-fonts.py) ---------- */
@font-face {
  font-family: 'Domine';
  src: url('assets/fonts/domine-var.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('assets/fonts/public-sans-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('assets/fonts/public-sans-italic-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #F7F5F0;
  --paper-deep: #EFEBE1;
  --card: #FBFAF6;
  --board: #DDD7CA;
  --ink: #1C1916;
  --ink-soft: #46423B;
  --muted: #6B665C;
  --wheat: #A8873B;
  --wheat-deep: #7C6426;
  --night: #161512;
  --night-text: #EDEAE2;
  --night-muted: #B4AFA3;
  --wheat-night: #C9A64F;
  --line: rgba(28, 25, 22, .16);
  --line-soft: rgba(28, 25, 22, .09);
  --pixeluno: #6B4FBB;
  --strip-h: 34px;
  --radius: 3px;
  --shadow: 0 14px 34px -18px rgba(28, 25, 22, .38);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: 'Domine', 'Iowan Old Style', Georgia, serif;
  --body: 'Public Sans', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--strip-h) + 92px); }
body {
  margin: 0;
  padding-top: var(--strip-h);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--wheat-deep); outline-offset: 3px; border-radius: 2px; }
.shell { max-width: 1180px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; z-index: 100; font-weight: 600; text-decoration: none;
}
.skip-link:focus-visible { left: 12px; top: calc(var(--strip-h) + 8px); }

.icn {
  width: 1.05em; height: 1.05em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.18em;
}
.icn .fill { fill: currentColor; stroke: none; }

/* ---------- PixelUno-Streifen ---------- */
.preview-strip {
  position: fixed; inset: 0 0 auto 0; height: var(--strip-h); z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: var(--pixeluno); color: #fff;
  font-size: .78rem; font-weight: 500; letter-spacing: .01em;
  padding-inline: 12px; text-align: center; white-space: nowrap;
}
@media (max-width: 700px) {
  .preview-strip { font-size: .66rem; white-space: normal; line-height: 1.15; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: var(--strip-h); z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 28px -22px rgba(28, 25, 22, .45); }
.header-row {
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px);
  min-height: 74px;
}
.brand { flex: none; }
.brand img { width: clamp(168px, 18vw, 226px); height: auto; }
.site-nav { margin-left: auto; }
.nav-list {
  display: flex; align-items: center; gap: clamp(14px, 1.9vw, 26px);
  list-style: none; margin: 0; padding: 0;
  font-size: .93rem; font-weight: 550;
}
.nav-list a { text-decoration: none; position: relative; padding-block: 6px; white-space: nowrap; }
.nav-list a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  border-bottom: 2px solid var(--wheat-deep);
  transition: right .3s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current]::after { right: 0; }
.nav-langs { display: flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 500; padding-left: clamp(4px, 1vw, 12px); border-left: 1px solid var(--line); }
.nav-langs a[aria-current] { color: var(--ink); font-weight: 700; }
.nav-toggle { display: none; }

.open-pill {
  flex: none;
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .42rem .9rem; font-size: .84rem; font-weight: 600;
  text-decoration: none; background: var(--card);
  transition: border-color .25s var(--ease);
}
.open-pill:hover { border-color: var(--wheat-deep); }
.open-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.open-pill.is-open .open-dot { background: var(--wheat); box-shadow: 0 0 0 3px rgba(168, 135, 59, .22); }
.open-pill.is-open { color: var(--wheat-deep); border-color: rgba(124, 100, 38, .4); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7.5vh, 6rem) clamp(3.4rem, 8vh, 6.4rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.04fr .96fr;
  gap: clamp(2rem, 5vw, 4.6rem); align-items: center;
}
.hero h1 {
  font-size: clamp(2.55rem, 5.4vw, 4.35rem);
  font-weight: 700; text-transform: uppercase; letter-spacing: .045em;
  line-height: 1.06; margin-bottom: .55em;
}
.hero-sub {
  font-size: clamp(1.06rem, 1.5vw, 1.2rem); color: var(--ink-soft);
  max-width: 34em; margin-bottom: 2rem;
}
.hero-actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--body); font-size: .98rem; font-weight: 650;
  text-decoration: none; border-radius: var(--radius);
  padding: .92rem 1.7rem; border: 1px solid var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-quiet {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .95rem; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; border-bottom: 1px solid var(--line);
  padding-bottom: 2px; transition: color .25s var(--ease), border-color .25s var(--ease);
}
.btn-quiet:hover { color: var(--wheat-deep); border-color: var(--wheat-deep); }

.hero-figure { position: relative; margin: 0; }
.hero-figure img {
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 42% 40%;
  border-radius: var(--radius);
  box-shadow: 0 26px 60px -30px rgba(28, 25, 22, .5);
}
.hero-figure .stamp-ring {
  position: absolute; z-index: 2;
  width: clamp(88px, 9vw, 132px); aspect-ratio: 1;
  right: -26px; top: -30px;
  background: url('assets/marks/stamp-ring.webp') center / contain no-repeat;
  opacity: .9; transform: rotate(-8deg);
  pointer-events: none;
  animation: stamp-press .55s var(--ease) .35s backwards;
}
/* Der eine autorisierte Bewegungsmoment: der Ring wird aufgedrückt */
@keyframes stamp-press {
  0%   { opacity: 0; transform: rotate(-8deg) scale(1.6); }
  62%  { opacity: 1; transform: rotate(-8deg) scale(.94); }
  100% { opacity: .9; transform: rotate(-8deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-figure .stamp-ring { animation: none; }
}
.hero-figure figcaption {
  margin-top: .8rem; font-size: .84rem; color: var(--muted);
}

/* ---------- Trust ---------- */
.trust { background: var(--board); border-block: 1px solid var(--line-soft); }
.trust-row {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: clamp(1.2rem, 4vw, 3.4rem);
  padding-block: 1.35rem;
}
.trust-item { margin: 0; font-size: .93rem; color: var(--ink-soft); }
.trust-item strong {
  font-family: var(--display); font-size: 1.45rem; font-weight: 700;
  color: var(--ink); margin-right: .35rem; letter-spacing: .01em;
}
.trust-quote { margin-left: auto; max-width: 30em; }
.trust-quote em { font-style: italic; }
.trust-quote cite { font-style: normal; color: var(--ink-soft); font-size: .86rem; white-space: nowrap; }

/* ---------- Sections shared ---------- */
section h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700;
  letter-spacing: .012em; max-width: 18em;
}
.section-lead { color: var(--ink-soft); max-width: 44em; margin-bottom: clamp(1.8rem, 4vh, 3rem); }

/* ---------- What to order ---------- */
.order { padding-block: clamp(3.6rem, 9vh, 6.6rem) clamp(3rem, 7vh, 5.4rem); }
.order-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.7rem);
}
.card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 4 / 5; overflow: hidden; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.card:hover .card-media img { transform: scale(1.045); }
.card h3 {
  font-size: 1.14rem; font-weight: 700; letter-spacing: .01em;
  margin: 1.05rem 1.15rem .35rem;
}
.card p { font-size: .9rem; color: var(--ink-soft); margin: 0 1.15rem 1.25rem; line-height: 1.6; }
.media-pending {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-deep);
  border-bottom: 1px dashed var(--line);
}
.media-pending::before {
  content: ''; width: 44%; aspect-ratio: 4 / 3;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.media-pending span {
  position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%);
  font-size: .74rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.order-note { font-size: .9rem; color: var(--muted); margin-top: clamp(1.6rem, 3vh, 2.4rem); }
.order-note a { color: var(--wheat-deep); }

/* ---------- Wheat break ---------- */
.wheat-break {
  height: clamp(210px, 34vh, 380px);
  background: url('assets/img/wheat-1600.webp') center 58% / cover no-repeat;
  border-block: 1px solid var(--line-soft);
}
@media (max-width: 900px) {
  .wheat-break { background-image: url('assets/img/wheat-900.webp'); }
}

/* ---------- Craft (dunkle Sektion — glatt, keine Textur) ---------- */
.craft { background: var(--night); color: var(--night-text); padding-block: clamp(3.8rem, 10vh, 7rem); }
.craft-grid { display: grid; gap: clamp(2.6rem, 6vh, 4rem); }
.craft-copy {
  display: grid; grid-template-columns: minmax(0, 30em) minmax(0, 24em);
  gap: clamp(2rem, 5vw, 5rem); align-items: end;
}
.craft-copy h2 { grid-column: 1 / -1; }
.craft h2 { color: #fff; }
.craft p { color: var(--night-text); font-weight: 420; }
.craft-fact {
  margin: 0; padding: 1.5rem 0 .35rem;
  border-top: 1px solid rgba(237, 234, 226, .2);
  color: var(--wheat-night); font-weight: 500; font-size: .97rem;
}
.craft-fact span { color: inherit; }
.craft-photos {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(.9rem, 1.8vw, 1.6rem);
}
.craft-photos figure { margin: 0; }
.craft-photos img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(237, 234, 226, .18);
}
.craft-photos figcaption {
  margin-top: .6rem; font-size: .82rem; color: var(--night-muted);
}

/* ---------- Locations ---------- */
.locations { padding-block: clamp(3.6rem, 9vh, 6.6rem); }
.loc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.1rem, 2.2vw, 1.8rem);
}
.loc-card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.loc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.loc-flagship { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.loc-map { display: block; overflow: hidden; }
.loc-map img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.loc-card:hover .loc-map img { transform: scale(1.03); }
.loc-flagship .loc-map img { min-height: 100%; }
.loc-body { padding: clamp(1.3rem, 2.6vw, 2.1rem); display: flex; flex-direction: column; }
/* Der Stempelring markiert den verifizierten Datenblock des Flaggschiffs */
.loc-flagship .loc-body { position: relative; }
.loc-flagship .loc-body::after {
  content: ''; position: absolute;
  top: clamp(1rem, 2vw, 1.6rem); right: clamp(1rem, 2vw, 1.6rem);
  width: 58px; aspect-ratio: 1;
  background: url('assets/marks/stamp-ring.webp') center / contain no-repeat;
  opacity: .55; transform: rotate(7deg);
  pointer-events: none;
}
.loc-body h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin-bottom: .15rem; }
.loc-tag { font-size: .88rem; color: var(--wheat-deep); font-weight: 600; margin-bottom: 1rem; }
.loc-body address { font-style: normal; font-weight: 600; margin-bottom: .9rem; }
.loc-facts { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .45rem; font-size: .95rem; }
.loc-facts li { display: flex; align-items: center; gap: .6rem; }
.loc-facts a { text-decoration: none; border-bottom: 1px solid var(--line); }
.loc-facts a:hover { color: var(--wheat-deep); border-color: var(--wheat-deep); }
.loc-facts .icn { color: var(--muted); }
.hours { border-collapse: collapse; font-size: .95rem; margin-bottom: 1rem; }
.hours th {
  text-align: left; font-weight: 500; color: var(--muted);
  padding: .3rem 1.4rem .3rem 0; border-bottom: 1px solid var(--line-soft);
}
.hours td {
  font-weight: 650; font-variant-numeric: tabular-nums;
  padding: .3rem 0; border-bottom: 1px solid var(--line-soft);
}
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.loc-open { margin: auto 0 0; font-size: .9rem; font-weight: 650; color: var(--wheat-deep); }
.loc-pending { font-size: .9rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.loc-pending a { color: var(--wheat-deep); }
.pending-mark {
  display: inline-block; margin-right: .45rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: .12rem .55rem; vertical-align: .1em;
}

/* ---------- Visit (die eine satte Farbfläche) ---------- */
.visit { background: var(--wheat-deep); color: var(--paper); }
.visit-row {
  padding-block: clamp(3.2rem, 8vh, 5.6rem);
  max-width: 62em;
}
.visit h2 { color: #fff; max-width: none; }
.visit p { color: rgba(247, 245, 240, .88); max-width: 44em; margin-bottom: 1.9rem; }
.visit-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.visit .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.visit .btn-ghost { color: var(--paper); }

/* ---------- Follow ---------- */
.follow { padding-block: clamp(3.6rem, 9vh, 6.4rem); }
.follow-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(.8rem, 1.6vw, 1.3rem);
}
.follow-tile { display: block; overflow: hidden; border-radius: var(--radius); }
.follow-tile img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform .8s var(--ease), opacity .4s var(--ease);
}
.follow-tile:hover img { transform: scale(1.05); opacity: .92; }
.follow-cta { margin-top: clamp(1.6rem, 3vh, 2.4rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-text); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr .7fr;
  gap: clamp(1.8rem, 4vw, 3.4rem);
  padding-block: clamp(2.8rem, 6vh, 4.4rem) clamp(1.8rem, 4vh, 2.6rem);
}
.footer-brand img { width: 208px; margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; color: var(--night-muted); max-width: 26em; }
.footer-col h3 {
  font-family: var(--body); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--night-muted); margin-bottom: .9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .93rem; }
.footer-col a { color: var(--night-text); text-decoration: none; border-bottom: 1px solid rgba(237, 234, 226, .25); }
.footer-col a:hover { color: var(--wheat-night); border-color: var(--wheat-night); }
.footer-langs a[aria-current] { color: var(--wheat-night); }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: .6rem 2rem;
  justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(237, 234, 226, .14);
  padding-block: 1.3rem; font-size: .84rem; color: var(--night-muted);
}
.footer-legal p { margin: 0; }
.pixeluno-sig a { color: var(--night-text); text-decoration: none; border-bottom: 1px solid rgba(237, 234, 226, .35); }
.pixeluno-sig a:hover { color: #fff; border-color: #fff; }
.pixeluno-sig .heart { color: var(--wheat-night); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .loc-card, .btn, .card-media img, .loc-map img, .follow-tile img { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1020px) {
  .order-grid { grid-template-columns: repeat(2, 1fr); }
  .follow-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-copy { grid-template-columns: 1fr; align-items: start; }
  .trust-quote { margin-left: 0; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  html { scroll-padding-top: calc(var(--strip-h) + 76px); }
  .header-row { min-height: 64px; flex-wrap: wrap; padding-block: 10px 0; row-gap: 0; }
  /* Kompakte Open-Pill als eigene Zeile unter Logo+Menü — das Versprechen
     „heutige Zeiten im ersten Viewport" gilt auch mobil */
  .open-pill {
    order: 3; flex-basis: 100%; justify-content: center;
    margin: 8px 0 10px; padding: .34rem .8rem; font-size: .8rem;
  }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .55rem;
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    font: 600 .88rem var(--body); color: var(--ink);
    padding: .5rem .85rem; cursor: pointer;
  }
  .nav-toggle-box { display: inline-flex; flex-direction: column; gap: 4px; }
  .nav-toggle-box span { width: 16px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .site-nav.is-open .nav-toggle-box span:first-child { transform: translateY(3px) rotate(45deg); }
  .site-nav.is-open .nav-toggle-box span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .nav-list {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem clamp(20px, 4vw, 48px) 1.1rem;
    display: none;
  }
  .site-nav.is-open .nav-list { display: flex; }
  .nav-list li { border-bottom: 1px solid var(--line-soft); }
  .nav-list li:last-child { border-bottom: 0; }
  .nav-list a { display: block; padding: .85rem 0; font-size: 1.02rem; }
  .nav-list a::after { content: none; }
  .nav-langs { border-left: 0; padding: .85rem 0 0; }

  .hero { padding-block: 2.4rem 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero h1 { font-size: clamp(2.15rem, 9.4vw, 2.9rem); }
  .hero-figure .stamp-ring { right: -10px; bottom: -22px; width: 84px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.1rem; }
  .btn { width: 100%; }
  .btn-quiet { align-self: center; }

  .trust-row { flex-direction: column; align-items: flex-start; gap: .9rem; padding-block: 1.5rem; }

  .order-grid { grid-template-columns: 1fr; }
  .card-media { aspect-ratio: 5 / 4; }

  .craft-photos { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .craft-photos figcaption { font-size: .7rem; }

  .loc-grid { grid-template-columns: 1fr; }
  .loc-flagship { grid-template-columns: 1fr; }

  .visit .btn { width: 100%; }
  .visit-actions { flex-direction: column; }

  .follow-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.9rem; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}
