/* Funktionsseite: KI-Assistenten über MCP */

.mcp-page { background: var(--white); }
.mcp-page main a:not(.button):focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }

.mcp-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: end; gap: 48px; margin-bottom: 44px; }
.mcp-section-head p { max-width: 460px; margin: 0 0 6px; color: var(--muted); font-size: 1.06rem; line-height: 1.65; }

/* Hero */
.mcp-hero { padding: 28px 0 110px; color: #d3e3d8; background: var(--forest-dark); }
.mcp-hero .breadcrumbs { margin-bottom: 64px; color: #a9c4b2; }
.mcp-hero .breadcrumbs a { color: #d3e3d8; }
.mcp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); align-items: center; gap: 72px; }
.mcp-kicker { margin: 0 0 18px; color: var(--lime); font-size: 0.92rem; font-weight: 700; }
.mcp-hero h1 { max-width: 12ch; color: var(--white); font-size: clamp(2.6rem, 4.8vw, 4.4rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.022em; }
.mcp-hero-copy > p:not(.mcp-kicker) { max-width: 540px; margin: 26px 0 0; font-size: 1.1rem; line-height: 1.65; }
.mcp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.mcp-chat { display: grid; gap: 12px; margin: 0; padding: 26px; border-radius: 20px; background: #f4f8f3; box-shadow: 0 40px 80px -30px rgba(5, 25, 15, 0.6); }
.mcp-chat figcaption { justify-self: start; margin-bottom: 4px; padding: 3px 10px; border-radius: 6px; color: var(--muted); background: var(--white); font-size: 0.74rem; font-weight: 700; }
.mcp-chat-message { max-width: 88%; padding: 14px 16px; border-radius: 16px; color: var(--ink); font-size: 0.95rem; line-height: 1.5; }
.mcp-chat-user { justify-self: end; border-bottom-right-radius: 4px; color: var(--white); background: var(--forest); }
.mcp-chat-assistant { justify-self: start; border: 1px solid var(--line); border-bottom-left-radius: 4px; background: var(--white); }
.mcp-chat-assistant p { margin: 0; }
.mcp-chat-assistant ul { display: grid; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.mcp-chat-assistant li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #f4f8f3; font-size: 0.88rem; }
.mcp-chat-assistant em { font-style: normal; font-weight: 650; white-space: nowrap; }
.mcp-chat-tool { display: flex; align-items: center; gap: 8px; justify-self: start; color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.mcp-chat-tool span { width: 7px; height: 7px; border-radius: 50%; background: #5fae2e; }

/* Beispiele */
.mcp-examples { padding: 110px 0; }
.mcp-example-list { margin: 0; border-top: 1px solid var(--ink); }
.mcp-example-list > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.mcp-example-list dt { grid-row: span 3; font-size: 1.25rem; font-weight: 720; }
.mcp-example-list dd { margin: 0; color: #2f4137; font-size: 1.1rem; line-height: 1.5; }

/* Kontrolle */
.mcp-control { padding: 110px 0; background: var(--mint); }
.mcp-control-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; }
.mcp-control-grid > div p { max-width: 380px; margin: 22px 0 0; color: #3f5047; font-size: 1.06rem; line-height: 1.65; }
.mcp-control-list { margin: 0; padding: 0; list-style: none; }
.mcp-control-list li { padding: 20px 0; border-top: 1px solid rgba(19, 38, 29, 0.15); color: #3f5047; line-height: 1.6; }
.mcp-control-list li:first-child { padding-top: 0; border-top: 0; }
.mcp-control-list strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 1.08rem; }

/* Verbinden */
.mcp-connect { padding: 110px 0; }
.mcp-connect-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: start; gap: 80px; }
.mcp-steps { margin: 40px 0 0; padding: 0; list-style: none; counter-reset: step; }
.mcp-steps li { position: relative; display: grid; gap: 4px; padding: 0 0 28px 56px; counter-increment: step; }
.mcp-steps li::before { position: absolute; top: -2px; left: 0; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--forest); background: var(--mint); content: counter(step); font-size: 0.86rem; font-weight: 800; }
.mcp-steps strong { font-size: 1.12rem; }
.mcp-steps span { color: #48584f; line-height: 1.6; }
.mcp-endpoint { padding: 34px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.mcp-endpoint p { margin: 0; color: #48584f; line-height: 1.6; }
.mcp-endpoint code { display: block; margin: 14px 0 20px; padding: 14px 16px; border-radius: 10px; color: var(--lime); background: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.95rem; }
.mcp-endpoint a { display: inline-block; margin-top: 18px; color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

/* Weitere KI-Funktionen */
.mcp-related { padding: 0 0 110px; }
.mcp-related-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; padding-top: 40px; border-top: 1px solid var(--line); }
.mcp-related-grid > p { margin: 0; align-self: center; font-size: 1.2rem; font-weight: 720; }
.mcp-related-grid a { display: grid; gap: 4px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; transition: background 140ms ease, border-color 140ms ease; }
.mcp-related-grid a:hover { border-color: rgba(31, 90, 61, 0.35); background: #f1f7f2; }
.mcp-related-grid span { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 1050px) {
    .mcp-hero-grid,
    .mcp-control-grid,
    .mcp-connect-grid { grid-template-columns: 1fr; gap: 48px; }
    .mcp-related-grid { grid-template-columns: 1fr 1fr; }
    .mcp-related-grid > p { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .mcp-hero { padding-bottom: 72px; }
    .mcp-hero .breadcrumbs { margin-bottom: 40px; }
    .mcp-chat { padding: 18px; }
    .mcp-chat-message { max-width: 100%; }
    .mcp-chat-assistant li { grid-template-columns: 40px minmax(0, 1fr); }
    .mcp-chat-assistant em { grid-column: 2; }
    .mcp-section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 30px; }
    .mcp-examples,
    .mcp-control,
    .mcp-connect { padding: 72px 0; }
    .mcp-example-list > div { grid-template-columns: 1fr; }
    .mcp-example-list dt { grid-row: auto; }
    .mcp-related { padding-bottom: 72px; }
    .mcp-related-grid { grid-template-columns: 1fr; }
    .mcp-endpoint { padding: 24px 20px; }
    .mcp-endpoint code { font-size: 0.82rem; overflow-x: auto; }
}

.mcp-hero-copy .mcp-proof { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; color: #a9c4b2; font-size: 0.92rem; font-weight: 600; }
.mcp-proof span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
