/*! (c) Copyright 2026 Brinkhoff Consulting GmbH. Alle Rechte vorbehalten. Diese Website wurde NC Coffee Roastery GmbH zur Nutzung am 29.10.2026 erstmals zur Verfügung gestellt. */
.tool {
  max-width: 980px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 20px) 18px 40px;
}
.tool h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.05;
}
.tool h2 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.tool .sub { margin: 6px 0 0; color: var(--ink-70); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.bar__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bar__actions .btn { min-height: 44px; font-size: 14px; padding: 0 16px; }

.card {
  background: rgba(255, 255, 255, .9);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 14px 30px -18px rgba(33, 32, 31, .5);
}

body.tresen { background: var(--ink); color: #f4f1ec; }
body.tresen .tool .sub { color: rgba(244, 241, 236, .65); }
body.tresen .btn { --btn-bg: #f4f1ec; --btn-fg: var(--ink); border-color: #f4f1ec; }
body.tresen .btn--ghost { --btn-bg: transparent; --btn-fg: #f4f1ec; }
body.tresen a { color: #f4f1ec; }

.store-select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  padding: 0 40px 0 14px;
  border: 1.5px solid rgba(244, 241, 236, .5);
  border-radius: 8px;
  background: #2c2b29 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f4f1ec' stroke-width='1.8'/%3E%3C/svg%3E") right 14px center / 12px no-repeat;
  color: #f4f1ec;
  font-weight: 700;
}
.store-select option { color: var(--ink); }

.scan {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.scan input {
  flex: 1;
  min-width: 0;
  min-height: 64px;
  padding: 0 18px;
  border: 2px solid rgba(244, 241, 236, .4);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .1em;
}
.scan input:focus { outline: none; border-color: #fff; }
.scan input::placeholder { color: rgba(244, 241, 236, .4); letter-spacing: .02em; font-weight: 400; }

.result {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 300px;
  padding: 28px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .06);
  text-align: center;
  transition: background-color .25s;
}
.result__head { font-size: clamp(36px, 8vw, 64px); font-weight: 900; font-stretch: 85%; letter-spacing: .06em; line-height: 1; }
.result__main { font-size: clamp(20px, 4vw, 28px); font-weight: 700; }
.result__hint { font-size: 18px; max-width: 34ch; }
.result__meta { font-size: 14px; opacity: .75; letter-spacing: .06em; }
.result.ok { background: #1f7a43; color: #fff; animation: flash .4s ease-out; }
.result.bad { background: #b3261e; color: #fff; animation: flash .4s ease-out; }
.result.ok .result__head, .result.bad .result__head { animation: pop-in .4s var(--ease-spring); }

.cols { display: grid; gap: 18px; margin-top: 22px; }
@media (min-width: 820px) { .cols { grid-template-columns: 1.1fr .9fr; } }

.panel-dark {
  padding: 16px;
  border: 1.5px dashed rgba(244, 241, 236, .3);
  border-radius: 14px;
}
.panel-dark h2 { color: rgba(244, 241, 236, .8); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  font-size: 15px;
}
.list .code { font-weight: 800; letter-spacing: .1em; }
.list .btn { min-height: 44px; padding: 0 12px; font-size: 12px; }
.list .tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tag.ok { background: #1f7a43; color: #fff; }
.tag.bad { background: #b3261e; color: #fff; }
.empty { opacity: .6; font-size: 15px; }

.howto { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.howto code, .facts code { font-family: var(--mono); font-weight: 800; background: rgba(181, 165, 148, .3); padding: 1px 6px; border-radius: 4px; }
.facts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 18px; }
.sample { display: grid; gap: 10px; align-content: start; }
.sample .qr-box { width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.sample .qr-box svg { width: 100%; height: 100%; }
.sample h3 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 22px; }
.sample p { margin: 0; font-size: 14px; color: var(--ink-70); }
.sample .btn { min-height: 44px; font-size: 14px; }
.state { justify-self: start; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--ink-12); }
.state.active { background: #2f7d4a; color: #fff; }
.state.redeemed { background: var(--ink); color: #fff; }

.notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1.5px dashed var(--draft);
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  font-size: 15px;
}
.notice[hidden] { display: none; }

@keyframes flash { from { filter: brightness(1.6); } }
@keyframes pop-in { from { transform: scale(.7); opacity: 0; } }
