/* ===== Shared styles for project detail pages ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #fafafa;
    --color-text: #1a1a1a;
    --color-text-muted: #5a5a5a;
    --color-border: #e8e8e8;
    --color-accent: #ea580c;
    --color-accent-hover: #c2410c;
    --color-accent-light: #fff7ed;
    --color-accent-soft: #ffedd5;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1000px;
    --transition: 0.2s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
header {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; max-width: var(--max-width); margin: 0 auto;
}
.logo {
    font-weight: 800; font-size: 1.2rem; color: var(--color-text);
    text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.logo-dot { width: 10px; height: 10px; background: var(--color-accent); border-radius: 50%; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-back {
    color: var(--color-text-muted); text-decoration: none; font-weight: 500;
    font-size: 0.95rem; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px;
}
.nav-back:hover { color: var(--color-accent); }
.nav-back svg { width: 16px; height: 16px; }
.lang-switch {
    display: flex; background: var(--color-bg-alt); border: 1px solid var(--color-border);
    border-radius: 999px; padding: 3px; gap: 2px;
}
.lang-switch button {
    background: transparent; border: none; padding: 4px 12px; font-size: 0.8rem;
    font-weight: 600; color: var(--color-text-muted); cursor: pointer; border-radius: 999px;
    transition: var(--transition); font-family: inherit;
}
.lang-switch button.active { background: var(--color-accent); color: white; }

/* ===== HERO ===== */
.proj-hero { padding: 130px 0 50px; background: linear-gradient(180deg, var(--color-accent-light) 0%, var(--color-bg) 100%); }
.proj-category {
    display: inline-flex; align-items: center; gap: 6px; color: var(--color-accent);
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    background: white; border: 1px solid var(--color-accent-soft);
    padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.proj-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 14px; }
.proj-tagline { font-size: 1.25rem; color: var(--color-text-muted); max-width: 640px; margin-bottom: 28px; }
.proj-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.proj-stack span {
    background: white; color: var(--color-text-muted); border: 1px solid var(--color-border);
    padding: 5px 13px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
}
.proj-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px;
    border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem;
    text-decoration: none; cursor: pointer; border: none; transition: var(--transition); font-family: inherit;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--color-accent); color: white; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: white; color: var(--color-text); border: 1px solid var(--color-border); }
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ===== SECTIONS ===== */
.proj-section { padding: 50px 0; }
.proj-section + .proj-section { border-top: 1px solid var(--color-border); }
.proj-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 18px; }
.proj-lead { color: var(--color-text-muted); font-size: 1.08rem; max-width: 760px; }
.proj-lead + .proj-lead { margin-top: 14px; }

/* ===== VIDEO (bulletproof padding-bottom Trick) ===== */
.video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    background: #000;
    margin-top: 8px;
}
.video-wrap > iframe,
.video-wrap > video {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}
.video-wrap.video-portrait {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 177.78%; /* 9:16 */
    border-radius: 20px;
}

/* ===== DEMO PREVIEW (interaktiver iframe von lokaler Demo) ===== */
.demo-preview {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    background: #fafafa;
    margin-top: 8px;
}
.demo-preview > iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}
.demo-preview.preview-phone {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 177.78%; /* 9:16 phone */
    border-radius: 28px;
    border: 6px solid #1a1a1a;
}
.demo-preview-actions {
    display: flex; gap: 10px; flex-wrap: wrap;
    justify-content: center;
    margin-top: 14px;
}
.demo-preview-actions a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; border-radius: 10px;
    font-size: 0.9rem; font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all 0.2s ease;
}
.demo-preview-actions a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.demo-preview-actions a svg { width: 14px; height: 14px; }
.video-note { font-size: 0.88rem; color: var(--color-text-muted); margin-top: 12px; }

/* ===== DEMO HINWEISE ===== */
.demo-notice,
.demo-disclaimer {
    display: flex; gap: 14px; align-items: flex-start;
    border-radius: var(--radius); padding: 18px 22px;
    margin-top: 20px; font-size: 0.95rem;
    line-height: 1.55;
}
.demo-notice {
    background: var(--color-accent-light);
    border: 1px solid var(--color-accent-soft);
}
.demo-disclaimer {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-left: 3px solid var(--color-accent);
    color: #5a5a5a;
}
.demo-notice svg,
.demo-disclaimer svg {
    width: 22px !important; height: 22px !important;
    color: var(--color-accent);
    flex-shrink: 0; margin-top: 2px;
}
.demo-notice strong,
.demo-disclaimer strong {
    display: block; margin-bottom: 4px;
    color: #1a1a1a;
}
.demo-notice span,
.demo-disclaimer span { color: #5a5a5a; }

/* ===== FEATURES ===== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.feature {
    background: white; border: 1px solid var(--color-border); border-radius: var(--radius);
    padding: 20px 22px; transition: var(--transition);
}
.feature:hover { border-color: var(--color-accent-soft); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
    width: 40px; height: 40px; background: var(--color-accent-light); color: var(--color-accent);
    border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--color-text-muted); font-size: 0.9rem; }

/* ===== TECH LIST ===== */
.tech-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.tech-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--color-text-muted); font-size: 0.98rem; }
.tech-list li::before {
    content: ''; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-accent); margin-top: 9px;
}
.tech-list strong { color: var(--color-text); font-weight: 600; }

/* ===== CTA ===== */
.proj-cta { background: var(--color-bg-alt); border-top: 1px solid var(--color-border); text-align: center; padding: 70px 0; }
.proj-cta h2 { margin-bottom: 12px; }
.proj-cta p { color: var(--color-text-muted); font-size: 1.05rem; margin-bottom: 26px; }

/* ===== FOOTER ===== */
footer { padding: 36px 0; border-top: 1px solid var(--color-border); text-align: center; color: var(--color-text-muted); font-size: 0.9rem; }
footer a { color: var(--color-accent); text-decoration: none; }
.footer-links { margin-top: 12px; font-size: 0.85rem; }
.footer-links a { color: var(--color-text-muted); margin: 0 6px; }
.footer-links a:hover { color: var(--color-accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .proj-hero { padding: 110px 0 40px; }
    .proj-section { padding: 40px 0; }
    .nav-right { gap: 12px; }
    .nav-back span { display: none; }
}
