/* =====================================================================
 * RailTime – page-spezifisches Redesign fuer Kontakt / Contact.
 *
 * Das vorhandene LMZ-Markup bleibt Inhalts- und Funktionsquelle. Diese
 * Schicht uebertraegt die helle, technische Start-/About-Sprache auf die
 * Kontaktseiten. Das Mailto-Formular wird ausschliesslich gestaltet.
 * ===================================================================== */

.is-contact {
  background: #080b10;
}

.is-contact .rt-l3-component {
  background: #f3f2ed;
}

.is-contact .rt-x {
  --contact-ink: #10151b;
  --contact-ink-soft: #56616b;
  --contact-paper: #f3f2ed;
  --contact-paper-soft: #e9ece8;
  --contact-white: #fbfaf6;
  --contact-night: #090c11;
  --contact-panel: #121820;
  --contact-red: #e4002b;
  --contact-red-dark: #b90d2b;
  --contact-line: rgba(16, 21, 27, .16);
  --contact-line-strong: rgba(16, 21, 27, .3);
  --contact-line-light: rgba(255, 255, 255, .16);
  --contact-edge: max(24px, calc((100vw - 1280px) / 2));

  position: relative;
  overflow: clip;
  background: var(--contact-paper);
  color: var(--contact-ink);
}

/* Kein blockierender Vorhang und keine konkurrierenden Blur-Blobs. */
.is-contact .rt-x__vorhang,
.is-contact .rt-x__blob {
  display: none !important;
}

.is-contact .rt-x__bg {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 calc(8.333vw - 1px),
      rgba(16, 21, 27, .026) calc(8.333vw - 1px) 8.333vw
    ),
    linear-gradient(180deg, #f8f7f3 0 23%, #eff1ed 23% 100%);
  pointer-events: none;
}

.is-contact .rt-x__korn {
  position: absolute;
  inset: -25%;
  opacity: .03;
  mix-blend-mode: multiply;
}

/* --- Typografie ------------------------------------------------------ */

.is-contact .rt-x h1,
.is-contact .rt-x h2,
.is-contact .rt-x h3 {
  color: inherit;
  font-weight: 600;
  text-wrap: balance;
}

.is-contact .rt-x h1 {
  max-width: 14ch;
  font-size: clamp(2.45rem, 4.25vw, 4.45rem);
  line-height: .97;
  letter-spacing: -.054em;
}

.is-contact .rt-x h2 {
  font-size: clamp(1.9rem, 3vw, 3.25rem);
  line-height: 1;
  letter-spacing: -.052em;
}

.is-contact .rt-x__eyebrow {
  gap: 14px;
  margin-bottom: 26px;
  color: var(--contact-red-dark);
  font: 700 .66rem/1.2 "Space Mono", ui-monospace, monospace;
  letter-spacing: .18em;
}

.is-contact .rt-x__eyebrow::before {
  width: 38px;
  height: 2px;
  background: currentColor;
}

.is-contact .rt-x__lead {
  max-width: 61ch;
  color: var(--contact-ink-soft);
  font-size: clamp(1rem, 1.15vw, 1.13rem);
  line-height: 1.75;
}

/* --- Hero ------------------------------------------------------------ */

.is-contact .rt-x__hero {
  position: relative;
  display: grid;
  width: min(100%, 1440px);
  min-height: max(690px, 90svh);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 36px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(132px, 13vh, 172px) clamp(24px, 5.5vw, 80px) clamp(76px, 8vh, 110px);
  border-bottom: 1px solid var(--contact-line);
}

.is-contact .rt-x__hero::before {
  position: absolute;
  top: 76px;
  right: clamp(24px, 5.5vw, 80px);
  left: clamp(24px, 5.5vw, 80px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--contact-red) 0 8%, var(--contact-line) 8% 100%);
}

.is-contact .rt-x__hero::after {
  position: absolute;
  right: clamp(24px, 5.5vw, 80px);
  bottom: 28px;
  content: attr(data-contact-kicker);
  color: rgba(16, 21, 27, .42);
  font: 700 .54rem/1 "Space Mono", ui-monospace, monospace;
  letter-spacing: .18em;
}

.is-contact .rt-x__hero-text {
  position: relative;
  z-index: 2;
  grid-column: 1 / span 6;
  min-width: 0;
  max-width: none;
}

.is-contact .rt-x__hero-text::before {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: -28px;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, var(--contact-red) 0 24%, transparent 24% 100%);
}

.is-contact .rt-x__hero .rt-x__lead {
  max-width: 57ch;
  margin-top: 28px;
}

.is-contact .rt-x__hero-figur {
  position: relative;
  grid-column: 8 / -1;
  width: 100%;
  min-height: clamp(500px, 62vh, 650px);
  margin: 0;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
}

.is-contact .rt-x__hero-figur::before {
  position: absolute;
  z-index: -1;
  top: -18px;
  right: -18px;
  width: 58%;
  height: 42%;
  border-top: 2px solid var(--contact-red);
  border-right: 2px solid var(--contact-red);
  content: "";
}

.is-contact .rt-x__hero-figur::after {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 13px 16px;
  content: attr(data-contact-label);
  background: var(--contact-red);
  color: #fff;
  font: 700 .58rem/1 "Space Mono", ui-monospace, monospace;
  letter-spacing: .15em;
}

.is-contact .rt-x__hero-figur img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.is-contact .rt-x__aktionen {
  gap: 12px;
  margin-top: 38px;
}

.is-contact .rt-x__btn {
  min-height: 50px;
  justify-content: center;
  padding: 0 24px;
  border-radius: 2px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.is-contact .rt-x__btn--voll {
  background: var(--contact-red);
  color: #fff;
  box-shadow: 0 16px 34px rgba(228, 0, 43, .18);
}

.is-contact .rt-x__btn--voll:hover {
  background: #c91432;
}

.is-contact .rt-x__btn--rand {
  border: 0;
  border-bottom: 1px solid rgba(16, 21, 27, .42);
  color: var(--contact-ink);
}

.is-contact .rt-x__btn--rand:hover {
  border-color: var(--contact-red);
  background: transparent;
  color: var(--contact-red-dark);
}

.is-contact .rt-x__btn:focus-visible,
.is-contact .rt-x a:focus-visible {
  outline: 3px solid #ff6b83;
  outline-offset: 4px;
}

/* --- Kennzahlenband -------------------------------------------------- */

/* First-paint-/No-JS-Sicherung: Der Inhalt kommt aus dem bestehenden
   LMZ-Datensatz, ist im neuen Kontaktauftritt aber bewusst entfernt. */
.is-contact .rt-x__zahlen {
  position: relative;
  z-index: 3;
  display: none !important;
  width: min(calc(100% - 48px), 1280px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -1px auto 0;
  border: 0;
  background: var(--contact-night);
  color: #fff;
  box-shadow: 0 30px 80px rgba(9, 12, 17, .18);
}

.is-contact .rt-x__zahl {
  position: relative;
  min-height: 172px;
  padding: 38px clamp(22px, 3vw, 48px) 30px;
  border: 0;
  border-right: 1px solid var(--contact-line-light);
}

.is-contact .rt-x__zahl:last-child {
  border-right: 0;
}

.is-contact .rt-x__zahl::before {
  position: absolute;
  top: 22px;
  right: 22px;
  color: rgba(255, 255, 255, .34);
  font: 700 .52rem/1 "Space Mono", ui-monospace, monospace;
  letter-spacing: .15em;
}

.is-contact .rt-x__zahl:nth-child(1)::before { content: "01"; }
.is-contact .rt-x__zahl:nth-child(2)::before { content: "02"; }
.is-contact .rt-x__zahl:nth-child(3)::before { content: "03"; }

.is-contact .rt-x__zahl strong {
  display: block;
  color: #fff;
  font: 700 clamp(2.75rem, 5vw, 5rem)/.9 "Space Mono", ui-monospace, monospace;
  letter-spacing: -.07em;
}

.is-contact .rt-x__zahl:first-child strong {
  color: #ff4262;
}

.is-contact .rt-x__zahl span {
  display: block;
  max-width: 23ch;
  margin-top: 16px;
  color: #aeb7c0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* --- Anfrage und Kontaktdaten --------------------------------------- */

.is-contact .rt-x__section,
.is-contact .rt-contact-request {
  position: relative;
  padding: clamp(104px, 11vw, 164px) var(--contact-edge) clamp(118px, 12vw, 182px);
  border-bottom: 1px solid var(--contact-line);
  background:
    linear-gradient(90deg, transparent 0 calc(50% - .5px), rgba(16, 21, 27, .04) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(180deg, rgba(255, 255, 255, .24), transparent 34%);
}

.is-contact .rt-x__section::before,
.is-contact .rt-contact-request::before {
  position: absolute;
  top: 0;
  right: var(--contact-edge);
  left: var(--contact-edge);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--contact-red) 0 15%, var(--contact-line) 15% 100%);
}

.is-contact .rt-x__section .rt-x__split,
.is-contact .rt-contact-request .rt-x__split {
  display: grid;
  max-width: 1280px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 36px);
  align-items: start;
  margin: 0 auto;
}

.is-contact .rt-x__section .rt-x__fliess,
.is-contact .rt-contact-request .rt-x__fliess {
  grid-column: 1 / span 4;
  min-width: 0;
  padding-top: 8px;
}

.is-contact .rt-x__section .rt-x__fliess h2,
.is-contact .rt-contact-request .rt-x__fliess h2 {
  max-width: 12ch;
  margin-bottom: 28px;
}

.is-contact .rt-x__section .rt-x__split > div:last-child,
.is-contact .rt-contact-request .rt-x__split > div:last-child {
  grid-column: 6 / -1;
  min-width: 0;
}

.is-contact .rt-x__daten {
  margin: 42px 0 0;
  border-bottom: 1px solid var(--contact-line);
}

.is-contact .rt-x__daten > div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(118px, .7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--contact-line);
}

.is-contact .rt-x__daten > div::before {
  position: absolute;
  top: 9px;
  right: 0;
  color: rgba(16, 21, 27, .34);
  font: 700 .48rem/1 "Space Mono", ui-monospace, monospace;
  letter-spacing: .14em;
}

.is-contact .rt-x__daten > div:nth-child(1)::before { content: "01"; }
.is-contact .rt-x__daten > div:nth-child(2)::before { content: "02"; }
.is-contact .rt-x__daten > div:nth-child(3)::before { content: "03"; }

.is-contact .rt-x__daten dt {
  color: var(--contact-ink-soft);
  font: 700 .58rem/1.45 "Space Mono", ui-monospace, monospace;
  letter-spacing: .13em;
}

.is-contact .rt-x__daten dd {
  margin: 0;
  color: var(--contact-ink);
  font-size: clamp(.96rem, 1.1vw, 1.08rem);
  font-weight: 600;
  line-height: 1.55;
}

.is-contact .rt-x__daten dd a {
  text-decoration-color: rgba(228, 0, 43, .42);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.is-contact .rt-x__daten dd a:hover {
  color: var(--contact-red-dark);
}

/* --- Mailto-Formular ------------------------------------------------- */

.is-contact .rt-x__formular {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  padding: clamp(30px, 4vw, 56px);
  border: 1px solid var(--contact-line);
  border-left: 3px solid var(--contact-red);
  border-radius: 2px;
  background:
    linear-gradient(rgba(16, 21, 27, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 21, 27, .025) 1px, transparent 1px),
    var(--contact-white);
  background-size: 28px 28px;
  color: var(--contact-ink);
  box-shadow: 0 34px 90px rgba(35, 48, 53, .12);
}

.is-contact .rt-x__formular > header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--contact-line);
}

.is-contact .rt-x__formular > header b {
  color: var(--contact-red-dark);
  font: 700 .68rem/1.3 "Space Mono", ui-monospace, monospace;
  letter-spacing: .16em;
}

.is-contact .rt-x__formular > header span {
  color: var(--contact-ink-soft);
  font: 600 .67rem/1.4 "Space Mono", ui-monospace, monospace;
}

.is-contact .rt-x__formular label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  color: #34404a;
  font: 700 .68rem/1.4 "Space Mono", ui-monospace, monospace;
  letter-spacing: .055em;
}

.is-contact .rt-x__formular label.voll {
  grid-column: 1 / -1;
}

.is-contact .rt-x__formular input,
.is-contact .rt-x__formular select,
.is-contact .rt-x__formular textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid rgba(16, 21, 27, .2);
  border-radius: 0;
  outline: 0;
  background: rgba(242, 243, 239, .92);
  color: var(--contact-ink);
  font: 500 .92rem/1.45 Manrope, system-ui, sans-serif;
  letter-spacing: 0;
  accent-color: var(--contact-red);
  transition:
    border-color .22s ease,
    background-color .22s ease,
    box-shadow .22s ease;
}

.is-contact .rt-x__formular textarea {
  min-height: 168px;
  resize: vertical;
}

.is-contact .rt-x__formular select {
  cursor: pointer;
}

.is-contact .rt-x__formular option {
  background: #fff;
  color: var(--contact-ink);
}

.is-contact .rt-x__formular input:hover,
.is-contact .rt-x__formular select:hover,
.is-contact .rt-x__formular textarea:hover {
  border-color: rgba(16, 21, 27, .4);
  background: #fff;
}

.is-contact .rt-x__formular input:focus,
.is-contact .rt-x__formular select:focus,
.is-contact .rt-x__formular textarea:focus {
  border-color: var(--contact-red);
  outline: 0;
  background: #fff;
}

.is-contact .rt-x__formular input:focus-visible,
.is-contact .rt-x__formular select:focus-visible,
.is-contact .rt-x__formular textarea:focus-visible {
  border-color: var(--contact-red);
  outline: 3px solid rgba(228, 0, 43, .22);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px var(--contact-red);
}

.is-contact .rt-x__formular .rt-x__btn {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--contact-red);
  cursor: pointer;
}

.is-contact .rt-x__formular .rt-x__btn:active {
  transform: translateY(1px) scale(.995);
}

.is-contact .rt-x__hinweis {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--contact-line);
  color: var(--contact-ink-soft);
  font-size: .76rem;
  line-height: 1.65;
}

.is-contact .rt-x__hinweis a {
  color: var(--contact-red-dark);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* --- Notfallabschluss ------------------------------------------------ */

.is-contact .rt-x__cta,
.is-contact .rt-contact-emergency {
  position: relative;
  display: grid;
  width: min(calc(100% - 48px), 1280px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 36px);
  align-items: stretch;
  margin: clamp(92px, 10vw, 150px) auto clamp(104px, 11vw, 166px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background:
    linear-gradient(110deg, rgba(228, 0, 43, .12), transparent 42%),
    var(--contact-night);
  color: #fff;
  box-shadow: 0 40px 100px rgba(9, 12, 17, .2);
}

.is-contact .rt-x__cta::before,
.is-contact .rt-contact-emergency::before {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 26%;
  height: 3px;
  content: "";
  background: var(--contact-red);
}

.is-contact .rt-x__cta > div,
.is-contact .rt-contact-emergency > div {
  position: relative;
  z-index: 2;
  grid-column: 1 / span 7;
  align-self: center;
  padding: clamp(48px, 6vw, 82px);
}

.is-contact .rt-x__cta .rt-x__eyebrow {
  color: #ff6b83;
}

.is-contact .rt-x__cta h2 {
  max-width: 13ch;
}

.is-contact .rt-x__cta .rt-x__lead {
  max-width: 54ch;
  margin-top: 24px;
  color: #aeb7c0;
}

.is-contact .rt-x__cta .rt-x__btn--voll {
  box-shadow: 0 18px 42px rgba(228, 0, 43, .25);
}

.is-contact .rt-x__cta figure,
.is-contact .rt-contact-emergency figure {
  position: relative;
  grid-column: 8 / -1;
  min-height: 470px;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

.is-contact .rt-x__cta figure::after {
  position: absolute;
  right: 18px;
  bottom: 14px;
  content: "24 / 7";
  color: rgba(255, 255, 255, .78);
  font: 700 .62rem/1 "Space Mono", ui-monospace, monospace;
  letter-spacing: .2em;
}

.is-contact .rt-x__cta img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  filter: none;
  scale: 1;
}

.is-contact .rt-x__cta figure::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--contact-night), transparent 32%);
  pointer-events: none;
}

/* --- Responsive ------------------------------------------------------ */

@media (max-width: 1080px) {
  .is-contact .rt-x__hero-text {
    grid-column: 1 / span 7;
  }

  .is-contact .rt-x__hero-figur {
    grid-column: 8 / -1;
    min-height: 520px;
  }

  .is-contact .rt-x__section .rt-x__fliess,
  .is-contact .rt-contact-request .rt-x__fliess {
    grid-column: 1 / span 5;
  }

  .is-contact .rt-x__section .rt-x__split > div:last-child,
  .is-contact .rt-contact-request .rt-x__split > div:last-child {
    grid-column: 6 / -1;
  }
}

@media (max-width: 900px) {
  .is-contact .rt-x__hero {
    min-height: auto;
    align-items: start;
    padding-top: 138px;
  }

  .is-contact .rt-x__hero-text,
  .is-contact .rt-x__hero-figur {
    grid-column: 1 / -1;
  }

  .is-contact .rt-x__hero-figur {
    min-height: 430px;
    margin-top: 28px;
  }

  .is-contact .rt-x__hero-figur img {
    object-position: center;
  }

  .is-contact .rt-x__section .rt-x__split,
  .is-contact .rt-contact-request .rt-x__split {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .is-contact .rt-x__section .rt-x__fliess,
  .is-contact .rt-contact-request .rt-x__fliess,
  .is-contact .rt-x__section .rt-x__split > div:last-child,
  .is-contact .rt-contact-request .rt-x__split > div:last-child {
    grid-column: 1 / -1;
  }

  .is-contact .rt-x__section .rt-x__fliess,
  .is-contact .rt-contact-request .rt-x__fliess {
    max-width: 680px;
  }

  .is-contact .rt-x__cta,
  .is-contact .rt-contact-emergency {
    grid-template-columns: 1fr;
  }

  .is-contact .rt-x__cta > div,
  .is-contact .rt-contact-emergency > div,
  .is-contact .rt-x__cta figure,
  .is-contact .rt-contact-emergency figure {
    grid-column: 1 / -1;
  }

  .is-contact .rt-x__cta figure,
  .is-contact .rt-contact-emergency figure {
    min-height: 380px;
  }

  .is-contact .rt-x__cta figure::before {
    background: linear-gradient(180deg, var(--contact-night), transparent 25%);
  }
}

@media (max-width: 640px) {
  .is-contact .rt-x {
    --contact-edge: 20px;
  }

  .is-contact .rt-x h1 {
    max-width: 15ch;
    font-size: clamp(2.25rem, 9.8vw, 3rem);
    line-height: .98;
  }

  .is-contact .rt-x h2 {
    font-size: clamp(1.7rem, 7.8vw, 2.3rem);
  }

  .is-contact .rt-x__hero {
    gap: 26px;
    padding: 118px 20px 62px;
  }

  .is-contact .rt-x__hero::before {
    top: 82px;
    right: 20px;
    left: 20px;
  }

  .is-contact .rt-x__hero::after {
    right: 20px;
    bottom: 20px;
    font-size: .47rem;
  }

  .is-contact .rt-x__hero-text::before {
    left: -12px;
    width: 2px;
  }

  .is-contact .rt-x__hero .rt-x__lead {
    margin-top: 22px;
  }

  .is-contact .rt-x__aktionen {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .is-contact .rt-x__btn {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
  }

  .is-contact .rt-x__hero-figur {
    min-height: 320px;
    margin: 12px 0 20px;
  }

  .is-contact .rt-x__hero-figur::before {
    top: -10px;
    right: -8px;
  }

  .is-contact .rt-x__hero-figur::after {
    padding: 10px 12px;
    font-size: .5rem;
  }

  .is-contact .rt-x__zahlen {
    width: calc(100% - 24px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .is-contact .rt-x__zahl {
    min-height: 126px;
    padding: 31px 10px 20px;
  }

  .is-contact .rt-x__zahl::before {
    top: 13px;
    right: 10px;
    font-size: .42rem;
  }

  .is-contact .rt-x__zahl strong {
    font-size: clamp(1.7rem, 9vw, 2.45rem);
  }

  .is-contact .rt-x__zahl span {
    margin-top: 11px;
    font-size: .56rem;
    line-height: 1.4;
    letter-spacing: .035em;
  }

  .is-contact .rt-x__section,
  .is-contact .rt-contact-request {
    padding: 90px 20px 104px;
  }

  .is-contact .rt-x__section::before,
  .is-contact .rt-contact-request::before {
    right: 20px;
    left: 20px;
  }

  .is-contact .rt-x__daten {
    margin-top: 34px;
  }

  .is-contact .rt-x__daten > div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .is-contact .rt-x__daten > div::before {
    top: 12px;
  }

  .is-contact .rt-x__daten dd {
    padding-right: 28px;
  }

  .is-contact .rt-x__formular {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 25px 20px 24px;
  }

  .is-contact .rt-x__formular > header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
  }

  .is-contact .rt-x__formular label,
  .is-contact .rt-x__formular label.voll,
  .is-contact .rt-x__formular .rt-x__btn,
  .is-contact .rt-x__hinweis {
    grid-column: 1 / -1;
  }

  .is-contact .rt-x__formular input,
  .is-contact .rt-x__formular select,
  .is-contact .rt-x__formular textarea {
    min-height: 52px;
    font-size: 16px;
  }

  .is-contact .rt-x__cta,
  .is-contact .rt-contact-emergency {
    width: calc(100% - 24px);
    margin: 78px auto 92px;
  }

  .is-contact .rt-x__cta > div,
  .is-contact .rt-contact-emergency > div {
    padding: 42px 22px 46px;
  }

  .is-contact .rt-x__cta figure,
  .is-contact .rt-contact-emergency figure {
    min-height: 270px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-contact .rt-x *,
  .is-contact .rt-x *::before,
  .is-contact .rt-x *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* --- Kontaktformular: Serverversand ------------------------------------- *
 * Gehoert zu js/rt-kontakt-formular.js. Vorher trug das Formular ein
 * mailto-Ziel; die drei neuen Bausteine kommen mit dem Serverversand dazu.
 * ----------------------------------------------------------------------- */

/* Honigtopf. MUSS unsichtbar sein - ohne diese Regel steht ein leeres
   Textfeld mitten im Formular. Nicht display:none: manche Ausfuellhilfen
   ueberspringen versteckte Felder, und genau das Ausfuellen ist hier das
   Erkennungsmerkmal. */
.is-contact .rt-x__falle {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Die Meldungsvorraete werden nur vom Skript gelesen. */
.is-contact .rt-x__meldungen {
  display: none !important;
}

/* Mit dem Formular qualifiziert: die allgemeine Label-Regel der Seite
   stapelt ihre Kinder, der Haken saesse sonst ueber dem Text statt daneben. */
.is-contact .rt-x__formular label.rt-x__zustimmung {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
  font-size: .82rem;
  line-height: 1.55;
  text-transform: none;
  letter-spacing: 0;
}

.is-contact .rt-x__formular label.rt-x__zustimmung > span {
  flex: 1 1 auto;
}

.is-contact .rt-x__zustimmung input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--contact-red, #e4002b);
}

.is-contact .rt-x__status {
  min-height: 1.4em;
  margin: 0;
  font-size: .84rem;
  line-height: 1.5;
}

.is-contact .rt-x__status[data-art="laeuft"] {
  color: #5c6773;
}

.is-contact .rt-x__status[data-art="fertig"] {
  color: #0f7a3d;
  font-weight: 650;
}

.is-contact .rt-x__status[data-art="fehler"] {
  color: #b1001f;
  font-weight: 650;
}

/* Felder, die der Server bemaengelt hat. */
.is-contact .rt-x__formular [aria-invalid="true"] {
  border-color: #b1001f;
  box-shadow: 0 0 0 2px rgba(228, 0, 43, .16);
}
