/* --- Variables & Reset --- */
:root {
  --bg-color: #1a1b26; /* Dark Theme Background */
  --card-bg: #24283b;
  --text-primary: #c0caf5;
  --text-secondary: #9aa5ce;
  --accent: #7aa2f7; /* Blue accent */
  --accent-hover: #3d59a1;
  --font-main: "Roboto", sans-serif;
  --font-code: "Fira Code", monospace;
}

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

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

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

/* --- Layout Utility --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}
.bg-light {
  background-color: #1f2335;
} /* Slightly lighter dark for contrast */
.center-text {
  text-align: center;
}

/* --- Header & Nav --- */
header {
  background-color: rgba(26, 27, 38, 0.95);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #414868;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-family: var(--font-code);
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--accent);
}

nav ul {
  display: flex;
  gap: 20px;
}
nav a:hover {
  color: var(--accent);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 70px; /* Offset for fixed header */
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.intro-text {
  max-width: 600px;
  margin: 0 auto 30px auto;
  color: var(--text-secondary);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: bold;
}

.primary-btn {
  background-color: var(--accent);
  color: #fff;
}
.primary-btn:hover {
  background-color: var(--accent-hover);
}

.secondary-btn {
  border: 2px solid var(--accent);
  color: var(--accent);
}
.secondary-btn:hover {
  background-color: var(--accent);
  color: #fff;
}

/* --- Skills / Tags --- */
.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.tags span {
  background-color: var(--card-bg);
  padding: 5px 12px;
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 0.9rem;
  border: 1px solid #414868;
}

/* --- Projects --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #414868;
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  margin-bottom: 10px;
  color: var(--accent);
}
.project-tech {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.status-badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 3px;
  margin-top: 10px;
  background-color: #414868;
}

.status-badge.online {
  color: #9ece6a;
  border: 1px solid #9ece6a;
  background: transparent;
}

.project-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--accent);
  font-weight: bold;
}

/* --- Project Detail Page Additions --- */

.project-header {
  background-color: #1f2335; /* Etwas heller als Background für Abgrenzung */
  padding-top: 120px; /* Mehr Platz wegen Header */
  border-bottom: 1px solid #414868;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent);
  font-weight: bold;
  font-size: 0.9rem;
}

.back-link:hover {
  text-decoration: underline;
}

.project-content {
  max-width: 800px; /* Text nicht zu breit machen für Lesbarkeit */
}

.project-content h2 {
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--accent);
  border-bottom: 1px solid #414868;
  padding-bottom: 10px;
  display: inline-block;
}

.project-content h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  color: #fff;
}

.project-content p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Listen auf der Detailseite */
.detail-list {
  list-style: disc;
  margin-left: 20px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.detail-list li {
  margin-bottom: 10px;
}

/* Code Blöcke */
pre {
  background-color: #16161e; /* Sehr dunkel */
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #414868;
  overflow-x: auto;
  font-family: var(--font-code);
  color: #c0caf5;
  margin-bottom: 30px;
}

/* Platzhalter für Bilder */
.image-placeholder {
  width: 100%;
  height: 300px;
  background-color: #24283b;
  border: 2px dashed #414868;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-family: var(--font-code);
  margin-bottom: 40px;
}

/* Kleiner Button Button Style */
.small-btn {
  padding: 8px 15px;
  font-size: 0.9rem;
}

/* --- Footer --- */
footer {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #414868;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }
  nav ul {
    margin-top: 10px;
  }
}

.project-image-wrapper {
  width: 100%;
  margin-bottom: 30px; /* Abstand zum nächsten Text */
  display: flex;
  justify-content: center; /* Zentriert das Bild, falls es schmaler als 800px ist */
}

.project-image-wrapper img {
  max-width: 100%; /* Nie breiter als der Text-Container */
  height: auto; /* Proportionen beibehalten */
  border-radius: 8px; /* Sieht moderner aus */
  border: 1px solid #414868; /* Optional: Ein feiner Rahmen passend zum Tech-Look */
}
