/* ============================================================
   FördeLab — Case Study detail page
   Used by: case-study.php (via ?slug= or ?id=)
   Reuses classes from style.css + projekte.css + landing.css
   ============================================================ */

.body-case-study { background: var(--bg); }
.case-study-page { padding-top: 88px; }

/* ---------- Breadcrumb ---------- */
.case-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.case-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}
.case-breadcrumb li + li::before {
    content: '›';
    color: var(--text-muted, rgba(255,255,255,0.35));
    padding-right: 0.5rem;
}
.case-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}
.case-breadcrumb a:hover { color: var(--accent-bright, #4FC3E0); }
.case-breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- Case Hero ---------- */
.case-hero .projekte-hero-inner { max-width: 820px; }

.case-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.case-chip {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: var(--gradient-highlight, linear-gradient(135deg, #1F6FA5, #4FC3E0));
    color: #fff;
}
.case-chip-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.case-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* ---------- Visual screenshot ---------- */
.case-visual {
    padding: 0 1.5rem;
    margin: -2rem 0 0;
    position: relative;
    z-index: 2;
}
.case-hero-shot {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(79, 195, 224, 0.08);
}
.case-hero-shot img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Narrative (Ausgangslage / Lösung / Ergebnis) ---------- */
.case-narrative {
    padding: clamp(4rem, 8vw, 7rem) 1.5rem;
}
.case-narrative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}
.case-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 2rem 1.75rem 1.75rem;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.case-block:hover {
    background: rgba(79, 195, 224, 0.04);
    border-color: rgba(79, 195, 224, 0.18);
}
.case-block-step {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--accent-bright, #4FC3E0);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}
.case-block h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
    color: var(--text);
}
.case-block p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ---------- 360° Tour embed ---------- */
.case-tour {
    padding: 0 1.5rem clamp(4rem, 8vw, 7rem);
}
.case-tour-frame {
    max-width: 1100px;
    margin: 2rem auto 0;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}
.case-tour-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ---------- Related services block reuses .landing-related from landing.css ---------- */

/* ---------- More projects grid ---------- */
.case-more-projects {
    padding: 0 1.5rem clamp(4rem, 8vw, 7rem);
}
.case-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 2rem auto 0;
}
.case-related-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.case-related-card:hover {
    transform: translateY(-3px);
    background: rgba(79, 195, 224, 0.04);
    border-color: rgba(79, 195, 224, 0.25);
}
.case-related-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0a0a0a;
}
.case-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.case-related-card:hover .case-related-img img { transform: scale(1.03); }
.case-related-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.case-related-meta {
    color: var(--text-muted, rgba(255, 255, 255, 0.55));
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.case-related-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
}
.case-related-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}
.case-related-card .related-link {
    margin-top: 0.25rem;
    color: var(--accent-bright, #4FC3E0);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---------- Mobile tuning ---------- */
@media (max-width: 640px) {
    .case-hero-actions { flex-direction: column; align-items: stretch; }
    .case-hero-actions .btn { width: 100%; }
    .case-visual { margin-top: 0; }
}
