:root {
  --primary: #579ad1;
  --primary-dark: #4178be;
  --background: #e3eef6;
  --text: #2e3a59;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --primary: #4da6ff;
  --primary-dark: #2674c8;
  --background: #121d2b;
  --text: #dfe8f1;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* === Navigation === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary);
  padding: 16px 30px;
  color: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.logo-box {
  font-weight: 700;
  font-size: 28px;
  user-select: none;
  line-height: 1.1;
}

.logo-box a {
  text-decoration: none;
  color: white;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: var(--primary-dark);
}

.theme-toggle {
  background: white;
  color: var(--primary);
  border: none;
  padding: 8px 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 20px;
}

/* === Hero === */
.hero {
  background: linear-gradient(145deg, #b6d0e9, #d7e8f5);
  text-align: center;
  padding: 100px 20px 80px;
  border-radius: 40px;
  box-shadow: var(--shadow);
  margin: 40px auto;
}

[data-theme="dark"] .hero {
  background: linear-gradient(145deg, #1b2a40, #223349);
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  color: #1f2d42;
}

[data-theme="dark"] .hero h1 {
  color: #dfe8f1;
}

.hero p {
  font-size: 20px;
  color: #44546a;
  margin-bottom: 30px;
}

[data-theme="dark"] .hero p {
  color: #c0cad8;
}

.cta-button {
  background: white;
  color: var(--primary);
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-button:hover {
  background: #f3f7fa;
  transform: scale(1.05);
}

/* === Responsive === */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 20px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 12px;
  }

  .hero {
    padding: 50px 20px;
  }
}
/* === Timeline === */
.timeline {
  position: relative;
  margin: 40px 0;
  padding-left: 20px;
  border-left: 4px solid var(--primary);
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
}

.timeline-date {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.timeline-content {
  background: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

[data-theme="dark"] .timeline-content {
  background: #1e2c3d;
  color: var(--text);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 0;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: var(--shadow);
}
/* === Slideshow === */
.slideshow {
  margin: 40px 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.slides {
  position: relative;
  width: 100%;
  height: auto;
}

.slide {
  display: none;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.slide.active {
  display: block;
}

/* === Projektkarten === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 60px 0;
}

.project-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

.project-card h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
}

[data-theme="dark"] .project-card {
  background: #1e2c3d;
  color: var(--text);
}

[data-theme="dark"] .project-card h3 {
  color: #4da6ff;
}
.social-media {
  text-align: center;
  margin-top: 2rem;
}

.social-media p {
  font-weight: 600;
  margin-bottom: 1rem;
}

.icon-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-icon {
  font-size: 2rem;
  text-decoration: none;
  color: var(--text-color, #fff); /* Passe an dein Theme an */
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.2);
}
.theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color, #fff); /* Passe an dein Theme an */
  cursor: pointer;
  transition: transform 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}
