:root {
  --berry: #3d1d38;
  --flower: #f6f7ef;
  --leaf: #55702f;
  --lilac: #d8cde6;
  --honey: #e9b44c;
  --muted: #6a5a66;
  --line: #d9d3d6;
  --demo-bg: #d8cde6;
  --demo-fg: #3d1d38;
  --demo-link: #3d1d38;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--flower); color: var(--berry); font-family: "Karla", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
h1, h2, h3 { font-family: "Caprasimo", Georgia, serif; font-weight: 400; margin: 0; line-height: 1.05; }
p { margin: 0 0 1rem; }

.pill { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: 0 1.6rem; border-radius: 999px; background: var(--berry); color: var(--flower); font: inherit; font-weight: 800; font-size: 1.05rem; border: 0; cursor: pointer; }
.pill:hover { background: #2a1227; }
.pill-wide { width: 100%; }

/* Status ticker instead of a nav bar */
.ticker { margin: 0; display: flex; justify-content: center; align-items: center; gap: .6rem; padding: .6rem 1rem; font-weight: 800; font-size: .95rem; border-bottom: 2px dashed var(--lilac); }
.dot { width: .65rem; height: .65rem; border-radius: 50%; background: #b9b0b6; flex: none; }
.ticker.is-open .dot { background: #3f8f3a; box-shadow: 0 0 0 4px rgba(63, 143, 58, .18); }
.ticker.is-closed .dot { background: #b34a3c; }

/* Masthead: centred wordmark, nav pills under it */
.masthead { text-align: center; padding: 3rem 1rem 2rem; }
.wordmark { font-size: clamp(3.4rem, 13vw, 10rem); line-height: .9; letter-spacing: -0.015em; }
.wordmark span { display: block; color: var(--leaf); }
.masthead nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.masthead nav a { text-decoration: none; font-weight: 800; padding: .45rem 1.1rem; border-radius: 999px; border: 2px solid var(--berry); }
.masthead nav a:hover { background: var(--berry); color: var(--flower); }

/* Three arches in a row */
.arches { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: clamp(.75rem, 2vw, 1.5rem); align-items: end; width: min(68rem, 100% - 2rem); margin: 1rem auto 0; }
.arch { width: 100%; object-fit: cover; border-radius: 999px 999px 12px 12px; }
.a1 { aspect-ratio: 3 / 4; }
.a2 { aspect-ratio: 3 / 4.3; }
.a3 { aspect-ratio: 3 / 4; }
.intro { text-align: center; width: min(38rem, 100% - 2rem); margin: 3rem auto 5rem; }
.intro p { font-size: 1.3rem; margin-bottom: 1.75rem; }

/* Menu as one printed card */
.menu { background: var(--lilac); padding: 5rem 1rem; }
.menu > h2, .vitrine > h2 { text-align: center; font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 2.5rem; }
.menu-paper { position: relative; width: min(64rem, 100%); margin-inline: auto; background: #fffdf8; border-radius: 6px; padding: clamp(1.5rem, 5vw, 4rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 4rem; box-shadow: 0 2px 0 rgba(61, 29, 56, .08), 0 30px 50px -30px rgba(61, 29, 56, .5); }
.menu-paper::before { content: ""; position: absolute; inset: .75rem; border: 1.5px solid var(--lilac); border-radius: 3px; pointer-events: none; }
.menu-col h3 { font-size: 1.8rem; margin: 1.5rem 0 .25rem; }
.menu-col h3:first-child { margin-top: 0; }
.menu-hint { color: var(--leaf); font-weight: 700; font-size: .95rem; margin-bottom: .5rem; }
.menu-round { position: absolute; left: 50%; top: 0; width: 7rem; height: 7rem; object-fit: cover; border-radius: 50%; transform: translate(-50%, -55%); border: 6px solid #fffdf8; box-shadow: 0 0 0 1.5px var(--lilac); }
.menu > h2 { margin-bottom: 4.5rem; }
.items { list-style: none; margin: 0 0 .5rem; padding: 0; }
.items li { display: grid; grid-template-columns: auto 1fr auto; column-gap: .5rem; align-items: baseline; padding-block: .5rem; }
.items li::after { content: ""; grid-column: 2; grid-row: 1; border-bottom: 2px dotted #c7b9c5; transform: translateY(-.3em); }
.name { grid-column: 1; grid-row: 1; font-weight: 700; font-size: 1.08rem; }
.price { grid-column: 3; grid-row: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.price::after { content: " €"; font-weight: 400; }
.desc { grid-column: 1 / -1; color: var(--muted); font-size: .95rem; }

/* Today's cakes as tilted polaroids */
.vitrine { padding: 5rem 1rem 4rem; overflow: hidden; }
.polaroids { list-style: none; margin: 0 auto; padding: 0; width: min(66rem, 100%); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.polaroids li { background: #fff; padding: .7rem .7rem 0; box-shadow: 0 14px 26px -16px rgba(61, 29, 56, .55); transform: rotate(-2.5deg); }
.polaroids li:nth-child(2n) { transform: rotate(2deg) translateY(1rem); }
.polaroids li:nth-child(3) { transform: rotate(-1deg); }
.polaroids img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.polaroids span { display: block; font-family: "Caprasimo", serif; text-align: center; font-size: 1.15rem; padding: .7rem 0 .9rem; }
.vitrine-note { text-align: center; margin-top: 3rem; color: var(--muted); font-weight: 700; }

/* Footer: lilac block with hours and a big goodbye */
.visit { background: var(--berry); color: var(--flower); padding: 4.5rem 1rem 6.5rem; overflow: hidden; }
.visit-inner { width: min(60rem, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 3.5rem; }
.visit h2 { font-size: 2rem; margin-bottom: 1.25rem; color: var(--lilac); }
.visit a { color: var(--flower); font-weight: 700; text-decoration-color: var(--honey); text-underline-offset: 4px; }
.hours-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours-table th, .hours-table td { text-align: left; padding: .55rem .4rem; border-bottom: 1px solid rgba(216, 205, 230, .25); }
.hours-table th { font-weight: 700; width: 50%; }
.hours-table tr.today { background: rgba(216, 205, 230, .14); }
.hours-table tr.today th::after { content: "heute"; margin-left: .6rem; font-size: .78rem; font-weight: 800; color: var(--berry); background: var(--honey); padding: .1rem .5rem; border-radius: 999px; vertical-align: .1em; }
.hours-table td.closed { opacity: .65; font-style: italic; }
.goodbye { font-family: "Caprasimo", serif; font-size: clamp(4rem, 17vw, 13rem); line-height: 1; text-align: center; margin: 3.5rem 0 1.5rem; color: var(--lilac); opacity: .9; white-space: nowrap; }
.visit .demo-footer-note { text-align: center; }
.visit .demo-footer-note a { font-weight: 400; }

/* Floating reservation button */
.fab.is-hidden { opacity: 0; pointer-events: none; transform: translate(-50%, 1rem); }
.fab { transition: opacity .2s, transform .2s; }
.fab { position: fixed; left: 50%; bottom: 1.1rem; transform: translateX(-50%); z-index: 20; box-shadow: 0 12px 30px -8px rgba(61, 29, 56, .65); border: 3px solid var(--flower); }

/* Reservation drawer (native <dialog>) */
.drawer { margin: 0 0 0 auto; height: 100%; max-height: none; width: min(30rem, 100%); border: 0; padding: 0; background: var(--flower); color: var(--berry); box-shadow: -20px 0 50px -20px rgba(61, 29, 56, .5); }
.drawer[open] { animation: slide-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide-in { from { transform: translateX(100%); } }
.drawer::backdrop { background: rgba(61, 29, 56, .45); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 2px dashed var(--lilac); position: sticky; top: 0; background: var(--flower); z-index: 1; }
.drawer-head h2 { font-size: 1.8rem; }
.drawer-close { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--berry); background: none; font-size: 1.5rem; line-height: 1; color: var(--berry); cursor: pointer; }
.reserve-form, .confirm { padding: 1.5rem; }
.reserve-intro { color: var(--muted); }
fieldset { border: 0; margin: 0 0 1.5rem; padding: 0; min-width: 0; }
legend { font-weight: 800; font-size: 1.05rem; margin-bottom: .6rem; padding: 0; }
.days { display: flex; gap: .45rem; overflow-x: auto; padding: 4px 4px 8px; margin: -4px; scroll-snap-type: x mandatory; }
.day { flex: none; width: 4.2rem; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; padding: .5rem .2rem; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--berry); font: inherit; cursor: pointer; line-height: 1.25; }
.day strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.day small { font-size: .8rem; }
.day[aria-pressed="true"] { background: var(--berry); border-color: var(--berry); color: #fff; }
.day:disabled { cursor: not-allowed; opacity: .45; text-decoration: line-through; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; background: #fff; }
.stepper button { width: 3rem; height: 3rem; border: 0; background: none; font-size: 1.5rem; color: var(--berry); cursor: pointer; border-radius: 50%; }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 2.5rem; text-align: center; font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.8rem, 1fr)); gap: .45rem; }
.slot { font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; padding: .55rem 0; border-radius: 10px; border: 2px solid var(--line); background: #fff; color: var(--berry); cursor: pointer; }
.slot[aria-pressed="true"] { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.slot:disabled { cursor: not-allowed; color: #a99ba6; background: transparent; text-decoration: line-through; }
.slots-empty { color: var(--muted); grid-column: 1 / -1; margin: 0; }
.reserve-form > label { display: block; font-weight: 800; margin-bottom: 1rem; }
.reserve-form input { display: block; width: 100%; margin-top: .35rem; padding: .75rem .9rem; font: inherit; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--berry); }
.reserve-form input:focus { outline: none; border-color: var(--berry); }
.reserve-form input[aria-invalid="true"] { border-color: #b34a3c; }
.form-error { color: #9e3427; font-weight: 700; }
.confirm { text-align: center; }
.confirm:focus { outline: none; }
.confirm-icon { width: 4rem; height: 4rem; margin: 1rem auto; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; font-size: 2rem; }
.confirm h3 { font-size: 1.7rem; margin-bottom: .75rem; }
.demo-note { text-align: left; background: #fff; border-left: 4px solid var(--honey); padding: .8rem 1rem; border-radius: 4px; }
.link-btn { font: inherit; font-weight: 800; color: var(--berry); background: none; border: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--leaf); text-underline-offset: 5px; }

@media (max-width: 860px) {
  .menu-paper { grid-template-columns: 1fr; }
  .menu-round { width: 5.5rem; height: 5.5rem; }
  .menu-paper { padding-top: 3.75rem; }
  .polaroids { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; }
  .visit-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
  .masthead { padding-top: 2rem; }
  .arches { grid-template-columns: 1fr 1.4fr; }
  .a3 { display: none; }
  .intro { margin-bottom: 3.5rem; }
  .intro p { font-size: 1.15rem; }
  .menu, .vitrine { padding-block: 3.5rem; }
  .drawer { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer[open] { animation: none; }
}
