*,
::after,
::before {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

:root {
    --color-lightblue: #90afc5;
    --color-blue: #336b87;
    --color-lightgrey: #eee;
    --color-white: #fff;
    --color-border: #ccc;
    --color-note: #fffdcc;
    --color-font: #2a3132;

}

html {
  background-image: linear-gradient(135deg, #f2f2f2 25%, #ffffff 25%, #ffffff 50%, #f2f2f2 50%, #f2f2f2 75%, #ffffff 75%, #ffffff 100%);
  background-size: 7.00px 7.00px;
  display: block;
}

body {

  display: block; /* oder Flexbox OHNE align-items */
  text-align: center;
  margin: 0;
  min-height: 100vh;
  font-family: "Play", sans-serif;
  font-size: 0.9em;
  color: var(--color-font);
  margin: 0;
}

button {
    display: inline-flex; /* Flexbox verwenden */
    align-items: center; /* Vertikal zentrieren */
    justify-content: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid var(--color-border);
    padding: 0.25rem;
    margin-left: 0;
    border-radius: 0.5rem;
    background-color: var(--color-lightgrey);
    color: var(--color-font);
    transition: background-color 0.5s ease;
}

button:disabled {
    background-color: #333;
    transition: none;
    color: #555;
}

button:hover {
    background-color: var(--color-border);
}

#container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100dvw;
  align-items: center;
  background-color: var(--color-lightgrey);
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
  padding: .75rem; 
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

#header {
  width: 100%;
  background-color: var(--color-blue);
  color: #fff;
  padding: .5rem;
  border-top-left-radius: .5rem;
  border-top-right-radius: .5rem;
}

#navbar {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: .5rem;
  background-color: var(--color-lightblue);
  border-bottom-left-radius: .5rem;
  border-bottom-right-radius: .5rem;
}

#module {
  width: 100%;
  flex: 1;
}

#content {
  padding: .5rem;
  text-align: left;
}

#footer {
  border-top: 1px solid var(--color-border);
  padding-top: .5rem;
  padding-bottom: .5rem;
  margin-top: .5rem;
  width: 100%;
  font-size: small;
}

/* Für WebKit-Browser wie Chrome, Vivaldi, Safari */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background-image: linear-gradient(
      135deg,
      #222 25%,
      #111 25%,
      #111 50%,
      #222 50%,
      #222 75%,
      #111 75%,
      #111 100%
  );
  background-size: 5px 5px;
  border-left: 1px solid #444;
  border-bottom-right-radius: .25rem;
}

::-webkit-scrollbar-thumb {
  background-color: #333;
  border-left: 1px solid #444;
  border-top: 1px solid #444;
  border-bottom: 1px solid #444;
}

.pin-container {
  text-align: center;
  padding: 0.5rem;

}
.pin-inputs {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-top: 1em;

}
.pin-inputs input {
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  text-align: center;
  border: 2px solid var(--color-border);
  border-radius: .5rem;
  transition: border-color 0.4s;
  background-color: #fff;
}
.pin-inputs input:focus {
  outline: none;
  border-color: var(--color-blue);
}
    
.register-form-input {
  display: block;
  width: 100%;
  margin: 0;
  margin-top: 1rem;
  padding: 0.25rem;
  line-height: 1.5;
  color: #fff;
  background-clip: padding-box;
  border: 1px solid var(--color-border);
  border-radius: .5rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: .25rem .25rem .35rem rgba(0, 0, 0, 0.2);
}

/* Wrapper als flex Container für Zentrierung */
.wrapper {
  display: flex;
  justify-content: center;  /* horizontal zentrieren */
  align-items: center;      /* vertikal zentrieren */
  height: 100vh;            /* volle Höhe des Viewports */
  width: 100%;
}

/* Deine Karte */
.register-card {
  background: white;
  padding: 1rem;
  border-radius: .5rem;
  box-shadow: .25rem .25rem .35rem rgba(0, 0, 0, 0.2);
  width: 320px;
  text-align: center;
  border: 1px solid var(--color-border);
}

.register-button {
  display: inline-flex; /* Flexbox verwenden */
  align-items: center; /* Vertikal zentrieren */
  justify-content: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid var(--color-border);
  padding: 0.25rem;
  margin-top: 1.5rem;
  border-radius: 0.25rem;
  background-color: #333;
  color: #ffb73a;
  width: 100%;
  transition: background-color 0.5s ease;
  box-shadow: .15rem .15rem .25rem rgba(0, 0, 0, 0.9);
}
.register-button:hover {
    background-color: var(--color-border);
}
.error-message {
  color: red;
  margin-top: .75rem;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
}

.copyright {
  margin-top: .75rem;
}

.skill-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1rem;
}

.skill-card {
  background-color: var(--color-white);
  padding: .75rem;
  border-radius: .5rem;
  box-shadow: .25rem .25rem .35rem rgba(0, 0, 0, 0.2);
}

.skill-card h4 {
  margin: 0 0 0.5rem;
  color: var(--color-font);
}

.skill-bar {
  background: #ddd;
  border-radius: 5px;
  height: 10px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.skill-level {
  background-color: var(--color-blue);
  height: 100%;
  width: 0; /* Wird inline gesetzt */
  transition: width 0.5s ease;
}

.documents-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1rem;
}

.documents-thumb {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--color-border);
  height: 76px;  
  min-width: 66px;
  margin-right: .5rem;
  border-radius: .5rem;
    background-image: linear-gradient(135deg, #f2f2f2 25%, #ffffff 25%, #ffffff 50%, #f2f2f2 50%, #f2f2f2 75%, #ffffff 75%, #ffffff 100%);
    background-size: 7.00px 7.00px;
}

/* Grundlegende Regel für alle Formularelemente */
button, input, select, textarea, optgroup {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
}

@media screen and (max-width: 768px) {

  html {
  background-image: none;
  background-size: 7.00px 7.00px;
    background-color: var(--color-lightgrey);
  }

  body {
    display: flex;
    align-items: center;
    text-align: center;
    font-family: "Play", sans-serif;
    font-size: 0.9em;
    color: var(--color-font);
    margin: 0;
    height: 100%;
    background-image: linear-gradient(135deg, #f2f2f2 25%, #ffffff 25%, #ffffff 50%, #f2f2f2 50%, #f2f2f2 75%, #ffffff 75%, #ffffff 100%);
    background-size: 7.00px 7.00px;
  }

  #container {
    background-color: var(--color-lightgrey);
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100dvw;
    align-items: center;
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
    /*box-shadow: 0 0 .35rem rgba(0, 0, 0, 0.5);*/
    padding: .75rem; 
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
  }
  .skill-container {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      grid-gap: 1rem;
  }
  .documents-container {
      grid-template-columns: repeat(1, 1fr);
  }
}
