/* Bonpilot – Website. Farben und Schriften aus der App („Bon & Messing“). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/IBMPlexMono-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --salbei: #e6e8e4;
  --salbei-tief: #d5d8d3;
  --papier: #ffffff;
  --graphit: #18191a;
  --graphit-2: #212427;
  --graphit-3: #2a2e32;
  --text: #18191a;
  --text-2: #4f5553;
  --text-3: #6e7572;
  --linie: #cdd1cb;
  --messing: #c49a3f;
  --messing-tief: #7a5912;
  --messing-hell: #d2ac5a;
  --messing-weich: #ebddb8;
  --bonrot: #b3361f;
  --tinte: #1e1f1e;

  --breit: 1200px;
  --rand: clamp(16px, 4vw, 40px);
  --abstand: clamp(72px, 10vw, 136px);
}

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

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

body {
  margin: 0;
  background: var(--salbei);
  color: var(--text);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--messing-tief);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--graphit);
}

:focus-visible {
  outline: 3px solid var(--messing);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--rand);
  top: 12px;
  z-index: 10;
  background: var(--papier);
  padding: 8px 14px;
}

.wrap {
  max-width: var(--breit);
  margin: 0 auto;
  padding: 0 var(--rand);
}

/* ── Typografie ─────────────────────────────────────────────────────────── */

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(46px, 7.4vw, 96px);
  line-height: 0.94;
  font-variation-settings: "wdth" 70;
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1;
  font-variation-settings: "wdth" 74;
}
h3 {
  font-size: 23px;
  line-height: 1.15;
  font-variation-settings: "wdth" 88;
  font-weight: 750;
}
p {
  margin: 0 0 1em;
  max-width: 64ch;
}
.lead {
  font-size: clamp(19px, 1.9vw, 22px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 54ch;
}
.klein {
  font-size: 15px;
  color: var(--text-3);
}

/* ── Knöpfe ─────────────────────────────────────────────────────────────── */

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px 14px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 17px;
  text-decoration: none;
  line-height: 1.1;
  border: 2px solid transparent;
  transition: background-color 0.15s, color 0.15s;
}
.knopf--messing {
  background: var(--messing);
  color: #1a1407;
}
.knopf--messing:hover {
  background: var(--messing-hell);
  color: #1a1407;
}
.knopf--rahmen {
  border-color: var(--graphit);
  color: var(--graphit);
}
.knopf--rahmen:hover {
  background: var(--graphit);
  color: var(--salbei);
}
.knopfreihe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ── Kopf ───────────────────────────────────────────────────────────────── */

.kopf {
  padding: 22px 0;
}
.kopf .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--graphit);
  font-weight: 820;
  font-size: 30px;
  font-variation-settings: "wdth" 74;
  letter-spacing: -0.02em;
  line-height: 1;
}
.marke img {
  width: 40px;
  height: 40px;
}
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 16px;
}
.nav a {
  color: var(--text-2);
  text-decoration: none;
}
.nav a:hover {
  color: var(--graphit);
  text-decoration: underline;
}
.kopf .knopf {
  padding: 11px 18px 10px;
  font-size: 15px;
}

/* ── Erster Eindruck: Bon kommt aus dem Drucker ─────────────────────────── */

.start {
  padding: clamp(32px, 6vw, 72px) 0 var(--abstand);
}
.start .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.start h1 {
  font-size: clamp(44px, 5.5vw, 80px);
  font-variation-settings: "wdth" 66;
}
.start h1 span {
  display: block;
}
@media (min-width: 1100px) {
  .start h1 span {
    white-space: nowrap;
  }
}
.start .lead {
  margin-top: 30px;
}
.start-fuss {
  margin-top: 22px;
  font-size: 15px;
  color: var(--text-3);
}

.drucker {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  justify-self: center;
  width: 100%;
}
.drucker-gehaeuse {
  position: relative;
  z-index: 2;
  height: 64px;
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(#2c3034, var(--graphit));
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.6);
}
.drucker-gehaeuse::before {
  /* Status-LED */
  content: "";
  position: absolute;
  top: 18px;
  right: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fbf73;
  box-shadow: 0 0 8px #6fbf73;
}
.drucker-gehaeuse::after {
  /* Papierschlitz */
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 10px;
  height: 5px;
  border-radius: 3px;
  background: #050606;
}
.drucker-papier {
  /* Der Bon kommt unterhalb des Schlitzes heraus */
  margin: -14px 34px 0;
  overflow: hidden;
  padding-bottom: 28px;
}

.bon {
  position: relative;
  background: var(--papier);
  color: var(--tinte);
  font-family: "Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.5;
  padding: 26px 22px 34px;
  box-shadow: 0 22px 40px -22px rgba(24, 25, 26, 0.5);
  --zacke: 9px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zacke) * 2) var(--zacke) repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--zacke) + 1px) no-repeat;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zacke) * 2) var(--zacke) repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--zacke) + 1px) no-repeat;
}
.bon p {
  margin: 0;
}
.bon-kopf {
  text-align: center;
  margin-bottom: 12px;
}
.bon-kopf strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.bon-kopf span {
  color: #6b6e68;
  font-size: 12px;
}
.bon-zeile {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.bon-zeile--summe {
  font-weight: 600;
  font-size: 16px;
  border-top: 1px dashed #9a9d97;
  margin-top: 8px;
  padding-top: 8px;
}
.bon-zeile--leise {
  color: #6b6e68;
  font-size: 12px;
}
.bon-hinweis {
  color: var(--bonrot);
  padding-left: 2ch;
}
.bon-tse {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #9a9d97;
  font-size: 11.5px;
  line-height: 1.45;
  color: #45484a;
}
.bon-tse strong {
  color: var(--tinte);
  font-size: 12.5px;
}
.bon-danke {
  text-align: center;
  margin-top: 16px !important;
  font-size: 12px;
  color: #6b6e68;
}

@media (prefers-reduced-motion: no-preference) {
  .drucker .bon {
    animation: drucken 2.8s cubic-bezier(0.3, 0.1, 0.35, 1) 0.4s both;
  }
  .drucker-gehaeuse::before {
    animation: led 0.35s steps(2) 0.4s 8;
  }
}
@keyframes drucken {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes led {
  50% {
    background: var(--messing-hell);
    box-shadow: 0 0 8px var(--messing-hell);
  }
}

/* ── Abschnitte ─────────────────────────────────────────────────────────── */

.abschnitt {
  padding: var(--abstand) 0;
}
.abschnitt-kopf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.abschnitt-kopf p {
  margin: 0;
  color: var(--text-2);
}

/* ── Ein Abend: Ablauf ──────────────────────────────────────────────────── */

.abend {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: schritt;
}
.abend > li {
  counter-increment: schritt;
  display: grid;
  grid-template-columns: 96px minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  padding: 44px 0;
  border-top: 2px solid var(--graphit);
  align-items: start;
}
.abend > li:last-child {
  border-bottom: 2px solid var(--graphit);
}
.abend > li::before {
  content: counter(schritt);
  font-size: 76px;
  line-height: 0.8;
  font-weight: 800;
  font-variation-settings: "wdth" 62;
  color: var(--messing);
}
.abend h3 {
  margin-bottom: 12px;
}
.abend p {
  color: var(--text-2);
  font-size: 17px;
}
.abend-bild {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  align-items: flex-start;
}

.geraet {
  background: #0b0c0d;
  border: 1px solid #3a3f44;
  padding: 9px;
  border-radius: 22px;
  box-shadow: 0 24px 40px -26px rgba(0, 0, 0, 0.55);
}
.geraet img {
  border-radius: 13px;
}
.geraet--handy {
  width: min(240px, 46%);
  padding: 8px;
  border-radius: 34px;
}
.geraet--handy img {
  border-radius: 27px;
}

.bon--klein {
  width: 220px;
  flex: none;
  font-size: 12.5px;
  padding: 18px 16px 28px;
}
.bon--klein .bon-kopf strong {
  font-size: 18px;
  letter-spacing: 0.08em;
}

/* ── Die Kasse ist der Server ───────────────────────────────────────────── */

.dunkel {
  background: var(--graphit);
  color: #edefea;
}
.dunkel h2 {
  color: #edefea;
}
.dunkel p,
.dunkel li {
  color: #a3a9a6;
}
.dunkel a {
  color: var(--messing-hell);
}
.server {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.server h2 {
  margin-bottom: 26px;
}
.netz {
  width: 100%;
}
.netz text {
  font-family: "Archivo", sans-serif;
  fill: #edefea;
  font-size: 15px;
  font-weight: 600;
}
.netz .netz-klein {
  fill: #a3a9a6;
  font-size: 12.5px;
  font-weight: 400;
}
.haken {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.haken li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  font-size: 17px;
}
.haken li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--messing);
  border-bottom: 2.5px solid var(--messing);
  transform: rotate(-45deg);
}

/* ── Funktionen wie eine Speisekarte ───────────────────────────────────── */

.karte {
  background: var(--papier);
  border-radius: 6px;
  padding: clamp(32px, 5vw, 72px);
  box-shadow: 0 1px 0 var(--linie), 0 30px 60px -40px rgba(24, 25, 26, 0.35);
}
.karte-kopf {
  text-align: center;
  padding-bottom: 36px;
  margin-bottom: 44px;
  border-bottom: 3px double var(--graphit);
}
.karte-kopf p {
  margin: 16px auto 0;
  color: var(--text-2);
}
.karte-spalten {
  columns: 3 300px;
  column-gap: 56px;
}
.gang {
  break-inside: avoid;
  margin-bottom: 44px;
}
.gang h3 {
  font-size: 26px;
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--messing);
}
.gang dl {
  margin: 0;
}
.gang dt {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
}
.gang dd {
  margin: 3px 0 16px;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--text-2);
}

/* ── TSE-Tabelle und Hardware ───────────────────────────────────────────── */

.tabelle-rahmen {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  min-width: 720px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 16px 18px 16px 0;
  border-bottom: 1px solid var(--linie);
}
thead th {
  font-size: 15px;
  font-weight: 650;
  color: var(--text-3);
  border-bottom: 2px solid var(--graphit);
}
tbody th {
  font-weight: 750;
  font-size: 18px;
  font-variation-settings: "wdth" 88;
  width: 24%;
}
td small {
  display: block;
  color: var(--text-3);
  font-size: 14px;
  margin-top: 4px;
}
.ja {
  color: var(--text);
  font-weight: 650;
}
.nein {
  color: var(--text-2);
  font-weight: 650;
}

.tse-zusatz {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 56px;
}
.tse-zusatz h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.tse-zusatz p {
  font-size: 16px;
  color: var(--text-2);
}

.vertieft {
  background: var(--salbei-tief);
}
.hardware {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.hardware h3 {
  margin: 48px 0 6px;
}
.hardware h3:first-child {
  margin-top: 0;
}
.hardware table {
  min-width: 560px;
}
.hardware tbody th {
  width: 28%;
  font-size: 16px;
}
.preis {
  white-space: nowrap;
  text-align: right;
  padding-right: 0;
}
.mindest {
  margin: 0;
}
.mindest div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #bfc4bd;
}
.mindest dt {
  font-weight: 700;
}
.mindest dd {
  margin: 0;
  color: var(--text-2);
  font-size: 16.5px;
}
.einkauf {
  position: sticky;
  top: 24px;
}
.einkauf .bon {
  font-size: 13px;
}
.einkauf-notiz {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-2);
}

/* ── Weg zur eigenen Kasse ──────────────────────────────────────────────── */

.weg {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  counter-reset: weg;
}
.weg li {
  counter-increment: weg;
  border-top: 2px solid var(--graphit);
  padding-top: 20px;
}
.weg li::before {
  content: counter(weg);
  display: block;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  font-variation-settings: "wdth" 62;
  color: var(--messing);
  margin-bottom: 14px;
}
.weg h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.weg p {
  font-size: 16px;
  color: var(--text-2);
}
.lizenz {
  margin-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  padding-top: 40px;
  border-top: 1px solid var(--linie);
}
.lizenz h3 {
  margin-bottom: 10px;
}
.lizenz p {
  color: var(--text-2);
  font-size: 17px;
}

/* ── Fragen ─────────────────────────────────────────────────────────────── */

.fragen {
  max-width: 860px;
}
.fragen details {
  border-bottom: 1px solid var(--linie);
}
.fragen details:first-of-type {
  border-top: 2px solid var(--graphit);
}
.fragen summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 48px 22px 0;
  position: relative;
  font-size: 20px;
  font-weight: 700;
  font-variation-settings: "wdth" 90;
}
.fragen summary::-webkit-details-marker {
  display: none;
}
.fragen summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 30px;
  width: 11px;
  height: 11px;
  border-right: 2.5px solid var(--graphit);
  border-bottom: 2.5px solid var(--graphit);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.fragen details[open] summary::after {
  transform: rotate(-135deg);
  top: 35px;
}
.fragen details p {
  color: var(--text-2);
  padding-bottom: 8px;
}

/* ── Kontakt und Fuß ────────────────────────────────────────────────────── */

.kontakt {
  background: var(--messing);
  color: #1a1407;
  padding: clamp(64px, 8vw, 104px) 0;
}
.kontakt .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px 64px;
  align-items: end;
}
.kontakt p {
  color: #3d2e0c;
  font-size: 19px;
  margin: 18px 0 0;
}
.kontakt .knopf--dunkel {
  background: var(--graphit);
  color: #edefea;
}
.kontakt .knopf--dunkel:hover {
  background: #000;
  color: #fff;
}
.kontakt .knopf--rahmen {
  border-color: #1a1407;
  color: #1a1407;
}
.kontakt .knopf--rahmen:hover {
  background: #1a1407;
  color: var(--messing-weich);
}
.kontakt .knopfreihe {
  margin: 0;
  justify-content: flex-end;
}

.fuss {
  background: var(--graphit);
  color: #a3a9a6;
  padding: 44px 0 52px;
  font-size: 15px;
}
.fuss .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
}
.fuss a {
  color: #edefea;
}
.fuss nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

/* ── Schmale Bildschirme ────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .kopf .knopf {
    margin-left: auto;
  }
  .start .wrap,
  .server,
  .hardware,
  .abschnitt-kopf,
  .kontakt .wrap,
  .lizenz {
    grid-template-columns: minmax(0, 1fr);
  }
  .drucker {
    max-width: 340px;
  }
  .abend > li {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .abend > li::before {
    font-size: 56px;
  }
  .abend-bild {
    grid-column: 2;
  }
  .weg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tse-zusatz {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .einkauf {
    position: static;
    max-width: 420px;
  }
  .kontakt .knopfreihe {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }
  .marke {
    font-size: 26px;
  }
  .marke img {
    width: 34px;
    height: 34px;
  }
  .kopf .knopf {
    display: none;
  }
  .abend > li {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 32px 0;
  }
  .abend > li::before {
    font-size: 48px;
  }
  .abend-bild {
    grid-column: 1;
    flex-wrap: wrap;
  }
  .bon--klein {
    width: calc(50% - 10px);
    min-width: 0;
    font-size: 11.5px;
  }
  .weg {
    grid-template-columns: minmax(0, 1fr);
  }
  .mindest div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .fuss nav {
    margin-left: 0;
  }
}

@media print {
  .kopf .knopf,
  .kontakt,
  .drucker-gehaeuse {
    display: none;
  }
}
