.dh-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(18, 45, 33, 0.08);
  background: #fff;
  margin-right: 10px;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.order-form {
  margin-top: 32px;
  background: #f6faf8;
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 4px 16px rgba(18, 45, 33, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-form .field-label {
  margin: 4px 0 6px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.order-form input[type="text"],
.order-form input[type="tel"],
.order-form select {
  width: 100%;
  border: 1px solid #cfe2d9;
  border-radius: 12px;
  padding: 11px 13px;
  font: inherit;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
  box-shadow: 0 1px 2px rgba(19, 47, 35, 0.04);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.order-form select {
  appearance: none;
  background-image:
    linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%),
    linear-gradient(45deg, transparent 50%, #4f665b 50%),
    linear-gradient(135deg, #4f665b 50%, transparent 50%);
  background-repeat: no-repeat;
  background-size:
    auto,
    8px 8px,
    8px 8px;
  background-position:
    0 0,
    calc(100% - 18px) 52%,
    calc(100% - 12px) 52%;
  padding-right: 36px;
}

.order-form input::placeholder {
  color: #7d8e86;
}

.order-form input:focus,
.order-form select:focus {
  outline: none;
  border-color: #7fb8a3;
  box-shadow:
    0 0 0 4px rgba(15, 138, 99, 0.14),
    0 2px 10px rgba(15, 138, 99, 0.1);
}
.order-form h3 {
  margin: 0 0 12px;
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
}

.privacy-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-strong, #b5451b);
  cursor: pointer;
}

.privacy-consent label {
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
}

.privacy-consent a {
  color: var(--accent-strong, #b5451b);
  text-decoration: underline;
}

.order-summary-title {
  margin: 10px 0 6px;
  font-weight: 800;
  color: var(--ink);
}

.order-summary {
  margin: 10px 0;
  font-weight: 600;
  color: var(--accent-strong);
}

.order-summary-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.order-summary-item {
  line-height: 1.35;
}

.order-summary-total {
  margin: 10px 0 0;
  font-weight: 800;
}
:root {
  --bg-top: #f8f0e7;
  --bg-bottom: #f4fbf8;
  --panel: #ffffff;
  --ink: #1f2522;
  --muted: #59635d;
  --accent: #0f8a63;
  --accent-strong: #0a6a4c;
  --line: #d8e2dd;
  --shadow: 0 15px 40px rgba(18, 45, 33, 0.12);
  --radius-xl: 24px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden; /* Hauptschutz vor horizontalem Scroll auf Mobile */
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  width: 100%;
}

#parallax-bg {
  position: fixed;
  inset: 0;
  background: url("AdobeStock_451121155_blur.jpeg?v=2") center / cover no-repeat;
  scale: 1.8;
  translate: 0 40vh;
  will-change: translate;
  z-index: -1;
  /* Verhindert dass die skalierte Fläche den Scroll-Bereich aufweitet */
  contain: strict;
}

@supports (animation-timeline: scroll()) {
  @keyframes parallax-scroll {
    from {
      translate: 0 40vh;
    }
    to {
      translate: 0 -40vh;
    }
  }

  #parallax-bg {
    animation: parallax-scroll linear both;
    animation-timeline: scroll(root);
  }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(240, 248, 244, 0.25);
  z-index: -1;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px 40px;
  overflow-x: hidden;
}

.app-header {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(18, 45, 33, 0.1);
  animation: drop-in 420ms ease-out;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1540px;
  margin: 0 auto;
  padding: 16px 18px;
}

.brand-kicker {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

.panel {
  display: none;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 22px;
  animation: fade-up 320ms ease-out;
}

.panel.is-active {
  display: block;
}

.panel-head p {
  color: var(--muted);
  margin: 10px 0 0;
}

.product-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(190px, 45%), 1fr));
  gap: 16px;
  width: 100%;
}

.product-toggle-btn {
  margin-top: 12px;
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 7px 16px rgba(18, 45, 33, 0.08);
  transform: translateY(8px);
  opacity: 0;
  animation: card-in 320ms ease-out forwards;
  cursor: pointer;
  position: relative;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 18px 32px rgba(18, 45, 33, 0.18);
  border-color: rgba(15, 138, 99, 0.4);
}

.product-card.selected {
  border-color: var(--accent);
  border-width: 2px;
  background: linear-gradient(180deg, #eefaf5 0%, #d4f3e7 100%);
  box-shadow:
    0 0 0 3px rgba(15, 138, 99, 0.25),
    0 16px 30px rgba(15, 138, 99, 0.22);
  transform: translateY(-2px);
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef3ef;
}

.product-body {
  padding: 12px;
}

.product-name {
  margin: 0;
  font-weight: 700;
  text-align: center;
}

.product-day-warning {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 6px;
  background: #c0392b;
  border: none;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 1;
}

.product-controls {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.product-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.product-quantity {
  min-width: 42px;
  height: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 18px rgba(15, 138, 99, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.product-quantity-input {
  width: 38px;
  background: transparent;
  border: none;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.product-quantity-input::-webkit-outer-spin-button,
.product-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-decrement {
  width: 38px;
  height: 38px;
  border: 1px solid #f0c9c9;
  border-radius: 999px;
  background: #fdeeee;
  color: #9b3c3c;
  font: inherit;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
}

.product-increment {
  width: 38px;
  height: 38px;
  border: 1px solid #bfe3d6;
  border-radius: 999px;
  background: #e9f7f1;
  color: #2f7d63;
  font: inherit;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 138, 99, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
}

.product-decrement:not(:disabled):hover,
.product-increment:not(:disabled):hover {
  transform: scale(1.08);
  filter: brightness(1.02);
}

.product-decrement:not(:disabled):active,
.product-increment:not(:disabled):active {
  transform: scale(0.96);
}

.product-decrement:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.product-increment:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-decrement,
  .product-increment {
    transition: none;
  }

  .product-card:hover,
  .product-decrement:hover,
  .product-increment:hover,
  .product-decrement:active,
  .product-increment:active {
    transform: none;
  }
}

.product-inactive {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #d7c9c0;
  color: #7b4f3a;
  font-size: 12px;
  font-weight: 700;
}

.admin-placeholder {
  margin-top: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  background: #fcfefd;
}

.admin-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 16px;
  align-items: start;
}

.admin-form,
.admin-list-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
}

.admin-form h3,
.admin-list-head h3 {
  margin: 0 0 12px;
}

.field-label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 700;
  font-size: 14px;
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="file"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  font: inherit;
}

.checkbox-label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  font-weight: 700;
}

.availability-label {
  margin-bottom: 0;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.checkbox-group .checkbox-label {
  margin-top: 0;
}

.admin-preview-wrap {
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f3f7f5;
}

.admin-image-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.form-message {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-message--error {
  color: #bd2e2e;
  font-weight: 700;
}

.admin-actions {
  justify-content: space-between;
  margin-top: 12px;
}

.admin-list-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.admin-orders-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-group--actions {
  gap: 8px;
}

.admin-filter-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.admin-filter-select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 10px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.admin-product-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.admin-orders-wrap {
  grid-column: 1 / -1;
}

.admin-order-list {
  margin-top: 6px;
  display: grid;
  gap: 10px;
}

.admin-order-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fcfefd;
}

.admin-order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.admin-order-items {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.admin-order-total {
  margin: 10px 0 0;
  font-weight: 800;
  color: var(--accent-strong);
}

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fcfefd;
  transition:
    opacity 0.15s,
    border-color 0.15s,
    background 0.15s;
}

.admin-row.is-dragging {
  opacity: 0.35;
  cursor: grabbing;
}

.admin-row.drag-over {
  border-color: var(--accent);
  background: #edf7f2;
  box-shadow: 0 0 0 2px rgba(15, 138, 99, 0.18);
}

.admin-row-main {
  min-width: 0;
  flex: 1;
}

.admin-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.admin-row-title {
  margin: 0;
  font-weight: 700;
}

.admin-row-meta {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.admin-status {
  font-weight: 700;
}

.admin-status.is-active {
  color: #1f6d53;
}

.admin-status.is-inactive {
  color: #bd2e2e;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drag-handle {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  cursor: grab;
  color: var(--muted);
  font-size: 18px;
  padding: 0 4px 0 0;
  user-select: none;
  opacity: 0.5;
}

.drag-handle::before {
  content: "⠿";
}

.drag-handle:hover {
  opacity: 1;
}

.admin-row.is-dragging .drag-handle {
  cursor: grabbing;
}

.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6faf8;
  font-size: 13px;
  font-weight: 700;
}

.admin-toggle input {
  margin: 0;
}

.btn-danger {
  background: #fbe6e6;
  color: #8f2424;
  border: 1px solid #f2caca;
}

.btn-icon-danger {
  background: #fbe6e6;
  color: #8f2424;
  border: 1px solid #f2caca;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 150ms;
}

.btn-icon-danger:hover {
  background: #f2caca;
}

.btn-icon-secondary {
  background: #f3f7f5;
  color: var(--ink);
  border: 1px solid var(--line);
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 150ms;
}

.btn-icon-secondary:hover {
  background: var(--line);
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 130ms ease,
    box-shadow 130ms ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 138, 99, 0.24);
}

.btn-secondary {
  background: #f3f7f5;
  color: var(--ink);
  border: 1px solid var(--line);
}

.password-dialog {
  border: 0;
  border-radius: 16px;
  width: min(92vw, 360px);
  padding: 0;
  box-shadow: var(--shadow);
}

.password-dialog::backdrop {
  background: rgba(23, 29, 26, 0.35);
}

/* Settings button */
.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.admin-panel-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.settings-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: #f3f7f5;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  transition: background 150ms;
}

.settings-btn:hover {
  background: var(--line);
}

/* ── Admin-Toggle (Schloss-Icon im Header) ── */
.btn-admin-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 0.45;
  transition:
    opacity 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    border-radius 150ms ease,
    width 150ms ease,
    padding 150ms ease;
}

.btn-admin-toggle:hover {
  opacity: 1;
  background: #f3f7f5;
  border-color: var(--line);
}

.btn-admin-text {
  display: none;
  font:
    700 0.9rem/1 "Manrope",
    sans-serif;
  white-space: nowrap;
}

/* Im Admin-Modus: vollständiger Button sichtbar */
.btn-admin-toggle.is-admin-mode {
  width: auto;
  height: auto;
  padding: 9px 16px;
  border-radius: 999px;
  background: #f3f7f5;
  border-color: var(--line);
  color: var(--ink);
  opacity: 1;
}

.btn-admin-toggle.is-admin-mode .btn-admin-icon {
  display: none;
}

.btn-admin-toggle.is-admin-mode .btn-admin-text {
  display: inline;
}

/* ── Floating scroll-to-order button ── */
.scroll-to-order-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 11px 22px 11px 18px;
  font:
    600 0.9rem/1 "Manrope",
    sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  white-space: nowrap;
}

.scroll-to-order-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Settings dialog */
.settings-dialog-content {
  padding: 22px;
}

.settings-dialog-content h3 {
  margin: 0 0 16px;
}

.settings-deadline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
}

.settings-deadline-row input[type="time"] {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
}

.settings-deadline-unit {
  font-weight: 600;
  color: var(--ink);
}

.settings-hint {
  margin: 0 0 16px;
}

.settings-dialog {
  width: min(92vw, 460px);
}

.settings-closed-days-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  margin: 6px 0 18px;
}

.closed-day-item {
  font-size: 0.88rem;
}

.password-form {
  padding: 18px;
}

.weekly-report-dialog {
  width: min(96vw, 760px);
}

/* Analytics dialog */
.analytics-dialog {
  width: min(96vw, 600px);
}

.analytics-dialog-content {
  padding: 22px;
}

.analytics-dialog-content h3 {
  margin: 0 0 16px;
}

.analytics-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.analytics-filters select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  cursor: pointer;
}

.analytics-filters select:disabled {
  opacity: 0.45;
  cursor: default;
}

.analytics-body {
  min-height: 60px;
  overflow-x: auto;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.analytics-table th,
.analytics-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.analytics-table th {
  font-weight: 700;
  background: #f3f7f5;
}

.analytics-qty {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.analytics-total-row td {
  font-weight: 700;
  border-top: 2px solid var(--ink);
  border-bottom: none;
}

.success-dialog {
  width: min(92vw, 420px);
}

.success-dialog-content {
  padding: 22px;
  text-align: center;
}

.success-check {
  width: 86px;
  height: 86px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1bb772 0%, #128d57 100%);
  color: #ffffff;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(16, 137, 86, 0.28);
}

.success-dialog-content h3 {
  margin: 0;
}

.success-dialog-content p {
  margin: 10px 0 0;
  color: var(--muted);
}

.success-dialog-content .dialog-actions {
  justify-content: center;
}

.weekly-report-content {
  padding: 18px;
}

.weekly-report-content h3 {
  margin: 0;
}

.weekly-report-body {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.weekly-report-day {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfefd;
  padding: 12px;
}

.weekly-report-day h4 {
  margin: 0;
}

/* ── Footer ── */
.app-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
  background: #fff;
  box-shadow: 0 -2px 8px rgba(18, 45, 33, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1540px;
  margin: 0 auto;
  padding: 16px 18px;
}

.footer-dh-logo {
  height: 72px;
  width: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(18, 45, 33, 0.1);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

a:hover .footer-dh-logo {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(18, 45, 33, 0.22);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.footer-copyright {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 0px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-collab {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.footer-collab-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  background: var(--ink);
  border-radius: 10px;
  padding: 6px 12px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

a:hover .footer-collab-logo {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(18, 45, 33, 0.3);
}

.app-footer a {
  color: var(--muted);
  text-decoration: none;
}

.app-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.weekly-report-list {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.weekly-report-total {
  margin: 10px 0 0;
  font-weight: 800;
  color: var(--accent-strong);
}

.password-form h3 {
  margin: 0;
}

.password-form p {
  margin: 8px 0 0;
  color: var(--muted);
}

.password-form input {
  margin-top: 12px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font: inherit;
}

.dialog-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.error-text {
  min-height: 18px;
  margin: 8px 0 0;
  color: #bd2e2e;
  font-size: 13px;
}

.empty-state {
  margin-top: 16px;
  color: var(--muted);
  font-weight: 600;
}

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  /* ── Touch-Targets für Formular-Buttons min. 44 px ── */
  .btn {
    min-height: 44px;
  }

  .admin-filter-select {
    min-height: 44px;
  }

  /* ── Produktraster: immer 2 Spalten ── */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* ── Produktkachel: kompakteres Padding ── */
  .product-body {
    padding: 8px 10px;
  }

  .product-name {
    font-size: 0.88rem;
  }

  /* ── Stepper: volle Kartenbreite, gleichmäßig verteilt ── */
  /* Rechnung 360px-Screen: (336-12)/2=162px Karte, -20px Padding = 142px */
  /* Buttons 40px + Menge 36px: 40+36+40 = 116px < 142px ✓ */
  .product-stepper {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .product-decrement,
  .product-increment {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .product-quantity {
    min-width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .product-controls {
    margin-top: 10px;
  }

  /* ── Header: Innen-Flex-Container richtig steuern ── */
  .header-inner {
    flex-wrap: wrap;
  }

  /* ── Admin-Layout: Eine Spalte ── */
  .admin-layout {
    grid-template-columns: 1fr;
  }

  /* ── Admin-Listenköpfe stapeln ── */
  .admin-list-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-list-head h3 {
    margin-bottom: 4px;
  }

  .admin-orders-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .filter-group {
    justify-content: space-between;
  }

  .filter-group .admin-filter-select {
    flex: 1;
  }

  .filter-group--actions {
    justify-content: stretch;
    gap: 8px;
  }

  .filter-group--actions .btn {
    flex: 1;
    min-height: 44px;
  }

  .admin-list-head > .btn {
    width: 100%;
  }

  /* ── Admin-Zeilen stapeln ── */
  .admin-row {
    flex-direction: column;
  }

  .admin-row-actions {
    justify-content: flex-end;
  }

  /* ── Wochenbericht: 1 Spalte ── */
  .weekly-report-body {
    grid-template-columns: 1fr;
  }

  /* ── Admin-Aktionen stapeln ── */
  .admin-actions {
    flex-direction: column-reverse;
  }

  .admin-actions .btn {
    width: 100%;
  }

  /* ── Dialog-Inhalte scrollbar machen ── */
  .settings-dialog-content,
  .analytics-dialog-content,
  .weekly-report-content,
  .templates-dialog-content {
    overflow-y: auto;
    max-height: 80svh;
  }
}

@media (max-width: 540px) {
  /* ── Footer ── */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-legal {
    flex: unset;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* ── Header stacked auf kleinen Phones ── */
  .header-inner {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 10px;
  }

  /* Schloss-Icon: oben rechts fixiert, solange nicht im Admin-Modus */
  #switchToAdminBtn:not(.is-admin-mode) {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
  }

  /* Im Admin-Modus: normale Darstellung (volle Breite) */
  #switchToAdminBtn.is-admin-mode {
    position: static;
    width: 100%;
  }

  .dh-logo {
    width: 64px;
    height: 64px;
  }

  h1 {
    font-size: clamp(1.3rem, 5vw, 1.7rem);
    margin: 4px 0 0;
  }

  /* ── Abstände reduzieren ── */
  .page-shell {
    padding: 0 12px 24px;
  }

  .panel {
    padding: 16px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  /* ── iOS-Zoom auf Inputs verhindern (< 16 px triggert Zoom) ── */
  input[type="text"],
  input[type="tel"],
  input[type="password"],
  input[type="time"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px;
  }

  /* ── Formular-Inputs: Touch-freundliche Mindesthöhe ── */
  .order-form input[type="text"],
  .order-form input[type="tel"],
  .order-form select,
  .admin-form input[type="text"],
  .admin-form input[type="number"],
  .password-form input {
    min-height: 48px;
    padding: 12px 14px;
  }

  /* ── Template-Leiste stapeln ── */
  .template-edit-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .template-edit-label {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .template-edit-prefix {
    font-size: 0.8rem;
    opacity: 0.8;
  }

  .template-name-edit-input {
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .template-edit-actions {
    flex-direction: column;
    gap: 8px;
  }

  .template-edit-actions .btn {
    width: 100%;
  }

  /* ── Dialoge auf kleinen Phones: volle Breite und scrollbar ── */
  .password-dialog {
    width: min(98vw, 100%);
    max-height: 92svh;
    overflow-y: auto;
  }

  /* ── Einstellungen: Einzelspalte für Tage ── */
  .settings-closed-days-list {
    grid-template-columns: 1fr;
  }

  /* ── Zurück-Button: volle Breite ── */
  #switchToCustomerBtn {
    width: 100%;
  }

  /* ── Analytics-Dialog ── */
  .analytics-filters {
    flex-direction: column;
  }

  .analytics-filters select {
    width: 100%;
    min-height: 44px;
  }

  /* ── Templates-Neue-Zeile stapeln ── */
  .templates-new-row {
    flex-direction: column;
  }

  .templates-name-input,
  #createTemplateBtn {
    width: 100%;
  }

  /* ── Mehr Luft für Admin-Formular ── */
  .admin-form,
  .admin-list-wrap {
    padding: 12px;
  }

  /* ── Produktkachel: noch kompakter auf mittelgroßen Phones ── */
  .product-body {
    padding: 6px 8px;
  }
}

@media (max-width: 380px) {
  /* ── Sehr kleine Phones (iPhone SE, Galaxy A-Serie) ── */
  .brand-block {
    gap: 10px;
  }

  .dh-logo {
    width: 52px;
    height: 52px;
  }

  h1 {
    font-size: 1.15rem;
  }

  .panel {
    padding: 12px;
  }

  .page-shell {
    padding: 0 8px 20px;
  }

  /* ── Produktraster: engerer Abstand ── */
  .product-grid {
    gap: 8px;
  }

  /* ── Produktkachel: maximale Kompaktheit ── */
  /* Rechnung 320px-Screen: (304-8)/2=148px Karte, -16px Padding = 132px */
  /* 40+36+40 = 116px < 132px ✓ */
  .product-body {
    padding: 6px 8px;
  }

  .product-name {
    font-size: 0.82rem;
  }

  .product-controls {
    margin-top: 8px;
  }

  .product-decrement,
  .product-increment {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .product-quantity {
    min-width: 32px;
    height: 32px;
    font-size: 0.88rem;
  }

  .btn {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .admin-panel-btns {
    gap: 6px;
  }

  .settings-btn {
    width: 36px;
    height: 36px;
  }
}

/* ── Hover-Effekte auf Touch-Geräten deaktivieren ── */
/* Verhindert "stuck hover" nach dem Antippen auf iOS/Android */
@media (hover: none) {
  .product-card:hover {
    transform: translateY(0);
    box-shadow: 0 7px 16px rgba(18, 45, 33, 0.08);
    border-color: var(--line);
  }

  .product-card.selected:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    border-width: 2px;
    box-shadow:
      0 0 0 3px rgba(15, 138, 99, 0.25),
      0 16px 30px rgba(15, 138, 99, 0.22);
  }

  .product-card:active {
    transform: scale(0.97);
    transition-duration: 80ms;
  }

  .product-decrement:not(:disabled):hover,
  .product-increment:not(:disabled):hover {
    transform: none;
    filter: none;
  }

  .product-decrement:not(:disabled):active,
  .product-increment:not(:disabled):active {
    transform: scale(0.92);
  }

  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.97);
  }
}
.template-edit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(135deg, #eaf6ef 0%, #d6eee3 100%);
  border: 1px solid #b2d9c3;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 20px;
  margin-bottom: 18px;
}

.template-edit-bar[hidden] {
  display: none;
}

.template-edit-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent-strong, #0d6e40);
  font-size: 1rem;
  flex: 1;
  min-width: 0;
}

.template-edit-prefix {
  white-space: nowrap;
}

.template-name-edit-input {
  flex: 1;
  min-width: 80px;
  border: 1px solid #b2d9c3;
  border-radius: 6px;
  padding: 4px 8px;
  font-weight: 700;
  color: var(--accent-strong, #0d6e40);
  font-size: 1rem;
  background: transparent;
  font-family: inherit;
}

.template-name-edit-input:focus {
  outline: 2px solid var(--accent-strong, #0d6e40);
  outline-offset: 1px;
  background: #fff;
}

.template-edit-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Templates dialog ── */
.templates-dialog {
  width: min(96vw, 520px);
}

.templates-dialog-content {
  padding: 22px;
}

.templates-dialog-content h3 {
  margin: 0 0 16px;
}

.templates-new-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.templates-name-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.95rem;
}

.templates-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 24px;
}

.template-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f6faf8;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}

.template-row-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
