/* ==========================================================================
   Lulus Tortenwelt – stylesheet
   Mobile first. System fonts only, no external requests.
   ========================================================================== */

:root {
  /* Palette taken from the logo: orchid pink + antique gold, with a deep plum
     for text and buttons. Contrast ratios noted are WCAG, checked against --bg. */
  --bg: #FDF5FA;            /* page background, a whisper of the logo pink */
  --paper: #FFFBFE;         /* cards, header */
  --blush: #F8D6F2;         /* logo pink: hero, active nav */
  --gold: #B08E5C;          /* logo gold: decorative lines and rings only */
  --gold-light: #EBD9B0;    /* price tags, image placeholders */
  --gold-tint: #F6EEDD;     /* info boxes */
  --gold-text: #6B4E25;     /* headings on gold tint (6.6:1) */
  --accent: #8E3B7C;        /* plum: buttons, accents (white text on it: 6.9:1) */
  --accent-dark: #702C61;
  --link: #8E3B7C;          /* 6.4:1 */
  --ink: #3E2A36;           /* main text */
  --ink-soft: #65505D;      /* secondary text (6.9:1) */
  --line: #EBCDE2;
  --field-border: #907585;
  --focus: #1F5FA8;
  --error: #A3201A;

  --radius: 1.1rem;
  --shadow: 0 1px 0 rgba(62, 42, 54, .06), 0 10px 28px -14px rgba(62, 42, 54, .35);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(62, 42, 54, .045) 1px, transparent 1.2px);
  background-size: 18px 18px;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 8vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 5vw, 2.2rem); }
h3, .h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }

.section { padding: 3rem 0; }
.section--tint { background: var(--paper); border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: .4rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 40rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 2px dashed var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1rem;
  padding-top: .75rem;
  padding-bottom: .5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
  min-height: 44px;
}
.brand-mark { flex: none; }

.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 .9rem;
  border: 2px solid var(--ink); border-radius: 999px;
  color: var(--ink); font-weight: 700; font-size: .9rem; letter-spacing: .05em;
  text-decoration: none;
}
.lang-switch:hover { background: var(--ink); color: var(--paper); }

.site-nav { order: 3; width: 100%; }
.site-nav ul {
  display: flex; flex-wrap: wrap; gap: .15rem;
  list-style: none; margin: 0 0 0 -.85rem; padding: 0 0 .25rem;
}
.site-nav a {
  display: block;
  padding: .6rem .85rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}
.site-nav a:hover { background: var(--bg); }
.site-nav a[aria-current="page"] { background: var(--blush); font-weight: 700; }

@media (min-width: 60rem) {
  .header-inner { flex-wrap: nowrap; padding-bottom: .75rem; }
  .site-nav { order: 0; width: auto; margin: 0 0 0 auto; overflow: visible; }
  .site-nav ul { padding: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px;
  padding: .7rem 1.4rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit; font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--disabled, .btn--disabled:hover {
  background: #F1E6EC; color: var(--ink-soft); border-color: #D9C3D1;
  box-shadow: none; transform: none; cursor: not-allowed;
}
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.5rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--blush);
  padding: 2.5rem 0 3rem;
  margin-bottom: 1rem;
}
.hero::after {               /* scalloped edge, like a paper doily */
  content: "";
  position: absolute; left: 0; right: 0; bottom: -12px; height: 12px;
  background: radial-gradient(circle at 12px 0, var(--blush) 11.5px, transparent 12px) 0 0 / 24px 12px repeat-x;
}
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-text p { font-size: 1.15rem; color: var(--ink-soft); }
.hero-img {
  border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
  box-shadow: 0 0 0 2px var(--gold), var(--shadow);   /* gold ring, like the logo */
  border: 6px solid var(--paper);
  width: 100%; max-width: min(100%, 26rem); margin: 0 auto;
  aspect-ratio: 1 / 1; object-fit: cover;
}
@media (min-width: 48rem) {
  .hero { padding: 4rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 3rem; }
}

.page-head { padding: 2.5rem 0 1rem; }

/* ---------- Story ---------- */
.story { display: grid; gap: 1.5rem; align-items: start; }
.story-sign { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--accent); }
@media (min-width: 48rem) { .story { grid-template-columns: 1fr 2fr; gap: 3rem; } }

/* ---------- Cards (home highlights) ---------- */
.card-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--gold-light); }
.card-body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-soft); }
.card-body .more { margin-top: auto; font-weight: 700; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; counter-reset: step;
  margin: 0; padding: 0;
  display: grid; gap: 1.1rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--paper);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.15rem 4.4rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 1rem; top: 1.05rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  font: 700 1.3rem/2.5rem var(--font-display);
  text-align: center;
}
.steps h3 { margin-bottom: .3rem; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--ink-soft); }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Info boxes ---------- */
.info-grid { display: grid; gap: 1rem; margin: 1.5rem 0 2.5rem; }
@media (min-width: 48rem) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info {
  background: var(--gold-tint);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.info h2, .info h3 { font-size: 1.15rem; margin-bottom: .35rem; color: var(--gold-text); }
.info p:last-child { margin-bottom: 0; }

.note {
  border-left: 4px solid var(--accent);
  background: var(--paper);
  padding: 1rem 1.25rem;
  border-radius: 0 .75rem .75rem 0;
  margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- Product grid (menu) ---------- */
.product-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  align-items: start;
}
.product {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.product-media { position: relative; }
.product-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--gold-light); }
.price-tag {
  position: absolute; right: .9rem; bottom: -1rem;
  margin: 0;
  background: var(--gold-light);
  color: var(--ink);
  font-weight: 800; font-size: 1.05rem;
  padding: .35rem .9rem .35rem 1.45rem;
  border-radius: .3rem .5rem .5rem .3rem;
  transform: rotate(-3deg);
  box-shadow: 0 2px 0 rgba(62, 42, 54, .25);
}
.price-tag::before {        /* the little hole of a paper tag */
  content: "";
  position: absolute; left: .5rem; top: 50%;
  width: .45rem; height: .45rem; margin-top: -.225rem;
  border-radius: 50%; background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(62, 42, 54, .3);
}
.product-body { padding: 1.4rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .7rem; }
.product-body > * { margin: 0; }
.product-name { font-size: 1.4rem; margin: 0; }
.product-unit { font-size: .95rem; color: var(--ink-soft); margin-top: -.45rem; }
.product-allergens { font-size: .95rem; }
.product-ingredients { font-size: .95rem; }
.product-ingredients summary {
  cursor: pointer; font-weight: 700; color: var(--link);
  min-height: 44px; display: flex; align-items: center;
}
.product-ingredients p { margin: .2rem 0 0; color: var(--ink-soft); }
.product-ingredients strong { color: var(--ink); }
.product-facts { list-style: none; padding: 0; font-size: .92rem; display: grid; gap: .3rem; }
.product-facts li { display: flex; align-items: center; gap: .55rem; }
.product-facts li::before {
  content: ""; flex: none;
  width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--gold);
}
.product-facts .fact-pickup::before { background: var(--accent); }
.product-facts .fact-origin::before {   /* tiny Swiss flag, drawn in CSS */
  width: 1rem; height: 1rem; border-radius: 2px;
  background:
    linear-gradient(#fff, #fff) center / 60% 20% no-repeat,
    linear-gradient(#fff, #fff) center / 20% 60% no-repeat,
    #D52B1E;
}
.product-order { margin-top: .3rem; }
.product-order .btn { width: 100%; }
.badge {
  display: inline-block; align-self: flex-start;
  background: var(--ink); color: var(--paper);
  font-size: .8rem; font-weight: 700; letter-spacing: .03em;
  padding: .2rem .6rem; border-radius: 999px;
}
.product.is-unavailable .product-media img { filter: grayscale(.7); opacity: .7; }

.menu-status {
  grid-column: 1 / -1;
  background: var(--paper); border: 2px dashed var(--line);
  border-radius: var(--radius); padding: 1.25rem;
}

/* ---------- Gallery ---------- */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
.gallery figure {
  margin: 0;
  background: #fff;
  padding: .45rem .45rem .6rem;
  border-radius: .25rem;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}
.gallery li:nth-child(even) figure { transform: rotate(1deg); }
.gallery li:nth-child(3n) figure { transform: rotate(-.4deg); }
.gallery img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: var(--gold-light); }
.gallery figcaption {
  font-family: var(--font-display); font-style: italic;
  font-size: .95rem; line-height: 1.3;
  text-align: center; padding-top: .5rem;
}

/* ---------- Form ---------- */
.request-form { margin-top: 1.5rem; }
.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 40rem) {
  .form-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; align-items: end; }
  .field--full { grid-column: 1 / -1; }
}
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .35rem; }
.hint { display: block; font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.req { color: var(--accent); }
.field input:not([type="radio"]), .field select, .field textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  min-height: 48px;
  padding: .65rem .85rem;
  border: 1.5px solid var(--field-border);
  border-radius: .6rem;
  background: #fff;
}
.field textarea { min-height: 6rem; resize: vertical; }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--error); border-width: 2px; }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice { display: flex; align-items: flex-start; gap: .65rem; padding: .45rem 0; font-weight: 400 !important; cursor: pointer; }
.choice input { width: 1.3rem; height: 1.3rem; margin: .15rem 0 0; flex: none; accent-color: var(--accent); }
.form-actions { margin-top: 1.5rem; }
.form-privacy { font-size: .92rem; color: var(--ink-soft); margin-top: 1rem; }

.form-result {
  margin-top: 1.75rem;
  background: var(--gold-tint);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.form-result h3 { color: var(--gold-text); }
.form-result textarea {
  width: 100%; min-height: 14rem;
  font: .9rem/1.5 ui-monospace, Consolas, monospace;
  padding: .75rem; border-radius: .5rem; border: 1.5px solid var(--field-border);
  background: #fff; color: var(--ink);
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .9rem;
  margin-bottom: .75rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: .95rem 3rem .95rem 1.15rem;
  min-height: 48px;
  font-weight: 700;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; line-height: 1; color: var(--accent);
}
.faq[open] summary::after { content: "\2013"; }
.faq-body { padding: 0 1.15rem 1rem; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.address { font-style: normal; background: var(--paper); border: 1px solid var(--line); border-radius: .75rem; padding: 1rem 1.25rem; display: inline-block; }
.muted { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  background: var(--ink);
  border-top: 4px solid var(--gold);
  color: #F4E6EF;
  padding: 2.5rem 0 1.5rem;
}
.site-footer a { color: #F7CDEF; }
.site-footer :focus-visible { outline-color: #F7CDEF; }
.footer-grid { display: grid; gap: 1.75rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: .3rem; }
.footer-h { font-family: var(--font-body); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #E5CB98; margin-bottom: .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding: .3rem 0; }
.footer-small { margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed rgba(244, 230, 239, .3); font-size: .88rem; color: #E5CB98; }
