/* Mobile-only layout fixes for legacy TYPO3 table markup */

/* Float containment inside the news column only — never on table cells */
td.leftcontent > table > tbody > tr > td:first-child,
td.leftcontent > table > tr > td:first-child {
  display: flow-root;
}

/* Blocks after the main table should not clear old floats */
.romlidata,
.romlifooter {
  clear: none !important;
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  body > table[height="100%"] {
    height: auto !important;
  }

  body > table[height="100%"] > tbody > tr,
  body > table[height="100%"] > tr {
    height: auto !important;
  }

  body > table[height="100%"] > tbody > tr > td,
  body > table[height="100%"] > tr > td {
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body > table[width="100%"],
  body > table[width="100%"] > tbody > tr > td,
  body > table[width="100%"] > tr > td {
    width: 100% !important;
    max-width: 100% !important;
  }

  table.head {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
  }

  table.head > tbody > tr,
  table.head > tr {
    display: block;
    width: 100% !important;
  }

  table.head > tbody > tr > td,
  table.head > tr > td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }

  table.head img[src*="blind.gif"] {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
  }

  .head {
    background-size: cover;
    background-position: center top;
  }

  table.head td.svglogo {
    min-height: 110px;
    padding: 8px 10px;
  }

  table.head .topnav {
    padding-left: 8px;
    letter-spacing: 0;
    white-space: normal;
    font-size: 9px;
    line-height: 1.5;
  }

  table.head .linkbar {
    padding: 4px 8px;
    font-size: 10px;
    line-height: 1.5;
    word-break: break-word;
  }

  table.head .brd table,
  table.head .brd table tbody,
  table.head .brd table tr {
    display: block;
    width: 100% !important;
  }

  table.head .brd table td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }

  table.head .navi {
    padding: 6px 8px !important;
    white-space: normal !important;
    line-height: 1.6;
    font-size: 10px;
    letter-spacing: 0.05em;
  }

  table.head .jsmenu {
    padding: 4px 8px 8px !important;
    text-align: left !important;
    border-bottom: 0;
  }

  table.head .jsmenu select {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  td.leftcontent {
    height: auto !important;
    overflow: hidden;
  }

  .leftcontent > table > tbody > tr > td,
  .leftcontent > table > tr > td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  .leftcontent > table > tbody > tr > td[width="250"],
  .leftcontent > table > tr > td[width="250"] {
    margin-top: 16px;
  }

  .leftcontent div[align="right"],
  .leftcontent table[align="right"] {
    text-align: left;
  }

  .leftcontent > br {
    display: none;
  }

  table.newslist {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
  }

  table.newslist td {
    width: auto !important;
    max-width: 100% !important;
    word-wrap: break-word;
  }

  table.newslist .newsimg {
    width: auto !important;
  }

  table.newslist .newsimg table[align="left"] {
    float: none;
    margin: 0 0 8px !important;
  }

  section,
  footer,
  footer > div {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .romlidata {
    grid-template-columns: 1fr !important;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  table {
    max-width: 100%;
  }
}

@media (min-width: 769px) {
  body > table[height="100%"] {
    height: auto !important;
  }

  table.head {
    width: 945px !important;
  }

  footer.site-footer {
    width: 945px;
    max-width: 945px;
    box-sizing: border-box;
    margin-top: 16px;
  }
}

.site-footer {
  background: #003366;
  color: #fff;
  font-family: Verdana, Arial, sans-serif;
  font-size: 11px;
}

.site-footer-inner {
  padding: 16px 20px;
  text-align: center;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
}

.site-footer-copy {
  margin-top: 8px;
  color: #b1c7d0;
}
