:root {
  --hintergrun<dfarbe: rgb(255,255,255);
  --hintergrundfarbe_text: rgb(240,240,240);
  --schriftfarbe: black;
  --logofarbe1: rgb(212,172,238);
  --logofarbe2: rgb(160,242,245);
  --logofarbe3: rgb(201,148,237);
  --logofarbe4: rgb(163,241,233);
  --logofarbe5: rgb(167,238,212);
  --logofarbe6: rgb(225,185,245);
  --navbar-height: 80px;
}


html {
  height: 100%;
}

body
{
  background: var(--hintergrundfarbe);;
  display: grid;
  gap: 1.5em;

  grid-template-rows: auto 1fr auto;
  grid-template-areas:
     "logo nav header"
     "left    main   aside"
     "footer footer footer";
  font-family: Verdana;
  font-size: 15pt;    
}

/*Das Logo neben der Navigationsleiste*/
logo.custom-logo {
  margin-left: 30px;
  text-decoration: none;
  z-index: 3;
}

img.custom-logo {
  margin-left: 10px;
  text-decoration: none;
  z-index: 3;
  position: relative;
}

/*ab hier wird die Navigation definiert für alle Auflösungen*/
nav {
  height: var(--navbar-height);
  background: var(--hintergrundfarbe);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

nav input[type="checkbox"] {
  display: none;
}

/*Dabei handelt es sich um das Burger-Menü für die mobile Auflösung*/
.toggle_button {
  width: 30px;
  height: 25px;
  position: absolute;
  top: 25px;
  right: 25px;
  flex-direction: column;
  justify-content: space-between;
}

/*die 3 Striche des Burgermenüs*/
.bar {
  height: 4px;
  width: 100%;
  background: var(--schriftfarbe);
  border-radius: 100px;
}

/*hierbei handelt es sich um Menüpunkte der Navigation, die Unterpunkte enthalten*/
.erweiterbar {
  display: flex;
  justify-content: center;
  align-items: center;
}

/*das gerade aktive Element der Navigation -> zeigt an auf welcher Seite sich der User gerade befindet.*/
.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

/*Im Header ist die waagrechte Linie enthalten, im Footer die Links zum Impressum und zum Datenschutz*/
header,footer {
  grid-column: 1 / -1;
}

/*Die waagrechte Linie unter der Navigation*/
hr
{
  color: var(--hintergrundfarbe_text);
  border-top: 1px dotted var(--hintergrundfarbe_text);
  position: relative;
  top:-20px;
  z-index: 1;
}

/*Innerhalb von main steht der eigentliche Inhalt der Seite*/
main
{
  background-color: var(--hintergrundfarbe_text);
}

/*Links bekommen beim drüber fahren eine Hintergrundfarbe*/
a:hover {
  background-color: var(--logofarbe2); 
}

/*Überschriften*/
h1
{
margin-left: 15px;
}

h2
{
margin-left:15px;
}

h3
{
margin-left:15px;
}

h4
{
margin-left:15px;
}

/*hochgestellter Text für Das Copyright-Zeichen von RIT, einmal in groß (für Überschriften) und einmal in klein*/
sup {
  font-size: 10pt;
  vertical-align: top;
}

sup.small {
  font-size: 7pt;
  vertical-align: top;
}

/*Definition für alle Absätze*/
p
{
  margin: 15px;
  line-height: 150%;
}

/*zentrierte Absätze*/
p.zentriert
{
  display:flex;
  align-items:center;
  justify-content: center;
  align-content: center;
}

/*Aufzählung im Text --> wird verwendet für den Ablauf auf der Seite preise.html*/
ul.inhalt {
  margin-left: 45px;
  margin-right: 15px;
}

/*Tabellen sollen auch Abstand vom Rand halten*/
table
{
  margin-left:15px;
  margin-right: 15px;
}

/*Videos (iframe), Bilder, das Kontaktformular und die Preistabelle erhalten einen schönen Rahmen*/
iframe, #kontakt_formular, img.bild_mit_rahmen, table.preise
{
  margin-left:15px;
  margin-right: 15px;
  border: 3px;
  border-color: var(--logofarbe1);
  border-style: solid;
  padding: 5px;
    
}

/*Tabelle der Preise*/
th.ueberschrift_preise
{
  background-color: var(--logofarbe5);
}

td.preise, th.ueberschrift_preise
{
  border: 1px;
  border-color: var(--logofarbe6);
  border-style: solid;
}

/*Tabelle mit Hintergrundfarbe zum Hervorheben von Inhalt*/
table.hervorgehoben
{
  background-color: var(--logofarbe5);
  align-items: center;
  justify-content: center;
  display: block;
}

/*Versteckter Gebetstext auf der Startseite*/
div.versteckt
{
  font-size:1pt;
  color:white;
}

/*roter Text zum Hervorheben (Pflichtfelder-Stern bei Formular)*/
span.rot
{
  color:red;
}

/*klein geschriebener Text (zum Akzeptieren des Datenschutzes beim Formular*/
label.klein
{
  font-size:10pt;
  line-height:20%;
}

/*Abstand der Checkbox für den Datenschutz*/
input.Datenschutz
{
  margin-right: 15px;
}

/*Sticky-Notes Definition*/
h2.sticky {
  font-weight: bold;
  font-size: 1rem;
}

p.sticky {
  font-size: 1rem;
  font-weight: normal;
  line-height: 110%;
}

li.sticky{  
  list-style:none;
  text-decoration:none;
  color:#000;
  background:#ffc;
  display:block;
  height:10em;
  width:10em;
  padding:1em;
  margin:5px;
  transform: rotate(-6deg);
  line-height:110%;
}

li#sticky2
{
  transform: rotate(3deg);
  background:#fcf;
}

p#sticky2
{
  font-size: 0.8rem;
}


/*Definition für kleine Displays (Handy/Tablet etc.)*/
@media (max-width:1000px)
{

  * {
    margin: 0;
    padding: 0;
    font-size: 22px;
    color: var(--text-color);
  }

  body
  {
  grid-template-columns: 10px auto 0px;
  }

/*Ab hier beginnt die Defininition des Navis (größter Unterschied zu den anderen Auflösungen)*/
  nav {
    width: 80%;
  }

/*Das Buirgermenü für genau diese Auflösung*/
  .toggle_button {
    display: flex;
    position: absolute;
    top: 50px;
  }

  #toggle_button:checked ~ ul {
    display: block;
  }

/*Umwandlung des Burgermenus beim drauf drücken*/
  span.bar{
      transition: 0.3s ease transform, 0.3s ease top, 0.3s ease width,
    0.3s ease right;
  }

label.toggle_button{
    transition: .4s  cubic-bezier(0.68, -0.6, 0.32, 1.6);
  }

  span:nth-of-type(1){
    width:100%;
  }

  span:nth-of-type(2){
    width:80%;
  }


  span:nth-of-type(3){
    width:100%; 
  }


label span:first-child {
  transform-origin: 0;
}

label span:last-child {
  margin-bottom: 0;

}

label span:nth-child(2) {
  right: 0;
}

#toggle_button:checked + label:before {
  background-color: #4caf50;
}

#toggle_button:checked + label span:first-child {
  transform-origin:bottom;
  transform:rotatez(45deg) translate(4px,9px);
}

#toggle_button:checked + label span:last-child {
  transform-origin:top;
  transform:rotatez(-45deg) translate(5px,-10px);
}

#toggle_button:checked + label span:nth-child(2) {
  transform-origin:bottom;
  width:0%;
  transform: translate(-5px,-25px) rotatez(45deg);
}

  nav li {
    height: 100%;
    width: 100%;
    text-align: center;
    position: relative;
    padding: 15px 0;
  }

  nav li:hover .dropdown {
    display: flex;
  }

  nav ul a {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0;
  }

/*Die Listen innerhalb der Navigation, die die einzelnen Links darstellen*/
  nav ul {
    height: min-content;
    width: 50%;
    background: var(--logofarbe1);
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 350px;
    list-style: none;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    z-index: 2;
  }

/*Dropdown sind die Navigationselemente mit Unterpunkten*/
  .dropdown {
    height: min-content;
    background: var(--hintergrundfarbe);
    display: none;
    flex-direction: column;
    position: static;
    width: 100%;
    left: 0;
    top: var(--navbar-height);
  }

/*Die Dropdown li Elemente sind die Unterpunkte*/
  .dropdown li {
    height: 100%;
    width: 100%;
    display: block;
    position: static;
    background: var(--logofarbe1);
    padding 15px 0;
  }

/*Die Links sind die Links zu den Seiten in der Navigation*/
  .dropdown li a {
    width: 100%;
    padding: 0;
    justify-content: center;
  }

  .erweiterbar {
    display: block;
  }

  .active {
    display: block;
  }


  label.erweiterbares_label  {
    cursor: pointer;
    display: block;
  }

  label.erweiterbares_label:hover {
    background-color: var(--logofarbe2); 
  }

  .active label  {
    padding: 15px 0;
    cursor: pointer;
    display: block;
  }

  .erweiterbar:hover .dropdown {
    display: none;
  }

  .active:hover .dropdown {
    display: none;
  }  

/*Wenn die jeweilige Checkbox des Menus gecheckt wird, werden die Unterpunkte eingeblendet*/
  #checkbox1:checked ~ #dropdown1 {
    display: block;
  }

  #checkbox2:checked ~ #dropdown2 {
    display: block;
  }

/*der erste Eintrag der Menu-Unterpunkte*/
  li.erstes_untermenu {
    padding: 30px 0 0 0;
  }

/*der letzte Eintrag der Menu-Unterpunkte*/
  li.letztes_untermenu {
    padding: 30px 0 0 0;
  }

  u {
    display: none;
  }

  span.nummer {
    display: none;
  }

/*Größe und Position des RIT-Logos an die Auflösung anpassen*/
  img.rit-kids
  {
    position: absolute;
    top: 50px;
    left: 170px;
    width: 150px;
    height: 28px;
  }

/*Video ist etwas kleiner als normal*/
  iframe
  {
    width: 400px;
    height: 225px;
  }

/*auch das Bild der Praxis ist in dieser Auflösung etwas kleiner*/
  #zimmerbild {
    width: 400px;
    height: 265px;
  }

/*eine Tabelle zur farblichen HErvorhebung des Inhalts, Anpassen der Größe auf diese Displaygröße*/
  table.hervorgehoben
  {
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
    width: auto;
    align-items: center;
  }

/*Anordnung bei dieser Displaygröße oben und unten statt links und rechts*/
  div.linksoben
  {
    float: left;
    
  }

  div.rechtsunten
  {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
    width: 600px;
    align-items: center;
  }

/*Abstand der Aufzählung auf der RIT-Seite*/
  #RIT-Tabelle {
    margin: 50px;
  }

/*Anpassen der Größe und der Anordnung des Bilds passend zur Auflösung*/
  #RIT-Bild {
    width: 400px;
    height: 434px;
    position: relative;
    left: -150px;
    top: -25px;
    align-items: center;
  }

/*Die Textarea fällt auf einem kleinen Display ebenfalls kleiner aus*/
  #nachricht
  {
    width: 275px;
  }

/*Der rechte Seitenstreifen is auf einem kleinen Display nicht sichtbar*/
  aside {
    display: none;
  }

}


/*Definition für sehr kleine Displays (Handy/Tablet etc.)*/
@media (max-width:600px)
{
/*Die Listen innerhalb der Navigation, die die einzelnen Links darstellen*/
  nav ul {
    left: 150px;
  }
}


/*Layout für etwas größere Displays, jetzt schon mit Menüleiste*/
@media (min-width:1001px)
{

  html[xmlns] #menu-bar {
    display: block;
  }

  * html #menu-bar {
    height: 1%;
  }

  /*ab dieser Displaygröße gibt es die rechte Spalte und die ganz links ist breiter*/
  body
  {
  grid-template-columns: 150px auto 335px;
  }

/*Das RIT-Logo für die größeren Bildschirme positionieren direkt neben dem Logo*/
  img.rit-kids
  {

    position: absolute;
    top: 80px;
    left: 1070px;
  }

/*Burgermenu ist nicht sichtbar*/
  .toggle_button {
    display: none;
  }

  ul
  {
    margin: 15px;
    line-height: 150%;
  }

  li
  {
    margin-right: 15px;
    line-height: 150%;
  }

/*Layout der Menubar*/
  #menu-bar {
   # width: 850px;
    margin: 0px 0px 0px 0px;
    padding: 6px 6px 4px 6px;
    height: 40px;
    line-height: 100%;
    border-radius: 24px;
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    box-shadow: 2px 2px 3px #666666;
    -webkit-box-shadow: 2px 2px 3px #666666;
    -moz-box-shadow: 2px 2px 3px #666666;
    background: var(--logofarbe3);
    background: linear-gradient(top,  #dfabff,  #dfbbff);
    background: -ms-linear-gradient(top,  #dfabff,  #dfbbff);
    background: -webkit-gradient(linear, left top, left bottom, from(#dfabff), to(#dfbbff));
    background: -moz-linear-gradient(top,  #dfabff,  #dfbbff);
    border: solid 1px #6D6D6D;
    position:absolute;
    left:185px;
    top:80px;
    z-index:999;
    text-align: left;
    display: inline-block;
    flex-direction:row;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
  }

  #menu-bar li {
    margin: 0px 0px 6px 0px;
    padding: 0px 6px 0px 6px;
    float: left;
    position: relative;
    list-style: none;
  }

  #menu-bar a {
    font-weight: bold;
    font-family: verdana;
    font-style: normal;
    font-size: 18px;
    color: #E7E5E5;
    text-decoration: none;
    display: block;
    padding: 6px 20px 6px 20px;
    margin: 0;
    margin-bottom: 6px;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    text-shadow: 2px 2px 3px #000000;
  }

  #menu-bar li ul li a {
    margin: 0;
  }

  #menu-bar .active a, #menu-bar li:hover > a {
    background: var(--logofarbe4);
    color: #444444;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    text-shadow: 2px 2px 3px #FFFFFF;
  }

 
  #menu-bar ul li:hover a, #menu-bar li:hover li a, #menu-bar ul li:focus a, #menu-bar li:focus li a {
    background: var(--logofarbe1);
    border: none;
    color: #666;
    -box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
  }
 
  #menu-bar ul a:hover, #menu-bar a:focus {
    background: var(--logofarbe2) !important;
    background: linear-gradient(var(--logofarbe2),  var(--logofarbe5)) !important;
    background: -ms-linear-gradient(top,  #04ACEC,  #0186BA) !important;
    background: -webkit-gradient(linear, left top, left bottom, from(var(--logofarbe2)), to(var(--logofarbe5))) !important;
    background: -moz-linear-gradient(top,  var(--logofarbe2),  var(--logofarbe5)) !important;  
    color: #000000 !important;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    text-shadow: 2px 2px 3px #FFFFFF;
  }

  #menu-bar li:hover > ul {
    display: block;
  }

  #menu-bar ul {
    background: var(--logofarbe2);
    background: linear-gradient(#FFFFFF,  #CFCFCF);
    background: -ms-linear-gradient(top,  #FFFFFF,  #CFCFCF);
    background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#CFCFCF));
    background: -moz-linear-gradient(top, var(--logofarbe1),  var(--logofarbe6));
    display: none;
    margin: 0;
    padding: 0;
    width: 185px;
    position: absolute;
    top: 30px;
    left: 0;
    border: solid 1px #B4B4B4;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-box-shadow: 2px 2px 3px #222222;
    -moz-box-shadow: 2px 2px 3px #222222;
    box-shadow: 2px 2px 3px #222222;
  }

  #menu-bar ul li {
    float: none;
    margin: 0;
    padding: 0;
  }

  #menu-bar ul a {
    padding:10px 0px 10px 15px;
    color:#424242 !important;
    font-size:16px;
    font-style:normal;
    font-family:arial;
    font-weight: normal;
    text-shadow: 2px 2px 3px #FFFFFF;
    display: flex;
    align-items: left;
    justify-content: left;
    text-decoration: none;
  }

  label.erweiterbares_label{
    text-shadow: 2px 2px 3px #FFFFFF;
    align-items: left;
    justify-content: left;
    text-decoration: none;
    font-weight: bold;
    font-family: verdana;
    font-style: normal;
    font-size: 18px;
    color: #E7E5E5;
    text-decoration: none;
    display: block;
    padding: 6px 20px 6px 20px;
    margin: 0;
    margin-bottom: 6px;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    text-shadow: 2px 2px 3px #000000;
  }

  label.erweiterbares_label:hover, li:focus > label.erweiterbares_label {
    background: var(--logofarbe4);
    color: #444444;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    font-weight: bold;
    font-style: normal;
    text-shadow: none;
  }

  #menu-bar li:focus > ul {
    display: block;
  }


  #aktiv{
    color: #444444;    
    background: var(--logofarbe4);
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    text-shadow: 2px 2px 3px #FFFFFF;
    border 0;
  }


  #menu-bar ul li:first-child > a {
    border-top-left-radius: 10px;
    -webkit-border-top-left-radius: 10px;
    -moz-border-radius-topleft: 10px;
    border-top-right-radius: 10px;
    -webkit-border-top-right-radius: 10px;
    -moz-border-radius-topright: 10px;
  }

  #menu-bar ul li:last-child > a {
    border-bottom-left-radius: 10px;
    -webkit-border-bottom-left-radius: 10px;
    -moz-border-radius-bottomleft: 10px;
    border-bottom-right-radius: 10px;
    -webkit-border-bottom-right-radius: 10px;
    -moz-border-radius-bottomright: 10px;
  }

  #menu-bar:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
  }

  li.erstes_untermenu:hover, li.letztes_untermenu:hover
  {
    background: var(--logofarbe4);
    border-radius: 24px;
  }
  
/*Das RIT-Bild ist weiterhin klein, da es bei dieser Auflösung ansonsten nicht neben den Text passt*/
  #RIT-Bild {
    width: 400px;
    height: 434px;
    align-items: center;
  }

/*Abstände der hinterlegten Tabelle anpassen, so dass am Rand noch die andere Hintergrundfarbe duirchscheint*/
  table.hervorgehoben
  {
    margin-right: 15px;
  }

/*Positionierung der Inhalte, dieses Mal schon links rechts statt oben und unten*/
  div.linksoben
  {
    float: left;
    width: 350px;
  }

  div.rechtsunten
  {
    float: right;
    width: 400px;
    margin-right: 15px;
    margin-bottom: 15px;
  }

/*Die Nachricht wird noch ein wenig kleiner, damit das Formular neben den Rest passt*/
  #nachricht
  {
    width: 225px;
  }

}

/*Layout für noch ein bisschen größere Bildschirme*/
@media (min-width:1510px)
{

/*Das RIT-Bild ist nun normal groß. Es sollte trotzdem rechts neben den Text passen*/
  #RIT-Bild {
    width: 500px;
    height: 542px;
    align-items: center;
  }

/*Größe und Position des Containers für das Bild anpassen, so dass er rechts neben dem anderen Container positioniert wird*/
  div.rechtsunten
  {
    float: right;
    width: 500px;
    margin-right: 15px;
    margin-bottom: 15px;
}

/*Die Textarera für die Nachricht darf bei dieser Auflösung wieder ein wenig größer sein*/
  #nachricht
  {
    width: 275px;
  }
  
}

/*Layout für ganz große Auflösungen*/
@media (min-width:2001px)
{

  /*Die waagrechte Linie unter der Navigation, bei dieser Bildschirmgröße etwas dicker*/
  hr
  {
    border-top: 2px dotted var(--hintergrundfarbe_text);
  }

/*Das RIT-Bild ist jetzt größer als normal und passt trotzdem noch rechts neben den Text.*/
  #RIT-Bild {
    width: 600px;
    height: 651px;
  }

/*Anpassen der Größe und Position der Container, hier mit der Ausrichtung nebeneinander (links - rechts statt oben - unten)*/
    div.linksoben
  {
    float: left;
    width: 725px;
  }

  div.rechtsunten
  {
    float: left;
    width: 600px;
    margin-right: 15px;
    margin-bottom: 15px;
  }
}