/* DR. BILDIR · Ein Inhaltsrahmen für die ganze Website (25.11.2026, Fassung 2)
   Rahmen: höchstens 1900 px breit, sonst Fensterbreite minus 24 px je Seite.
   Gilt ab 768 px Fensterbreite. Das Handy bleibt unverändert.
   Zwei Muster:
   A) Der Block selbst ist der Rahmen:        width: min(100% - 48px, 1900px)
   B) Farbband über die volle Breite, Inhalt im Rahmen:
                                               padding: max(24px, 50% - 950px)
   Rückbau: diese Datei und den Lader drb-home-frame.php löschen, Cache leeren. */

@media (min-width: 768px) {

  /* ---------- Fuß und Newsletter (alle Seiten) ---------- */
  html body .elementor-location-footer .drb-footer.drb-r12 .elementor-element.drb-footer-grid,
  html body .elementor-location-footer .drb-footer.drb-r12 .elementor-element.drb-legal-guarantee,
  html body .elementor-location-footer .drb-footer.drb-r12 .elementor-element.drb-footer-bottom,
  html body .drb-nl .drb-nl__in {
    max-width: 1900px !important;
    width: min(100% - 48px, 1900px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  html body .elementor-location-footer .drb-footer.drb-r12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  html body .elementor-location-footer .drb-footer.drb-r12 .elementor-element.drb-legal-guarantee-copy {
    padding-left: 0 !important;
  }

  /* ---------- Startseite ---------- */
  html body.home.drb-r12-phase2 .elementor .elementor-element.drb-offer-native-block,
  html body.home.drb-r12-phase2 .elementor-85 .drb-r12-home.e-parent,
  html body.home .elementor-85 > .elementor-element.elementor-element-b08cae9,
  html body.home .elementor-85 > .elementor-element.elementor-element-glwd8c8 {
    max-width: 1900px !important;
    width: min(100% - 48px, 1900px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  html body.home #drb-home-complete-set,
  html body.home.drb-r12-phase2 .elementor-85 .drb-r12-home .drb-proof__facts,
  html body.home .elementor-85 > .elementor-element-b08cae9 > .e-con-inner,
  html body.home .elementor-85 > .elementor-element-glwd8c8 > .e-con-inner {
    max-width: none !important;
    width: 100% !important;
  }
  html body.home .elementor-85 > .elementor-element.elementor-element-glwd8c8 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  html body.home .elementor-85 .elementor-element.elementor-element-efc18d7 {
    background: #fff !important;
  }
  html body.home .elementor-85 .elementor-element-efc18d7 > .e-con-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  html body.home .elementor-85 .elementor-element.elementor-element-dbtrust1 > .elementor-widget-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* ---------- Unterseiten, Muster A: der Seitenblock ist der Rahmen ---------- */
  html body #main-content.drb-r12,
  html body #content.drb-r12,
  html body .elementor-location-single > .drb-r12.drb-product-page,
  html body main#main.site-main,
  html body.page-id-5609 main#content.site-main {
    max-width: 1900px !important;
    width: min(100% - 48px, 1900px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* ---------- Unterseiten, Muster B: Farbband voll, Inhalt im Rahmen ---------- */
  html body:not(.home) .elementor[data-elementor-type="wp-page"] > .e-con.e-con-boxed,
  html body:not(.home) .elementor[data-elementor-type="wp-post"] > .e-con.e-con-boxed,
  html body:not(.home) .elementor.elementor-location-single > .e-con.e-con-boxed,
  html body:not(.home) .elementor[data-elementor-type="wp-page"] > .e-con-full > .e-con.e-con-boxed,
  html body .elementor .elementor-element.drb-signature-native.drb-r12-founder > .elementor-element.drb-section:not(.drb-hero),
  html body .drb-legal-shell > .drb-legal-hero {
    padding-left: max(24px, calc(50% - 950px)) !important;
    padding-right: max(24px, calc(50% - 950px)) !important;
  }
  html body:not(.home) .elementor[data-elementor-type="wp-page"] > .e-con-full > .e-con.e-con-boxed > .e-con-inner {
    max-width: none !important;
    width: 100% !important;
  }

  /* Rechtstexte: Kopfband im Rahmen, Lesespalte beginnt an derselben linken Kante */
  html body .drb-legal-shell > .drb-legal-hero {
    justify-content: space-between !important;
  }
  html body .drb-legal-shell > .drb-legal-hero > .drb-legal-hero__copy {
    padding-left: 0 !important;
  }
  html body .drb-legal-shell > .drb-legal-copy {
    margin-left: max(24px, calc(50% - 950px)) !important;
    margin-right: auto !important;
  }

  /* Produktseiten, Shop, Lexikon: Abschnitte ohne Farbfläche beginnen an der Rahmenkante,
     Abschnitte mit Farbfläche bekommen 24 px Innenabstand (wie die Angebotsbox) */
  html body .elementor .drb-r12.drb-product-page > .elementor-element.e-con,
  html body .elementor #content.drb-r12 > .elementor-element.e-con {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  html body .elementor .drb-r12.drb-product-page > .elementor-element.breadcrumb,
  html body .elementor .drb-r12.drb-product-page > .elementor-element.e-con.hero,
  html body .elementor .drb-r12.drb-product-page > .elementor-element.e-con.why,
  html body .elementor .drb-r12.drb-product-page > .elementor-element.e-con.knowledge,
  html body .elementor #content.drb-r12 > .elementor-element.e-con.shop-catalog,
  html body .elementor #content.drb-r12 > .elementor-element.e-con.lexicon-grid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Gründerin-Seite: Text im Kopfbild beginnt an der Rahmenkante */
  html body .elementor .drb-r12-founder .elementor-element.drb-hero > .elementor-element.drb-hero-copy {
    margin-left: max(24px, calc(50% - 950px)) !important;
  }

  /* Shop: Set-Box füllt den Rahmen wie auf der Startseite */
  html body #drb-complete-set-shop {
    max-width: none !important;
    width: 100% !important;
  }

  /* Gewinnspiel-Seite: Titel und Inhalt nicht zusätzlich einengen */
  html body.page-id-5609 main#content.site-main > .page-header,
  html body.page-id-5609 main#content.site-main > .page-header .entry-title,
  html body.page-id-5609 main#content.site-main > .page-content {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  html body:not(.home) .elementor[data-elementor-type="wp-page"] > .e-con.e-con-boxed > .e-con-inner,
  html body:not(.home) .elementor[data-elementor-type="wp-post"] > .e-con.e-con-boxed > .e-con-inner,
  html body:not(.home) .elementor.elementor-location-single > .e-con.e-con-boxed > .e-con-inner {
    max-width: none !important;
    width: 100% !important;
  }
}

/* ---------- Vorteilszeile oben: drei Punkte (seit 25.11.2026 mit „Made in Germany“) ----------
   Bis 1024 px: links Versand, rechts Garantie und Made in Germany untereinander.
   Ab 1025 px: alle drei in einer Zeile (Regel des Plugins). */
@media (max-width: 1024px) {
  html body .drb-offer-service > span:first-child {
    grid-row: 1 / span 2;
  }
  html body .drb-offer-service > span:nth-child(2),
  html body .drb-offer-service > span:nth-child(3) {
    grid-column: 2;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  html body .drb-offer-service {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    gap: 2px 44px;
  }
}

/* ---------- Tablet: Kaufknopf bleibt in seiner Spalte ---------- */
@media (min-width: 768px) and (max-width: 1024px) {
  html body.single-product form.cart {
    flex-wrap: wrap !important;
  }
  html body.single-product form.cart .single_add_to_cart_button {
    flex: 1 1 160px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: auto !important;
    white-space: normal !important;
  }
}

/* ---------- Kopfbereich: erst ab 1025 px, darunter gilt das Handy-Menü ---------- */
@media (min-width: 1025px) {
  html body .elementor-location-header .drb-header .elementor-element.drb-header-main {
    max-width: 1900px !important;
    width: min(100% - 48px, 1900px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Shop-Karten: Produktbild füllt den Bildrahmen (25.11.2026) */
html body .shop-card .shop-image .elementor-widget-image a { display: block; }
html body .shop-card .shop-image .elementor-widget-image img { display: block; width: 100%; max-width: none; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }

/* Hero-Dachzeile: Petrol wie im Shop statt Schwarz, auf dem Handy größer (25.11.2026) */
html body.home.drb-r12-phase2 .drb-r12-home .drb-restored-hero p.drb-hero__eyebrow { color: #0F6A75 !important; }
@media (max-width: 767px) {
  html body.home.drb-r12-phase2 .drb-r12-home .drb-restored-hero p.drb-hero__eyebrow { font-size: 12px; letter-spacing: .1em; line-height: 1.45; }
}

/* Produktseiten: Dachzeile und Produktname stehen in der H1, Aussehen wie vorher (26.11.2026) */
h1 > .drb-h1-eyebrow { display: block; font-size: 12px; line-height: 19.8px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #0F6A75; margin: -12px 0 12px; }
h1 > .drb-h1-name { display: block; font-size: 14px; line-height: 23.1px; font-weight: 700; letter-spacing: 1.1px; text-transform: none; color: #000; margin: 14px 0 -2px; }
@media (max-width: 768px) {
  h1 > .drb-h1-eyebrow { font-size: 11px; line-height: 18.15px; margin: 2px 0 4px; }
  h1 > .drb-h1-name { margin: 6px 0 0; padding-bottom: 2px; }
}
