@font-face {
  font-family: Titillium;
  src: url(../assets/fonts/TitilliumWeb-Regular.ttf);
}
@font-face {
  font-family: TitilliumSemiBold;
  src: url(../assets/fonts/TitilliumWeb-SemiBold.ttf);
}


* {
  margin: 0;
  padding: 0;
  font-family: 'Titillium', Arial, sans-serif;
}

a {
  color: #659cbc;
}

.req {
  color: red;
}

html {
  background-color: #eaeaea;
}

body {
  background-color: #eaeaea;
  font-size: 1.2rem;
  color: #666;
}

header, .main {
  display: flex;
  background-color: #659cbc;
  position: relative;
  justify-content: center;
}

.main {
  background-color: #eaeaea; 
}

.banner, .innerMain {
  max-width: 84.5%;
  width: 100%;
}

.banner img {
  width: 100%;
}

.headline {
  margin-top: -8px;
  padding: .9rem 1.3rem .9rem 1.3rem;
  background-color: #fff;
  display: flex;
  align-items: center;
}

.headline h1 {
  font-family: 'TitilliumSemiBold';
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.2rem;
  color: #aaa;
  width: 89%;
}

.headline2 {
  display: none;
}

.kampagne {
  margin-top: .25rem;
  font-size: 1.55rem;
}

.time-left {
  width: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.time-left img {
  width: 1rem;
  height: 1rem;
  margin: 0 0 0 .8rem;
}

.time-left p {
  font-size: 1.1rem;
}

.time-left .timeBox {
  display: flex;
  justify-content: center;
  align-items: center;
}

.time-left #timer {
  margin: 0 0 0 .4rem;
  font-weight: bold;
}

.titleBox {
  background-color: #fff; 
  padding: 2.5rem 1.5rem 3.5rem 1.5rem;
}

.innerMain {
  border-top: solid .5px #eaeaea;
  margin: 0 0 1rem 0;
}

.title1 {
  display: inline;
  font-weight: 100;
  font-size: 2.4rem;
  letter-spacing: -1px;
}

.title2 {
  font-weight: 500;
  line-height: 3rem;
  display: inline;
}

.mainForm h2 {
  margin-top: 2rem;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.section {
  background-color: #fff;
  padding: 1rem 1.5rem 3rem 1.5rem;
  border: 2px solid #d9d9d9;
  margin-top: 1.5rem;
}

input, button {
  border-radius: 2px;
  border: 1px solid #aaa;
  box-sizing: border-box;
  outline: none;
  background-color: #FCFCFC;
  color:#2f2f2f;
  transition: .2s;
}

input[type=text]:disabled {
  background-color: #dcdcdc;
}

input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

input[type=submit]:hover, button:not([disabled]):hover {
  cursor: pointer;
  background-color: #959595;
}

input[type=submit] {
  border-width: 0;
  background-color: #D3D3D3;
  font-weight: bold;
  color: #444;
  
}

button:disabled {
  cursor: not-allowed;
  background-color: #f4f4f4;
  color: #b1b1b1;
}

input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

#loginForm form input[type=email], #loginForm form input[type=password], #loginForm form input[type=text], #loginForm form input[type=date].gegenwertigeSchuleSelect {
  width: 30rem;
  height: 2.4rem;
  font-size: 1.1rem;
  margin: .3rem 1rem 0 0;
  padding: 0 0 0 .5rem;
}

footer {
  margin-top: 1rem;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 6rem;
}

#msgBox {
  margin-top: 1.5rem;
  width: 30rem;
  outline: 3px solid #f77;
  outline-offset: -3px;
  border-radius: 10px;
}

#msgBox p {
  padding: .8rem 1rem 0.8rem 1rem;
  text-align: center;
}

#msgBox.error {
  background-color: #ffe6e6;
  border-color: #ff8c8c;
}

#msgBox.success {
  background-color: #ceffdd;
  outline-color: #50c065;
}

.break-desktop {
  display: block;
}

.break-tablet {
    display: none;
  }

.break-mobile {
  display: none;
}

.break-small-mobile {
  display: none;
}

/* Anmeldung Form */

.splitBox {
  display: flex;
}

.split1 {
  flex: 50%;
  padding-right: 1em;
}

.split2 {
  flex: 50%;
  padding-left: 1em;
}

.mainForm input:not([type=radio]):not([type=checkbox]), .splitBox button, .dropdown, .dropdownOhneAndere {
  width: 100%;
  height: 2.5rem;
  font-size: 1.1rem;
  padding-left: .7rem;
  margin: .25rem 0 1rem 0;
}

.dropdown, .dropdownOhneAndere {
  margin: .3rem 0 .5rem 0;
}

.splitBox button {
  margin: 2rem 0 0 0;
}

.splitBox #backButton {
  margin-right: .5rem;
}

.splitBox #nextButton {
  margin-left: .5rem;
}

.mainForm label {
  margin: 0 1.3rem 0 0;
}

.navBox {
  display: flex;
  justify-content: center;
  text-align: center;
  bottom: 0;
  max-width: 100%;
  width: 100%;
  background-color: #fff;
  border: 2px solid #d9d9d9;
  box-sizing: border-box;
  position: fixed;
}

.navBoxButtons {
  display: flex;
  padding: 1.4rem 3.7rem 1rem 3.7rem;
  max-width: 93.7%;
  width: 100%;
  gap: 3.7rem;
}

.navButton {
  height: 2.3rem;
  width: 50%;
  font-size: 1.1rem;
  transition: 0.3s;
  font-weight: 500;
  border: 1px solid #aaa;
  box-sizing: border-box;
  outline: none;
  background-color: #d6d6d6;
  color:#2f2f2f;
  border-radius: 30px;
}

table {
  box-sizing: border-box;
}

.fremdsprachenBox td, .fremdsprachenBox th {
  text-align: center;
  
}

.main .innerMain  .mainForm table tbody tr td input, .main .innerMain  .mainForm table thead tr th input {
  width: 3.5rem;
  text-align: center;
}

.mainForm .fremdsprachenBox table tbody tr td input[type="text"] {
  padding: 0;
}

.section select {
  background-color: #eaeaea;
  border-radius: 4px;
  border-width: 1px;
}

.section h2.secTitle {
  margin-top: 2rem;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  line-height: 1.8rem;
}

.captcha {
  border-radius: 3px;
  box-sizing: border-box;
}

.captchaBox {
  width: 350px;
  box-sizing: border-box;
}

.captchaBox select {
  border-radius: 2px;
  color: #0F0F0F;
  background-color: #FCFCFC;
  border: 1px solid #aaa;
}

.letterBox {
  display: flex;
  width: 310px;
  height: 90px;

  justify-content: center;
  align-items: center;
}

.letterBox svg {
  margin-left: .25rem;
  margin-right: .25rem;
}

/* Responsiv Design */

@media (min-width: 1920px) {
  .banner, .innerMain, .navBoxButtons { 
    max-width: 70%;
  }
  
  .break-desktop {
    display: block;
  }

  .break-tablet {
    display: none;
  }

  .break-mobile {
    display: none;
  }

  .break-small-mobile {
    display: none;
  }
}

@media (max-width: 1224px) {

  .title1 {
    line-height: 3.1rem;
  }

  .banner, .innerMain{ 
    max-width: 93.7%;
  }

  .break-desktop {
    display: none;
  }

  .break-tablet {
    display: block;
  }
}

@media (max-width: 767px) {
  .break-desktop {
    display: none;
  }

  .break-tablet {
    display: none;
  }

  .break-mobile {
    display: block;
  }

  .break-small-mobile {
    display: none;
  }

  .banner, .innerMain{ 
    max-width: 100%;
  }

  #msgBox {
    width: 100%;
  }

  #msgBox p {
    padding: .7rem .5rem .7rem .5rem;
  }

  .splitBox {
    display: block;
  }

  .split1, .split2 {
    flex: 100%;
  }

  .split1 {
    padding-right: 0;
  }
    
  .split2 {
    padding-left: 0;
  }

  .captchaBox {
    width: 100%;
  }

  .captcha {
    width: 100%;
  }

  .headline h1 {
    font-size: 1rem;
    width: 80%;
  }

  .headline1 {
    display: none;
  }

  .headline2 {
    display: block;
  }

  .time-left {
    width: 20%;
    display: block;
  }

  .restzeit {
    text-align: center;
  }

  .time-left .timeBox img {
    margin: 0;
  }

  .time-left p {
    width: 100%;
    line-height: 1rem;
    margin-bottom: .35rem;
  }

  .timeBox {
    line-height: 1rem;
    margin-top: .35rem;
  }

  .time-left #timer {
    margin-left: .2rem;
  }

  .innerMain {
    border-top: solid 2px #eaeaea;
  }

  .section {
    padding: 1rem 1.4rem 3rem 1.4rem;
  }

  .titleBox {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .title1 {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 2.2rem;
  }
  .kampagne {
    line-height: 1.9rem;
    font-size: 1.25rem;
  }

  .mainForm h2 {
    margin-top: 3rem;
    font-size: 1.5rem;
    line-height: 2rem;
    padding-bottom: 1rem;
  }

  #loginForm form input[type=email], #loginForm form input[type=password], #loginForm form input[type=text],
  #loginForm form input[type=date], #loginForm form input[type=submit] {
    width: 100%;
  }

  .section p {
    font-size: 1.2rem;
    margin-top: 1.4rem;
    margin-bottom: .3rem;
  }

  .mainForm .splitBox input:not([type=radio]):not([type=checkbox]) {
    padding: 0 0 0 .6rem;
    font-size: 1.2rem;
    height: 2.6rem;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    color: #444;
  }

  .mainForm input[type=radio] {
    height: 1.2rem;
    width: 1.2rem;
    margin: 0 .3rem .8rem 0;
  }

  .mainForm .ersteStaatsangehörigkeit {
    margin: 2rem 0 0 0;
  }

  .mainForm label {
    margin: 0 2rem 0 0;
    font-size: 1.3rem;
  }

  .mainForm .geg {
    line-height: 1.5rem;
    margin: 1rem 0 .5rem 0;
  }

  .mainForm #boxZweiterErziehungsberechtigter {
     margin: 4rem 0 0 0;
  }

  .navBoxButtons {
    gap: 1rem;
    padding: 1rem;
  }

  .dropdown, .dropdownOhneAndere {
    font-size: 1.2rem;
    height: 2.6rem;
  }

  .navButton {
    width: 100%;
    height: 2rem;
    font-size: 1rem;
    border-radius: 50px;
    background-color: #bebebe;
    border: none;
    color: #444;
  }

  footer {
    margin: .5rem 0 5rem 0;
  }
}

@media (max-width: 480px) {
  .break-small-mobile {
    display: block;
  }

  .break-desktop {
    display: none;
  }
}

/* Dark Mode */

@media (prefers-color-scheme: dark) {
  .req {
    color: #eb5b5b;
  }

  #msgBox.error {
    background-color: #973333;
    outline-color: #c14444;
  }

  #msgBox.success {
    background-color: #7dffa6;
    outline-color: #60be71;
  }

  html {
    background-color: #535353;
  }

  header {
    background-color: #105772;
  }

  .timeBox img {
    filter: brightness(0) saturate(100%) invert(75%);
  }

  a:not([class="req"]), body, input, button, select, #changeMe5, #changeMe2, #changeMe4, .title1 {
    color: #cbcbcf;
  }

  body, .main, input, button, select, .section input[type=date] {
    background-color: #535353;
  }

  .navBox {
    background-color: #3f3f3f;
  }

  #loginForm input[type=submit] {
    background-color: #8d8d8d;
  }

  .headline, .titleBox, .section  {
    background-color: #333333;
  }

  .innerMain {
    border-top: .5px solid #474747;
  }

  .section, .navBox {
    border: 2px solid #474747;
  }

  input, button, select, .navButton {
    border: 1px solid #474747;
  }

  .mainForm .splitBox input:not([type=radio]):not([type=checkbox]), .navButton { 
    color: #cbcbcf;
  }

  .navButton {
    background-color: #2f2f2f;
  }

  button:disabled {
    background-color: #3a3a3a;
    color: #8d8d8d;
  }

  button:not([disabled]):hover {
    background-color: #212121;
    color: #cbcbcf;
  }
    
  a:not([class="req"]), .section a:not([class="req"]) {
    color: #cbcbcf;
  }

  .section select {
    background-color: #535353;
  }

  .innerMain .mainForm .section input:disabled {
    background-color: #3f3f3f;
    color: #a3a3a3;
    cursor: not-allowed;
  }
}
