/* Let complete model names and measured values move to the next line together. */
main .rh247-keep {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

/* Hide the mobile duplicate without removing the original semantic desktop table. */
main .rh247-models { display: none; }

@media (max-width: 767px) {
  main .rh247-table-wide { display: none !important; }
  main .rh247-table-two {
    inline-size: 100%;
    max-inline-size: 100%;
  }
  main .rh247-table-two > table {
    table-layout: fixed;
    width: 100% !important;
    min-width: 0 !important;
  }
  main .rh247-table-two > table :is(th, td) {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-inline: clamp(6px, 2.2vw, 12px) !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  main .rh247-table-two > table :is(th, td):first-child { width: 46% !important; }

  main .rh247-models {
    display: grid;
    gap: 9px;
    min-width: 0;
    margin: 15px 0 22px;
  }
  main .rh247-model {
    min-width: 0;
    border: 1px solid var(--line, #d8dfe3);
    border-radius: 7px;
    background: #fff;
    color: #17232c;
  }
  main .rh247-model > summary {
    padding: 12px;
    cursor: pointer;
    display: list-item;
    list-style-position: inside;
    font-weight: 700;
    overflow-wrap: anywhere;
  }
  main .rh247-model > summary::marker { color: #a91a3e; }
  main .rh247-model > summary:focus-visible { outline: 2px solid #a91a3e; outline-offset: -2px; }
  main .rh247-model > dl { margin: 0 12px 9px; }
  main .rh247-model > dl > div {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 6px 10px;
    padding-block: 8px;
    border-top: 1px solid #e5e9eb;
  }
  main .rh247-model :is(dt, dd) {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
  }
  main .rh247-model dt { font-weight: 700; }
  main .rh247-model .rh247-model-link { margin: 0 12px 9px; }
}

/* Existing Gau Jing model tables: a model code must fit as a unit in laptop/landscape mode. */
@media (min-width: 768px) and (max-width: 960px) {
  main .rnp-gj-desktop-specs table :is(th, td) { padding-inline: 9px; }
}

/* Make both original German labels fit; retain the original links and accessible names. */
@media (max-width: 359px) {
  html:lang(de) .navbar.navbar-main .navbar-secondary > .container > .navbar-contact {
    flex-wrap: nowrap;
    min-width: 0;
    padding-inline: 3px;
  }
  html:lang(de) .navbar.navbar-main .navbar-secondary > .container > .navbar-contact > a {
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: .76rem;
  }
  html:lang(de) .navbar.navbar-main .navbar-secondary > .container > .navbar-contact > a.btn {
    margin-inline: 0 4px;
    padding-inline: 8px;
  }
  html:lang(de) .navbar.navbar-main .navbar-secondary > .container > .navbar-contact > a.phone {
    padding-inline: 4px;
  }
}
