:root {
  --primary: #cfdbd5;
  --bg: #242423;
  --bg-light: #e8eddf;
  --card-bg: #333533;
  --accent: #f5cb5c;
  --white: #fff;
  --text-main: #e8eddf;
  --text-light: #cfdbd5;
  --nav-height: 96px;
  --logo-size: 50px;
  --nav-gap: 36px;
  --body-font-size: 1.15rem;
}

.projects-hero {
  position: relative;
  height: 40vh;  /* oder wie du es bisher hattest */
  min-height: 350px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('../assets/projectHero.png') center center/cover no-repeat;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(36,36,35,0.67) 0%, rgba(36,36,35,0.94) 100%);
  z-index: 2;
}
.hero-content,
.projects-hero-text {
  position: fixed; /* oder absolute, wenn du das lieber magst */
  top: 20vh;  /* positioniere etwas nach unten */
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  width: 100vw;
  pointer-events: none;
}
.hero-content h1,
.projects-hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 16px 0;
  letter-spacing: 0.04em;
  transition: opacity 0.25s;
}
.hero-content p,
.projects-hero-text p {
  font-size: 1.4rem;
  color: var(--primary, #cfdbd5);
  opacity: 0.93;
  margin: 0;
  font-weight: 400;
  transition: opacity 0.25s;
}
@media (max-width: 600px) {
  .hero-content h1,
  .projects-hero-text h1 { font-size: 2.2rem; }
  .hero-content p,
  .projects-hero-text p { font-size: 1.05rem; }
}


.projects-list-section {
  background: transparent;
  padding: 38px 0 42px 0;
}
.projects-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 44px;
  max-width: 1020px;
  margin: 0 auto;
}

.modern-project-card {
  display: flex;
  flex-direction: column;
  background: #232323;
  border-radius: 20px;
  box-shadow: 0 6px 34px rgba(0,0,0,0.11);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: box-shadow 0.16s, transform 0.14s;
  min-height: 320px;
}
.modern-project-card:hover {
  box-shadow: 0 16px 42px rgba(0,0,0,0.19);
  transform: translateY(-5px) scale(1.03);
}
.modern-card-img-wrap {
  width: 100%;
  height: 210px;
  background: #e8eddf;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.modern-project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.modern-placeholder-img {
  width: 100%;
  height: 100%;
  background: #cfdbd5;
  color: #232323;
  font-size: 1.22rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-align: center;
  opacity: 0.77;
}
.modern-card-meta {
  padding: 22px 22px 15px 22px;
  background: #232323;
  text-align: left;
}
.modern-card-meta h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.26rem;
  font-weight: 700;
  margin: 0 0 5px 0;
  color: #f5cb5c;
}
.modern-card-type {
  font-size: 0.98rem;
  color: #cfdbd5;
  opacity: 0.7;
}

@media (max-width: 700px) {
  .projects-hero { height: 160px; }
  .hero-content h1 { font-size: 1.4rem; }
  .projects-list-section { padding: 16px 0; }
}
