/* Siehe auch ganz unten: Safari-CSS-Hack für linken Rand */

@media print {
  * html {
    overflow-x: auto;
  }

  html, body {
    height: 0%;
    min-height: 0%;
    padding: 0;
    margin: 0;
    background-image: none;
    background: #fff;
    color: #000;
    /* width: 21cm !important; /* A4 */
    /* height: 29.7cm !important; /* A4 */
  }

  @page {
    margin-top: 3em;
    margin-bottom: 5em;
    size: 21cm 29.7cm; /* A4 */
  }

  #normenformular {
    display: none;
  }

  .bdy_margin {
    margin: 0;
  }

  a, a:link, a:visited {
    color: #000;
    text-decoration: none;
  }

  sup a, sup a:link, sup a:visited {
    text-decoration: none;
  }

  a.Urteilsvernetzung {
    text-decoration: none;
    border-bottom: 0 !important;
  }

  h1, .idvDOKUMENTTITEL {
    font-size: 13pt;
  }

  h2, .idvDOKUMENTH2 {
    font-size: 12pt;
  }

  h3 {
    font-size: 11pt;
  }

  #main, #content, #content_plain, .content {
    width: 100%;
  }

  #content, #content_plain, .content {
    position: relative;
    left: 0;
    top: 0;
    padding: 0 -20px 0 20px;
  }

  .content {
    box-sizing: border-box;
    z-index: 0;
  }

  .doktyp {
    border-bottom: 1px solid #000;
    background: none;
    margin: 0;
    padding: 0;
  }

  #absBottom, #Bemerkungen, #BemerkungenTA, .BeitragshinweisAussen, #navi, #head, #suche, #gesamtportal, #zg_nav, .dokf_zglink, #rechts, .BeitragshinweisAussen, #suchtipp_link, #divSuchtipps, #aktion, .printfassung, .noprint, img[src='/bilder/icon-merker.gif'], img[src='/bilder/icon-fenster.gif'], #navi_left {
    display: none;
  }

  .notvisible {
    display: none;
  }

  p.idvDOKUMENTABSATZ, p.idvDOKUMENTABSATZ_ohne_Randziffer {
    text-align: justify;
  }

  .printlogo {
    display: block;
  }


  .dokfenster_no_print {
    background-image: none;
  }

  .RdnDokFenster {
    margin-left: -30px;
  }

  table.rnr td {
    border: 1px solid #fff;
  }

  table.b1 td {
    border: solid 1px black;
    margin: 0px;
    padding: 4px 7px 4px 7px;
  }

  pre {
    overflow-x: auto;
    white-space: pre-wrap;
    white-space: -moz-pre-wrap !important;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
  }

  .content {
    padding-left: 22px;
  }

  .rnr_content {
    padding-left: 0;
  }

  /* Für extern eingefügtes HTML (zusatztexte-gesetze)*/
  table.m1, table.m2 {
    border-collapse:collapse;
    margin: 1px;
    width: 99% !important;
  }

  table.m1 td, table.m2 td {
    border: solid 1px black;
    margin: 0;
    padding: 4px 7px 4px 7px;
    vertical-align: middle;
  }

  .w13 {
    width: 13px;
  }

  table.m2 td {
    vertical-align: top;
  }

  span.fn0 {
    color: #333;
  }
}

/* Safari-CSS-Hack für linken Rand */
/* Safari 10.1+ (which is the latest version of Safari at this time) */
@media not all and (min-resolution:.001dpcm) { @media print {
    .bdy_margin {
      margin-left: 1cm;
    }
}}
