/** special treatment on very small displays
    for the button in myorders to hide/show the orders **/
@media only screen and (max-width: 285px) {
  #order_show {
    margin: 5px;
  }
}

/** Styles for all window sizes smaller than normal **/
@media only screen and (max-width: 450px) {
  #overviewCards .dvz-contenttype-infobox {
    width: calc(100% - 30px);
  }
  .flexbox .four {
    display: block;
    width: 100% !important;
  }
}

/** Styles for all window sizes smaller than normal **/
@media only screen and (min-width: 451px) and (max-width: 768px) {
  #overviewCards .dvz-contenttype-infobox {
    width: calc(50% - 30px);
  }
}

/** Styles for all window sizes smaller than normal **/
@media only screen and (max-width: 1170px) {
  /** pages with DlaDownloadApp (e.g. DOP) **/

  #dlaDownload #dlObjects,
  #dlaDownload #dlObjects #dlObjectList {
    min-height: 200px !important;
    height: 200px !important;
    max-height: 200px !important;
  }

  div#warenkorb_div h3 {
    margin-top: 30px;
  }

  #warenkorb_table td.rightalign,
  #warenkorb_table td.centeralign,
  #warenkorb_table td,
  #warenkorb_table th.rightalign,
  #warenkorb_table th.centeralign,
  #warenkorb_table th {
    display: block;
    width: 100% !important;
    padding-right: 10px;
    text-align: left !important;
    border-bottom: 1px solid #287da7;
  }

  #warenkorb_table_costs td {
    display: block;
    width: 100% !important;
    padding-right: 10px;
    text-align: left !important;
  }

  #warenkorb_table td.checkbox {
    border-bottom: 0px;
    padding-left: 5px;
    width: 20%;
  }

  td.smallleftpadding,
  th.smallleftpadding {
    padding-left: 7px !important;
  }

  /** Cart & (My)Orders **/

  td.checkbox {
    padding-bottom: 10px;
  }
  td.checkbox input {
    width: 20px;
  }
  select#myorderssortselect {
    margin: 10px;
  }
  input.myorderssortradio,
  label.displayinline {
    margin-top: 20px !important;
  }
  label.displayinline::after {
    content: "\A";
    white-space: pre;
  }
  .weiss {
    border-top: 0px !important;
  }
  .blau {
    border-top: 0px !important;
  }
  #uekdiv,
  #cartdiv p {
    font-size: 1em !important;
  }
  div.bestelldiv table td {
    display: block;
    width: 100% !important;
    text-align: left !important;
  }
  div.bestelldiv table td#carttable_versand {
    border-bottom: 3px solid #287da7 !important;
  }
  table#shoppingcart {
    width: 96%;
  }
  table#shoppingcart td {
    display: block;
    width: 96%;
  }
  table.auswahl tr,
  table.auswahl td {
    display: inline !important;
    padding-right: 15px !important;
  }
}

/** DlaDownloadApp additions for different window sizes **/
@media only screen and (max-width: 378px) {
  #dlaDownload #dlObjects,
  #dlaDownload #dlObjects #dlObjectList {
    width: 250px;
    max-width: 250px;
    font-size: 1.2em !important;
  }
  #glMap,
  .map {
    width: 250px;
    max-width: 250px;
  }
  #warenkorb_div {
    margin: 15px;
    padding: 5px;
    font-size: 1.2em !important;
    display: inline;
  }
  div#warenkorb_div table#warenkorb_table {
    width: 100%;
  }
  div.scaleBox {
    display: none;
  }
}
@media only screen and (min-width: 380px) and (max-width: 450px) {
  #dlaDownload #dlObjects,
  #dlaDownload #dlObjects #dlObjectList {
    width: 360px;
    max-width: 360px;
    font-size: 1.2em !important;
  }
  #glMap,
  .map {
    width: 360px;
    max-width: 360px;
  }
  #warenkorb_div {
    margin: 15px;
    padding: 0;
    font-size: 1.2em !important;
    display: inline;
  }
  div#warenkorb_div table#warenkorb_table {
    width: 100%;
  }
  div.scaleBox {
    display: none;
  }
}
@media only screen and (min-width: 452px) and (max-width: 500px) {
  #dlaDownload #dlObjects,
  #dlaDownload #dlObjects #dlObjectList {
    width: 400px;
    max-width: 400px;
    font-size: 1.2em !important;
  }
  #glMap,
  .map {
    width: 400px;
    max-width: 400px;
  }
  #warenkorb_div {
    margin: 15px;
    padding: 0;
    font-size: 1.2em !important;
    display: inline;
  }
  div.scaleBox {
    display: none;
  }
}
@media only screen and (min-width: 502px) and (max-width: 640px) {
  #dlaDownload #dlObjects,
  #dlaDownload #dlObjects #dlObjectList {
    width: 500px;
    max-width: 500px;
    font-size: 1.2em !important;
  }
  #glMap,
  .map {
    width: 500px;
    max-width: 500px;
  }
  #warenkorb_div {
    margin: 15px;
    padding: 0;
    font-size: 1.1em !important;
    display: inline;
  }
}
@media only screen and (min-width: 642px) and (max-width: 768px) {
  #dlaDownload #dlObjects,
  #dlaDownload #dlObjects #dlObjectList {
    width: 640px;
    max-width: 640px;
    font-size: 1.2em !important;
  }
  #glMap,
  .map {
    width: 640px;
    max-width: 640px;
  }
  #warenkorb_div {
    margin: 15px;
    padding: 0;
    font-size: 1.2em !important;
    display: inline;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1018px) {
  #dlaDownload #dlObjects,
  #dlaDownload #dlObjects #dlObjectList {
    width: 540px;
    max-width: 540px;
    font-size: 1em !important;
  }
  #glMap,
  .map {
    width: 540px;
    max-width: 540px;
  }
  #warenkorb_div {
    margin: 15px;
    padding: 0;
    font-size: 1em !important;
    display: inline;
  }
  #overviewCards .dvz-contenttype-infobox {
    width: calc(33% - 30px);
  }
}
@media only screen and (min-width: 1020px) and (max-width: 1170px) {
  #dlaDownload #dlObjects,
  #dlaDownload #dlObjects #dlObjectList {
    width: 710px;
    max-width: 710px;
    font-size: 1em !important;
  }
  #glMap,
  .map {
    width: 710px;
    max-width: 710px;
  }
  #dlObjectType {
    font-size: 1.3em !important;
    margin-top: 10px;
    display: inline;
  }
}
