@media (max-width: 991px) {
  .header_s8 a.phone-call {
    display: inline-block !important;
    position: absolute;
    top: 20px;
    right: 68px;
    margin-top: 0;
    padding: 7px 10px;
    border-bottom: 2px solid #f29200 !important;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    z-index: 20;
  }

  .header_s8 .navbar-header .navbar-brand {
    padding-right: 215px;
  }

  .wolff-logo {
    max-width: 180px;
  }

  .header_s8 #slidepanel,
  .header_s8 #loginpanel,
  .header_s8 .top-header .call-info {
    display: none !important;
  }

  .page-wolff-dental .main-container .mod_article > *:not(.article-hero),
  .content-narrow {
    width: min(1200px, calc(100% - 40px));
  }

  .article-hero {
    margin-bottom: 28px;
  }

  .article-hero__caption,
  .article-hero__title {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    padding: 10px 12px;
    font-size: clamp(18px, 5vw, 28px);
  }
}

@media (max-width: 639px) {
  .header_s8 a.phone-call {
    right: 58px;
    top: 19px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .header_s8 .navbar-header .navbar-brand.wolff-brand {
    padding-right: 195px;
  }

  .wolff-logo {
    max-width: 145px;
  }

  .article-hero .article-hero__image img,
  .article-hero > img,
  .article-hero > figure img,
  .article-hero > .image_container img,
  .article-hero > .ce_image img {
    min-height: 220px;
  }
}

@media (max-width: 991px) {
  .article-hero > h1,
  .article-hero > .headline,
  .article-hero > .ce_headline,
  .article-hero .article-hero__title,
  .article-hero .article-hero__caption {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    max-width: none !important;
    padding: 10px 12px !important;
    font-size: clamp(18px, 5vw, 28px) !important;
  }
}

@media (max-width: 639px) {
  .article-hero img {
    min-height: 220px !important;
  }
}

@media (max-width: 991px) {
  .mod_article.article-hero > .ce_headline,
  .mod_article.article-hero > h1,
  .ce_image.article-hero > .ce_headline,
  .ce_image.article-hero > h1,
  .ce_image.article-hero .headline,
  .ce_image.article-hero .ce_headline {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    max-width: none !important;
    padding: 10px 12px !important;
    font-size: clamp(18px, 5vw, 28px) !important;
  }

  .mod_article.article-hero .ce_image img,
  .mod_article.article-hero img,
  .ce_image.article-hero img {
    min-height: 220px !important;
  }
}

@media (max-width: 991px) {
  .mod_article .mod_article__inner > .article-hero > h1 {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    max-width: none !important;
    padding: 10px 12px !important;
    font-size: clamp(18px, 5vw, 28px) !important;
  }

  .mod_article .mod_article__inner > .article-hero > figure > img {
    min-height: 220px !important;
  }
}
@media (max-width: 991px) {
  .header_s8 a.phone-call {
    right: 52px !important;
    top: 28px !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    left: auto !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    padding: 6px 9px !important;
    line-height: 1 !important;
  }
}

@media (max-width: 639px) {
  .header_s8 a.phone-call {
    right: 50px !important;
    top: 24px !important;
    padding: 5px 8px !important;
    gap: 4px;
  }

  .header_s8 a.phone-call i {
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 991px) {
  .article-hero > h1 {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    padding: 10px 12px !important;
    font-size: clamp(18px, 5vw, 28px) !important;
  }
}

@media (max-width: 991px) {
  .article-hero h1,
  .article-hero.content-image h1,
  .mod_article .article-hero h1,
  .mod_article .article-hero.content-image h1 {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    max-width: none !important;
    padding: 10px 12px !important;
    font-size: clamp(18px, 5vw, 28px) !important;
  }
}

/* FINAL TUNE: appointment button mobile positioning */
@media (max-width: 991px) {
  .header_default a.phone-call,
  .header_s8 a.phone-call {
    bottom: 14px !important;
  }
}

@media (max-width: 639px) {
  .header_default a.phone-call,
  .header_s8 a.phone-call {
    bottom: 14px !important;
  }
}

/* FINAL TUNE: hero title box top-left, transparent, rounded, slanted */
.article-hero h1,
.article-hero.content-image h1,
.mod_article .article-hero h1,
.mod_article .article-hero.content-image h1 {
  top: 24px !important;
  bottom: auto !important;
  left: 24px !important;
  right: auto !important;
  background: transparent !important;
  color: #ffffff !important;
  padding: 14px 20px !important;
  border-radius: 14px !important;
  overflow: visible !important;
  isolation: isolate;
}

.article-hero h1::before,
.article-hero.content-image h1::before,
.mod_article .article-hero h1::before,
.mod_article .article-hero.content-image h1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(242, 146, 0, 0.82);
  border-radius: 14px;
  transform: skewX(-10deg) translateX(-6px);
  transform-origin: left center;
  z-index: -1;
}

@media (max-width: 991px) {
  .article-hero h1,
  .article-hero.content-image h1,
  .mod_article .article-hero h1,
  .mod_article .article-hero.content-image h1 {
    top: 14px !important;
    left: 14px !important;
    right: 14px !important;
    max-width: none !important;
    padding: 10px 12px !important;
  }

  .article-hero h1::before,
  .article-hero.content-image h1::before,
  .mod_article .article-hero h1::before,
  .mod_article .article-hero.content-image h1::before {
    transform: skewX(-8deg) translateX(-4px);
  }
}

/* FINAL FIX: force bottom anchoring for appointment button */
@media (max-width: 991px) {
  .header_default a.phone-call,
  .header_s8 a.phone-call {
    top: auto !important;
  }
}

@media (max-width: 639px) {
  .header_default a.phone-call,
  .header_s8 a.phone-call {
    top: auto !important;
  }
}

/* FINAL micro-adjust mobile: appointment button 2px higher */
@media (max-width: 991px) {
  .header_default a.phone-call,
  .header_s8 a.phone-call {
    bottom: 16px !important;
  }
}

@media (max-width: 639px) {
  .header_default a.phone-call,
  .header_s8 a.phone-call {
    bottom: 16px !important;
  }
}

/* Put hero title back to previous position (left-bottom) */
.article-hero h1,
.article-hero.content-image h1,
.mod_article .article-hero h1,
.mod_article .article-hero.content-image h1 {
  top: auto !important;
  bottom: 24px !important;
  left: 24px !important;
}

@media (max-width: 991px) {
  .article-hero h1,
  .article-hero.content-image h1,
  .mod_article .article-hero h1,
  .mod_article .article-hero.content-image h1 {
    top: auto !important;
    bottom: 16px !important;
    left: 16px !important;
  }
}

/* ===== MASTER OVERRIDE mobile (final) ===== */
@media (max-width: 991px) {
  .article-hero h1,
  .article-hero.content-image h1,
  .mod_article .article-hero h1,
  .mod_article .article-hero.content-image h1 {
    left: 20px !important;
    right: 16px !important;
    bottom: 16px !important;
  }
}

/* ===== FINAL MOBILE HEADER FIX (logo + stable CTA + orange menu) ===== */
@media (max-width: 991px) {
  .header_s8 .ownavigation > .container,
  .header_default .ownavigation > .container {
    position: relative !important;
    min-height: 86px;
  }

  /* Logo always visible on mobile */
  .header_s8 .navbar-header .navbar-brand.wolff-brand,
  .header_default .navbar-header .navbar-brand.wolff-brand {
    display: inline-flex !important;
    align-items: center !important;
    font-size: inherit !important;
    padding-right: 0 !important;
    max-width: 180px !important;
    z-index: 60;
  }

  .header_s8 .navbar-header .wolff-logo,
  .header_default .navbar-header .wolff-logo {
    display: block !important;
    width: auto !important;
    height: 40px !important;
    max-width: 180px !important;
  }

  /* Keep appointment button fixed in header row even when menu opens */
  .header_s8 a.phone-call,
  .header_default a.phone-call {
    position: absolute !important;
    top: 24px !important;
    bottom: auto !important;
    right: 56px !important;
    left: auto !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 70 !important;
  }

  /* Mobile menu in orange (not blue) */
  .header_s8 .ownavigation,
  .header_default .ownavigation {
    background: #ffffff !important;
  }

  .header_s8 .ownavigation .navbar-toggle,
  .header_default .ownavigation .navbar-toggle {
    background: #f29200 !important;
    border-color: #f29200 !important;
  }

  .header_s8 .ownavigation .navbar-toggle .icon-bar,
  .header_default .ownavigation .navbar-toggle .icon-bar {
    background: #ffffff !important;
  }

  .header_s8 .ownavigation .navbar-collapse,
  .header_default .ownavigation .navbar-collapse {
    background: #ffffff !important;
    border-top: 2px solid #f29200 !important;
  }

  .header_s8 .ownavigation .navbar-nav > li > a,
  .header_default .ownavigation .navbar-nav > li > a {
    color: #f29200 !important;
  }

  .header_s8 .ownavigation .navbar-nav > li.active > a,
  .header_s8 .ownavigation .navbar-nav > li > a:hover,
  .header_default .ownavigation .navbar-nav > li.active > a,
  .header_default .ownavigation .navbar-nav > li > a:hover {
    background: #f29200 !important;
    color: #ffffff !important;
  }

  .header_s8 .ownavigation .ddl-switch,
  .header_default .ownavigation .ddl-switch {
    background: #f29200 !important;
    color: #ffffff !important;
    border-color: #f29200 !important;
  }

  .header_s8 .ownavigation .dropdown-menu,
  .header_default .ownavigation .dropdown-menu {
    background: #fff5e6 !important;
  }

  .header_s8 .ownavigation .navbar-nav li .dropdown-menu > li > a,
  .header_default .ownavigation .navbar-nav li .dropdown-menu > li > a {
    color: #b36600 !important;
  }

  .header_s8 .ownavigation .navbar-nav li .dropdown-menu > li > a:hover,
  .header_default .ownavigation .navbar-nav li .dropdown-menu > li > a:hover {
    color: #ffffff !important;
    background: #f29200 !important;
  }
}

@media (max-width: 639px) {
  .header_s8 .navbar-header .navbar-brand.wolff-brand,
  .header_default .navbar-header .navbar-brand.wolff-brand {
    max-width: 150px !important;
  }

  .header_s8 .navbar-header .wolff-logo,
  .header_default .navbar-header .wolff-logo {
    height: 34px !important;
    max-width: 150px !important;
  }

  .header_s8 a.phone-call,
  .header_default a.phone-call {
    top: 22px !important;
    right: 52px !important;
  }
}

/* ===== FINAL UX corrections (as requested) ===== */
/* Header contact: white by default, gray only on hover/focus */
.page-wolff-dental .top-header .call-info a,
.page-wolff-dental .top-header .call-info a i,
.page-wolff-dental .top-header .call-info .obf-text {
  color: #ffffff !important;
}

.page-wolff-dental .top-header .call-info a:hover,
.page-wolff-dental .top-header .call-info a:hover i,
.page-wolff-dental .top-header .call-info a:hover .obf-text,
.page-wolff-dental .top-header .call-info a:focus,
.page-wolff-dental .top-header .call-info a:focus i,
.page-wolff-dental .top-header .call-info a:focus .obf-text {
  color: #7d7d7d !important;
}

/* Appointment button: keep previous style, only text/icon gray */
.header_s a.phone-call,
.header_default a.phone-call,
.header_s8 a.phone-call {
  background: #ffffff !important;
  border-color: #34d7ed !important;
  color: #7d7d7d !important;
}

.header_s a.phone-call i,
.header_default a.phone-call i,
.header_s8 a.phone-call i {
  color: #7d7d7d !important;
}

.header_s a.phone-call:hover,
.header_default a.phone-call:hover,
.header_s8 a.phone-call:hover,
.header_s a.phone-call:focus,
.header_default a.phone-call:focus,
.header_s8 a.phone-call:focus {
  background: #f4f4f4 !important;
  color: #7d7d7d !important;
  border-color: #34d7ed !important;
}

.header_s a.phone-call:hover i,
.header_default a.phone-call:hover i,
.header_s8 a.phone-call:hover i,
.header_s a.phone-call:focus i,
.header_default a.phone-call:focus i,
.header_s8 a.phone-call:focus i {
  color: #7d7d7d !important;
}

@media (max-width: 991px) {
  .header_s8 .ownavigation > .container,
  .header_default .ownavigation > .container {
    min-height: 120px !important;
    padding-bottom: 40px !important;
    position: relative !important;
  }

  /* bigger logo on mobile */
  .header_s8 .navbar-header .navbar-brand.wolff-brand,
  .header_default .navbar-header .navbar-brand.wolff-brand {
    max-width: 220px !important;
  }

  .header_s8 .navbar-header .wolff-logo,
  .header_default .navbar-header .wolff-logo {
    height: 46px !important;
    max-width: 220px !important;
  }

  /* button below logo+menu row */
  .header_s8 a.phone-call,
  .header_default a.phone-call {
    top: auto !important;
    bottom: 8px !important;
    right: 56px !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 70 !important;
  }

  /* remove black line on open menu */
  .header_s8 .ownavigation .navbar-collapse,
  .header_default .ownavigation .navbar-collapse,
  .header_s8 .ownavigation .navbar-collapse.collapse,
  .header_default .ownavigation .navbar-collapse.collapse,
  .header_s8 .ownavigation .navbar-collapse.in,
  .header_default .ownavigation .navbar-collapse.in {
    border-top: 2px solid #f29200 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  /* menu text more inset from left edge */
  .header_s8 .ownavigation .navbar-nav > li > a,
  .header_default .ownavigation .navbar-nav > li > a {
    padding-left: 18px !important;
    padding-right: 12px !important;
  }
}

@media (max-width: 639px) {
  .header_s8 .navbar-header .navbar-brand.wolff-brand,
  .header_default .navbar-header .navbar-brand.wolff-brand {
    max-width: 190px !important;
  }

  .header_s8 .navbar-header .wolff-logo,
  .header_default .navbar-header .wolff-logo {
    height: 40px !important;
    max-width: 190px !important;
  }

  .header_s8 a.phone-call,
  .header_default a.phone-call {
    right: 52px !important;
    bottom: 8px !important;
  }
}

/* ===== FINAL HOTFIX mobile: full width CTA + tighter image pair ===== */
@media (max-width: 991px) {
  .header_s8 .ownavigation > .container,
  .header_default .ownavigation > .container {
    padding-bottom: 52px !important;
  }

  .header_s8 a.phone-call,
  .header_default a.phone-call {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    bottom: 0 !important;
    top: auto !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .about-wolff .row.g-4.gx-5.align-items-center > .col-lg-6:first-child .row.g-4 {
    gap: 5px !important;              /* tighter on mobile */
    margin-left: -6px !important;     /* move a bit left */
  }

  .about-wolff .row.g-4.gx-5.align-items-center > .col-lg-6:first-child .row.g-4 > .col-6 img {
    max-width: calc((100% - 5px) / 2) !important;
    height: 220px !important;
  }
}

/* ===== LATEST USER FIX mobile: full width CTA + orange border + tighter image pair ===== */
@media (max-width: 991px) {
  .page-wolff-dental .header_s8 .ownavigation > .container,
  .page-wolff-dental .header_default .ownavigation > .container {
    padding-bottom: 52px !important;
  }

  .page-wolff-dental .header_s8 a.phone-call,
  .page-wolff-dental .header_default a.phone-call {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    bottom: 0 !important;
    top: auto !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    border-color: #f29200 !important;
    border-left-color: #f29200 !important;
    border-right-color: #f29200 !important;
    border-top-color: #f29200 !important;
  }

  .page-wolff-dental .about-wolff .row.g-4.gx-5.align-items-center > .col-lg-6:first-child .row.g-4 {
    gap: 4px !important;
    margin-left: -8px !important;
  }

  .page-wolff-dental .about-wolff .row.g-4.gx-5.align-items-center > .col-lg-6:first-child .row.g-4 > .col-6 img {
    max-width: calc((100% - 4px) / 2) !important;
    height: 220px !important;
  }
}

/* ===== LATEST USER FIX mobile: much larger logo + adaptive image widths ===== */
@media (max-width: 991px) {
  .page-wolff-dental .header_s8 .navbar-header .navbar-brand.wolff-brand,
  .page-wolff-dental .header_default .navbar-header .navbar-brand.wolff-brand {
    max-width: 420px !important;
  }

  .page-wolff-dental .header_s8 .navbar-header .wolff-logo,
  .page-wolff-dental .header_default .navbar-header .wolff-logo {
    height: 86px !important;
    max-width: 420px !important;
  }

  .page-wolff-dental .about-wolff .row.g-4.gx-5.align-items-center > .col-lg-6:first-child .row.g-4 {
    gap: 4px !important;
    margin-left: -8px !important;
  }

  .page-wolff-dental .about-wolff .row.g-4.gx-5.align-items-center > .col-lg-6:first-child .row.g-4 > .col-6:first-child {
    flex: 0 1 44% !important;
    width: 44% !important;
  }

  .page-wolff-dental .about-wolff .row.g-4.gx-5.align-items-center > .col-lg-6:first-child .row.g-4 > .col-6:nth-child(2) {
    flex: 0 1 56% !important;
    width: 56% !important;
  }

  .page-wolff-dental .about-wolff .row.g-4.gx-5.align-items-center > .col-lg-6:first-child .row.g-4 > .col-6 img {
    width: 100% !important;
    max-width: 100% !important;
    height: 220px !important;
  }
}

@media (max-width: 639px) {
  .page-wolff-dental .header_s8 .navbar-header .navbar-brand.wolff-brand,
  .page-wolff-dental .header_default .navbar-header .navbar-brand.wolff-brand {
    max-width: 360px !important;
  }

  .page-wolff-dental .header_s8 .navbar-header .wolff-logo,
  .page-wolff-dental .header_default .navbar-header .wolff-logo {
    height: 74px !important;
    max-width: 360px !important;
  }
}

/* ===== LATEST USER FIX: move complete hero title block (text + slanted orange box) right ===== */
.page-wolff-dental .article-hero h1,
.page-wolff-dental .article-hero.content-image h1,
.page-wolff-dental .mod_article .article-hero h1,
.page-wolff-dental .mod_article .article-hero.content-image h1 {
  left: 44px !important;
  right: auto !important;
  width: auto !important;
  max-width: min(78%, 760px) !important;
  display: inline-block !important;
}

.page-wolff-dental .article-hero h1::before,
.page-wolff-dental .article-hero.content-image h1::before,
.page-wolff-dental .mod_article .article-hero h1::before,
.page-wolff-dental .mod_article .article-hero.content-image h1::before {
  transform: skewX(-10deg) translateX(0) !important;
}

@media (max-width: 991px) {
  .page-wolff-dental .article-hero h1,
  .page-wolff-dental .article-hero.content-image h1,
  .page-wolff-dental .mod_article .article-hero h1,
  .page-wolff-dental .mod_article .article-hero.content-image h1 {
    left: 24px !important;
    right: auto !important;
    max-width: calc(100% - 40px) !important;
  }

  .page-wolff-dental .article-hero h1::before,
  .page-wolff-dental .article-hero.content-image h1::before,
  .page-wolff-dental .mod_article .article-hero h1::before,
  .page-wolff-dental .mod_article .article-hero.content-image h1::before {
    transform: skewX(-8deg) translateX(0) !important;
  }
}

/* ===== LATEST USER FIX: mobile no crop images + less gap Willkommen->images + remove black menu line ===== */
@media (max-width: 991px) {
  /* 1) About images in original proportion (no center crop) */
  .page-wolff-dental .about-wolff .row.g-4.gx-5.align-items-center > .col-lg-6:first-child .row.g-4 > .col-6 img {
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center top !important;
  }

  /* 2) Reduce vertical distance between "Willkommen" text block and image block */
  .page-wolff-dental .about-wolff .row.g-4.gx-5.align-items-center {
    --bs-gutter-y: 0.35rem !important;
  }

  .page-wolff-dental .about-wolff .row.g-4.gx-5.align-items-center > .col-lg-6:first-child,
  .page-wolff-dental .about-wolff .row.g-4.gx-5.align-items-center > .col-lg-6:last-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* 3) Keep only orange separator in opened mobile menu (remove black line source) */
  .page-wolff-dental .header_s8 .ownavigation .navbar-collapse,
  .page-wolff-dental .header_default .ownavigation .navbar-collapse,
  .page-wolff-dental .header_s8 .ownavigation .navbar-collapse.collapse,
  .page-wolff-dental .header_default .ownavigation .navbar-collapse.collapse,
  .page-wolff-dental .header_s8 .ownavigation .navbar-collapse.in,
  .page-wolff-dental .header_default .ownavigation .navbar-collapse.in {
    border: 0 !important;
    border-top: 0 !important;
    box-shadow: inset 0 2px 0 #f29200 !important;
    outline: 0 !important;
  }

  .page-wolff-dental .header_s8 .ownavigation .navbar-collapse::before,
  .page-wolff-dental .header_default .ownavigation .navbar-collapse::before,
  .page-wolff-dental .header_s8 .ownavigation .navbar-collapse::after,
  .page-wolff-dental .header_default .ownavigation .navbar-collapse::after,
  .page-wolff-dental .header_s8 .ownavigation .navbar-nav::before,
  .page-wolff-dental .header_default .ownavigation .navbar-nav::before,
  .page-wolff-dental .header_s8 .ownavigation .navbar-nav::after,
  .page-wolff-dental .header_default .ownavigation .navbar-nav::after {
    display: none !important;
    border: 0 !important;
    content: none !important;
  }
}

/* ===== LATEST USER FIX: desktop hero title with larger edge offset ===== */
@media (min-width: 992px) {
  .page-wolff-dental .article-hero h1,
  .page-wolff-dental .article-hero.content-image h1,
  .page-wolff-dental .mod_article .article-hero h1,
  .page-wolff-dental .mod_article .article-hero.content-image h1 {
    bottom: 48px !important;
  }
}

/* ===== LATEST USER FIX: header height -15% mobile ===== */
@media (max-width: 991px) {
  .page-wolff-dental .header_s8 .ownavigation > .container,
  .page-wolff-dental .header_default .ownavigation > .container {
    min-height: 102px !important;
    padding-bottom: 44px !important;
  }

  .page-wolff-dental .header_s8 .navbar-header .navbar-brand.wolff-brand,
  .page-wolff-dental .header_default .navbar-header .navbar-brand.wolff-brand {
    max-width: 356px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  .page-wolff-dental .header_s8 .navbar-header .wolff-logo,
  .page-wolff-dental .header_default .navbar-header .wolff-logo {
    height: 73px !important;
    max-width: 356px !important;
  }
}

@media (max-width: 639px) {
  .page-wolff-dental .header_s8 .navbar-header .navbar-brand.wolff-brand,
  .page-wolff-dental .header_default .navbar-header .navbar-brand.wolff-brand {
    max-width: 306px !important;
  }

  .page-wolff-dental .header_s8 .navbar-header .wolff-logo,
  .page-wolff-dental .header_default .navbar-header .wolff-logo {
    height: 63px !important;
    max-width: 306px !important;
  }
}

/* ===== LATEST USER FIX: mobile smaller gap below hero + remove remaining black menu line ===== */
@media (max-width: 991px) {
  /* Reduce gap between hero and first content section on mobile */
  .page-wolff-dental .article-hero,
  .page-wolff-dental .mod_article .mod_article__inner > .article-hero {
    margin-bottom: 8px !important;
  }

  .page-wolff-dental .about-wolff {
    padding-top: 8px !important;
  }

  .page-wolff-dental .main-container .mod_article > *:not(.article-hero):first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Remove all black separators in opened mobile nav; keep only orange top line */
  .page-wolff-dental .header_s8 .ownavigation,
  .page-wolff-dental .header_default .ownavigation,
  .page-wolff-dental .header_s8 .ownavigation .navbar-collapse,
  .page-wolff-dental .header_default .ownavigation .navbar-collapse,
  .page-wolff-dental .header_s8 .ownavigation .navbar-collapse.collapse,
  .page-wolff-dental .header_default .ownavigation .navbar-collapse.collapse,
  .page-wolff-dental .header_s8 .ownavigation .navbar-collapse.in,
  .page-wolff-dental .header_default .ownavigation .navbar-collapse.in,
  .page-wolff-dental .header_s8 .ownavigation .navbar-nav,
  .page-wolff-dental .header_default .ownavigation .navbar-nav {
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: inset 0 2px 0 #f29200 !important;
    background-image: none !important;
    outline: 0 !important;
  }

  .page-wolff-dental .header_s8 .ownavigation::before,
  .page-wolff-dental .header_default .ownavigation::before,
  .page-wolff-dental .header_s8 .ownavigation::after,
  .page-wolff-dental .header_default .ownavigation::after,
  .page-wolff-dental .header_s8 .ownavigation .navbar-collapse::before,
  .page-wolff-dental .header_default .ownavigation .navbar-collapse::before,
  .page-wolff-dental .header_s8 .ownavigation .navbar-collapse::after,
  .page-wolff-dental .header_default .ownavigation .navbar-collapse::after,
  .page-wolff-dental .header_s8 .ownavigation .navbar-nav::before,
  .page-wolff-dental .header_default .ownavigation .navbar-nav::before,
  .page-wolff-dental .header_s8 .ownavigation .navbar-nav::after,
  .page-wolff-dental .header_default .ownavigation .navbar-nav::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

/* ===== LATEST USER FIX: keep orange line only on opened menu, not above logo ===== */
@media (max-width: 991px) {
  .page-wolff-dental .header_s8 .ownavigation,
  .page-wolff-dental .header_default .ownavigation,
  .page-wolff-dental .header_s8 .ownavigation .navbar-nav,
  .page-wolff-dental .header_default .ownavigation .navbar-nav {
    border: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
  }

  .page-wolff-dental .header_s8 .ownavigation .navbar-collapse,
  .page-wolff-dental .header_default .ownavigation .navbar-collapse,
  .page-wolff-dental .header_s8 .ownavigation .navbar-collapse.collapse,
  .page-wolff-dental .header_default .ownavigation .navbar-collapse.collapse,
  .page-wolff-dental .header_s8 .ownavigation .navbar-collapse.in,
  .page-wolff-dental .header_default .ownavigation .navbar-collapse.in {
    border: 0 !important;
    border-top: 2px solid #f29200 !important;
    box-shadow: none !important;
    background-image: none !important;
  }
}

/* ===== LATEST USER FIX: mobile text flow with image left/right per text block ===== */
@media (max-width: 991px) {
  .page-wolff-dental .mobile-img-left .image_container,
  .page-wolff-dental .mobile-img-left figure {
    float: left !important;
    width: 42% !important;
    max-width: 42% !important;
    margin: 0 12px 8px 0 !important;
  }

  .page-wolff-dental .mobile-img-right .image_container,
  .page-wolff-dental .mobile-img-right figure {
    float: right !important;
    width: 42% !important;
    max-width: 42% !important;
    margin: 0 0 8px 12px !important;
  }

  .page-wolff-dental .mobile-img-left .image_container img,
  .page-wolff-dental .mobile-img-left figure img,
  .page-wolff-dental .mobile-img-right .image_container img,
  .page-wolff-dental .mobile-img-right figure img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    display: block !important;
  }

  .page-wolff-dental .mobile-img-left::after,
  .page-wolff-dental .mobile-img-right::after {
    content: "";
    display: block;
    clear: both;
  }
}

/* ===== LATEST USER FIX: prevent duplicate images (desktop old block, mobile inline text images) ===== */
/* Desktop: hide inline paragraph images, keep original two-image block */
@media (min-width: 992px) {
  .page-wolff-dental .mobile-img-left > img,
  .page-wolff-dental .mobile-img-right > img {
    display: none !important;
  }
}

/* Mobile: hide original two-image column, show paragraph-bound images only */
@media (max-width: 991px) {
  .page-wolff-dental .about-wolff .row.g-4.gx-5.align-items-center > .col-lg-6:first-child {
    display: none !important;
  }

  .page-wolff-dental .about-wolff .row.g-4.gx-5.align-items-center > .col-lg-6:last-child {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-wolff-dental .mobile-img-left > img {
    float: left !important;
    width: 42% !important;
    max-width: 42% !important;
    height: auto !important;
    margin: 0 12px 8px 0 !important;
    border-radius: 10px !important;
    display: block !important;
  }

  .page-wolff-dental .mobile-img-right > img {
    float: right !important;
    width: 42% !important;
    max-width: 42% !important;
    height: auto !important;
    margin: 0 0 8px 12px !important;
    border-radius: 10px !important;
    display: block !important;
  }

  .page-wolff-dental .mobile-img-left::after,
  .page-wolff-dental .mobile-img-right::after {
    content: "";
    display: block;
    clear: both;
  }
}

/* ===== LATEST USER FIX mobile: keep full-width hero and 2/3 height ===== */
@media (max-width: 991px) {
  .page-wolff-dental .article-hero,
  .page-wolff-dental .mod_article.article-hero,
  .page-wolff-dental .ce_image.article-hero,
  .page-wolff-dental .mod_article .mod_article__inner > .article-hero {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }

  .page-wolff-dental .article-hero img,
  .page-wolff-dental .mod_article.article-hero img,
  .page-wolff-dental .ce_image.article-hero img,
  .page-wolff-dental .mod_article .mod_article__inner > .article-hero > figure > img {
    height: min(44vw, 270px) !important;
    min-height: 145px !important;
    object-fit: cover !important;
  }
}

/* ===== LATEST USER FIX: mobile hero panorama without side clipping ===== */
@media (max-width: 991px) {
  .page-wolff-dental .article-hero img,
  .page-wolff-dental .mod_article.article-hero img,
  .page-wolff-dental .ce_image.article-hero img,
  .page-wolff-dental .mod_article .mod_article__inner > .article-hero > figure > img {
    object-fit: contain !important;
    object-position: center center !important;
    background: #ffffff !important;
  }
}

/* ===== LATEST USER FIX: mobile hero starts directly below header (no top gap) ===== */
@media (max-width: 991px) {
  .page-wolff-dental .article-hero img,
  .page-wolff-dental .mod_article.article-hero img,
  .page-wolff-dental .ce_image.article-hero img,
  .page-wolff-dental .mod_article .mod_article__inner > .article-hero > figure > img {
    object-fit: contain !important;
    object-position: center top !important;
    background: transparent !important;
  }
}

/* ===== LATEST USER FIX: mobile hero headline docked to image bottom ===== */
@media (max-width: 991px) {
  .page-wolff-dental .article-hero,
  .page-wolff-dental .mod_article.article-hero,
  .page-wolff-dental .ce_image.article-hero,
  .page-wolff-dental .mod_article .mod_article__inner > .article-hero {
    position: relative !important;
    overflow: visible !important;
  }

  .page-wolff-dental .article-hero img,
  .page-wolff-dental .mod_article.article-hero img,
  .page-wolff-dental .ce_image.article-hero img,
  .page-wolff-dental .mod_article .mod_article__inner > .article-hero > figure > img {
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center top !important;
  }

  .page-wolff-dental .article-hero h1,
  .page-wolff-dental .article-hero.content-image h1,
  .page-wolff-dental .mod_article .article-hero h1,
  .page-wolff-dental .mod_article .article-hero.content-image h1 {
    top: auto !important;
    bottom: -6px !important;
    left: 18px !important;
    right: auto !important;
    max-width: calc(100% - 36px) !important;
    z-index: 6 !important;
  }
}

/* ===== LATEST USER FIX: mobile hero title slightly lower at image bottom center line ===== */
@media (max-width: 991px) {
  .page-wolff-dental .article-hero h1,
  .page-wolff-dental .article-hero.content-image h1,
  .page-wolff-dental .mod_article .article-hero h1,
  .page-wolff-dental .mod_article .article-hero.content-image h1 {
    bottom: -16px !important;
  }
}
