/* ========== Basis Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  font-family: 'Arial', sans-serif;
}

/* ========== Header & Navigation ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000a2f;
  padding: 1rem 2rem;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  color: white;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.main-nav a {
  color: #78baff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: white;
}

/* ========== Segmente Allgemein ========== */
.segment {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  text-align: center;
  scroll-margin-top: 80px;
}

.segment + .segment {
  box-shadow: inset 0 6px 6px -6px rgba(0, 0, 0, 0.4);
}

/* ========== Hintergrundbilder ========== */
.segment-1 {
  background-image: url("image.background-home.png");
}
.segment-2 {
  background-image: url("image.background-about.png");
}
.segment-3 {
  background-image: url("image.background-skills.png");
}
.segment-4 {
  background-image: url("image.background-contact.png");
}

.segment-5 {
  background-image: url(Website-background1.png.png);
}

/* ========== Textboxen & Inhalte ========== */
.overlay-text,
.about-container,
.skills-box,
.contact-box {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 900px;
  margin: auto;
}

.overlay-text h1,
.about-container h2,
.skills-box h2,
.contact-box h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #4ea0ff;
}

.overlay-text p,
.contact-box p {
  font-size: 1.2rem;
}

.highlight {
  color: #4ea0ff;
}

/* ========== Skills Liste ========== */
.skill-list {
  list-style: none;
  padding-left: 0;
  text-align: left;
  margin: 2rem auto 0;
  max-width: 800px;
}

.skill-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
  word-break: break-word;
}

.skill-list li::before {
  content: "💻";
  position: absolute;
  left: 0;
  top: 0;
}

/* ========== Kontakt-Bereich ========== */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.contact-button {
  background-color: #1e90ff;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.contact-button:hover {
  background-color: #0f5bb5;
}

.small-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color:white;
}


.leistungs-box {
  display: flex;
  flex-wrap: wrap; /* mehrere Zeilen */
  justify-content: right;
  gap: 2rem;
}


.leistungs-karte {
  width: 250px; /* oder 100%, wenn responsive */
  padding: 1rem;
  border: 1px solid white;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-align: left;
}

.leistungs-karte:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  background-color: rgba(255,255,255,0.2);
  color: white;
}

.leistungs-karte h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: white;
}

.leistungs-karte p {
  font-size: 0.95rem;
  color: white;
}

/* ========== Portfolio Segment ========== */

.segment-2 {
  background-color: #000000;
  align-items: center;
}

/* Layout für die gesamte Portfolio-Sektion */
.portfolio-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: right;
  gap: 2rem;

}

/* Jede Karte liegt in eigener Box für stabiles Layout */
.portfolio-wrapper {
  flex: 1 1 300px;
  max-width: 300px;
  display: flex;
  justify-content: center;
  position: relative;
  min-height: 180px; /* Platz für aufklappende Inhalte */
}

/* Design der Portfolio-Karte */
.portfolio-karte {
  width: 100%;
  padding: 1rem;
  border: 1px solid white;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-align: left;
  position: relative;
}

/* Hover-Effekt für bessere Interaktivität */
.portfolio-karte:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Ausklappbare Detailbox – standardmäßig versteckt */
.portfolio-details {
  position: absolute;
  right: 100%; /* erscheint unterhalb der Karte */
  left: 0;
  right: 100px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 1rem;
  z-index: 2;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Sichtbar bei aktiver Karte */
.portfolio-karte.active .portfolio-details {
  max-height: 300px;
  opacity: 1;
}

/* ========= Deatilas An / Aus =========== */

.details{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0
}

.portfolio-karte .portfolio-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.portfolio-karte.active .portfolio-details {
  max-height: 300px;
  opacity: 1;
}

/* ========== Footer ========== */
.site-footer {
  background-color: #0a0a23;
  color: #ccc;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer a {
  color: #78baff;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #ffffff;
}

/* ========== Modal-Popups ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: #0d1b2a;
  margin: 10% auto;
  padding: 2rem;
  border: 2px solid #4ea0ff;
  width: 80%;
  max-width: 600px;
  color: #fff;
  border-radius: 10px;
  animation: modalFade 0.4s ease;
  box-shadow: 0 0 30px rgba(78, 160, 255, 0.4);
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.close-btn {
  float: right;
  font-size: 1.5rem;
  color: #4ea0ff;
  cursor: pointer;
}

.close-btn:hover {
  color: white;
}

/* ========== Burger Menü für Mobile ========== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  height: 3px;
  width: 25px;
  background: #78baff;
  border-radius: 2px;
}

/* ========== Responsive Anpassungen ========== */
@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #000a2f;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
  }

  .main-nav.open {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem 0;
  }

  .main-nav a {
    font-size: 1.2rem;
  }

  .nav-container {
    flex-wrap: wrap;
  }

  .logo {
    font-size: 1.3rem;
  }

  .overlay-text {
    padding: 1.5rem;
  }
}

/* ==== Dark-/Light-Mode Umschaltung ==== */
body.light-mode {
  background-color: #ffffff;
  color: #000000;
}

body.light-mode .segment {
  background-color: #f0f0f0;
  color: #000;
}

body.light-mode .overlay-text,
body.light-mode .skills-box,
body.light-mode .contact-box {
  background-color: rgba(255, 255, 255, 0.8);
}

body.light-mode .main-nav a {
  color: #0057ff;
}

body.light-mode .main-nav a:hover {
  color: #000;
}

.mode-toggle {
  position: fixed;
  top: 5.5rem;      /* Statt oben → unten rechts */
  right: 1.5rem;
  background: #4ea0ff;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 2000;
  transition: transform 0.3s ease, background 0.3s ease;
}

.mode-toggle:hover {
  transform: scale(1.15);
  background: #2f79d4;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  background-color: #000000;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.filter-btn:hover {
  background-color: white;
}

.filter-btn.active {
  background-color: #878788;
}

/* ========== Scroll-Animationen (Fade-in) ========== */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Basiszustand: noch nicht sichtbar */
.scroll-fade-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Sobald sichtbar: Fade + Bewegung */
.scroll-fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-in {
  animation: slideInLeft 0.6s ease forwards;
}
