/* --- CSS VARIABLES & RESET --- */
:root {
  --bg-color: #050505;
  --card-bg: #0f0f0f;
  --border-color: #27272a;
  --text-main: #e4e4e7;
  --text-muted: #a1a1aa;
  --accent-primary: #10b981; /* Changed to a vibrant green */
  --accent-secondary: #a855f7; /* Purple gradient hint, kept original */
  --font-main: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

html {
  scroll-behavior: smooth; /* Damit das Scrollen weich ist */
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- BACKGROUND GRID EFFECT (Wie im Screenshot) --- */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: linear-gradient(to right, #1a1a1a 1px, transparent 1px),
    linear-gradient(to bottom, #1a1a1a 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black 40%,
    transparent 80%
  );
  opacity: 0.6;
}

/* NEU: HEADER STYLING FÜR DEN BUTTON */
.header-nav {
  position: fixed; /* Fixiert, damit er immer sichtbar ist */
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  z-index: 100;
  /* Leicht transparenter Hintergrund, damit man den Grid-Effekt noch sieht */
  background-color: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end; /* Button nach rechts schieben */
  align-items: center;
}

/* --- LAYOUT --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  /* NEU: Zusätzlicher Top-Padding, um Platz für den Header zu schaffen */
  padding-top: 70px;
}

section {
  margin-bottom: 100px;
  padding-top: 60px;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3 {
  font-family: var(--font-mono);
  color: #fff;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-main);
  box-shadow: 0 0 10px var(--text-main);
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

/* --- HERO SECTION --- */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative; /* Wichtig für die Positionierung der Maus */
  animation: fadeIn 1s ease-out;
}

.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-name {
  /* ANPASSUNG: Gradient von Weiß zu Grün */
  background: linear-gradient(45deg, #fff, var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  max-width: 600px;
  color: var(--text-muted);
}

.social-links {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

/* --- SCROLL DOWN MOUSE ANIMATION (NEU) --- */
.scroll-down-container {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.scroll-down-container:hover {
  opacity: 1;
  cursor: pointer;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    top: 6px;
  }
  50% {
    opacity: 1;
    top: 18px;
  }
  100% {
    opacity: 0;
    top: 18px;
  }
}

/* NEU: Button-Stil für den Header-Button (basierend auf social-btn) */
.header-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-main); /* Sicherstellen, dass der Text sichtbar ist */
}
.header-btn i {
  color: var(--accent-primary); /* Icon in Akzentfarbe */
}

.header-btn:hover {
  background: var(--border-color);
  color: #fff;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.social-btn:hover {
  background: var(--border-color);
  color: #fff;
}

/* --- ABOUT SECTION --- */
.about-content {
  background: linear-gradient(
    180deg,
    rgba(15, 15, 15, 0.8),
    rgba(15, 15, 15, 0.4)
  );
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(5px);
}

/* --- TECH STACK --- */
.tech-grid {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 0;
}

.tech-grid img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
}

/* --- PROJECTS GRID (Wie im Screenshot) --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.project-icon {
  width: 40px;
  height: 40px;
  background: #1e1e1e;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.project-desc {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.tag {
  background: #1e1e1e;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  border: 1px solid #333;
}

.project-links {
  display: flex;
  gap: 10px;
}

.btn-small {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.btn-small:hover {
  background: #27272a;
}

/* --- FOOTER --- */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  width: 100%;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.footer-column h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.footer-links {
  list-style: none;
  text-align: left;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  justify-content: flex-start;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #1e1e1e;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.social-icon-link:hover {
  background: var(--accent-primary);
  color: #000;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.footer-bottom a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.copyright span,
.copyright a {
  font-size: 0.8rem;
}

/* Footer legacy styles for backward compatibility */
footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Footer responsive adjustments */
  .footer {
    padding: 2rem 0 1.5rem;
  }

  .footer-container {
    padding: 0 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-column h3 {
    font-size: 1rem;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .social-icons {
    justify-content: center;
  }

  .copyright {
    flex-direction: column;
    gap: 0.5rem;
  }

  .copyright span,
  .copyright a {
    font-size: 0.75rem;
  }
}

/* Legal page specific styles */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.legal-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-main);
  box-shadow: 0 0 10px var(--text-main);
}

.contact-box {
  background: #1e1e1e;
  border-left: 5px solid var(--accent-primary);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.contact-item {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-item strong {
  color: var(--accent-primary);
  font-family: var(--font-mono);
}

.contact-link {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--accent-primary);
}

ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.last-updated {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-mono);
}
