:root {
  --rb-border: 2px solid var(--wp--preset--color--signal);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; font-size: 17px; }
main.wp-block-group,
main.wp-block-group > .wp-block-post-content,
.wp-block-post-content > .rb-section,
.wp-block-post-content > .alignfull + .alignfull {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}
main + footer.wp-block-template-part,
.wp-site-blocks > footer.wp-block-template-part {
  margin-block-start: 0 !important;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
  backdrop-filter: blur(12px);
}
.rb-logo-title a {
  display: block;
  width: 180px;
  height: 34px;
  overflow: hidden;
  background: url(../images/logo-soennecken.png) left center / contain no-repeat;
  text-indent: -9999px;
}
.site-header .wp-block-navigation-item__content { font-weight: 700; text-decoration: none; }
.rb-section { padding: clamp(3.5rem, 4.5vw, 4.5rem) max(1.5rem, calc((100vw - 1120px) / 2)); }
.rb-section > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.rb-hero { min-height: calc(100vh - 70px); display: grid; align-items: center; }
.rb-intro__title {
  max-width: 1120px;
  margin: 0 0 clamp(2rem, 5vw, 4rem);
  color: var(--wp--preset--color--signal);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
}
.rb-intro-copy-grid,
.rb-intro-footer-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(2.5rem, 7vw, 7rem) !important;
}
.rb-intro-copy-grid h3,
.rb-intro-footer-grid h3 {
  margin-bottom: .65rem;
  color: var(--wp--preset--color--signal);
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
}
.rb-intro-copy-grid p { margin-top: 0; }
.rb-intro-footer-grid { align-items: center; margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.rb-intro-footer-grid ul { margin-bottom: 0; }
.rb-stoerer { justify-content: center; }
.rb-stoerer .wp-block-button__link {
  display: grid;
  width: clamp(165px, 16vw, 210px);
  height: clamp(165px, 16vw, 210px);
  place-items: center;
  padding: 1rem;
  border-radius: 50%;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
  hyphens: none;
}
.rb-kicker { font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.rb-marketing-intro .wp-block-columns { align-items: center; }
.rb-marketing-intro__title {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  color: #fff;
  font-size: clamp(2.4rem, 4.2vw, 3.5rem);
  line-height: 1.04;
}
.rb-marketing-intro__title .rb-highlight { color: var(--wp--preset--color--signal); }
.rb-marketing-intro__copy { max-width: 680px; }
.rb-marketing-intro__copy p { margin-top: 0; }
.rb-marketing-list { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.rb-marketing-list li { margin-bottom: .25rem; }
.rb-marketing-intro__discover {
  color: var(--wp--preset--color--signal);
  font-weight: 700;
}
.rb-marketing-intro__visual img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}
.rb-card {
  height: 100%;
  overflow: hidden;
  border: var(--rb-border);
  background: #fff;
}
.rb-card .wp-block-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rb-card-content { padding: clamp(1.25rem, 3vw, 2rem); }
.rb-package-grid { align-items: stretch !important; }
.rb-package-grid > .wp-block-column { display: flex; flex-direction: column; }
.rb-package-grid .rb-card { flex: 1; }
.rb-package-section--1 { background-color: #92918f !important; }
.rb-package-section--2 { background-color: #6f6e6c !important; }
.rb-package-section--3 { background-color: #454543 !important; }

/* Paket 1: compact landscape cards, image left and copy right. */
.rb-package-section--1 .rb-card {
  display: grid;
  grid-template-columns: minmax(180px, 40%) minmax(0, 60%);
  align-items: stretch;
}
.rb-package-section--1 .rb-card > .wp-block-image,
.rb-package-section--1 .rb-card > .rb-card-content {
  margin: 0 !important;
}
.rb-package-section--1 .rb-card > .wp-block-image,
.rb-package-section--1 .rb-card > .wp-block-image img {
  width: 100%;
}
.rb-package-section--1 .rb-card > .wp-block-image {
  display: flex;
  min-height: 240px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: clamp(.75rem, 2vw, 1.5rem);
  background: #fff;
}
.rb-package-section--1 .rb-card > .wp-block-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 300px;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
}

/* Paket 2: keep the two-column card grid, but reveal more image height. */
.rb-package-section--2 .rb-card .wp-block-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Paket 3: full-width cards, copy 4/12 left and image 8/12 right. */
.rb-package-section--3 .rb-package-grid {
  flex-direction: column;
}
.rb-package-section--3 .rb-package-grid > .wp-block-column {
  width: 100%;
  flex-basis: 100% !important;
}
.rb-package-section--3 .rb-card {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: stretch;
}
.rb-package-section--3 .rb-card > .wp-block-image {
  order: 2;
  margin: 0 !important;
}
.rb-package-section--3 .rb-card > .rb-card-content {
  order: 1;
  margin: 0 !important;
}
.rb-package-section--3 .rb-card > .wp-block-image,
.rb-package-section--3 .rb-card > .wp-block-image img {
  width: 100%;
}
.rb-package-section--3 .rb-card > .wp-block-image {
  display: flex;
  min-height: 320px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: clamp(1rem, 3vw, 2rem);
  background: #fff;
}
.rb-package-section--3 .rb-card > .wp-block-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
}
.rb-number { margin: 0; color: var(--wp--preset--color--signal); font-size: clamp(4rem, 10vw, 8rem); line-height: .75; }
.rb-note { border-left: .5rem solid var(--wp--preset--color--signal); padding-left: 1.25rem; }
.rb-section.has-signal-background-color {
  background-color: #e94190 !important;
  color: #fff;
}
#bestellung.rb-section {
  background-color: var(--wp--preset--color--light) !important;
  color: var(--wp--preset--color--ink);
}
.wp-block-list {
  padding-left: 1.1em;
  padding-inline-start: 1.1em;
}
.wp-block-list li::marker {
  color: var(--wp--preset--color--signal);
}
.rb-slider-strip { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.rb-slider-strip figure { height: 100%; }
.rb-slider-strip img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; }

.raumbuch-order-form {
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  margin-top: clamp(2rem, 3vw, 3rem) !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}
.raumbuch-order-form fieldset { margin: 0 0 2.5rem; padding: 0; border: 0; }
.raumbuch-order-form legend { margin-bottom: 1rem; font-size: 1.45rem; font-weight: 900; }
.raumbuch-order-form label { display: block; margin: .65rem 0; }
.raumbuch-order-form .rb-dependent-option.is-disabled { opacity: .55; }
.raumbuch-order-form .rb-field-hint {
  margin: -.25rem 0 .85rem 1.6rem;
  font-size: .9em;
}
.raumbuch-order-form input[type="text"],
.raumbuch-order-form input[type="email"],
.raumbuch-order-form input[type="tel"] {
  box-sizing: border-box;
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid #777;
  border-radius: 0;
  background: #fff;
  font: inherit;
}
.raumbuch-order-form input:focus { outline: 3px solid var(--wp--preset--color--signal); outline-offset: 2px; }
.raumbuch-order-form .rb-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1.5rem; }
.raumbuch-order-form .rb-mailing-topics {
  margin: .4rem 0 1rem 1.6rem;
  padding-left: 1rem;
  border-left: 3px solid var(--wp--preset--color--signal);
}
.raumbuch-order-form .rb-mailing-topics__title { margin: 0 0 .35rem; }
.raumbuch-order-form .rb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.raumbuch-order-form .rb-form-grid label { font-weight: 700; }
.raumbuch-order-form .rb-form-grid label span { display: block; margin-bottom: .35rem; }
.raumbuch-order-form button { padding: 1rem 1.5rem; border: 0; background: var(--wp--preset--color--signal); color: #202020; font: inherit; font-weight: 900; cursor: pointer; }
.raumbuch-order-form button:hover { filter: brightness(.92); }
.rb-form-message { margin: 0 auto 2rem; padding: 1rem 1.25rem; max-width: 960px; font-weight: 700; }
.rb-form-message.success { background: #dff4dc; color: #202020; }
.rb-form-message.error { background: #ffe1e1; }
.rb-form-message > :first-child { margin-top: 0; }
.rb-form-message > :last-child { margin-bottom: 0; }
.rb-honeypot { position: absolute !important; left: -9999px !important; }

.rb-testimonial {
  display: grid !important;
  grid-template-columns: clamp(120px, 15vw, 175px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  background-color: var(--wp--preset--color--light) !important;
  color: var(--wp--preset--color--ink);
}
.rb-testimonial > * { max-width: none; margin: 0 !important; }
.rb-testimonial__portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}
.rb-testimonial blockquote p { margin-top: 0; font-size: 17px !important; line-height: 1.55; }
.rb-testimonial blockquote cite { font-style: normal; }

.rb-footer-contact {
  padding: clamp(3.5rem, 4.5vw, 4.5rem) max(1.5rem, calc((100vw - 1120px) / 2));
}
.rb-footer-contact > * { max-width: 1120px; margin-right: auto; margin-left: auto; }
.rb-footer-contact h3 { margin: 0 0 1rem; font-size: clamp(1.7rem, 2.5vw, 2.25rem); }
.rb-footer-contact p { margin-top: 0; }
.rb-footer-contact__person { margin-top: 2.25rem !important; margin-bottom: 1.5rem; }
.rb-footer-contact a,
.rb-footer-legal a { color: inherit; }
.rb-footer-legal { padding: 1.25rem 1.5rem; }
.rb-footer-legal p { margin: 0; }
.rb-footer-legal span { margin: 0 .75rem; }

@media (max-width: 781px) {
  .rb-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .rb-slider-strip { grid-template-columns: 1fr 1fr; }
  .rb-slider-strip figure:last-child { grid-column: 1 / -1; }
  .raumbuch-order-form .rb-options,
  .raumbuch-order-form .rb-form-grid { grid-template-columns: 1fr; }
  .raumbuch-order-form .rb-mailing-topics { margin-left: .6rem; }
  .rb-intro-copy-grid,
  .rb-intro-footer-grid { grid-template-columns: 1fr; gap: 1.5rem !important; }
  .rb-stoerer { justify-content: flex-start; }
  .rb-marketing-intro__title { font-size: clamp(2.25rem, 11vw, 3.5rem); }
  .rb-package-section--1 .rb-card,
  .rb-package-section--3 .rb-card { grid-template-columns: 1fr; }
  .rb-package-section--3 .rb-card > .wp-block-image { order: 1; }
  .rb-package-section--3 .rb-card > .rb-card-content { order: 2; }
  .rb-package-section--1 .rb-card > .wp-block-image,
  .rb-package-section--3 .rb-card > .wp-block-image { min-height: 260px; }
  .rb-package-section--1 .rb-card > .wp-block-image img,
  .rb-package-section--3 .rb-card > .wp-block-image img { min-height: 0; height: auto; aspect-ratio: auto; object-fit: contain; }
  .rb-testimonial { grid-template-columns: 1fr; }
  .rb-testimonial__portrait { width: 135px; }
  .rb-footer-legal span { margin: 0 .35rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
