/* Web-App von Fit my day. Farben wie App und Homepage. Keine Schriften oder Skripte von außen. */
:root {
  --grund: #0F1211; --karte: #191E1C; --linie: #2A312E; --schrift: #F2F5F3; --gedaempft: #9AA6A0;
  --limette: #C8F250; --blau: #6CC4FF; --orange: #FFA552; --rot: #FF7A6B;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--grund); color: var(--schrift);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
[hidden] { display: none !important; }
.breite { max-width: 880px; margin: 0 auto; padding: 0 16px; }
h1 { font-size: 30px; line-height: 1.2; margin: 28px 0 6px; }
h2 { font-size: 15px; font-weight: 600; color: var(--gedaempft); margin: 0 0 8px; }
h2 small { font-weight: 400; }
p { margin: 0 0 12px; }
.gedaempft { color: var(--gedaempft); }
.klein { font-size: 14px; }
.mitte { text-align: center; margin-top: 48px; }
.fehler { color: var(--rot); margin-top: 14px; }
.fuss { margin: 22px 0 40px; }

.kopf { position: sticky; top: 0; z-index: 5; background: rgba(15, 18, 17, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie); }
.kopf .breite { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.marke { display: flex; align-items: center; gap: 10px; color: var(--schrift); text-decoration: none; font-weight: 700; font-size: 18px; }
.marke img { width: 34px; height: 34px; border-radius: 9px; }

.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 18px; padding: 18px; }
.raster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.raster .breit { grid-column: 1 / -1; }
.gross { font-size: 34px; font-weight: 700; line-height: 1.15; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.gross small { font-size: 15px; font-weight: 400; color: var(--gedaempft); }
.vorlaeufig { opacity: .75; }

.balken { height: 10px; border-radius: 5px; background: var(--linie); overflow: hidden; margin-bottom: 12px; }
.balken i { display: block; height: 100%; width: 0; border-radius: 5px; transition: width .3s ease; }
.balken.orange i { background: var(--orange); }
.balken.blau i { background: var(--blau); }
.balken.limette i { background: var(--limette); }
.balken.drueber i { background: var(--rot); }

button, input { font: inherit; }
.knopf {
  display: block; width: 100%; min-height: 46px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--limette); color: var(--grund); font-weight: 700; padding: 10px 16px; margin: 4px 0 10px;
}
.knopf.blau { background: var(--blau); }
.knopf.zweit { background: transparent; color: var(--schrift); border: 1px solid var(--linie); }
.knopf:disabled { opacity: .5; cursor: default; }
.schlicht { background: none; border: 0; color: var(--gedaempft); cursor: pointer; padding: 10px 6px; min-height: 44px; }
.schlicht:hover { color: var(--schrift); }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }

label { display: block; font-size: 14px; color: var(--gedaempft); margin: 10px 0 4px; }
input {
  display: block; width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--linie);
  background: var(--grund); color: var(--schrift); padding: 8px 12px; margin-bottom: 8px;
}
.reiter { display: flex; gap: 6px; margin: 18px 0 12px; background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 4px; }
.reiter button { flex: 1; min-height: 42px; border: 0; border-radius: 10px; background: none; color: var(--gedaempft); cursor: pointer; font-weight: 600; }
.reiter button[aria-selected="true"] { background: var(--linie); color: var(--schrift); }
.code { font: 700 38px/1.2 ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: 4px; text-align: center; margin: 18px 0; color: var(--limette); }
#anmeldung { max-width: 460px; margin: 0 auto; }

.liste { list-style: none; margin: 0; padding: 0; }
.liste li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--linie); }
.liste li:first-child { border-top: 0; }
.liste .haken { color: var(--limette); font-weight: 700; white-space: nowrap; }
.liste button {
  min-height: 40px; border-radius: 12px; border: 1px solid var(--linie); background: none; color: var(--schrift);
  padding: 6px 14px; cursor: pointer; font-weight: 600; white-space: nowrap;
}
.liste button:hover { border-color: var(--limette); }

@media (max-width: 560px) {
  .raster { grid-template-columns: 1fr; }
  h1 { font-size: 26px; }
  .gross { font-size: 30px; }
  .code { font-size: 30px; letter-spacing: 3px; }
}
@media (prefers-reduced-motion: reduce) { .balken i { transition: none; } }
