body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: #FBFBF9;
  border-bottom: 1px solid #D4D1CA;
}
.marke { font-size: 13px; letter-spacing: 0.4px; color: #5A5852; font-weight: bold; }
h1 { margin: 2px 0 0; font-size: 22px; line-height: 1.15; font-weight: bold; }
.stand { margin: 2px 0 0; font-size: 14px; color: #5A5852; font-weight: normal; }
.hinweis {
  font-size: 14px;
  color: #01696F;
  border: 1px solid #D4D1CA;
  background: #FFFFFF;
  padding: 8px 12px;
  white-space: nowrap;
}
.buehne { position: relative; flex: 1; min-height: 0; }
#karte { position: absolute; inset: 0; }
.karte { display: flex; flex-direction: column; flex: 1; min-height: 520px; }
.laden {
  position: absolute;
  z-index: 2;
  left: 24px;
  top: 16px;
  background: #FBFBF9;
  border: 1px solid #D4D1CA;
  padding: 10px 14px;
  font-size: 14px;
}
.laden[hidden] { display: none; }
.tafel {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  width: 280px;
  max-height: calc(100% - 32px);
  overflow: auto;
  background: #FBFBF9;
  border: 1px solid #D4D1CA;
  padding: 14px 14px 12px;
  contain: paint;
}
.tafel-knopf { display: none; }
.tafel h2 { margin: 0 0 8px; font-size: 15px; }
.ebene {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  font-size: 15px;
}
.ebene input { width: 18px; height: 18px; accent-color: #01696F; }
.strich { width: 22px; height: 4px; border-radius: 2px; flex: none; }
.wahl { display: flex; gap: 6px; margin: 0 0 12px; }
.wahl button {
  flex: 1;
  border: 1px solid #D4D1CA;
  background: #FFFFFF;
  color: #28251D;
  padding: 6px 8px;
  min-height: 36px;
  cursor: pointer;
}
.wahl button[aria-pressed="true"] { border-color: #01696F; color: #01696F; font-weight: bold; }
.punkt { width: 10px; height: 10px; margin: 0 6px; border-radius: 50%; background: #FFFFFF; border: 1.5px solid #333333; flex: none; }
.sprung { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.sprung button, .treffer button {
  border: 1px solid #D4D1CA;
  background: #FFFFFF;
  color: #28251D;
  padding: 6px 8px;
  cursor: pointer;
  min-height: 36px;
}
.sprung button:hover, .treffer button:hover { border-color: #01696F; }
label.suche { display: block; margin-top: 12px; font-size: 13px; color: #5A5852; font-weight: bold; }
input[type="search"] {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #D4D1CA;
  background: #FFFFFF;
  color: #28251D;
}
.treffer { list-style: none; margin: 6px 0 0; padding: 0; }
.treffer button { width: 100%; text-align: left; }
.legende { margin-top: 14px; padding-top: 10px; border-top: 1px solid #D4D1CA; }
.legende p, .quellen { margin: 0 0 6px; font-size: 13px; color: #5A5852; }
.stufe { display: flex; align-items: center; gap: 8px; font-size: 13px; min-height: 22px; }
.quellen { margin-top: 10px; }
.detail {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 360px;
  background: #FBFBF9;
  border: 1px solid #01696F;
  padding: 14px 14px 12px;
}
.detail[hidden] { display: none; }
.detail h2 { margin: 0 36px 4px 0; font-size: 18px; }
.detail p { margin: 0 0 6px; font-size: 14px; }
.detail .klein { color: #5A5852; font-size: 13px; overflow-wrap: break-word; }
.schliessen {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #28251D;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
@media (max-width: 720px) {
  .kopf {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas: "marke titel . hinweis" "stand stand stand stand";
    align-items: baseline;
    column-gap: 8px;
    row-gap: 2px;
    padding: 6px 12px 7px;
  }
  .kopf > div:first-child { display: contents; }
  .marke { grid-area: marke; font-size: 12px; }
  h1 { grid-area: titel; margin: 0; font-size: 18px; }
  .stand { grid-area: stand; margin: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hinweis { grid-area: hinweis; align-self: center; font-size: 12px; padding: 2px 8px; }
  .karte { min-height: 0; }
  body { height: 100vh; height: 100dvh; min-height: 0; }
  .tafel-knopf {
    display: block;
    position: absolute;
    z-index: 3;
    top: 8px;
    left: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #D4D1CA;
    background: #FBFBF9;
    color: #28251D;
    font-weight: bold;
    cursor: pointer;
  }
  .tafel-knopf[aria-expanded="true"] { border-color: #01696F; color: #01696F; }
  .tafel { display: none; left: 8px; right: 8px; width: auto; top: 56px; max-height: calc(100% - 64px); }
  .tafel.offen { display: block; }
  .detail { left: 8px; right: 8px; width: auto; top: auto; bottom: 8px; max-height: 45%; overflow: auto; }
}
.feld { display: block; margin: 8px 0 3px; font-size: 13px; color: #5A5852; font-weight: bold; }
.tafel select, .tafel input[type="search"] {
  width: 100%; min-height: 38px; padding: 6px 8px; border: 1px solid #D4D1CA;
  background: #FFFFFF; color: #28251D; font: inherit; font-size: 15px; margin: 0;
}
.tafel select:disabled { color: #9A978F; background: #F3F2EE; }
.suchfeld { position: relative; }
.treffer { position: absolute; left: 0; right: 0; top: 100%; z-index: 4; margin: 2px 0 0; background: #FFFFFF; border: 1px solid #D4D1CA; max-height: 260px; overflow: auto; }
.treffer[hidden] { display: none; }
.treffer li button { border: 0; border-bottom: 1px solid #EDEBE6; width: 100%; text-align: left; padding: 7px 10px; background: #FFFFFF; cursor: pointer; font-size: 14px; }
.treffer li button[aria-selected="true"], .treffer li button:hover { background: #E8F2F1; }
.treffer .zusatz { display: block; font-size: 12px; color: #5A5852; }
.treffer .leer { padding: 7px 10px; font-size: 14px; color: #5A5852; }
.sprung button { flex: 1; }
h2.abstand { margin-top: 14px; padding-top: 10px; border-top: 1px solid #D4D1CA; }
@media (max-width: 720px) {
  .kopf { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "marke titel hinweis" "stand stand stand"; }
  h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
