/* Stylesheet für haushaltsbuch*/

/* ====================================================  GLOBAL DEFINITION  ==================================================== */

body {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 1em;
  font-variant-numeric: tabular-nums;
  font: normal 1em Arial, sans-serif;
  color: #0084d1; /* wird als currentColor für die Akzentfarbe verwendet. */
	color: var(--accent1-color);
  background-color: #ffffff;
}

p, ol, ul, dl {
	color: #333;
  color: var(--font-color);
}


/* ====================================================  HEADER  ==================================================== */

header {
  background-color: var(--accent1-color);
  box-shadow: -0.3em .6em .6em 0 rgba(0, 0, 0, .75);
  height: 90px;
  margin: 2em 0;
  padding: 0.5em 1em;
}

header h1 a {
  padding: .5em .5em .5em 3em;
  height: 3em;
  text-decoration: none;
  border: 1px solid transparent;
}

header p {
  font-variant: small-caps;
  font-size: 2em;
}

header span {
  font-weight: bold;
}

.akzentfarbe1 {
  color:orange;
	color: var(--accent2-color);
}

.akzentfarbe2 {
  color: #0084d1;
	color: var(--accent1-color);	
}

// ---------------------------- Startseite (Home) Grid -------------------------

.container { 
    width: 95%;
    height:45%;
    margin: 0.5em 05em;
    padding: 0.5em 1em;
    }

.box { 
    float: left;
    background:#0084d1; 
    border: 10px solid silver;
    border-radius: 20px;
    padding: 0.75em 0.75em 0.75em 0; 
    display: flex; 
    width: 28%;
    height:245px;
} 

.box2 { 
    float: left;
    background:#0084d1; 
    border: 10px solid silver;
    border-radius: 20px;
    padding: 0.75em 0.75em 0.75em 0; 
    display: flex; 
    width: 32%;
    height:245px;
} 

.blockcontainer {
    background: beige; 
    overflow-x: hidden;
    margin:1em auto;
    vertical-align: middle;
    margin: 0.5em 0;
    padding: 0.5em 1em; 
    width: 100%;
    height:90%;
    }

.aufrecht {
    -ms-writing-mode: tb-rl; 
    writing-mode: vertical-rl; 
    transform:rotate(180deg);
    }

.schraeg {
    -ms-writing-mode: tb-rl; 
    writing-mode: vertical-rl; 
    transform:rotate(225deg);
    }

.schriftfarbe {
    color: teal;
    }

/* ====================================================  Hauptteil  ==================================================== */

main {
  background-color: #B0B0B0;
  box-shadow: -0.3em .6em .6em 0 rgba(0, 0, 0, .75);
  height: 580px;
  margin: 2em 0;
  padding: 0.5em 1em;
    }
    
aside {
  background-color: #D0D0D0;
  width: 25%;
  height: 530px;
  float: left;
  margin: 0.5em 0;
  padding: 0.5em 1em;
    }

article {
  background-color: #D0D0D0;
  height: 45%;
  margin: 0.5em 0;
  padding: 0.5em 1em;
    }

section {
  background-color: #E0E0E0;
  width: 70%;
  height: 530px;
  float: right;
  margin: 0.5em 0;
  padding: 0.5em 1em;
    }

.hidden {
     overflow-x: hidden;
     height: 450px;
    }

lable {
    width: 30em;
    display: block;
    float: left;
    }

.main_start {
  background-color: #E0E0E0;
  box-shadow: -0.3em .6em .6em 0 rgba(0, 0, 0, .75);
  width: 95%;
  height: 600px;
  margin: 2em 0;
  padding: 0.5em 1em;
  position: relative;
  }

.start {
  box-shadow: -0.3em .6em .6em 0 rgba(0, 0, 0, .75);
    margin: 0 auto;
    position: absolute;
    top: 10%;
    left: 40%;
    margin: -25px 0 0 -25px;
   }

form {
//    width: 350px;
    background-color: #0084d1;
    color: orange;
    padding: 10px;
    font-weight: bold;
    border: 1px solid silver;
    border-radius: 20px;
}

.form2 {
    width: 100%;
    background-color: #0084d1;
    color: orange;
    padding: 10px;
    font-weight: bold;
    border: 1px solid silver;
    border-radius: 20px;
}

form a {
   font-size: 1.3em; 
   margin: 5px 12px;
   padding: 5px 12px; 
   font-family: Roboto, sans-serif;
   font-weight: 200;
   color: teal;
   border: 1px solid silver;
   background-image: linear-gradient(to top, gainsboro 0%, white 90%);
   border-radius: 20px;
    }

.links {
    width: 50%;
    display: inline;
    float: left;
    margin: 5px;
    }


.rechts {
    width: 50%;
    display: inline;
    float: rigth;
    margin: 5px;
    }

input, select, textarea, button {
	font-size: inherit;
	font-family: inherit;
    float: right;
}	

input[readonly]  {
    color: orange;
    font-weight: bold;
    background-color: #0084d1;
    }

input[type="submit"] {
   font-size: 1.3em; 
   margin: 5px 12px;
   padding: 5px 12px; 
   font-family: Roboto, sans-serif;
   font-weight: 200;
   color: teal;
   border: 1px solid silver;
   background-image: linear-gradient(to top, gainsboro 0%, white 90%);
   border-radius: 20px;
}

/* style for HTML5 formular input pattern */

/*Eine fehlerhafte Eingabe:*/
input:invalid{
    color:red;
}
/*Eine korrekte Eingabe:*/
input:valid{
    color:teal;
}
/*Ein Plichtfeld:*/
input[required]{
    background-color:#F08080;
} 

input[type=file]::file-selector-button {
  border: 2px solid #6c5ce7;
  padding: .2em .4em;
  border-radius: .2em;
  background-color: solid silver;
  color: black;
  transition: 1s;
}

input[type=file]::file-selector-button:hover {
  background-color: #81ecec;
  border: 2px solid #00cec9;
}

/* ====================================================  Inhalt  ==================================================== */

h1, h2, h3, h4 {
  text-align: center;
  color: orange;
  background-color: #0084d1;
}

a {
  text-decoration: none;
  color: currentColor;
  color: var(--link-color);	
}

a:hover, a:focus {
  text-decoration: none;
  font-weight: bold;
  background-color: var(--accent1-color);
}

a.more {
    text-decoration: none;
    width: 50px;
//  float: right;
}

a.more::before {
    content: "►";  
    margin-right: .5em;
    display:inline-block;
    text-decoration: none;    
}

a.more:hover, a.more:focus {
  text-decoration: none;
  color: var(--accent2-color);
}

.nix {
    all: initial;
}

h2.img {
  padding-left: 2.5em;
}

aside li {
  box-shadow: -0.3em .6em .6em 0 rgba(0, 0, 0, .75);
  text-align: left;
  background-color: #0084d1;
  color: orange;
  display: block;
  margin: 0.5em 0;
  padding: 0.5em 2em;
  list-style-type: none;
  border-radius: .5em;
}

section a {
    color: orange;
    text-decoration: none;}

.table { 
   margin-left: auto;
   margin-right: auto;
   color: orange;
   font-size: 1.1em;
   text-align: left; 
   display: table;
}

td {
    width=30;
    padding: 0.2em;
    box-shadow: inset 1px 3px 5px -3px rgba(0,0,0,.5);
    }

td.zahl {
  text-align: right;
}

.hg_blau {
    background:#0084d1;
    }

.rot {
    font-weight: bold;
    text-align: center;
    color: red;
}

.gruen {
    font-weight: bold;
    text-align: center;
    color: green;
}

th.titel {
  text-align: center;
}

thead {
	position:sticky;
	top:   0;
	left:  0;
	right: 0;
 	color: white;
	background-color: #808080;
}

tbody tr:nth-child(odd) {
	background-color: #eee;
}

tbody tr:nth-child(even) {
	background-color: #ccc;
}

tr:hover {
	background-color: #FF7777 !important;
}

.caption { 
	background-color: #ccc;
    color: #0084d1;
	margin-top: 1em; 
	border-top: 1px solid silver; 
	font-style: italic;
}

//  ------------------- Tabelle mit fixem Header -----------------------------------------------------------------
table.scroll thead tr:after {
    content: '';
    overflow-y: scroll;
    visibility: hidden;
    }
    
table.scroll thead th {	
    display: block;
    }
    
table.scroll tbody {
//	display: block;	
    width: 100%;	
    overflow-y: auto;
    height: auto;	
    max-height: 350px;
    }

caption { 
  caption-side: top;
}

div.sticky-table {
    height: 200px;  
    overflow: auto;
}

div.sticky-table table {
    width: 100%;
    table-layout: fixed;
}

div.sticky-table thead {
    position: sticky;    
    top: 0;
}

/* --------------------------------------------DIV als  Tabelle mit CSS------------------------------------------- */

.table-D { 
   display: table;
   border-spacing: 0.5em;
}
.table-row {
    display: table-row;
    }
.table-cell {
    width: 300px;
    display: table-cell;
    }

/* ====================================================  NAV  ==================================================== */

nav-eins { 
    background:#0084d1; 
    border: 1px solid silver;
    border-radius: 20px;
    margin: 0.5em 0;
    padding: 0.5em 1em; 
    display: flex; 
} 

.breite {
    width: 350px; 
    }

.vertikal-mitte { 
	display: table-cell; 
	vertical-align: middle;
}
.halbbreit {
    width: 175px; 
    }

.dreiviertel {
    width: 260px; 
    }

nav > ul {
	margin: 0;
	padding: 0;
}

nav li {
	list-style: none;
	font-size: 0.5em;
	position: relative;
	margin: 0 0 .2em 0;
	padding: 0;
	width: 4em;
}

nav ul ul {
	position: absolute;
//	top: -0.6em;
//	left: 2em;
	font: 0/0 serif;
	/* Unternavigation ausblenden */ 
	z-index: -1;
//	transition: font 0.5s;
}

nav ul li:hover ul,
nav ul a:focus ~ ul {
	font: inherit;
	z-index: auto;
	/*  Unternavigation einblenden */ 
}

@media (min-width: 45em) {
	nav li {
		font-size: 1em;
	}
}

nav a {
	display: block;
	padding: 0.4em;
	text-decoration: none;
	font-weight: bold;
//	text-align: center;
	border: thin solid #0084d1;
	border-radius: 10px;
//	box-shadow: 0 5px 10px white inset;
	color: orange;
	background-color: #0084d1;
	transition: all .25s ease-in;
}

nav li[aria-current] a {
	background-color: firebrick;
	color: orange;
}

nav a:focus,
nav a:hover,
nav li[aria-current] a:focus,
nav li[aria-current] a:hover {
	color: #0084d1;
	background-color: orange;
}

ul.navleiste li { 
    display: inline; 
    width: 150px; 
    border: 1px solid silver; 
    float: left; 
}

/* ====================================================  FOOTER  ==================================================== */


footer {
  background-color: #0084d1;
  color:orange;
  box-shadow: -0.3em .6em .6em 0 rgba(0, 0, 0, .75);
  height: 30px;
  text-align: center;
  margin: 0.5em 0;
  padding: 0.5em 0.5em;
}

/* ====================================================  LAYOUT  ==================================================== */

