.flug > * {
}

.flug.is-style-max-width,
.flug .wp-block-group__inner-container,
.hotel.is-style-max-width,
.hotel .wp-block-group__inner-container {
  max-width: 100% !important;
  width: 80rem !important;
  margin: 0 auto !important;
  box-sizing: border-box;
}

.flug
  .wp-block-group__inner-container
  > *:not(:first-child):not(:nth-child(2)) {
  margin-top: 6rem;
  padding-bottom: 4rem;
}

.flug .is-style-max-width > .wp-block-group__inner-container {
  margin: 0 auto;
}

.flug .is-layout-constrained .wp-block-group .wp-block-group__inner-container {
  margin-left: auto !important;
}

.flug .flug-details {
  padding: clamp(1.5rem, 3vw, 5rem);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: -2px 2px 32px 0px rgba(17, 17, 17, 0.08);
  margin: 2rem 0;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.flug .flug-details > * {
  width: 100%;
  gap: 4rem;
}

.flug .flug-details figure {
  flex-shrink: 0;
}

.flug .flug-departure {
  max-width: 32rem;
  width: 100%;
}

.flug .flug-departure > div:not(:first-child):not(:last-child) {
  max-width: 100%;
  position: relative;
}

.flug .flug-departure > div:not(:first-child):not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% - 35px);
  height: 1px;
  background-color: #0c3654;
}

.flug .flug-departure > div:not(:first-child):not(:last-child) div {
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.flug .flug-departure > div:not(:first-child):not(:last-child) figure {
  right: 0 !important;
  position: absolute !important;
}

.flug .flug-departure > div:first-child,
.flug .flug-departure > div:last-child {
  width: 6rem;
  max-width: 100%;
  transform: translateX(0);
  padding-left: 0 !important;
  gap: 0;
}

.hotel .wp-block-columns {
  margin-top: 1.5rem;
}

.hotel > * {
  padding: clamp(1.5rem, 3vw, 5rem) !important;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: -2px 2px 32px 0px rgba(17, 17, 17, 0.08);
}

.hotel .wp-block-columns {
}

.hotel .hotel-right {
  gap: 2rem;
  display: flex;
  flex-direction: column;
}

.hotel .hotel-right > * {
  gap: 1rem;
}

.flug .is-style-outline a {
  background-color: white !important;
  border: 1px solid #0c3654;
}

.flug .is-style-outline a:hover {
  background-color: white !important;
}

.hotel .wp-element-button {
  width: 20rem;
  max-width: 100%;
}

.wp-block-group.is-style-max-width {
  padding-right: 15px;
  padding-left: 15px;
}

@media screen and (max-width: 1250px) {
  .hotel .wp-block-group:has(.wp-element-button) {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 900px) {
  .hotel .wp-element-button {
    width: 100%;
  }
  .flug .flug-departure {
    flex-direction: column-reverse;
  }

  .flug .flug-departure > div {
    width: 100% !important;
    transform: none !important;
    position: relative;
    left: auto;
    right: auto;
  }
	
  .flug .flug-departure > div:not(:first-child):not(:last-child) {
	margin-top: 0.5rem;
    margin-bottom: 3.5rem;
  }

  .flug .flug-departure > div:not(:first-child):not(:last-child) figure {
    position: relative;
    right: auto;
	transform: translateY(-45%);
  }
	
	.flug .flug-departure>div:not(:first-child):not(:last-child) div {
		transform: translateX(-75%);
	}
	
	.flug .flug-details>div *:nth-child(1) {
		margin-top: 0.2rem;
	}	

  .hotel .wp-block-columns {
    flex-direction: column;
  }

  .hotel > * {
    padding: 1.5rem !important;
  }

  .hotel .hotel-right {
    margin-top: 1.5rem;
  }

  .flug .flug-details > * {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "top-left top-right"
      "middle middle"
      "bottom bottom";
    gap: 1rem;
  }

  .flug .flug-details > div *:nth-child(1) {
    grid-area: top-right;
    order: 2;
    justify-content: flex-end;
    display: flex;
  }

  .flug .flug-details > div *:nth-child(2) {
    grid-area: top-left;
    order: 1;
    align-items: flex-start;
  }

  .flug .flug-details > div *:nth-child(3) {
    grid-area: middle;
  }

  .flug .flug-details > div *:nth-child(4) {
    grid-area: bottom;
    justify-content: flex-end;
  }
}

.wpforms-field-medium.wpforms-field-row a,
.wpforms-field-label-inline a {
  color: white !important;
}

.pictogramm {
  padding: 0.5rem 1rem;
}

/** Raster **/

.flug .is-layout-grid > * {
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: -2px 2px 32px 0px rgba(17, 17, 17, 0.08);
  padding: 1.5rem;
  position: relative;
  margin-top: 0 !important;
  width: 100%;
}

@media screen and (max-width: 900px) {
  .flug .is-layout-grid {
    display: flex;
    flex-flow: column;
  }
  .flug .is-layout-grid > * {
    flex: 1;
  }

  .flug .is-layout-grid > * img {
    width: 100%;
  }
}

.flug .is-layout-grid .pictogramm {
  position: absolute;
  right: 1.8rem;
  top: 1.8rem;
}

.flug .is-layout-grid ul {
  margin-block: 0.8rem;
  padding-inline: 1.8rem;
}

.flug .test {
  display: none;
}

.logged-in .flug .test {
  display: block;
}
