/*
 * Urlaubsbanner der Metzgerei Stollsteimer.
 *
 * Teil 1: .mst-urlaub  – der öffentliche Hinweis oben auf der Startseite.
 * Teil 2: .mst-vac     – die Eingabefelder in der PDF-Verwaltung.
 *
 * Beide Blöcke bringen ihre Farben selbst mit, damit sie im WordPress-Menü,
 * auf /pdf-manager/ und auf der Startseite identisch aussehen. Die Regeln sind
 * bewusst mit dem Block-Namen verschachtelt, damit Theme- und Elementor-Stile
 * (zum Beispiel eigene Abstände für <p>) sie nicht überschreiben.
 */

.mst-urlaub,
.mst-vac {
  --u-green: #006600;
  --u-green-2: #0a5a12;
  --u-green-deep: #0c3b18;
  --u-gold: #b8933f;
  --u-gold-2: #d8b45e;
  --u-cream: #f4f0e6;
  --u-paper: #fbf9f3;
  --u-ink: #22221d;
  --u-ink-soft: #3b3a33;
  --u-muted: #6d6a5e;
  --u-line: #e6e0d1;
  --u-line-2: #d9d2c0;
  --u-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --u-sans: "Mulish", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

.mst-urlaub,
.mst-urlaub *,
.mst-urlaub *::before,
.mst-urlaub *::after,
.mst-vac,
.mst-vac *,
.mst-vac *::before,
.mst-vac *::after {
  box-sizing: border-box;
}

/* ---------------------------------------------------------------
 * 1. Öffentliches Banner
 * --------------------------------------------------------------- */

.mst-urlaub.mst-urlaub {
  width: 100%;
  padding: clamp(26px, 3.6vw, 42px) 0;
  color: var(--u-ink);
  background:
    radial-gradient(circle at 12% 0, rgba(184, 147, 63, .22), transparent 44%),
    linear-gradient(180deg, var(--u-paper), var(--u-cream));
  border-top: 3px solid var(--u-gold);
  border-bottom: 1px solid var(--u-line);
  font-family: var(--u-sans);
  font-size: 16px;
  line-height: 1.6;
}

.mst-urlaub .mst-urlaub__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.mst-urlaub .mst-urlaub__inner {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
}

.mst-urlaub .mst-urlaub__head {
  min-width: 0;
}

.mst-urlaub .mst-urlaub__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 11px;
  color: var(--u-green);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mst-urlaub .mst-urlaub__eyebrow::before {
  flex: 0 0 auto;
  width: 28px;
  height: 2px;
  background: var(--u-gold);
  content: "";
}

.mst-urlaub .mst-urlaub__title {
  margin: 0;
  color: var(--u-green-deep);
  font-family: var(--u-serif);
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.05;
}

.mst-urlaub .mst-urlaub__sub {
  margin: 12px 0 0;
  color: var(--u-ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}

.mst-urlaub .mst-urlaub__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(198px, 1fr));
  gap: 14px;
  min-width: 0;
}

.mst-urlaub .mst-urlaub__item {
  min-width: 0;
  padding: 15px 17px;
  background: #fff;
  border: 1px solid var(--u-line);
  border-left: 3px solid var(--u-green);
  border-radius: 0 6px 6px 0;
  box-shadow: 0 14px 30px -24px rgba(28, 26, 15, .6);
}

/* Ist nur ein Ort im Urlaub, soll die einzelne Karte nicht über die ganze
 * Breite gezogen werden. */
.mst-urlaub .mst-urlaub__item:only-child {
  max-width: 340px;
}

.mst-urlaub .mst-urlaub__label {
  margin: 0 0 9px;
  color: var(--u-green);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.mst-urlaub .mst-urlaub__range {
  display: grid;
  gap: 4px;
  margin: 0;
}

.mst-urlaub .mst-urlaub__range > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.mst-urlaub .mst-urlaub__range dt {
  flex: 0 0 26px;
  margin: 0;
  color: var(--u-muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.9;
  text-transform: uppercase;
}

.mst-urlaub .mst-urlaub__range dd {
  min-width: 0;
  margin: 0;
  color: var(--u-green-deep);
  font-family: var(--u-serif);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
}

.mst-urlaub .mst-urlaub__note {
  grid-column: 1 / -1;
  margin: clamp(15px, 2vw, 22px) 0 0;
  padding: 13px 17px;
  color: #4a3b12;
  background: rgba(216, 180, 94, .2);
  border-left: 3px solid var(--u-gold);
  border-radius: 0 5px 5px 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .mst-urlaub .mst-urlaub__inner {
    align-items: start;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .mst-urlaub .mst-urlaub__range dd {
    font-size: 18px;
  }
}

/* ---------------------------------------------------------------
 * 2. Eingabefelder in der Verwaltung
 * --------------------------------------------------------------- */

.mst-vac.mst-vac {
  margin: 26px 0 0;
  padding: clamp(20px, 3vw, 30px);
  color: var(--u-ink);
  background: #fff;
  border: 1px solid var(--u-line-2);
  border-radius: 10px;
  box-shadow: 0 18px 44px -34px rgba(28, 26, 15, .55);
  font-family: var(--u-sans);
  font-size: 15px;
  line-height: 1.6;
}

.mst-vac.is-live {
  border-color: #9bc49a;
  box-shadow: inset 0 4px 0 var(--u-green), 0 18px 44px -34px rgba(28, 26, 15, .55);
}

.mst-vac .mst-vac__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--u-line);
}

.mst-vac .mst-vac__intro {
  max-width: 620px;
  min-width: 0;
}

.mst-vac .mst-vac__eyebrow {
  margin: 0 0 6px;
  color: var(--u-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.mst-vac .mst-vac__head h2 {
  margin: 0 0 8px;
  padding: 0;
  color: var(--u-green-deep);
  font-family: var(--u-serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.mst-vac .mst-vac__intro p {
  margin: 0;
  color: var(--u-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.mst-vac .mst-vac__switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 17px;
  background: var(--u-paper);
  border: 1px solid var(--u-line);
  border-radius: 8px;
  cursor: pointer;
}

.mst-vac.is-live .mst-vac__switch {
  background: #eef8ed;
  border-color: #9bc49a;
}

.mst-vac .mst-vac__switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.mst-vac .mst-vac__switch-box {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 27px;
  background: #c2baa6;
  border-radius: 99px;
  transition: background .18s ease;
}

.mst-vac .mst-vac__switch-box::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  content: "";
  transition: transform .18s ease;
}

.mst-vac .mst-vac__switch input:checked + .mst-vac__switch-box {
  background: var(--u-green);
}

.mst-vac .mst-vac__switch input:checked + .mst-vac__switch-box::after {
  transform: translateX(21px);
}

.mst-vac .mst-vac__switch input:focus-visible + .mst-vac__switch-box {
  outline: 3px solid rgba(184, 147, 63, .65);
  outline-offset: 3px;
}

.mst-vac .mst-vac__switch-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.mst-vac .mst-vac__switch-text strong {
  color: var(--u-green-deep);
  font-size: 15px;
  font-weight: 800;
}

.mst-vac .mst-vac__switch-text small {
  color: var(--u-muted);
  font-size: 12.5px;
}

.mst-vac .mst-vac__hint {
  margin: 18px 0 0;
  padding: 12px 15px;
  border: 1px solid;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.mst-vac .mst-vac__hint--warn {
  color: #7a4b10;
  background: #fdf5e7;
  border-color: #e3c68a;
}

.mst-vac .mst-vac__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.mst-vac .mst-vac__field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.mst-vac .mst-vac__field--wide {
  margin-top: 20px;
}

.mst-vac .mst-vac__field label {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--u-ink-soft);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.3;
}

.mst-vac .mst-vac__field label span {
  color: var(--u-muted);
  font-weight: 500;
}

.mst-vac input[type="text"],
.mst-vac input[type="date"],
.mst-vac textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 9px 12px;
  color: var(--u-ink);
  background: #fff;
  border: 1.5px solid var(--u-line-2);
  border-radius: 6px;
  box-shadow: none;
  font-family: var(--u-sans);
  font-size: 15px;
  line-height: 1.4;
}

.mst-vac textarea {
  min-height: 68px;
  resize: vertical;
}

.mst-vac input[type="text"]:focus,
.mst-vac input[type="date"]:focus,
.mst-vac textarea:focus {
  outline: none;
  border-color: var(--u-green);
  box-shadow: 0 0 0 3px rgba(0, 102, 0, .13);
}

.mst-vac .mst-vac__rows {
  margin-top: 26px;
}

.mst-vac .mst-vac__rows-title {
  margin: 0 0 3px;
  color: var(--u-green-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.mst-vac .mst-vac__rows-lede {
  margin: 0 0 14px;
  color: var(--u-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.mst-vac .mst-vac__row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 118px;
  align-items: end;
  gap: 13px;
  padding: 14px;
  background: var(--u-paper);
  border: 1px solid #ece7da;
  border-radius: 8px;
}

.mst-vac .mst-vac__row + .mst-vac__row {
  margin-top: 10px;
}

.mst-vac .mst-vac__row.is-filled {
  background: #fff;
  border-color: var(--u-line-2);
}

.mst-vac .mst-vac__row-no {
  display: grid;
  width: 26px;
  height: 26px;
  margin-bottom: 9px;
  place-items: center;
  color: var(--u-muted);
  background: #fff;
  border: 1px solid var(--u-line);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.mst-vac .mst-vac__row.is-filled .mst-vac__row-no {
  color: #fff;
  background: var(--u-green);
  border-color: var(--u-green);
}

.mst-vac .mst-vac__state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-bottom: 7px;
  padding: 5px 10px;
  color: var(--u-muted);
  background: #f1eee5;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
}

.mst-vac .mst-vac__state[data-state="running"] {
  color: #114d18;
  background: #dff0dd;
}

.mst-vac .mst-vac__state[data-state="upcoming"] {
  color: #6b4d0d;
  background: #f6ead0;
}

.mst-vac .mst-vac__state[data-state="expired"] {
  color: #5c5952;
  background: #e7e4da;
}

.mst-vac .mst-vac__state[data-state="reversed"] {
  color: #812b20;
  background: #fbe3de;
}

.mst-vac .mst-vac__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  color: var(--u-ink-soft);
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.5;
}

.mst-vac .mst-vac__check input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  accent-color: var(--u-green);
}

.mst-vac .mst-vac__preview {
  margin-top: 24px;
  padding: 15px;
  background: var(--u-paper);
  border: 1px dashed var(--u-line-2);
  border-radius: 9px;
}

.mst-vac .mst-vac__preview-title {
  margin: 0 0 12px;
  color: var(--u-muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.mst-vac .mst-vac__preview-frame {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--u-line);
  border-radius: 6px;
}

.mst-vac .mst-vac__preview-frame .mst-urlaub {
  border-top-width: 3px;
  border-bottom: 0;
}

@media (max-width: 860px) {
  .mst-vac .mst-vac__row {
    grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .mst-vac .mst-vac__row > .mst-vac__field:first-of-type {
    grid-column: 2 / -1;
  }

  .mst-vac .mst-vac__row-no {
    margin-bottom: 0;
    grid-row: span 2;
  }

  .mst-vac .mst-vac__state {
    grid-column: 2 / -1;
    justify-self: start;
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
  .mst-vac .mst-vac__switch {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mst-vac .mst-vac__switch-box,
  .mst-vac .mst-vac__switch-box::after {
    transition: none;
  }
}
