/* Tante Emma Laden – Festival App
   Bildsprache nach dem Instagram-Auftritt @tanteemmaladenpangea:
   tiefes Violett, Sonnengelb, Rosa, Pinselstriche, schmale Plakatschrift, Marker-Lettering. */

@font-face { font-family: 'Anton'; src: url(fonts/anton-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Permanent Marker'; src: url(fonts/permanent-marker-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --violet: #3B2C91;        /* Grundfläche wie auf den Plakaten */
  --violet-deep: #261A6B;
  --violet-ink: #22185A;    /* Text auf hellen Flächen */
  --yellow: #F4E35C;        /* Sonnengelb */
  --pink: #F3AECB;          /* Rosa Pinselstrich */
  --hot: #E3335F;           /* Promo-Rot, nur für Warnungen */
  --card: #FFF9EC;          /* helle Karten */
  --card-line: #E3DCF3;
  --on-violet: #FFF9EC;
  --on-violet-muted: #CEC6F4;
  --muted-card: #5F5690;
  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --marker: 'Permanent Marker', 'Comic Sans MS', cursive;
  --body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-s: 6px;
  --radius-m: 14px;
  --tabbar-h: 64px;
  /* Kontextabhängig: auf Violett hell, in Karten dunkel */
  --fg: var(--on-violet);
  --muted: var(--on-violet-muted);
  --line: rgba(255, 249, 236, .18);
  --link: var(--yellow);
  color-scheme: dark;
}

/* Helle Flächen setzen ihren eigenen Textkontext */
.panel, .list, details.fold, .receipt, .facts, .door, .tbl-wrap, .stat, .empty, .notice, .checks, .toast.light {
  --fg: var(--violet-ink);
  --muted: var(--muted-card);
  --line: var(--card-line);
  --link: var(--violet);
  color: var(--fg);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--violet); }
body {
  margin: 0;
  background: var(--violet);
  color: var(--fg);
  font: 400 17px/1.5 var(--body);
  font-variant-numeric: tabular-nums;
  min-height: 100dvh;
}
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
h1 {
  font: 400 2.3rem/1 var(--display);
  text-transform: uppercase; letter-spacing: .01em;
  color: var(--yellow);
  margin-bottom: .45em;
}
h2 { font: 400 1.35rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--yellow); }
.panel h2, .list h2 { color: var(--violet); }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
.panel :focus-visible, .list :focus-visible { outline-color: var(--hot); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pinselstrich ---------- */
.brush {
  position: relative; display: inline-block; isolation: isolate;
  padding: .18em .6em .14em; color: var(--violet-ink);
}
.brush::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--brush, var(--yellow));
  -webkit-mask: url(brush.svg) center / 100% 100% no-repeat;
          mask: url(brush.svg) center / 100% 100% no-repeat;
}
.brush.pink { --brush: var(--pink); }
.brush.tilt { transform: rotate(-2deg); }

/* ---------- Grundlayout ---------- */
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  flex-wrap: wrap; row-gap: 6px;
  max-width: 720px; width: 100%; margin: 0 auto;
}
.topbar .brand { font: 400 1.15rem/1 var(--marker); color: var(--pink); text-decoration: none; white-space: nowrap; transform: rotate(-2deg); }
.topbar .area { color: var(--muted); font-size: .9rem; }
.topbar .spacer { flex: 1; }
.topbar a, .topbar button { white-space: nowrap; }
@media (max-width: 520px) {
  .topbar .who, .topbar .area { display: none; }
  .topbar { flex-wrap: nowrap; gap: 14px; }
  .topbar .brand { font-size: 1rem; }
  .topbar a.small, .topbar .linkish { display: inline-flex; align-items: center; min-height: 40px; padding: 0 2px; }
}
main {
  flex: 1;
  width: 100%; max-width: 720px; margin: 0 auto;
  padding: 10px 16px calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom));
}
.shell.no-tabs main { padding-bottom: 40px; }
.edge {
  height: 10px; background: var(--pink);
  -webkit-mask: url(brush.svg) center / 140% 100% no-repeat; mask: url(brush.svg) center / 140% 100% no-repeat;
}

/* Untere Tab-Leiste */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--violet-deep);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -1px 0 rgba(255,255,255,.08);
}
.tabbar ul { list-style: none; margin: 0 auto; padding: 0; display: flex; max-width: 720px; }
.tabbar li { flex: 1 1 auto; }
.tabbar a { padding: 0 4px; }
.tabbar a {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: var(--tabbar-h);
  color: var(--on-violet-muted);
  text-decoration: none; font-size: .78rem; font-weight: 700;
}
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--yellow); }
.tabbar a[aria-current="page"]::before {
  content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 5px; background: var(--pink);
  -webkit-mask: url(brush.svg) center / 100% 100% no-repeat; mask: url(brush.svg) center / 100% 100% no-repeat;
}
.tabbar .count {
  position: absolute; top: 8px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--hot); color: #fff; font-size: .72rem; line-height: 18px; text-align: center;
}

/* ---------- Bausteine ---------- */
.panel { background: var(--card); border-radius: var(--radius-m); padding: 16px; margin-bottom: 14px; }
.list { list-style: none; margin: 0 0 14px; padding: 0; background: var(--card); border-radius: var(--radius-m); overflow: hidden; }
.list > li { border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.row { display: flex; gap: 12px; align-items: center; padding: 14px 16px; color: inherit; text-decoration: none; }
a.row:active, button.row:active { background: color-mix(in srgb, var(--pink) 30%, transparent); }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 700; }
.row .sub { color: var(--muted); font-size: .92rem; }
.row .side { text-align: right; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.stack > * + * { margin-top: 10px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 10px; }
.section-title h2 { margin: 0; }
.pre { white-space: pre-wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid var(--yellow);
  background: var(--yellow); color: var(--violet-ink);
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--yellow); }
.panel .btn, .list .btn, .receipt .btn { background: var(--violet); border-color: var(--violet); color: var(--on-violet); }
.panel .btn.secondary, .list .btn.secondary, .receipt .btn.secondary { background: transparent; color: var(--violet); }
.btn.danger, .panel .btn.danger { background: transparent; border-color: var(--hot); color: var(--hot); }
.btn.block { width: 100%; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.linkish { background: none; border: 0; padding: 0; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px 6px; scrollbar-width: none; }
.chip {
  flex: none; min-height: 38px; padding: 0 16px; border-radius: 19px;
  border: 1.5px solid var(--on-violet-muted); background: transparent; color: var(--on-violet);
  font: 700 .92rem var(--body); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--violet-ink); }
.panel .chips { margin: 0; padding: 0; }

/* Sticker-Etikett (wie „ARTIST RELEASE“) */
.tag {
  display: inline-block; position: relative; isolation: isolate;
  padding: 3px 10px; color: var(--violet-ink);
  font: 400 .9rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .03em;
  transform: rotate(-1.5deg);
}
.tag::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--yellow);
  -webkit-mask: url(brush.svg) center / 100% 100% no-repeat; mask: url(brush.svg) center / 100% 100% no-repeat;
}
.tag.red { color: #fff; }
.tag.red::before { background: var(--hot); }
.tag.green::before { background: var(--pink); }

.notice { background: var(--card); padding: 12px 14px 12px 18px; border-radius: var(--radius-s); margin-bottom: 14px; position: relative; overflow: hidden; }
.notice::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--yellow); }
.notice.red::before { background: var(--hot); }
a.notice { display: block; text-decoration: none; }

details.fold { background: var(--card); border-radius: var(--radius-m); margin-bottom: 10px; }
details.fold > summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 700; position: relative; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--violet); border-bottom: 2.5px solid var(--violet); transform: rotate(45deg); transition: transform .15s;
}
details.fold[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
details.fold .fold-body { padding: 0 16px 16px; }
details.fold summary .sub { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }

/* ---------- Formulare ---------- */
.field { margin-bottom: 14px; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field .hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number],
input[type=search], input[type=datetime-local], input[type=date], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1.5px solid var(--card-line); border-radius: var(--radius-s);
  background: #fff; color: var(--violet-ink); font: 400 1rem var(--body); color-scheme: light;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); outline: 3px solid color-mix(in srgb, var(--pink) 70%, transparent); outline-offset: 0; }
main > .field input[type=search] { border-color: transparent; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 700; }
.check input { width: 22px; height: 22px; accent-color: var(--violet); }
.checks { display: grid; gap: 2px; max-height: 240px; overflow: auto; padding: 6px 10px; border: 1.5px solid var(--card-line); border-radius: var(--radius-s); background: #fff; }
.checks .check { font-weight: 400; min-height: 38px; }
.form-error { color: var(--hot); font-weight: 700; margin-bottom: 12px; }
.form-error:empty { display: none; }
.grid-2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Startseite ---------- */
.storefront { min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }
.hero { position: relative; padding: calc(34px + env(safe-area-inset-top)) 20px 4px; max-width: 560px; margin: 0 auto; width: 100%; }
.hero .sun {
  position: absolute; right: -70px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: var(--yellow);
}
.hero .eyebrow { position: relative; font: 400 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.hero h1.wordmark { position: relative; margin: 16px 0 6px; font: 400 clamp(3.4rem, 19vw, 5rem)/.88 var(--display); color: var(--yellow); }
.hero .place { position: relative; font: 400 1.25rem/1.2 var(--marker); color: var(--pink); transform: rotate(-2deg); display: inline-block; margin: 8px 0 0; }
.shop-art { display: block; width: 100%; max-width: 440px; height: auto; margin: 10px auto 0; position: relative; }
.doors { display: grid; gap: 12px; padding: 10px 20px 26px; max-width: 560px; margin: 0 auto; width: 100%; }
.door {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center;
  background: var(--card); border-radius: var(--radius-m);
  padding: 16px; text-decoration: none;
}
.door .ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--violet-ink); }
.door:nth-child(2) .ico { background: var(--pink); }
.door:nth-child(3) .ico { background: var(--violet); color: var(--yellow); }
.door .ico svg { width: 26px; height: 26px; }
.door strong { display: block; font: 400 1.35rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--violet); }
.door span { color: var(--muted); font-size: .92rem; }
.foot-links { text-align: center; padding: 0 20px 34px; color: var(--muted); font-size: .92rem; }

/* ---------- Timetable ---------- */
.slot { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 14px 16px; }
.slot .t { font: 400 1.35rem/1 var(--display); color: var(--violet); }
.slot .t small { display: block; font: 400 .85rem/1.4 var(--body); color: var(--muted); margin-top: 4px; }
.slot .name { font: 400 1.25rem/1.15 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.slot.live { background: color-mix(in srgb, var(--yellow) 45%, var(--card)); }
.slot.past { opacity: .5; }

/* ---------- Kassenbon: Auftrittszettel ---------- */
.receipt {
  --tooth: 10px;
  position: relative;
  background: var(--card);
  padding: 22px 20px calc(22px + var(--tooth));
  margin: 4px 0 26px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--tooth)) var(--tooth) repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) + 1px) no-repeat;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--tooth)) var(--tooth) repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) + 1px) no-repeat;
}
.receipt .head { text-align: center; border-bottom: 2px dashed var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.receipt .head .act { font: 400 2rem/1 var(--display); text-transform: uppercase; display: block; color: var(--violet); }
.receipt .head .date { display: block; margin-top: 8px; font-weight: 700; }
.receipt .big-time { text-align: center; font: 400 3.1rem/1 var(--display); margin: 6px 0 4px; color: var(--violet-ink); }
.receipt .big-time .to { color: var(--muted); font: 400 1.3rem var(--body); vertical-align: middle; }
.receipt .stage { text-align: center; margin-bottom: 14px; }
.receipt .stage span { font: 400 1.15rem/1 var(--marker); color: var(--violet); }
.receipt dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; text-align: right; font-weight: 700; }
.receipt .rule { border: 0; border-top: 2px dashed var(--line); margin: 14px 0; }
.receipt .countdown { position: relative; isolation: isolate; text-align: center; padding: 14px 12px; color: var(--violet-ink); }
.receipt .countdown::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--pink);
  -webkit-mask: url(brush.svg) center / 100% 100% no-repeat; mask: url(brush.svg) center / 100% 100% no-repeat;
}
.receipt .countdown.now::before { background: var(--yellow); }
.receipt .countdown strong { display: block; font: 400 1.9rem/1.05 var(--display); letter-spacing: .02em; }
.receipt .notes { white-space: pre-wrap; }

/* Detail-Infos zum Auftritt */
.facts { display: grid; gap: 0; margin: 0 0 14px; background: var(--card); border-radius: var(--radius-m); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; white-space: pre-wrap; }
@media (max-width: 380px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }

/* Kontaktkarten */
.contact { padding: 16px; }
.contact .fn { font: 400 .95rem/1 var(--marker); color: var(--hot); margin-bottom: 4px; }
.contact .nm { font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; }

/* Benachrichtigungen */
.note-item { padding: 14px 16px; }
.note-item.unread { box-shadow: inset 6px 0 0 var(--yellow); }
.note-item .when { color: var(--muted); font-size: .85rem; }

/* Schicht */
.clock { text-align: center; padding: 26px 16px; }
.clock .elapsed { font: 400 3.6rem/1 var(--display); margin: 12px 0 20px; color: var(--violet); letter-spacing: .02em; }
.qty-big { font: 400 3rem/1 var(--display); color: var(--violet); }
.qty-big .small { font: 400 1.1rem var(--body); }

/* ---------- Admin ---------- */
.admin-layout { display: block; }
.admin-nav { margin-bottom: 14px; }
.admin-nav h3 { color: var(--pink); font: 400 .95rem/1 var(--marker); margin: 18px 0 6px; }
.admin-nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--on-violet); text-decoration: none; }
.admin-nav a:hover { background: rgba(255,255,255,.08); }
.admin-nav a[aria-current="page"] { background: var(--yellow); color: var(--violet-ink); font-weight: 700; }
.admin-nav .desktop { display: none; }
@media (min-width: 980px) {
  body.wide main, body.wide .topbar { max-width: 1240px; }
  .admin-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
  .admin-nav { position: sticky; top: 12px; }
  .admin-nav .desktop { display: block; }
  .admin-nav .mobile { display: none; }
}
.tbl-wrap { background: var(--card); border-radius: var(--radius-m); overflow: hidden; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th { text-align: left; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr:first-child td { border-top: 0; }
.tbl tr[data-href] { cursor: pointer; }
.tbl tr[data-href]:hover td { background: color-mix(in srgb, var(--pink) 25%, transparent); }
@media (max-width: 700px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl tr { padding: 10px 14px; border-top: 1px solid var(--line); }
  .tbl tbody tr:first-child { border-top: 0; }
  .tbl td { border: 0; padding: 2px 0; display: grid; grid-template-columns: 8.5em 1fr; gap: 10px; }
  .tbl td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; }
  .tbl td:first-child { font-weight: 700; }
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border-radius: var(--radius-m); padding: 14px; }
a.stat { text-decoration: none; }
a.stat:hover { box-shadow: inset 0 0 0 2px var(--pink); }
.stat b { display: block; font: 400 2.4rem/1.05 var(--display); color: var(--violet); }
.stat span { color: var(--muted); font-size: .9rem; }
.linkbox { display: flex; gap: 8px; margin-top: 8px; }
.linkbox input { font-size: .85rem; }
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }

/* Toasts */
#toasts { position: fixed; left: 0; right: 0; top: calc(10px + env(safe-area-inset-top)); z-index: 50; display: grid; gap: 8px; justify-items: center; pointer-events: none; padding: 0 12px; }
.toast {
  pointer-events: auto; max-width: 520px; width: 100%;
  background: var(--violet-deep); color: var(--on-violet);
  padding: 12px 16px; border-radius: var(--radius-s); font-weight: 700;
  box-shadow: 0 10px 30px rgba(10,5,40,.45);
  animation: drop .25s ease-out;
}
.toast.alert { background: var(--yellow); color: var(--violet-ink); }
.toast.error { background: var(--hot); color: #fff; }
.toast small { display: block; font-weight: 400; }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.loading { padding: 40px 0; text-align: center; color: var(--muted); }
.empty { padding: 26px 16px; text-align: center; color: var(--muted); background: var(--card); border-radius: var(--radius-m); }
.center-card { max-width: 440px; margin: 0 auto; }

/* ---------- Hinweis-Glocke im Kopf ---------- */
.bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--on-violet); }
.bell svg { width: 24px; height: 24px; }
.bell.on { background: var(--yellow); color: var(--violet-ink); }
.bell .count {
  position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--hot); color: #fff; font-size: .72rem; line-height: 18px; text-align: center; font-weight: 700;
}

/* ---------- Akkreditierung ---------- */
.secure-note { display: flex; gap: 10px; align-items: flex-start; color: var(--on-violet-muted); font-size: .92rem; }
.secure-note svg { flex: none; width: 20px; height: 20px; color: var(--yellow); margin-top: 1px; }
.step {
  display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; margin-right: .25em;
  border-radius: 50%; background: var(--yellow); color: var(--violet-ink); font-size: .9em;
}
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px;
  border: 2px solid var(--card-line); border-radius: var(--radius-m); background: #fff; color: var(--violet);
}
.choice span svg { width: 30px; height: 30px; }
.choice b { font: 400 1.4rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.choice input:checked + span { border-color: var(--violet); background: var(--yellow); color: var(--violet-ink); }
.choice input:focus-visible + span { outline: 3px solid var(--hot); outline-offset: 2px; }
.choice input:disabled + span { opacity: .7; cursor: default; }
.consent { align-items: flex-start; font-weight: 400; font-size: .92rem; margin-bottom: 14px; }
.consent input { margin-top: 2px; flex: none; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { padding: 12px 0; border-top: 1px solid var(--line); }
.people li:first-child { border-top: 0; padding-top: 0; }
.people .who-name { font-weight: 700; font-size: 1.05rem; }
.people .tag { margin-left: 6px; font-size: .8rem; }

/* ---------- Fotos ---------- */
.photos { padding: 6px 0 26px; max-width: 720px; margin: 0 auto; width: 100%; }
.photos-title { margin: 0 20px 14px; font-size: 1.5rem; }
.photo-row { display: flex; gap: 14px; overflow-x: auto; padding: 8px 20px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.photo-row::-webkit-scrollbar { display: none; }
.photo { flex: none; width: 72%; max-width: 340px; margin: 0; scroll-snap-align: center; background: var(--card); padding: 8px 8px 26px; border-radius: 4px; box-shadow: 0 10px 24px rgba(10,4,40,.35); }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.photo.p0 { transform: rotate(-2deg); } .photo.p1 { transform: rotate(1.5deg); } .photo.p2 { transform: rotate(-1deg); } .photo.p3 { transform: rotate(2deg); }
main .photos { margin: 18px -16px 0; width: auto; }
.hero-photo { margin: 0 0 16px; border-radius: var(--radius-m); overflow: hidden; }
.hero-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 380px) {
  .topbar { gap: 10px; }
  .topbar .brand { font-size: .88rem; }
  .topbar a.small, .topbar .linkish { font-size: .9rem; }
}

/* ---------- Rechtliches ---------- */
.legal-links { display: flex; gap: 18px; justify-content: center; margin: 18px 0 28px; font-size: .9rem; }
.legal-links a { color: var(--on-violet-muted); }
.legal-text { line-height: 1.6; }
code { font-size: .9em; background: color-mix(in srgb, var(--violet) 10%, transparent); padding: 1px 5px; border-radius: 4px; }

/* ---------- Timetable: Jetzt läuft, Favoriten ---------- */
.nowbox { display: grid; gap: 8px; margin-bottom: 14px; }
.now-item {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center;
  background: var(--card); color: var(--violet-ink); border-radius: var(--radius-m); padding: 12px 14px;
}
.now-item .tag { grid-row: span 2; align-self: center; }
.now-item strong { font: 400 1.15rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.now-item .small { color: var(--muted-card); }
.slot-body { position: relative; padding-right: 46px; min-width: 0; }
.fav {
  position: absolute; right: -4px; top: -6px; width: 44px; height: 44px; border: 0; background: none;
  font-size: 1.5rem; line-height: 1; color: var(--violet); cursor: pointer; border-radius: 50%;
}
.fav.on { color: var(--hot); }
.slot .t small.day { margin: 0 0 4px; font-weight: 700; }

/* ---------- Lager: Schnellbuchung ---------- */
.inv-row { display: flex; align-items: stretch; }
.inv-row > a.row { flex: 1; min-width: 0; padding-right: 8px; }
.stepper-mini { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 8px 12px 8px 0; }
.step {
  width: 44px; height: 36px; border-radius: 10px; border: 2px solid var(--violet);
  background: #fff; color: var(--violet); font: 700 1.3rem/1 var(--body); cursor: pointer;
}
.step[data-kind="in"] { background: var(--violet); color: var(--on-violet); }
.step:disabled { opacity: .35; cursor: default; }
.step:active { transform: scale(.95); }

/* ---------- Druckliste ---------- */
.print-sheet { background: #fff; color: #111; padding: 20px; border-radius: var(--radius-m); }
.print-sheet h1 { color: #111; padding-top: 6px; line-height: 1.15; }
.print-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.print-table th, .print-table td { border: 1px solid #999; padding: 6px 8px; text-align: left; vertical-align: top; }
.print-table td.box { width: 28px; }
.print-sheet .btn.secondary { color: var(--violet); border-color: var(--violet); }
.print-sheet .btn { background: var(--violet); color: #fff; border-color: var(--violet); }
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  html, body { background: #fff !important; }
  .topbar, .tabbar, .no-print, #toasts { display: none !important; }
  main { padding: 0 !important; max-width: none !important; }
  .print-sheet { padding: 0; }
  .print-table tr { break-inside: avoid; }
}

/* ---------- Sprachumschalter ---------- */
.lang {
  min-height: 34px; min-width: 40px; padding: 0 10px; border-radius: 17px;
  border: 1.5px solid var(--on-violet-muted); background: transparent; color: var(--on-violet);
  font: 700 .82rem/1 var(--body); letter-spacing: .06em; cursor: pointer;
}
.lang:hover { border-color: var(--yellow); color: var(--yellow); }
.lang-corner { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 20px; z-index: 2; }

/* ---------- Durchsage-Banner ---------- */
.notice.broadcast { padding-right: 14px; }
.notice.broadcast .bc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notice.broadcast .bc-head svg { width: 22px; height: 22px; flex: none; color: var(--violet); }
.notice.broadcast.red .bc-head svg { color: var(--hot); }
.notice.broadcast .bc-head .muted { margin-left: auto; }
.notice.broadcast .linkish { margin-top: 6px; display: inline-block; }
a.notice { display: block; text-decoration: none; color: var(--fg); }

/* ---------- Lageplan ---------- */
.sitemap { margin: 0 0 14px; }
.sitemap-inner { position: relative; background: var(--card); border-radius: var(--radius-m); overflow: hidden; line-height: 0; }
.sitemap-inner img { width: 100%; height: auto; display: block; }
.sitemap.edit .sitemap-inner { cursor: crosshair; }
.sitemap figcaption { margin-top: 8px; color: var(--muted); }
.pin {
  position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; padding: 0; border: 2px solid var(--violet-ink);
  background: var(--yellow); color: var(--violet-ink); font: 700 .85rem/1 var(--body); line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35); cursor: pointer;
}
.pin.on { background: var(--hot); color: #fff; border-color: #fff; width: 38px; height: 38px; z-index: 2; }
.pin.pending { background: var(--pink); }
.pin-num {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--yellow); color: var(--violet-ink); font: 700 .85rem/1 var(--body);
}
.legend-row { width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.legend-row.on { background: #FFF1A8; }
.legend-row.on .pin-num { background: var(--hot); color: #fff; }

/* ---------- Schichtplan ---------- */
.plan-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; }
.plan-item .grow { flex: 1; min-width: 180px; }
.plan-item .sub { color: var(--muted); font-size: .92rem; }
.plan-item .offer-form { flex-basis: 100%; margin: 4px 0 0; background: #fff; }

/* ---------- Inventur & Bestellliste ---------- */
.count-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.count-row .grow { flex: 1; min-width: 0; cursor: pointer; }
.count-row .sub { color: var(--muted); font-size: .88rem; }
.count-row.done { background: #F6F3FF; }
.count-row input.count-input {
  flex: 0 0 96px; width: 96px; min-height: 46px; padding: 0 10px; border-radius: var(--radius-s);
  border: 2px solid var(--card-line); background: #fff; color: var(--violet-ink);
  font: 700 1.15rem/1 var(--body); text-align: right;
}
.count-row input.count-input:focus { border-color: var(--violet); }
.count-row input.count-input.error { border-color: var(--hot); }
.count-diff { min-width: 64px; text-align: right; }
.progress { height: 10px; border-radius: 5px; background: rgba(255, 249, 236, .2); overflow: hidden; margin: 4px 0 6px; }
.progress span { display: block; height: 100%; background: var(--yellow); transition: width .3s; }
.sticky-actions {
  position: sticky; bottom: calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom)); z-index: 5;
  background: var(--violet); padding: 10px 0; margin-top: 10px;
}
.steps-list { padding-left: 1.2em; margin: 0 0 14px; }
.steps-list li { margin-bottom: 6px; }

/* ---------- Admin: Formulare in einer Zeile, Zielgruppen, Balken ---------- */
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inline-form .form-error { flex-basis: 100%; }
.inline-form input:not([type=checkbox]) { width: auto; min-height: 40px; padding: 0 10px; border-radius: var(--radius-s); border: 1.5px solid var(--card-line); font: inherit; flex: 1 1 140px; }
.inline-form input[type="date"] { flex: 0 1 170px; }
.aud-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.aud-grid .choice span { align-items: flex-start; text-align: left; padding: 12px; gap: 4px; }
.aud-grid .choice b { font-size: 1.15rem; }
.aud-grid .choice small { font-size: .8rem; color: var(--muted-card); }
.aud-grid .choice small.reach { font-weight: 700; color: var(--violet); }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: minmax(120px, 1.3fr) 2fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.bars li:first-child { border-top: 0; }
.bar-label { font-weight: 700; }
.bar-label small, .bar-val small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.bar { height: 14px; background: #EEE9FA; border-radius: 7px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--violet); border-radius: 7px; }
.bar-val { text-align: right; font-weight: 700; white-space: nowrap; }
@media (max-width: 520px) { .bars li { grid-template-columns: 1fr auto; } .bars .bar { grid-column: 1 / -1; grid-row: 2; } }

/* Fünf Tabs: auf schmalen Handys etwas kleinere Beschriftung */
@media (max-width: 380px) { .tabbar a span:not(.count) { font-size: .68rem; } }
@media print {
  .sticky-actions, .count-input { border: 0; }
  .sticky-actions { display: none !important; }
}
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Fotowand ---------- */
.mom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-bottom: 14px; }
.mom-tile { position: relative; padding: 0; border: 0; border-radius: var(--radius-s); overflow: hidden; aspect-ratio: 1; background: var(--violet-deep); cursor: pointer; }
.mom-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.mom-tile:hover img { transform: scale(1.04); }
.mom-mine { position: absolute; left: 6px; bottom: 6px; background: var(--yellow); color: var(--violet-ink); font: 700 .7rem/1 var(--body); padding: 4px 6px; border-radius: 4px; }
.mom-preview { width: 100%; max-height: 360px; object-fit: contain; border-radius: var(--radius-s); background: #000; margin-bottom: 12px; }
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(20, 12, 60, .94); display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); gap: 12px;
}
.lightbox figure { margin: 0; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 0; }
.lightbox img { max-width: 100%; max-height: 72vh; border-radius: var(--radius-s); object-fit: contain; }
.lightbox figcaption { color: var(--on-violet); text-align: center; }
.lightbox .linkish { color: var(--on-violet-muted); }
.lb-close { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--violet-ink); font: 700 1.2rem/1 var(--body); cursor: pointer; }
.ph-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ph-card { background: var(--card); color: var(--violet-ink); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; --fg: var(--violet-ink); --muted: var(--muted-card); --link: var(--violet); }
.ph-card .ph-img { padding: 0; border: 0; background: #000; cursor: zoom-in; aspect-ratio: 4 / 3; }
.ph-card .ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-card .ph-meta { padding: 10px 12px 6px; flex: 1; }
.ph-card .btn-row { padding: 0 12px 12px; }
.ph-card .btn { background: var(--violet); border-color: var(--violet); color: var(--on-violet); }
.ph-card .btn.secondary { background: transparent; color: var(--violet); }
.ph-card .btn.danger { background: transparent; border-color: var(--hot); color: var(--hot); }

/* ---------- Startseite: Laden antippen -> Nino und Heiner im Verkaufsfenster ---------- */
.shop-wrap {
  position: relative; display: block; width: 100%; max-width: 440px; margin: 10px auto 0; padding: 0;
  border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.shop-wrap .shop-art { margin: 0; position: relative; z-index: 2; pointer-events: none; }
.shop-wrap:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 8px; }
/* Innenfläche des Verkaufsfensters in der Zeichnung (in % der Bildgröße) */
.shop-window {
  position: absolute; z-index: 1; left: 27.9%; top: 31.4%; width: 20.4%; height: 23.9%;
  overflow: hidden; border-radius: 2px;
  /* warmes Licht im Laden, dahinter stehen Nino und Heiner (freigestelltes Foto) */
  background: var(--shop-window-bg, transparent);
  opacity: 0; transition: opacity .25s;
}
.shop-wrap.moin .shop-window { opacity: 1; }
@media (hover: hover) { .shop-wrap:hover .shop-window { opacity: 1; } }
.shop-window img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block;
  transform: translateY(105%); transition: transform .55s cubic-bezier(.2, 1.4, .4, 1);
}
.moin-bubble {
  /* kleine, handgezeichnet wirkende Comic-Blase rechts neben dem Fenster, Spitze zeigt zu euch */
  position: absolute; z-index: 3; left: 49.5%; top: 27%;
  background: var(--yellow); color: var(--violet-ink); font: 400 clamp(.9rem, 3.6vw, 1.15rem)/1 var(--marker);
  padding: 7px 12px 5px; border: 2px solid var(--violet-ink);
  border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%;
  box-shadow: 2px 3px 0 var(--violet-ink);
  transform: scale(0) rotate(4deg); transform-origin: 0% 80%; opacity: 0;
  transition: transform .35s cubic-bezier(.2, 1.6, .4, 1) .35s, opacity .2s .35s; pointer-events: none; white-space: nowrap;
}
/* Spitze nach links unten (Rand + Füllung) */
.moin-bubble::before, .moin-bubble::after {
  content: ''; position: absolute; left: -11px; bottom: 3px; width: 0; height: 0;
  border-style: solid; border-width: 7px 14px 4px 0; border-color: transparent var(--violet-ink) transparent transparent;
  transform: rotate(18deg);
}
.moin-bubble::after { left: -7px; bottom: 5px; border-width: 5px 10px 3px 0; border-color: transparent var(--yellow) transparent transparent; }
.shop-wrap.moin .shop-window img { transform: translateY(0); }
.shop-wrap.moin .moin-bubble { transform: scale(1) rotate(4deg); opacity: 1; }
@media (hover: hover) {
  .shop-wrap:hover .shop-window img { transform: translateY(0); }
  .shop-wrap:hover .moin-bubble { transform: scale(1) rotate(4deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-window img { transform: none; opacity: 0; transition: opacity .2s; }
  .shop-wrap.moin .shop-window img { opacity: 1; }
  .moin-bubble { transition: opacity .2s; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) { .shop-wrap:hover .shop-window img { opacity: 1; } }
