/* === Global Layout Fixes === */
html, body {
  height: 100%;
}

.page-overlay-wrapper {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* === Background Image === */
body {
  background-image: url('https://zimgerm.de/wp-content/uploads/2025/08/entre.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 68, 137, 0.15);
  z-index: -1;
}

/* === Hero Banner === */
.hero-banner {
  background-size: cover;
  background-position: center;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  padding: 82px;
  border-radius: 12px;
  max-width: 800px;
}

/* === Filter Bar === */
.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  max-width: 1200px;
  margin: 40px auto;
}

.archive-filters select {
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #0a2540;
  min-width: 180px;
}

.archive-filters select option {
  color: #0a2540;
}

.filter-button {
  background-color: #0a2540;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

/* === Active Filter Label === */
.active-sector-label {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #004489;
  margin-bottom: 20px;
}

/* === Grid Layout === */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  padding: 80px 60px;
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px;
  }
}

/* hide empty dividers */
.sector-divider:empty {
  display: none;
}

/* real divider styling */
.sector-divider {
  grid-column: 1 / -1;
  border-top: 2px solid #c9a227;
  margin: 40px 0;
}

/* === Project Card === */
.project-card {
  position: relative;
  background-color: #fff;
  border: none;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 1;
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card.premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0,0,0,0.02) 0px,
    rgba(0,0,0,0.02) 1px,
    transparent 2px,
    transparent 6px
  );
  z-index: 0;
  pointer-events: none;
}

/* === Sector Image === */
.sector-image {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* === Badges === */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 8px;
  cursor: help;
}

.badge-high-roi {
  background-color: #FFF8E1;
  color: #004489;
  border: 1px solid #B9870C;
}

.badge-mid-roi {
  background-color: #F0F0F0;
  color: #333333;
  border: 1px solid #999;
}

.badge-low-roi {
  background-color: #FDFDF6;
  color: #666666;
  border: 1px solid #CCC;
}

/* === Premium / Featured Badges === */
.corner-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 40px;
  background: linear-gradient(135deg, #B9870C, #FFD700);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  line-height: 40px;
  transform: rotate(45deg);
  transform-origin: top right;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 3;
  pointer-events: none;
}

.featured-badge {
  background: linear-gradient(135deg, #004489, #0077cc);
}

/* === Title & Sector === */
.project-title {
  font-size: 20px;
  margin: 12px 0;
  color: #1a1a1a;
}

.sector-tag {
  display: inline-block;
  background-color: #004489;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

/* === Meta Block === */
.meta-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.meta-block strong {
  font-weight: 600;
  color: #002B4F;
  text-align: left;
}

.roi-highlight {
  color: #B9870C;
  font-weight: bold;
}

.meta-summary {
  margin-top: 12px;
  color: #333;
}

/* === CTA === */
.cta-teaser {
  font-size: 15px;
  margin-bottom: 12px;
}

.view-details-button {
  display: inline-block;
  padding: 8px 14px;
  background-color: #004489;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

/* === Responsive tweaks === */
@media (max-width: 768px) {
  .hero-banner { height: 320px; padding: 60px 20px; }
  .archive-filters { padding: 20px; }
  .meta-block { gap: 8px; }
}

/* === Section Headings === */
.section-label {
  font-size: 20px;
  font-weight: 700;
  color: #F5F5F5;
  text-align: center;
  margin: 60px 0 10px;
  letter-spacing: 0.5px;
}

.section-description {
  font-size: 15px;
  font-weight: 400;
  color: #E0E0E0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* === Strategic Breaks (every 4 cards) === */
.strategic-break {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  background: rgba(0, 0, 0, 0.5); /* same as .hero-overlay */
  padding: 30px;
  border-radius: 12px;
  margin: 32px 0;
}


/* alternate left/right on each instance */
.strategic-break:nth-of-type(even) {
  flex-direction: row-reverse;
}

.strategic-text {
  flex: 1 1 400px;
  min-width: 300px;
  color: #F5F5F5;
  font-size: 15px;
  line-height: 1.6;
}

.strategic-text h3 {
  margin-bottom: 12px;
  font-size: 1.8rem;
}

.strategic-image {
  flex: 0 0 auto;
  max-width: 300px;
  text-align: center;
}

.strategic-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* === Sector Break (unchanged) === */
.sector-break {
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px 20px;
  background: rgba(201, 162, 39, 0.05);
  border-radius: 8px;
}

.sector-icons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.sector-cta {
  flex: 1;
}

.sector-cta h3 {
  font-size: 20px;
  color: #B9870C;
  margin-bottom: 8px;
}

/* === Responsive for strategic & sector breaks === */
@media (max-width: 768px) {
  .strategic-break,
  .sector-break {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    margin: 24px 16px;
  }
}

.strategic-text {
  color: #F5F5F5;
}
.strategic-text h3 {
  color: #FFD700; /* deep gold for emphasis */
}

.contact-btn {
  background-color: #CBA135; /* Deep Gold */
  color: #fff;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}
.contact-btn:hover {
  background-color: #A8832A;
}

.cta-break {
  background-color: #1A1A1A; /* Charcoal Grey */
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  margin: 60px 0;
  border-top: 2px solid #CBA135;
}
.cta-break h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}