/* Veranstaltung – single-veranstaltungen.php und Bausteine aus template-parts/events/ */

/* Eckdaten (Zeit, Ort, Kosten) */
.rf-event-meta {
  --rf-icon-contrast: var(--rf-color);
  margin: 0;
  padding: 0;
  list-style: none;
}
.rf-event-meta li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 14px;
  font-size: 18px;
  line-height: 1.4;
}
.rf-event-meta svg {
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.rf-event-speaker {
  color: inherit;
}

/* Datum als Kasten */
.rf-event-date {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 150px;
  height: 143px;
  font-size: 22px;
  line-height: 1.25;
}
.rf-event-date strong {
  font-size: 36px;
  line-height: 1.2;
}

/* Kopf */
.rf-event-hero {
  /* Bezug für 100cqw: volle Breite ohne Scrollleiste */
  container-type: inline-size;
  --image-height: 730px;
  --box-top: 405px;
  --box-width: 56%;
  --on-color: var(--white);
  position: relative;
  height: var(--image-height);
  color: var(--on-color);
}
.rf-color-cyan .rf-event-hero,
.rf-color-green .rf-event-hero,
.rf-event-card.rf-color-cyan,
.rf-event-card.rf-color-green {
  --on-color: var(--navy);
}
/* Desktop: Das Bild beginnt direkt unter der Stufe des Headers */
@media (min-width: 992px) {
  .rf-event-hero {
    margin-top: -30px;
  }
}
.rf-event-hero--image {
  position: absolute;
  inset: 0;
  background-color: var(--grey);
}
.rf-event-hero--image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.rf-event-hero--box {
  position: absolute;
  left: 0;
  bottom: 0;
  box-sizing: border-box;
  width: var(--box-width);
  min-height: calc(var(--image-height) - var(--box-top));
  padding: 55px 190px 45px calc(max((100cqw - 1500px) / 2, 0px) + 50px);
  background-color: var(--rf-color);
}
.rf-event-hero h1 {
  margin: 0 0 20px;
  font-size: 40px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
}
.rf-event-hero .rf-event-speaker {
  margin-bottom: 20px;
}
.rf-event-hero .rf-event-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 10px 30px;
}
.rf-event-hero--aside {
  position: absolute;
  left: calc(var(--box-width) - 100px);
  top: calc(var(--box-top) - 27px);
  z-index: 1;
}
.rf-event-hero--aside .rf-event-date {
  margin-bottom: 27px;
  background-color: var(--royal);
  color: var(--white);
}
.rf-color-royal .rf-event-hero--aside .rf-event-date {
  background-color: var(--navy);
}
.rf-event-hero--aside .btn-wrapper {
  margin: 0;
}
.rf-container.rf-event--crumbs {
  --heading-color: var(--navy);
  padding-top: 40px;
}
.rf-event--crumbs .rf-breadcrumbs {
  margin-bottom: 0;
}
.rf-event--past {
  margin: 25px 0 0;
  color: var(--navy);
  font-weight: 700;
}

/* Text aus dem Editor mit Kreisen rechts */
/* Kreise ragen nach oben ins Kopfbild, unten enden sie am Formular, rechts am Seitenrand */
.rf-event--main {
  position: relative;
  z-index: 1;
}
.rf-event--bubbles {
  position: absolute;
  top: -24.2vw;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  color: var(--rf-color);
  pointer-events: none;
}
.rf-event--bubbles svg {
  position: absolute;
  top: 0;
  height: auto;
}
.rf-event--bubbles-desktop {
  left: 69.8%;
  width: 82.75%;
}
.rf-event--bubbles-mobile {
  display: none;
}
.rf-event--body {
  min-height: 500px;
  padding: 60px 0 110px;
}
/* schmaler als die Kreise: die beginnen bei 70% der Seitenbreite */
.rf-event--text {
  position: relative;
  z-index: 1;
  max-width: min(800px, 62%);
  padding-left: 55px;
  color: var(--navy);
}
.rf-event--text h2 {
  margin: 45px 0 20px;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
}
.rf-event--text h2:first-child {
  margin-top: 0;
}
.rf-event--text p {
  color: var(--navy);
  margin-bottom: 22px;
}
.rf-event--text a {
  color: inherit;
  text-decoration: underline;
}
.rf-event--wide {
  padding-top: 40px;
}

/* Anmeldung */
.rf-event-signup {
  /* Bezug für 100cqw: volle Breite ohne Scrollleiste */
  container-type: inline-size;
  position: relative;
  scroll-margin-top: 140px;
  background: linear-gradient(90deg, var(--royal) 52.4%, transparent 52.4%);
  color: var(--white);
}
.rf-event-signup .wpcf7-form {
  display: grid;
  grid-template-columns: 52.4% 47.6%;
}
.rf-event-signup .wpcf7-form > .hidden-fields-container {
  display: none;
}
.rf-event-signup .wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 0 !important;
  padding: 15px calc(max((100cqw - 1500px) / 2, 0px) + 50px) !important;
  border: 0 !important;
  background-color: var(--royal);
  color: var(--white);
}
.rf-event-form--left {
  padding: 70px 70px 70px calc(max((100cqw - 1500px) / 2, 0px) + 50px);
}
.rf-event-form--right {
  margin-top: 150px;
  padding: 60px calc(max((100cqw - 1500px) / 2, 0px) + 50px) 60px 60px;
  background-color: #5a6ba6;
}
.rf-event-signup h2 {
  margin-bottom: 35px;
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
}
.rf-event-signup h3 {
  margin: 0 0 15px;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
}
.rf-event-signup p {
  color: var(--white);
}
.rf-event-signup .rf-form-hint,
.rf-event-signup .rf-form-small {
  font-size: 13px;
  line-height: 1.6;
}
.rf-event-signup .rf-form-hint {
  margin-top: -10px;
}
.rf-event-signup a {
  color: inherit;
  text-decoration: underline;
}
.rf-event-signup select {
  max-width: 400px;
  padding-right: 45px;
}
.rf-event-signup input[type=submit] {
  background-color: var(--royal);
  color: var(--white);
}
.rf-event-signup input[type=submit]:hover {
  background-color: var(--navy);
}

@media (max-width: 1399px) {
  .rf-event-hero {
    --image-height: 640px;
    --box-top: 300px;
    --box-width: 66%;
  }
  .rf-event-hero h1 {
    font-size: 32px;
  }
  .rf-event-hero--box {
    padding-right: 130px;
  }
  .rf-event-form--left {
    padding-right: 40px;
  }
  .rf-event-form--right {
    padding-left: 40px;
  }
}
@media (max-width: 991px) {
  .rf-event-hero {
    height: auto;
    background-color: var(--rf-color);
  }
  .rf-event-hero--image {
    position: relative;
    height: 56vw;
  }
  .rf-event-hero--box {
    position: static;
    width: 100%;
    min-height: 0;
    padding: 40px 50px 30px;
  }
  .rf-event-hero--aside {
    position: static;
    padding: 0 50px 40px;
  }
  .rf-event-hero--aside .rf-event-date {
    margin-bottom: 20px;
  }
  .rf-event--text {
    max-width: none;
    padding-left: 0;
  }
  .rf-event--bubbles {
    display: none;
  }
  .rf-event--body {
    min-height: 0;
    padding: 40px 0 60px;
  }
  .rf-event-signup {
    background: var(--royal);
  }
  .rf-event-signup .wpcf7-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .rf-event-form--left {
    padding: 50px 50px 10px;
  }
  .rf-event-form--right {
    margin-top: 0;
    padding: 50px;
  }
  .rf-event-signup h2 {
    font-size: 34px;
  }
}
@media (max-width: 767px) {
  .rf-event-hero--box {
    padding: 35px 25px 25px;
  }
  .rf-event-hero--aside {
    padding: 0 25px 35px;
  }
  .rf-event-hero h1 {
    font-size: 26px;
  }
  .rf-event-form--left {
    padding: 40px 25px 10px;
  }
  .rf-event-form--right {
    padding: 40px 25px;
  }
}

/* Smartphone */
@media (max-width: 767px) {
  /* Kopf: Bild läuft rechts neben der Box weiter, Datum sitzt auf der Kante */
  .rf-event-hero {
    padding-top: 74vw;
    background-color: transparent;
  }
  .rf-event-hero--image {
    position: absolute;
    height: 100%;
  }
  .rf-event-hero--box {
    position: relative;
    width: 92%;
    padding: 50px 25px 105px;
  }
  .rf-event-hero--aside {
    position: static;
    padding: 0;
  }
  .rf-event-hero--aside .rf-event-date {
    position: absolute;
    z-index: 1;
    top: calc(74vw - 72px);
    right: 8%;
    width: 105px;
    height: 100px;
    margin: 0;
    font-size: 18px;
  }
  .rf-event-hero--aside .rf-event-date strong {
    font-size: 26px;
  }
  .rf-event-hero--aside .btn {
    position: absolute;
    z-index: 1;
    bottom: 36px;
    left: 25px;
  }

  /* Text läuft um die Kreise herum */
  .rf-container.rf-event--crumbs {
    position: relative;
    z-index: 1;
    padding-top: 25px;
  }
  .rf-event--bubbles {
    display: block;
    top: -9vw;
  }
  .rf-event--bubbles-desktop {
    display: none;
  }
  .rf-event--bubbles-mobile {
    display: block;
    right: 0;
    width: 31.82%;
  }
  .rf-event--text {
    padding-left: 0;
  }
  .rf-event--text::before {
    content: "";
    float: right;
    width: 30vw;
    height: calc(66vw - 90px);
  }
  .rf-event--text h2 {
    font-size: 26px;
  }

  /* Anmeldung */
  .rf-event-signup h3 {
    font-size: 24px;
  }
  .rf-event-signup select {
    max-width: none;
  }
  .rf-event-signup input[type=submit] {
    background-color: var(--white);
    color: var(--navy);
  }
  .rf-event-signup input[type=submit]:hover {
    background-color: var(--light-blue);
  }
}
