/* ==========================================================================
   PROJEKTE.CSS – Spezifische Styles für Case-Study-Detailseiten
   ========================================================================== */

   /* ==========================================================================
   SCHMALERES, ZENTRIERTES GRID FÜR OPTIMALE LESBARKEIT AUF DETAILSEITEN
   ========================================================================== */

/* Überschreibt die 1400px der Startseite nur auf Seiten mit .case-study-page */
.case-study-page .container {
  max-width: 960px; /* Angenehme, redaktionelle Breite (ca. 75–85 Zeichen pro Zeile) */
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Sorgt dafür, dass alle Text-Sektionen, Videos und Navigations-Boxen 
   die volle Breite des neuen, schmaleren Containers linksbündig ausnutzen */
.case-study-page .case-text-section,
.case-study-page .video-container,
.case-study-page .case-footer-nav {
  max-width: 100%;
  text-align: left;
}


/* Hero-Sektion mit vollbreitem Banner */
.case-hero-banner-section {
  position: relative;
  width: 100%;
  background: var(--bg-deep);
  padding-bottom: 80px;
  overflow: hidden;
}

.case-banner-image-wrapper {
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.case-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}

/* Überlappung im unteren Drittel des Banners */
.case-hero-overlay-container {
  position: relative;
  margin-top: -120px;
  z-index: 10;
}

.back-to-home-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: rgba(7, 13, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 24px;
  transition: all var(--transition-smooth);
}

.back-to-home-btn:hover {
  background: var(--accent);
  color: var(--bg-deep);
}

.case-overlap-title-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 48px 56px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.case-project-meta {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.case-overlap-title-card h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--text-light);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Inhaltsbereich */
.case-content-main {
  padding: 60px 0 100px 0;
  background: var(--bg-deep);
}

.case-text-section {
  margin-bottom: 48px;
  max-width: 1100px;
}

/* Markante Highlight-Box für die Ausgangschallenge */
.case-challenge-highlight {
  position: relative;
  margin: 36px 0 40px 0;
  padding: 10px 48px 10px 48px; /* Links UND rechts denselben Abstand für absolute Symmetrie */
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Großes Quote-Schriftzeichen links oben */
.case-challenge-highlight::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -12px;
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent); /* Dein Akzent-Blau */
  line-height: 1;
  opacity: 0.85;
}

.challenge-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 8px;
}

.challenge-statement {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 768px) {
  .case-challenge-highlight {
    padding-left: 36px;
    padding-right: 20px; /* Auch mobil leicht angepasst */
  }
  .case-challenge-highlight::before {
    font-size: 4rem;
    top: -8px;
  }
  .challenge-statement {
    font-size: 1.15rem;
  }
}

/* Challenge Quote Box */
.case-quote {
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 24px 0;
  font-style: normal;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
}

/* Abgeleitete Leitfrage ohne Kursivschrift */
.case-quote.non-italic {
  font-style: normal;
  font-weight: 700;
  font-size: 1.22rem;
}



/* YouTube Video Container (16:9) */
.video-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  margin-top: 20px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Untere Projekt-Navigation */
.case-footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.case-nav-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition-smooth);
}

.case-nav-box:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.nav-direction {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .case-banner-image-wrapper {
    height: 300px;
  }
  .case-hero-overlay-container {
    margin-top: -60px;
  }
  .case-overlap-title-card {
    padding: 30px 24px;
  }
  .case-footer-nav {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   VISUELLE AUFLOCKERUNG (Meta-Grid, farbige Listen & Quotes)
   ========================================================================== */

/* Eckdaten-Grid oben */
.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.case-meta-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-meta-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.case-meta-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.5;
}

/* Überschriften & Fließtext */
.case-section-heading {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.case-lead-text {
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.case-body-text {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Farbige Bullet-Listen (Unordered) */
.case-bullet-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-bullet-list li {
  position: relative;
  padding-left: 26px;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* Farbiges Aufzählungszeichen in Akzentfarbe */
.case-bullet-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.65;
}

.case-bullet-list li strong {
  color: var(--text-light);
}

/* Farbige Nummerierte Listen (Ordered) */
.case-numbered-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 20px 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.case-numbered-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 42px;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* Farbige Kreis-Badge für 1, 2, 3 */
.case-numbered-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-numbered-list li strong {
  color: var(--text-light);
}

/* Quotes für Leitfrage & Value Proposition */
.case-quote {
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
  margin: 28px 0;
  font-style: italic;
  font-size: 1.24rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  line-height: 1.65;
}

.case-quote.secondary {
  font-style: normal;
  font-size: 1.12rem;
  font-weight: 500;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent);
}

.quote-tag {
  display: block;
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Responsive Anpassung */
@media (max-width: 768px) {
  .case-meta-grid {
    grid-template-columns: 1fr;
  }
}


/* Kompakte 2er-Bildergalerie für UI-Screens & Prozess */
.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.case-gallery-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.case-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.case-gallery-caption {
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
  .case-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SCHACHBRETT-LAYOUT (Wechselnder Text- und Bild-Fokus)
   ========================================================================== */

.case-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 60px 0;
}

/* Inverser Row für den Schachbrett-Effekt (Bild links, Text rechts) */
.case-split-row.reverse {
  grid-template-columns: 1fr 1fr;
}

.case-split-row.reverse .case-split-media {
  order: 1;
}

.case-split-row.reverse .case-split-text {
  order: 2;
}

.case-split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Edler Rahmen für die Bilder, damit sie optisch perfekt zum Design passen */
.case-media-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.case-media-frame img {
  width: 100%;
  max-height: 320px; /* Hält die Bilder kompakt und handlich */
  object-fit: cover;
  display: block;
}

.case-media-caption {
  padding: 12px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(7, 13, 26, 0.4);
  border-top: 1px solid var(--border-subtle);
}

/* Mobile Responsiveness: Auf kleineren Bildschirmen untereinander anordnen */
@media (max-width: 900px) {
  .case-split-row,
  .case-split-row.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0;
  }
  
  .case-split-row.reverse .case-split-media {
    order: unset;
  }
  .case-split-row.reverse .case-split-text {
    order: unset;
  }
}

/* ==========================================================================
   MEHR ABSTAND ZWISCHEN DEN ABSCHNITTEN (Whitespace)
   ========================================================================== */

.case-study-page .case-text-section {
  margin-bottom: 
  10em; /* Erhöht den Abstand zwischen allen Hauptblöcken deutlich */
}

/* Verhindert doppelten Abstand beim letzten Element vor der Navigation */
.case-study-page .case-text-section:last-of-type {
  margin-bottom: 40px;
}