@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100vh; /* volle Höhe mindestens */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* oder center, je nach Inhalt */
    align-items: center;
    background:
      linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 100%),
      url('background.png') no-repeat center center / cover;
    overflow-x: hidden; /* horizontales Scrollen verhindern */
    font-family: "Poppins", sans-serif;
}

.codebank-intro {
    color:white;
    position:absolute;
    left: 10px;
}


header {
    position: fixed;
    top: 0;
background: rgba(0, 0, 0, 0.55)    left: 0;
    width: 100%;
    padding: 20px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
}

.logo {
    font-size: 2em;
    color: #fff;
    user-select: none;
}

.navigation a {
    position: relative;
    font-size: 1.1em;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 40px;
}

.navigation a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .5s;
}

.navigation a:hover::after {
    transform-origin: left;
    transform: scaleX(1);
}

.navigation .btnlogin-popup {
    width: 130px;
    height: 50px;
    background: transparent;
    border: 2px solid #fff;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
    margin-left: 40px;
    transition: .5s;
    visibility: visible;
}

.navigation .btnlogin-popup:hover {
    background: #fff;
    color: #162938;
}

.wrapper {
  position: absolute; /* schwebt über allem */
  top: 100px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 400px;
  height: 440px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 30px rgba(0, 0, 0, .5);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: transform 0.5s ease, height 0.2s ease;
  visibility: hidden;
  z-index: 1000;
}

.wrapper.active-popup {
  transform: translateX(-50%) scale(1);
  visibility: visible;
}

.wrapper.active {
    height: 520px;

}

.wrapper .form-box {

    width: 100%;
    padding:40px;
}

.wrapper .form-box.login {
   transition: transform .18s ease;
}

.wrapper.active .form-box.login {
    transition: none;
    transform: translateX(-400px);
}

.wrapper .form-box.register {
    position: absolute;
    transition: none;
    transform: translateX(400px);
}

.wrapper.active .form-box.register {
    transition: transform .18s ease;
    transform: translateX(0);
}


.wrapper .icon-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    background: #162938;
    font-size: 2em;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 20px;
    cursor: pointer;
    z-index: 1;
}

.form-box h2{
font-size: 2em;
color: #162938;
text-align: center;
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    border-bottom: 2px solid #162938;
    margin: 30px 0;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #162938;
    pointer-events: none;
}

.input-box input:focus~label,
.input-box input:valid~label {
    top: -5px;
    transition: .5s;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none; 
    outline: none;
    font-size: 1em;
    color: #162938;
    font-weight: 600;
    padding: 0 35px 0 5px;
}

.input-box .icon {
    position: absolute;
    right: 8px;
    font-size: 1.2em;
    color: #162938;
    line-height: 57px;
}

.remember-forgot {
font-size: .9rem;
color: #162938;
font-weight: 500;
margin: -15px 0 15px;
display: flex;
justify-content: space-between;
}

.remember-forgot label input {
    accent-color: #162938;
    margin-right: 3px;
}

.remember-forgot a {
    color: #162938;
    text-decoration: none;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

.remember-forgot a.termsofuse {
    font-weight: 600;
}

.btn {
    width: 100%;
    height: 45px;
    background: #162938;
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
    font-weight: 500;
}

.login-register {
    font-size: .9em;
    color: #162938;
    text-align: center;
    font-weight: 500;
    margin: 25px 0 10px;
}

.login-register p a {
    color: #162938;
    text-decoration: none;
    font-weight: 600;
}

.login-register p a:hover {
    text-decoration: underline;
}


.wrapper .termsofusebox {
    text-decoration: none;
    display: flex;
    align-items:center;
    justify-content:center;
    margin:0;
    text-align:center;
    z-index: 9999;
    position: absolute;
    transform: translateX(400px);
    height:440px;
    width: 400px;
    overflow-y: auto;
}

.wrapper .termsofusebox p {
    font-weight: 300;
    color: #162938;
    text-decoration:none;
    position: absolute;
    left: 10px;
    top: 50px;
    font-size: 1.2em;
}

.termsofusebox::-webkit-scrollbar {
    width: 8px;
    margin-top:2rem;
}

.termsofusebox::-webkit-scrollbar-track {
    background:transparent;   
    backdrop-filter: blur(10px);
}

.termsofusebox::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.wrapper .termsofusebox h1 {
    top:0;
    height: 100%;
    margin:0;
    text-align:center;
    justify-content:center;
    font-size: 2em;
}

.wrapper.active-terms .form-box.register {
    transform: translateX(-100%);
    transition: transform .5s ease, .2s ease;
}

.wrapper.active-terms .termsofusebox {
    transform: translateX(0);
    transition:none;
}

.wrapper .termsofusebox .ok {
    width: 20%;
    /*height: 45px;*/
    border: none;
    cursor: pointer;
    font-size: 1em;
    color: #162938;
    font-weight: 500;
   /* position:absolute;*/
    /*bottom: 0px;*/
}

.alert {
  max-width: 480px;
  background-color: #fff5f5; /* z.B. helles Rosa für Fehler */
  color: #900; /* dunkles Bordeauxrot */
  border: 1px solid #e5a1a1;
  border-radius: 8px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  padding: 14px 20px;
  margin: 0.75rem auto 1.5rem auto; /* Abstand oben und unten, zentriert */
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.05);
  cursor: default;
  user-select: text;
}

.alert .icon {
  font-size: 1.3rem;
  line-height: 1;
  color: inherit;
}

.alert .message {
  flex-grow: 1;
}

.alert .close-btn {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  user-select: none;
}





.background {
    
    background-size:cover;
    background-position:center;
    position:fixed;
    z-index: -1;
    left: 0; right: 0; width: 100%; height:60%;
    bottom: 0;
}

 .toggle-impressum {
      position: fixed;
      left: 50%;
      bottom: 1rem;
      transform: translateX(-50%);
      width: 50px;
      height: 50px;
      border-radius: 50%;
      border: none;
      background: #162938;
      color: white;
      font-size: 1.5rem;
      z-index: 1001;
      cursor: pointer;
      transition: bottom 0.4s ease;
    }

.toggle-impressum:hover {
  background: rgba(22, 41, 56, 1); /* weniger transparent bei Hover */
  transform: translateX(-50%) scale(1.05);
}

.impressum-box {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      background: #162938;
      color: white;
      padding: 0;
      border-top-left-radius: 20px;
      border-top-right-radius: 20px;
      height: 80vh;
      transform: translateY(100%);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.4s ease, opacity 0.4s ease;
      z-index: 1000;
      justify-content: center;
    }

 .impressum-box.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

    

body.impressum-open .toggle-impressum {
  bottom: 65%;
}

.codebank-intro {
  max-width: 100%;
  margin: 0 auto;
  font-family: 'Segoe UI', sans-serif;
  color: #f0f0f0;
  flex-wrap: wrap;
  display:flex;
  justify-content: center;
  flex-wrap:wrap;
  height: 100%;
  bottom: 0;
}

.miniü {
  text-align: center;
  margin-bottom: 3rem; /* oder mehr bei Bedarf */
  width: 100%;
}

.space {
  display: flex;
  justify-content: center;  /* Horizontal zentrieren */     /* Vertikal zentrieren */
  height: 100vh;            /* Gesamthöhe des Viewports */
  text-align: center;
  top:0;
}



.impressum-box h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  display:flex;
  position:static;

}




.centered-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.codebank-intro h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
  margin-top: 3rem;
  position:relative;
  display:flex;
}

.codebank-intro .highlight {
  color: #4cc9f0;
}

.codebank-intro h2 {
  margin-top: 1.5rem;
  font-size: 2rem;
  text-align: center;
  color: #fff;
}


.codebank-intro .lead {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ccc;
}

.features-grid {
  display: flex;
  justify-content: center;   /* zentriert die gesamte Gruppe horizontal */
  flex-wrap: wrap;           /* erlaubt Umbruch auf kleineren Screens */
  gap: 2rem;                 /* gleichmäßiger Abstand */
  margin: 3rem auto 2rem;
  max-width: 1500px;
  top:1.5rem;
}

.feature {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  justify-content: space-between;
  text-align: center;
  height: 340px;
  width: 340px;
}

.feature:hover {
  transform: translateY(-4px);
}

.feature .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.feature h3 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.feature p {
  font-size: 0.95rem;
  color: #ccc;
}

.cta {
  text-align: center;
  padding: 1.5rem 0;
}

.cta h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.1rem;
  color: #ccc;
}

@media (max-width: 1400px) {
  .features-grid {
    grid-template-columns: repeat(2, 340px);
  }
}

@media (max-width: 720px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.footer { /* dunkles Grau mit 95 % Deckung */
  color: white;
  padding: 50px 20px 20px;
  width: 100%;
  z-index: 9999;
  position:relative;
  display:block;
  height: 100%;
  bottom:0;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* für dunkle Footer */
  padding-top: 2rem;
}

.container {
  max-width: 100%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  background-color: #343434;
  height:620px;
  color:white;
}

.footer-content {
  flex: 1 1 250px;
  min-width: 200px;
  margin-top:6rem;
}


.footer-content h3 {
  font-size: 22px;
  margin-bottom: 15px;
  text-align: center;
}

.footer-content ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.footer-content li {
  margin: 0;
  position: relative;
}

.footer-content a::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #f18930;
  transition: width 0.3s;
}

.footer-content a:hover::before {
  width: 70px;
}

.footer-content a {
  text-decoration: none;
  color: white;
}

.footer-content a:hover {
  color: #f18930;
}

.social-icons {
  text-align: center;
  padding: 0;
  bottom:0;
}

.social-icons li {
  display: inline-block;
  bottom:0;
  margin: 5px;
}

.social-icons i {
  font-size: 25px;
  color: white;
  transition: color 0.3s;
}

.social-icons i:hover {
  color: #f18930;
}

.bottom-bar {
  background: #f18930;
  text-align: center;
  padding: 10px 0;
  margin-top: 0px;
  bottom:0;
}

.bottom-bar p {
  color: #343434;
  font-size: 16px;
  margin: 0;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-content,
  .footer-content-link {
    margin-bottom: 30px;
  }
}

.everything {
 position:relative; 
 flex:1;
 padding: 2rem;
 width: 100%;
 box-sizing: border-box;
}

.everything-foot-head{
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
}


.video-showcase {
  position: relative;
  height: 800px;
  overflow: hidden;
  bottom:12rem;
}

.video-showcase video {
  width: 80vh;
  height: 80vh;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); /* optional dunkler Filter */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 0 0 5px black;
  text-align: center;
  padding: 2rem;
}

.footer-links {
  justify-content:center;
  position:relative;
  display:flex;
  margin:0;
}

