/* Mai Express "Nachtfahrt" fuer den pretix-Shop: gleiche Schrift, Farben und Formen wie maiexpress.de.
   Schrift: Space Grotesk, SIL Open Font License 1.1 (siehe fonts/OFL-SpaceGrotesk.txt). */
@font-face {
  font-family: 'Space Grotesk';
  src: url("fonts/space-grotesk-latin-wght-normal.87c506d88b9f.woff2") format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --mx-nacht: #140d2b;
  --mx-nacht-2: #241747;
  --mx-nacht-3: #3a2c66;
  --mx-laterne: #ff793f;
  --mx-laterne-hell: #ff9363;
  --mx-laterne-tief: #b8480a;
  --mx-papier: #f6f4fa;
  --mx-karte: #ffffff;
  --mx-tinte: #17122a;
  --mx-tinte-2: #4b4462;
  --mx-linie: #dcd6e8;
  --mx-mond: #efeaff;
  --mx-mond-2: #b9b0d6;
  --mx-r: 14px;
  --mx-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --mx-text: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
}

/* Grundlage */
html body {
  background: var(--mx-papier);
  color: var(--mx-tinte);
  font-family: var(--mx-text);
  font-size: 16px;
  line-height: 1.6;
}
body .container.main-box {
  background: transparent;
}
body a {
  color: var(--mx-laterne-tief);
}
body a:hover,
body a:focus {
  color: var(--mx-nacht);
}
body .text-muted,
body .help-block {
  color: var(--mx-tinte-2);
}
body ::selection {
  background: var(--mx-laterne);
  color: var(--mx-nacht);
}

/* Ueberschriften wie auf der Website */
body h1,
body h2,
body h3,
body .h1,
body .h2,
body .h3,
body .panel-title,
body legend {
  font-family: var(--mx-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--mx-nacht);
}
body h1,
body .h1 {
  font-size: 2.4rem;
  font-weight: 500;
}
body h1 a,
body h1 a:hover {
  color: var(--mx-nacht);
  text-decoration: none;
}
body h1 small,
body h1 small.text-muted {
  display: block;
  margin-top: 6px;
  font-family: var(--mx-text);
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--mx-laterne-tief);
}
body h4,
body h5,
body .h4 {
  font-family: var(--mx-text);
  font-weight: 700;
  color: var(--mx-tinte);
}
body .page-header {
  border-bottom: 2px dashed var(--mx-linie);
}

/* Kopfzeile (Anmeldestatus, Sprache) als Nachtband */
body > header {
  background: var(--mx-nacht);
  color: var(--mx-mond);
}
body > header a,
body > header .btn-link {
  color: var(--mx-mond);
}
body > header a:hover,
body > header .btn-link:hover,
body > header .btn-link:focus {
  color: var(--mx-laterne);
}

/* Kaesten als Karten */
body .panel {
  border: 0;
  border-radius: var(--mx-r);
  background: var(--mx-karte);
  box-shadow: 0 1px 0 var(--mx-linie), 0 12px 30px -20px rgb(23 18 42 / 0.35);
  overflow: hidden;
}
body .panel > .panel-heading,
body .panel-primary > .panel-heading,
body .panel-default > .panel-heading {
  background: var(--mx-nacht);
  border: 0;
  color: var(--mx-mond);
  padding: 14px 20px;
}
body .panel > .panel-heading .panel-title,
body .panel > .panel-heading .panel-title a {
  color: var(--mx-mond);
  font-size: 1.35rem;
}
body .panel-body {
  padding: 20px;
}
body .panel-footer {
  background: var(--mx-papier);
  border-top: 1px solid var(--mx-linie);
}

/* Knoepfe: Laterne, rund */
body .btn {
  border-radius: 999px;
  font-family: var(--mx-text);
  font-weight: 700;
  padding: 0.6em 1.3em;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
body .btn-lg {
  padding: 0.75em 1.6em;
  font-size: 1.1rem;
}
body .btn:hover {
  transform: translateY(-1px);
}
body .btn-primary,
body .btn-primary:focus,
body .btn-primary.focus {
  background: var(--mx-laterne);
  border-color: var(--mx-laterne);
  color: var(--mx-nacht);
}
body .btn-primary:hover,
body .btn-primary:active,
body .btn-primary.active,
body .btn-primary:active:hover,
body .btn-primary:active:focus {
  background: var(--mx-laterne-hell);
  border-color: var(--mx-laterne-hell);
  color: var(--mx-nacht);
}
body .btn-primary[disabled],
body .btn-primary.disabled {
  background: var(--mx-laterne);
  border-color: var(--mx-laterne);
  opacity: 0.6;
}
body .btn-default {
  background: transparent;
  border: 2px solid var(--mx-nacht);
  color: var(--mx-nacht);
}
body .btn-default:hover,
body .btn-default:focus {
  background: var(--mx-nacht);
  border-color: var(--mx-nacht);
  color: var(--mx-mond);
}
body .btn-link {
  color: var(--mx-laterne-tief);
  border-radius: 999px;
}
body .btn:focus-visible,
body a:focus-visible,
body .form-control:focus-visible {
  outline: 3px solid var(--mx-laterne);
  outline-offset: 2px;
}

/* Formulare */
body .form-control {
  border: 1px solid var(--mx-linie);
  border-radius: 10px;
  box-shadow: none;
  min-height: 44px;
  color: var(--mx-tinte);
}
body .form-control:focus {
  border-color: var(--mx-laterne);
  box-shadow: 0 0 0 3px rgb(255 122 26 / 0.25);
}
body .input-group .form-control:first-child {
  border-radius: 10px 0 0 10px;
}
body .input-group-btn:last-child > .btn {
  border-radius: 0 999px 999px 0;
}
body .control-label,
body label {
  color: var(--mx-tinte);
  font-weight: 700;
}
body .label-required,
body .optional {
  color: var(--mx-tinte-2);
  font-weight: 400;
}
body input[type='checkbox'],
body input[type='radio'] {
  accent-color: var(--mx-laterne-tief);
}

/* Produktliste */
body .item-category {
  margin-bottom: 28px;
}
body .item-category > h3,
body .item-category h3:first-child {
  border-bottom: 2px dashed var(--mx-linie);
  padding-bottom: 8px;
}
body .product-row {
  border-color: var(--mx-linie);
}
body .product-row strong,
body .product-row .price {
  color: var(--mx-nacht);
}
body .product-row .price {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Hinweise */
body .alert {
  border: 0;
  border-radius: var(--mx-r);
}
body .alert-info {
  background: #ede8fb;
  color: #4a2fa0;
}
body .alert-success {
  background: #e5f4ea;
  color: #1d5a33;
}
body .alert-warning {
  background: #fff1d6;
  color: #7a4f00;
}
body .alert-danger {
  background: #fdecec;
  color: #9b1c1c;
}
body .label-primary,
body .badge {
  background: var(--mx-laterne-tief);
}

/* Schritte im Bestellablauf */
body .checkout-flow .step-current,
body .checkout-flow .step-done {
  color: var(--mx-laterne-tief);
}
body .progress-bar,
body .progress-bar-success {
  background-color: var(--mx-laterne);
}

/* Warteanzeige / Modals */
body .modal-card {
  border-radius: var(--mx-r);
}
body .modal-card-icon {
  background: var(--mx-nacht);
  color: var(--mx-laterne);
}

/* Fusszeile */
body .main-box > footer,
body .main-box > footer a {
  color: var(--mx-tinte-2);
}
