/*
 * Speiseplan (pages/verpflegung.php), dort mit ?v=filemtime eingebunden.
 * Handgeschrieben, wird nicht aus scss/ kompiliert.
 */

.speiseplan-neu {
  margin-top: 40px;
  font-family: "Roboto", sans-serif;
}

.speiseplan-neu h2 {
  color: #006340;
  margin-bottom: 30px;
}

/* Aktionen */
.speiseplan-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 30px;
  align-items: center;
  margin-bottom: 40px;
}

.speiseplan-aktionen .custom-select {
  width: auto;
  min-width: 130px;
  border: 0;
  border-bottom: 1px solid #99c32e;
  border-radius: 0;
}

.speiseplan-aktionen .btn {
  margin: 0;
  padding: 12px 40px;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.speiseplan-leer {
  font-size: 18px;
}

/* Tabelle */
.speiseplan-tabelle table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 3px;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.speiseplan-tabelle thead th {
  background: #99c32e;
  color: #fff;
  text-align: center;
  font-weight: bold;
  padding: 10px 5px;
  line-height: 1.2;
}

.speiseplan-tabelle thead th.heute {
  background: #006340;
}

.speiseplan-kategorie th {
  background: #f1f6e4;
  color: #006340;
  font-weight: bold;
  padding: 6px 10px;
}

.speiseplan-tabelle td {
  position: relative;
  vertical-align: top;
  padding: 10px 10px 28px;
  font-size: 15px;
  line-height: 1.35;
}

.speiseplan-tabelle td.heute {
  background: #e3efc6;
}

/* Speisen */
.speise-beilagen {
  font-size: 12px;
  color: #4d4c51;
  margin-top: 2px;
}

.speise-info {
  display: none;
  font-size: 12px;
  color: #6b6b70;
}

.speise-beilage {
  display: inline;
}

.speise-beilage + .speise-beilage::before {
  content: ", ";
}

/* Details: global eingeblendet oder für eine einzelne Zelle */
.details-an .speise-info,
.speiseplan-zelle.offen .speise-info {
  display: block;
}

.details-an .speise-beilage,
.speiseplan-zelle.offen .speise-beilage {
  display: block;
  margin-top: 8px;
}

.details-an .speise-beilage + .speise-beilage::before,
.speiseplan-zelle.offen .speise-beilage + .speise-beilage::before {
  content: none;
}

.speiseplan-info {
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid #9a9a9e;
  border-radius: 50%;
  background: #fff;
  color: #6b6b70;
  font: bold 10px/14px Georgia, serif;
  text-align: center;
  cursor: pointer;
}

.speiseplan-info:hover,
.speiseplan-zelle.offen .speiseplan-info {
  border-color: #006340;
  background: #006340;
  color: #fff;
}

.details-an .speiseplan-info {
  display: none;
}

/* Markierung durch gewählte Allergene */
.speise.markiert .speise-name {
  padding: 0 3px;
  background: #fbe3d1;
  border-bottom: 2px solid #e8833a;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.speise-fussnote {
  color: #212529;
}

.speise-fussnote.markiert {
  font-weight: 500;
  color: #c25a17;
}

/* Tagesansicht Smartphone */
.speiseplan-tag {
  margin-bottom: 25px;
}

.speiseplan-tag h3 {
  background: #99c32e;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 15px;
  margin: 0;
}

.speiseplan-tag.heute h3 {
  background: #006340;
}

.speiseplan-tag .speiseplan-zelle {
  position: relative;
  padding: 10px 40px 10px 15px;
  border-bottom: 1px solid #e3efc6;
}

.speiseplan-tag .speiseplan-zelle h4 {
  font-size: 14px;
  font-weight: bold;
  color: #006340;
  margin: 0 0 4px;
}

.speiseplan-tag .speiseplan-info {
  top: 12px;
  bottom: auto;
  right: 15px;
  width: 22px;
  height: 22px;
  font-size: 13px;
  line-height: 20px;
}

/* Legende */
.speiseplan-fussnote {
  font-size: 13px;
  margin: 15px 0 40px;
}

.speiseplan-legende {
  display: none;
}

.details-an .speiseplan-legende {
  display: flex;
}

.speiseplan-legende h3 {
  color: #006340;
  font-size: 20px;
  font-weight: bold;
}

.speiseplan-legende ul {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 30px;
}

.speiseplan-legende li {
  break-inside: avoid;
  margin-bottom: 4px;
  line-height: 1.35;
}

.speiseplan-legende label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 1px 4px;
  font-size: inherit;
  text-transform: none;
  cursor: pointer;
}

.speiseplan-legende input {
  flex: none;
  margin-top: 4px;
}

.speiseplan-legende li.gewaehlt label {
  background: #fbe3d1;
  color: #c25a17;
}

.speiseplan-legende li.gewaehlt input {
  accent-color: #c25a17;
}

.speiseplan-legende li.nicht-vorhanden label {
  color: #a8a8ab;
  cursor: default;
}

.speiseplan-hinweis {
  font-size: 14px;
  color: #6b6b70;
}

@media (max-width: 575.98px) {
  .speiseplan-legende ul {
    columns: 1;
  }
}
