/* globale Einstellungen first level
==================================================================================================================================================*/
body {
    
    border-radius: 0.5em;
    border-width: 6px;
    border-color: rgb(210, 207, 207);
    background-color: rgb(255,255,255);
    border-style: solid;
    padding: 5px;
    
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: rgb(25, 25, 25);
    margin: 0 auto;
    display: grid;
    gap: 4px;
    grid-template-columns: 1.5fr 8fr 1.5fr;	
    grid-template-rows: auto 1fr 100px;
    max-width: 200em;
    min-height: 60em;
}


/* globale Einstellungen second level
==================================================================================================================================================*/
    nav,
    main,
    article,
    section,
    aside,
    footer {
        border-radius: 0.5em;
        border: thin solid;
        padding: 10px;
        gap: 0.8em;
    }

/* Header Einstellungen
==================================================================================================================================================*/
header {
    border: none;
    background-color: white;
}
header > img {
    max-width: 100%;
    height:auto;
}

div.headerbutton {
    padding: 80px 0 0 140px;
    visibility: visible;
}

/* Popup-Fenster Einstellungen
----------------------------------------------------------------------------------*/
header > .popupmenu .content {
    position: absolute;
    top: 15%;
    left: 90%;
    transform: translate(-50%,-150%) scale(0);
    width: 150px;
    height: auto;
    text-align: left;
    padding: 10px;
    border-color: rgb(210, 207, 207);
    border-style: solid;
    border-width: 3px;
    border-radius: 10px;
    background: #ffffff;
    z-index: 1;
}

header > .popupmenu .content > p {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 1em;
}

header > .popupmenu .content > p.H1 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: x-large;
    font-style: italic;
    font-weight: bold;
}

header > .popupmenu.active .content {
    transition: all 300ms ease-in-out;
    transform: translate(-50%,-50%) scale(1);
}


header .link-button {
    background: none;
    border: none;
    font-weight: bold;
    font-size: 1em;
    line-height: 2em;
    color: blue;
    margin-left: 2px;
    cursor: pointer;
  }

  header .link-button:focus {
    outline: none;
  }

  nav .link-button:active {
    color:red;
  }


/* Tooltip Einstellungen
----------------------------------------------------------------------------------*/
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
  }
  
  .tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
  }
  
  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }

/* Navi-Leiste Einstellungen
==================================================================================================================================================*/
nav {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    padding-top: 1.5em;
}

nav .link-button {
    background: none;
    border: none;
    font-weight: bold;
    font-size: 1em;
    line-height: 2em;
    color: blue;
    margin-left: 10px;
    cursor: pointer;
  }

  nav .link-button:focus {
    outline: none;
  }

  nav .link-button:active {
    color:red;
  }

  nav .link-button:disabled, .link-button[disabled] {
    color: grey;
  }
/* Main Einstellungen
==================================================================================================================================================*/
main {
    font-size: 18px;
}
/*Einstellungen für Paragraph <p>
----------------------------------------------------------------------------------*/

/* Überschrift 1. Stufe */
main > p.U1 {
    font-weight: bold;
    font-size: 1.6em;
    text-align: center;
}

/* Überschrift 1. Stufe kleiner horizontaler Abstand */
main > p.U1H {
    font-weight: bold;
    font-size: 1.6em;
    padding-top: 0.6em;
    padding-bottom: 0.4em;
    text-align: center;
}

/* Überschrift 2. Stufe */
main > p.U2 {
    font-weight: bold;
    font-size: 1.3em;
    text-align: center;
}

/* Überschrift 2. Stufe kleiner horizontaler Abstand */
main > p.U2H {
    font-weight: bold;
    font-size: 1.3em;
    padding-bottom: 0.4em;
    text-align: center;
}
/* Überschrift 3. Stufe */
main  p.U3 {
    font-size: 1.2em;
    font-weight: bold;
    color: #555555;
    text-align: center;
    line-height: 10%;
}
/* Überschrift 3. Stufe kleiner horizontaler Abstand*/
main  p.U3H {
    font-size: 1.2em;
    font-weight: bold;
    color: #555555;
    text-align: center;
    line-height: 120%;
}
/* Überschrift 3. Stufe kleiner horizontaler Abstand nur oben*/
main  p.U3HT {
    font-size: 1.2em;
    font-weight: bold;
    color: #555555;
    text-align: center;
    margin-top: 40px;
}

/* normaler Text zentriert */
main  p.C0
{
    text-align: center;
    line-height: 30%;
}
/* normaler Text zentriert und kleiner Abstand nach oben */
main  p.C1
{
    text-align: center;
    padding: 1em 0 0 0;
}

/* normaler Text zentriert und mittlerer Abstand nach oben */
main  p.C2
{
    text-align: center;
    padding: 2em 0 0 0;
}

/* normaler Text zentriert und großer Abstand nach oben */
main  p.C3
{
    text-align: center;
    padding: 4em 0 0 0;
}

/* Rezept Titel */
main > p.RTitle {
    font-weight: bold;
    font-size: 1.6em;
    text-align: left;
    padding-left: 100px;
}
/* Rezept Untertitel */
main > p.RSubT {
    font-weight: bold;
    font-size: 1.3em;
    text-align: left;
    padding-left: 100px;
}
/* Rezept Überschrift Zutaten und Zubereitung */
main > p.RUZ {
    font-weight: bold;
    font-size: 1.2em;
    text-align: left;
    padding-left: 100px;
}
/* Rezept Bemerkung */
main  p.RRem {
    font-size: 1em;
    font-weight: bold;
    color: #555555;
    text-align: left;
    padding-left: 100px;
    line-height: 10%;
}

/* Rezept Zubereitung */
main  p.RPrep {
    font-size: 1em;
    color: #555555;
    text-align: left;
    margin-top: 0px;
    margin-bottom: 5px;
    padding-left: 100px;
}

/*Einstellungen für Division <div>
----------------------------------------------------------------------------------*/

/* zentriert */
main > div.center {
    text-align: center;
}

/*main > div.disabled {
    pointer-events: none;
    opacity: 0.5;
}*/


/*Einstellungen für Textarea 
----------------------------------------------------------------------------------*/
main textarea {
    width: 90%;
    height: 5em;
    border: 1px solid black;
    border-radius: 4px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 1em;
}

/*Einstellungen für Tabellen <table> <tr> <th> <td>
----------------------------------------------------------------------------------*/
/* Standard-Tabelle */
main table {
    border-collapse: collapse;
}

/* automatische Tabelle zentriert ohne Rahmen */
main table.TX {
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

/* sehr schmale Tabelle zentriert */
main table.T0 {
    width: 180px;
    margin-left: auto;
    margin-right: auto;
}
/* sehr schmale Tabelle zentriert kleiner Abstand nach oben und unten*/
main table.T0 {
    width: 180px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2em;
    margin-bottom: 2em;
}
/* schmale Tabelle zentriert erhöhter Abstand nach oben */
main table.T2T {
    width: 420px;
    margin-top: 3em;
    margin-left: auto;
    margin-right: auto;
}
/* schmale Tabelle zentriert  kleiner Abstand nach oben und unten */
main table.T3 {
    width: 480px;
    margin-left: auto;
    margin-right: auto;
}
/* schmale Tabelle zentriert  kleiner Abstand nach oben und unten */
main table.T3H {
    width: 480px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2em;
    margin-bottom: 2em;
}
/* mittlere Tabelle zentriert  kleiner Abstand nach oben und unten */
main table.T4H {
    width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2em;
    margin-bottom: 2em;
}
/* sehr schmale Tabelle zentriert */
main table.T1 {
    width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* sehr schmale Tabelle zentriert kleiner Abstand nach oben und unten */
main table.T1H {
    width: 360px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2em;
    margin-bottom: 2em;
}
/* Tabelle für Zutatenliste in Rezeptanzeige*/
main table.TR {
    width: 480px;
    margin-left: 100px;
    margin-top: 1em;
}

/* normale Zeilen */
main tr {
    line-height: 1.3em;
}

/* Zeilen mit vergrößerter Zeilenhöhe */
main tr.H1 {
    line-height: 1.5em;
}
main tr.H2 {
    line-height: 2.5em;
}
main tr.H3 {
    line-height: 4.5em;
}


/* Zeile zum Aufblenden mit Javascript
------------------------------------------------------------------------------------------------------------*/
main tr.collapse {
    visibility: collapse;
    line-height: 4.5em;
}

/* normale Zellen */
main td {
    font-size: 1.2em;
}
/* Zellen linksbündig mit Einzug */
main td.P1 {
    padding-left: 2em;
}

/* Zellen für Zutaten im Rezept Einheit und Beschreibung (linksbündig)*/
main td.RLeft {
    font-size: 1em;
    padding-left: 5px;
}
/* Zellen für Zutaten-Eingabe (linksbündig)*/
main td.RRLeft {
    font-size: 1.2em;
    padding-left: 2em;
}
/* Zellen für Menge im Rezept (rechtsbündig)*/
main td.RRight {
    font-size: 1em;
    text-align: right;
    padding-right: 2px;
}

/* Zellen speziell für Hint */
main td.hint {
    vertical-align: top;
    text-align: justify;
    background-color: #f5fff5;
    border: 2px solid #555555;
    border-radius: 10px;
    height: 12em;
    padding: 10px;
}  
/* Zellen für Rezeptliste */
main td.RL {
    border: solid;
    border-width: 2px;
    border-color: darkgray;
    padding-left: 10px;
    padding-right: 10px;
}
/* Zellen für Restaurantliste */
main td.RR {
    border: solid;
    border-width: 2px;
    border-color: darkgray;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 0.9em;
}
/* Zellen für Restaurantliste genauso wie RR, dient als Klasse für Auswahl in JS*/
main td.RRx {
    border: solid;
    border-width: 2px;
    border-color: darkgray;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 0.9em;
}
/* Zellen für Restaurantliste */
main td.RC {
    border: solid;
    border-width: 2px;
    border-color: darkgray;
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
    font-size: 0.9em;
}
/*Zellen für Tabellen in Auswertungsdetails */
main td.RAL {
    border: solid;
    border-width: 2px;
    border-color: darkgray;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 1.2em;
}
main td.RAC {
    border: solid;
    border-width: 2px;
    border-color: darkgray;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 1.2em;
    text-align: center;
}
/* Zellen für Menüanzeige */
main td.RM {
    border: none;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 1.1em;
}

main td.RS {
    border: solid;
    border-width: 2px;
    border-color: black;
    text-align: center;
    background-color: lightblue;
}

main td.B0 {
    border: none;
    
}

main td.B0R {
    border: none;
    text-align: right;
    padding-right: 10px;
}

main td.BC0 {
    border: none;
    text-align: center;
}
main th.BC0 {
    border: none;
}

/* Zellen für Baumstruktur */
main td.N0H2 {
    border: none;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 1em;
}

main td.C0H2 {
    border: none;
    padding-top: 3px;
    padding-bottom: 3px;
    text-align: center;
}

/* Einstellungen für <input type text>
---------------------------------------------------------------------------------- */
main input[type=text], input[type=password] {
    background-color:#F2F2F2;
    height: 30px;
    font-size: 0.9em;
}

/* Text rechtsbündig, kleiner Innen nach rechts */
main input[type=text].R1 {
    text-align: right;
    padding-right: 8px;
}

/* Text rechtsbündig, kleiner Innen und Außenabstand nach rechts */
main input[type=text].R1M {
    text-align: right;
    margin-right: 30px;
    padding-right: 8px;
}

/* Einstellungen für <select>
---------------------------------------------------------------------------------- */
main select {
    font-size: 0.9em;
    padding: 5px;
}
/* select mit Abstand oben und unten (Auswahfeld für Einheit)*/
main select.T1 {
    font-size: 0.9em;
    padding-top: 4px;
    padding-bottom: 4px;
}



/* Einstellungen für <button>
---------------------------------------------------------------------------------- */
main .btn-group .button {
    background-color: #AAAAAA;
    border: none;
    border-radius: 6px;
    color: white;
    padding: 6px 40px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    float: none;
  }
  main .btn-group .smartbutton {
    background-color: #AAAAAA;
    border: none;
    border-radius: 6px;
    color: white;
    padding: 6px 40px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    float: none;
}
  
 main .btn-group .button:hover {
    background-color: #117711;
}


 main .smartbutton:hover {
    background: #111177;
    background: var(--smartbackground);
}

#star1 {
    background-color: white;
} 
#star1:hover {
    background-color: rgba(255,100,100,0.2);
} 

#star2 {
    background-color: white;
} 
#star2:hover {
    background-color: rgba(230, 180, 120, 0.2);
}  
#star3 {
    background-color: white;
} 
#star3:hover {
    background-color: rgba(248, 237, 155, 0.2);
}  
#star4 {
    background-color: white;
} 
#star4:hover {
    background-color: rgba(120, 240, 130, 0.2);
}  
#star5 {
    background-color: white;
} 
#star5:hover {
    background-color: rgba(120, 120, 240, 0.2);
}  
/* Aside Einstellungen
==================================================================================================================================================*/
aside .S0 {
    font-size: 1em;
}
aside .S1 {
    font-size: 1em;
    line-height: 10%;
}

aside .U1 {
    font-size: 1.2em;
    font-weight: bold;
}

aside table {
    border-collapse: collapse;
}

aside tr {
    line-height: 1.1em;
}

aside tr.cps {
    line-height: 1em;
}

/* Zeilen mit vergrößerter Zeilenhöhe */
aside tr.H1 {
    line-height: 1.3em;
}
/*Darstellung von Untertitel, Bemerkung, Restriction im aside Bereich für Rezeptsuche
------------------------------------------------------------------------------------------------------------*/
aside tr.collapse {
    visibility: collapse;
}

aside table.TBar {
    margin-left:auto;
    margin-top:20px;
    margin-right:auto;
    margin-bottom:10px;
}

aside table.TEval {
    margin-left:auto;
    margin-right:auto;
    margin-bottom:20px;
}

/* Footer Einstellungen
==================================================================================================================================================*/

footer {
    grid-column: 1 / -1;
}


/* Popupfenster 
==================================================================================*/

.popup .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-150%) scale(0);
    width: 800px;
    height: auto;
    text-align: center;
    padding: 16px;
    border-color:rgb(50, 50, 180);
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
    background: #efefef;
    z-index: 1;
   }
   
   .popup .close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    }
   
   .popup.active .content {
   transition: all 300ms ease-in-out;
   transform: translate(-50%,-50%) scale(1);
   }
   
.popup .contentbig {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-150%) scale(0);
    width: 1200px;
    height: auto;
    text-align: center;
    padding: 16px;
    border-color:rgb(50, 50, 180);
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
    background: #efefef;
    z-index: 1;
   }
   
   .popup.active .contentbig {
   transition: all 300ms ease-in-out;
   transform: translate(-50%,-50%) scale(1);
   }
   
   li.L0 {
     font-size: 1.1em;
     text-align: left;
     padding: 0 0 0 2em;
   }
 
   a {
    font-weight: 600;
    color: rgb(20, 50, 220);
   }
   
   .input-field .validate {
   padding: 20px;
   font-size: 16px;
   border-radius: 5px;
   border: none;
   margin-bottom: 15px;
   color: #000000;
   background: #ffffff;
   border: 2px solid rgb(214, 214, 214);
   width: 270px;
   outline: none;
   }
   
   .second-button {
   color: white;
   font-size: 18px;
   font-weight: 500;
   margin-top: 20px;
   padding: 15px 40px;
   border-radius: 5px;
   border: none;
   background: #05438f;
    
   transition: box-shadow .35s ease !important;
   outline: none;
   }
   
   .second-button:active{
   background: linear-gradient(145deg,#222222, #292929);
    
   border: none;
   outline: none;
   }

   /* Überschrift erste Ebene für Popupfenster */
p.UP1 {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    padding-top: 1em;
    padding-bottom: 0em;
    color: #141414;
}

/* link im Lauftext des Popupfensters */
a.UPL {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-align: left;
    font-size: 1.2em;
    color: blue;
    font-weight: unset;
}


/* normaler Text linksbündig ohne Abstand nach oben für Popupfenster */
p.NP0 {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-align: left;
    font-size: 1em;
    font-weight: normal;
}

/* normaler Text Blocksatz ohne Abstand nach oben für Popupfenster */
p.NP0J {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-align: justify;
    font-size: 1.2em;
    font-weight: normal;
}
