:root {
  --color-primary: #0118D8;
  --color-accent: #1B56FD;
  --color-light: #e9dfc3;
  --color-bg: #FFF8F8;
  --color-text: #1a1a1a;
  --header-height: 100px;  
}

body.light-mode {
  --color-bg: #121212;
  --color-text: #e0e0e0;
  --color-primary: #5588ff;
  --color-accent: #3b6cff;
  --color-light: #1e1e1e;
}

html {
  scroll-padding-top: 130px; 
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
 transition: background-color 0.3s ease, color 0.3s ease;

}

/* HEADER */
#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background-color: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 10000;
  transition: transform 0.5s ease, height 0.4s ease, padding 0.4s ease;

  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#topbar.shrink {
  height: 70px;
  padding: 0 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#topbar.hide {
  transform: translateY(-100%);
  opacity: 0;
}

#welcome,
#willkommen {
  width: 100%;
  height: 120vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0;
  margin: 0;
 transition: height 0.5s ease, opacity 0.6s ease;
 position: relative;
}

.welcome-content {
  position: relative;
  z-index: 10; 
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.welcome-right p {
  font-size: clamp(2rem, 10vw, 8rem);
  color: white;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 11; 
}

#welcome.shrink,
#willkommen.shrink {
  height: 80px !important;
  padding: 0 1.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#welcome.hide,
#willkommen.hide {
  transform: translateY(-100%);
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* NAME LINKS */
.logo {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-right: auto;
  transition: all 0.3s ease;
}

.logo:hover {
  text-shadow: 0 0 12px var(--color-accent);
}

/* NAV ZENTRIERT */
nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background-color: var(--color-light);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--color-light);
}

/* TOGGLE RECHTS */
#mode-toggle {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.about-section {
  margin-top: 200px;
  padding: 6rem 2rem;
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.about-name {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-primary);
  text-align: center;
}

.about-text {
  font-size: 1.25rem;
  line-height: 1.8;
  max-width: 700px;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.about-text strong {
  color: var(--color-primary);
  font-weight: 700;
}

.about-text em {
  color: var(--color-accent);
  font-style: italic;
}

.profile-img {
  width: 260px;
  height: auto;
  border-radius: 20px;
  border: 3px solid var(--color-primary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
}

.about-right {
  max-width: 600px;
  font-size: 1.2rem;
  line-height: 1.7;
  font-weight: 500;
  color: var(--color-text);
}

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

/* SECTIONS */
section {
  min-height: 80x vh;
  padding: 8rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  background-color: var(--color-bg); 
  box-shadow: none !important;
  filter: none !important;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-shadow: none;
}

section p, section li {
  max-width: 700px;
  line-height: 1.6;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
}

ul {
  list-style: disc inside;
  padding: 0;
  margin: 0 auto;
  text-align: left;
}

ul li::before {
  content: none !important;
}

.skills-section {
  padding: 6rem 2rem;
  text-align: center;
  transition: background 0.3s ease;
}

.skills-section:hover {
    transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.skills-section h2 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.skills-section:hover h2 {
  transform: scale(1.03);
}

.skills-section ul {
  list-style: disc inside;
  padding: 0;
  margin: 0 auto;
  max-width: 700px;
  text-align: left;
}

.skills-section li {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.skills-section li:hover {
  transform: translateX(8px);
}

body.light-mode .skill-box {
  background-color: #1a1a1a;
  color: white;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.08);
}

body.light-mode .skill-box span {
  color: #fff;
}

body.light-mode .skill-box .bar {
  background: #333;
}

body.light-mode .skill-box .bar div {
  background: var(--color-primary); 
}

.projects-section {
  margin-top: 8vh;
  padding-bottom: 4rem;
}

.info-grid-section {
  padding: 6rem 2rem;
  text-align: center;
}

.info-grid-section h2 {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 3rem;
  font-weight: 800;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.info-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: left;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  position: relative;
  z-index: 1;
}

.info-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.info-card p {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #000000;
}

/* Lightmode */
body:not(.dark-mode) .info-card {
  background-color: #ffffff;
  color: #ffffff;
}

/* Darkmode */
body.light-mode .info-card {
  background-color: #1a1a1a;
  color: #000000;
}

body.light-mode .info-card p {
  color: #ffffff;
}

.highlight {
  background-color: #1a1a1a !important;
}

body.light-mode .highlight {
  background-color: #e8f0ff;
}

.tech-section {            
  min-height: 450px;       
}

.tech-section h2 {
  font-size: clamp(1.5rem, 5vw, 2.8rem);
  text-align: center;
  word-break: break-word;
}

.tech-box{
  background:#fff;
  border-radius:24px;
  box-shadow:0 10px 40px rgba(0,0,0,.07);
  display:grid;
  grid-template-rows:auto 1fr auto;
  place-items:center;
  row-gap:1rem;
  height:270px;     
  padding:3rem;
  transition:transform .3s ease;
   height: 300px;          
  width: 40%;            
  overflow: hidden;       
  display: flex;          
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tech-box:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.tech-box h3,
.tech-box p {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  word-wrap: break-word;
  line-height: 1.5;
  padding: 0 0.5rem;
}

body.light-mode .tech-box {
  background: #1a1a1a;
  color: var(--color-text);
}

body.light-mode .tech-box h3,
body.light-mode .tech-box p {
  color: var(--color-text);
}

.tech-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.tech-left img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--color-accent)); 
}

.tech-label {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-text);
}

.tech-right h3 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.tech-right p {
  font-size: 1.1rem;
  max-width: 500px;
  line-height: 1.6;
  color: var(--color-primary);

}

.tech-progress {
  width: 60%;
  height: 4px;
  background-color: rgba(0, 0, 0, 0.05);
  margin-top: 1.5rem;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--color-primary);
  width: 0%;
  animation: progress 4s linear infinite;
}

@keyframes progress {
  from { width: 0%; }
  to { width: 100%; }
}

#techPlayPauseBtn {
  display: block; 
  margin: 0.5rem auto 1.5rem auto; 
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff; 
  background-color: var(--color-primary); 
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#techPlayPauseBtn:hover {
  background-color: var(--color-accent); 
  transform: translateY(-2px);
}

#techPlayPauseBtn i {
  margin-left: 8px;
}

.skill-intro {
      text-align: center;
      max-width: 800px;
      margin: 2rem auto 1rem;
      padding: 0 1rem;
    }
    .skill-intro h3 {
      font-size: 2rem;
      color: var(--color-primary);
      margin-bottom: 0.5rem;
    }
    .skill-intro p {
      font-size: 1.1rem;
      color: var(--color-text);
      line-height: 1.6;
    }

     .skill-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
      gap: 2rem;
      max-width: 600px;
      margin: 0 auto;
    }
    .skill-box {
      background: #ffffff;
      border-radius: 16px;
      padding: 1.5rem;
      text-align: center;
      border: 2px solid transparent;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      transition: all 0.3s ease;
    }
    .skill-box img {
      width: 40px;
      height: 40px;
      margin-bottom: 0.5rem;
      transition: filter 0.3s ease;
    }
    .skill-box span {
      display: block;
      font-weight: 600;
      margin-bottom: 0.5rem;
    }
    .skill-box .bar {
      height: 8px;
      background: #ddd;
      border-radius: 4px;
      overflow: hidden;
      margin-top: 0.5rem;
    }
    .skill-box .bar div {
      height: 100%;
      background: var(--color-primary);
      width: 0%;
      transition: width 0.6s ease;
    }

    /* ───── Hover‐Effekte ───── */
    .skill-box:hover {
      border: 2px solid var(--color-primary);
      box-shadow: 0 0 0 3px rgba(1,24,216,0.2);
      transform: translateY(-4px);
    }
    .skill-box:hover span {
      color: var(--color-primary);
    }
    .skill-box:hover img {
      filter: drop-shadow(0 0 6px var(--color-primary));
    }
    .skill-box:hover .bar div {
      width: 100%;
    }

.projects-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.projects-section h3 {
  margin-top: 2.5rem; /* oder mehr bei Bedarf */
  margin-bottom: 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}


.projects-section.visible .projects-title {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-circles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.circle {
  background: var(--color-primary);
  color: white;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.4s ease;
}

.circle-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
}



@media (max-width: 1000px) {
  .circle-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .circle-row {
    grid-template-columns: 1fr;
  }
}


.circle h3,
.circle p {
  color: white;
  transition: color 0.4s ease;
}

.projects-section.visible .circle {
  opacity: 1;
  transform: scale(1);
}

.circle:hover {
  background-color: var(--color-light);
  transform: scale(1.08);

}

body.dark-mode .circle:hover h3,
body.dark-mode .circle:hover p {
  color: black;
}

body:not(.light-mode) .circle:hover h3,
body:not(.light-mode) .circle:hover p {
  color: rgb(0, 0, 0);
}

body.light-mode .circle {
  background-color: #1a1a1a;
  transition: background-color 0.3s ease, transform 0.3s ease;
  transform: scale(1.08);
}

body.light-mode .circle:hover {
  background-color: #5588ff; 
  transform: scale(1.08);
}

body.light-mode .circle:hover h3,
body.light-mode .circle:hover p {
  color: white;
}
/* Modal-Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

/* Modal-Box */
.modal-content {
  padding: 0;
  border-radius: 16px;
  max-width: 90%;
  overflow: hidden;
  position: relative;
}

.modal-content video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  margin: 0;
  padding: 0;
  background-color: black; 
}

.modal.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; 
  box-sizing: border-box; 
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem; 
  background: transparent;
  backdrop-filter: blur(6px);
}

.modal.video-modal .modal-content {
  width: 100%; 
  max-width: 1100px; 
  aspect-ratio: 16 / 9;
  background-color: transparent; 
  border-radius: 20px;
  overflow: hidden; 
  position: relative; 
}

.modal.video-modal video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: black;
}


.modal-back-button {
  position: absolute;
  top: 15px;  
  left: 15px; 
  z-index: 10; 
  background-color: rgba(40, 40, 40, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.modal-back-button:hover {
  background-color: #ff4d4d;
  transform: scale(1.05);
}

/* GitHub Button im Kreis */
.project-circle button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}


.project-circle button:hover {
  background-color: var(--color-accent);
  color: black;
}

/*CV,Bewerbung und Zeugnise*/
.application-section {
  padding: 8rem 2rem;
  background-color: var(--color-bg);
  text-align: center;
}

/* Hinweis für Gäste */
.guest-hint {
  display: none;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 800px;
  text-align: center;
}

body.light-mode .guest-hint {
  color: #ccc;
}


.application-section h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
  color: var(--color-primary);
  font-weight: 800;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.application-card {
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
    transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
}

.application-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.application-card h3 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.application-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.application-button {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  font-weight: bold;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.application-button:hover {
  background-color: var(--color-primary);
  color: white;
}

body.light-mode .application-card {
  background-color: #1a1a1a;
  color: white;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

body.light-mode .application-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

body.light-mode .application-card h3 {
  color: var(--color-primary);
}

body.light-mode .application-card p {
  color: #ccc;
}

body.light-mode .application-button {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

body.light-mode .application-button:hover {
  background-color: var(--color-primary);
  color: white;
}

@keyframes blobPulse {
  0% {
    transform: translate(-50%, -50%) scale(1.2) rotate(0deg);
    border-radius: 50%;
  }
  50% {
    transform: translate(-48%, -52%) scale(1.9) rotate(20deg);
    border-radius: 58% 42% 62% 38% / 40% 60% 50% 50%;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6) rotate(-15deg);
    border-radius: 50%;
  }
}

.social-icons {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.icon-wrapper i {
  color: var(--color-primary);
  transition: transform 0.6s ease, color 0.6s ease;
  z-index: 2;
}

.icon-wrapper::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-light);
  transition: top 0.4s ease;
  z-index: 1;
}

.icon-wrapper:hover::before {
  top: 0;
}

.icon-wrapper:hover i {
  transform: rotateY(360deg);
  color: white;
}

.icon-wrapper.github::before {
  background-color: #333333; /* GitHub dunkelgrau */
}

.icon-wrapper.linkedin::before {
  background-color: #0077b5; /* LinkedIn blau */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  text-align: left;
  width: 100%;
}

.form-group label {
  font-weight: 600;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea {
  padding: 0.8rem;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(27, 86, 253, 0.2);
  outline: none;
}

#contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.form-status {
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  min-height: 1.5rem;
}

.form-status.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-status.success {
  background-color: #d4f9d4;
  color: green;
  border: 2px solid green;
}

.form-status.error {
  background-color: #ffe0e0;
  color: red;
  border: 2px solid red;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-card {
  border-radius: 24px;
  padding: 3.5rem 3rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 320px; 
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.contact-button {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.contact-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.contact-button {
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--color-primary);
  background: transparent;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-primary);
  text-align: center;
  transition: background 0.3s ease;
}

.contact-button:hover {
  background: var(--color-primary);
  color: white;
}

.social-icons {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}

.social-icons a {
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.contact-card.beige {
  background-color: var(--color-light);
}

.contact-card.blue {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
}

.contact-card.blue h3,
.contact-card.blue p,
.contact-card.blue a {
  color: white;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-top: 1.5rem;
}

#contact-form input,
#contact-form textarea {
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: vertical;
}

.form-status {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-primary);
  min-height: 1.5rem; 
  transition: opacity 0.3s ease;
}

#contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.contact-button.secondary {
  margin-top: 0.5rem;
  background: none;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.contact-button.secondary:hover {
  background: var(--color-primary);
  color: white;
}

.form-status.success {
  color: green;
}

.form-status.error {
  color: red;
}

/* FOOTER */
footer {
  background: var(--color-light);
  color: var(--color-primary);
  text-align: center;
  padding: 2rem;
  font-weight: bold;
}

/* Vanta */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  overflow: hidden;
}

#vanta-hero {
  z-index: 2;
  text-align: center;
  color: white;
}

#vanta-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 12px var(--color-accent);
}

#vanta-hero h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.scroll-down {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  background-color: var(--color-primary);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.scroll-down:hover {
  background-color: var(--color-accent);
}

/* Login */
.login-body, #login-vanta {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: black;
  font-family: 'Inter', sans-serif;
}

#login-vanta {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 320px;
  z-index: 2;
  text-align: center;
}

.login-box input {
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.login-box button {
  padding: 0.8rem;
  background-color: var(--color-primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.login-box button:hover {
  background-color: var(--color-accent);
}

#login-error {
  display: none;
  font-size: 0.9rem;
  color: red;
}

/*Header Buttons*/
.header-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

#logout-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

#logout-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--color-primary);
    padding: 0.5rem 0;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    text-align: center;
    padding: 0.6rem 0;
    color: white;
    text-decoration: none;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
  }

  .header-buttons {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    background-color: var(--color-primary);
    padding: 0.8rem 0;
  }

  #mode-toggle,
  #logout-btn {
    flex: 1;
    margin: 0 0.5rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.25);
  }
}
@media (max-width: 768px) {
  .info-grid,
  .skill-grid,
  .application-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .info-card,
  .skill-box,
  .application-card,
  .contact-card {
    padding: 1.5rem;
    text-align: center;
  }

  .circle {
    width: 90vw;
    height: 90vw;
    max-width: 300px;
    max-height: 300px;
  }
}
@media (max-width: 768px) {
  .welcome-section {
    height: 70vh;
    padding: 1rem;
  }

  .welcome-right p {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}
@media (max-width: 768px) {
  .modal-content {
    padding: 1rem;
    width: 95%;
  }
}
@media (max-width: 768px) {
  .application-button,
  .contact-button {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 768px) {
  footer {
    font-size: 0.9rem;
    padding: 1.5rem;
  }
}

/* Handy-menu */
#menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 60px; 
    left: 0;
    right: 0;
    background-color: #0118D8;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    z-index: 999;
  }
  .main-nav.active {
    display: flex;
  }
  #menu-toggle {
    display: block;
  }
  #topbar {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .header-buttons {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
  }
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-nav a {
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: bold;
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.menu-buttons button {
  padding: 0.75rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background: #1B56FD;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.menu-buttons button:hover {
  background: #5588ff;
}

#menu-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

@media (min-width: 769px) {
  #menu-toggle,
  .mobile-menu {
    display: none !important;
  }
  .main-nav {
    display: flex;
    gap: 2rem;
  }
  .menu-buttons {
    display: none;
  }
}

.desktop-nav {
  display: flex;
  gap: 2rem;
}

.desktop-buttons {
  display: flex;
  gap: 1rem;
}

/* Menu nur mobil sichtbar */
#menu-toggle {
  display: none;
}

/* ersetzt deine bisherige Definition */
.mobile-menu{
  position: fixed;
  inset: 0;                /* top/right/bottom/left = 0  →  füllt das ganze Viewport-Rechteck */
  width: 100%;
  height: 100vh;
  background: linear-gradient(180deg,#1B56FD,#0118D8);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:2rem;
  z-index: 9999;
  transform: translateY(-100%);   /* Standard: nach oben rausgeschoben   */
  transition: transform .4s ease;
  border-radius: 0;               /* KEINE Abrundung mehr */
}

#menu-back{
position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.mobile-menu a {
  text-decoration: none !important;
  border-bottom: none !important;
}

.mobile-menu a:hover {
  color: var(--color-light);
  text-decoration: none;
}

.mobile-menu.active{              /* aufgeklappt */
  transform: translateY(0);
}


.mobile-menu a,
.mobile-menu button {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s ease;
}


.mobile-menu button:hover,
.mobile-menu a:hover {
  color: var(--color-light);
}

@media (max-width: 768px) {
  .desktop-nav,
  .desktop-buttons {
    display: none;
  }
  #menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }
}
@media (max-width: 768px) {
  .desktop-nav,
  .desktop-buttons {
    display: none;
  }
  #menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }
}

#willkommen canvas {
  pointer-events: none !important;
}
canvas {
  pointer-events: none !important;
}

@media (max-width: 480px) {
  .tech-section {
    padding: 4rem 1rem;
  }
  .tech-box {
    width: 100%;
    max-width: 100%;
    min-height: 420px;
    height: auto;
  }
  .tech-right h3 {
    font-size: 1.5rem;
  }
  .tech-right p {
    font-size: 1rem;
  }
}
.tech-box p {
    font-size: 1rem;
  }



/* ────────── Go-to-Top-Button ────────── */
#myBtn{
  /* Positionierung */
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  z-index: 9999;

  /* Größe & Form */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;

  /* Optik */
  background: var(--color-primary);
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);

  /* Animations-Grundzustand (versteckt) */
  opacity: 0;
  transform: translateY(60px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, background .25s ease;
}

#myBtn.show{                /* wird per JS gesetzt */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#myBtn:hover{
  background: var(--color-accent);
  transform: translateY(-4px);
}

