:root {
  --GRAU_HELL: #e2e1e1;
  --DUNKEL: #111111;
  --WEISS: #ffffff;

  --BLAU: #00d9e1; --PINK: #ff2d83; --GRUEN: #86fc4d;
  --LILA: #7f52f6; --GELB: #e5ff00; --ORANGE: #f09837;

  --FONT-REGULAR: "SpaceMono", spacemono, Menlo, Monaco, Consolas, monospace;
  --FONT-BOLD: "SpaceMonoBold", spacemono, Menlo, Monaco, Consolas, monospace;
  --FONT-ITALIC: "SpaceMonoItalic", spacemono, Menlo, Monaco, Consolas, monospace;
}

@font-face { font-family: "SpaceMono"; src: url("fonts/SpaceMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "SpaceMonoBold"; src: url("fonts/SpaceMono-Bold.woff2") format("woff2"); }
@font-face { font-family: "SpaceMonoItalic"; src: url("fonts/SpaceMono-Italic.woff2") format("woff2"); }

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: transparent; 
  color: var(--DUNKEL);
  font-family: var(--FONT-REGULAR);
  
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Fixer Header */
  align-items: center;
  
  min-height: 100vh;
  padding-top: 12vh;
}

.card {
  background-color: var(--WEISS);
  border: 1px solid var(--DUNKEL);
  max-width: 600px;
  width: 90%;
  text-align: center;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  
  padding: 8rem 3rem 2rem 3rem; 
  animation: shadowWaver 6s ease-in-out infinite;
  margin-bottom: 2rem;
  

  position: relative; 
  z-index: 10;
  transition: background-color 0.5s ease;
}

@keyframes shadowWaver {
  0% { box-shadow: 0 5px 30px -5px var(--LILA), -5px 0 20px -5px var(--GRUEN), 5px 0 20px -5px var(--PINK); }
  50% { box-shadow: -5px 10px 30px -5px var(--BLAU), 5px -5px 25px -5px var(--ORANGE), 0 5px 20px -5px var(--GELB); }
  100% { box-shadow: 0 5px 30px -5px var(--LILA), -5px 0 20px -5px var(--GRUEN), 5px 0 20px -5px var(--PINK); }
}


h1 {
  font-family: var(--FONT-BOLD);
  text-transform: uppercase;
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

h2 {
  font-family: var(--FONT-ITALIC);
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 3rem; 
}

h3 { font-family: var(--FONT-REGULAR); font-size: 20px; line-height: 1.3; margin-bottom: 0.5rem; }
h4 { font-family: var(--FONT-REGULAR); font-size: 14px; line-height: 1.5; margin-top: 0; margin-bottom: 3rem; }

.legal-text {
  font-family: var(--FONT-REGULAR);
  font-size: 12px;
  line-height: 1.6;
  width: 100%;
  margin-bottom: 3rem;
}
.legal-text h3 {
  font-size: 14px; font-weight: bold; margin-top: 1.5rem; margin-bottom: 0.5rem;
  text-transform: uppercase; text-align: center;
}
.legal-text p { margin-bottom: 1rem; }


@keyframes softFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.link-anim {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--DUNKEL);
  padding-bottom: 2px;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--DUNKEL);
}

.footer-links .link-anim { border-bottom: none; }

.link-anim:hover {
  color: transparent;
  background: linear-gradient(90deg, var(--BLAU), var(--PINK), var(--BLAU));
  background-size: 200% auto;
  padding-bottom: 2px;
  -webkit-background-clip: text;
  background-clip: text;
  
  border-bottom-color: transparent !important;
  
  animation: softFlow 3s ease-in-out infinite alternate;
}

.link-anim:hover::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--BLAU), var(--PINK), var(--BLAU));
  background-size: 200% auto;
  animation: softFlow 3s ease-in-out infinite alternate;
}


@keyframes randomLine {
  0% { width: 100%; left: 0; }
  15% { width: 40%; left: 0%; }
  30% { width: 80%; left: 20%; }
  45% { width: 20%; left: 80%; }
  60% { width: 60%; left: 10%; }
  75% { width: 90%; left: 5%; }
  90% { width: 30%; left: 70%; }
  100% { width: 100%; left: 0; }
}

a.email-main {
  margin-bottom: 3rem;
  border-bottom: none !important;
}

a.email-main::after {
  content: ''; 
  position: absolute;
  bottom: 0; left: 0; height: 1px;
  background-color: var(--DUNKEL);
  
  animation: randomLine 3s infinite ease-in-out; 
}


a.email-main:hover::after {
  animation: softFlow 3s ease-in-out infinite alternate;
  width: 100%; left: 0; 
}


a.back-btn {
  text-decoration: none; color: var(--DUNKEL);
  position: relative; padding-bottom: 2px;
  margin-bottom: 3rem;
  border-bottom: none !important;
}


a.back-btn::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; height: 1px;
  background-color: var(--DUNKEL);
  animation: randomLine 3s infinite ease-in-out; 
}


a.back-btn:hover::after {
  animation: softFlow 3s ease-in-out infinite alternate;
  width: 100%; left: 0;
}


.impressum-mail {
  position: relative;
  text-decoration: none;
  color: var(--DUNKEL);
  padding-bottom: 2px;
  border-bottom: none !important;
}


.impressum-mail::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 1px;
  background-color: var(--DUNKEL);
  transition: opacity 0.2s ease; 
}


.impressum-mail:hover::before {
  opacity: 0;
}

.impressum-mail:hover {
  color: transparent;
  background: linear-gradient(90deg, var(--BLAU), var(--PINK), var(--BLAU));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: softFlow 3s ease-in-out infinite alternate;
}

.impressum-mail:hover::after {
  content: ""; 
  position: absolute; 
  left: 0; bottom: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--BLAU), var(--PINK), var(--BLAU));
  background-size: 200% auto;
  animation: softFlow 3s ease-in-out infinite alternate;
}


.footer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  

  text-transform: uppercase; 
  letter-spacing: 0.05em; 
  font-size: 11px;
}

.active-page {
  font-family: var(--FONT-BOLD), monospace;
  color: var(--DUNKEL);
  pointer-events: none;
  cursor: default;
}

.separator { font-size: 10px; color: var(--DUNKEL); position: relative; top: -1px; }

.footer-logo { margin-top: 0.5rem; margin-bottom: 0rem; }
.footer-logo img { display: block; max-width: 120px; height: auto; }

.footer-copyright {
  display: flex; justify-content: center; gap: 6px; font-size: 11px; margin-top: 0; color: var(--DUNKEL);
}
.copyright-symbol { font-family: Arial, sans-serif; font-size: 12px; line-height: 1.3; transform: translateY(1px); }
.copyright-year { letter-spacing: 0.1em; }

@media (max-width: 600px) {
  .card { 
    padding: 4rem 1.5rem 2rem 1.5rem; 

    width: calc(100% - 20px); 
    border: none; 
  }
  h1 { font-size: 28px; }
}


#bgVideo {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; 
  z-index: -5; 
}

#videoOverlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: var(--GRAU_HELL);
  z-index: -4; 
  transition: opacity 0.5s ease;
  opacity: 1; 
}


@media (hover: hover) {
  body.video-active #videoOverlay { 
    opacity: 0;
  }
}
