:root {
    --ink: #172033;
    --muted: #667085;
    --line: #e8ecf3;
    --soft: #f7f9fc;
    --purple: #6e5be8;
    --purple-dark: #5140c3;
    --blue: #3c8edc;
    --green: #32a77b;
    --orange: #e6953f;
    --shadow: 0 20px 60px rgba(34, 42, 74, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(232,236,243,.8); backdrop-filter: blur(16px); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 750; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #7b6bf0, #4d3bbb); font-size: 12px; letter-spacing: -.06em; box-shadow: 0 8px 18px rgba(89, 69, 213, .25); }
.nav-links { display: flex; align-items: center; gap: 30px; color: #586174; font-size: 14px; font-weight: 600; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--purple); }
.nav-cta { color: #fff !important; background: var(--ink); padding: 10px 18px; border-radius: 9px; }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px; background: var(--ink); }

.hero { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 70px; min-height: 660px; padding-top: 70px; padding-bottom: 82px; }
.eyebrow { margin: 0 0 16px; color: var(--purple); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(42px, 5.1vw, 68px); line-height: 1.05; letter-spacing: -.065em; }
h1 span, h2 span { color: var(--purple); }
.hero-text { max-width: 510px; margin-bottom: 32px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { display: inline-flex; align-items: center; gap: 14px; border-radius: 9px; padding: 13px 20px; font-size: 14px; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--purple); box-shadow: 0 12px 24px rgba(110,91,232,.25); }
.button-primary:hover { background: var(--purple-dark); }
.button-ghost { color: var(--ink); border: 1px solid var(--line); }
.button-ghost:hover { border-color: var(--purple); }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 34px; color: #8992a3; font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4bc18e; box-shadow: 0 0 0 4px #e8f8f0; }

.hero-visual { position: relative; min-width: 0; }
.glow { position: absolute; width: 380px; height: 380px; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(116, 100, 235, .16); filter: blur(65px); border-radius: 50%; }
.window-card { position: relative; overflow: hidden; border: 1px solid #dfe4ef; border-radius: 12px; background: #fff; box-shadow: var(--shadow); transform: perspective(1300px) rotateY(-4deg) rotateX(2deg); }
.window-bar { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 14px; color: #98a0b0; background: #f4f6fa; font-size: 10px; }
.window-dots { display: flex; gap: 5px; }.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d6dbe5; }.window-icon { color: #bbc2d0; }
.ribbon-preview { display: flex; gap: 20px; padding: 13px 17px; border-bottom: 1px solid #e8ebf2; color: #798296; font-size: 10px; font-weight: 600; }.ribbon-active { color: var(--purple); border-bottom: 2px solid var(--purple); padding-bottom: 8px; margin-bottom: -14px; }
.document-preview { display: grid; grid-template-columns: 1.35fr .65fr; min-height: 330px; padding: 22px; gap: 18px; background: #eef1f7; }.document-page { position: relative; min-height: 285px; padding: 30px 28px; background: #fff; box-shadow: 0 5px 16px rgba(53,64,94,.09); }.fake-heading { width: 55%; height: 10px; margin-bottom: 23px; border-radius: 4px; background: #4a5265; }.fake-line { width: 82%; height: 5px; margin: 11px 0; border-radius: 3px; background: #dce1ea; }.fake-line.wide { width: 96%; }.fake-line.medium { width: 68%; }.fake-line.short { width: 45%; }.fake-space { height: 12px; }.ai-comment { position: absolute; right: -12px; bottom: 38px; padding: 8px 11px; border: 1px solid #ded9ff; border-radius: 7px; color: #6858d5; background: #f5f3ff; font-size: 9px; box-shadow: 0 5px 13px rgba(70,55,160,.1); }.ai-comment span { margin-right: 4px; }.assistant-panel { align-self: center; padding: 16px 13px; border: 1px solid #e3defe; border-radius: 9px; background: #faf9ff; color: #777d91; font-size: 10px; }.panel-title { margin-bottom: 19px; color: var(--purple); font-size: 12px; font-weight: 800; }.sparkle { margin-right: 5px; }.assistant-panel p { margin-bottom: 14px; }.panel-option { display: flex; justify-content: space-between; margin-top: 8px; padding: 8px 9px; border-radius: 5px; color: #5d6373; background: #fff; }.panel-option b { color: var(--purple); }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fbfcfe; }.trust-items { display: flex; justify-content: center; flex-wrap: wrap; gap: 17px; padding: 18px 0; color: #8a92a2; font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }.trust-separator { color: #c5cad4; }
.section { padding-top: 125px; padding-bottom: 125px; }.section-heading { max-width: 620px; margin-bottom: 48px; }.section-heading h2, .benefits-copy h2, .cta-box h2 { margin-bottom: 18px; font-size: clamp(34px, 4vw, 50px); line-height: 1.1; letter-spacing: -.06em; }.section-heading > p:last-child, .benefits-copy > p, .cta-box p { color: var(--muted); font-size: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.feature-card { min-height: 310px; padding: 27px; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }.feature-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(45,54,92,.09); }.feature-highlight { border-color: #dbd6ff; background: linear-gradient(145deg, #faf9ff, #fff); }.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 22px; border-radius: 11px; font-size: 19px; font-weight: 800; }.icon-purple { color: #6d5be3; background: #ebe8ff; }.icon-blue { color: #3687ce; background: #e4f2ff; }.icon-green { color: #2d9a70; background: #e4f8ef; }.icon-orange { color: #dc8a35; background: #fff1dc; }.icon-teal { color: #209b9a; background: #e1f8f7; }.icon-red { color: #d55b64; background: #ffeaec; }.feature-card h3 { margin-bottom: 10px; font-size: 18px; letter-spacing: -.035em; }.feature-card > p { min-height: 52px; color: var(--muted); font-size: 13px; }.card-line { height: 1px; margin: 20px 0 15px; background: var(--line); }.feature-card ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: #6e7789; font-size: 12px; }.feature-card li::before { content: "✓"; margin-right: 8px; color: #45b48a; font-weight: 800; }

.workflow-section { padding: 120px 0; background: var(--soft); }.workflow-content { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }.workflow-content .section-heading { margin-bottom: 0; }.steps { display: grid; gap: 0; }.step { display: grid; grid-template-columns: 68px 1fr; gap: 20px; padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid #e4e8f0; }.step:last-child { margin-bottom: 0; border-bottom: 0; }.step-number { color: var(--purple); font-size: 13px; font-weight: 800; letter-spacing: .1em; }.step h3 { margin-bottom: 5px; font-size: 17px; }.step p { margin: 0; color: var(--muted); font-size: 13px; }
.benefits-section { padding: 125px 0; }.benefits-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; align-items: center; }.benefits-copy > p { max-width: 460px; }.text-link { display: inline-flex; gap: 12px; margin-top: 14px; color: var(--purple); font-size: 14px; font-weight: 800; }.benefit-list { display: grid; gap: 25px; }.benefit { display: grid; grid-template-columns: 42px 1fr; gap: 17px; }.benefit-check { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #2e9e72; background: #e7f8f0; font-weight: 800; }.benefit h3 { margin-bottom: 4px; font-size: 17px; }.benefit p { margin: 0; color: var(--muted); font-size: 13px; }
.cta-section { padding: 0 0 100px; }.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 58px 65px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, #26264c, #48408a); box-shadow: 0 20px 50px rgba(54,48,112,.2); }.cta-box .eyebrow { color: #bcb5ff; }.cta-box h2 { margin-bottom: 10px; }.cta-box h2 span { color: #bcb5ff; }.cta-box p { max-width: 560px; margin-bottom: 0; color: #d2d3e5; }.button-light { flex: 0 0 auto; color: #302c68; background: #fff; }.button-light:hover { box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.footer { border-top: 1px solid var(--line); }.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 90px; color: #8b93a2; font-size: 12px; }.footer .brand { color: var(--ink); font-size: 14px; }.footer .brand-mark { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }.footer a { color: var(--purple); font-weight: 700; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 70px; }.hero-copy { max-width: 650px; }.window-card { transform: none; }.feature-grid { grid-template-columns: repeat(2, 1fr); }.workflow-content, .benefits-grid { grid-template-columns: 1fr; gap: 55px; }.benefits-grid { gap: 30px; }.cta-box { padding: 45px; } }
@media (max-width: 640px) { .container { width: min(100% - 32px, 1160px); }.nav { min-height: 68px; }.menu-toggle { display: block; }.nav-links { position: absolute; top: 68px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }.nav-links.open { display: flex; }.nav-links a { padding: 12px; }.nav-cta { text-align: center; }.hero { min-height: auto; padding-top: 60px; padding-bottom: 68px; }.hero-text { font-size: 15px; }.hero-actions { align-items: stretch; flex-direction: column; }.hero-actions .button { justify-content: center; }.document-preview { grid-template-columns: 1fr; padding: 12px; }.assistant-panel { display: none; }.trust-items { gap: 7px 12px; text-align: center; font-size: 9px; }.trust-separator { display: none; }.section, .benefits-section { padding-top: 80px; padding-bottom: 80px; }.feature-grid { grid-template-columns: 1fr; }.feature-card { min-height: auto; }.workflow-section { padding: 80px 0; }.step { grid-template-columns: 48px 1fr; gap: 12px; }.cta-section { padding-bottom: 70px; }.cta-box { align-items: flex-start; flex-direction: column; padding: 35px 26px; }.footer-content { flex-wrap: wrap; padding: 24px 0; } }
/* =========================================================
   AI ASSISTANT FOR WORD - ERWEITERUNGEN
   ========================================================= */

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 6px;
    padding: 5px 8px 5px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: #737c8e;
}
.language-icon {
    color: var(--purple);
    font-size: 15px;
    line-height: 1;
}
.language-select {
    min-width: 88px;
    border: 0;
    outline: 0;
    color: #4f586b;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}
.language-switch:focus-within {
    border-color: #cfc7ff;
    box-shadow: 0 0 0 3px rgba(110, 91, 232, .10);
}
.requirements-section {
    padding: 120px 0;
    border-top: 1px solid var(--line);
    background: #fbfcfe;
}
.requirements-grid {
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    gap: 90px;
    align-items: start;
}
.requirements-grid .section-heading {
    margin-bottom: 0;
}
.requirement-cards {
    display: grid;
    gap: 14px;
}
.requirement-card {
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
}
.requirement-card h3 {
    margin-bottom: 7px;
    font-size: 16px;
}
.requirement-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
@media (max-width: 900px) {
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}
@media (max-width: 640px) {
    .language-switch {
        justify-content: center;
        margin: 8px 12px 4px;
        padding: 8px 12px;
    }
    .language-select {
        min-width: 110px;
    }
    .requirements-section {
        padding: 80px 0;
    }
}


/* =========================================================
   HERO IMAGE + SCREENSHOTS
   ========================================================= */
.hero-image-card {
    position: relative;
    overflow: hidden;
    max-width: 520px;
    margin-left: auto;
    border: 1px solid #dfe4ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}
.hero-product-image {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================================
   DETAILLIERTE FUNKTIONSÜBERSICHT
   ========================================================= */
.feature-grid-detailed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.feature-grid-detailed .feature-card {
    display: flex;
    flex-direction: column;
    min-height: 430px;
    padding: 30px;
}
.feature-grid-detailed .feature-card > p {
    min-height: 0;
    margin-bottom: 0;
    font-size: 13.5px;
    line-height: 1.75;
}
.feature-grid-detailed .feature-card ul {
    margin-bottom: 24px;
}
.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-top: auto;
    color: var(--purple);
    font-size: 13px;
    font-weight: 800;
    transition: gap .2s ease, color .2s ease;
}
.feature-link:hover {
    gap: 14px;
    color: var(--purple-dark);
}
.detail-page {
    min-height: 100vh;
    background: #fff;
}
.detail-main {
    padding: 90px 0 110px;
}
.detail-hero {
    max-width: 800px;
}
.detail-hero h1 {
    font-size: clamp(40px, 5vw, 62px);
}
.detail-placeholder {
    margin-top: 40px;
    padding: 28px 30px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
    background: var(--soft);
}
.detail-back {
    margin-top: 28px;
}
@media (max-width: 900px) {
    .feature-grid-detailed {
        grid-template-columns: 1fr;
    }
    .feature-grid-detailed .feature-card {
        min-height: auto;
    }
    .hero-image-card {
        margin-right: auto;
    }
}


/* =========================================================
   DETAILSEITEN – FUNKTIONEN & BEISPIELE
   ========================================================= */
.detail-main {
    padding: 76px 0 110px;
}
.detail-hero-wide {
    max-width: 980px;
}
.detail-hero-wide h1 {
    max-width: 820px;
}
.detail-lead {
    max-width: 780px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}
.detail-section {
    padding: 86px 0;
}
.detail-section-soft {
    background: var(--soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.detail-section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}
.detail-section-heading h2 {
    margin-bottom: 14px;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.12;
    letter-spacing: -.05em;
}
.detail-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}
.detail-point-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.detail-point {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.detail-point-number {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 17px;
    border-radius: 50%;
    color: var(--purple);
    background: #f0edff;
    font-size: 12px;
    font-weight: 800;
}
.detail-point h3 {
    margin-bottom: 8px;
    font-size: 17px;
}
.detail-point p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}
.example-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.example-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(45,54,92,.05);
}
.example-label {
    margin-bottom: 12px;
    color: var(--purple);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.example-card h3 {
    margin-bottom: 12px;
    font-size: 18px;
    letter-spacing: -.025em;
}
.example-prompt,
.example-result {
    margin: 0;
    padding: 14px 15px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.65;
}
.example-prompt {
    color: #586174;
    background: #f6f8fc;
}
.example-arrow {
    margin: 12px 0;
    color: #aaa3db;
    font-weight: 800;
}
.example-result {
    color: #50596b;
    background: #f8f6ff;
    border: 1px solid #ebe7ff;
}
.detail-gallery {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 22px;
    align-items: start;
}
.detail-shot {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}
.detail-shot img {
    display: block;
    width: 100%;
    height: auto;
}
.detail-shot-copy {
    padding: 19px 21px 22px;
}
.detail-shot-copy h3 {
    margin-bottom: 7px;
    font-size: 17px;
}
.detail-shot-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}
.detail-note {
    margin-top: 28px;
    padding: 20px 22px;
    border-left: 3px solid var(--purple);
    border-radius: 0 10px 10px 0;
    color: #596275;
    background: #faf9ff;
    font-size: 13px;
    line-height: 1.7;
}
.detail-bottom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 42px;
}
@media (max-width: 900px) {
    .detail-point-grid,
    .example-grid,
    .detail-gallery {
        grid-template-columns: 1fr;
    }
    .detail-gallery {
        max-width: 700px;
    }
}
@media (max-width: 640px) {
    .detail-main {
        padding-top: 48px;
    }
    .detail-section {
        padding: 62px 0;
    }
    .detail-lead {
        font-size: 16px;
    }
    .example-card {
        min-height: auto;
    }
}


/* =========================================================
   DETAIL PAGES - FOCUSED SCREENSHOT SHOWCASE
   Max. 3 screenshots per feature page; deliberately not a gallery.
   ========================================================= */
.detail-showcase-list {
    display: grid;
    gap: 28px;
    max-width: 980px;
}
.detail-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
    gap: 28px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(45,54,92,.06);
}
.detail-showcase:nth-child(even) {
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
}
.detail-showcase:nth-child(even) .detail-screenshot-placeholder {
    order: 2;
}
.detail-showcase:nth-child(even) .detail-showcase-copy {
    order: 1;
}
.detail-screenshot-placeholder {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 28px;
    text-align: center;
    border: 1px dashed #cfd5e2;
    border-radius: 13px;
    color: #6f7789;
    background:
        linear-gradient(135deg, rgba(110,91,232,.05), rgba(60,142,220,.03)),
        #fafbfe;
}
.detail-screenshot-placeholder strong {
    max-width: 420px;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.35;
}
.placeholder-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--purple);
    background: #f0edff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.detail-showcase-copy h3 {
    margin-bottom: 9px;
    font-size: 20px;
    letter-spacing: -.035em;
}
.detail-showcase-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}
.detail-gallery-focused {
    grid-template-columns: 1fr;
    max-width: 900px;
    gap: 28px;
}
.detail-gallery-focused .detail-shot {
    box-shadow: 0 12px 34px rgba(45,54,92,.08);
}
@media (max-width: 900px) {
    .detail-showcase,
    .detail-showcase:nth-child(even) {
        grid-template-columns: 1fr;
    }
    .detail-showcase:nth-child(even) .detail-screenshot-placeholder,
    .detail-showcase:nth-child(even) .detail-showcase-copy {
        order: initial;
    }
}
@media (max-width: 640px) {
    .detail-showcase {
        padding: 14px;
        gap: 18px;
    }
    .detail-screenshot-placeholder {
        min-height: 210px;
        padding: 20px;
    }
}


/* Development screenshot filename labels */
.detail-showcase-media {
    min-width: 0;
}
.detail-showcase:nth-child(even) .detail-showcase-media {
    order: 2;
}
.screenshot-filename {
    margin-top: 8px;
    color: #98a0b0;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}
.detail-shot-copy .screenshot-filename {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: left;
}
@media (max-width: 900px) {
    .detail-showcase:nth-child(even) .detail-showcase-media {
        order: initial;
    }
}


/* Real screenshots in detail-page showcase blocks */
.detail-showcase-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    border: 1px solid #e3e7ef;
    border-radius: 13px;
    background: #fafbfe;
}

/* =========================================================
   V10 - SCREENSHOT SIZING / CONTAINERS
   Real screenshots keep their aspect ratio and are not
   unnecessarily enlarged. Portrait, wide and compact views
   receive tailored limits.
   ========================================================= */
.detail-showcase-list {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    gap: 32px;
}

.detail-showcase,
.detail-showcase:nth-child(even) {
    grid-template-columns: minmax(320px, 1fr) minmax(300px, 1fr);
    gap: 34px;
    padding: 24px;
}

.detail-showcase-media {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid #e5e9f1;
    border-radius: 14px;
    background: #fbfcfe;
}

.detail-showcase-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 500px;
    margin: 0 auto;
    object-fit: contain;
    border: 0;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(45,54,92,.08);
}

.detail-showcase .detail-screenshot-placeholder {
    width: 100%;
    min-height: 240px;
}

.detail-showcase .screenshot-filename {
    margin-top: 10px;
}

/* Portrait screenshots: Pane / PDF pages */
.detail-showcase.shot-portrait .detail-showcase-media {
    max-width: 430px;
    justify-self: center;
}
.detail-showcase.shot-portrait .detail-showcase-image {
    max-height: 560px;
}

/* Very wide screenshots: selections, short document strips */
.detail-showcase.shot-wide {
    grid-template-columns: minmax(420px, 1.3fr) minmax(260px, .7fr);
}
.detail-showcase.shot-wide:nth-child(even) {
    grid-template-columns: minmax(260px, .7fr) minmax(420px, 1.3fr);
}
.detail-showcase.shot-wide .detail-showcase-image {
    max-width: 100%;
    max-height: 280px;
}

/* Small screenshots should stay crisp instead of being blown up */
.detail-showcase.shot-compact .detail-showcase-media {
    max-width: 460px;
    justify-self: center;
}
.detail-showcase.shot-compact .detail-showcase-image {
    max-width: 380px;
    max-height: 320px;
}

/* Chat page: same calm presentation instead of full-width stretching */
.detail-gallery-focused {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    gap: 32px;
}
.detail-gallery-focused .detail-shot {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(300px, 1fr);
    gap: 34px;
    align-items: center;
    padding: 24px;
    overflow: visible;
}
.detail-gallery-focused .detail-shot img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 560px;
    margin: 0 auto;
    border: 1px solid #e5e9f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(45,54,92,.08);
}
.detail-gallery-focused .detail-shot-copy {
    padding: 4px 8px;
}
.detail-gallery-focused .detail-shot-portrait img {
    max-width: 390px;
    max-height: 600px;
}
.detail-gallery-focused .detail-shot-landscape {
    grid-template-columns: minmax(440px, 1.25fr) minmax(260px, .75fr);
}
.detail-gallery-focused .detail-shot-landscape img {
    max-width: 680px;
    max-height: 500px;
}

@media (max-width: 900px) {
    .detail-showcase,
    .detail-showcase:nth-child(even),
    .detail-showcase.shot-wide,
    .detail-showcase.shot-wide:nth-child(even),
    .detail-gallery-focused .detail-shot,
    .detail-gallery-focused .detail-shot-landscape {
        grid-template-columns: 1fr;
    }

    .detail-showcase:nth-child(even) .detail-showcase-media,
    .detail-showcase:nth-child(even) .detail-showcase-copy {
        order: initial;
    }

    .detail-showcase.shot-portrait .detail-showcase-media,
    .detail-showcase.shot-compact .detail-showcase-media {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .detail-showcase,
    .detail-gallery-focused .detail-shot {
        padding: 14px;
        gap: 20px;
    }

    .detail-showcase-media {
        padding: 10px;
    }

    .detail-showcase-image,
    .detail-showcase.shot-portrait .detail-showcase-image,
    .detail-gallery-focused .detail-shot img,
    .detail-gallery-focused .detail-shot-portrait img,
    .detail-gallery-focused .detail-shot-landscape img {
        max-width: 100%;
        max-height: 520px;
    }
}


/* =========================================================
   V11 - COMPACT SCREENSHOT LAYOUT
   Screenshots are presented as content cards with the copy
   below the image. This removes unused space beside images.
   On desktop, two screenshots can sit next to each other.
   ========================================================= */
.detail-showcase-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.detail-showcase,
.detail-showcase:nth-child(even),
.detail-showcase.shot-wide,
.detail-showcase.shot-wide:nth-child(even) {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(45,54,92,.06);
}

.detail-showcase:nth-child(even) .detail-showcase-media,
.detail-showcase:nth-child(even) .detail-showcase-copy {
    order: initial;
}

.detail-showcase-media {
    width: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 12px;
    border: 1px solid #e5e9f1;
    border-radius: 13px;
    background: #fbfcfe;
}

.detail-showcase-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 470px;
    margin: 0 auto;
    object-fit: contain;
    border: 0;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(45,54,92,.08);
}

.detail-showcase.shot-portrait .detail-showcase-media,
.detail-showcase.shot-compact .detail-showcase-media {
    max-width: none;
}
.detail-showcase.shot-portrait .detail-showcase-image {
    max-height: 500px;
}
.detail-showcase.shot-wide .detail-showcase-image {
    width: 100%;
    max-height: 300px;
}
.detail-showcase.shot-compact .detail-showcase-image {
    max-width: 100%;
    max-height: 300px;
}

.detail-showcase-copy {
    padding: 0 4px 2px;
}
.detail-showcase-copy h3 {
    margin-bottom: 7px;
}
.detail-showcase-copy p {
    line-height: 1.65;
}

/* If a page contains three screenshots, the third one is
   centered instead of leaving an awkward half-empty row. */
.detail-showcase-list > .detail-showcase:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: min(100%, 535px);
    justify-self: center;
}

/* Chat: portrait pane and landscape result side by side.
   Captions sit below the image instead of beside it. */
.detail-gallery-focused {
    display: grid;
    grid-template-columns: minmax(320px, .78fr) minmax(440px, 1.22fr);
    gap: 26px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.detail-gallery-focused .detail-shot,
.detail-gallery-focused .detail-shot-landscape {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(45,54,92,.08);
}
.detail-gallery-focused .detail-shot img,
.detail-gallery-focused .detail-shot-portrait img,
.detail-gallery-focused .detail-shot-landscape img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 510px;
    margin: 0 auto;
    object-fit: contain;
    border: 1px solid #e5e9f1;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(45,54,92,.08);
}
.detail-gallery-focused .detail-shot-landscape img {
    width: 100%;
    max-height: 430px;
}
.detail-gallery-focused .detail-shot-copy {
    padding: 0 2px 2px;
}
.detail-gallery-focused .detail-shot-copy .screenshot-filename {
    text-align: left;
}

@media (max-width: 900px) {
    .detail-showcase-list,
    .detail-gallery-focused {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .detail-showcase-list > .detail-showcase:last-child:nth-child(odd) {
        grid-column: auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .detail-showcase,
    .detail-gallery-focused .detail-shot,
    .detail-gallery-focused .detail-shot-landscape {
        padding: 13px;
        gap: 14px;
    }

    .detail-showcase-media {
        padding: 8px;
    }

    .detail-showcase-image,
    .detail-showcase.shot-portrait .detail-showcase-image,
    .detail-showcase.shot-wide .detail-showcase-image,
    .detail-gallery-focused .detail-shot img,
    .detail-gallery-focused .detail-shot-portrait img,
    .detail-gallery-focused .detail-shot-landscape img {
        max-width: 100%;
        max-height: 460px;
    }
}


/* =========================================================
   V12 - SCREENSHOT FALLBACK + ANALYSIS LAYOUT
   ========================================================= */
/* Never show a screenshot placeholder while it is marked hidden. */
.detail-screenshot-placeholder[hidden] {
    display: none !important;
}

/* Analysis page: Editing occupies its own first row.
   "Analysis in the document" and "Analysis comment" sit side by side below. */
.analysis-showcase-list > .detail-showcase:first-child {
    grid-column: 1 / -1;
    width: min(100%, 760px);
    justify-self: center;
}

.analysis-showcase-list > .detail-showcase:last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
}

@media (max-width: 900px) {
    .analysis-showcase-list > .detail-showcase:first-child {
        grid-column: auto;
        width: 100%;
    }
}


/* =========================================================
   V14 - EINHEITLICHE SCREENSHOT-GRÖSSEN + LIGHTBOX
   Querformat und Hochformat werden getrennt vereinheitlicht.
   Es gibt keine feste leere Bildhöhe mehr; dadurch bleibt
   auch bei sehr breiten Screenshots kein unnötiger Leerraum.
   ========================================================= */

/* Grundfläche der Screenshot-Karten */
.detail-showcase-media {
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 12px;
    overflow: visible;
}

/* Querformat: auf allen Detailseiten dieselbe maximale Breite. */
.detail-showcase.shot-landscape .detail-showcase-image,
.detail-gallery-focused .detail-shot-landscape > img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
}

/* Hochformat bzw. nahezu quadratische Ansichten bewusst schmaler. */
.detail-showcase.shot-portrait .detail-showcase-image,
.detail-gallery-focused .detail-shot-portrait > img {
    display: block;
    width: 100%;
    max-width: 330px;
    height: auto;
    max-height: 520px;
    margin: 0 auto;
    object-fit: contain;
}

/* Die Chat-Karten folgen denselben beiden Bildstandards. */
.detail-gallery-focused .detail-shot,
.detail-gallery-focused .detail-shot-landscape,
.detail-gallery-focused .detail-shot-portrait {
    align-items: stretch;
}

.detail-gallery-focused .detail-shot > img {
    flex: 0 0 auto;
}

/* Bild und Dateiname bleiben optisch als Einheit zusammen. */
.detail-showcase-media .screenshot-filename {
    width: 100%;
    margin-top: 10px;
}

/* Interaktive Screenshots */
.detail-showcase-image,
.detail-gallery-focused .detail-shot > img {
    cursor: zoom-in;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.detail-showcase-image:hover,
.detail-gallery-focused .detail-shot > img:hover,
.detail-showcase-image:focus-visible,
.detail-gallery-focused .detail-shot > img:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(45,54,92,.16);
    outline: none;
}

.detail-showcase-image:focus-visible,
.detail-gallery-focused .detail-shot > img:focus-visible {
    box-shadow: 0 0 0 3px rgba(110,91,232,.24), 0 12px 28px rgba(45,54,92,.16);
}

/* Lightbox */
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(12, 16, 28, .88);
    backdrop-filter: blur(5px);
}

.image-lightbox.open {
    display: flex;
}

.image-lightbox-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: min(96vw, 1500px);
    max-height: 94vh;
}

.image-lightbox-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(94vh - 70px);
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,.38);
}

.image-lightbox-caption {
    max-width: min(900px, 90vw);
    margin: 0;
    color: rgba(255,255,255,.92);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.image-lightbox-close {
    position: absolute;
    top: -18px;
    right: -4px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    color: #fff;
    background: rgba(17,23,38,.82);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,.24);
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
    background: rgba(45,54,92,.96);
    outline: 2px solid rgba(255,255,255,.8);
    outline-offset: 2px;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .detail-showcase.shot-landscape .detail-showcase-image,
    .detail-gallery-focused .detail-shot-landscape > img,
    .detail-showcase.shot-portrait .detail-showcase-image,
    .detail-gallery-focused .detail-shot-portrait > img {
        max-width: 100%;
        max-height: none;
    }

    .image-lightbox {
        padding: 16px;
    }

    .image-lightbox-dialog {
        width: 100%;
        max-height: 96vh;
    }

    .image-lightbox-image {
        max-height: calc(96vh - 62px);
    }

    .image-lightbox-close {
        top: -10px;
        right: -4px;
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
}
