/* DE synchronization: verbatim English master treatments, exact viewport only.
   Sources: theme.css (cards, pricing, CTAs); about.html (editorial reading layout).
   The approved DE homepage pilot remains unchanged. */
@media (width: 1100px) and (height: 900px) {

  /* English interior card, pricing and CTA treatments. */
  html[lang="de"] body.interior-v21 main :is(.guest-review, .pricing-teaser-option, .partnerships-facts > li, .pricing-page .price-option, .pricing-page .feature, .pricing-page .cost, .booking-page .booking-summary, :where(.steps#craft:has(#the-process) .step-grid > .step)) {
    position: relative;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.11) 0px 6px 20px;
  }
  html[lang="de"]:not([data-theme="dark"]) body.interior-v21 main :is(.guest-review, .pricing-teaser-option, .partnerships-facts > li, .pricing-page .price-option, .pricing-page .feature, .pricing-page .cost, .booking-page .booking-summary, :where(.steps#craft:has(#the-process) .step-grid > .step)) {
    background-color: rgb(255, 255, 255);
    border-color: transparent;
  }
  html[lang="de"] body.interior-v21 main :is(.guest-review, .pricing-teaser-option, .partnerships-facts > li, .pricing-page .price-option, .pricing-page .feature, .pricing-page .cost, .booking-page .booking-summary, :where(.steps#craft:has(#the-process) .step-grid > .step))::before {
    content: "";
    position: absolute;
    inset: 0px;
    border: 1px solid rgb(232, 232, 232);
    border-radius: inherit;
    pointer-events: none;
  }
  html[lang="de"][data-theme="dark"] body.interior-v21 main :is(.guest-review, .pricing-teaser-option, .partnerships-facts > li, .pricing-page .price-option, .pricing-page .feature, .pricing-page .cost, .booking-page .booking-summary, :where(.steps#craft:has(#the-process) .step-grid > .step))::before {
    border-color: var(--theme-line);
  }
  html[lang="de"][data-theme="dark"] body .pricing-page :is(.price-option, .feature, .cost) {
    outline: none;
  }
  html[lang="de"] body.interior-v21 main .steps#craft:has(#the-process) .step-grid {
    gap: 24px;
    grid-auto-rows: auto;
    align-items: stretch;
  }
  html[lang="de"] body.interior-v21 main .steps#craft:has(#the-process) .step-grid > .step {
    padding: 24px;
    min-width: 0px;
  }
  html[lang="de"][data-theme="dark"] body.interior-v21 main .steps#craft:has(#the-process) .step-number {
    color: rgb(255, 255, 255) !important;
  }
  html[lang="de"] body.interior-v21 .pricing-page :is(.price-option, .feature, .cost) {
    padding: 24px;
    border-width: 0px;
    min-width: 0px;
  }
  html[lang="de"] body.interior-v21 .pricing-page :is(.price-grid, .feature-grid, .cost-grid) {
    gap: 24px;
    align-items: stretch;
  }
  html[lang="de"] body.interior-v21 .pricing-page .option-heading {
    min-height: 64px;
    margin-bottom: 16px;
  }
  html[lang="de"] body.interior-v21 .pricing-page :is(.feature, .cost) > .pricing-icon {
    margin-bottom: 16px;
  }
  html[lang="de"] body.interior-v21 .pricing-page :is(.feature, .cost) h3 {
    margin-bottom: 12px;
  }
  html[lang="de"] body.interior-v21 .pricing-page :is(.price-options, .included, .additional, .reassurance, .pricing-closing) {
    padding: 0px 0px 40px;
  }
  html[lang="de"] body.interior-v21 .pricing-page :is(.included-intro, .additional > .container, .reassurance-grid) {
    padding-top: 32px;
  }
  html[lang="de"] body.interior-v21 .pricing-page .additional > .container {
    row-gap: 24px;
  }
  html[lang="de"] body.interior-v21 .pricing-page .cost-note {
    margin-top: 0px;
  }
  html[lang="de"] body.interior-v21 .pricing-page .feature h3 {
    min-height: 2.5em;
  }
  @layer bjm-chrome-priority {
  html:root[lang="de"] body:is(.interior-v21, .contact-site)[class] > :is(header, main) :is(a, button, input)[class]:is(.nav-cta, .homepage-v21 .cta-primary, .about-action-primary, .booking-primary, .booking-link, .faq-chat, .article-primary, .craft-booking-cta) {
    background-color: rgb(8, 127, 145) !important;
    border-color: rgb(8, 127, 145) !important;
    color: rgb(255, 255, 255) !important;
  }
  }
  @layer bjm-chrome-priority {
  html:root[lang="de"] body:is(.interior-v21, .contact-site)[class] > :is(header, main) :is(a, button, input)[class]:is(.nav-cta, .homepage-v21 .cta-primary, .about-action-primary, .booking-primary, .booking-link, .faq-chat, .article-primary, .craft-booking-cta) :is(span, strong, em) {
    color: rgb(255, 255, 255) !important;
  }
  }
  @layer bjm-chrome-priority {
  html:root[lang="de"] body:is(.interior-v21, .contact-site)[class] > :is(header, main) :is(a, button, input)[class]:is(.nav-cta, .homepage-v21 .cta-primary, .about-action-primary, .booking-primary, .booking-link, .faq-chat, .article-primary, .craft-booking-cta):focus-visible {
    outline: rgb(8, 127, 145) solid 2px !important;
    outline-offset: 5px !important;
  }
  }

  /* English About layout; DE text keeps its natural wrapping. */
  html[lang="de"] body.interior-v21 main.about-page, html[lang="de"] body.interior-v21 main.about-page :is(h1, h2, h3, h4, h5, h6, p, ul, ol, li, blockquote, figcaption, .about-copy, .about-action) {
    text-align: left;
  }
  html[lang="de"] body.interior-v21 main.about-page .about-grid, html[lang="de"] body.interior-v21 main.about-page .about-section:nth-of-type(6) .about-grid {
    grid-template-columns: minmax(0px, 1fr);
    gap: 20px;
    width: 100%;
    margin-inline: 0px;
  }
  html[lang="de"] body.interior-v21 main.about-page .about-heading {
    max-width: min(100%, 40ch);
    text-wrap: balance;
    margin-bottom: 0px;
    font-size: 34px;
    line-height: 1.18;
    letter-spacing: -0.03em;
  }
  html[lang="de"] body.interior-v21 main.about-page h1.about-heading {
    max-width: min(100%, 34ch);
    font-size: 48px;
    line-height: 1.1;
  }
  html[lang="de"] body.interior-v21 main.about-page .about-closing .about-heading {
    max-width: min(100%, 38ch);
    font-size: 40px;
    line-height: 1.15;
  }
  html[lang="de"] body.interior-v21 main.about-page .about-eyebrow .bjm-section-highlight {
    position: relative;
    left: -12px;
  }
  html[lang="de"] body.interior-v21 main.about-page .about-eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.12em;
  }
  html[lang="de"] body.interior-v21 main.about-page .about-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0px, 1fr));
    grid-auto-flow: row;
    align-items: start;
    gap: 18px 40px;
    width: 100%;
    max-width: 100%;
    margin-inline: 0px;
  }
  html[lang="de"] body.interior-v21 main.about-page .about-copy p {
    max-width: min(100%, 90ch);
    text-wrap: pretty;
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 0px;
  }
  html[lang="de"] body.interior-v21 main.about-page .about-copy p:first-child, html[lang="de"] body.interior-v21 main.about-page .about-copy p:last-child:nth-child(2n) {
    grid-column: 1 / -1;
  }
  html[lang="de"] body.interior-v21 main.about-page .about-closing .about-copy {
    grid-template-columns: minmax(0px, 1fr);
    gap: 8px;
  }
  html[lang="de"] body.interior-v21 main.about-page :is(.about-section, .about-closing) {
    padding-block: 36px;
  }
  html[lang="de"] body.interior-v21 main.about-page .about-section:nth-of-type(-n+2) {
    padding-bottom: 40px;
  }
  html[lang="de"] body.interior-v21 main.about-page .about-closing {
    padding-block: 16px 48px;
  }
  html[lang="de"] body.interior-v21 main.about-page .about-section > .about-container, html[lang="de"] body.interior-v21 main.about-page .about-grid > div {
    display: flow-root;
  }
  html[lang="de"] body.interior-v21 main.about-page .about-section + .about-section {
    padding-top: 0px;
  }
  html[lang="de"] body.interior-v21 main.about-page .about-section + .about-section > .about-container, html[lang="de"] body.interior-v21 main.about-page .about-closing > .about-container {
    border-top: 1px solid rgba(128, 128, 128, 0.25);
    border-image: none;
    padding-top: 36px;
  }
  html[lang="de"] body.interior-v21 main.about-page .about-closing > .about-container {
    grid-template-columns: minmax(0px, 1fr);
    gap: 24px;
    justify-items: start;
  }
  html[lang="de"] body.interior-v21 main.about-page .about-closing > .about-container > :is(.about-heading, .about-copy, .about-actions) {
    grid-area: auto / 1;
    width: 100%;
    margin: 0px;
  }
  html[lang="de"] body.interior-v21 main.about-page .about-actions {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  /* Place the existing DE Location link in the English footer column/order.
     Grid placement keeps every original node, translation, destination and ID. */
  @layer bjm-chrome-priority {
    html[lang="de"] body > footer.site-footer .footer-grid {
      grid-template-rows: auto repeat(4, minmax(36px, auto)) !important;
      row-gap: 0 !important;
    }
    html[lang="de"] body > footer.site-footer .footer-grid > :is(.footer-brand-column, nav:nth-child(2)) {
      grid-row: 1 / 6 !important;
    }
    html[lang="de"] body > footer.site-footer .footer-grid > nav:is(:nth-child(3), :nth-child(4)),
    html[lang="de"] body > footer.site-footer .footer-grid > nav:is(:nth-child(3), :nth-child(4)) > ul {
      display: contents !important;
    }
    html[lang="de"] body > footer.site-footer .footer-grid > nav:nth-child(3) > h2 { grid-area: 1 / 3 !important; }
    html[lang="de"] body > footer.site-footer .footer-grid > nav:nth-child(4) > h2 { grid-area: 1 / 4 !important; }
    html[lang="de"] body > footer.site-footer .footer-grid > nav:nth-child(3) li { grid-column: 3 !important; }
    html[lang="de"] body > footer.site-footer .footer-grid > nav:nth-child(3) li:nth-child(1) { grid-row: 2 !important; }
    html[lang="de"] body > footer.site-footer .footer-grid > nav:nth-child(3) li:nth-child(2) { grid-row: 3 !important; }
    html[lang="de"] body > footer.site-footer .footer-grid > nav:nth-child(3) li:nth-child(3) { grid-row: 4 !important; }
    html[lang="de"] body > footer.site-footer .footer-grid > nav:nth-child(3) li:last-child { grid-area: 3 / 4 !important; }
    html[lang="de"] body > footer.site-footer .footer-grid > nav:nth-child(4) li:first-child { grid-area: 2 / 4 !important; }
    html[lang="de"] body > footer.site-footer .footer-grid > nav:nth-child(4) li:last-child { grid-area: 4 / 4 !important; }
  }
}

/* DE homepage pilot: verbatim English master treatments at 1100 x 900 only.
   Loaded only by fr/index.html. Other dimensions and all shared source stay locked.
   Sources: homepage-v21.css narrow-desktop/1100px blocks; theme.css cards/buttons. */
@media (width: 1100px) and (height: 900px) {
/* Master card paint from theme.css; only the two homepage card types. */
  html[lang="de"] body.homepage-v21 main :is(.guest-review, .pricing-teaser-option) {
    position: relative;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.11);
  }
  html[lang="de"]:not([data-theme="dark"]) body.homepage-v21 main :is(.guest-review, .pricing-teaser-option) {
    background-color: #FFFFFF;
    border-color: transparent;
  }
  html[lang="de"] body.homepage-v21 main :is(.guest-review, .pricing-teaser-option)::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #E8E8E8;
    border-radius: inherit;
    pointer-events: none;
  }
  html[lang="de"][data-theme="dark"] body.homepage-v21 main :is(.guest-review, .pricing-teaser-option)::before {
    border-color: var(--theme-line);
  }

html[lang="de"] body.homepage-v21 main .guest-reviews-grid { gap: 16px; align-items: stretch; }
  html[lang="de"] body.homepage-v21 main .guest-review { padding: 8px; }
  html[lang="de"] body.homepage-v21 main .guest-review-stars { margin-bottom: 8px; }
  html[lang="de"] body.homepage-v21 main .guest-review-attribution { margin-top: auto; padding-top: 6px; }

html[lang="de"] body.homepage-v21 main .instagram-feed-tile:nth-child(n + 17) { display: none; }


  html[lang="de"] body.homepage-v21 > main > .hero#home .hero-content {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    min-width: 0;
    text-align: left;
  }
  html[lang="de"] body.homepage-v21 > main > .hero#home .hero-desktop-headline { text-align: left; }
  html[lang="de"] body.homepage-v21 > main > .hero#home .hero-buttons { justify-content: flex-start; }
  html[lang="de"] body.homepage-v21 > main > .hero#home .hero-content :is(.hero-eyebrow, .hero-desktop-headline, .hero-desktop-headline strong, .hero-subheadline) {
    color: #F7F5F0 !important;
  }

html[lang="de"] body.homepage-v21 > main > .hero#home {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 0;
  }
  html[lang="de"] body.homepage-v21 > main > .hero#home > .hero-image {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 400px;
    aspect-ratio: 3 / 1;
  }
  html[lang="de"] body.homepage-v21 > main > .hero#home .hero-slide {
    object-fit: cover;
    object-position: var(--hero-position, 50% 50%);
  }
  html[lang="de"] body.homepage-v21 > main > .hero#home > .hero-slide-indicators {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    margin: 8px 0;
  }
  html[lang="de"] body.homepage-v21 > main > .hero#home > .hero-editorial {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    height: auto;
    aspect-ratio: auto;
    contain: none;
    padding: 18px 32px;
    background: linear-gradient(180deg, rgba(41, 37, 33, .65), rgba(41, 37, 33, .75)), url('/assets/hero-card-photo.webp') center / cover no-repeat;
  }
  html[lang="de"] body.homepage-v21 > main > .hero#home .hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 32px;
    height: auto;
    max-width: none;
  }
  html[lang="de"] body.homepage-v21 > main > .hero#home .hero-content > :is(.hero-eyebrow, .hero-desktop-headline, .hero-subheadline) {
    grid-column: 1;
    margin: 0;
  }
  html[lang="de"] body.homepage-v21 > main > .hero#home .hero-eyebrow br { display: none; }
  /* Reuse the locked mobile families/weights within the compact banner's line boxes. */
  html[lang="de"] body.homepage-v21 > main > .hero#home .hero-eyebrow {
    font-weight: 600;
    font-style: normal;
    letter-spacing: .1em;
    font-size: 12px;
    line-height: 27.03px;
  }
  html[lang="de"] body.homepage-v21 > main > .hero#home .hero-desktop-headline {
    font-weight: 400;
    font-style: normal;
    font-size: 20.25px;
    line-height: 1.18;
  }
  html[lang="de"] body.homepage-v21 > main > .hero#home .hero-desktop-headline strong {
    font-weight: 700;
    font-style: normal;
    font-size: 31.5px;
    line-height: 1.12;
  }
  html[lang="de"] body.homepage-v21 > main > .hero#home .hero-subheadline {
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    line-height: 1.3;
  }
  html[lang="de"] body.homepage-v21 > main > .hero#home .hero-buttons {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    margin: 0;
  }
  html[lang="de"] body.homepage-v21 > main > .hero#home a.hero-desktop-cta {
    background-color: #087F91 !important;
    border-color: #087F91;
    color: #FFFFFF !important;
  }

html[lang="de"][data-theme="dark"] body.homepage-v21 main .closing-cta { background-color: var(--theme-bg); }

html[lang="de"] body.homepage-v21 main .closing-cta { align-items: flex-start; }

html[lang="de"] body.homepage-v21 main .closing-cta { padding-inline: 0; }
  html[lang="de"] body.homepage-v21 main .closing-cta a#book.cta-primary:not(:hover) {
    background-color: #087F91 !important;
    border-color: #087F91 !important;
    color: #FFFFFF !important;
  }

  @layer bjm-chrome-priority {
    html:root[lang="de"] body.homepage-v21[class] > :is(header, main) :is(a, button, input)[class]:is(.nav-cta, .cta-primary) {
      background-color: #087F91 !important;
      border-color: #087F91 !important;
      color: #FFFFFF !important;
    }
    html:root[lang="de"] body.homepage-v21[class] > :is(header, main) :is(a, button, input)[class]:is(.nav-cta, .cta-primary) :is(span, strong, em) {
      color: #FFFFFF !important;
    }
    html:root[lang="de"] body.homepage-v21[class] > :is(header, main) :is(a, button, input)[class]:is(.nav-cta, .cta-primary):focus-visible {
      outline: 2px solid #087F91 !important;
      outline-offset: 5px !important;
    }
  }
}
