.brw {
  --ink: #151718;
  --paper: #f2eee6;
  --paper-deep: #ded4c3;
  --wood: #c99154;
  --wood-dark: #7c5030;
  --night: #172231;
  --white: #fffefb;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.45;
  margin-inline: 0;
  max-width: 100%;
  overflow: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.brw *, .brw *::before, .brw *::after { box-sizing: border-box; }
.brw img { display: block; max-width: 100%; }
.brw h1, .brw h2, .brw p { margin-top: 0; }

.brw__hero {
  background-color: var(--paper);
  background-image: linear-gradient(90deg, rgba(242,238,230,.9) 0%, rgba(242,238,230,.62) 50%, rgba(242,238,230,.18) 100%), url("../images/wohnraum.jpg");
  background-position: center;
  background-size: cover;
  min-height: min(920px, 92vh);
  position: relative;
}

.brw__hero::after {
  background: linear-gradient(180deg, transparent, rgba(20,20,20,.09));
  bottom: 0;
  content: "";
  height: 22%;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.brw__hero-inner,
.brw__content-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding-inline: clamp(22px, 5vw, 72px);
  position: relative;
}

.brw__hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  grid-template-rows: auto 1fr;
  min-height: min(920px, 92vh);
  padding-bottom: clamp(50px, 8vw, 100px);
  padding-top: clamp(54px, 8vw, 110px);
}

.brw__intro { max-width: 700px; position: relative; z-index: 2; }
.brw__eyebrow { font-size: clamp(15px, 1.5vw, 20px); font-weight: 700; letter-spacing: .25em; margin-bottom: 7px; text-transform: uppercase; }
.brw__intro h1 { font-size: clamp(64px, 10vw, 132px); font-weight: 800; letter-spacing: -.055em; line-height: .84; margin-bottom: 28px; text-transform: uppercase; }
.brw__lead { font-size: clamp(20px, 2.5vw, 34px); letter-spacing: .035em; line-height: 1.45; max-width: 760px; }

.brw__guess-visual {
  align-self: center;
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  margin-top: 80px;
  position: relative;
  width: min(100%, 500px);
  z-index: 2;
}

.brw__guess-visual img { filter: drop-shadow(0 28px 22px rgba(45, 31, 18, .28)); }
.brw__arrow { bottom: -48px; color: rgba(21,23,24,.7); font-family: "Segoe Print", "Comic Sans MS", cursive; font-size: 70px; left: -20px; position: absolute; transform: rotate(-15deg); }

.brw__question-card {
  align-self: end;
  background: rgba(255, 254, 251, .9);
  border: 2px solid rgba(21,23,24,.6);
  border-radius: 36px;
  box-shadow: 0 20px 45px rgba(60, 43, 28, .12);
  grid-column: 1;
  max-width: 520px;
  padding: clamp(24px, 4vw, 40px);
  position: relative;
  z-index: 3;
}

.brw__question-card p { font-family: "Segoe Print", "Comic Sans MS", cursive; font-size: clamp(25px, 3.2vw, 42px); line-height: 1.2; margin-bottom: 14px; transform: rotate(-1deg); }
.brw__question-card span { color: #5c5c58; font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.brw__content {
  background-color: var(--night);
  background-image: linear-gradient(90deg, rgba(23,34,49,.99) 0%, rgba(23,34,49,.93) 50%, rgba(23,34,49,.56) 100%), url("../images/preise-hintergrund.jpg");
  background-position: center;
  background-size: cover;
  color: var(--white);
  padding: clamp(70px, 9vw, 120px) 0 48px;
}

.brw__content-inner { display: grid; gap: clamp(48px, 8vw, 96px); grid-template-columns: minmax(0, .85fr) minmax(440px, 1.15fr); }
.brw__prizes { align-self: start; padding-top: 12px; }
.brw__script { color: #e9d2af; font-family: "Segoe Print", "Comic Sans MS", cursive; font-size: clamp(42px, 6vw, 76px); line-height: 1; margin-bottom: 20px; transform: rotate(-2deg); }
.brw__prizes h2 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.025em; margin-bottom: 40px; }
.brw__prize-list { display: grid; gap: 30px; list-style: none; margin: 0; padding: 0; }
.brw__prize-list li { border-top: 1px solid rgba(255,255,255,.28); display: grid; gap: 8px; padding-top: 20px; }
.brw__prize-list strong { color: #e9d2af; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; }
.brw__prize-list span { font-size: clamp(19px, 2vw, 27px); line-height: 1.4; }
.brw__prize-list b { font-weight: 700; white-space: nowrap; }

.brw__form-card {
  background: var(--white);
  border-radius: 34px;
  box-shadow: 0 30px 70px rgba(0,0,0,.24);
  color: var(--ink);
  padding: clamp(28px, 5vw, 54px);
}
.brw__form-heading span, .brw__closed > span { color: var(--wood-dark); font-size: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.brw__form-heading h2, .brw__closed h2 { font-size: clamp(38px, 5vw, 58px); letter-spacing: -.045em; line-height: 1; margin: 8px 0 8px; }
.brw__form-heading p { color: #67645e; margin-bottom: 30px; }
.brw__form { display: grid; gap: 21px; }
.brw__form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.brw__field { display: grid; gap: 7px; }
.brw__field label { font-size: 14px; font-weight: 750; letter-spacing: .025em; }
.brw__field input {
  appearance: none;
  background: #f5f1e9;
  border: 1.5px solid #cbc2b3;
  border-radius: 13px;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  min-height: 54px;
  outline: none;
  padding: 12px 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  width: 100%;
}
.brw__field input:focus { background: #fff; border-color: var(--wood-dark); box-shadow: 0 0 0 4px rgba(201,145,84,.18); }
.brw__field--guess input { font-size: 30px; font-weight: 800; min-height: 70px; }
.brw__honeypot { height: 0; left: -10000px; overflow: hidden; position: absolute; width: 0; }
.brw__consent { align-items: flex-start; cursor: pointer; display: flex; font-size: 13px; gap: 10px; line-height: 1.45; }
.brw__consent input { accent-color: var(--wood-dark); flex: 0 0 auto; height: 18px; margin-top: 1px; width: 18px; }
.brw__submit {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 17px;
  font-weight: 750;
  justify-content: space-between;
  min-height: 58px;
  padding: 15px 20px 15px 26px;
  transition: transform .2s ease, background .2s ease;
}
.brw__submit:hover { background: var(--wood-dark); transform: translateY(-2px); }
.brw__submit:focus-visible { outline: 3px solid var(--wood); outline-offset: 3px; }
.brw__submit:disabled { cursor: wait; opacity: .65; transform: none; }
.brw__submit span { font-size: 26px; }
.brw__status { border-radius: 12px; display: none; font-size: 15px; padding: 13px 15px; }
.brw__status.is-visible { display: block; }
.brw__status.is-error { background: #fff0ef; color: #8f201a; }
.brw__status.is-success { background: #e9f6ec; color: #245f32; }
.brw__form-card.is-complete .brw__form > *:not(.brw__status) { display: none; }
.brw__form-card.is-complete .brw__status { font-size: 20px; padding: 24px; }
.brw__closed { align-content: center; display: grid; min-height: 360px; }
.brw__closed p { color: #5e5c57; font-size: 18px; margin-bottom: 0; }

.brw__terms { border-top: 1px solid rgba(255,255,255,.28); grid-column: 1 / -1; padding-top: 28px; }
.brw__terms h2 { font-size: 17px; letter-spacing: .08em; text-transform: uppercase; }
.brw__terms p { color: rgba(255,255,255,.73); font-size: 13px; margin-bottom: 9px; max-width: 1040px; }
.brw__terms strong { color: rgba(255,255,255,.9); }

/*
 * WordPress page builders often add very specific global heading and text
 * colours. These rules deliberately win inside the competition only, keeping
 * the dark prize section readable without affecting the rest of the site.
 */
.brw .brw__content,
.brw .brw__content-inner,
.brw .brw__prizes {
  color: #fffefb !important;
}

.brw .brw__script {
  color: #f3c48b !important;
  font-family: "Segoe Print", "Comic Sans MS", cursive !important;
}

.brw .brw__prizes h2 {
  color: #fffefb !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.brw .brw__prize-list li {
  border-top-color: rgba(255, 255, 255, .48) !important;
  color: #fffefb !important;
}

.brw .brw__prize-list strong {
  color: #f3c48b !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.brw .brw__prize-list span,
.brw .brw__prize-list b {
  color: #fffefb !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.brw .brw__terms h2 {
  color: #fffefb !important;
}

.brw .brw__terms p {
  color: #dce3ea !important;
}

.brw .brw__terms strong {
  color: #fffefb !important;
}

.brw .brw__form-card,
.brw .brw__form-card h2,
.brw .brw__form-card label,
.brw .brw__form-card p {
  color: #151718 !important;
}

.brw .brw__form-heading h2,
.brw .brw__closed h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.brw .brw__form-heading > span,
.brw .brw__closed > span {
  color: #7c5030 !important;
}

.brw .brw__field input {
  background-color: #f5f1e9 !important;
  border-color: #a99b87 !important;
  color: #151718 !important;
}

.brw .brw__field input::placeholder {
  color: #68645d !important;
  opacity: 1;
}

.brw .brw__consent,
.brw .brw__consent span {
  color: #242627 !important;
}

@media (max-width: 850px) {
  .brw__hero { min-height: auto; }
  .brw .brw__hero-inner,
  .brw .brw__content-inner {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
  .brw__hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: auto; }
  .brw__intro, .brw__question-card { grid-column: 1; }
  .brw__guess-visual { grid-column: 1; grid-row: auto; justify-self: center; margin: 24px 0 42px; width: min(72vw, 380px); }
  .brw .brw__question-card { justify-self: center; max-width: 100% !important; width: 100% !important; }
  .brw__content-inner { grid-template-columns: minmax(0, 1fr); }
  .brw__prizes,
  .brw__form-card,
  .brw__terms { max-width: 100%; min-width: 0; }
  .brw .brw__script { font-size: clamp(38px, 10vw, 54px) !important; line-height: 1.05 !important; }
  .brw .brw__prizes h2 {
    font-size: clamp(34px, 9vw, 48px) !important;
    letter-spacing: -.035em !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere;
  }
  .brw .brw__prize-list span,
  .brw .brw__prize-list b {
    font-size: clamp(19px, 5.2vw, 23px) !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
    white-space: normal !important;
  }
  .brw .brw__prize-list strong { font-size: 16px !important; line-height: 1.3 !important; }
}

@media (max-width: 560px) {
  .brw__hero { background-position: 58% center; }
  .brw__hero-inner { padding-bottom: 56px; padding-top: 48px; }
  .brw__intro h1 { font-size: clamp(58px, 19vw, 88px); }
  .brw__lead { font-size: 20px; }
  .brw__arrow { bottom: -36px; font-size: 54px; }
  .brw .brw__question-card { border-radius: 26px; padding: 26px 22px !important; }
  .brw .brw__question-card p { font-size: clamp(24px, 7.4vw, 30px) !important; line-height: 1.35 !important; }
  .brw .brw__question-card span { font-size: 14px !important; line-height: 1.4 !important; }
  .brw__content { padding-top: 60px; }
  .brw__content-inner { gap: 48px; }
  .brw__form-card { border-radius: 24px; padding: 28px 20px; }
  .brw__form-row { grid-template-columns: 1fr; }
  .brw .brw__form-heading h2,
  .brw .brw__closed h2 { font-size: clamp(36px, 10vw, 48px) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .brw__field input, .brw__submit { transition: none; }
}

/* Standalone page mode: remove inherited theme chrome and canvas styling. */
body.brw-standalone-page {
  background: #f2eee6 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.brw-standalone-page .brw-page-shell,
body.brw-standalone-page #page,
body.brw-standalone-page #content,
body.brw-standalone-page #primary,
body.brw-standalone-page .site,
body.brw-standalone-page .site-content,
body.brw-standalone-page .content-area,
body.brw-standalone-page .site-main,
body.brw-standalone-page .entry-content,
body.brw-standalone-page .tve_wrap_all,
body.brw-standalone-page .tve-main-content,
body.brw-standalone-page .tcb-post-content {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  width: 100% !important;
}

body.brw-standalone-page::before,
body.brw-standalone-page::after,
body.brw-standalone-page .brw-page-shell::before,
body.brw-standalone-page .brw-page-shell::after {
  background: none !important;
  box-shadow: none !important;
}

body.brw-standalone-page header#masthead,
body.brw-standalone-page footer#colophon,
body.brw-standalone-page .site-header,
body.brw-standalone-page .site-footer,
body.brw-standalone-page .page-header,
body.brw-standalone-page .entry-header,
body.brw-standalone-page .breadcrumbs,
body.brw-standalone-page .breadcrumb,
body.brw-standalone-page .top-bar,
body.brw-standalone-page .site-navigation,
body.brw-standalone-page .brw-inherited-overlay {
  display: none !important;
}

/* 3CX Live Chat: hide the host element as its inner UI uses Shadow DOM. */
body.brw-standalone-page #wp-live-chat-by-3CX,
body.brw-standalone-page call-us-selector,
body.brw-standalone-page call-us,
body.brw-standalone-page [id*="3cx" i],
body.brw-standalone-page [class*="3cx" i] {
  display: none !important;
}

body.brw-standalone-page .brw {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
