@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("/fonts/karla.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f1e7;
  --paper-deep: #efe6d5;
  --card: #fffdf8;
  --ink: #26231e;
  --muted: #6b6357;
  --green: #24402f;
  --green-deep: #172c1f;
  --green-soft: #e3ebe2;
  --copper: #b4643c;
  --copper-soft: #f4e2d6;
  --line: #ded5c6;
  --line-strong: #c6b9a3;
  --danger: #93382a;
  --danger-soft: #f7e4df;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 0 rgba(38, 35, 30, 0.04), 0 18px 40px -30px rgba(38, 35, 30, 0.55);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(38, 35, 30, 0.045) 1px, transparent 0);
  background-size: 4px 4px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--copper);
  color: #fff;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--copper);
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--green-deep);
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  max-width: 34ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
}

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.kicker,
.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.muted {
  color: var(--muted);
}

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

/* ---------------------------------------------------------------- Header */

.site-header {
  border-bottom: 2px dashed var(--line);
  background: rgba(246, 241, 231, 0.9);
  backdrop-filter: blur(6px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--green-deep);
  text-decoration: none;
  line-height: 1;
}

.brand:hover {
  color: var(--green-deep);
}

.brand-kicker {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-name::after {
  content: "";
  display: block;
  width: 2.4rem;
  margin-top: 0.18rem;
  border-top: 2px dashed var(--copper);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.4vw, 1.8rem);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--copper);
}

.site-nav .nav-strong {
  color: var(--green);
}

/* --------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-primary {
  background: var(--green);
  color: #fffdf8;
  box-shadow: 0 2px 0 var(--green-deep);
}

.btn-primary:hover {
  background: var(--green-deep);
  color: #fffdf8;
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(255, 253, 248, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  padding-inline: 0.6rem;
}

.btn-ghost:hover {
  background: var(--green-soft);
  color: var(--green-deep);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #e8c7bf;
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1.06rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ----------------------------------------------------------------- Cards */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.card-title h2,
.card-title h3 {
  margin: 0;
}

.stitch {
  border: 0;
  border-top: 2px dashed var(--line);
  margin-block: 1.2rem;
}

/* ------------------------------------------------------------------ Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem);
}

.hero-copy h1 {
  max-width: 13ch;
}

.hero-copy .lead {
  margin-block: 1.2rem 1.8rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 1.9rem;
  padding-top: 1.1rem;
  border-top: 2px dashed var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.stars {
  color: var(--copper);
  letter-spacing: 0.08em;
}

.hero-aside {
  display: grid;
  gap: 1.1rem;
}

/* Arbeitszettel / Ticket */

.ticket {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem 1.2rem;
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 58%;
  width: 18px;
  height: 18px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.ticket::before {
  left: -10px;
  clip-path: inset(0 0 0 50%);
}

.ticket::after {
  right: -10px;
  clip-path: inset(0 50% 0 0);
}

.ticket-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.ticket-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticket-no {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
}

.ticket-qr {
  display: grid;
  place-items: center;
  padding: 0.8rem 0 0.9rem;
}

.ticket-qr img {
  width: min(190px, 60%);
  aspect-ratio: 1;
  padding: 0.45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.ticket-divider {
  border: 0;
  border-top: 2px dashed var(--line-strong);
  margin: 0.2rem 0 0.8rem;
}

.ticket-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.ticket-foot strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--green-deep);
}

.barcode {
  display: block;
  width: 84px;
  height: 30px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 5px
  );
  opacity: 0.35;
}

.hours-card {
  padding: 1rem 1.2rem;
}

.hours-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.12rem;
}

.hours-list li span:last-child {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- Ablauf etc */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: step;
}

.steps-grid li {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  counter-increment: step;
}

.steps-grid li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--copper);
}

.steps-grid h3 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.steps-grid p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.info-grid .card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.info-grid address {
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-block: clamp(2.5rem, 6vw, 4.5rem);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--green);
  color: #f6f1e7;
  border-radius: var(--radius);
  box-shadow: 0 2px 0 var(--green-deep);
}

.cta-band h2 {
  margin: 0 0 0.3rem;
  color: #fffdf8;
}

.cta-band p {
  margin: 0;
  color: rgba(246, 241, 231, 0.78);
}

.cta-band .btn-primary {
  background: var(--paper);
  color: var(--green-deep);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.cta-band .btn-primary:hover {
  background: #fff;
  color: var(--green-deep);
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
  margin-top: 2rem;
  background: var(--green-deep);
  color: rgba(246, 241, 231, 0.75);
  border-top: 2px dashed var(--copper);
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding-block: 2.6rem 1.6rem;
}

.site-footer h3 {
  margin-bottom: 0.5rem;
  color: #fffdf8;
  font-size: 1rem;
}

.site-footer a {
  color: #fffdf8;
  text-decoration: none;
}

.site-footer a:hover {
  color: #e8b493;
}

.site-footer address {
  font-style: normal;
  font-size: 0.92rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.footer-links li {
  padding-block: 0.12rem;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(246, 241, 231, 0.16);
  font-size: 0.8rem;
  color: rgba(246, 241, 231, 0.55);
}

/* ----------------------------------------------------------------- Forms */

.form-card {
  max-width: 640px;
  margin-inline: auto;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.field .optional {
  font-weight: 400;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.72rem 0.85rem;
  background: #fffefa;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #a49a8b;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--copper);
  outline: 2px solid var(--copper-soft);
  outline-offset: 1px;
}

.hint {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.alert {
  margin-bottom: 1.2rem;
  padding: 0.8rem 1rem;
  background: var(--danger-soft);
  border: 1px solid #e5c1b8;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 0.92rem;
}

.alert-success {
  background: var(--green-soft);
  border-color: #c4d4c3;
  border-left-color: var(--green);
  color: var(--green-deep);
}

.alert:empty {
  display: none;
}

/* --------------------------------------------------------------- Success */

.success-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: 2rem;
  align-items: center;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.link-box {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.link-box input {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--paper);
}

/* ------------------------------------------------------------- Status page */

.status-page {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.status-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.status-head .order-no {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted);
}

.status-banner {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--copper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.status-banner.is-ready {
  background: var(--green-soft);
  border-color: #c5d6c4;
  border-left-color: var(--green);
}

.status-banner.is-picked_up {
  border-left-color: var(--muted);
}

.status-banner h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.status-banner p {
  margin: 0;
  color: var(--muted);
  max-width: 55ch;
}

.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.75fr);
  gap: 1.4rem;
  align-items: start;
  margin-top: 1.4rem;
}

/* Stepper als Faden */

.stepper {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0 0;
}

.step {
  position: relative;
  padding: 0 0 1.65rem 3rem;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 26px;
  bottom: 2px;
  border-left: 2px dashed var(--line-strong);
}

.step.is-done::before {
  border-left-style: solid;
  border-left-color: var(--green);
}

.step:last-child::before {
  display: none;
}

.step-dot {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--card);
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  color: transparent;
}

.step.is-done .step-dot {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.step.is-current .step-dot {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
  box-shadow: 0 0 0 5px var(--copper-soft);
}

.step-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
}

.step-time {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.step-note {
  margin-top: 0.15rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.detail-list {
  margin: 0;
  padding: 0;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
  border-bottom: 1px dashed var(--line);
}

.detail-list div:last-child {
  border-bottom: 0;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-list dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

.shop-block {
  font-size: 0.92rem;
  color: var(--muted);
}

.shop-block strong {
  color: var(--ink);
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

/* ------------------------------------------------------------- Search page */

.search-card {
  max-width: 620px;
  margin-inline: auto;
}

.results {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.result-item .result-no {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.result-item .result-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.empty-state {
  padding: 1.6rem;
  text-align: center;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
}

/* ----------------------------------------------------------------- Badges */

.badge {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--paper);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}

.badge-created {
  background: var(--paper-deep);
  border-color: var(--line-strong);
  color: #6d6254;
}

.badge-received {
  background: var(--copper-soft);
  border-color: #e2bda6;
  color: #8d4824;
}

.badge-paid {
  background: #e7eee6;
  border-color: #bccfba;
  color: #31553c;
}

.badge-ready {
  background: var(--green);
  border-color: var(--green);
  color: #fffdf8;
}

.badge-picked_up {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--muted);
}

/* ---------------------------------------------------------------- Login */

.auth-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 120px);
  padding-block: 3rem;
}

.auth-card {
  width: min(420px, 100%);
}

.auth-card .brand {
  align-items: center;
  text-align: center;
  margin-bottom: 1.6rem;
}

.auth-card .brand-name::after {
  margin-inline: auto;
}

/* -------------------------------------------------------------- Dashboard */

.admin {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: 100vh;
  min-width: 0;
  padding: 1.6rem 1.2rem;
  background: var(--green-deep);
  color: rgba(246, 241, 231, 0.72);
}

.admin-sidebar .brand {
  color: #fffdf8;
}

.admin-sidebar .brand-kicker {
  color: rgba(246, 241, 231, 0.55);
}

.admin-sidebar .brand:hover {
  color: #fffdf8;
}

.admin-nav {
  display: grid;
  gap: 0.25rem;
}

.admin-nav a,
.admin-nav button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.admin-nav a:hover,
.admin-nav button:hover {
  background: rgba(246, 241, 231, 0.08);
  color: #fffdf8;
}

.admin-nav .is-active {
  background: rgba(246, 241, 231, 0.1);
  border-color: rgba(246, 241, 231, 0.14);
  color: #fffdf8;
}

.admin-nav .nav-sep {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(246, 241, 231, 0.18);
}

.admin-sidebar-foot {
  margin-top: auto;
  font-size: 0.74rem;
  color: rgba(246, 241, 231, 0.45);
}

.admin-main {
  min-width: 0;
  padding: 1.6rem clamp(1rem, 3vw, 2.4rem) 3rem;
}

.admin-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.admin-topbar h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.admin-topbar .sub {
  margin-top: 0.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.search-field {
  position: relative;
  flex: 1 1 240px;
  min-width: 200px;
}

.search-field input {
  padding-left: 2.3rem;
  background: var(--card);
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  padding: 0.45rem 0.7rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--green);
  color: var(--green);
}

.chip.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fffdf8;
}

.toolbar select {
  width: auto;
  padding-block: 0.5rem;
  background-color: var(--card);
  font-size: 0.86rem;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.table-card {
  padding: 0;
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.orders-table th {
  padding: 0.7rem 0.9rem;
  background: var(--paper-deep);
  border-bottom: 2px dashed var(--line-strong);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.orders-table td {
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.orders-table tbody tr {
  cursor: pointer;
  transition: background-color 120ms ease;
}

.orders-table tbody tr:hover,
.orders-table tbody tr:focus-visible {
  background: #fbf6ec;
}

.orders-table tbody tr:last-child td {
  border-bottom: 0;
}

.orders-table .cell-no {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  white-space: nowrap;
}

.orders-table .cell-name {
  font-weight: 700;
  white-space: nowrap;
}

.orders-table .cell-phone {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.orders-table .cell-items {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-table .cell-price {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pay-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.pay-flag.is-paid {
  color: var(--green);
}

.pay-flag.is-open {
  color: var(--copper);
}

.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

/* Detail drawer */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(23, 44, 31, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  height: 100vh;
  background: var(--paper);
  border-left: 1px solid var(--line-strong);
  box-shadow: -20px 0 60px -40px rgba(23, 44, 31, 0.8);
  transform: translateX(102%);
  transition: transform 220ms ease;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  background: var(--card);
  border-bottom: 2px dashed var(--line);
}

.drawer-head h2 {
  margin: 0 0 0.15rem;
  font-size: 1.3rem;
}

.drawer-head .order-no {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--paper-deep);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.3rem;
}

.drawer-section {
  margin-bottom: 1.4rem;
}

.drawer-section h3 {
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.toggle::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line-strong);
  border-radius: 3px;
}

.toggle:hover {
  border-color: var(--green);
}

.toggle.is-on {
  background: var(--green-soft);
  border-color: #b9ccb7;
  color: var(--green-deep);
}

.toggle.is-on::before {
  background: var(--green);
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px var(--green-soft);
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
}

.event-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.4rem;
  border-bottom: 1px dashed var(--line);
}

.event-list li:last-child {
  border-bottom: 0;
}

.event-list time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Dialog */

dialog {
  width: min(460px, calc(100% - 2rem));
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(23, 44, 31, 0.7);
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(23, 44, 31, 0.45);
}

dialog h2 {
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
}

.dialog-qr {
  display: grid;
  place-items: center;
  margin-block: 1rem;
}

.dialog-qr img {
  width: 220px;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
}

/* Toast */

.toast-region {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: grid;
  gap: 0.5rem;
  max-width: min(360px, calc(100% - 2rem));
}

.toast {
  padding: 0.7rem 0.9rem;
  background: var(--green-deep);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.7);
  color: #fffdf8;
  font-size: 0.88rem;
  animation: toast-in 160ms ease;
}

.toast.is-error {
  background: var(--danger);
  border-left-color: #f0b9ab;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ------------------------------------------------------------- Prose pages */

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 2.2rem;
  font-size: 1.5rem;
}

.prose h3 {
  margin-top: 1.6rem;
  font-size: 1.12rem;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose .toc {
  padding: 1.2rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prose .toc ol {
  margin: 0;
}

.prose kbd {
  padding: 0.1rem 0.35rem;
  background: var(--paper-deep);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.82em;
}

/* ------------------------------------------------------------------ Print */

@media print {
  .no-print,
  .site-header,
  .site-footer,
  .toast-region {
    display: none !important;
  }
}

/* -------------------------------------------------------------- Responsive */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 16ch;
  }

  .hero-aside {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .info-grid,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .admin {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    height: auto;
    padding: 0.9rem 1.2rem;
  }

  .admin-sidebar .brand {
    margin-right: auto;
  }

  .admin-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.2rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .admin-nav a,
  .admin-nav button {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .admin-nav .nav-new {
    display: none;
  }

  .admin-nav .nav-sep {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .admin-sidebar-foot {
    display: none;
  }

  .admin-main {
    padding-top: 1.2rem;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }

  .site-header .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.88rem;
  }

  .site-nav .nav-hide-mobile {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-aside {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .success-grid {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .site-footer .container {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .cta-band {
    align-items: flex-start;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .admin-sidebar .brand-kicker {
    display: none;
  }

  .admin-sidebar .brand-name {
    font-size: 1.3rem;
  }

  .admin-nav a,
  .admin-nav button {
    padding: 0.45rem 0.5rem;
    font-size: 0.82rem;
  }

  .toolbar-right {
    margin-left: 0;
    width: 100%;
  }

  .toolbar-right .btn {
    flex: 1;
  }

  .orders-table thead {
    display: none;
  }

  .orders-table,
  .orders-table tbody,
  .orders-table tr,
  .orders-table td {
    display: block;
    width: 100%;
  }

  .orders-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.15rem 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px dashed var(--line);
  }

  .orders-table tbody tr:last-child {
    border-bottom: 0;
  }

  .orders-table td {
    padding: 0;
    border: 0;
  }

  .orders-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .orders-table .cell-no {
    grid-column: 1;
  }

  .orders-table .cell-date {
    grid-column: 2;
    text-align: right;
  }

  .orders-table .cell-name {
    grid-column: 1 / -1;
    margin-top: 0.4rem;
    font-size: 1.05rem;
  }

  .orders-table .cell-phone,
  .orders-table .cell-items,
  .orders-table .cell-price {
    grid-column: 1 / -1;
  }

  .orders-table .cell-price {
    text-align: left;
  }

  .orders-table .cell-status,
  .orders-table .cell-paid {
    grid-column: auto;
    margin-top: 0.4rem;
  }

  .orders-table .cell-status {
    justify-self: start;
  }

  .orders-table .cell-paid {
    justify-self: end;
  }

  .drawer {
    width: 100%;
  }

  .result-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------- Kundenkonto */

.nav-link-button {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-link-button:hover {
  color: var(--copper);
}

.email-wait {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--copper);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.account-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.account-head h1 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.account-orders {
  display: grid;
  gap: 1rem;
}

.account-order {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.account-order-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.account-order-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-thumb-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--line-strong);
}

.account-order-top .mono {
  white-space: nowrap;
}

.account-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
}

.account-order h3 {
  margin: 0.35rem 0 0.2rem;
  font-size: 1.1rem;
}

.account-order p {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
}

/* ------------------------------------------------------- Kleidungsstücke */

.items-section {
  margin-top: 1.8rem;
}

.items-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.item-editor {
  margin-bottom: 1.2rem;
  padding: 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.item-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.item-editor-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.item-editor .field:last-of-type {
  margin-bottom: 0;
}

.media-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px dashed var(--line);
}

.media-block {
  min-width: 0;
}

.media-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.photo-grid:empty {
  display: none;
}

.photo-thumb {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper-deep);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: rgba(23, 44, 31, 0.82);
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.video-slot:empty {
  display: none;
}

.video-thumb {
  margin-bottom: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #1a1713;
}

.video-thumb video {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.upload-status {
  margin-top: 0.7rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.upload-status:empty {
  display: none;
}

.upload-status.is-error {
  color: var(--danger);
}

.record-stage {
  position: relative;
  margin-block: 1rem;
  overflow: hidden;
  background: #1a1713;
  border-radius: var(--radius-sm);
}

.record-stage video {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.record-timer {
  position: absolute;
  right: 0.7rem;
  bottom: 0.6rem;
  padding: 0.2rem 0.5rem;
  background: rgba(23, 44, 31, 0.8);
  border-radius: 3px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ------------------------------------------------------- Kunden-Statusseite */

.media-notice {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: var(--copper-soft);
  border: 1px solid #e2bda6;
  border-left: 4px solid var(--copper);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: #7d3f1f;
}

.item-view-list {
  display: grid;
  gap: 1rem;
}

.item-view {
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}

.item-view:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.item-view-head {
  margin-bottom: 0.4rem;
}

.item-view h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.media-thumb {
  display: block;
  width: 92px;
  height: 92px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-deep);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-video {
  width: min(320px, 100%);
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #1a1713;
}

.media-video video {
  width: 100%;
  max-height: 220px;
}

.media-placeholder {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--muted);
}

.media-placeholder.is-error {
  border-color: #e5c1b8;
  color: var(--danger);
}

/* ------------------------------------------------------------- Werkbank */

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-bottom: 1.2rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.stats-row strong {
  color: var(--ink);
  font-size: 1rem;
}

.view-toggle {
  display: flex;
  gap: 0.3rem;
}

.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}

.board-column {
  min-width: 0;
  padding: 0.7rem;
  background: rgba(255, 253, 248, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.board-column > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0.2rem 0.7rem;
  border-bottom: 2px dashed var(--line);
}

.board-column h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.board-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 0.35rem;
  background: var(--paper-deep);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
}

.board-cards {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.board-empty {
  padding: 1rem 0.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  text-align: center;
  color: var(--muted);
}

.order-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 0 rgba(38, 35, 30, 0.04);
  cursor: pointer;
  transition: border-color 120ms ease, transform 120ms ease;
}

.order-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.order-card:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.order-card-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}

.order-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-card-media .order-thumb-placeholder {
  font-size: 2rem;
}

.order-card-body {
  padding: 0.7rem;
}

.order-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.order-card-no {
  font-size: 0.68rem;
}

.order-card-body h3 {
  margin: 0.35rem 0 0.1rem;
  font-size: 1rem;
  line-height: 1.2;
}

.order-card-body p {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
}

.order-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.55rem;
}

.order-card-badges .badge {
  font-size: 0.58rem;
}

.card-warning {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--copper);
}

.btn-card-action {
  width: 100%;
  padding: 0.55rem 0.6rem;
  font-size: 0.8rem;
}

.badge-waiting_payment {
  background: var(--paper-deep);
  border-color: var(--line-strong);
  color: #6d6254;
}

.badge-in_progress {
  background: var(--copper-soft);
  border-color: #e2bda6;
  color: #8d4824;
}

.badge-ready {
  background: var(--green);
  border-color: var(--green);
  color: #fffdf8;
}

.badge-picked_up {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--muted);
}

.badge-received {
  background: #eef1e9;
  border-color: #cbd4c2;
  color: #4b5a42;
}

/* ------------------------------------------------------- Detail-Drawer neu */

.btn-next {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.more-actions {
  margin-top: 0.9rem;
  font-size: 0.88rem;
}

.more-actions summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.more-actions[open] summary {
  margin-bottom: 0.6rem;
}

.drawer-items {
  display: grid;
  gap: 0.8rem;
}

.drawer-item {
  padding: 0.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.drawer-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.item-desc-input {
  min-height: 0;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.drawer-item .media-thumb {
  width: 72px;
  height: 72px;
}

.drawer-item .media-video {
  width: min(260px, 100%);
}

.cell-email {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ------------------------------------------------------------- Toast */

.toast-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.toast-action button {
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 253, 248, 0.5);
  border-radius: 3px;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.toast-action button:hover {
  background: rgba(255, 253, 248, 0.12);
}

/* ------------------------------------------------------------- Bon-Liste */

.bon-item-list {
  margin: 1mm 0 0;
  padding-left: 5mm;
}

.bon-item-list li {
  margin-bottom: 0.8mm;
  line-height: 1.3;
}

.bon-payment {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4mm;
  padding-block: 2.5mm;
  border-top: 1.5pt dashed var(--line-strong);
}

.bon-payment strong {
  font-size: 9pt;
  color: var(--green-deep);
}

/* ------------------------------------------------------------- Responsive */

@media (max-width: 1200px) {
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .media-editor {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .account-order {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .account-head {
    align-items: flex-start;
  }

  .board {
    grid-template-columns: 1fr;
  }

  .board-column {
    padding: 0.6rem;
  }

  .board-cards {
    grid-template-columns: 1fr;
  }

  .stats-row {
    gap: 0.4rem 1rem;
  }

  .items-head {
    align-items: flex-start;
  }

  .item-editor {
    padding: 1rem;
  }

  .media-editor {
    gap: 1rem;
  }
}

.manual-table {
  width: 100%;
  margin-block: 1rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.manual-table th,
.manual-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.manual-table th {
  background: var(--paper-deep);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
