:root {
  --a-ink: #262523;
  --a-muted: #5d5a54;
  --a-card: #f7f5f1;
  --a-night: #2f2e2c;
  --a-gold: #cba82c;
  --a-gold-ink: #7a5f0c;
  --a-line: #cfc9be;
  --a-note: #fbf3c8;
  --a-stop: #f6d7d3;
  --a-stop-ink: #8f1d12;
  --a-ok: #dcebd6;
  --a-ok-ink: #2f6b3a;
  --display: 'Rokkitt', 'Rockwell', Georgia, serif;
}

.anfrage [hidden],
.anfrage-seite [hidden],
.anfrage-dialog-hg[hidden],
.anfrage-dialog [hidden] {
  display: none !important;
}

body.schrifttest h1,
body.schrifttest h2,
body.schrifttest h3,
body.schrifttest h4,
body.schrifttest h5,
body.schrifttest h6,
body.schrifttest .nav-link,
body.schrifttest .dropdown-link,
body.schrifttest .h1-button,
body.schrifttest .button-3,
body.schrifttest .button-4,
.anfrage-seite h1,
.anfrage-seite h2 {
  font-family: var(--display);
}

.schriftwahl {
  background-color: var(--a-night);
  color: #ece9e3;
  border-radius: 8px;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 24px;
  padding: 10px 14px;
  font-size: 14px;
  display: flex;
}

.schriftwahl span {
  color: #bdb8ae;
  font-weight: 600;
}

.schriftwahl button {
  color: #ece9e3;
  cursor: pointer;
  background: none;
  border: 1px solid #6b675f;
  border-radius: 999px;
  min-height: 34px;
  padding: 4px 12px;
  font-size: 16px;
}

.schriftwahl button[aria-pressed="true"] {
  background-color: var(--a-gold);
  border-color: var(--a-gold);
  color: #1d1b16;
}

.anfrage {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 4em;
  font-size: 16px;
  line-height: 1.55;
  color: var(--a-ink);
}

.anfrage p {
  font-size: 1em;
  line-height: 1.55;
}

.anfrage a:hover,
.anfrage-seite a:hover {
  font-weight: inherit;
}

.anfrage :focus-visible,
.anfrage-seite :focus-visible {
  outline: 3px solid var(--a-gold);
  outline-offset: 2px;
}

.anfrage-lead {
  max-width: 60ch;
  color: var(--a-muted);
}

.anfrage fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.anfrage legend {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 1.35em;
  font-weight: 700;
}

.anfrage-typen {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 22px;
  display: grid;
}

.anfrage-typ {
  margin: 0;
  font-weight: 400;
  position: relative;
}

.anfrage-typ input {
  opacity: 0;
  cursor: pointer;
  margin: 0;
  position: absolute;
  inset: 0;
}

.anfrage-typ span {
  text-align: center;
  background-color: #fff;
  border: 2px solid var(--a-line);
  border-radius: 8px;
  padding: 16px 8px;
  font-family: var(--display);
  font-size: 1.25em;
  display: block;
}

.anfrage-typ input:checked + span {
  background-color: var(--a-night);
  border-color: var(--a-night);
  color: #f1ede6;
}

.anfrage-typ input:focus-visible + span {
  outline: 3px solid var(--a-gold);
  outline-offset: 2px;
}

.anfrage-intro {
  margin-bottom: 20px;
}

.anfrage-intro h2 {
  margin-bottom: .4em;
  font-size: 1.9em;
}

.anfrage-intro p {
  max-width: 62ch;
}

.anfrage-fotos {
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
  margin: 14px 0 12px;
  display: grid;
}

.anfrage-fotos img,
.anfrage-foto {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  width: 100%;
  height: 100%;
  display: block;
}

.anfrage-foto {
  color: #f3efe6;
  background: linear-gradient(160deg, #4a3b2a, #1d1915);
  align-items: flex-end;
  padding: 10px;
  font-size: .8em;
  display: flex;
}

.anfrage-zeile {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-size: .95em;
  display: flex;
}

.anfrage-link {
  color: var(--a-gold-ink);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
}

.anfrage-nutzung {
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
  padding: 0;
  list-style: none;
  display: flex;
}

.anfrage-nutzung li {
  background-color: #fff;
  border: 1px solid var(--a-line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .9em;
}

.anfrage-raster {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-bottom: 14px;
  display: grid;
}

.anfrage-raster .breit {
  grid-column: 1 / -1;
}

.anfrage-label,
.anfrage label.anfrage-label {
  margin-bottom: 4px;
  font-size: .92em;
  font-weight: 600;
  display: block;
}

.anfrage-feld {
  background-color: #fff;
  border: 1px solid #b9b3a7;
  border-radius: 6px;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  font-size: 16px;
}

textarea.anfrage-feld {
  resize: vertical;
  min-height: 100px;
}

.anfrage-klein {
  color: var(--a-muted);
  margin: 4px 0 0;
  font-size: .85em;
}

.anfrage-fehler {
  color: var(--a-stop-ink);
  margin: 6px 0;
  font-weight: 600;
}

.anfrage-kalender {
  background-color: #fff;
  border: 1px solid #b9b3a7;
  border-radius: 8px;
  padding: 10px;
}

.anfrage-kalkopf {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  display: flex;
}

.anfrage-kalkopf b {
  font-family: var(--display);
  font-size: 1.2em;
}

.anfrage-nav {
  background-color: var(--a-card);
  border: 1px solid var(--a-line);
  cursor: pointer;
  border-radius: 6px;
  min-width: 44px;
  min-height: 38px;
  font-size: 18px;
}

.anfrage-nav:disabled {
  opacity: .35;
  cursor: default;
}

.anfrage-tage {
  text-align: center;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  display: grid;
}

.anfrage-wt {
  color: var(--a-muted);
  padding: 2px 0;
  font-size: .75em;
}

.anfrage-tag {
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  background: none;
  border: 1px solid #0000;
  border-radius: 6px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 2px 0;
  font-size: 15px;
  line-height: 1.05;
  display: flex;
}

.anfrage-tag:hover:not(:disabled) {
  background-color: var(--a-card);
  border-color: var(--a-line);
}

.anfrage-tag small {
  color: var(--a-muted);
  font-size: 10px;
}

.anfrage-tag.we {
  font-weight: 600;
}

.anfrage-tag.grenze small {
  color: var(--a-gold-ink);
  font-weight: 600;
}

.anfrage-tag:disabled {
  color: #a9a397;
  cursor: not-allowed;
}

.anfrage-tag.zu,
.anfrage-tag.zu:disabled {
  background-color: #f4dedb;
  color: var(--a-stop-ink);
}

.anfrage-tag.zu small {
  color: var(--a-stop-ink);
}

.anfrage-tag.offline {
  background-color: #dfdbd4;
  color: #5d5a54;
  cursor: help;
}

.anfrage-tag.offline small {
  color: #5d5a54;
}

.anfrage-tag.gewaehlt {
  background-color: var(--a-night);
  border-color: var(--a-night);
  color: #f3efe6;
}

.anfrage-tag.gewaehlt small {
  color: #e3d49b;
}

.anfrage-tag.heute {
  box-shadow: inset 0 0 0 1px var(--a-gold);
}

.anfrage-legende {
  color: var(--a-muted);
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 8px 0 0;
  font-size: .8em;
  display: flex;
}

.anfrage-muster {
  vertical-align: -2px;
  border-radius: 3px;
  width: 13px;
  height: 13px;
  margin-right: 6px;
  display: inline-block;
}

.anfrage-muster.zu {
  background-color: #f4dedb;
  border: 1px solid #d9aaa3;
}

.anfrage-muster.offline {
  background-color: #dfdbd4;
  border: 1px solid #b9b3a7;
}

.anfrage-kalhinweis {
  margin: 8px 0 0;
}

.anfrage-datum {
  min-height: 1.5em;
  margin-top: 6px;
  font-weight: 700;
}

.anfrage-regel {
  background-color: var(--a-note);
  border-radius: 8px;
  margin: 2px 0 14px;
  padding: 12px 14px;
}

.anfrage-regel-stopp {
  background-color: var(--a-stop);
  color: var(--a-stop-ink);
  font-weight: 600;
}

.anfrage-check {
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 16px;
  font-size: .95em;
  font-weight: 400;
  display: flex;
}

.anfrage-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.anfrage-knopf {
  background-color: var(--a-night);
  color: #f3efe6;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  min-height: 48px;
  padding: 10px 26px;
  font-family: var(--display);
  font-size: 1.25em;
  line-height: 1.4;
  text-decoration: none;
  display: inline-block;
}

.anfrage-knopf:hover {
  color: #fff;
  text-decoration: none;
}

.anfrage-knopf:disabled {
  cursor: not-allowed;
  background-color: #a6a196;
}

.anfrage-knopf.leer {
  color: var(--a-ink);
  background: none;
  border: 1px solid #8e897f;
}

.anfrage-knopf.klein {
  min-height: 40px;
  padding: 6px 16px;
  font-size: 1.05em;
}

.anfrage-knopf.gruen {
  background-color: var(--a-ok-ink);
}

.anfrage-knopf.rot {
  background-color: var(--a-stop-ink);
}

.anfrage-knopf.gold {
  background-color: var(--a-gold-ink);
}

body.aktion {
  --aktion: var(--a-night);
  --aktion-hell: #e3ded4;
  border-top: 12px solid var(--aktion);
}

body.aktion-vorlaeufig {
  --aktion: var(--a-gold-ink);
  --aktion-hell: var(--a-note);
}

body.aktion-bestaetigen {
  --aktion: var(--a-ok-ink);
  --aktion-hell: var(--a-ok);
}

body.aktion-ablehnen {
  --aktion: var(--a-stop-ink);
  --aktion-hell: var(--a-stop);
}

.aktion h1 {
  color: var(--aktion);
}

.aktion .anfrage-knopf {
  background-color: var(--aktion);
}

.aktion .anfrage-daten {
  border-left: 6px solid var(--aktion);
}

.aktion-marke {
  background-color: var(--aktion-hell);
  color: var(--aktion);
  border-radius: 999px;
  margin-bottom: 12px;
  padding: 3px 12px;
  font-size: .9em;
  font-weight: 600;
  display: inline-block;
}

.anfrage-stoerung {
  background-color: var(--a-stop);
  border-radius: 6px;
  margin-bottom: 1.5em;
  padding: 12px 16px;
}

.anfrage-falle {
  position: absolute;
  left: -9999px;
}

.anfrage-dialog-hg {
  z-index: 2000;
  background: #14120fa0;
  justify-content: center;
  align-items: center;
  padding: 16px;
  display: flex;
  position: fixed;
  inset: 0;
}

.anfrage-dialog {
  background-color: var(--a-card);
  color: var(--a-ink);
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  max-height: calc(100% - 32px);
  padding: 26px 26px 22px;
  font-size: 16px;
  line-height: 1.55;
  overflow: auto;
  box-shadow: 0 24px 60px #00000059;
}

.anfrage-dialog h2 {
  margin-bottom: .5em;
  font-size: 1.7em;
}

.anfrage-dialog p,
.anfrage-dialog li {
  font-size: 1em;
}

.anfrage-dialog ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.anfrage-dialog li {
  margin-bottom: 6px;
}

.anfrage-dialog .anfrage-konditionen {
  margin: 4px 0 16px;
  padding: 0;
  list-style: none;
}

.anfrage-konditionen > li {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-bottom: 16px;
  display: grid;
}

.anfrage-konditionen strong {
  margin-bottom: 2px;
  display: block;
}

.anfrage-symbol {
  background-color: var(--a-note);
  color: var(--a-gold-ink);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  display: flex;
}

.anfrage-symbol svg {
  width: 22px;
  height: 22px;
}

.anfrage-dialog .anfrage-preise {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.anfrage-preise li {
  font-variant-numeric: tabular-nums;
  border-bottom: 1px dotted var(--a-line);
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 4px 0;
  display: flex;
}

.anfrage-preise b {
  white-space: nowrap;
}

.anfrage-verbindlich {
  background-color: var(--a-note);
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 12px 14px;
  font-weight: 600;
}

.anfrage-aktionen {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
}

.anfrage-seite {
  background-color: #ebe8e2;
  color: var(--a-ink);
}

.anfrage-schale {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  font-size: 16px;
  line-height: 1.55;
}

.anfrage-schale p {
  font-size: 1em;
  line-height: 1.55;
}

.anfrage-schale h1 {
  font-size: 2.4em;
}

.anfrage-schale h2 {
  font-size: 1.6em;
}

.anfrage-aktion textarea {
  margin-bottom: 8px;
}

.anfrage-daten {
  background-color: #fff;
  border: 1px solid var(--a-line);
  border-radius: 8px;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 16px;
  margin: 14px 0 18px;
  padding: 14px 16px;
  display: grid;
}

.anfrage-daten dt {
  color: var(--a-muted);
}

.anfrage-daten dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-weight: 600;
}

.anfrage-status {
  white-space: nowrap;
  background-color: #e3ded4;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: .8em;
  font-weight: 600;
  display: inline-block;
}

.anfrage-status.offen {
  background-color: #dfe6f2;
  color: #24406e;
}

.anfrage-status.vorlaeufig {
  background-color: var(--a-note);
  color: var(--a-gold-ink);
}

.anfrage-status.bestaetigt {
  background-color: var(--a-ok);
  color: var(--a-ok-ink);
}

.anfrage-status.abgelehnt {
  background-color: var(--a-stop);
  color: var(--a-stop-ink);
}

.anfrage-status.offline {
  background-color: #dfdbd4;
  color: #4a4741;
}

.verw-kopf {
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  display: flex;
}

.verw-block {
  background-color: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: 10px;
  margin-top: 18px;
  padding: 18px 20px;
}

.verw-leise {
  color: var(--a-muted);
  font-size: .9em;
}

.verw-liste,
.verw-eintraege {
  margin: 0;
  padding: 0;
  list-style: none;
}

.verw-liste li {
  border-bottom: 1px solid var(--a-line);
  padding: 10px 0;
}

.verw-liste summary {
  cursor: pointer;
  line-height: 1.6;
}

.verw-knoepfe {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.verw-eintraege li {
  font-variant-numeric: tabular-nums;
  border-bottom: 1px dashed var(--a-line);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  display: flex;
}

.verw-eintraege li span:first-child {
  flex: 1;
}

.verw-tabelle {
  border-collapse: collapse;
}

.verw-tabelle th {
  text-align: left;
  padding: 4px 16px 4px 0;
  font-weight: 600;
}

.verw-tabelle td {
  padding: 4px 16px 4px 0;
}

.verw-zeile {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  display: flex;
}

.verw-block select,
.verw-block input[type="date"],
.verw-block input[type="number"] {
  background-color: #fff;
  border: 1px solid #b9b3a7;
  border-radius: 6px;
  min-height: 40px;
  padding: 4px 8px;
  font-size: 16px;
}

.verw-block input[type="number"] {
  width: 80px;
}

.verw-block label {
  font-weight: 400;
  display: inline;
}

@media screen and (max-width: 560px) {
  .anfrage-typen,
  .anfrage-raster {
    grid-template-columns: minmax(0, 1fr);
  }

  .anfrage-raster .breit {
    grid-column: auto;
  }

  .anfrage-fotos {
    grid-template-columns: 1fr 1fr;
  }

  .anfrage-fotos > :first-child {
    grid-column: 1 / -1;
  }

  .anfrage-schale {
    padding-top: 28px;
  }

  .anfrage-schale h1 {
    font-size: 2em;
  }

  .anfrage-daten {
    grid-template-columns: minmax(0, 1fr);
  }

  .anfrage-daten dd {
    margin-bottom: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anfrage *,
  .anfrage-seite * {
    transition: none !important;
  }
}

.balken {
  background: #e3ded4;
  border-radius: 6px;
  flex: 1;
  min-width: 90px;
  height: 12px;
  display: flex;
  overflow: hidden;
}

.balken i {
  height: 100%;
  display: block;
}

.balken.stufe-frei i {
  --stufe: var(--a-ok-ink);
}

.balken.stufe-knapp i {
  --stufe: var(--a-gold);
}

.balken.stufe-voll i {
  --stufe: var(--a-stop-ink);
}

.balken .b {
  background: var(--stufe);
}

.balken .x {
  background: repeating-linear-gradient(135deg, var(--stufe) 0 5px, transparent 5px 9px);
  box-shadow: inset 0 0 0 1px var(--stufe);
}

.verw-belegung {
  font-variant-numeric: tabular-nums;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.verw-belegung > li {
  border-bottom: 1px dashed var(--a-line);
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  display: flex;
}

.verw-belegung > li > details {
  flex: 1;
}

.verw-belegung summary {
  cursor: pointer;
  align-items: center;
  gap: 12px;
  display: flex;
}

.verw-belegung > li.zu {
  color: var(--a-muted);
}

.verw-tag {
  white-space: nowrap;
  width: 7.5em;
}

.verw-zahl {
  white-space: nowrap;
  min-width: 8.5em;
}

.verw-zahl .offen {
  color: var(--a-gold-ink);
  font-size: .9em;
}

.verw-res {
  margin: 8px 0 4px;
  padding: 0 0 0 7.5em;
  list-style: none;
}

.verw-res li {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 4px 0;
  display: flex;
}

.verw-res li span:nth-child(3) {
  flex: 1;
}

.verw-hand {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  display: flex;
}

.verw-hand label {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.verw-hand label.breit {
  flex: 1 1 14em;
}

.verw-hand input[type="text"],
.verw-hand input[type="tel"] {
  background-color: #fff;
  border: 1px solid #b9b3a7;
  border-radius: 6px;
  min-height: 40px;
  padding: 4px 8px;
  font-size: 16px;
}

.verw-hand p {
  margin: 0;
}

.aktion-belegung {
  background: var(--a-card);
  border-radius: 8px;
  margin: 18px 0;
  padding: 12px 16px;
}

.aktion-belegung p {
  margin: 6px 0;
}

.aktion-belegung .balken {
  height: 14px;
  display: flex;
}

@media (max-width: 600px) {
  .verw-tag {
    width: auto;
  }

  .verw-res {
    padding-left: 0;
  }

  .verw-belegung summary {
    flex-wrap: wrap;
  }
}
