/* 


The nav and section create two columns/boxes that floats next to each other.


***header***************
**                    **
***article**************
***nav*******section****
**        **          **
**        **          **
**        **          **
**        **          **
***footer***************
**                    **
************************

*/


:root {
    --height: auto;
    --inspirational-foto:  linear-gradient( 90deg, #0c1a5c, #0c1a5c);
    --inspirational-email: linear-gradient( 90deg, #364f67, #364f67);
    --inspirational-origi: linear-gradient( 90deg, #003355, #003355);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    max-width: 960px;
    margin: 0 auto;
    background-color: rgb(240,245,255);
}

body /*#beta*/ {
    -background-image: url(/lib/img/php-net-bg-texture-00.svg);
    -border: 8px solid transparent;
    -border-image: url(/lib/img/beta-border.png) 8 8 round;
    -border-image: linear-gradient(#f6b73c, #4d9f0c) 30;
    -border-image: repeating-linear-gradient(45deg, #ff0, #000, #ff0 20px) 60;    
    -background-image: url(/lib/img/bg-tile-24.png),
                      linear-gradient(130deg, hsl(205deg 30% 35%), hsl(187deg 70% 35%));
    -background-blend-mode: overlay;
}

/* Style the header */
header, footer {
    background-color: #666;
    padding: 2em;
    color: white;
    user-select: none;
    text-shadow:1px 1px 1px black;
}

header {
    text-align: left;
    background-image: var(--inspirational-email);
}

/* Style the footer */
footer {
    padding: 10px;
    text-align: center;
    background-image: var(--inspirational-email);
}

header h2 {
    margin-bottom: .6em;
}

header p {
    margin: .5em .25em;
}

article  {                              
    background-color: #f1f1f1;
    min-height: 555px;
}

nav {
    /* 
      article and nav height doesn't 
      automatically sync  when article grows (XXX) 
    */
    float: left;
    width: 30%;
    background-color: #f1f1f1;
    padding: 1.3em 0.5em 1.3em 1.0em;
    height: 100%;
}

section {                       
    float: left;
    padding: 1.3em;
    padding: 1.3em 1.0em 1.3em 0.5em;    
    width: 70%;
    height: var(--height);
}

h1 {
    font-size: 1.5em;
}

h2 {
    font-size: 1.2em;    
}

h1:not(header h1), h2:not(header h2), h3:not(header h3), nav i.fa {
    color: #364f67;
}

div.box {
    background-color: #fff;
    padding: .3em 1em;
    text-align: justify;
    box-shadow: 0 4px 10px 0 rgba(0,0,0,0.2),
        0 4px 20px 0 rgba(0,0,0,0.19);
    border-radius: 3px;
    position: relative;
}

div.box h1, div.box h2, div.box h3, div.box h4 {
    text-align: left;
}

/* Silbentrennung in den paragraphen 
   in den boxen einschalten */
div.box p, div.box ul li { 
    -webkit-hyphens: auto;
    hyphens:auto;
}

div.box div.nav {
    position: absolute;
    right: .5em;
    top: .5em;
}

/* Clear floats after the columns */
article::after {                    
    content: "";
    display: table;
    clear: both;
}

/* Responsive layout - makes the two columns/boxes stack on top of each other 
   instead of next to each other, on small screens */
@media (max-width: 600px) {
    nav, section {                  
        width: 100%;
        height: auto;
    }
}

@media (max-width: 1200px) {
    body {
        max-width: 960px;
    }
}

@media (max-width: 1500px) {
    body {
        max-width: 1200px;
    }
}

@media (max-width: 2500px) {
    body {
        max-width: 1200px;
    }
}

/* widget i.e. the span element */
#contact .ui-widget, #contact .ui-state-error {
    --min-width: 400px;
    --max-width: 400px;
    width: 400px;

}

/* actual input or textarea element */
#contact .ui-text-input {
    min-width: 390px;
    outline-color: rgb(0,127,255);
}

#contact textarea {
    min-height: 100px;
}

#contact label {
    font-size: 1.3em;
    font-weight: bold;    
}

/* 
 *  template.php: netbeans gives a warning if a css class is not found 
 *  widget is from jquery-ui and cookie-switch is used for selecting
 *  radio inputs
 */
.widget { }

.cookie-switch { 
    margin-top: 0.6em;
}

a:link, a:visited {
    color: #369;
    color: #055da8;
    color: #1d97ff;
}

footer a, footer a:link, footer a:visited {
    color: #fff;
}

.just {
    text-align: justify;
}

.no-close .ui-dialog-titlebar-close {
    display: none;
}

.no-scroll {
    overflow: hidden !important;
}

/* progressbar dialog title has 3px padding
   but which dialog looks better without */
.no-padding {
    padding: 0px 0px;
}

/* Abstand der Font-Awesome Icons im nav Element */
nav i.fa {
    margin-right: 0.4em
}

#beta_dims  {
    position: fixed;
    right: 0px;
    top: 0px;
    background-color: rgba(0,0,0,0.8);
    color: white;
    border: 1px solid white;
    border-top-width: 0px;
    border-right-width: 0px;
    padding: 2px;
    font-family: Segoe Script;    
}

.hidden {
    display: none;
}


i.material-icons {
    margin-right: 0.25em;
    vertical-align: text-bottom;
}

/* Aktiven Seitenteil hervorheben */
a.nav-act {
    border: 2px outset grey;
    border-radius: 2px;
    background-image: var(--inspirational-email);
    color: white;
    font-weight: bolder;
    letter-spacing: 2px;
    text-decoration: none;
}

nav a {
    padding: 3px;
    width:   100px;
    display: block;
    margin: 0px;
}

nav .box:nth-child(2) p {
    
}
