/* ==========================================================================
   Aktionsleiste oben: Service und Kontakt
   Fünf schmale Varianten, alle nicht fixiert. Die Leiste ist ein Hinweisband:
   eine Zeile, 38 px hoch, Symbole wie bei Mainka. Am Handy bleiben nur die
   Symbole übrig, damit die Zeile auch dort schmal bleibt.
   ========================================================================== */

.formular-leiste {
  position: static;
  display: block;
  box-sizing: border-box;
  min-height: 32px;
  padding-block: 5px;
  padding-inline: 0;
  background: #fff;
  border-bottom: 1px solid var(--pro-line);
}

/* Innen sitzt der Inhalt auf derselben Kante wie der Kopf: gleiche
   Höchstbreite, zentriert, derselbe Innenabstand. */
.formular-leiste__innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  max-width: var(--pro-page);
  margin: 0 auto;
  padding-inline: 1rem;
  box-sizing: border-box;
}

.formular-leiste__schnell {
  display: flex;
  gap: 5px;
}

.formular-leiste__symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--pro-line);
  border-radius: 50%;
  color: var(--pro-anthrazit);
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.formular-leiste__symbol svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  /* Strichstärke in Pixeln statt in der Zeichnung: So bleiben die Linien
     auch im kleinen Knopf kräftig und laufen nicht zu dünn aus. */
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.formular-leiste__aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: auto;
}

.formular-leiste__knopf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--pro-line);
  border-radius: 999px;
  background: #F4F4F4;
  font: inherit;
  font-size: 12.5px;
  font-weight: var(--pro-weight-emphasis);
  line-height: 1;
  color: var(--pro-anthrazit);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.formular-leiste__knopf svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.formular-leiste__knopf--haupt {
  border-color: var(--pro-anthrazit);
  background: var(--pro-anthrazit);
  color: #fff;
}

@media (hover: hover) {
  .formular-leiste__symbol:hover {
    border-color: var(--pro-anthrazit);
    background: #F4F4F4;
  }

  .formular-leiste__knopf:hover {
    border-color: var(--pro-anthrazit);
    background: #E8E8E8;
  }

  .formular-leiste__knopf--haupt:hover {
    border-color: #2A2A2A;
    background: #2A2A2A;
  }
}

.formular-leiste__knopf:focus-visible,
.formular-leiste__symbol:focus-visible {
  outline: 2px solid var(--pro-red);
  outline-offset: 2px;
}

/* A · Anthrazit */
.formular-leiste--a { background: var(--pro-anthrazit); border-bottom-color: var(--pro-anthrazit); }
.formular-leiste--a .formular-leiste__symbol { border-color: rgba(255,255,255,0.4); color: #fff; }
.formular-leiste--a .formular-leiste__knopf { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.1); color: #fff; }
.formular-leiste--a .formular-leiste__knopf--haupt { border-color: #fff; background: #fff; color: var(--pro-anthrazit); }

/* B · Sehr dunkles Rot */
.formular-leiste--b { background: #5C0F19; border-bottom-color: #5C0F19; }
.formular-leiste--b .formular-leiste__symbol { border-color: rgba(255,255,255,0.4); color: #fff; }
.formular-leiste--b .formular-leiste__knopf { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.1); color: #fff; }
.formular-leiste--b .formular-leiste__knopf--haupt { border-color: #fff; background: #fff; color: #5C0F19; }

/* C · Zarte Markenrot-Tönung mit grauen Knöpfen */
.formular-leiste--c { background: var(--pro-tint); border-bottom-color: #EADCDD; }
.formular-leiste--c .formular-leiste__symbol { border-color: #DCCBCD; color: var(--pro-red); }
.formular-leiste--c .formular-leiste__knopf { border-color: #DEDEDE; background: #EDEDED; color: var(--pro-anthrazit); }
.formular-leiste--c .formular-leiste__knopf--haupt { border-color: var(--pro-anthrazit); background: var(--pro-anthrazit); color: #fff; }

/* D · Weiß mit Linie, alles leise (Standard) */
.formular-leiste--d .formular-leiste__knopf--haupt { border-color: var(--pro-red); background: var(--pro-red); }
.formular-leiste--d .formular-leiste__knopf--haupt:hover { border-color: #851726; background: #851726; }

/* E · Hellgrau, ein roter Akzent */
.formular-leiste--e { background: #F2F2F2; border-bottom-color: #E4E4E4; }
.formular-leiste--e .formular-leiste__symbol { border-color: #DDDDDD; background: #fff; }
.formular-leiste--e .formular-leiste__knopf { border-color: #DDDDDD; background: #fff; }
.formular-leiste--e .formular-leiste__knopf--haupt { border-color: var(--pro-red); background: var(--pro-red); color: #fff; }

@media (hover: hover) {
  .formular-leiste--d .formular-leiste__knopf--haupt:hover,
  .formular-leiste--e .formular-leiste__knopf--haupt:hover {
    border-color: #851726;
    background: #851726;
  }
}


/* F · Weiße Knöpfe: Broschüre in Markenrot, Newsletter grau */
.formular-leiste--f .formular-leiste__knopf {
  border-color: var(--pro-line);
  background: #fff;
  color: #8A8A8A;
}

.formular-leiste--f .formular-leiste__knopf--haupt {
  border-color: var(--pro-red);
  background: #fff;
  color: var(--pro-red);
}

@media (hover: hover) {
  .formular-leiste--f .formular-leiste__knopf--haupt:hover {
    border-color: var(--pro-red);
    background: var(--pro-red);
    color: #fff;
  }

  .formular-leiste--f .formular-leiste__knopf:not(.formular-leiste__knopf--haupt):hover {
    border-color: #8A8A8A;
    background: #F4F4F4;
    color: var(--pro-anthrazit);
  }
}

/* G · Weiße Knöpfe, beide grau – nur das Buchsymbol bleibt rot */
.formular-leiste--g .formular-leiste__knopf {
  border-color: var(--pro-line);
  background: #fff;
  color: #8A8A8A;
}

.formular-leiste--g .formular-leiste__knopf--haupt {
  border-color: var(--pro-line);
  background: #fff;
  color: var(--pro-anthrazit);
}

.formular-leiste--g .formular-leiste__knopf--haupt svg {
  stroke: var(--pro-red);
}

@media (hover: hover) {
  .formular-leiste--g .formular-leiste__knopf:hover {
    border-color: var(--pro-anthrazit);
    background: #F4F4F4;
    color: var(--pro-anthrazit);
  }
}


/* H · Dunkelgrau, weiße Knöpfe (rot und grau), ohne Symbolknöpfe links.
   Oben und unten nur 1 pt Luft – die Leiste ist damit so hoch wie die
   Knöpfe plus einen Hauch. */
.formular-leiste--h {
  min-height: 0;
  padding-block: 1px;
  background: var(--pro-anthrazit);
  border-bottom-color: var(--pro-anthrazit);
}

.formular-leiste--h .formular-leiste__innen { justify-content: flex-end; }

.formular-leiste--h .formular-leiste__aktionen {
  margin-left: 0;
}

.formular-leiste--h .formular-leiste__knopf {
  height: 26px;
  border-color: #fff;
  background: #fff;
  color: #8A8A8A;
}

.formular-leiste--h .formular-leiste__knopf--haupt {
  border-color: #fff;
  background: #fff;
  color: var(--pro-red);
}

@media (hover: hover) {
  .formular-leiste--h .formular-leiste__knopf--haupt:hover {
    border-color: var(--pro-red);
    background: var(--pro-red);
    color: #fff;
  }

  .formular-leiste--h .formular-leiste__knopf:not(.formular-leiste__knopf--haupt):hover {
    background: #E6E6E6;
    color: var(--pro-anthrazit);
  }
}

.formular-leiste--h .formular-leiste__knopf:focus-visible {
  outline-color: #fff;
}


/* I · Weiß mit Linie wie D, aber: Newsletter links (grau gefüllt, weiße
   Schrift), Broschüre rechts (rot gefüllt). Oben und unten 1 pt mehr Rand
   als bei der schmalsten Fassung, Knöpfe bleiben bei 24 px. */
.formular-leiste--i {
  min-height: 0;
  /* Oben und unten gleich viel Luft, damit die Knöpfe mittig im Band sitzen. */
  padding-block: 5px;
  background: #F2F2F2;
  /* Ohne Trennlinie: Das Band schließt glatt an den weißen Kopf an. */
  border-bottom: 0;
}

.formular-leiste--i .formular-leiste__innen { justify-content: flex-end; }

.formular-leiste--i .formular-leiste__aktionen {
  flex-direction: row-reverse;
  margin-left: 0;
}

.formular-leiste--i .formular-leiste__knopf {
  height: 28px;
  /* Dieselbe Rundung wie die Reisekategorien. */
  border-radius: 4px;
  border-color: var(--pro-anthrazit);
  background: var(--pro-anthrazit);
  color: #fff;
}

.formular-leiste--i .formular-leiste__knopf--haupt {
  border-radius: 4px;
  border-color: var(--pro-red);
  background: var(--pro-red);
  color: #fff;
}

@media (hover: hover) {
  .formular-leiste--i .formular-leiste__knopf--haupt:hover {
    border-color: #851726;
    background: #851726;
  }

  .formular-leiste--i .formular-leiste__knopf:not(.formular-leiste__knopf--haupt):hover {
    border-color: #2A2A2A;
    background: #2A2A2A;
  }
}

/* Am Handy bleiben nur die Symbole übrig. Die Fläche wächst nur so weit wie
   nötig, das Symbol selbst füllt sie: kein breiter Rand um ein kleines Icon. */
@media (max-width: 640px) {
  .formular-leiste--i .formular-leiste__knopf {
    width: 32px;
    height: 32px;
    border-radius: 4px;
  }

  .formular-leiste--i .formular-leiste__knopf svg {
    width: 19px;
    height: 19px;
  }
}

/* Am Handy: nur die Symbole, eine einzige schmale Zeile. */
/* Einspaltig gilt dieselbe Kopfbreite wie im Header (940 px), damit die
   Knöpfe rechts auf derselben Kante enden wie Logo und Menü. */
@media (max-width: 1099.98px) {
  .formular-leiste__innen { max-width: 940px; }
}

@media (max-width: 640px) {
  .formular-leiste__innen {
    justify-content: flex-end;
    gap: 8px;
  }

  .formular-leiste__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .formular-leiste__knopf {
    width: 32px;
    padding: 0;
    justify-content: center;
  }

  .formular-leiste__knopf svg {
    width: 19px;
    height: 19px;
  }

  .formular-leiste__aktionen {
    margin-left: 0;
  }
}

.formular-dialog {
  width: min(710px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: white;
  box-shadow: 0 18px 48px rgb(30 20 23 / 22%);
  overscroll-behavior: contain;
}

.formular-dialog--breit { width: min(850px, calc(100% - 32px)); }
.formular-dialog::backdrop { background: rgb(30 20 23 / 55%); }
html:has(.formular-dialog[open]) { overflow: hidden; }

/* Kopf des Dialogs: ein kräftiges Band in der hellen Markenrot-Tönung, darin
   rechts das Schließen – gleich weit von oben, rechts und unten. */
.formular-dialog__kopf {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 56px;
  padding: 0 10px;
  background: var(--pro-tint);
}

.formular-dialog__kopf button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pro-red);
  cursor: pointer;
}

.formular-dialog__kopf button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

@media (hover: hover) {
  /* Kein aufgehellter Kreis – nur die Farbe geht tiefer, wie überall sonst. */
  .formular-dialog__kopf button:hover,
  .formular-dialog__kopf button:focus-visible {
    background: transparent;
    color: #851726;
  }
}

.formular-dialog:focus { outline: none; }

.formular-dialog__inhalt { padding: clamp(16px, 4vw, 36px); }
.formular-karte h2 {
  margin: 0 0 14px;
  font-family: "Noto Serif", serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--pro-red);
}

.formular-karte h3 {
  margin: 0 0 12px;
  font-family: "Noto Serif", serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--pro-red);
}

.formular-kontakt {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

.formular-kontakt .formular-karte {
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius-field);
  background: #fff;
}

.formular-reise { padding: 12px 16px; border-left: 3px solid var(--pro-red); background: #F7F7F7; }

/* Nach dem Absenden: nur die Bestätigung, ohne Formulartitel und Einleitung. */
.formular-karte.ist-ergebnis > h2,
.formular-karte.ist-ergebnis > p {
  display: none;
}
.formular-hinweis {
  /* Rechtstext: zwei Stufen kleiner als der Fließtext. */
  font-size: .78em;
  color: var(--pro-small);
}

/* Eigener Abschnitt unter der Einleitung: der Bestellhinweis, fett. */
.formular-einleitung--betont {
  margin-top: 10px;
}

/* Der Rechtstext unter den Feldern bekommt Luft zum letzten Feld. */
.formular-felder + .formular-hinweis,
.formular > .formular-hinweis {
  margin-top: 18px;
}

.formular-zusatz { margin-top: 22px; }

.formular-hinweis a { color: var(--pro-red); }

/* Der Pflichtfelderhinweis steht links unten, auf einer Höhe mit dem
   Absenden-Knopf. Der Knopf bleibt dabei mittig. */
.formular-abschluss {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
}

.formular-hinweis--pflicht {
  grid-column: 1;
  justify-self: start;
  /* Unterkante genau auf der Unterkante des Absenden-Knopfs. */
  align-self: end;
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  color: #9A9A9A;
}

.formular-abschluss > .btn {
  grid-column: 2;
  margin: 0;
}

.formular-aktionen > .formular-hinweis--pflicht {
  display: none;
}

/* Fehlerhinweis: über dem betroffenen Feld, Feld selbst rot umrandet. */
.formular-feld.ist-fehler > span { color: var(--pro-red); }

/* Doppelt so kräftig, ohne dass das Feld springt. */
.formular-feld.ist-fehler input,
.formular-feld.ist-fehler select,
.formular-feld.ist-fehler textarea {
  border-color: var(--pro-red);
  box-shadow: inset 0 0 0 1px var(--pro-red);
}

.feld-fehler {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: var(--pro-weight-emphasis);
  line-height: 1.3;
  color: var(--pro-red);
}

/* Absenden steht mittig unter dem Formular. */
.formular > .btn[type="submit"] {
  display: block;
  margin-inline: auto;
}
.formular-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 22px; }
.formular-feld { display: grid; gap: 4px; min-width: 0; }

/* Beschriftung wie im Reisefinder: klein, Versalien, Markenrot. */
.formular-feld > span {
  font-size: 11px;
  font-weight: var(--pro-weight-emphasis);
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--pro-red);
}

.pflicht {
  font-style: normal;
  color: #9A9A9A;
}
.formular-feld--breit { grid-column: 1 / -1; }

.formular-feld :is(input, select, textarea),
.formular-zimmer select {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  min-width: 0;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius-field);
  background: white;
  color: inherit;
  font: inherit;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

/* Auswahlfelder ohne System-Grau: eigener Pfeil in Markenrot, wie im
   Reisefinder – dieselbe Formensprache auf der ganzen Seite. */
.formular-feld select,
.formular-zimmer select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A01D2D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px 15px;
  cursor: pointer;
}

.formular-feld select:focus-visible,
.formular-zimmer select:focus-visible,
.formular-feld input:focus-visible,
.formular-feld textarea:focus-visible {
  outline: none;
  border-color: var(--pro-red);
}

.formular-feld textarea { resize: vertical; }
.formular-zusatz {
  min-width: 0;
  margin: 20px 0 12px;
  padding: 12px clamp(12px, 2.5vw, 20px) 16px;
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius-field);
}

.formular-zusatz legend {
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 6px;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: var(--pro-weight-emphasis);
  line-height: 1.35;
  text-align: center;
  color: var(--pro-red);
}

.formular-zusatz p {
  /* Newsletter-Text: genauso klein wie der Rechtstext darunter. */
  font-size: .78em;
  color: var(--pro-small);
}

.formular-check--fett span { font-weight: var(--pro-weight-emphasis); }

.formular-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-block: 6px;
}

.formular-check input { flex: 0 0 auto; margin: 4px 0 0; accent-color: var(--pro-red); width: 18px; height: 18px; }
.formular-zimmer label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px; border-bottom: 1px solid var(--pro-line-soft); }
.formular-zimmer select { width: 68px; flex: 0 0 auto; }
.formular-aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 12px; }
.formular-karte .btn { white-space: normal; text-align: center; cursor: pointer; }
.formular-summe { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 12px 16px; background: #F7F7F7; font-weight: var(--pro-weight-emphasis); }
.formular-summe output { color: var(--pro-red); }
.formular-uebersicht div { padding-block: 6px; border-bottom: 1px solid var(--pro-line-soft); }
.formular-uebersicht dt { font-weight: var(--pro-weight-emphasis); }
.formular-uebersicht dd { margin-left: 0; overflow-wrap: anywhere; }
.formular-hinweis--vorschau { margin-top: 14px; font-size: 12px; color: #9A9A9A; }

/* Der Fokus springt nach dem Absenden auf die Überschrift – ohne sichtbaren Kasten. */
.formular-ergebnis h3:focus { outline: none; }

.formular-ergebnis { padding-top: 12px; }
.formular-karte :focus-visible, .formular-dialog__kopf button:focus-visible { outline: 2px solid var(--pro-red); outline-offset: 2px; }
.formular-karte [hidden] { display: none; }

@media (max-width: 720px) {
  .formular-kontakt { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .formular-leiste { justify-content: center; }
  .formular-leiste button { padding-inline: 7px; font-size: 13px; }
  .formular-dialog,
  .formular-dialog--breit { width: 100%; min-height: 100dvh; max-height: 100dvh; margin: 0; }
  .formular-felder { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Vergleichsseite der Leisten-Varianten ---------- */

/* Auf der Vergleichsseite steht die Leiste nur in den Bühnen – die echte
   Seitenleiste darüber würde den Vergleich doppeln. */
body:has(.leistenvergleich) > .formular-leiste { display: none; }

.vgl-intro {
  max-width: 70ch;
  margin: 0 0 28px;
}

.vgl {
  margin: 0 0 44px;
}

.vgl__titel {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--pro-red);
}

.vgl__text {
  max-width: 70ch;
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--pro-small);
}

/* Die Bühne zeigt Leiste und Kopf so, wie sie auf einer echten Seite stehen:
   ohne Rahmen, ohne Abstand dazwischen. */
.vgl__buehne {
  border: 1px solid var(--pro-line);
  background: #fff;
}

/* Handy-Bühne: zeigt die Leiste in Handybreite, damit die Symbol-Fassung
   sichtbar wird. */
.vgl__buehne--handy {
  max-width: 390px;
}

/* ---------- Newsletter-Bestätigungsseite ---------- */

.newsletter-bestaetigung {
  max-width: 620px;
  margin: clamp(18px, 4vw, 44px) auto;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius-field);
  background: #fff;
}

.newsletter-bestaetigung h1 {
  margin: 0 0 14px;
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--pro-red);
}

.newsletter-bestaetigung h1:focus {
  outline: none;
}

.newsletter-bestaetigung p {
  margin: 0 0 14px;
}

.newsletter-bestaetigung__status:empty {
  display: none;
}

.newsletter-bestaetigung .formular-aktionen {
  margin: 22px 0 0;
}
