@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --paper: #fff1ec;
  --card: #fffcfa;
  --ink: #291d1b;
  --muted: #65504d;
  --amasol-red: #ca140c;
  --accent: #a4251f;
  --red-deep: #7d1b16;
  --red-night: #531814;
  --red-panel: #6b241e;
  --red-line: #a56458;
  --on-red: #ffe2d9;
  --red-tint: #f8e1db;
  --red-wash: #fcece6;
  --deep: #471e1b;
  --line: #e8d0c8;
  --line-strong: #c6a49a;
  --green: #225749;
  --heading: 'Manrope', system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font: 100%/1.5 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 20; padding: .5rem .85rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.top { background: var(--card); border-top: 5px solid var(--amasol-red); border-bottom: 1px solid var(--line); }
.top-inner, .shell, .footer { width: min(1120px, calc(100% - 3.5rem)); margin: auto; }
.top-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; gap: .75rem; align-items: center; text-decoration: none; }
.brand img { display: block; width: clamp(110px, 17vw, 170px); height: auto; }
.brand-caption, .brand-title, .brand-footer { color: var(--amasol-red); font-family: var(--mono); font-weight: 800; }
.brand-caption { border-inline-start: 1px solid var(--line); padding-inline-start: .7rem; font-size: .89rem; white-space: nowrap; letter-spacing: -.045em; }
nav { display: flex; align-items: center; gap: .25rem; }
nav a { padding: .55rem .9rem; text-decoration: none; border-radius: 99px; white-space: nowrap; font-size: .92rem; font-weight: 700; }
nav a[aria-current="page"] { color: var(--deep); background: var(--red-tint); }
nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
.overline, .tag { font-weight: 700; font-size: .8rem; }
.shell { padding: 2rem 0 3rem; min-height: 70vh; }
.hero { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); border-radius: 18px; overflow: hidden; min-height: 415px; background: var(--red-tint); color: var(--ink); position: relative; }
.hero-copy { padding: clamp(2rem,4.2vw,4rem); align-self: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.2rem, 4.7vw, 3.8rem); margin: .1rem 0 1rem; line-height: 1.05; letter-spacing: -.075em; }
.brand-title span { display: block; }
.hero p { margin: 0; color: var(--deep); max-width: 33ch; font-size: 1.08rem; }
.hero .hero-tagline { color: var(--deep); font-weight: 700; margin-bottom: .45rem; }
.hero-photo { margin: 0; position: relative; min-height: 280px; }
h1, h2, h3 { font-family: var(--heading); color: inherit; margin: 0; line-height: 1.08; letter-spacing: -.04em; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 2rem 0 1.1rem; scroll-margin-top: 1rem; }
.section-head h2, .page-head h1 { font-size: clamp(2.35rem, 4.8vw, 3.6rem); color: var(--deep); }
.section-head p, .page-head p { margin: .35rem 0 0; color: var(--muted); }
.overline { display: inline-block; color: var(--accent); }
.page-head { padding: .45rem 0 1.35rem; max-width: 680px; }
.page-head h1 { margin: .3rem 0 .45rem; }
.tracking-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .9rem; padding: 0 0 .75rem; }
.tracking-head h1 { font-size: clamp(1.7rem, 4vw, 2.55rem); margin: 0; }
.tracking-head span { font-size: .83rem; color: var(--muted); font-weight: 700; }
.two-col { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr) minmax(270px, .47fr); align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.05rem,3vw,1.8rem); }
.card h2 { font-size: 1.9rem; color: var(--deep); }
.card h3 { font-size: 1.35rem; color: var(--deep); }
.card p { margin: .5rem 0 0; }
.form-card { min-width: 0; }
.side { display: grid; gap: 1rem; }
.ticket { padding: 1.35rem; background: var(--red-wash); border-color: var(--line); }
.ticket h2 { font-size: 1.8rem; margin: .15rem 0 .75rem; }
.ticket .button { width: 100%; margin-top: 1rem; }
.ticket .fine { margin-top: .85rem; }
.line-item { display: grid; grid-template-columns: 5.3rem 1fr; gap: .65rem; padding: .62rem 0; border-top: 1px dashed var(--line-strong); font-size: .92rem; overflow-wrap: anywhere; }
.line-item span { color: var(--muted); }
.fields { margin-bottom: 1.25rem; display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; }
.fields .wide { grid-column: 1 / -1; }
fieldset { border: 0; padding: 0; margin: 0 0 1.15rem; min-width: 0; }
legend { padding: 0; }
legend, label.field { font-weight: 800; display: block; margin-bottom: .45rem; }
.field input, .field textarea, .field select, .select { padding: .65rem .75rem; border: 1px solid #a97d72; border-radius: .65rem; background: #ffffff; color: var(--ink); width: 100%; font-weight: 500; margin-top: .3rem; min-height: 44px; }
.field textarea { resize: vertical; }
.field select, .select { appearance: auto; }
.choices { display: flex; flex-wrap: wrap; gap: .45rem; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--line-strong); min-height: 44px; border-radius: .72rem; padding: .45rem .72rem; background: #fff; font-size: .92rem; font-weight: 700; }
.choice span::before { content: ''; width: .68rem; height: .68rem; border: 1px solid #876760; border-radius: 3px; }
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice input:checked + span { background: var(--red-wash); border-color: var(--accent); color: var(--deep); }
.choice input:checked + span::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--red-wash); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice:hover span { border-color: var(--accent); }
.box-divider { border-top: 1px solid var(--line); margin: 1rem 0 1.25rem; }
.form-steps { display: flex; gap: .4rem; margin-bottom: 1.25rem; overflow: auto; padding: .15rem .15rem .3rem; }
.form-steps button { border: 0; white-space: nowrap; color: var(--muted); background: var(--red-wash); border-radius: 99px; padding: .5rem .74rem; min-height: 40px; font-size: .9rem; font-weight: 700; }
.form-steps button[aria-current="step"] { background: var(--deep); color: #ffffff; }
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; min-height: 44px; padding: .6rem 1rem; border-radius: .68rem; border: 1px solid transparent; background: var(--amasol-red); color: #ffffff; font-weight: 800; line-height: 1.25; }
.button:hover { background: var(--red-deep); }
.button.subtle { background: #ffffff; color: var(--deep); border-color: var(--line-strong); }
.button.subtle:hover { background: var(--red-wash); }
.button[disabled] { opacity: .53; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.15rem; }
.fine { font-size: .88rem; color: var(--muted); }
.inset { margin-top: .9rem; background: var(--red-wash); border-radius: .8rem; padding: .85rem 1rem; }
.inset p { margin: .25rem 0 0; }
.pizza-name span, .pizza-name strong { display: block; }
.pizza-name span { color: var(--muted); font-size: .88rem; }
.pizza-name strong { color: var(--deep); margin-top: .13rem; }
.now { background: var(--deep); color: var(--card); border-color: var(--deep); }
.now h2 { color: var(--card); font-size: clamp(2.1rem, 4.5vw, 3.45rem); margin: .45rem 0; }
.now .overline, .now .fine { color: var(--red-tint); }
.now .button { background: #f2d13d; color: var(--deep); }
.now .button:hover { background: #f7e47e; }
.now .button.subtle { background: transparent; color: #ffffff; border-color: var(--red-line); }
.now .button.subtle:hover { background: var(--red-panel); }
.flow { list-style: none; padding: 0; margin: 1rem 0 0; }
.flow li { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: .55rem; padding: .62rem 0; border-top: 1px solid var(--line); align-items: start; }
.flow li strong { display: block; }
.flow li p { margin: 0; color: var(--muted); font-size: .9rem; }
.flow .dot { display: grid; place-items: center; color: var(--muted); background: var(--red-wash); border-radius: 50%; width: 23px; height: 23px; font-size: .76rem; font-weight: 800; margin-top: .08rem; }
.flow .active .dot { color: white; background: var(--accent); }
.flow .done .dot { color: var(--green); background: #e2efe6; }
.status { font-size: .79rem; font-weight: 800; color: var(--accent); }
.flow .done .status { color: var(--green); }
.stack { display: grid; gap: 1rem; }
.alert { border-color: #dfce69; background: #faf8dd; }
.alert .overline { color: #6d5911; }
.alert h2 { margin: .25rem 0; }
.transcript { list-style: none; padding: 0; margin: .45rem 0 0; }
.transcript li { padding: .65rem 0; border-top: 1px solid var(--line); }
.transcript span { display: block; color: var(--muted); font-size: .9rem; }
.signals { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: .75rem; }
.signal { padding: .65rem .75rem; border-radius: .65rem; background: var(--red-wash); }
.signal strong, .signal span { display: block; }
.signal span { color: var(--muted); font-size: .87rem; }
details { margin-top: 1rem; }
summary { color: var(--deep); font-weight: 800; }
.empty { padding-block: 2rem; }
.footer { display: flex; justify-content: space-between; gap: .6rem; padding: 1.3rem 0 1.8rem; align-items: end; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer .brand-footer { font-size: .91rem; }
.footer p { margin: 0; }
.receipt { margin-top: .85rem; }
.form-error { color: #9a2c19; font-weight: 700; margin: .55rem 0 0; }
@media (max-width: 800px) {
  .hero { min-height: 330px; }
}
@media (max-width: 680px) {
  .top-inner, .shell, .footer { width: calc(100% - 1.75rem); }
  .top-inner { justify-content: space-between; flex-wrap: wrap; gap: 0 .5rem; padding: .65rem 0 .35rem; }
  .brand { min-height: 44px; }
  nav { order: 2; width: 100%; margin-top: .45rem; }
  nav a { min-height: 42px; padding-inline: .75rem; }
  .shell { padding-top: .9rem; padding-bottom: 2rem; }
  .hero, .two-col { grid-template-columns: 1fr; }
  .hero { border-radius: 17px; }
  .hero-copy { padding: 1.55rem 1.4rem; }
  .hero h1 { font-size: clamp(2.2rem, 9.5vw, 3.75rem); margin: .15rem 0 .75rem; }
  .hero-photo { min-height: clamp(205px, 53vw, 335px); }
  .section-head { margin: 1.45rem 0 .8rem; }
  .card { border-radius: 15px; }
  .footer { flex-direction: column; align-items: start; }
}
@media (max-width: 375px) {
  .fields, .signals { grid-template-columns: 1fr; }
  .flow li { grid-template-columns: 23px minmax(0, 1fr); }
  .flow li .status { grid-column: 2; }
}
.hero::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--amasol-red); z-index: 1; }
.hero-copy .actions { align-items: center; gap: .25rem .85rem; margin-top: 1.25rem; }
.hero-secondary { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--deep); font-weight: 700; text-underline-offset: .25em; }
.hero-secondary:hover { color: var(--accent); }
.journey-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; padding: 0; margin: .65rem 0 0;
  list-style: none; color: var(--muted); font-size: clamp(.72rem, 2.1vw, .93rem); font-weight: 700;
}
.journey-strip li { position: relative; padding: .6rem 0 .3rem; border-top: 1px solid var(--line-strong); overflow-wrap: anywhere; }
.journey-strip li::before { content: ''; position: absolute; top: -.24rem; width: .43rem; height: .43rem; border-radius: 50%; background: var(--accent); }
.delivery { border-top: 5px solid #c4a800; container-type: inline-size; }
.delivery h2 { margin: .25rem 0; }
.delivery-route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.delivery-route li { border-radius: .6rem; padding: .6rem .7rem; background: var(--red-wash); }
.delivery-route li[aria-current="step"] { background: #faf8dd; }
.delivery-route li span, .delivery-route li strong { display: block; overflow-wrap: anywhere; }
.delivery-route li span { color: var(--muted); font-size: .87rem; }
@container (max-width: 410px) {
  .delivery-route { grid-template-columns: 1fr; }
}
.report-note { border-left: 4px solid #db2f16; }
.report-note h3 { margin-top: .55rem; }
.report-note details { margin-top: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.image-tile {
  width: 100%; aspect-ratio: 3 / 2; background-color: var(--red-tint);
  background-size: 200% 200%; background-repeat: no-repeat;
}
.miniature { background-image: url('miniaturwelt.jpg'); }
.miniature[data-frame="order"] { background-image: url('bestelleingang.jpg'); background-size: cover; background-position: center; }
.camera-image { background-image: url('kuechenbilder.jpg'); }
.image-tile[data-frame="prep"] { background-position: left top; }
.image-tile[data-frame="oven"] { background-position: right top; }
.image-tile[data-frame="pass"] { background-position: left bottom; }
.image-tile[data-frame="office"], .image-tile[data-frame="box"] { background-position: right bottom; }
.hero-miniature .image-tile { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.journey-now {
  background: var(--red-night); border-color: var(--red-night); padding: 0; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
}
.journey-copy { align-self: center; padding: clamp(1.05rem, 4vw, 2.75rem); }
.journey-now h2 { font-size: clamp(1.95rem, 4.4vw, 3.45rem); margin: .55rem 0 .5rem; overflow-wrap: anywhere; }
.journey-copy .journey-message { max-width: 40ch; color: var(--on-red); margin: .65rem 0 0; }
.journey-copy .journey-eta {
  display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: baseline; margin: .55rem 0 0;
  font-variant-numeric: tabular-nums; color: var(--on-red);
}
.journey-eta span { font-size: .82rem; font-weight: 700; color: var(--on-red); }
.journey-eta strong { font-size: clamp(1.2rem, 3.5vw, 1.85rem); color: #f3d16c; line-height: 1.15; overflow-wrap: anywhere; }
.journey-signal {
  grid-column: 1 / -1; display: grid; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: .55rem 1rem;
  padding: .8rem clamp(1rem, 4vw, 2.75rem); border-top: 1px solid var(--red-line); background: var(--red-panel); color: var(--on-red);
}
.journey-signal .overline { display: block; color: #ffc8b7; font-size: .79rem; }
.journey-signal strong { display: block; font-size: .94rem; margin-top: .25rem; }
.journey-signal p { margin: 0; max-width: 60ch; font-size: .88rem; }
.journey-signal.signal-delayed { border-top-color: #c3a557; }
.journey-signal.signal-delayed .overline { color: #f3d16c; }
.journey-signal .forecast-change { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; margin-top: .35rem; }
.journey-signal .forecast-change strong { margin: 0; color: #f3d16c; }
.notification-card h2 { font-size: 1.28rem; }
.notification-card .actions { margin-top: .75rem; }
.dispatch-toast {
  position: fixed; z-index: 15; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: min(390px, calc(100vw - 2rem)); padding: .8rem 1rem; border-radius: .7rem;
  border: 1px solid var(--red-line); color: #fff; background: var(--red-night); font-weight: 800;
  box-shadow: 0 .45rem 1.5rem #53181440;
}
.journey-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; font-size: .82rem; font-weight: 700; }
.journey-meta span:first-child { display: inline-flex; gap: .4rem; align-items: center; color: #fff8f1; }
.journey-meta i { width: .43rem; height: .43rem; margin-top: .04rem; background: #f3d16c; border-radius: 50%; }
.journey-meta span:last-child { color: var(--on-red); font-variant-numeric: tabular-nums; }
.trace-tag { font-family: var(--mono); letter-spacing: -.01em; }
.journey-visual { margin: clamp(.8rem, 2.3vw, 1.35rem) clamp(.8rem, 2.3vw, 1.35rem) clamp(.8rem, 2.3vw, 1.35rem) 0; position: relative; align-self: center; }
.journey-visual .image-tile { border-radius: 13px; animation: scene-enter .23s ease-out both; }
@keyframes scene-enter { from { opacity: .73; } to { opacity: 1; } }
.journey-chapters {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem; list-style: none; margin: 0; padding: .85rem clamp(1rem, 4vw, 3rem) 1rem;
  border-top: 1px solid var(--red-line); background: #40130f; color: var(--on-red);
}
.journey-chapters li { border-top: 2px solid var(--red-line); padding-top: .4rem; font-size: .87rem; font-weight: 700; overflow-wrap: anywhere; }
.journey-chapters li.passed { border-color: #ffc8b7; }
.journey-chapters li[aria-current="step"] { border-color: #f2d13d; color: #fff; }
.journey-details { margin-top: 1.1rem; }
.journey-details > *, .observation-grid > * { min-width: 0; }
.journey-details details { scroll-margin-block: 1rem; }
.journey-details .card > details:first-child { margin-top: 0; }
.observation h2 { margin-top: .25rem; }
.observation summary, .journey-details .card > details:first-child > summary { font-size: 1rem; }
.observation-grid { margin-top: 1rem; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: .85rem; align-items: start; }
.sensor-reading, .camera-empty { padding: .9rem; border-radius: 12px; background: var(--red-wash); }
.sensor-reading.has-incident { background: #fff5d5; }
.sensor-reading > strong { display: block; color: var(--deep); font-size: clamp(1.35rem, 3vw, 2.15rem); letter-spacing: -.045em; overflow-wrap: anywhere; }
.sensor-reading p, .camera-empty p { font-size: .92rem; color: var(--muted); }
.sensor-trend { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .25rem; margin-top: .75rem; text-align: center; }
.sensor-trend div { display: grid; grid-template-rows: 36px auto; gap: .18rem; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.sensor-trend i { align-self: end; height: var(--level); background: var(--accent); border-radius: 3px 3px 0 0; min-height: 3px; margin-inline: 14%; }
.sensor-trend.cool i { background: #a74427; }
.camera-view { margin: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); }
.camera-view figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .15rem .5rem; padding: .55rem .7rem; color: var(--deep); }
.camera-view figcaption span { font-size: .82rem; color: var(--muted); }
.camera-controls { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.camera-controls button { border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--deep); padding: .4rem .55rem; min-height: 44px; font-size: .83rem; font-weight: 700; }
.camera-controls button[aria-pressed="true"], .scenario-list button[aria-pressed="true"] { border-color: var(--accent); background: var(--red-tint); }
.scenario-list { list-style: none; padding: 0; margin: .65rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.scenario-list li { display: grid; gap: .15rem; align-content: start; }
.scenario-list button { justify-content: flex-start; text-align: left; }
.queued { background: var(--red-wash); border-radius: 10px; padding: .65rem .8rem; margin: .75rem 0; }
.queued p { margin: 0 0 .45rem; }
@media (max-width: 680px) {
  .journey-now { grid-template-columns: 1fr; }
  .journey-visual { margin: 0 .8rem .85rem; }
  .journey-signal { grid-template-columns: 1fr; gap: .33rem; }
  .journey-chapters { gap: .4rem; }
  .journey-chapters li { font-size: .79rem; }
}
@media (max-width: 510px) {
  .observation-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .scenario-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-chapters li { font-size: .72rem; }
  nav a { padding-inline: .55rem; font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-visual .image-tile { animation: none; }
}

.pizza-meme {
  width: min(29rem, calc(100% - 1.5rem));
  max-height: calc(100% - 1.5rem);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--red-line);
  border-radius: 1rem;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1rem 3rem #290b0980;
}
.pizza-meme::backdrop { background: #290b09b8; }
.pizza-meme-picture {
  display: block;
  width: 100%;
  height: clamp(148px, 42svh, 370px);
  object-fit: cover;
  object-position: 50% 48%;
  background: var(--red-panel);
}
.pizza-meme-copy { padding: clamp(1rem, 4vw, 1.6rem); }
.pizza-meme-copy h2 { color: var(--amasol-red); font-size: clamp(1.7rem, 6vw, 2.8rem); }
.pizza-meme-code {
  margin: 0 0 .45rem;
  color: var(--accent);
  font: 700 .8rem/1.35 var(--mono);
}
.pizza-meme-copy p:not(.pizza-meme-code) { margin: .5rem 0 0; }
.pizza-meme-punchline { font-weight: 800; }
.pizza-meme-copy .button { width: 100%; margin-top: 1rem; }
.pizza-meme-close {
  position: absolute;
  top: .65rem;
  right: .65rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--deep);
  background: var(--card);
  font-size: 1.55rem;
  line-height: 1;
}
