/* $header: $                                  */
/* Copyright 2004 - 2017 by KukiSoft           */
/* KukiSoft.css                                */
/*                                             */
/* Zweck:                                      */
/* Die generelle Formatierung der Homepage.    */

/* Der IE unterstützt die Verwendung von Variablen nicht, darum wurden mit Absicht andere */
/* Farben gewählt um dies optisch hervorzuheben.                                          */
/* Verwendung: background-color: var(--html_back_color);                                  */
/*                                                                                        */
/* Reihefolge wurde gemäss Farbtabelle: ./HTML5_CSS3/Einleitung.php#colorTable gewählt.   */
:root
{
  --html_back_color: #efefef;
  --font_color: #17428C;             /* Früher: #00248F; */
  --link_color: #5D7BAE;             /* Früher: #0024A2; */
  --line_back_color: #99ACCC;        /* Früher: #BFCFFF; */
  --line_light_back_color: #C7D2E3;  /* Früher: #D7E1F0; */
  --border_color: #99ACCC;           /* Früher: #91A8FF; */
}

/* Zeichensatz mit Sonderzeichen. */
@font-face
{
  font-family: 'WebSymbolsRegular';
  src: url('fonts/websymbols-regular-webfont.eot');
  src: url('fonts/websymbols-regular-webfont.eot?#iefix') format('embedded-opentype'),
       url('fonts/websymbols-regular-webfont.woff') format('woff'),
       url('fonts/websymbols-regular-webfont.ttf') format('truetype'),
       url('fonts/websymbols-regular-webfont.svg#WebSymbolsRegular') format('svg');
  font-weight: normal;
  font-style: normal;
}

@media only screen
{
  #sidebar
  {
    width: 16em;
  }
  #previewbar
  {
    left: 16em;  /* Die Breite der sidebar */
  }
  #contentblock
  {
    left: 16em;  /* Die Breite der sidebar */
  }
  #validateCheck nav li
  {
    display: inline;  /* Nebeneinander */
  }
}

/* Wird die Breite kleiner als 1024px: */
@media only screen and (max-width: 1024px)
{
  #sidebar
  {
    width: 11em;
    /* font-size: 70%; */
  }
  #previewbar
  {
    left: 10em;  /* Die Breite der sidebar */
  }
  #contentblock
  {
    left: 11em;  /* Die Breite der sidebar */
  }
  #validateCheck nav li
  {
    display: block;
  }
  #menuside, #menutop
  {
    font-size: 76%;
  }
}

*
{
  margin: 0;
  padding: 0;
}

html, body
{
  height: 100%;
  background-color: #f8f8f8;
  background-color: var(--html_back_color);
}

header
{
  /* background-color: #dddddd; */
  /* background: #00ffff url(../Doku/Rename/Images/Rename1.jpg) top right no-repeat; */
  position: fixed;
  top: 0;
  width: 100%;
  height: 4.6em;  /* Die Höhe des header */

  /* border: 1px solid green; */
  /* border-radius: 20px; */
}

header img
{
  margin: 0.2em 0;
  height: 4em;
}

header noscript
{
  position: fixed;  /* position: relative; */
  top: 0.7em;
  left: 10em;
  
  font-size: 190%;
}

footer
{
  color: white;
  background-color: #BFCFAA;
  background-color: var(--line_back_color);
  /* background-image: url(bilder/grau-50.png); */
  border-top: 1px solid #00248F;

  position: fixed;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 1.7em;
}

footer img
{
  height: 1em;
}

/* Grundsätzliche Formatierung der Links */

a
{
  text-decoration: none;  /* Das Underline unter den Links deaktivieren */
}

a:link, a:visited
{
  color: rgb(120, 140, 210);
}

a img
{
  border: 0 none;  /* Alle verlinkten Bilder sollen keinen Rahmen haben */
}

table
{
  width: 100%;
}

table tbody tr td
{
  vertical-align: top;
  padding: 0.2em;
}

/* Muss bei Labels in Tabellen verwendet werden. (Höhenausgleich) */
table tbody tr .label
{
  padding-top: 0.4em;
}

table tbody .tableTitle
{
  background-color: #BFCFAA;
  background-color: var(--line_back_color);
  color: #00A48A;
  color: var(--font_color);
  font-weight: bold;
}

textarea
{
  resize: none;  /* Das Element soll nicht automatisch seine Grösse ändern. */ 
  width: 100%;
  padding: 0.2em 0.1em 0.2em 0.1em;
  
  /* wrap="off" auf dem textarea ist depricated. Folgendes macht da Gleiche. */
  white-space: pre;
  word-wrap: normal;
  overflow: auto;
  overflow-y: auto;  /* scroll würde Scrollbar immer darstellen, einfach deaktiviert.  */

  box-shadow: 1px 1px 1px rgba(0, 0, 0, .75);
}

input:not([type=button]):not([type=submit]):not([type=reset]):not([type=checkbox])
{
  width: 100%;
  padding: 0.2em 0 0.2em 0.1em;

  box-shadow: 1px 1px 1px rgba(0, 0, 0, .75);
}

input[type=button], input[type=submit], input[type=reset]
{
  padding: 2px 5px;
  margin-left: 0.8em;
  margin-right: -0.6em;

  cursor: pointer; /* forces the cursor to change to a hand when the button is hovered */
  background-color: #BFCFAA;
  background-color: var(--line_back_color);
  
  /* give the button curved corners, alter the size as required */
  border-radius: 4px;
  
  /* Der Button bekommt einen kleinen Schatten */
  box-shadow: 0 0 1px rgba(0, 0, 0, .75);
}

/* input#gobutton:hover, input#gobutton:focus{  Bsp. ist mit einem Namen */
input[type=button]:hover, input[type=button]:focus, input[type=submit]:hover, input[type=submit]:focus, input[type=reset]:hover, input[type=reset]:focus
{
  /* Der Button bekommt einen grösseren Schatten (Push-Effekt) */
  box-shadow: 0 0 4px rgba(0, 0, 0, .75);
}

/* Grundsätzliche Formatierung der Schriften */

hr
{
  margin: 0.4em 0 0.4em 0;
}

h1, h2, h3, h4, h5
{
  background: transparent;  /* Alle Schriften haben einen transparenten Hintergrund */
  font-size: 1em;
  color: #00A48A;
  color: var(--font_color);
}

h1
{
  font-size: 3em;
}

h2
{
  font-size: 2em;
  /* text-indent: 5%;  Text einrücken */
}

h3
{
  font-size: 1.5em;
  margin: 0.4em 0 0.2em 0;
}

h4
{
  padding-top: 0.5em;
}
  
h5
{
  font-size: 0.7em;
  color: #cecece;
  margin-left: 0.4em;
}

p
{
  font-size: 1em;
}

section article
{
  padding: 0.5em;
  margin: 0 0 0.5em 0;

  max-width: 81em;
}

article .block
{
  padding-top: 0.5em;
}

/* Grundsätzliche Formatierung der Images */

figure img
{
  border: 0.1em solid #eeeeee;  /* = background-color */
  width: 60%;
  max-width: 500px;
/*
  cursor: zoom-in;
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
*/
  box-shadow: 1px 1px 5px 2px #808080;
  margin: 0 0.5em 0.5em 0.5em;
}

figure .floatLeft
{
  float: left;
  margin-right: 1.2em;
}

figure .floatRight
{
  float: right;
  margin-left: 1.2em;
}

/* Für alle elemente mit einem Required-Attribute, wenn das Feld leer ist. */
:required:invalid
{
  background: #ffdcdc;
}
:required:valid
{
  background: #ffffdc;
}

#menubar
{
  position: fixed;
  top: 4.34em;  /* Die Höhe des header */
  
  font-size: 110%;

  width: 100%;
  height: 1.6em;
}

#menutop ul
{
  list-style-type: none;
}

#menutop li
{
  display: inline; /* Nebeneinander */
}

#menutop a
{
  display: block;
  width: auto; 
  float: left;
  text-align: center;
  line-height: 24px;

  text-decoration: none;
  background-color: #D7E1A0;  /* rgb(215, 225, 240); */
  background-color: var(--line_light_back_color);

  color: #BEBEBE; /* deaktivierter Link */

  /* border-color: #aaaa88 #555533 #555533 #aaaa88; */
  border-color: var(--border_color) #553 #553 var(--border_color);
  border-radius: 5px 5px 0 0;
  border-style: solid;
  border-width: 2px;

  padding: 0 0.4em 0 0.4em;
}

#menutop a:link, #menutop a:visited
{
  color: #00A4A2;  /* rgb(0, 36, 162); */
  color: var(--link_color);
}

/* Link wird mit der Maus "überfahren" */
#menutop a:link:hover, #menutop a:visited:hover
{
  background-color: #BFCFAA;
  background-color: var(--line_back_color);
  font-size: 110%;

  animation: MenuFontSizeMax 0.4s;
}

#menutop a.selected
{
  background-color: #BFCFAA;
  background-color: var(--line_back_color);
  color: #00A4A2;
  color: var(--link_color);
  font-weight: bold;
  font-size: 110%;
  
  border-width: 2px;
  border-bottom-color: #BFCFAC;  /* Leichte Abweichung von background-color, damit der CSS-Validator dies nicht beanstandet. */
  border-bottom-color: var(--line_back_color);
}

#sidebar
{
  /* border: 1px solid fuchsia; */
  background-color: #BFCFAA;  /* rgb(200, 200, 250); */
  background-color: var(--line_back_color);
  
  position: fixed;
  top: 6.5em;  /* Die Höhe des header und der menubar */
  bottom: 1.7em;  /* Die Höhe des footer */

  overflow-y: auto;
}

#menuside ul
{
  list-style-type: none;

  padding-top: 1.2em;
  padding-left: 1em;
  font-size: 100%;
}

#menuside a
{
  display: block;
  text-decoration: none;
  background-color: #D7E1A0;
  background-color: var(--line_light_back_color);

  color: #BEBEBE;  /* deaktivierter Link */

  border-color: var(--border_color) #553 #553 var(--border_color);
  border-radius: 5px 0 0 5px;
  border-style: solid;
  border-width: 1px;

  padding: 0.1em 0.1em 0.1em 0.4em;
}

#menuside a:link, #menuside a:visited
{
  color: #00A4A2;
  color: var(--link_color);
}

#menuside a:link:hover, #menuside a:visited:hover
{
  background-color: #f8f8f8;
  background-color: var(--html_back_color);
  font-size: 110%;
  
  animation: MenuFontSizeMax 0.4s;
}

#menuside a.selected
{
  background-color: #f8f8f8;
  background-color: var(--html_back_color);
  color: #00A4A2;
  color: var(--link_color);
  font-weight: bold;
  font-size: 110%;

  border-width: 2px;
  border-right-color: #f8f8fa;  /* Leichte Abweichung von background-color, damit der CSS-Validator dies nicht beanstandet. */
  border-right-color: var(--html_back_color);
}

#validateCheck
{
  position: fixed;
  padding-left: 1em;
  bottom: 2em; /* Die Höde des footer */
}

#validateCheck nav ul
{
  list-style-type: none;
}

#validateCheck a img
{
  /* Vorgabe vom img aus dem HTML: style="border:0;width:88px;height:31px"  */
  /* Der Rahmen wird bereits oben ausgeschaltet */
  width: 88px;
  height: 31px;
}

#previewbar
{
  background-color: #BFCFAA;  /* rgb(200, 200, 250); */
  background-color: var(--line_back_color);
  height: 1em;

  position: fixed;
  top: 6.5em;  /* Die Höhe des header und der menubar */
  right: 0;
}

#sidebarright
{
  top: 7.5em;  /* Die Höhe des header und der menubar */
}

#content
{
  left: 0;
  width: 100%;
}

#contentblock
{
  /* border: 1px solid chartreuse; */

  position: fixed;  /* position: relative; */
  top: 7.5em;  /* Die Höhe des header und der menubar */
  bottom: 1.7em;  /* Die Höhe des footer */
  padding: 1.3em 2em 0 2em;

  overflow-y: auto;
}

/* Die Links dürfen im Contentblock mit einem Underline hervorgehoben werden. */
#contentblock a
{
  text-decoration: underline;
}

#contentblock .rss_feed
{
  text-decoration: none;
  color: #E15A00;
}

#downloadbar
{
  position: absolute;
  top: 9em;
  background: transparent;
}

/* Klassen */

.nowrap
{
  white-space: nowrap;  /* Diese Blöcke werden nicht umgebrochen. */
}

.teaser
{
  font-weight: bold;
}

/* Folgende Klassen wurden erstellt weil: The align attribute on the td element is obsolete */

.alignLeft
{
  text-align: left;
}

.alignCenter
{
  text-align: center;
}

.alignRight
{
  text-align: right;
}

.requirementTable tbody tr td
{
  border-bottom: 1px solid rgb(200, 200, 200);
  padding: 0.1em;
}

.fullwidth { max-width: 100%; }
.requirementTable, .imgFull { width: 100%; }
.imgSmall20 { width: 20%; }
.imgSmall30 { width: 30%; }
.imgSmall40 { width: 40%; }
.imgSmall50 { width: 50%; }

.width0_4em { width: 0.4em; }
.width1em { width: 1em; }
.width1_8em { width: 1.8em; }
.width3em { width: 3em; }
.width5em { width: 5em; }
.width6em { width: 6em; }
.width8em { width: 8em; }
.width9em { width: 9em; }
.width10em { width: 10em; }
.width12em { width: 12em; }
.width14em { width: 14em; }
.width16em { width: 16em; }

.distance
{
  padding-bottom: 0.5em; /* Einen Abstand nach diesem Block */
}

.divTable
{
  display: table;
  width: 100%;
  border-spacing: 5px;
}

.headRow, .divRow
{
  display: table-row;
  clear: both;
}

.divCellLeft
{
  float: left; /* fix for buggy browsers */
  display: table-column;
  width: 20%;
}

.divCellCenter
{
  float: left; /* fix for buggy browsers */
  display: table-column;
  text-align: center;
  width: 59%;
}

.divCellRight
{
  float: left; /* fix for buggy browsers */
  display: table-column;
  text-align: right;
  width: 20%;
}

.noborder
{
  border: none;
}

/* Damit ein Block Scrollt, wenn er zu gross wird. */
.scrollable
{
  width: 100%;
  overflow-y: auto;  /* scroll würde Scrollbar immer darstellen, einfach deaktiviert.  */
}

.columnSign
{
  width: 0.4em;  /* Angepasst nach der Grösse von listSign */
  padding: 0.2em;
}

.listSign
{
  position: relative;
  top: 0.4em;
  width: 0.4em;
  height: 0.4em;
  
  overflow: hidden;  /* Der Content wird nicht angezeigt */

  background: black;

  border-radius: 0.2em;
}

.keycap
{
  background-color: #e6e6e6;
  border-color: #aaaa88 #555533 #555533 #aaaa88;
  border-radius: 5px;
  border-style: solid;
  border-width: 1px;

  font-size: 80%;
  font-style: normal;
  font-weight: bold;
  padding: 0.1em 0.4em 0 0.4em;
  margin: 0 0.2em 0 0.2em;
}

.keycap img
{
  border: none;
  box-shadow: none;
  width: 1em;
  margin: 0 0.1em -0.1em 0.1em;
}

/* Zeichen hochstellen */
.keyHigh
{
  vertical-align: 0.2em;
}

.highlight
{
  font-style: italic;
  font-size: 110%;
}

.errorborder
{
  border: 1px solid red;
}

.errorblock
{
  padding-left: 2em;
  color: red;
}

.noScriptColor
{
  color: red;
}

.block
{
  display: inline-block;  /* Die Blöcke werden zusammengehalten. */
}

.commonborder
{
  border: 1px solid;
  border-color: var(--border_color) #553 #553 var(--border_color);
  border-radius: 5px;
  border-width: 1px 3px 3px 1px;
}

.overviewborder
{
  padding: .4em 0em 0em 0em;
  margin: 0 0 .5em 0;
}

.animateView
{
  animation: ViewAnimateOff 1.2s;  /* animation-name + animation-duration */
}

.animateView:hover
{
  animation: ViewAnimateOn 0.4s;  /* animation-name + animation-duration */
  font-size: 102%;
}

.overviewsubtable
{
  /* border: 1px solid blue; */ /* zum Testen der Position. */
  width: 98%;
}

.overviewsubtable thead tr th
{
  border-bottom: 1px solid var(--border_color);
}

.rss_feed:before
{
  font-family: 'WebSymbolsRegular';
  text-decoration: none;
  content: '\72';  /* CSS verlangt den Hex-Wert. */
  margin-right: 0.2em;
}

.enlargeTitle
{
  animation: MenuFontSizeMin 0.4s;
}

.cmdbutton a, resizebutton a
{
  color: #fff;
}

.cmdbutton-ref:hover
{
  background: #fff;
  box-shadow: 0px 0px 9px rgba(0,0,0,0.4), 0px 0px 0px 1px rgba(188,188,188,0.1);
}

.cmdbutton-ref
{
  border-radius: 10px;
  padding: 4px 10px;
  display: block;
  overflow: hidden;
  margin: 2px;
  background:#fff;

  box-shadow: 0px 0px 7px rgba(0,0,0,0.2), 0px 0px 0px 1px rgba(188,188,188,0.1);
  transition: box-shadow 0.3s ease-in-out;
}

.cmdbutton-text
{
  color: #d7565b;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

/* The animation code */

.animateOpacity
{
  animation: ButtonMakeOpacity 1s;  /* animation-name + animation-duration */
}

.animateOpacity:hover
{
  animation: ButtonRemakeOpacity 2s;  /* animation-name + animation-duration */
  opacity: 1;
}

@keyframes MenuFontSizeMin
{
  from {font-size: 110%;}
  to {font-size: 100%;}
}

@keyframes MenuFontSizeMax
{
  from {font-size: 100%;}
  to {font-size: 110%;}
}

@keyframes ViewAnimateOff
{
  from {font-size: 102%;}
  to {font-size: 100%;}
}

@keyframes ViewAnimateOn
{
  from {font-size: 100%;}
  to {font-size: 102%;}
}
