

body {
   /* width: auto;
    height: auto;
     margin: 0;
    padding: 10px;
    -webkit-print-color-adjust: exact;
    */
    font-family: sans-serif;
    font-size: 13px;
}


.table-middel-header{
  font-weight: bold;
  background-color: #7baec3;
  /*color: white;*/
}

.gleichstellung_item_toggle{
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.gleichstellung_headline_toggle{
  width: 80%;
}

.gleichstellung_content_toggle{
  margin-top: 0rem;
}

.gleichstellung_button_toggle{
  flex-shrink: 0;
  height: 3rem;
  min-height: unset;
  padding: 0;
  width: 3rem;
}

#menu_farbgebung_karten1 {
  border: 1px solid #555;
  background-color: #fff;
  color: #000;
  padding: 6px 10px;
  border-radius: 5px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  font-size: 14px;
}

#menu_farbgebung_karten1:focus {
  border-color: #007bff;
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.5);
  outline: none;
}

label[for="menu_farbgebung_karten1"] {
  display: block;       
  margin-bottom: 0.7rem; 
}

label[for="menu_farbgebung_karten1"] {
  display: block;       
  margin-bottom: 0.7rem; 
}
.grafikLegendPie{
  border: 1px solid #ccc;
  background-color: rgba(98%,98%,98%,0.9);
  padding: 10px;
}


.legend-half{
  column-count: 2; 
}

.chart-legend-entry {
  min-height: 30px;
  
  margin: 0;
  -webkit-column-break-inside: avoid; /* Chrome, Safari */
  page-break-inside: avoid;           /* Theoretically FF 20+ */
  break-inside: avoid-column;         /* IE 11 */
  display:table;                      /* Actually FF 20+ */
}


.chart-legend-entry .chart-legend-label{
    display: block;
    min-height: 20px;
    margin-left: 47px; 
    font-size: 11px;
    padding-top: 3px;
    vertical-align: middle;
    margin-bottom: 5px;
}



.chart-legend-entry rect {
  width: 100%;
  height: 100%;
}


.chart-legend-colorbox-svg {
  padding: 0px;
  float: left;
  display: inline-block;
  width: 30px;
  height: 18px;
  margin-left: 7px;
  margin-right: 7px;
  margin-top: 4px;
}

.chart-legend-colorbox-svg {
  padding: 0px;
  float: left;
  display: inline-block;
  width: 30px;
  height: 18px;
  margin-left: 7px;
  margin-right: 7px;
  margin-top: 4px;
}

.chart-nocaption{
  display: none;
}

.table-content{
  overflow-x:auto;
}


table td.vleft {
  text-align: left;
  font-weight: bold;
}


/* zeigt tooltip bei piecharts an */
.typ_piechart g.c3-chart g.c3-event-rects rect.c3-event-rect {
  pointer-events: none;
}


.typ_kombichartscatter .c3-line{
  display: none;
}


.mapsvg{ 
  width: 100%;
  padding-top: 20px;
}

.div_vorne{
  z-index: 11;
  font-size: 14px;
  padding: 5px;
  display: block;
}

.div_vorne select{
  padding: 5px;
  border-radius: 5px;
}

.menu_farbe {
    z-index: 12;
    border: 1px solid black;
}

.menu_farbe_schrift{
  font-size: larger; 
  margin-bottom: 0.7rem; 
}

.mapmap.geometry{
  border: 1px solid blue;
}

.mapLegend h3{
    margin-top: 5px;
    margin-bottom: 10px;
}


.grafikContainer{
	margin: 0px;
}

.legendCell.undefined {
    margin-top: 0.5em;
}

@media (min-width: 800px) {
  
  .grafik_neu {
    width: 75%;
    height: 500px;
  }

  .grafikContainer{
    position: relative;
    display: inline-block;
    width: 100%;
	margin: 0%;
  }

  .grafikContainerHalb{
    position: relative;
    display: inline-block;
    width: 48%;
	margin: 0%;
  }
  
  .grafikLegend {
    width: 23%;
    position: absolute;
    z-index: 1;
    top: 3%;
    right: 1%;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: rgba(98%,98%,98%,0.9);
  }
  
  .donutLegend {
    width: 100px;
    position: absolute;
    z-index: 1;
    top: 42%;
    right: 55%;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: rgba(98%,98%,98%,0.9);
  }
  
  

  
  .mapLegend {
    width: 50%;
    position: absolute;
    z-index: 1;
    top: 15%;
    left: 2%;
    padding: 7px;
    border: 1px solid #ccc;
    background-color: rgba(98%,98%,98%,0.9);
    margin-bottom: 100px;
    
  }
  
  .main-container {
    margin: auto;
    width: 800px;
    padding: 20px;
    
  }

  .mapContainer{
    position: relative;
    display: inline-block;
    width: 48%;
    height: 300px;
	  margin: 0%;
   // border: 1px solid blue;
  }

  .mapContainerSingle {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0%;
    height: 500px;
    margin-top: -0.5rem;
    border: 1 px solid green;
  }
  
  svg.mapmap {
    width: 140%;
    margin-left: -160px;
    margin-top: 150px;
    z-index: 3;
  }

  

}


@media (max-width: 799px) {

  .donutLegend {
    order: 2;
    width: 100px;
    position: static;
    bottom: 28%;
    right: 35%;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: rgba(98%, 98%, 98%, 0.9);
  }

  .grafikContainer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
  }

  .grafikLegend {
    order: 2;
    display: block;
    max-width: 100%;
    box-sizing: border-box;
    margin: 4rem auto 1rem auto;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: rgba(98%, 98%, 98%, 0.9);
    position: static;
  }

  

  .grafik_neu {
    order: 1;
    width: 100%;
    flex: 1 1 auto;
    height: auto;
    margin-top: 3rem;
    margin-bottom: 1rem; 
  }

  

  #torte_w.grafik_neu {
    margin-bottom: 2rem;
  }

  .grafikContainerHalb {
    position: relative;
    display: inline-block;
    margin: 0%;
    width: 100%;
  }

  .main-container {
    width: 96%;
    padding: 1%;
  }

  .menu_farbe {
    z-index: 12;
    width: 100%;
  }

  .mapLegend {
    width: 100%;
    position: static;
    border: 1px solid #ccc;
    background-color: rgba(98%, 98%, 98%, 0.9);
    font-size: 10px;
    padding: 10px;
    margin: 2rem auto 0 auto; 
    display: block;
    text-align: left;
  }

  .mapLegend h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
  }

  .mapContainer {
    position: relative;
    display: inline-block;
    width: 100%;
    height: auto;
    margin: 0%;
    margin-bottom: 1rem;
    margin-top: 2rem;
  }

  .mapContainerSingle {
    position: relative;
    display: inline-block;
    width: auto;
    height: auto;
    margin: 0%;
    
  }

  .geometry {
    width: 90%;
    border: 1px solid blue;
  }

  .mapContainerSingle h3 {
    margin-bottom: 0.5rem;
  }

  svg.mapmap {
    width: 190%;
    margin-left: -45%;
    margin-top: 15px;
    z-index: 3;
  }

  
  
  .km1-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .grafikContainerHalb:not(:first-of-type) {
    margin-top: 2rem;
  }

  .legendzeitreihe.grafiklegend {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: flex-start;
    width: 100%;
    order: 2;
    margin-top: 0;
    margin-bottom: 0.5rem;
    padding: 0;
  }

  .legend {
    margin: 0;
    padding: 0;
    align-self: flex-start; 
  }

  .km1-heading.km1-heading--2.km1-table__heading {
    margin-bottom: 2rem;
  }



 
  figure.grafikContainer .grafik_neu {
    order: 1;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
  }


  figure.grafikContainer .grafikLegend {
    order: 2;
    display: block;
    width: 100%;
    margin: 0;
    position: static;
  }

  figure.grafikContainer {
    display: flex;
    flex-direction: column;
    gap: 1rem; 
    margin-top: 1.5rem;
  }

  
  figure.grafikContainer > .grafik_neu   { order: 1; margin: 0 !important; }
  figure.grafikContainer > .grafikLegend { order: 2; display: block; width: 100%; margin: 0 !important; position: static; }


  figure.grafikContainer > #zeitreihe.grafik_neu,
  figure.grafikContainer > #torte_w.grafik_neu {
    margin-bottom: 0 !important;
  }

  .map_copyright {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  figure.grafikContainer.typ_kombichartline .grafik_neu + .grafikLegend {
    margin-top: 0 !important;   
  }
  
  
  figure.grafikContainer.typ_kombichartline .grafik_neu {
    margin-bottom: 0 !important;
  }
  
  
  figure.grafikContainer.typ_kombichartline .grafikLegend {
    margin-left: 0 !important;
    margin-right: 0 !important;

  }

}


@media print {
  
  .main-container {
    margin: auto;
    width: 800px;
    background-color: #FFFFFF;
    padding: 10px;
    
  }

  .grafik_neu {
    width: 75%;
    height: 500px;
  }

  .grafikContainer{
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0%;
  }
  
  .grafikContainerHalb{
    position: relative;
    display: inline-block;
    /*background-color: #00CCCC;*/
    width: 48%;
    margin: 0%;
  }
  
  .chart-legend-entry rect {
    padding: 7px;
    float: left;
    display: inline-block;
    width: 10px;
    height: 7px;
    margin-left: 7px;
    margin-right: 7px;
    margin-top: 5px;
    border: 1px solid grey;
  }
  
  .grafikLegend {
    width: 23%;
    position: absolute;
    z-index: 1;
    top: 3%;
    right: 1%;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: rgba(98%,98%,98%,0.9);
  }
  
  .donutLegend {
    width: 100px;
    position: absolute;
    z-index: 1;
    top: 42%;
    right: 55%;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: rgba(98%,98%,98%,0.9);
  }
  
  

  
  .mapLegend {
    width: 50%;
    position: absolute;
    z-index: 1;
    top: 15%;
    left: 2%;
    padding: 7px;
    border: 1px solid #ccc;
    background-color: rgba(98%,98%,98%,0.9);
    margin-bottom: 100px;
    
  }
  


  .mapContainer{
    position: relative;
    display: inline-block;
    width: 48%;
    height: 300px;
	margin: 0%;
   // border: 1px solid blue;
  }

  .mapContainerSingle {
    position: relative;
    display: inline-block;
    width: 100%;
	margin: 0%;
    height: 500px;
  }
}
