.hwt-expose {
  --d: #1e1e1f;
  --g: #4f4f4f;
  --s: #f8f8f8;
  --l: #ddd;
  width: 100%;
  font-family: "Titillium Web", sans-serif;
  color: var(--d);
}
.hwt-expose * {
  box-sizing: border-box;
}
.content > .inner:has(.hwt-expose) {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}
.hwt-expose-hero {
  display: grid;
  grid-template-columns: 0.86fr 1.55fr;
  background: var(--s);
  margin-bottom: 7rem;
  min-height: 610px;
}
.hwt-expose-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4.5rem;
}
.hwt-expose-eyebrow,
.hwt-expose-kicker {
  text-transform: uppercase;
  letter-spacing: 0.19em;
  font-size: 0.95rem;
  color: #696969;
  margin: 0 0 1rem;
}
.hwt-expose-hero h1 {
  font-size: 3.35rem;
  line-height: 1.1;
  font-weight: 300;
  text-transform: uppercase;
  margin: 0;
}
.hwt-expose-hero hr,
.hwt-expose-heading hr {
  width: 8rem;
  margin: 2rem 0 0;
  border: 0;
  border-top: 1px solid var(--g);
}
.hwt-expose-hero__image {
  margin: 0;
}
.hwt-expose-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hwt-expose-section {
  padding: 0 5rem;
  margin: 0 auto 8rem;
  width: 100%;
  max-width: none;
}
.hwt-expose-heading {
  margin-bottom: 3rem;
}
.hwt-expose-heading h2 {
  font-size: 2.9375rem;
  font-weight: 300;
  text-transform: uppercase;
  margin: 0;
}
.hwt-expose-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--l);
  border-left: 1px solid var(--l);
}
.hwt-expose-fact {
  padding: 2rem;
  border-right: 1px solid var(--l);
  border-bottom: 1px solid var(--l);
  text-align: center;
}
.hwt-expose-fact span,
.hwt-expose-fact strong {
  display: block;
}
.hwt-expose-fact span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777;
}
.hwt-expose-fact strong {
  font-size: 1.4rem;
  font-weight: 400;
}
.hwt-expose-copy,
.hwt-expose-location-section,
.hwt-expose-split {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 4rem;
}
.hwt-expose-richtext {
  font-size: 1.16rem;
  line-height: 1.8;
  text-align: justify;
  hyphens: auto;
  overflow-wrap: break-word;
}
.hwt-expose-split,
.hwt-expose-other {
  background: var(--s);
  padding: 5rem;
}
.hwt-expose-gallery-section {
  width: 100%;
  max-width: none;
}
.hwt-expose-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 150px;
  gap: 16px;
}
.hwt-expose-gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #eee;
  grid-column: span 2;
  grid-row: span 2;
}
.hwt-expose-gallery__item:nth-child(8n + 1),
.hwt-expose-gallery__item:nth-child(8n + 2) {
  grid-column: span 3;
  grid-row: span 2;
}
.hwt-expose-gallery__item:nth-child(8n + 3),
.hwt-expose-gallery__item:nth-child(8n + 4),
.hwt-expose-gallery__item:nth-child(8n + 5) {
  grid-column: span 2;
  grid-row: span 2;
}
.hwt-expose-gallery__item:nth-child(8n + 6) {
  grid-column: span 3;
  grid-row: span 4;
}
.hwt-expose-gallery__item:nth-child(8n + 7),
.hwt-expose-gallery__item:nth-child(8n + 8) {
  grid-column: span 3;
  grid-row: span 2;
}
.hwt-expose-gallery a,
.hwt-expose-gallery picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hwt-expose-gallery img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.hwt-expose-gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 0.7rem 1rem;
  background: rgba(248, 248, 248, 0.9);
  color: #000;
  font-size: 0.95rem;
  line-height: 1.35;
}
.hwt-expose-gallery__caption p {
  margin: 0;
  padding: 0;
}

.hwt-expose-data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}
.hwt-expose-data-grid > div {
  padding: 1.5rem;
  border: 1px solid var(--l);
}
.hwt-expose-data-grid dt {
  text-transform: uppercase;
  color: #777;
}
.hwt-expose-data-grid dd {
  margin: 0;
}
.hwt-expose-floorplan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.hwt-expose-floorplan-grid figure {
  margin: 0;
  padding: 2rem;
  background: var(--s);
}
.hwt-expose-floorplan-grid a {
  display: block;
  cursor: zoom-in;
}
.hwt-expose-floorplan-grid img {
  max-width: 100%;
  height: auto;
}
.hwt-expose-download-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.hwt-expose-download {
  padding: 1.4rem;
  border: 1px solid var(--l);
  color: var(--d);
  text-decoration: none;
  display: flex;
  gap: 1rem;
}
.hwt-expose-contact {
  margin: 0 2rem 3rem;
  padding: 5rem;
  background: var(--g);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}
.hwt-expose-contact h2 {
  font-size: 2.8rem;
  font-weight: 300;
  text-transform: uppercase;
}
.hwt-expose-contact a {
  color: #fff;
}
.hwt-mail-button {
  padding: 0.75em 2em;
  border: 1px solid #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hwt-expose-lightbox {
  position: relative;
  width: min(94vw, 1500px);
  height: 92vh;
  max-height: 92vh;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #111;
  color: #fff;
}
.hwt-expose-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}
.hwt-expose-lightbox[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.hwt-expose-lightbox__media {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hwt-expose-lightbox img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.hwt-expose-lightbox__caption {
  margin: 0;
  padding: 0.8rem 1rem;
  background: rgba(248, 248, 248, 0.9);
  color: #000;
  text-align: center;
  line-height: 1.4;
}
.hwt-expose-lightbox__caption[hidden] {
  display: none;
}
.hwt-expose-lightbox button {
  position: absolute;
  z-index: 2;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 2rem;
  width: 54px;
  height: 54px;
  cursor: pointer;
}
.hwt-expose-lightbox__close {
  top: 0;
  right: 0;
}
.hwt-expose-lightbox__prev {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.hwt-expose-lightbox__next {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.hwt-access {
  background: #f8f8f8;
  padding: 2.5em;
  font-family: "Titillium Web", sans-serif;
}
.hwt-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
  margin-top: 2em;
}
.hwt-form-full {
  grid-column: 1/-1;
}
.hwt-access input[type="text"],
.hwt-access input[type="email"],
.hwt-access textarea {
  display: block;
  width: 100%;
  padding: 0.5em 1em;
  border: 1px solid #1e1e1f;
  background: #fff;
}
.hwt-access fieldset {
  border: 0;
  padding: 0;
  margin: 2.75em 0;
}
.hwt-check {
  display: grid;
  grid-template-columns: 1.15em 1fr;
  gap: 0.65em;
  margin-bottom: 1em;
}
.hwt-submit {
  padding: 0.6em 2em;
  border: 1px solid #1e1e1f;
  background: transparent;
  text-transform: uppercase;
}
.hwt-object-header {
  text-align: center;
}
.hwt-object-header h4 {
  font-weight: 300;
  font-size: 2.9375rem;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0 0 0.6em;
}
.hwt-object-title-line {
  width: 40%;
  border: 0;
  border-top: 1px solid #8a8a8a;
}
.hwt-access-meta {
  display: flex;
  justify-content: space-between;
}
@media (max-width: 1000px) {
  .hwt-expose-hero,
  .hwt-expose-copy,
  .hwt-expose-location-section,
  .hwt-expose-split {
    grid-template-columns: 1fr;
  }
  .hwt-expose-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .hwt-expose-gallery__item,
  .hwt-expose-gallery__item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .hwt-expose-gallery__item:nth-child(5n + 1) {
    grid-column: 1/-1;
    grid-row: span 2;
  }
  .hwt-expose-contact {
    grid-template-columns: 1fr;
  }
  .hwt-expose-section {
    padding: 0 2rem;
  }
  .hwt-expose-split,
  .hwt-expose-other {
    padding: 3rem 2rem;
  }
}
@media (max-width: 600px) {
  .hwt-expose-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .hwt-expose-gallery__item,
  .hwt-expose-gallery__item:nth-child(n) {
    aspect-ratio: 4/3;
    grid-column: 1;
    grid-row: auto;
  }
  .hwt-expose-facts,
  .hwt-expose-data-grid,
  .hwt-form-fields {
    grid-template-columns: 1fr;
  }
  .hwt-form-full {
    grid-column: auto;
  }
  .hwt-expose-contact {
    margin: 0;
  }
  .hwt-expose-hero__content {
    padding: 3rem 1.5rem;
  }
}
/* HWT Objekt Expose - OpenStreetMap placeholder */
.hwt-map {
  width: 100%;
  min-height: 480px;
  margin-top: 2.5rem;

  box-sizing: border-box;
  background: #e7e7e7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  border: 1px solid #d1d1d1;
}
.hwt-map p {
  max-width: 650px;
  margin: 0;
  color: #4f4f4f;
  font-size: 1.05rem;
  line-height: 1.55;
}
.hwt-map .hwt-map__button {
  margin: 0;
  padding: 0.7em 2em;
  border: 1px solid #1e1e1f;
  border-radius: 0;
  background: transparent;
  color: #1e1e1f;
  font-family: "Titillium Web", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
.hwt-map .hwt-map__button:hover,
.hwt-map .hwt-map__button:focus-visible {
  background: #4f4f4f;
  border-color: #4f4f4f;
  color: #fff;
}
.hwt-map .hwt-map__button:focus-visible {
  outline: 2px solid #1e1e1f;
  outline-offset: 3px;
}
.hwt-map iframe {
  display: block;
  width: calc(100% + 4rem);
  min-height: 480px;
  margin: -2rem;
  border: 0;
}
@media (max-width: 800px) {
  .hwt-map {
    min-height: 360px;
    padding: 1.5rem;
  }
  .hwt-map iframe {
    width: calc(100% + 3rem);
    min-height: 360px;
    margin: -1.5rem;
  }
}
/* Downloads: Dateiname nicht fett */
.hwt-expose-download strong {
  font-weight: 300;
}

/* Kontaktbereich */
.hwt-expose-contact .hwt-expose-kicker {
  color: #fff;
}

/* Telefonnummer */
.hwt-expose-contact p a[href^="tel:"] {
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.hwt-expose-contact p a[href^="tel:"]:hover,
.hwt-expose-contact p a[href^="tel:"]:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* E-Mail Button */
.hwt-expose-contact .hwt-mail-button {
  color: #fff !important;
  border-color: #fff;
  background: transparent;
}

.hwt-expose-contact .hwt-mail-button:hover,
.hwt-expose-contact .hwt-mail-button:focus-visible {
  color: #1e1e1f !important;
  background: #fff;
  border-color: #fff;
}
/* Formular-Optik wie der zuvor abgestimmte Stand */
.hwt-access {
  background: #f8f8f8;
  padding: 2.5em;
  box-sizing: border-box;
  font-family: "Titillium Web", sans-serif;
  color: #1e1e1f;
}
.hwt-access h2 {
  font-weight: 300;
  font-size: 2.3rem;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0.2em 0 0.6em;
}
.hwt-access > p {
  font-size: 1.2em;
  line-height: 1.6;
}
.hwt-access form {
  display: block;
  margin-top: 2em;
}
.hwt-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
  margin-top: 2em;
}
.hwt-form-fields > label {
  display: block;
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.02em;
  font-size: 1.3em;
  line-height: 1.2;
  color: #1e1e1f;
}
.hwt-form-fields .hwt-form-full {
  grid-column: 1/-1;
}
.hwt-access input[type="text"],
.hwt-access input[type="email"],
.hwt-access input[type="tel"],
.hwt-access textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.35em;
  background: #fff;
  border: 0.05em solid #1e1e1f;
  border-radius: 0;
  padding: 0.5em 1em;
  font-family: "Titillium Web", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: #1e1e1f;
  outline: none;
}
.hwt-access textarea {
  min-height: 7em;
  resize: vertical;
}
.hwt-access input:focus,
.hwt-access textarea:focus {
  border-color: #4f4f4f;
  outline: 2px solid #4f4f4f;
  outline-offset: 2px;
}
.hwt-access fieldset {
  border: 0;
  padding: 0;
  margin: 2.75em 0 0;
}
.hwt-access legend {
  width: 100%;
  box-sizing: border-box;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 1em;
  padding: 0;
}
.hwt-access fieldset .hwt-check {
  display: grid;
  grid-template-columns: 1.15em minmax(0, 1fr);
  column-gap: 0.65em;
  align-items: start;
  margin: 0 0 1em;
  font-size: 1.15em;
  font-weight: 300;
  line-height: 1.4;
  cursor: pointer;
}
.hwt-access fieldset .hwt-check > input[type="checkbox"] {
  grid-column: 1;
  width: 1.15em;
  height: 1.15em;
  margin: 0.12em 0 0;
  accent-color: #4f4f4f;
}
.hwt-access fieldset .hwt-check > span {
  grid-column: 2;
  display: block;
  min-width: 0;
}
.hwt-access fieldset a {
  display: inline;
  color: #1e1e1f;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  white-space: normal;
}
.hwt-access .hwt-submit {
  display: block;
  width: auto;
  font-family: "Titillium Web", sans-serif;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.1rem;
  color: #1e1e1f;
  padding: 0.45em 2.2em;
  border: 0.05em solid #1e1e1f;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 1.25em;
}
.hwt-access .hwt-submit:hover,
.hwt-access .hwt-submit:focus-visible {
  background: #4f4f4f;
  color: #fff;
  border-color: #4f4f4f;
}
.hwt-access .hwt-error {
  padding: 0.8em 1em;
  border: 1px solid #a40000;
  color: #a40000;
  background: #fff;
}
.hwt-access .hwt-info {
  padding: 0.8em 1em;
  border: 1px solid #4f4f4f;
  background: #fff;
}
.hwt-object-header {
  text-align: center;
  margin: 0 auto 2.25em;
  font-family: "Titillium Web", sans-serif;
}
.hwt-object-header .hwt-badge {
  display: block;
  background: transparent;
  padding: 0;
  margin: 0 0 0.35em;
  font-size: 1.05rem;
  font-weight: 300;
  color: #1e1e1f;
}
.hwt-object-header h4 {
  font-weight: 300;
  font-size: 2.9375rem;
  line-height: 1.2;
  text-transform: uppercase;
  padding: 0;
  margin: 0 0 0.6em;
  text-align: center;
}
.hwt-object-header .hwt-object-title-line {
  display: block;
  border: 0;
  border-top: 1px solid #8a8a8a;
  width: 40%;
  max-width: 660px;
  min-width: 220px;
  height: 0;
  margin: 0 auto 2.1em;
  padding: 0;
  background: transparent;
}
.hwt-access-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2em;
  margin: 0 0 1.35em;
}
.hwt-access-meta p {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  font-weight: 300;
}
.hwt-required-note {
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .hwt-access {
    padding: 1.5em;
  }
  .hwt-form-fields {
    grid-template-columns: 1fr;
    gap: 1.35em;
  }
  .hwt-form-fields .hwt-form-full {
    grid-column: auto;
  }
  .hwt-access .hwt-submit {
    width: 100%;
    text-align: center;
  }
  .hwt-object-header h4 {
    font-size: 2.1rem;
  }
  .hwt-object-header .hwt-object-title-line {
    width: 65%;
    min-width: 0;
  }
  .hwt-access-meta {
    display: block;
  }
  .hwt-required-note {
    text-align: left;
    white-space: normal;
    margin-top: 0.55em !important;
  }
}
/* Hinweis bei Exposé-Vorschau für eingeloggte TYPO3-Backend-Benutzer */
.hwt-backend-preview {
  margin: 0;
  padding: 1.1rem 2rem;
  background: #fff8dc;
  border-bottom: 1px solid #e1cf83;
  color: #1e1e1f;
  font-family: "Titillium Web", sans-serif;
  line-height: 1.5;
}

.hwt-backend-preview strong {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hwt-backend-preview p {
  margin: 0;
}

@media (max-width: 600px) {
  .hwt-backend-preview {
    padding: 1rem 1.5rem;
  }
}
