:root {
  /* Palette: warm sand panel, slightly deeper textured surroundings, espresso brown ink. */
  --bg: rgb(239, 231, 218);           /* content panel + menu bar */
  --bg-outer: #e2d6c3;                /* page around the panel */
  --fg: #45301f;                      /* warm dark brown (not too close to black) */
  --muted: #7d6553;
  --surface: #f7f2ea;                 /* cards, inputs */
  --accent: #3a271c;
  --accent-fg: rgb(239, 231, 218);
  --danger: #a3341f;
  --border: #d8cab4;
  --line: #c9b79c;                    /* timeline */
  --logo: var(--fg);
  --radius: .5rem;
  --shadow: 0 1px 2px rgb(58 39 28 / .06), 0 8px 24px rgb(58 39 28 / .08);
  /* Kaushan Script (brush lettering like the shop window) for headings and the wordmark;
     UI labels and numbers use the body font. */
  --font-display: "Kaushan Script", "Brush Script MT", cursive;
  --font-ui: var(--font-body);
  --font-signature: "Mrs Saint Delafield", cursive;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Content panel: 1000px from 1280px windows up; below that it keeps 140px gutters on
     each side for the hanging decorations. Percentages resolve where it is used. */
  --content: min(1000px, 100% - 280px);
  --panel-pad: clamp(1rem, 4vw, 3rem);

  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--fg);
  color-scheme: light;
  background-color: var(--bg-outer);
  /* Soft warm light + fine paper grain around the panel. */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .15 0 0 0 0 .11 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(60rem 40rem at 0% 20%, rgb(255 255 255 / .35), transparent 70%),
    radial-gradient(50rem 40rem at 100% 70%, rgb(163 120 84 / .12), transparent 70%);
  background-attachment: fixed;
}

/* Reserve the scrollbar's space, so the layout (calendar tiles!) never jumps when the page
   height changes and the scrollbar comes or goes. */
html { scrollbar-gutter: stable; }
/* No grey/white flash box when tapping links and buttons on phones (own focus styles exist). */
html { -webkit-tap-highlight-color: transparent; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
/* Brush script headings: single weight (no faux bold). */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: 0; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.55rem; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Anchor targets (#kalender, #creators, calendar days) clear the sticky menu bar. */
[id] { scroll-margin-top: 7rem; }

/* --- Snow (canvas, static/js/snow.js) ------------------------------------------------------- */
/* One snow layer for wide screens, above the page (below the bar). A mask shows it only in
   the side gutters below the hero and, full width, over the footer, so the flakes seem to
   fall down the sides and on into the footer. --hero-bottom / --footer-top: snow.js. */
#snow {
  position: fixed; inset: 0; z-index: 4; pointer-events: none;
  --gutter: calc((100% - var(--content)) / 2);
  --footer-mask: linear-gradient(180deg, transparent var(--footer-top, 300vh), #000 calc(var(--footer-top, 300vh) + 80px));
  --side-mask: linear-gradient(90deg, #000 calc(var(--gutter) - 12px), transparent var(--gutter),
    transparent calc(100% - var(--gutter)), #000 calc(100% - var(--gutter) + 12px));
  --below-hero: linear-gradient(180deg, transparent var(--hero-bottom, 0px), #000 calc(var(--hero-bottom, 0px) + 40px));
  -webkit-mask: var(--footer-mask), var(--side-mask), var(--below-hero);
  -webkit-mask-composite: source-over, source-in;
  mask: var(--footer-mask), var(--side-mask), var(--below-hero);
  mask-composite: add, intersect;
}

/* --- Content panel ---------------------------------------------------------------------- */
.panel {
  position: relative;                  /* no z-index: the porthole must rise above the hangers */
  flex: 1; display: flex; flex-direction: column;
  width: var(--content); margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgb(58 39 28 / .05), 0 10px 40px rgb(58 39 28 / .10);
}
main { flex: 1; padding: 1.5rem var(--panel-pad) 3rem; }
/* Site footer: see the end of this file. */

/* --- Menu bar: logo left, then menu; burger on small screens ------------------------------ */
/* Layers (back to front): snow 0 · content panel · hangers 2 · hero + porthole 3 · bar 10 */
.site-header { position: sticky; top: 0; z-index: 10; }
:root {
  --hanger-h: min(46vh, 22rem);   /* height of the hanging decorations */
  --hanger-overhang: 1.5rem;      /* how far they start behind the bar */
}
.bar {
  /* Opaque and above the hangers (z-index 2 > 1), so their tops disappear behind it. */
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 2.5rem;
  padding: .9rem calc((100% - var(--content)) / 2 + var(--panel-pad));
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .45rem; flex: none; color: var(--fg); text-decoration: none; }
/* Calm wordmark in the body font; the flame is the playful part. */
.brand-word {
  font-family: var(--font-ui); font-weight: 600; font-size: 1.3rem; line-height: 1;
  letter-spacing: .16em; text-transform: uppercase;
}
.logo {
  display: block; flex: none; height: 3.6rem; aspect-ratio: 1;
  /* The SVG is used as a mask, so its color comes from --logo, not from the file. */
  background-color: var(--logo);
  -webkit-mask: url("../img/zolea-flame.svg") center / contain no-repeat;
  mask: url("../img/zolea-flame.svg") center / contain no-repeat;
}
.menu { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 1.75rem; }
.menu ul { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; }
.menu-main a, .menu-meta a { white-space: nowrap; }  /* bar entries never wrap ("Pop-up") */
@media (max-width: 72rem) { .menu, .menu ul { gap: 1.15rem; } }
.menu-main a { font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; }
.menu a:hover, .menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.burger { display: none; }

@media (max-width: 48rem) {
  .bar { justify-content: space-between; gap: 1rem; padding-inline: 1rem; }
  .logo { height: 3rem; }
  .brand-word { font-size: 1.1rem; }
  .burger {
    display: grid; place-content: center; gap: 5px;
    width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 0;
    background: none; border: 0; color: var(--fg);
  }
  .burger span { display: block; width: 1.5rem; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
  [data-menu-open] .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  [data-menu-open] .burger span:nth-child(2) { opacity: 0; }
  [data-menu-open] .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Open menu: just the entries, large, floating over the blurred page. */
  .menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 2rem 1.5rem;
    /* Opacity only: a transform/translate here would trap the fixed .menu-note. */
    visibility: hidden; opacity: 0;
    transition: opacity .2s, visibility 0s .2s;
  }
  [data-menu-open] .menu { visibility: visible; opacity: 1; transition: opacity .2s; }
  .menu-note {
    display: grid; gap: 1.1rem; position: fixed; left: 1.5rem; right: 1.5rem; bottom: 1.5rem;
    text-align: center;
  }
  .menu-note p { margin: 0; text-wrap: balance; }
  .menu-note a { color: var(--muted); text-underline-offset: .25em; }
  .menu-note-shop { font-size: .95rem; }
  .menu-note-legal { display: flex; justify-content: center; gap: .6rem; font-size: .82rem; color: var(--muted); }
  .menu-note-legal a { text-decoration: none; }
  .menu ul { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .menu ul { gap: 1rem; }
  .menu-main a { font-size: 2rem; font-weight: 700; }
  .menu-meta { padding-top: 1.25rem; border-top: 1px solid var(--line); }
  .menu-meta a, .menu-meta button { font-size: 1.15rem; }

  .menu-backdrop {
    position: fixed; inset: 0; z-index: 9;   /* above page + hangers, below the bar (10) */
    background: color-mix(in srgb, var(--bg) 78%, transparent);   /* readable over the dark hero */
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s;
  }
  [data-menu-open] .menu-backdrop { opacity: 1; visibility: visible; transition: opacity .2s; }
  [data-menu-open] body { overflow: hidden; }
}

/* --- Hanging decorations ------------------------------------------------------------------ */
.hangers {
  /* A zero-height strip right after the hero (or the bar): it scrolls with the page and then
     sticks at the bar. Moved up by the overhang so the strings start behind the bar. */
  position: sticky; top: var(--bar-h, 5.5rem); z-index: 2;
  height: 0; translate: 0 calc(-1 * var(--hanger-overhang));
  pointer-events: none;
}
.hanger {
  position: absolute; top: 0;
  height: var(--hanger-h); width: auto; max-width: none;
  transform-origin: 50% 0;               /* pivot where the string is attached */
  /* Retracting into the bar: a scroll-driven animation below; older browsers get --hang
     (0..1) from the script in _base.html. */
  translate: 0 calc(var(--hang, 0) * (-100% - 2rem));
  /* Swinging: Web Animations from _base.html (random speed, amplitude, phase per load). */
}
/* Centered in the side gutters. Both images are 258:1000, so half their width is
   --hanger-h * .129. */
.hanger-left { left: calc((100% - var(--content)) / 4 - var(--hanger-h) * .129); }
.hanger-right {
  right: calc((100% - var(--content)) / 4 - var(--hanger-h) * .129);
}
/* A gentle pendulum: slow at the turning points, fastest through the middle. */
/* Wide screens: gutters beside the 1000px panel are > 200px (1000 + 2 x 200 = 1400px),
   so the decorations have room and simply stay, sticky with the menu bar. */
@media (min-width: 87.5rem) {
  .hanger { translate: none; }
}
/* Retract into the bar, driven by the scroll position (runs off the main thread, so it never
   lags behind the page): starts --hang-start px down the page, done 450 px later. */
@supports (animation-timeline: scroll()) {
  @media not (min-width: 87.5rem) {
    .hanger {
      translate: none;
      animation: hang-retract ease-in-out both;
      animation-timeline: scroll(root);
      animation-range: var(--hang-start, 80px) calc(var(--hang-start, 80px) + 450px);
    }
  }
}
@keyframes hang-retract {
  from { translate: 0 0; }
  to { translate: 0 calc(-100% - 2rem); }
}

@media (max-width: 64rem) {
  /* Tablets/phones: full-width panel, short hangers in a band above the hero title.
     (Side gutters for the hangers only once there is real room: below 1024 px they would
     squeeze the content into a narrow strip.) */
  :root { --content: 100%; --panel-pad: clamp(1rem, 4vw, 2.5rem); }
  :root { --hanger-h: 7.5rem; --hanger-overhang: .75rem; }
  .hanger-left { left: .75rem; }
  .hanger-right { right: .75rem; }
  body:has(.hangers) main > :first-child { margin-top: 7rem; }  /* free band for the hangers */
}

/* --- Generic building blocks -------------------------------------------------------------- */
.muted, .meta { color: var(--muted); }
.meta { margin: .15rem 0; font-size: .95rem; }
.prose { white-space: pre-line; }

.cards { list-style: none; padding: 0; display: grid; gap: .75rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; }
.card h3 { margin: 0; }

.notice { padding: .6rem .9rem; border-radius: var(--radius); border: 1px solid var(--border); }
.notice.ok { border-color: var(--accent); }
.notice.err { border-color: var(--danger); color: var(--danger); }

.form { display: grid; gap: .8rem; }
.form.narrow { max-width: 22rem; }
.form label { display: grid; gap: .25rem; font-weight: 500; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.form .check input { margin-top: .2rem; }
.grid2 { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
/* Text fields everywhere: no box, a line to write on. Darker on hover, a strong brown line
   on focus, red when invalid. (Check boxes, radios, colour, range and file inputs keep their
   own look.) */
input, textarea, select { font: inherit; width: 100%; color: inherit; }
input:not([type=checkbox], [type=radio], [type=color], [type=range], [type=file]), textarea, select {
  padding: .5rem 0 .4rem; border: 0; border-radius: 0; background: transparent;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 25%, var(--bg));
  box-shadow: 0 1px 0 transparent; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:not([type=checkbox], [type=radio], [type=color], [type=range], [type=file]):hover, textarea:hover, select:hover {
  border-bottom-color: color-mix(in srgb, var(--fg) 50%, var(--bg));
}
input:not([type=checkbox], [type=radio], [type=color], [type=range], [type=file]):focus, textarea:focus, select:focus {
  border-bottom-color: var(--fg); box-shadow: 0 1px 0 var(--fg);
}
input:not([type=checkbox], [type=radio], [type=color], [type=range], [type=file]):focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }
input:not([type=checkbox], [type=radio])[aria-invalid], textarea[aria-invalid],
input:not([type=checkbox], [type=radio]):user-invalid, textarea:user-invalid {
  border-bottom-color: var(--danger); box-shadow: 0 1px 0 var(--danger);
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--fg) 38%, var(--bg)); opacity: 1; }
select { cursor: pointer; }
/* Text areas grow with their content (no scrollbar, no resize handle) and never get wider
   than their column. field-sizing does it natively; app.js adds a fallback elsewhere. */
textarea {
  display: block; min-width: 0; max-width: 100%; min-height: 2.5rem;
  resize: none; overflow: hidden; overflow-wrap: anywhere; line-height: 1.5;
  field-sizing: content;
}
button, .button {
  display: inline-block;
  font: inherit; font-weight: 500; cursor: pointer; justify-self: start; text-decoration: none;
  padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-fg);
}
.button.ghost { background: transparent; color: var(--accent); }
button:disabled { opacity: .6; cursor: progress; }
button.link { background: none; border: none; padding: 0; color: var(--accent); text-decoration: underline; border-radius: 0; }
button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
button.link.danger { background: none; color: var(--danger); }

.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--border); }
td { overflow-wrap: anywhere; }

/* Never scroll sideways: long words, URLs and e-mail addresses wrap instead. */
main, .rich, .prose, .meta, p, li, dd, h1, h2, h3 { overflow-wrap: break-word; }
main { min-width: 0; }

/* Phones: tables become stacked cards (one row = one card, the column name as a small label
   in front of each value; labels are filled in from the table head by app.js). */
@media (max-width: 40rem) {
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { padding: .6rem 0; border-bottom: 1px solid var(--border); }
  td { display: grid; grid-template-columns: minmax(5.5rem, 30%) minmax(0, 1fr); gap: .75rem;
       align-items: baseline; padding: .2rem 0; border: 0; }
  td::before { content: attr(data-label); font-size: .8rem; color: var(--muted); }
  td:not([data-label]), td[data-label=""] { grid-template-columns: minmax(0, 1fr); }
  td:not([data-label])::before, td[data-label=""]::before { display: none; }
  td:has(> button:only-child) { justify-items: start; }
}
.danger-zone { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.error-code { font-size: 4rem; font-weight: 800; margin: 0; color: var(--muted); }

/* --- Home ---------------------------------------------------------------------------------- */
main > section { margin-block: 3rem; }
.hero { margin-block: 2rem 3rem; }
.hero-title { font-size: clamp(3.5rem, 14vw, 8rem); font-weight: 800; line-height: .9; margin: 0; letter-spacing: -.04em; }
.hero-tagline { font-size: 1.25rem; margin: .25rem 0 0; }
.hero-period { color: var(--muted); margin: .25rem 0 0; }
.popup-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.popup h3 { margin: 0 0 .25rem; font-family: var(--font-body); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
address { font-style: normal; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .1rem 1rem; margin: .5rem 0 0; }
.hours dd { margin: 0; }

.cta {
  display: grid; gap: .75rem; justify-items: start;
  padding: clamp(1.25rem, 4vw, 2.25rem); border-radius: 1rem;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.cta h2 { margin: 0; font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
.cta p { margin: 0; }
.cta-dark { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cta-dark .button { background: var(--bg); color: var(--fg); border-color: var(--bg); }
.cta-dark .meta { color: color-mix(in srgb, var(--bg) 75%, transparent); }

.page-head { margin-block: 1.5rem 2.5rem; }
.page-head h1 { font-size: clamp(2.5rem, 8vw, 4.2rem); margin: 0; }
.page-head p { margin: .5rem 0 0; max-width: 38rem; }

/* --- Workshops timeline: a vertical line with the workshop cards lying on it --------------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 1rem 0 2rem; display: grid; gap: 3.5rem; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; translate: -1px 0;
  background: repeating-linear-gradient(to bottom, var(--line) 0 10px, transparent 10px 18px);
}
.tl-item { position: relative; display: grid; justify-items: center; gap: .9rem; }
.tl-date {
  position: relative; z-index: 1;
  padding: .3rem .9rem; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-family: var(--font-ui); font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.tl-card {
  position: relative; z-index: 1;
  width: min(100%, 34rem);
  background: var(--surface); border: 1px solid var(--border); border-radius: 1rem;
  box-shadow: var(--shadow); overflow: hidden;
  transition: rotate .3s;
}
/* Centered on the line, straight (a tilt made the picture edge look misaligned). */
.tl-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--border); }
.tl-body { padding: 1.25rem 1.4rem 1.4rem; display: grid; gap: .6rem; justify-items: start; }
.tl-body h2 { margin: 0; font-size: 1.75rem; }
.tl-body .prose { margin: 0; }
.tl-empty { text-align: center; color: var(--muted); position: relative; z-index: 1; background: var(--bg); padding: 1rem; }

@media (max-width: 48rem) {
  .timeline::before { left: 1rem; }
  .tl-item { justify-items: start; padding-left: 2.25rem; }
  .tl-item:nth-child(n) .tl-card { translate: 0 0; rotate: 0deg; }
}

/* --- Workshop detail ------------------------------------------------------------------------ */
.detail-image { width: 100%; max-height: 28rem; object-fit: cover; border-radius: 1rem; box-shadow: var(--shadow); }

/* --- Admin ----------------------------------------------------------------------------------- */
.image-admin { display: grid; gap: .75rem; justify-items: start; }
.image-admin img { max-width: 22rem; border-radius: var(--radius); box-shadow: var(--shadow); }

/* --- Pop-up calendar (static/js/calendar.js) ------------------------------------------------ */
/* Info blocks above the calendar: hours, address, contact. */
.info-blocks {
  display: grid; gap: 1.5rem 2.5rem; margin: 1.25rem 0 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.info-block { border-top: 1px solid var(--line); padding-top: .8rem; }
.info-block h3 {
  margin: 0 0 .5rem; font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.info-block .hours { margin: 0; }
.info-block address { margin-bottom: .35rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }

/* Small legend sitting right above the tiles. */
.cal-legend {
  list-style: none; margin: 0 0 .75rem; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .35rem 1.25rem;
  font-size: .88rem; color: var(--muted);
}
.cal-legend li { display: flex; align-items: center; gap: .3rem; }
.cal-legend svg { display: block; width: 1rem; height: 1rem; }
.cal-legend .cal-icon { position: static; color: var(--fg); opacity: .8; }
.cal-legend-today {
  display: inline-block; width: .95rem; height: .95rem; border-radius: .22rem;
  box-shadow: inset 0 0 0 1.5px var(--fg); opacity: .8;
}
.cal-hint { text-align: center; font-size: .85rem; margin: .9rem 0 0; }

/* The grid is a size container: weekday, number and icons scale with its actual width
   (cqi = 1 % of it), so they always fit their tile, whatever the screen size. */
.cal {
  --cal-gap: clamp(.3rem, .9vw, .5rem);  /* vw, not cqi: must resolve the same on the grid and inside tiles */
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--cal-gap); container-type: inline-size;
}
.cal-month {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem;
  margin-block: .9rem .2rem;
  font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em;
}
.cal-month::before, .cal-month::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.cal-day {
  position: relative; border-radius: .6rem; overflow: hidden;
  /* --tile-bg: the day's colour (backoffice or marker, set by calendar.js); the opened day's
     cards share it. */
  background: var(--tile-bg, var(--fg)); color: var(--bg); box-shadow: var(--shadow);
}
.cal-face {
  position: relative; display: grid; place-items: center;
  width: 100%; aspect-ratio: 1; padding: .25rem; margin: 0;
  border: 0; border-radius: inherit; background: transparent; color: inherit;
  transition: background-color .2s;
  -webkit-tap-highlight-color: transparent;  /* no grey/white tap box on Android / iOS */
}
/* Not on the opened day: phones keep :hover on the tapped tile ("sticky hover"), and the
   opened square must keep its tile colour. */
@media (hover: hover) { .cal-day:not(.is-open) .cal-face:hover { background: rgb(255 255 255 / .07); } }
.cal-face:focus-visible { outline: 2px solid var(--bg); outline-offset: -5px; }
.cal-num { font-family: var(--font-ui); font-weight: 700; font-size: clamp(1.2rem, 4.3cqi, 2.1rem); line-height: 1; }
.cal-wd {
  position: absolute; top: clamp(.2rem, .9cqi, .4rem); left: clamp(.25rem, 1cqi, .5rem);
  font-size: clamp(.55rem, 1.45cqi, .78rem); font-weight: 600; letter-spacing: .04em; opacity: .75;
}
.cal-icons {
  position: absolute; right: clamp(.15rem, .8cqi, .45rem); bottom: clamp(.12rem, .8cqi, .45rem);
  display: flex; gap: clamp(1px, .45cqi, 4px);
}
.cal-icon svg { display: block; width: 1.4rem; height: 1.4rem; }
.cal .cal-icon svg { width: clamp(.8rem, 2.3cqi, 1.4rem); height: clamp(.8rem, 2.3cqi, 1.4rem); }
/* Open workshops: the whole tile is coloured (marker "tile" in site.yml) plus a ring. */
/* Workshop days are marked by their fill / picture and icon; flat, no ring. */
/* Workshop day with a picture. The picture sits on the face (the part with the number):
   closed, that is the whole tile, edge to edge; opened, only the number part on the left,
   fading into the plain tile colour behind the text. Blurred with filter (not
   backdrop-filter, which is expensive on phones).
   Veil in the tile colour (marker colour or the day's colour from the backoffice); the text
   colour follows its brightness (calendar.js). */
.cal-day.has-photo .cal-face { isolation: isolate; overflow: hidden; }
.cal-day.has-photo .cal-face::before {
  content: ""; position: absolute; inset: -10px; z-index: -2;
  background: var(--photo) center / cover no-repeat;
  filter: blur(4px) saturate(1.1);
  transition: scale .6s cubic-bezier(.2, .8, .2, 1);
}
.cal-day.has-photo .cal-face::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--tint) 66%, transparent);
  transition: background-color .4s ease;
}
.cal-day.has-photo .cal-num { text-shadow: 0 1px 8px rgb(0 0 0 / .3); }
.cal-day.has-photo.is-light-tint .cal-num { text-shadow: 0 1px 8px rgb(255 255 255 / .35); }
@media (hover: hover) { .cal-day.has-photo .cal-face:hover::before { scale: 1.05; } }
@media (hover: hover) { .cal-day.has-photo .cal-face:hover::after { background: color-mix(in srgb, var(--tint) 56%, transparent); } }
/* Opened: the picture moves into the workshop cards; the date square is plain tile colour. */
.cal-day.has-photo.is-open .cal-face::before, .cal-day.has-photo.is-open .cal-face::after { display: none; }
.cal-day.is-workshop .cal-wd { opacity: 1; }
/* Fully booked workshops: normal tile, lock icon, a little dimmed. */
.cal-day.is-workshop_full .cal-icon-workshop_full { opacity: .85; }

.cal-day.is-closed { --tile-bg: color-mix(in srgb, var(--fg) 45%, var(--bg)); }
.cal-day.is-past { opacity: .4; }
.cal-day.is-spill { opacity: .28; box-shadow: none; }
.cal-day.is-today { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--fg), var(--shadow); }
.cal-day.is-today .cal-wd { opacity: 1; }

/* Opened day: a stack. On top the "day card" (date square, kept square by calendar.js via
   --sq, and the day info), below one card per workshop, each exactly as high as its square;
   the same gap as between calendar rows. Outer corners round, inner corners square, so the
   stack reads as one block in segments. The day element itself becomes transparent; its
   parts carry the colour. */
.cal-day.is-open {
  --sq-min: clamp(7.5rem, 17cqi, 11rem);
  --hang-gap: var(--cal-gap);
  --r: .6rem;
  display: grid; align-items: stretch; overflow: visible;
  grid-template-columns: var(--sq, var(--sq-min)) minmax(0, 1fr);
  grid-template-rows: minmax(var(--sq-min), auto);
  background: transparent; box-shadow: none;
}
.is-open .cal-face {
  grid-column: 1; grid-row: 1; width: auto; aspect-ratio: auto; padding: 0;
  justify-self: stretch; align-self: stretch;  /* buttons default to justify-self: start */
  background: var(--tile-bg, var(--fg)); border-radius: var(--r) 0 0 var(--r);
}
.is-open .cal-detail { display: contents; }
.cal-day.is-open:has(.cal-extras) .cal-face { border-bottom-left-radius: 0; }
.cal-day.is-open:has(.cal-extras) .cal-info { border-bottom-right-radius: 0; }
.is-open .cal-num { font-size: clamp(3rem, 9vw, 5rem); }
.is-open .cal-wd {
  top: clamp(.3rem, 1.1cqi, .6rem); left: clamp(.35rem, 1.2cqi, .65rem);
  font-size: clamp(.6rem, 1.55cqi, .82rem); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; opacity: .95;
}
.is-open .cal-icons { display: none; }
/* Opened: the square is no longer a button to the eye or the mouse (close by clicking
   elsewhere or Esc; keyboard users can still close it with Enter). */
.is-open .cal-face { pointer-events: none; cursor: default; transition: none; }  /* opaque at once */
.cal-info {
  grid-column: 2; grid-row: 1; display: grid; gap: .5rem; align-content: center;
  padding: 1.25rem clamp(1rem, 3cqi, 2rem);
  background: var(--tile-bg, var(--fg)); border-radius: 0 var(--r) var(--r) 0; box-shadow: var(--shadow);
}
.cal-detail p { margin: 0; }
.cal-detail-date { font-family: var(--font-ui); font-size: 1.35rem; font-weight: 600; }
.cal-hours { font-weight: 600; }
.cal-holiday { display: flex; align-items: center; gap: .4rem; font-weight: 600; }
.cal-holiday svg { width: 1rem; height: 1rem; display: block; }
/* The workshop cards below the day card, one per row: picture square | text, exactly as high
   as the square. Inner corners square, only the last card's bottom corners round. */
.cal-extras {
  grid-column: 1 / -1; grid-row: 2; list-style: none; margin: var(--hang-gap) 0 0; padding: 0;
  display: grid; gap: var(--hang-gap); grid-template-columns: minmax(0, 1fr);
}
.cal-ws {
  position: relative; display: grid; grid-template-columns: var(--sq, var(--sq-min)) minmax(0, 1fr);
  height: var(--sq, var(--sq-min)); overflow: hidden;
  background: var(--tile-bg, var(--fg)); box-shadow: var(--shadow);
  container-type: inline-size;
}
.cal-extras > :last-child { border-radius: 0 0 var(--r) var(--r); }
/* Holiday / note: same square column as the date (icon centred), text next to it. */
.cal-note-card {
  display: grid; grid-template-columns: var(--sq, var(--sq-min)) minmax(0, 1fr); align-items: center;
  min-height: 4.5rem; background: var(--tile-bg, var(--fg)); box-shadow: var(--shadow);
}
/* Icon and text sized between the big day number and the workshop cards (cqi: calendar width). */
.cal-note-card p {
  margin: 0; padding: .9rem clamp(.8rem, 3cqi, 1.3rem); overflow-wrap: anywhere;
  font-family: var(--font-ui); font-size: clamp(1rem, 2.4cqi, 1.2rem); font-weight: 600; line-height: 1.35;
}
.cal-note-icon { display: grid; place-items: center; }
.cal-note-icon svg, .cal-note-icon .cal-icon svg {
  width: clamp(1.9rem, 4.5cqi, 2.6rem); height: clamp(1.9rem, 4.5cqi, 2.6rem); display: block; fill: currentColor;
}
.cal-note-icon .cal-icon { position: static; }
.cal-ws-pic { position: relative; height: 100%; aspect-ratio: 1; display: grid; place-items: center; background: rgb(0 0 0 / .14); }
/* A light veil in the tile colour ties the photo to the card; it lifts on hover. No blur
   here: in the opened view the picture should show what the workshop is about. */
.cal-ws-pic:has(img)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: color-mix(in srgb, var(--tile-bg, var(--fg)) 50%, transparent);
  transition: background-color .4s ease;
}
.cal-ws:hover .cal-ws-pic::after { background: color-mix(in srgb, var(--tile-bg, var(--fg)) 20%, transparent); }
.cal-ws-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .5s cubic-bezier(.2, .8, .2, 1); }
.cal-ws-pic.is-empty svg { width: 32%; height: 32%; fill: currentColor; opacity: .45; }
.cal-ws-body {
  display: grid; grid-template-rows: auto auto 1fr; gap: .2rem; min-width: 0; overflow: hidden;
  padding: clamp(.65rem, 2cqi, 1rem) clamp(.8rem, 3cqi, 1.3rem);
}
.cal-ws-row { display: flex; align-items: flex-end; gap: .75rem; min-width: 0; }
/* Seats: a thin bar with "noch 3 frei" below it. */
.cal-ws-meter { flex: 1; display: grid; gap: .3rem; min-width: 0; padding-bottom: .15rem; }
.cal-ws-bar {
  display: block; height: 5px; max-width: 16rem; border-radius: 99px;
  background: linear-gradient(90deg, #f6ecdc var(--taken), rgb(255 255 255 / .2) var(--taken));
}
.cal-ws p { margin: 0; }
.cal-ws-kicker {
  display: flex; align-items: center; gap: .4rem; min-width: 0; white-space: nowrap;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85;
}
.cal-ws-kicker svg { width: .95rem; height: .95rem; fill: currentColor; flex: none; }
.cal-ws-title {
  font-family: var(--font-display); font-size: clamp(1.25rem, 5.5cqi, 1.9rem); line-height: 1.1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-ws-status { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; opacity: .85; }
.cal-ws-go {
  flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px;
  background: #f6ecdc; color: var(--fg); font-weight: 600; font-size: .88rem; text-decoration: none;
  transition: background-color .2s;
}
.cal-ws-go::after { content: ""; position: absolute; inset: 0; }  /* the whole card is clickable */
.cal-ws-go svg { width: 1rem; height: 1rem; fill: currentColor; transition: translate .2s; }
.cal-ws:hover .cal-ws-go { background: #fff; }
.cal-ws:hover .cal-ws-go svg { translate: .15em 0; }
.cal-ws:has(.cal-ws-go:focus-visible) { outline: 2px solid #f6ecdc; outline-offset: -4px; }
/* Narrow cards (phones): the button shrinks to a round arrow. */
@container (max-width: 24rem) {
  .cal-ws-go { width: 2.3rem; height: 2.3rem; padding: 0; justify-content: center; }
  .cal-ws-go span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
.cal-ws.is-full .cal-ws-title { opacity: .8; }
/* Legend swatch for markers that colour the tile */
.cal-legend-tile { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: .3rem; }
.cal-legend-tile svg { width: .9rem !important; height: .9rem !important; }
.cal-legend .is-tile .cal-icon { color: inherit; opacity: 1; }

/* The hole an opened tile leaves behind: as if the tile had been pressed out of the
   surface, with its weekday, number and icons still embossed in the dent. */
.cal-hole {
  position: relative; display: grid; place-items: center; aspect-ratio: 1;
  border-radius: .6rem;
  background: color-mix(in srgb, var(--fg) 9%, var(--bg));
  box-shadow:
    inset 0 3px 7px rgb(58 39 28 / .38),        /* depth from the top edge */
    inset 0 1px 2px rgb(58 39 28 / .30),
    inset 0 -1px 0 rgb(255 255 255 / .55),      /* light catching the lower rim */
    0 1px 0 rgb(255 255 255 / .75);             /* bright edge around the cut */
  color: color-mix(in srgb, var(--fg) 20%, var(--bg));
}
.cal-hole .cal-num, .cal-hole .cal-wd {
  text-shadow: 0 1px 0 rgb(255 255 255 / .75), 0 -1px 0 rgb(58 39 28 / .22);
}
.cal-hole svg { filter: drop-shadow(0 1px 0 rgb(255 255 255 / .75)); }
.cal-hole svg path { fill: currentColor; }


@media (max-width: 48rem) {
  .cal { --cal-gap: .35rem; }
  .cal-legend { font-size: .85rem; gap: .4rem .9rem; }
  .cal-day, .cal-hole { border-radius: .45rem; }
  /* Slightly taller tiles on phones: room for weekday, number and icons. */
  .cal-face, .cal-hole { aspect-ratio: 4 / 5; }
  /* weekday, number and icon sizes: see .cal (they scale with the calendar width) */
  .cal-detail-date { font-size: 1.1rem; }
}
.cal-note { display: flex; align-items: flex-start; gap: .45rem; }
.cal-note .cal-icon { position: static; flex: none; margin-top: .2rem; }
.cal-note svg { width: 1rem; height: 1rem; display: block; }

/* --- Admin: calendar overrides ------------------------------------------------------------- */
.admin-cal-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: start; }
.admin-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.admin-cal-month { grid-column: 1 / -1; font-family: var(--font-ui); font-weight: 700; margin-top: .6rem; }
.admin-cal-day {
  aspect-ratio: 1; padding: 0; border-radius: .4rem; justify-self: stretch;
  background: var(--day-color, var(--fg)); border-color: var(--day-color, var(--fg)); color: var(--bg);
  font-family: var(--font-ui); font-weight: 600; position: relative;
}
.admin-cal-day.is-closed:not(.has-override) { background: color-mix(in srgb, var(--fg) 45%, var(--bg)); border-color: transparent; }
.admin-cal-day.has-override::after {
  content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: #d9a55b;
}
.admin-cal-day.is-selected { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--fg); }
.admin-cal-form h2 { margin: 0; }
fieldset { border: 1px solid var(--border); border-radius: .5rem; padding: .6rem .9rem .8rem; margin: 0; }
legend { font-weight: 500; padding: 0 .3rem; }
.choice { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.choice label { display: flex; align-items: center; gap: .4rem; font-weight: 400; }
.choice input { width: auto; }
input[type="color"] { width: 3rem; height: 2rem; padding: .1rem; }
.icon-picker { display: flex; flex-wrap: wrap; gap: .4rem; }
.icon-option { position: relative; }
.icon-option input { position: absolute; opacity: 0; pointer-events: none; }
.icon-option span {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; cursor: pointer;
  border: 1px solid var(--border); border-radius: .5rem; background: var(--surface);
}
.icon-option svg { width: 1.3rem; height: 1.3rem; }
.icon-option input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.icon-option input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
@media (max-width: 48rem) { .admin-cal-layout { grid-template-columns: 1fr; } }

/* --- Creators: mini profiles with carousel (static/js/creators.js) ------------------------- */
.creator-list { display: grid; gap: 3.5rem; margin-top: 1.75rem; }
.creator { display: grid; gap: 1.25rem; }
.creator-head { display: grid; grid-template-columns: clamp(7rem, 22vw, 11rem) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.creator-photo {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .75rem;
  box-shadow: var(--shadow); background: var(--border);
}
.creator-photo.is-empty {
  display: grid; place-items: center; background: var(--fg); color: var(--bg);
  font-family: var(--font-ui); font-weight: 800; font-size: 3rem;
}
/* Business card: craft, name and Instagram next to the photo, vertically centered. */
.creator-head { align-items: center; }
.creator-card { display: grid; gap: .35rem; min-width: 0; }
.creator-card { gap: .2rem; }
.creator-craft { margin: 0 0 .15rem; font-size: clamp(1.7rem, 4.2vw, 2.4rem); line-height: 1.1; overflow-wrap: anywhere; }
.creator-name { margin: 0; font-weight: 600; font-size: 1.05rem; }
.craft-part { white-space: nowrap; }
@media (max-width: 34rem) {
  .creator-craft .craft-sep { display: none; }
  .creator-craft .craft-part { display: block; }
}
.creator-insta {
  display: inline-flex; align-items: center; gap: .35rem; justify-self: start; max-width: 100%;
  color: var(--muted); font-size: .88rem; font-weight: 600; text-decoration: none;
}
.creator-insta svg { width: 1rem; height: 1rem; flex: none; }
.creator-insta:hover { color: var(--fg); }
.creator-insta span { overflow-wrap: anywhere; }
.creator-insta:hover span { text-decoration: underline; text-underline-offset: .2em; }
/* Bio: four lines, then "Mehr anzeigen". */
.creator-text { display: grid; gap: .35rem; justify-items: start; }
.creator-bio {
  margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4;
  line-clamp: 4; overflow: hidden; white-space: pre-line;
}
.creator-bio.is-open { display: block; -webkit-line-clamp: unset; line-clamp: none; }
.creator-more { font-size: .9rem; font-weight: 600; color: var(--fg); }
.creator-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.creator-links a { display: inline-flex; align-items: center; gap: .4rem; color: var(--fg); font-weight: 600; text-decoration: none; min-width: 0; max-width: 100%; }
.creator-links li { min-width: 0; max-width: 100%; }
.creator-links a span { overflow-wrap: anywhere; }
.creator-links a:hover span { text-decoration: underline; text-underline-offset: .2em; }
.creator-links svg { width: 1.15rem; height: 1.15rem; flex: none; }

@media (max-width: 48rem) {
  .creator-head { grid-template-columns: 6.5rem minmax(0, 1fr); }
}

/* --- Admin: creators ------------------------------------------------------------------------ */
.admin-thumb { width: 2.5rem; height: 2.5rem; object-fit: cover; border-radius: .35rem; display: block; }
.admin-photo { width: 10rem; aspect-ratio: 1; object-fit: cover; border-radius: .75rem; box-shadow: var(--shadow); }
.admin-gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); width: 100%; }
.admin-gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: .5rem; }
.admin-gallery-actions { display: flex; justify-content: space-between; gap: .25rem; margin-top: .3rem; font-size: .85rem; }
.admin-gallery-actions button:disabled { opacity: .3; }

/* Admin: creator links editor */
.links-editor { display: grid; gap: .6rem; }
.link-row { display: grid; grid-template-columns: 2.4rem 8rem minmax(8rem, 10rem) 1fr auto; gap: .5rem; align-items: center; }
.link-row .link-icon-preview { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--surface); }
.link-row .link-icon-preview svg { width: 1.2rem; height: 1.2rem; }
.link-row select { font: inherit; color: inherit; }
@media (max-width: 48rem) { .link-row { grid-template-columns: 2.4rem 1fr; } .link-row > :nth-child(n+3) { grid-column: 1 / -1; } }

/* --- Home: store hero + intro with porthole photo ----------------------------------------- */
.store-hero {
  position: relative; z-index: 3;      /* above the hanging decorations */
  display: grid; place-items: center; text-align: center;
  min-height: clamp(17rem, 46vh, 30rem); padding: 3.5rem 1.5rem;
  color: var(--bg);
  /* Brown with grain; the photo lies on top in ::before (max. 2560 px wide, centered), so
     on very wide screens (4K) the edges stay brown. Without a photo only this remains. */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(180deg, rgb(50 33 22 / .78), rgb(69 48 31 / .84)), var(--fg);
}
.store-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  width: min(100%, 2560px); margin-inline: auto;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgb(50 33 22 / .78), rgb(69 48 31 / .84)),
    var(--hero-image, none) center / cover no-repeat;
}
/* Wider than the photo: let its sides fade softly into the brown. */
@media (min-width: 2561px) {
  .store-hero::before {
    -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
}
.store-hero-inner { max-width: 46rem; }
.store-hero-eyebrow {
  margin: 0 0 1rem; font-size: .85rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; opacity: .8;
}
.store-hero-title {
  margin: 0; font-family: var(--font-display); font-size: clamp(2.6rem, 6.5vw, 5.25rem);
  font-weight: 400; line-height: 1.1; text-wrap: balance;
}

.intro {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  margin-block: 3rem 4.5rem;
}
/* Round "porthole" photo set into the surface (same language as the calendar hole):
   a soft dent around the photo, shadow on the upper inner edge, light on the lower rim. */
.porthole {
  width: clamp(11rem, 24vw, 16.5rem); aspect-ratio: 1; border-radius: 50%;
  position: relative; z-index: 3;      /* above the hanging decorations */
  padding: .5rem;
  background: color-mix(in srgb, var(--fg) 7%, var(--bg));
  box-shadow:
    inset 0 3px 7px rgb(58 39 28 / .30),
    inset 0 1px 2px rgb(58 39 28 / .20),
    inset 0 -1px 0 rgb(255 255 255 / .55),
    0 1px 0 rgb(255 255 255 / .7);
}
.porthole img, .porthole-empty {
  display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  object-position: var(--focus, 50% 50%);
}
/* The photo sits slightly below the rim: a faint inner shadow on top of it. */
.porthole::after {
  content: ""; position: absolute; inset: .5rem; border-radius: 50%; pointer-events: none;
  box-shadow: inset 0 3px 6px rgb(42 28 20 / .35);
}
.porthole-empty { background: color-mix(in srgb, var(--fg) 12%, var(--bg)); }
.intro-text h2 { margin: 0 0 1.25rem; font-size: clamp(2.1rem, 4.2vw, 3rem); }
.intro-text p { margin: 0 0 1rem; max-width: 36rem; font-size: clamp(1.12rem, 1.6vw, 1.28rem); line-height: 1.65; }
/* More specific than ".intro-text p" so the signature gets its own space. */
.intro-text .signature { display: flex; align-items: baseline; gap: .6rem; margin: 2rem 0 0; }
.signature-greeting { font-style: italic; color: var(--muted); }
.signature-name {
  font-family: var(--font-signature); font-size: clamp(2.5rem, 5vw, 3.4rem);
  line-height: .8; rotate: -4deg; translate: 0 .15em;
}

@media (max-width: 48rem) {
  .store-hero { min-height: 19rem; padding: 3rem 1.25rem; }
  .intro { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .intro-text h2 { margin-top: 0; }
  .intro-text p { margin-inline: auto; }
  .intro-text .signature { justify-content: center; margin-top: 1.75rem; }
}

/* --- Rich text from the backoffice (zolea.content.richtext) -------------------------------- */
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 .8rem; }
.rich ul { margin: 0 0 .8rem; padding-left: 1.2rem; }
.rich .rows { display: grid; grid-template-columns: auto 1fr; gap: .1rem 1rem; margin: 0 0 .8rem; }
.rich .rows dd { margin: 0; }
.legal { max-width: 42rem; }
.legal .rich h2 { font-size: 1.5rem; margin: 2rem 0 .5rem; }
.info-block .rich p { margin-bottom: .35rem; }

/* --- Admin: texts -------------------------------------------------------------------------- */
.rich-help { margin: 0 0 1.5rem; font-size: .92rem; }
.rich-help summary { cursor: pointer; font-weight: 600; }
.rich-help code { background: var(--surface); padding: 0 .3rem; border-radius: .25rem; }
.texts-form fieldset { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
.texts-field { display: grid; gap: .3rem; }
.texts-label { display: flex; align-items: baseline; gap: .6rem; font-weight: 500; }
.texts-label .link { margin-left: auto; font-size: .85rem; font-weight: 400; }
.texts-badge { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #b07a2e; }
.texts-save {
  position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: flex-end; gap: 1rem;
  padding: .75rem 0; background: var(--bg); border-top: 1px solid var(--border);
}
.texts-save .notice { margin: 0; }

/* --- Empty state (e.g. no workshops): a sunken icon supporting the text ------------------ */
.empty-state { display: grid; justify-items: center; gap: .9rem; padding: 2.5rem 1rem 4rem; text-align: center; }
.empty-icon {
  display: grid; place-items: center; width: 6.5rem; aspect-ratio: 1; border-radius: 50%;
  background: color-mix(in srgb, var(--fg) 7%, var(--bg));
  color: color-mix(in srgb, var(--fg) 45%, var(--bg));
  box-shadow:
    inset 0 3px 7px rgb(58 39 28 / .22),
    inset 0 1px 2px rgb(58 39 28 / .14),
    inset 0 -1px 0 rgb(255 255 255 / .55),
    0 1px 0 rgb(255 255 255 / .7);
}
.empty-icon svg { width: 2.5rem; height: 2.5rem; filter: drop-shadow(0 1px 0 rgb(255 255 255 / .6)); }
.empty-state h2 { margin: .5rem 0 0; font-size: 1.9rem; }
.empty-state .rich { max-width: 30rem; }

.menu-backdrop { display: none; }
@media (max-width: 48rem) { .menu-backdrop { display: block; } }
@media (min-width: 48.01rem) { .menu-note { display: none; } }  /* mobile menu only */

.detail-media { border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 1rem; }

/* Admin: workshop preview (same markup as the public timeline) */
.preview { margin-top: 2.5rem; }
.timeline.is-preview { padding: 1rem 0 .5rem; pointer-events: auto; }
.timeline.is-preview .tl-card { rotate: 0deg; }

/* Admin: heading font picker */
.font-picker { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.font-option {
  display: grid; gap: .15rem; padding: .7rem .9rem; cursor: pointer;
  border: 1px solid var(--border); border-radius: .6rem; background: var(--surface);
}
.font-option { position: relative; }
.font-option input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; overflow: hidden; left: .5rem; top: .5rem; }
.font-option:has(input:checked) { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.font-option:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: 2px; }
.font-picker.is-signature .font-sample { font-size: 2.6rem; line-height: 1.3; min-height: 3.4rem; }
.font-sample { font-size: 1.6rem; line-height: 1.2; }
.font-label { font-size: .8rem; color: var(--muted); font-weight: 400; }

/* --- Workshops: price, seats bar, terms, interest list ------------------------------------- */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin: .1rem 0 0; }
.price strong { font-size: 1.25rem; }
.price-note { font-size: .88rem; color: var(--muted); }

.seats { display: grid; gap: .3rem; width: 100%; margin: .2rem 0 .3rem; }
.seats-bar {
  height: .55rem; border-radius: 999px; overflow: hidden;
  background: color-mix(in srgb, var(--fg) 10%, var(--bg));
  box-shadow: inset 0 1px 2px rgb(58 39 28 / .18);
}
.seats-fill { display: block; height: 100%; border-radius: inherit; background: var(--fg); transition: width .4s; }
.seats.is-full .seats-fill { background: #a3341f; }
.seats-label, .seats-open { margin: 0; font-size: .85rem; color: var(--muted); }
.tl-card.is-full img { filter: grayscale(.35); }

.terms { font-size: .92rem; }
.terms summary { cursor: pointer; color: var(--muted); }
.terms .rich { margin-top: .5rem; padding: .8rem 1rem; border-radius: .5rem; background: var(--surface); border: 1px solid var(--border); }

.interest { display: grid; justify-items: center; gap: .6rem; margin: 3rem auto 1rem; max-width: 36rem; text-align: center; }
.interest h2 { margin: .4rem 0 0; font-size: 1.9rem; }
.interest-text { margin: 0 0 .6rem; color: var(--muted); }
.interest-icon {
  display: grid; place-items: center; width: 4.5rem; aspect-ratio: 1; border-radius: 50%;
  background: color-mix(in srgb, var(--fg) 7%, var(--bg));
  color: color-mix(in srgb, var(--fg) 50%, var(--bg));
  box-shadow: inset 0 3px 7px rgb(58 39 28 / .22), inset 0 -1px 0 rgb(255 255 255 / .55), 0 1px 0 rgb(255 255 255 / .7);
}
.interest-icon svg { width: 1.8rem; height: 1.8rem; }
.interest-form { width: 100%; text-align: left; }
.interest-form button { justify-self: center; }

/* Admin: seats in tables, participants, interest list */
.admin-seats { min-width: 12rem; }
.admin-seats .seats { margin: 0; }
.add-participant { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.add-participant h3 { margin: 0; font-size: 1.3rem; }
.admin-interest { margin-top: 3rem; }

/* --- Site footer: brown band below the content -------------------------------------------- */
.site-footer {
  position: relative; z-index: 3;            /* above the hanging decorations */
  background: var(--fg); color: var(--bg);
}
/* Snow falling over the footer band (static/js/snow.js), behind its content. */
.site-footer { position: relative; isolation: isolate; overflow: hidden; }
.footer-snow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.footer-inner { width: var(--content); margin: 0 auto; padding: 3rem var(--panel-pad) 1.5rem; }
.footer-blocks { display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.footer-block h2 {
  margin: 0 0 .6rem; font-family: var(--font-ui); font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: color-mix(in srgb, var(--bg) 70%, transparent);
}
.site-footer .rich { font-size: .95rem; }
.site-footer .rich p { margin-bottom: .3rem; }
.site-footer a { color: var(--bg); }
.footer-links {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); font-size: .9rem;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-credit { margin: 1.25rem 0 0; font-size: .8rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3em; color: color-mix(in srgb, var(--bg) 65%, transparent); }
/* Icons taking turns in place of "love" (heart, coffee, brain, code), slowly and quietly. */
.credit-cycle { display: inline-grid; width: 1.05em; height: 1.05em; vertical-align: -.15em; }
.credit-cycle svg { grid-area: 1 / 1; width: 100%; height: 100%; fill: currentColor; opacity: 0; }
.credit-cycle svg:first-child { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .credit-cycle svg { opacity: 0; animation: credit-cycle 12s ease-in-out infinite both; }
  .credit-cycle svg:nth-child(2) { animation-delay: 3s; }
  .credit-cycle svg:nth-child(3) { animation-delay: 6s; }
  .credit-cycle svg:nth-child(4) { animation-delay: 9s; }
}
@keyframes credit-cycle {
  0% { opacity: 0; transform: translateY(.35em); }
  4%, 23% { opacity: 1; transform: none; }
  27%, 100% { opacity: 0; transform: translateY(-.35em); }
}
/* "Wer noch dabei ist": tiles above the calendar that jump to the full profiles. A wrapping
   grid, so no tile is ever cut off. */
.creator-strip { margin: 0 0 2.5rem; }
.creator-strip h3 {
  margin: 0 0 .75rem; font-family: var(--font-ui); font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}
.creator-strip ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
/* Each tile is a picture of the creator's work, blurred under a warm brown overlay with grain
   (like the hero); the key facts sit right on it in light colours, with a small round photo.
   On hover the picture sharpens a little and the arrow fills. */
.strip-tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; min-height: 8.5rem; padding: 1rem 1rem .9rem;
  /* Leaf-like: opposite corners small / large (top left, top right, bottom right, bottom left). */
  --leaf: .6rem 2.4rem .6rem 2.4rem;
  border-radius: var(--leaf); text-decoration: none; color: rgb(246 236 220 / .88);
  /* Safari ignores rounded corners when clipping blurred / scaled children (overflow:
     hidden); clip-path with the same radii cuts them reliably everywhere. */
  clip-path: inset(0 round var(--leaf)); -webkit-clip-path: inset(0 round var(--leaf));
  background: linear-gradient(160deg, #5a3f2c, var(--fg) 70%);
}
.strip-tile::before {  /* the picture, blurred */
  content: ""; position: absolute; inset: -10%; z-index: -2;
  background: var(--backdrop, none) center / cover no-repeat;
  filter: blur(7px) saturate(1.1);
  transition: filter .6s ease, scale .8s cubic-bezier(.2, .8, .2, 1);
}
.strip-tile::after {  /* brown overlay: lighter at the top right, deep at the bottom left */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(15deg, rgb(40 26 18 / .82) 0%, rgb(52 35 24 / .62) 50%, rgb(70 48 32 / .4) 100%);
}
.strip-tile:hover::before, .strip-tile:focus-visible::before { filter: blur(3px) saturate(1.15); scale: 1.05; }
.strip-tile:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.strip-card {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem;
}
.strip-card img, .strip-initial {
  width: 2.75rem; aspect-ratio: 1; border-radius: 50%; object-fit: cover; display: block;
  box-shadow: 0 0 0 1px rgb(246 236 220 / .3); opacity: .92;
}
.strip-initial {
  display: grid; place-items: center; background: rgb(246 236 220 / .1); color: rgb(246 236 220 / .8);
  font-family: var(--font-display); font-size: 1.2rem;
}
@media (prefers-reduced-motion: reduce) { .strip-tile::before { transition: none; } }
.strip-text { display: grid; gap: .15rem; min-width: 0; }
.strip-name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; overflow-wrap: anywhere; }
.strip-role {
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  color: rgb(224 191 138 / .8); line-height: 1.4; overflow-wrap: anywhere;
}
.strip-go {  /* fine light ring with an arrow; fills on hover: "tap me, it takes you to the profile" */
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid rgb(246 236 220 / .3); color: rgb(246 236 220 / .8);
  transition: background-color .3s, color .3s, border-color .3s, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.strip-go svg { width: .95rem; height: .95rem; fill: currentColor; }
.strip-tile:hover .strip-go, .strip-tile:focus-visible .strip-go {
  background: rgb(246 236 220 / .9); border-color: transparent; color: var(--fg); transform: translateY(2px);
}
@media (hover: none) {  /* touch: no hover, so show the arrow a bit clearer right away */
  .strip-go { background: rgb(246 236 220 / .14); border-color: rgb(246 236 220 / .4); }
}

/* --- Carousel (app.js carousel()) ------------------------------------------------------------ */
/* min-width: 0 keeps the strip inside grid/flex parents instead of widening them. */
.carousel { position: relative; min-width: 0; max-width: 100%; --strip-h: clamp(15rem, 30vw, 21rem); }
.creator { grid-template-columns: minmax(0, 1fr); }
.carousel-track {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: .75rem; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: none; scroll-snap-align: start; }
.carousel-open {
  display: block; padding: 0; border: 0; border-radius: 0; background: none; cursor: zoom-in;
  width: 100%; height: 100%;
}
.carousel-open img { display: block; }

/* Film strip: same height for all, each image keeps its own aspect ratio (9:16 and 16:9). */
.carousel.is-strip .carousel-slide { height: var(--strip-h); }
.carousel.is-strip .carousel-open { width: auto; border-radius: .75rem; overflow: hidden; }
.carousel.is-strip .carousel-open img {
  height: var(--strip-h); width: auto; max-width: none; min-width: 6rem;
  background: var(--border); transition: scale .4s cubic-bezier(.2, .8, .2, 1);
}
.carousel.is-strip .carousel-open:hover img { scale: 1.04; }
.carousel.is-strip .carousel-open:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* Single view: full image on a blurred, darkened copy of itself. */
.carousel.is-single .carousel-track { gap: 0; }
.carousel.is-single .carousel-slide {
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--fg);
}
.carousel.is-single .carousel-slide::before {
  content: ""; position: absolute; inset: -10%;
  background: var(--src) center / cover no-repeat;
  filter: blur(22px) brightness(.55) saturate(1.1);
}
.carousel.is-single .carousel-open { position: relative; }
.carousel.is-single .carousel-open img {
  width: 100%; height: 100%; object-fit: contain; aspect-ratio: auto; border-radius: 0; background: none;
}

.carousel-btn {
  position: absolute; top: calc(var(--strip-h) / 2); translate: 0 -50%; z-index: 1;
  width: 2.6rem; height: 2.6rem; padding: 0; display: grid; place-items: center;
  border-radius: 50%; font-size: 1.1rem; box-shadow: var(--shadow);
  transition: opacity .2s;
}
/* Inside the strip, over the images (not half outside where they get cut off). */
.carousel-btn.prev { left: .6rem; }
.carousel-btn.next { right: .6rem; }
.carousel.is-strip .carousel-btn {
  background: rgb(247 242 234 / .88); color: var(--fg); border-color: transparent;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.carousel.is-strip .carousel-btn:hover { background: var(--bg); }
@media (hover: hover) and (pointer: fine) {
  .carousel-track { cursor: grab; }
  .carousel-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
  .carousel-track.is-dragging .carousel-open { cursor: grabbing; pointer-events: none; }
}
.carousel-open img { -webkit-user-drag: none; user-select: none; }
.carousel-btn:disabled { opacity: 0; pointer-events: none; }
.carousel.is-single .carousel-btn { top: 50%; width: 2.2rem; height: 2.2rem; font-size: .95rem; opacity: .9; }
.carousel.is-single .carousel-btn.prev { left: .6rem; }
.carousel.is-single .carousel-btn.next { right: .6rem; }
.carousel.is-single .carousel-btn:disabled { opacity: 0; }
/* Position: one short line per image, the most visible one highlighted (smooth change).
   Below the film strip in brown; on top of the image in single view in white. */
.carousel-pos { display: flex; justify-content: center; gap: .35rem; margin-top: .85rem; }
.carousel-seg {
  width: 1.6rem; height: 1.1rem; padding: 0; border: 0; border-radius: 0;
  cursor: pointer; background: none; position: relative;
}
.carousel-seg::before {  /* the visible line; the button itself is a bigger tap target */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; translate: 0 -50%;
  border-radius: 99px; background: color-mix(in srgb, var(--fg) 20%, var(--bg));
  transition: background-color .45s ease, height .45s ease;
}
.carousel-seg:hover::before { background: color-mix(in srgb, var(--fg) 45%, var(--bg)); }
.carousel-seg.is-active::before { background: var(--fg); height: 4px; }
.carousel-seg:focus-visible { outline: 2px solid var(--fg); outline-offset: 1px; }
.carousel.is-single .carousel-pos {
  position: absolute; left: .8rem; right: .8rem; bottom: .55rem; z-index: 1; margin: 0;
}
.carousel.is-single .carousel-seg::before { background: rgb(255 255 255 / .45); box-shadow: 0 0 0 .5px rgb(0 0 0 / .15), 0 1px 3px rgb(0 0 0 / .35); }
.carousel.is-single .carousel-seg.is-active::before { background: #fff; }

@media (max-width: 48rem) {
  .carousel { --strip-h: 17rem; }
  .carousel-btn { display: none; }  /* swipe on touch */
}

/* --- Lightbox ------------------------------------------------------------------------------- */
.has-lightbox, .has-lightbox body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgb(24 16 11 / .94); backdrop-filter: blur(6px);
  animation: lightbox-in .2s ease-out;
}
@keyframes lightbox-in { from { opacity: 0; } }
.lightbox-track {
  list-style: none; margin: 0; padding: 0; height: 100%;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-slide {
  flex: none; width: 100%; height: 100%; scroll-snap-align: center;
  display: flex; align-items: center; justify-content: center;
}
/* Sized against the viewport so portrait and landscape both fit completely. */
.lightbox-slide img {
  max-width: calc(100vw - 2rem); max-height: calc(100dvh - 7rem);
  width: auto; height: auto; object-fit: contain;
  border-radius: .5rem; box-shadow: 0 20px 60px rgb(0 0 0 / .5);
}
@media (min-width: 48.01rem) { .lightbox-slide img { max-width: calc(100vw - 10rem); } }
.lightbox-btn, .lightbox-close {
  position: absolute; display: grid; place-items: center; padding: 0;
  width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.2rem;
  background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .25); color: #fff;
}
.lightbox-btn:hover, .lightbox-close:hover { background: rgb(255 255 255 / .22); }
.lightbox-btn { top: 50%; translate: 0 -50%; }
.lightbox-btn.prev { left: 1.25rem; }
.lightbox-btn.next { right: 1.25rem; }
.lightbox-close { top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; }
.lightbox-count { position: absolute; top: 1.35rem; left: 0; right: 0; margin: 0; text-align: center; color: rgb(255 255 255 / .8); font-size: .9rem; pointer-events: none; }
@media (max-width: 48rem) { .lightbox-btn { display: none; } }

/* --- Workshop card: square picture left (tinted, with date/time/place), details right ------- */
.tl-card {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  width: min(100%, 48rem); text-align: left;
}
/* At least square, but always as tall as the card (long texts would otherwise leave a light
   strip below the picture). */
.tl-media { position: relative; min-height: 15rem; align-self: stretch; background: var(--fg); overflow: hidden; }
.tl-media > img, .tl-media .carousel, .tl-media .carousel-track, .tl-media .carousel-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.tl-media .carousel-track, .tl-media .carousel-slide { position: relative; inset: auto; }
.tl-media > img { display: block; object-fit: cover; aspect-ratio: auto; }
.tl-media .carousel.is-single .carousel-slide { aspect-ratio: auto; }
.tl-media .carousel.is-single .carousel-open img { object-fit: cover; }
/* Brown tint, stronger towards the bottom where the text sits. */
.tl-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(58 39 28 / .18) 0%, rgb(58 39 28 / .35) 45%, rgb(42 28 20 / .82) 100%);
}
.tl-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
  padding: 1rem 1.1rem; color: var(--bg); text-shadow: 0 1px 3px rgb(0 0 0 / .35);
}
.tl-meta p { margin: 0; }
.tl-meta-date { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .3rem !important; }
.tl-meta-day { font-family: var(--font-ui); font-size: 3rem; font-weight: 700; line-height: .9; }
.tl-meta-month { font-size: .95rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.tl-meta-line { font-size: .9rem; opacity: .92; }
.tl-media .carousel-pos { top: .6rem; bottom: auto !important; }
/* In the small square the segments are enough (clickable); arrows would cover the date. */
.tl-media .carousel-btn { display: none; }
.tl-card img { aspect-ratio: auto; }

@media (max-width: 48rem) {
  .tl-card { grid-template-columns: minmax(0, 1fr); }
  .tl-media { min-height: 0; aspect-ratio: 16 / 10; }
}

/* --- Maintenance --------------------------------------------------------------------------- */
.maintenance { display: grid; justify-items: center; gap: 1rem; text-align: center; padding: 4rem 1rem 5rem; }
.maintenance h1 { margin: .5rem 0 0; font-size: clamp(2.4rem, 7vw, 3.6rem); }
.maintenance .rich { max-width: 32rem; color: var(--muted); font-size: 1.1rem; }
.maintenance-banner {
  position: relative; z-index: 4; margin: 0; padding: .6rem 1rem; text-align: center;
  background: #b07a2e; color: #fff; font-size: .92rem; font-weight: 600;
}
.maintenance-banner a { color: #fff; }
.maintenance-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin: 0 0 2rem; padding: 1rem 1.25rem; border-radius: .75rem;
  background: var(--surface); border: 1px solid var(--border);
}
.maintenance-switch.is-on { border-color: #b07a2e; box-shadow: inset 0 0 0 1px #b07a2e; }
.maintenance-switch p { margin: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; overflow: hidden; left: 0; top: 50%; }
.switch-track {
  position: relative; width: 2.8rem; height: 1.6rem; border-radius: 999px; flex: none;
  background: color-mix(in srgb, var(--fg) 25%, var(--bg)); transition: background-color .2s;
}
.switch-track::after {
  content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: translate .2s;
}
.switch input:checked + .switch-track { background: #b07a2e; }
.switch input:checked + .switch-track::after { translate: 1.2rem 0; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--fg); outline-offset: 2px; }
.texts-reset { margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed var(--border); }

/* --- Past workshops ------------------------------------------------------------------------- */
.past-workshops { margin-top: 4rem; padding-top: 2rem; border-top: 1px dashed var(--line); }
.past-workshops h2 { text-align: center; color: var(--muted); }
.timeline.is-past-list::before { display: none; }
.tl-card.is-past { background: color-mix(in srgb, var(--surface) 70%, var(--bg)); box-shadow: none; }
.tl-card.is-past .tl-media img { filter: grayscale(1) contrast(.9); }
.tl-card.is-past .tl-media { background: color-mix(in srgb, var(--fg) 55%, var(--bg)); }
.tl-card.is-past .tl-body { color: var(--muted); }
.tl-card.is-past .tl-body h2 { color: var(--muted); }
.tl-past-badge {
  position: absolute; top: .8rem; left: .8rem; z-index: 3;
  padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--bg); color: var(--fg);
}
.tl-past-note { margin: .2rem 0 0; font-weight: 600; color: var(--muted); }
.is-past-list .tl-date { background: color-mix(in srgb, var(--fg) 45%, var(--bg)); }

/* Admin: statistics */
.stats-range { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.stats-range select { width: auto; }
.stats-tiles { display: grid; gap: clamp(.5rem, 2vw, 1rem); grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.5rem 0; }
@media (max-width: 30rem) { .stats-tile { padding: .75rem; } .stats-tile strong { font-size: 1.5rem; } .stats-tile span { font-size: .75rem; } }
.stats-tile { padding: 1rem 1.25rem; border-radius: .75rem; background: color-mix(in srgb, var(--fg) 6%, var(--bg)); }
.stats-tile strong { display: block; font-size: 2rem; line-height: 1.1; font-family: var(--font-ui); }
.stats-tile span { font-size: .85rem; opacity: .75; }
.stats-grid { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.stats-card h3 { margin: 0 0 .5rem; font-size: 1rem; font-family: var(--font-ui); }
.stats-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .88rem; }
.stats-bars li { display: grid; grid-template-columns: minmax(0, 9rem) 1fr 2.5rem; align-items: center; gap: .5rem; }
.stats-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-bar { height: .55rem; border-radius: 99px; width: var(--w); min-width: 2px; background: var(--fg); opacity: .7; }
.stats-num { text-align: right; font-variant-numeric: tabular-nums; }
.stats-sessions tbody tr { cursor: pointer; }
.stats-sessions tbody tr:hover, .stats-sessions tbody tr:focus-visible { background: color-mix(in srgb, var(--fg) 6%, transparent); outline: none; }
.stats-dialog { width: min(36rem, calc(100vw - 2rem)); border: 0; border-radius: 1rem; padding: 1.25rem 1.5rem; box-shadow: var(--shadow); background: var(--bg); color: var(--fg); }
.stats-dialog::backdrop { background: rgb(0 0 0 / .35); backdrop-filter: blur(3px); }
.stats-dialog h2 { margin: 0; font-size: 1.1rem; font-family: var(--font-ui); }
.stats-events { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .45rem; font-size: .92rem; }
.stats-events li { display: grid; grid-template-columns: 3.2rem 4.2rem 1fr; gap: .5rem; align-items: baseline; }
.stats-events time { font-variant-numeric: tabular-nums; opacity: .7; }
.stats-kind { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; opacity: .6; }
.stats-events .is-action .stats-kind { opacity: 1; font-weight: 700; }

/* Arrow (and other) icons inline with text: buttons, links, back links */
svg.icon, .button svg, .back-link svg, .menu-note svg, .rich a svg,
.carousel-btn svg, .lightbox-btn svg, .admin-gallery-actions svg {
  width: 1.05em; height: 1.05em; flex: none; vertical-align: -.17em; fill: currentColor;
}
.button svg, .rich a svg, .menu-note a svg { margin-left: .4em; transition: transform .2s ease; }
.button:hover svg, .rich a:hover svg, .menu-note a:hover svg { transform: translateX(.15em); }
.back-link { display: inline-flex; align-items: center; gap: .35em; }
.back-link svg { transition: transform .2s ease; }
.back-link:hover svg { transform: translateX(-.15em); }
.lightbox-btn { display: inline-grid; place-items: center; }  /* .carousel-btn is a grid already; hidden on touch */

/* Admin: welcome card with the quokka */
.admin-welcome {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem); margin: 0 0 2rem; padding: 1.5rem clamp(1rem, 4vw, 2rem) 0;
  border-radius: 1.25rem; background: color-mix(in srgb, var(--fg) 5%, var(--bg));
  box-shadow: inset 0 2px 6px rgb(58 39 28 / .08);
}
.quokka-spot { position: relative; align-self: end; margin-bottom: -.2rem; /* sits on the card edge */ }
.quokka {
  display: block; width: clamp(6rem, 14vw, 9rem); aspect-ratio: 7 / 9;
  padding: 0; border: 0; border-radius: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  /* Used as a mask (like the logo), so it takes the brand brown. */
  background-color: var(--logo);
  -webkit-mask: url("../img/quokka.svg") center / contain no-repeat;
  mask: url("../img/quokka.svg") center / contain no-repeat;
  transform-origin: 50% 95%;
}
/* One hop on page load and on every hover; the class is toggled by admin/index.html. */
@media (prefers-reduced-motion: no-preference) {
  .quokka.is-hopping { animation: quokka-hop .6s ease-out; }
}
@keyframes quokka-hop {
  0% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(-10%) rotate(-4deg); }
  65% { transform: translateY(0) rotate(2deg); }
  100% { transform: translateY(0) rotate(0); }
}
.admin-welcome h1 { margin: 0 0 .25rem; }
.admin-welcome-text { padding-bottom: 1.5rem; }
.admin-welcome .meta { margin: 0 0 1rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.admin-nav .button { padding: .45rem .9rem; font-size: .92rem; }
@media (max-width: 34rem) {
  .admin-welcome { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 1.25rem; }
  .admin-welcome .quokka-spot { align-self: center; margin: 0; }
  .admin-welcome .quokka { width: 8rem; }
  .admin-welcome-text { padding-bottom: 1.25rem; }
  .admin-nav { justify-content: center; }
}

/* Quokka speech bubble: pops up above its head, fades out again (hidden by the script). */
.quokka-bubble {
  position: absolute; left: 62%; bottom: 88%; z-index: 2; margin: 0;
  padding: .45rem .8rem; border-radius: 1rem; white-space: nowrap;
  background: var(--surface, #fbf7f1); color: var(--fg); box-shadow: var(--shadow);
  font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; pointer-events: none;
}
.quokka-bubble::after {
  content: ""; position: absolute; left: .9rem; top: 100%;
  border: .45rem solid transparent; border-top-color: var(--surface, #fbf7f1); border-bottom: 0;
}
.quokka-bubble.is-shown { animation: bubble-pop 2.2s ease-out both; }
@keyframes bubble-pop {
  0% { opacity: 0; transform: translateY(.4rem) scale(.8); }
  10%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-.3rem); }
}
@media (max-width: 34rem) { .quokka-bubble { left: 70%; bottom: 80%; } }

/* Backoffice: "change title photo" button in the hero (logged in only). */
.hero-edit {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem; max-width: calc(100% - 2rem);
  padding: .5rem .95rem; border-radius: 999px; cursor: pointer;
  font-size: .9rem; font-weight: 600; color: var(--fg);
  background: rgb(247 242 234 / .9); box-shadow: var(--shadow); backdrop-filter: blur(4px);
}
.hero-edit svg { width: 1.15rem; height: 1.15rem; flex: none; fill: currentColor; }
.hero-edit:hover { background: var(--surface); }
.hero-edit:focus-within { outline: 2px solid var(--bg); outline-offset: 2px; }
.hero-edit.is-busy { opacity: .75; pointer-events: none; }
@media (max-width: 34rem) { .hero-edit { right: .75rem; bottom: .75rem; font-size: .85rem; } }

/* Admin: title photo on /admin/texte (preview uses the same darkening as the real hero). */
.hero-admin { margin: 1.5rem 0 2rem; }
.hero-admin h2 { margin-bottom: .25rem; }
.hero-admin-row { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 1.25rem; align-items: center; margin-top: 1rem; }
.hero-admin-preview {
  aspect-ratio: 16 / 9; border-radius: .75rem; box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgb(50 33 22 / .78), rgb(69 48 31 / .84)), var(--hero-image, none) center / cover no-repeat, var(--fg);
}
.hero-admin-actions { display: grid; gap: .6rem; justify-items: start; }
.hero-admin-actions .button svg { margin: 0 .35em 0 0; }
@media (max-width: 34rem) { .hero-admin-row { grid-template-columns: minmax(0, 1fr); } }

/* Upload status pill (created by upload() in app.js) */
.upload-pill {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 300;
  translate: -50% 0; width: min(22rem, calc(100vw - 2rem));
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .35rem .7rem;
  padding: .7rem 1rem .8rem; border-radius: 1rem;
  background: var(--fg); color: var(--bg); box-shadow: 0 10px 30px rgb(42 28 20 / .3);
  font-size: .9rem; animation: upload-in .25s ease-out;
}
.upload-pill.is-done { opacity: 0; translate: -50% .5rem; transition: opacity .3s, translate .3s; }
.upload-text { display: flex; justify-content: space-between; gap: .5rem; min-width: 0; }
.upload-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-percent { font-variant-numeric: tabular-nums; opacity: .8; }
.upload-bar { grid-column: 1 / -1; height: .3rem; border-radius: 99px; background: rgb(255 255 255 / .18); overflow: hidden; }
.upload-bar-fill { display: block; height: 100%; width: var(--progress, 0%); background: var(--bg); border-radius: inherit; transition: width .2s ease-out; }
.upload-pill.is-processing .upload-bar-fill { animation: upload-pulse 1.2s ease-in-out infinite; }
.upload-spinner {
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / .25); border-top-color: var(--bg);
  animation: upload-spin .8s linear infinite;
}
@keyframes upload-spin { to { transform: rotate(1turn); } }
@keyframes upload-pulse { 50% { opacity: .45; } }
@keyframes upload-in { from { opacity: 0; translate: -50% .5rem; } }
@media (prefers-reduced-motion: reduce) {
  .upload-spinner { animation-duration: 2.4s; }
  .upload-pill.is-processing .upload-bar-fill { animation: none; }
}

/* Square crop dialog (cropSquare() in app.js) */
.crop-dialog {
  width: min(28rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto;
  padding: 1.25rem; border: 0; border-radius: 1.25rem; background: var(--bg); color: var(--fg);
  box-shadow: 0 20px 60px rgb(42 28 20 / .35);
}
.crop-dialog::backdrop { background: rgb(30 20 14 / .55); backdrop-filter: blur(4px); }
.crop-dialog h2 { margin: 0 0 .25rem; }
.crop-dialog .meta { margin: 0 0 1rem; }
.crop-frame {
  position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: .75rem;
  background: var(--fg); cursor: grab; touch-action: none; user-select: none;
}
.crop-frame:active { cursor: grabbing; }
.crop-frame::after {  /* rule-of-thirds guide */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / .85);
  background:
    linear-gradient(90deg, transparent calc(33.33% - .5px), rgb(255 255 255 / .35) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), rgb(255 255 255 / .35) 0 calc(66.66% + .5px), transparent 0),
    linear-gradient(transparent calc(33.33% - .5px), rgb(255 255 255 / .35) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), rgb(255 255 255 / .35) 0 calc(66.66% + .5px), transparent 0);
}
.crop-image { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-zoom { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .75rem; margin-top: 1rem; font-size: .9rem; }
.crop-zoom input { width: 100%; padding: 0; border: 0; background: none; box-shadow: none; accent-color: var(--fg); }
.crop-hint { margin: .75rem 0 0; font-size: .85rem; color: var(--danger); }
.crop-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; flex-wrap: wrap; }

/* Admin: warning about images that are too small */
.image-warning {
  margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-radius: 1rem;
  background: color-mix(in srgb, #b07a2e 12%, var(--bg)); border: 1px solid color-mix(in srgb, #b07a2e 45%, var(--bg));
}
.image-warning h2 {
  display: flex; align-items: center; gap: .5rem; margin: 0 0 .25rem;
  font-family: var(--font-ui); font-size: 1.05rem; font-weight: 700;
}
.image-warning h2 svg { width: 1.2rem; height: 1.2rem; fill: #b07a2e; flex: none; }
.image-warning > .meta { margin: 0 0 .75rem; }
.image-warning ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.image-warning li {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: .8rem; align-items: center;
  padding-top: .6rem; border-top: 1px solid color-mix(in srgb, #b07a2e 25%, var(--bg));
}
.image-warning li img { width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: .4rem; display: block; }
.image-warning li p { margin: .15rem 0 0; font-size: .9rem; }
.image-warning li strong { overflow-wrap: anywhere; }
.image-warning .button { padding: .35rem .8rem; font-size: .88rem; }
@media (max-width: 34rem) {
  .image-warning li { grid-template-columns: 3rem minmax(0, 1fr); }
  .image-warning li img { width: 3rem; height: 3rem; }
  .image-warning li .button { grid-column: 2; justify-self: start; }
}

/* Input with a small button on its right (e.g. "·" for the craft field) */
.input-with-button { display: flex; gap: .4rem; align-items: stretch; }
.input-with-button input { flex: 1; min-width: 0; }
.input-with-button .button { flex: none; width: 2.75rem; padding: 0; font-size: 1.4rem; line-height: 1; display: grid; place-items: center; }

/* Workshop sign-up: further people in the same booking */
.guests { border: 0; margin: 0; padding: 0; display: grid; gap: .5rem; justify-items: start; }
.guests legend { padding: 0; font-weight: 600; }
.guests legend .meta { font-weight: 400; }
.guests > .meta { margin: 0; }
.guest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; width: 100%; }
.guest-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: center; }
.guest-remove {
  width: 2.4rem; height: 2.4rem; padding: 0; display: grid; place-items: center;
  background: none; color: var(--muted); border: 1px solid var(--border); border-radius: 50%;
}
.guest-remove:hover { color: var(--danger); border-color: var(--danger); }
.signup-total { margin: 0; font-weight: 600; }
.admin-guests { list-style: none; margin: .2rem 0 0; padding: 0; font-size: .88rem; color: var(--muted); }

/* --- Contact overlay ("Schreib Zoe", templates/_contact.html + static/js/contact.js) ------ */
.contact-dialog {
  width: min(38rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto;
  padding: 0; border: 0; border-radius: 1.4rem; background: var(--bg); color: var(--fg);
  box-shadow: 0 30px 80px -20px rgb(42 28 20 / .45);
  overscroll-behavior: contain;
}
.contact-dialog::backdrop { background: rgb(30 20 14 / .45); backdrop-filter: blur(5px); }
.contact-dialog[open] { animation: dialog-in .42s cubic-bezier(.2, .9, .25, 1); }
.contact-dialog[open]::backdrop { animation: backdrop-in .35s ease; }
.contact-dialog.is-closing { animation: dialog-out .25s ease-in forwards; }
.contact-dialog.is-closing::backdrop { animation: backdrop-in .25s ease reverse forwards; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(1.5rem) scale(.97); } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(1rem) scale(.98); } }
@keyframes backdrop-in { from { opacity: 0; } }
.has-dialog, .has-dialog body { overflow: hidden; }
/* Head bar: title and close button, a hairline below; stays on top while scrolling. */
.contact-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem clamp(1.1rem, 4vw, 2rem) .8rem; background: var(--bg);
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, var(--bg));
}
.contact-head h2 { margin: 0; font-size: clamp(1.7rem, 5vw, 2.1rem); line-height: 1.1; }
.contact-close {
  flex: none; width: 2.3rem; height: 2.3rem; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: #a8702e; font-size: 1.2rem;
  transition: background-color .2s, color .2s;
}
.contact-close:hover { background: color-mix(in srgb, var(--fg) 7%, var(--bg)); color: var(--fg); }
.contact-body, .contact-done { padding: 1.4rem clamp(1.1rem, 4vw, 2rem) 1.8rem; }
.contact-done h2 { margin: 0; font-size: clamp(2rem, 6vw, 2.5rem); }
.contact-intro { margin: 0 0 1.6rem; color: var(--muted); }
.contact-form { display: grid; gap: 1.5rem; }
/* "Line" fields: small caps label above, an underline instead of a box. */
.field-label {
  display: block; margin: 0 0 .15rem; padding: 0;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in srgb, var(--fg) 62%, var(--bg));
}
.req { color: #b0482f; }
.line-field { display: grid; }
.contact-form .line-field input, .contact-form .line-field textarea, .contact-form .date-alt {
  width: 100%; padding: .5rem 0 .45rem; border: 0; border-radius: 0; background: transparent;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, var(--bg));
  box-shadow: 0 1px 0 transparent; outline: none; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form .line-field textarea { min-height: 2.4rem; }
.contact-form .line-field input::placeholder, .contact-form .line-field textarea::placeholder {
  color: color-mix(in srgb, var(--fg) 38%, var(--bg)); opacity: 1;
}
.contact-form .line-field input:hover, .contact-form .line-field textarea:hover {
  border-bottom-color: color-mix(in srgb, var(--fg) 45%, var(--bg));
}
.contact-form .line-field input:focus, .contact-form .line-field textarea:focus, .contact-form .date-alt:focus {
  border-bottom-color: var(--fg); box-shadow: 0 1px 0 var(--fg);
}
.contact-form .line-field:focus-within .field-label { color: var(--fg); }
.contact-form [aria-invalid] { border-bottom-color: var(--danger) !important; box-shadow: 0 1px 0 var(--danger) !important; }
.contact-consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.contact-consent input { margin-top: .2rem; }
.contact-consent a { color: var(--fg); }
.contact-submit {
  justify-self: center; width: min(100%, 18rem); margin-top: .25rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .75rem 1.4rem; border-radius: .4rem; border: 1.5px solid var(--fg);
  background: transparent; color: var(--fg); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em;
  transition: background-color .2s, color .2s;
}
.contact-submit svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.contact-submit:hover, .contact-submit:focus-visible { background: var(--fg); color: var(--bg); }
.contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.contact-form legend.field-label { margin-bottom: .55rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--fg) 18%, var(--bg)); font-size: .9rem; font-weight: 500;
  background: transparent; transition: background-color .2s, border-color .2s, color .2s;
}
.chip span svg { width: 1rem; height: 1rem; fill: currentColor; opacity: .75; }
.chip:hover span { border-color: color-mix(in srgb, var(--fg) 40%, var(--bg)); }
.chip input:checked + span { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip input:checked + span svg { opacity: 1; }
.chip input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.topic-extra { animation: extra-in .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes extra-in { from { opacity: 0; transform: translateY(-.3rem); } }
.field-error { display: block; margin-top: .3rem; font-size: .85rem; font-weight: 500; color: var(--danger); }
.contact-form [aria-invalid] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field-hint { display: flex; justify-content: space-between; gap: 1rem; }
.field-hint .field-error { margin-right: auto; }
.counter { margin-top: .3rem; margin-left: auto; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* After sending: the delivery scene */
.contact-done { display: grid; justify-items: center; text-align: center; gap: .4rem; }
.delivery { position: relative; width: 100%; height: 10rem; overflow: hidden; }
.delivery-letter { position: absolute; left: 50%; bottom: 1.6rem; width: 4.5rem; margin-left: -2.25rem; opacity: 0; }
.delivery-quokka {
  position: absolute; left: 50%; bottom: .4rem; width: 6rem; margin-left: -3rem; aspect-ratio: 7 / 9;
  background-color: var(--fg); transform-origin: 50% 95%;
  -webkit-mask: url("../img/quokka.svg") center / contain no-repeat;
  mask: url("../img/quokka.svg") center / contain no-repeat;
}
.contact-done .done-text { margin: 0 0 1rem; }
.contact-done [data-contact-close] { justify-self: center; }
/* Phones: a sheet sliding up from the bottom */
@media (max-width: 34rem) {
  .contact-dialog {
    width: 100vw; max-width: 100vw; margin: auto 0 0; max-height: 92dvh;
    border-radius: 1.4rem 1.4rem 0 0;
  }
  .contact-dialog[open] { animation: sheet-in .45s cubic-bezier(.2, .9, .25, 1); }
  .contact-dialog.is-closing { animation: sheet-out .28s ease-in forwards; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  @keyframes sheet-out { to { transform: translateY(100%); } }
}
@media (prefers-reduced-motion: reduce) {
  .contact-dialog[open], .contact-dialog[open]::backdrop, .topic-extra { animation: none; }
}

/* Admin: contact messages */
.message-list { display: grid; gap: 1rem; margin-top: 1rem; }
.message-card {
  display: grid; gap: .35rem; padding: 1rem 1.2rem; border-radius: 1rem;
  background: var(--surface); border: 1px solid var(--border);
}
.message-card header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.message-topic {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--fg) 8%, var(--bg));
}
.message-card.is-wunschstueck .message-topic { background: #a8702e; color: #fff8ec; }
.message-card.is-reklamation .message-topic { background: color-mix(in srgb, var(--danger) 85%, var(--bg)); color: #fff; }
.message-card h2 { margin: .2rem 0 0; font-size: 1.6rem; }
.message-from { margin: 0; overflow-wrap: anywhere; }
.message-card .rows { margin: .3rem 0; }
.message-text { margin: .4rem 0; white-space: pre-line; overflow-wrap: anywhere; }
.message-card footer { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding-top: .5rem; border-top: 1px solid var(--border); }
.message-mail { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); }
.message-mail svg { width: 1rem; height: 1rem; fill: currentColor; }
.message-mail.is-failed { color: var(--danger); font-weight: 600; }

/* Date picker (flatpickr) in the site's colours. "html" in front: the vendor CSS is loaded
   later (on first use) and would win otherwise. */
.date-alt { cursor: pointer; }
html .flatpickr-calendar {
  font-family: inherit; border: 0; border-radius: 1rem; background: var(--bg);
  box-shadow: 0 18px 50px -12px rgb(42 28 20 / .4), 0 0 0 1px rgb(58 39 28 / .08);
}
html .flatpickr-calendar.arrowTop::before, html .flatpickr-calendar.arrowTop::after { border-bottom-color: var(--bg); }
html .flatpickr-calendar.arrowBottom::before, html .flatpickr-calendar.arrowBottom::after { border-top-color: var(--bg); }
html .flatpickr-months .flatpickr-month, html .flatpickr-current-month .flatpickr-monthDropdown-months,
html .flatpickr-weekdays, html span.flatpickr-weekday { background: transparent; color: var(--fg); fill: var(--fg); }
html .flatpickr-current-month { font-size: 1rem; font-weight: 600; }
html .flatpickr-months .flatpickr-prev-month, html .flatpickr-months .flatpickr-next-month { color: var(--fg); fill: var(--fg); }
html .flatpickr-months .flatpickr-prev-month:hover svg, html .flatpickr-months .flatpickr-next-month:hover svg { fill: #a8702e; }
html span.flatpickr-weekday { font-weight: 600; color: var(--muted); }
html .flatpickr-day { color: var(--fg); border-radius: .6rem; }
html .flatpickr-day:hover, html .flatpickr-day:focus { background: color-mix(in srgb, var(--fg) 8%, var(--bg)); border-color: transparent; }
html .flatpickr-day.today { border-color: #a8702e; }
html .flatpickr-day.selected, html .flatpickr-day.selected:hover, html .flatpickr-day.selected:focus {
  background: var(--fg); border-color: var(--fg); color: var(--bg);
}
html .flatpickr-day.flatpickr-disabled, html .flatpickr-day.prevMonthDay, html .flatpickr-day.nextMonthDay { color: color-mix(in srgb, var(--fg) 30%, var(--bg)); }
html .flatpickr-time { border-top-color: var(--border) !important; }
html .flatpickr-time input, html .flatpickr-time .flatpickr-am-pm { color: var(--fg); font-weight: 600; }
html .flatpickr-time input:hover, html .flatpickr-time input:focus { background: color-mix(in srgb, var(--fg) 6%, var(--bg)); }
html .flatpickr-wrapper { display: block; width: 100%; }
html .flatpickr-calendar.static { top: calc(100% + .35rem); z-index: 5; }

/* Phones: fixed square size (7.5rem) for the date and the workshop pictures; one workshop
   card per row. */
@media (max-width: 34rem) {
  /* The square defines the day card's height: the info next to it is kept compact. */
  .cal-day.is-open { --sq-min: 7.5rem; grid-template-rows: var(--sq-min); }
  .is-open .cal-face { aspect-ratio: 1; }
  .cal-info { padding: .6rem .9rem; gap: .3rem; overflow: hidden; }
  .cal-info .cal-detail-date { font-size: 1.05rem; line-height: 1.25; }
  .cal-info .cal-hours { font-size: .9rem; line-height: 1.3; }
  .cal-extras { grid-template-columns: minmax(0, 1fr); }
  .cal-ws-body { padding: .8rem .9rem; }
  .is-open .cal-num { font-size: 3rem; }
  .is-open .cal-wd { top: .7rem; left: .8rem; }
}

/* Safari: rounded containers with blurred or scaled children clip only rectangularly with
   overflow: hidden. clip-path with the same radius cuts them correctly. (No masks here: in
   mobile Safari masked elements are painted late, so an opened calendar day showed an
   empty square for a moment.) */
.cal-day.has-photo:not(.is-open) .cal-face { clip-path: inset(0 round .6rem); }
.carousel.is-strip .carousel-open { clip-path: inset(0 round .75rem); }
@media (max-width: 48rem) { .cal-day.has-photo:not(.is-open) .cal-face { clip-path: inset(0 round .45rem); } }

/* Check boxes: no white box, a fine brown frame on the page colour; checked = filled brown
   with a light tick. (The switch toggles keep their own look: their input is hidden.) */
input[type=checkbox] {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; padding: 0; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--fg) 55%, var(--bg)); border-radius: .3rem;
  background: transparent center / 75% no-repeat; vertical-align: -.2em;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
input[type=checkbox]:hover { border-color: var(--fg); }
input[type=checkbox]:checked {
  border-color: var(--fg); background-color: var(--fg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23efe7da' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
input[type=checkbox]:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
input[type=checkbox]:user-invalid, input[type=checkbox][aria-invalid] { border-color: var(--danger); }
input[type=checkbox]:disabled { opacity: .5; cursor: default; }

/* No text selection on pure interface parts (menus, buttons, labels, tiles, badges, counters):
   a double tap or a drag on them should not paint a selection. Content people may want to
   copy stays selectable: texts, addresses, e-mail, opening hours, titles, descriptions,
   legal pages, form inputs. */
.site-header, .menu-backdrop, .hangers, button, .button, .chip, .chips, .field-label, legend,
.cal-face, .cal-hole, .cal-month, .cal-legend, .cal-wd, .cal-num, .cal-icons, .cal-ws-kicker,
.cal-ws-status, .cal-ws-go, .cal-ws-pic, .strip-tile, .carousel-pos, .carousel-btn,
.lightbox-count, .lightbox-btn, .tl-meta, .seats, .seats-bar, .upload-pill, .quokka-spot, .admin-nav,
.credit-cycle, .footer-credit, .switch, .font-option, .contact-head, .delivery,
.creator-strip h3, .store-hero-eyebrow, .back-link, .contact-consent, label.check {
  -webkit-user-select: none; user-select: none;
}
input, textarea, select, [contenteditable] { -webkit-user-select: text; user-select: text; }
