﻿/*

    Die Datensatzliste wurde als Ersatz für die Tabelle eingeführt, um auch in mobilen
    Umgebungen Datensätze besser darstellen zu können. Herkömmliche Tabellen schreiben einen Datensatz
    in eine Zeile, was schnell zum unübersichtlichen Scrollen führt.
    Die Datensatzliste hingegen ist als Beschreibungsliste aufgebaut und bricht die einzelnen Felder eines Datensatzes
    bei Bedarf um.

	Quelle Zeilenlinien als Hintegrgrund:
	https://stackoverflow.com/questions/46506127/how-to-make-css-background-grid-lines

*/

@media  all
{        

    /* D A T E N S A T Z L I S T E */
    
    #DIV-100
    {
        width:100%;
        
        clear:left;
        float: left;
        
		margin: 10px 0 10px 0;
	    padding: 0 0 0 0;
	    /*top right bottom left*/
	    
    }
    
    #DIV-100>div
    {
        /* Datensatz */
        
        clear:left;
        float: left;
        /*  Wichtig: Sonst werden die Datensätze nicht unmittelbar untereinander angeordnet, sondern mit Zwischenraum!  */
        
        width: 100%;	
        display:inline-block;
            
		margin: 0 0 15px 0;
	    padding: 0 0 0 0;
	    /*top right bottom left*/
	    
	    font-size:0.75rem;

    }
    
    
    #DIV-100>div>div:first-child
    {
        /* Datensatzkopf */
        
        width:98%;
        
        clear:left;
        float: left;
        
        padding: 5px 1% 5px 1%;
	    /*top right bottom left*/
	    
        background-color:#C9C7C8;/**/
        background-color:#AAAAAA;/**/
         background-color:#D2D2D2;/**/
       
	    /*border:1px solid #ABA6A9;*/

	    
	    color:#FFFFFF;/**/
	    
	    font-size: 1rem;
	    font-weight:bold;
        
	    border-left:1px solid #ABA6A9;/**/
	    border-right:1px solid #ABA6A9;/**/
	    border-top:1px solid #ABA6A9;/**/
	    border-bottom:1px solid #B40064;/**/
    }
    
    
    #DIV-100>div>div:first-child.DSL-01:hover
    {
        /* klickbarer Datensatzkopf */
		/* Die Klasse DSL-01 wird durch jquery hinzugefügt */
    
		background-color:Aqua;
 	    background-color: #EBEBEB;
	    
	    cursor: pointer;

	    border-bottom:1px solid #00B5A9;/**/


	}
    
    #DIV-100>div>div:first-child.DSL-01:hover a
    {

        /* Link in einem klickbarer Datensatzkopf */
		/* Der Link innerhalb des klickbaren Kopfes soll, wenn der Kopf überfahren wird in grün umschlagen, so wie es auch bei einem einzelnen Link der Fall ist. */
    
		color: #00B5A9;

	}

    #DIV-100>div:first-child>div:first-child
    {
        /* 1. Datensatzkopf */

    }
    
    
    
    #DIV-100>div>div:nth-child(2)
    {
        /* Kommandozeile */
        
        width: 100%;
        
        clear:left;
        float:left;
        
        
	    margin: 0 0 0 0;
	    padding: 0 0 0 0;
	    /*top right bottom left*/
	    vertical-align:middle;
        

		background: linear-gradient(to top, #ABA6A9 1px, transparent 1px) left top, #E5E3E4;
		background-size: 100% 1.5rem;


	    border-left:1px solid #ABA6A9;/**/
	    border-right:1px solid #ABA6A9;/**/
	    
	    font-size:0.75rem;
	    
    }
    
    #DIV-100>div>div:nth-child(2) a
    {
        /* Kommandozeile Link */
        
	    height: 1rem;
	    
	    display: block;
        float:left; 
	    text-decoration: none;
	    
	    padding: 0.25rem 0.5rem 0.25rem 0.5rem;
	    /*top right bottom left*/
	
	    /*border-bottom-width: 1px;
	    border-bottom-style: solid;
	    border-bottom-color: #6890BE;*/
	
	    border-right:1px solid #ABA6A9;/**/
	    
	    font-size:0.75rem;/**/
	    color:#B40064;/**/
        
    }
    
    #DIV-100>div>div:nth-child(2) a:hover
    {
        /* Kommandozeile Link hover */
        
		height: calc(1rem - 1px);

	   background-color: #00B5A9; 
	   border-bottom:1px solid #ABA6A9;/**/

	   color:#FFFFFF;/**/

    }
    
    
    #DIV-100>div>div:nth-child(3)
    {
        /* Listenkörper */
        
        clear:left;
        float: left;
        /*
            Wichtig, sonst werden die Div-Elemente nicht unmittelbar aneinander gezeichnet, sondern es bleibt
            ein unerklärlichern Zwischenraum!
        */
        
        width: 100%;
        display: inline-block;
  	    
		margin: 0 0 0 0;
	    padding: 0 0 0 0;
	    /*top right bottom left*/
  
	    border-left:1px solid #ABA6A9;/**/
	    border-right:1px solid #ABA6A9;/**/

		background: linear-gradient(0deg, #ABA6A9 1px, transparent 1px) left top, #FFFFFF;
		background: linear-gradient(to top, #ABA6A9 1px, transparent 1px) left top, #FFFFFF;
		background-size: 100% 2.25rem;


    }

    
    
    #DIV-100>div>div:nth-child(3):hover
    {
		background: linear-gradient(to top, #ABA6A9 1px, transparent 1px) left top, #EBEBEB;
 		background-size: 100% 2.25rem;
   }
    
    
    
    #DIV-100>div>div:nth-child(3)>div
    {
        /* Datensatzfeld */
        
        float:left;
        height: 1.75rem;

        /*
            0.25rem = 8px Schrifthöhe Beschriftung + 12px Schrifthöhe Daten + 5px Abstand bzw unterer Rand der Beschriftung
            35px = 25px Höhe + 2x5px padding
        */
	    
		margin: 0 0 0 0;
	    padding: 0.25rem 0.25rem 0.25rem 0.25rem;
	    /*top right bottom left*/
	    
	    width: auto;
	    
	    border-right:1px solid #ABA6A9;/**/
	    
	    overflow:hidden;
    }

    
    
    #DIV-100>div>div:nth-child(3)>div>span:first-Child
    {
        /* Beschriftung innerhalb des Datensatzfeld */
        
        clear:left;/**/
        float:left;
        
		margin: 0 0 0.25rem 0;
	    /*top right bottom left*/
	    
	    font-size:0.5rem;
	    font-style:italic;
    }

    
    
    #DIV-100>div>div:nth-child(3)>div>span:nth-child(2)
    {
        /* Daten im Datensatzfeld */
        
        clear:left;/**/
        float:left;
	    
	    font-size:0.75rem;
    }

}



/*mobil*/
@media only screen and (max-width: 640px)
{
    
    
    
}



/*stationär*/
@media  only screen and (min-device-width: 641px) 
{
    
    
    
}



@media  print
{
    
    

}