/* Angebote Page Styles */
.angebote-page {
  min-height: 100vh;
}

/* Header Controls */
.angebote-head {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Year Chooser */
.year-chooser {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.year-chooser .label {
  font-weight: 600;
  color: var(--green);
  font-size: 1.1rem;
}

.year-chooser .options {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.year-chooser .options li {
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-weight: 500;
}

.year-chooser .options li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.year-chooser .options li.active {
  background: var(--green);
  color: white;
}

/* Search Input */
.search {
  flex: 1;
  max-width: 400px;
  padding: 0.75rem 1rem;
  padding-right: 3rem;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 1rem;
  background-image: url('/assets/images/search.svg');
  background-repeat: no-repeat;
  background-position: calc(100% - 1rem) center;
  background-size: 1.5rem;
}

.search:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(9, 138, 0, 0.1);
}

/* Category Sections */
.category-section {
  margin-bottom: 3rem;
}

.category-section h2 {
  color: var(--green);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.category-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
}

.category-section h3 {
  color: var(--green-sec);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-item {
  position: relative;
  aspect-ratio: 1;
  transition: all 0.3s ease;
}

.project-item.wide {
  grid-column: span 2;
}

.project-item.tall {
  grid-row: span 2;
}

.project-item a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  height: 100%;
  width: 100%;
  background: white;
  background-image: var(--img);
  background-size: 60%;
  background-position: center 30%;
  background-repeat: no-repeat;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  position: relative;
}

.project-item a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, transparent 50%);
  pointer-events: none;
}

.project-item a:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-item .name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}

.project-item .years {
  font-size: 0.9rem;
  color: #666;
  position: relative;
  z-index: 1;
}

.project-item .details {
  margin-top: 0.35rem;
  color: #4b5563;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  line-height: 1.45;
}

.category-description {
  margin: 0 0 1rem;
  color: #4b5563;
  line-height: 1.5;
}

/* States */
.no-results {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-size: 1.2rem;
}

.error {
  text-align: center;
  padding: 3rem;
  color: var(--red);
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .angebote-head {
    flex-direction: column;
    align-items: stretch;
  }

  .year-chooser {
    flex-direction: column;
    align-items: flex-start;
  }

  .year-chooser .options {
    flex-wrap: wrap;
  }

  .search {
    max-width: 100%;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .project-item.wide {
    grid-column: span 1;
  }

  .project-item.tall {
    grid-row: span 1;
  }
}
