/* =========================
   BASE
   ========================= */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f0f8ed;
  color: #233123;
}


/* =========================
   FRONT IMAGE
   ========================= */

.front-image {
  position: relative;
  height: 50vh;
  overflow: hidden;
}

.front-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.front-image-overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
}

.front-image-overlay h1 {
  color: white;
  font-size: 2rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  text-align: center;
}

/* Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.6);
  padding: 8px;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 5px;
}

.nav-arrow:hover {
  background: white;
}

.nav-arrow.left {
  left: 10px;
}

.nav-arrow.right {
  right: 10px;
}

/* =========================
   GENERIC CENTERED SECTIONS
   ========================= */

.philosophy,
.tasks,
.pictures {
  padding: 40px 15px;
}

.philosophy h2,
.tasks h2,
.pictures h2 {
  text-align: center;
  margin-bottom: 15px;
}

.section-intro,
.philosophy p {
  max-width: 1000px;
  font-size: large;
  margin: 0 auto 10px;
  text-align: center;
}

.paragraph-breakpoint {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 35vw;
  max-height: 40vh;
  object-fit: contain;}


/* =========================
   TASK / MILESTONE ROWS
   ========================= */

.task-list,
.milestone-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 25px auto 0;
}

.task-row,
.milestone-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.task-row span {
  flex: 1;
}

.task-title {
  flex: 2;
  font-weight: bold;
}

.task-owner {
  flex: 1;
  color: #4b604b;
}

.task-points {
  flex: 0 0 90px;
  text-align: right;
  color: #4b604b;
}

/* MILESTONE COLORS */
.milestone-list--current li {
  border-left: 4px solid #e57373;
}

.milestone-list--achieved li {
  border-left: 4px solid #81c784;
}

/* =========================
   SIMPLE CARDS GRID
   (for Green Initiatives page)
   ========================= */

.cards-grid {
  max-width: 1000px;
  margin: 25px auto 0;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #6aa66a;
}

.card h3 {
  margin: 0 0 8px;
}

.card p {
  margin: 0;
}

/* =========================
   IMAGE GRID (index + devs)
   ========================= */

.pictures {
  background: #f0f8ed;
}

.pictures-container {
  max-width: 1000px;
  margin: 20px auto 0;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
}

/* layout wrappers */
.pictures-post,
.pictures-post2 {
  position: relative;
  overflow: hidden;
  border-radius: 19px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #ffffff;
}

/* only dev cards have text below images */
.pictures-post p {
  padding: 10px 14px 14px;
  margin: 0;
}

/* images */
.pictures-post img,
.pictures-post2 img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* hover effect */
.pictures-post:hover,
.pictures-post2:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}

/* =========================
   FOOTER
   ========================= */

footer {
  background: #3b5f3b;
  color: white;
  padding: 20px;
  text-align: center;
}

footer p {
  margin: 5px 0;
}

/* =========================
   MAP (Kontakt)
   ========================= */

.map-wrapper {
  max-width: 800px;
  margin: 20px auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.map-wrapper img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}
/* =========================
   RESPONSIVE
   ========================= */

/* MOBILE (max 480px) */
@media (max-width: 480px) {
  .pictures-container {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .task-row span,
  .milestone-list li span {
    width: 100%;
    flex: 1 1 100%;
    margin-bottom: 4px;
    text-align: left;
  }
}

/* TABLET (min 600px) */
@media (min-width: 600px) {
  .pictures-container {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* DESKTOP (min 900px) */
@media (min-width: 900px) {
  .pictures-container {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }

  .pictures-post {
    grid-column: span 2;
    grid-row: span 2;
  }

  .pictures-post2 {
    grid-column: span 1;
    grid-row: span 2;
  }
}