* {
    padding: 0em;
    color: var(--txtColor);
}
:root{
    color: var(--txtColor);
}
body{
    background-color: var(--mainColor);
}

@media screen and (prefers-color-scheme: dark){
    :root{
        --mainColor: #1c1c1e;
        --txtColor: white;
        --headColor: #01B4CC;
        --filter: invert();
        --content-background: rgb(58, 58, 58);
    }
}

@media screen and (prefers-color-scheme: light){
    :root{
        --mainColor: white;
        --txtColor: black;
        --headColor: blue;
        --filter: none;
        --content-background: rgb(179, 179, 179);
    }
}

head {align-items: center;}
#ueberschrift {font-size: 3em; color: var(--headColor); font-weight: 300;}
.inhalt {
    display: flex; 
    flex-direction: row; 
    align-items: flex-start; 
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 5em;
}
.both {display: flex; justify-content: space-between; align-items: stretch;}
.content { 
    padding: 1.5em;
    border-radius: 20px;
    border-width: 10px;
    border-color: black;
    background-color: var(--content-background);
    min-height: 10em;
    max-width: 300px;
    margin: 10px;
}
#mainContent{
    margin-bottom: 2em;
}
.title {color: var(--headColor); font-size: 2em;}
.intro {size: 0.7em;}
.footerText {
    position: fixed; 
    bottom: 0px; 
    width: 100%; 
    text-align: center; 
    background-color: var(--mainColor);
    padding: 7px; 
    opacity: 0.8;
    margin: 0px -10px;
}
.footer {
    align-self: center; 
    border-width: 2px 2px 0px 2px; 
    border-style: solid; border-color: grey;
    border-radius: 8px 8px 0px 0px; 
    padding: 1em 1em 5px 1em;
    margin: auto;
}
footer{    
    color: var(--txtColor);
}
a {text-decoration: none; color: black;}
@media screen and (max-width: 700px) {
    div.inhalt{justify-content: center; align-items: center;}
}
@media screen and (min-width: 500px) {
    .content{min-width: 400px;}
}
@media screen and (max-width: 660px) {
    div.after{
        display: none;
    }
}
@media all and (orientation: landscape) {
    .footerText{
        padding-bottom: 30px;
        transition: padding-bottom 0.7s ease-in-out;
    }
}

.after{
    display: inline-block;
    color: var(--headColor);
}

.error {
    background-color: red;
    width: 100%;
}
.both img{
    filter: var(--filter);
}




.form-switch {
    display: inline-block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  
  .form-switch i {
    position: relative;
    display: inline-block;
    margin-right: .5rem;
    width: 46px;
    height: 26px;
    background-color: #e6e6e6;
    border-radius: 23px;
    vertical-align: text-bottom;
    transition: all 0.3s linear;
  }
  
  .form-switch i::before {
    content: "";
    position: absolute;
    left: 0;
    width: 42px;
    height: 22px;
    background-color: #fff;
    border-radius: 11px;
    transform: translate3d(2px, 2px, 0) scale3d(1, 1, 1);
    transition: all 0.25s linear;
  }
  
  .form-switch i::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 22px;
    background-color: #3F3F3F;
    border-radius: 11px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.24);
    transform: translate3d(2px, 2px, 0);
    transition: all 0.2s ease-in-out;
  }
  
  .form-switch:active i::after {
    width: 28px;
    transform: translate3d(2px, 2px, 0);
  }
  
  .form-switch:active input:checked + i::after { transform: translate3d(16px, 2px, 0); }
  
  .form-switch input { display: none; }
  
  .form-switch input:checked + i { background-color: #4BD763; }
  
  .form-switch input:checked + i::before { transform: translate3d(18px, 2px, 0) scale3d(0, 0, 0); }
  
  .form-switch input:checked + i::after { transform: translate3d(22px, 2px, 0); }

  span.toggleDarkMode{
    vertical-align: middle;
    display: inline-block;
  }