@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-400.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-500.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-600.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 700;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-700.woff2) format("woff2");
}

:root {
  --blau: #2673aa;
  --dunkel: #17486c;
  --rot: #c8102e;
  --gruen: #1a7f4e;
  --orange: #b45309;
  --grund: #f4f2ee;
  --linie: #e4e0d9;
  --text: #1f2d38;
  --grau: #5f6d78;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 16px/1.45 "IBM Plex Sans",system-ui,sans-serif;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
h1 {
  font-size: 22px;
  margin: 8px 0 0;
  color: var(--dunkel);
  font-weight: 600;
}
h2 {
  font-size: 15px;
  margin: 8px 0 6px;
  color: var(--grau);
  font-weight: 600;
  text-transform: none;
}
a {
  color: var(--blau);
}
small,
.grau {
  color: var(--grau);
  font-size: 14px;
}
.text {
  white-space: pre-wrap;
  margin: 6px 0;
  overflow-wrap: anywhere;
}

.kopf {
  background: var(--dunkel);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
}
.marke {
  font-weight: 600;
}
.marktname {
  font-size: 14px;
}
.wahl {
  display: flex;
  gap: 8px;
  align-items: center;
}
.wahl select {
  min-height: 44px;
}

.karte {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.karte.eigen {
  border-left: 4px solid var(--blau);
}
.kopfzeile {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--blau);
  border-radius: 6px;
  background: var(--blau);
  color: #fff;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.knopf.zweit {
  background: #fff;
  color: var(--blau);
}
.knopf.klein {
  padding: 0 12px;
}
.knopf:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--dunkel);
  outline-offset: 2px;
}
.knopf[hidden] {
  display: none;
}

.form {
  gap: 14px;
}
.code {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.qr {
  display: block;
  width: 200px;
  max-width: 100%;
  margin: 4px auto;
  background: #fff;
}
label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 500;
}
label.zeile {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 400;
}
input,
select,
textarea {
  font: inherit;
  color: var(--text);
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #b9b4aa;
  border-radius: 6px;
  background: #fff;
  width: 100%;
}
input[type=checkbox] {
  width: 22px;
  height: 22px;
  min-height: 0;
  flex: none;
}
fieldset {
  border: 1px solid var(--linie);
  border-radius: 8px;
  padding: 6px 12px;
  margin: 0;
}
legend {
  font-weight: 500;
  padding: 0 4px;
}
.fehler {
  background: #fdecee;
  border: 1px solid var(--rot);
  color: #8a0c20;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0;
}

.kacheln {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}
.kachel {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 44px;
}
.kachel strong {
  font-size: 26px;
  color: var(--blau);
}
.kachel span {
  font-size: 13px;
  color: var(--grau);
}

.liste {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 8px;
}
.liste li {
  border-top: 1px solid var(--linie);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.liste li:first-child {
  border-top: 0;
}
.liste li > a,
.liste li > div {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
}
.liste li > a > div,
.liste li > div > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.liste li > .tels {
  display: flex;
  flex-direction: column;
  padding: 6px 14px;
}
.liste li > a:only-child {
  color: var(--text);
}
.liste li > a[href^=tel],
.tels a {
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.fett span {
  font-weight: 700;
}
.warn {
  color: var(--orange);
}
.notfall {
  color: var(--rot);
  font-weight: 600;
}
b.marke {
  margin-left: 6px;
  font-weight: 600;
}

.reiter {
  display: flex;
  gap: 6px;
}
.reiter a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--linie);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  color: var(--text);
}
.reiter a[aria-current] {
  background: var(--blau);
  border-color: var(--blau);
  color: #fff;
}
.aktionen {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.aktionen form {
  display: contents;
}
.anhaenge {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.anhaenge a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.anhaenge img {
  max-width: 140px;
  max-height: 140px;
  border-radius: 6px;
  border: 1px solid var(--linie);
}

.leiste {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--linie);
  padding-bottom: env(safe-area-inset-bottom);
}
.leiste a {
  flex: 1;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  text-decoration: none;
  color: var(--grau);
  padding: 0 2px;
}
.leiste a[aria-current] {
  color: var(--blau);
  font-weight: 600;
  box-shadow: inset 0 3px 0 var(--blau);
}
@media (min-width:720px) {
  .leiste {
    justify-content: center;
  }
  .leiste a {
    max-width: 140px;
  }
}
