/* ==========================================================================
   Guide-View "So funktioniert's" — Agents & MCP erklärt
   Theme-aware (App-Tokens) mit Orange-Akzenten im Landing-Geist.
   ========================================================================== */

.guide-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: var(--content-max);
}

/* ── Hero ───────────────────────────────────────────────────── */

.guide-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 32px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background:
        radial-gradient(circle at 88% 8%, var(--accent-soft-2, rgba(249, 115, 22, 0.22)), transparent 38%),
        linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    box-shadow: var(--shadow-sm);
}

.guide-hero::after {
    content: "";
    position: absolute;
    inset: auto -14% -70% 48%;
    height: 200px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.08);
    filter: blur(26px);
    pointer-events: none;
}

.guide-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-strong, var(--accent));
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.guide-hero-title {
    margin: 0 0 8px;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-1);
}

.guide-hero-sub {
    margin: 0;
    max-width: 640px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-3);
}

/* ── Sektionen ──────────────────────────────────────────────── */

.guide-section {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.guide-section--plain {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.guide-section--plain .wf-guide {
    margin-bottom: 0;
}

.guide-section-head {
    margin-bottom: 18px;
}

.guide-section-head h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-1);
}

.guide-section-head p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-3);
}

.guide-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* ── MCP-Verb-Karten ────────────────────────────────────────── */

.guide-verb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.guide-verb-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface-2);
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.guide-verb-card:hover {
    border-color: rgba(249, 115, 22, 0.35);
    transform: translateY(-2px);
}

.guide-verb-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.guide-verb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-strong, var(--accent));
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.guide-verb-name {
    font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent-strong, var(--accent));
    background: transparent;
}

.guide-verb-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 4px;
}

.guide-verb-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-3);
}

/* ── Punkte-Listen (Kontext / Safety) ───────────────────────── */

.guide-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guide-points li {
    position: relative;
    padding-left: 22px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-2);
}

.guide-points li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong, var(--accent)));
}

.guide-section--safety {
    background:
        radial-gradient(circle at 92% 0%, var(--accent-soft, rgba(249, 115, 22, 0.12)), transparent 42%),
        var(--surface);
}

.guide-section--safety .btn-primary {
    margin-top: 16px;
}

/* ── Setup-Schritte ─────────────────────────────────────────── */

.guide-setup-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    counter-reset: guide-setup;
}

.guide-setup-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-soft);
    border-radius: var(--r);
    background: var(--surface-2);
}

.guide-setup-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong, var(--accent)));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.guide-setup-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-2);
}

.guide-setup-text code {
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--surface-3);
    border: 1px solid var(--border-soft);
    color: var(--accent-strong, var(--accent));
}

/* ── Download-Grid ──────────────────────────────────────────── */

.guide-dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.guide-dl-card {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface-2);
    text-decoration: none;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.guide-dl-card:hover {
    border-color: rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.10);
}

.guide-dl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.guide-dl-name {
    font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-1);
    background: transparent;
    word-break: break-all;
}

.guide-dl-tag {
    flex-shrink: 0;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.guide-dl-tag--md {
    background: var(--accent-soft);
    color: var(--accent-strong, var(--accent));
}

.guide-dl-tag--py {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.guide-dl-tag--txt {
    background: var(--surface-3);
    color: var(--text-3);
}

.guide-dl-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-3);
}

/* ── Link-Zeilen ────────────────────────────────────────────── */

.guide-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
}

.guide-links-row a {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent-strong, var(--accent));
    text-decoration: none;
}

.guide-links-row a:hover {
    text-decoration: underline;
}

/* ── Backlink-Hinweis (Import / Agent-Review) ───────────────── */

.guide-backlink {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 10px 14px;
    border: 1px solid var(--border-soft);
    border-radius: var(--r);
    background: var(--surface-2);
    font-size: 12.5px;
    color: var(--text-3);
}

.guide-backlink a {
    font-weight: 700;
    color: var(--accent-strong, var(--accent));
    text-decoration: none;
}

.guide-backlink a:hover {
    text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 980px) {
    .guide-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .guide-hero {
        padding: 26px 20px;
    }

    .guide-section {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guide-verb-card:hover,
    .guide-dl-card:hover {
        transform: none;
    }
}
