/* Gemeinsame Smartphone-Anpassungen fuer das historische Seitentemplate. */
@media (max-width: 700px) {
  html,
  body {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    overflow-x: hidden;
  }

  #main-tail-bot,
  #main-bg-top,
  #main {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #main {
    padding: 0 8px;
  }

  header,
  #page1 header {
    box-sizing: border-box;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    padding-top: 271px !important;
    overflow: visible !important;
  }

  header h1,
  body header h1 {
    top: 30px !important;
    left: 12px !important;
    width: calc(100% - 24px);
  }

  header h1 a,
  body header h1 a {
    width: 100% !important;
    max-width: 433px;
    height: 37px;
    background-size: contain !important;
  }

  #navi {
    display: none !important;
  }

  header > nav,
  body header > nav,
  nav {
    top: 95px !important;
    left: 0 !important;
    width: 100% !important;
    height: 176px !important;
    overflow: visible !important;
    background-color: #c7c9ce;
  }

  nav ul {
    display: flex !important;
    flex-wrap: wrap;
    width: 100% !important;
    height: 176px;
    overflow: visible !important;
  }

  nav ul li,
  nav ul li.memorial-menu,
  nav ul li:has(a[href="news.html"]),
  nav ul li:has(a[href="news_php.html"]) {
    box-sizing: border-box;
    flex: 0 0 50% !important;
    width: 50% !important;
    height: 44px;
    min-width: 0;
    order: 0;
  }

  nav ul li#m1 { order: -2; }
  nav ul li.memorial-menu { order: -1; }

  nav ul li a,
  nav ul li a span,
  nav ul li a b {
    box-sizing: border-box;
    width: 100% !important;
  }

  nav ul li a span,
  nav ul li.memorial-menu a span,
  nav ul li a[href="news.html"] span,
  nav ul li a[href="news_php.html"] span {
    padding-left: 34px !important;
    font-size: 16px !important;
    letter-spacing: -0.5px;
    white-space: nowrap;
  }

  #faded,
  body #faded {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  #faded img,
  main img,
  article img,
  video {
    box-sizing: border-box;
    max-width: 100%;
    height: auto;
  }

  #faded table,
  #faded tbody,
  #faded tr,
  #faded td {
    box-sizing: border-box;
    max-width: 100%;
  }

  #faded p,
  #faded td,
  #faded h1,
  #faded h2,
  #faded h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  footer,
  .memorial-footer {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  div[style*="footeri.png"] {
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    padding: 28px 12px !important;
    overflow: hidden;
  }

  div[style*="footeri.png"] table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    table-layout: fixed;
  }

  div[style*="footeri.png"] td {
    width: 33.333% !important;
    max-width: 33.333%;
    overflow-wrap: anywhere;
  }

  div[style*="footeri.png"] .uberschrift {
    font-size: 14px;
  }

  div[style*="footeri.png"] .textefooter {
    margin-left: 0;
    font-size: 12px;
  }

  div[style*="footeri.png"] img {
    max-width: 100%;
    height: auto;
  }

  iframe {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Leere Desktop-Werbeflaechen auf der Ladies-Seite. */
  body > div[style*="position:absolute"][style*="margin-left"],
  #main > div[style*="position:absolute"][style*="margin-left"] {
    display: none !important;
  }
}

@media (max-width: 420px) {
  nav ul li a span,
  nav ul li.memorial-menu a span,
  nav ul li a[href="news.html"] span,
  nav ul li a[href="news_php.html"] span {
    padding-left: 30px !important;
    font-size: 14px !important;
  }
}
