/* Reset und Basisstile */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #256c46;
  --secondary-color: #c23b5a;
  --light-color: #f9f7f2;
  --dark-color: #333;
  --accent-color: #69aba7;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Navigation */
nav {
  background-color: var(--primary-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem 0;
  display: inline-block;
}

nav ul li a:hover {
  color: var(--light-color);
  text-decoration: underline;
}

/* Main Content */
main {
  padding: 3rem 0;
}

.intro {
  text-align: center;
  margin-bottom: 3rem;
}

.intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.intro p {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
}

/* Projects Section */
.projects-section {
  margin-bottom: 3rem;
}

.projects-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.project-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.project-content p {
  margin-bottom: 1rem;
  color: #666;
}

.project-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.project-link:hover {
  background-color: #1b5035;
}

/* About Section */
.about-section {
  background-color: #f0f0f0;
  padding: 3rem 0;
  margin-bottom: 3rem;
}

.about-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.about-image {
  flex: 1;
  min-width: 300px;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact Section */
.contact-section {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-section p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.contact-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.contact-link:hover {
  background-color: #a9324e;
}

/* Custom banner for NÃ¼rtingen ist bunt */
.rainbow-banner {
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to right,
    violet, indigo, blue, green, yellow, orange, red,
    violet, indigo, blue, green, yellow, orange, red);
  background-size: 200% 100%;
  animation: rainbow-move 10s linear infinite;
  border-radius: 8px;
  overflow: hidden;
}

.rainbow-text {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

@keyframes rainbow-move {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 0%;
  }
}

/* Completed Project Styles */
.project-card.completed {
  position: relative;
}

.project-card.completed::before {
  content: "Abgeschlossen";
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(80, 80, 80, 0.9);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 2;
}

.project-card.completed img,
.project-card.completed .rainbow-banner {
  filter: grayscale(90%);
  opacity: 0.7;
}

.project-card.completed .project-content {
  opacity: 0.8;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: white;
  margin: 0 0.5rem;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-text {
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image {
    width: 100%;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 0.5rem 0;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }

  .intro h2, .projects-section h2, .about-section h2, .contact-section h2 {
    font-size: 1.6rem;
  }
}