/* Stitch project 17116484877422896131, article + KI-Management, 2026-12-03.
   See .planning/2026-12-03_stitch-redaktion/design-source.md. Native Ghost content
   and server-side card visibility remain authoritative. */
:root {
    --akademie-bg: #fcf9f0;
    --akademie-bg-warm: #f6f3eb;
    --akademie-card: #ffffff;
    --akademie-ink: #1c1c17;
    --akademie-ink-soft: #434655;
    --akademie-line: #c4c5d7;
    --akademie-radius: 8px;
    --akademie-radius-pill: 4px;
    --color-primary-text: #1c1c17;
    --color-secondary-text: #434655;
    --color-border: #c4c5d7;
    --font-sans: "Source Sans 3", sans-serif;
    --font-serif: "Manrope", sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { background: var(--akademie-bg); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #0040ce; outline-offset: 4px; }
.gh-inner { max-width: 1320px; }
.gh-navigation { border-bottom: 1px solid var(--akademie-line); background: var(--akademie-bg); }
.gh-navigation-inner { min-height: 80px; gap: 32px; }
.gh-navigation-brand { flex: 0 0 auto; }
.gh-navigation-logo { font: 800 24px/1.2 Manrope, sans-serif; letter-spacing: -.04em; }
.gh-navigation-menu, .gh-navigation-actions { font: 700 12px/1.5 "Space Mono", monospace; }
.gh-navigation .gh-button, .gh-button, .gh-btn { border-radius: 4px; }
.gh-navigation-menu a { color: var(--akademie-ink); }
.gh-navigation-menu .nav-current a { color: #0040ce; text-decoration: underline; text-underline-offset: 8px; }
.gh-navigation a, .gh-navigation button { min-height: 44px; align-content: center; }
.gh-navigation-logo img { max-height: 42px; width: auto; }
.gh-article-header { margin-top: 48px; margin-bottom: 40px; }
.gh-article-header.gh-canvas, .stitch-article .gh-content.gh-canvas { --content-width: 800px; }
.gh-article-title { font: 800 clamp(32px, 4vw, 56px)/1.12 Manrope, sans-serif; letter-spacing: -.035em; }
.gh-article-excerpt { font: 400 20px/1.6 "Source Sans 3", sans-serif; color: var(--akademie-ink-soft); }
.stitch-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.stitch-tags:empty { display: none; }
.stitch-tags a {
    display: inline-block; padding: 5px 10px; border: 1px solid var(--akademie-line);
    border-radius: 2px; color: var(--akademie-ink-soft); text-decoration: none;
    font: 700 12px/1.4 "Space Mono", monospace; text-transform: uppercase; letter-spacing: .06em;
}
.gh-meta-share { padding-block: 18px; margin-top: 28px; border-block: 1px solid var(--akademie-line); }
.gh-article-meta { font: 400 12px/1.5 "Space Mono", monospace; }
.gh-article-author-name { font: 700 12px/1.4 "Space Mono", monospace; }
.gh-article-image { margin-top: 36px; }
.gh-feature-image { border: 1px solid var(--akademie-line); border-radius: 8px; }
.gh-content { font: 400 20px/1.65 "Source Sans 3", sans-serif; overflow-wrap: anywhere; }
.gh-content > h2 { font: 800 30px/1.25 Manrope, sans-serif; letter-spacing: -.02em; margin-top: 2.5em; }
.gh-content > h3 { font: 700 23px/1.4 Manrope, sans-serif; }
.gh-content a:not([class]) { text-decoration: underline; text-underline-offset: 3px; }
.gh-content blockquote {
    font: italic 21px/1.6 "Source Sans 3", sans-serif; background: var(--akademie-bg-warm);
    border: 0; border-left: 4px solid #0040ce; border-radius: 0 8px 8px 0; padding: 24px;
}
.gh-content blockquote p { font: inherit; }
.gh-content :where(.kg-callout-card, .kg-bookmark-card, .kg-file-card, .kg-signup-card) { border-radius: 8px; }
.gh-content .kg-toggle-card { border: 1px solid var(--akademie-line); border-radius: 8px; }
.gh-content .kg-button-card a { border-radius: 4px; font-family: "Space Mono", monospace; }
.gh-content .kg-width-full, .gh-content .kg-width-wide { min-width: 0; }
.gh-content table { display: block; max-width: 100%; overflow-x: auto; }
.gh-content table th { text-transform: none; font-size: .85em; }
.gh-content .da-flip-model { font-size: 16px; }
.gh-content .da-flip-model .da-flip-title { font-size: clamp(22px, 3vw, 30px); }
.gh-content .da-flip-model .da-flip-header { gap: 18px; align-items: start; }
.gh-content .da-flip-model .da-flip-global { min-height: 44px; white-space: normal; }
.gh-content .da-flip-model .da-flip-faces { min-height: 340px; }
.gh-content .da-flip-model .da-flip-hit { display: block; }
.gh-content .da-flip-model .da-flip-role { font: 700 14px/1.4 "Source Sans 3", sans-serif; }
.stitch-resource .gh-article-header.gh-canvas,
.stitch-resource .gh-content.gh-canvas { --content-width: 1320px; --gap: 32px; }
.stitch-resource .gh-article-header { margin-bottom: 24px; }
.stitch-resource .gh-article-title { max-width: 980px; }
.stitch-workspace { grid-column: wide-start / wide-end; min-width: 0; }
.stitch-workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.stitch-access { font: 700 12px/1.5 "Space Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.stitch-access[data-member="true"] { background: #d3e77a; color: #1c1c17; padding: 6px 10px; border-radius: 3px; }
.stitch-actions, .stitch-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.stitch-workspace button, .stitch-workspace .stitch-action {
    min-height: 44px; padding: 10px 16px; border-radius: 4px; cursor: pointer;
    border: 1px solid var(--akademie-line); background: white; color: var(--akademie-ink);
    font: 700 12px/1.5 "Space Mono", monospace;
}
.stitch-workspace button:hover { border-color: #0040ce; }
.stitch-tabs { padding-block: 24px; border-bottom: 1px solid var(--akademie-line); margin-bottom: 28px; }
.stitch-tabs [aria-selected="true"] { background: #0040ce; border-color: #0040ce; color: white; }
.stitch-tabs [aria-disabled="true"] { cursor: default; background: transparent; color: var(--akademie-ink-soft); border-style: dashed; }
.stitch-workspace [hidden] { display: none !important; }
.stitch-workspace [data-praxisbericht-c] { margin: 0 !important; width: 100% !important; max-width: none !important; }
.stitch-workspace iframe { display: block; width: 100%; border: 0; background: transparent; }
.stitch-member-note { background: var(--akademie-bg-warm); border: 1px solid var(--akademie-line); border-radius: 8px; padding: 28px; margin-top: 24px; }
.stitch-member-note p { max-width: 720px; margin-block: 12px; }
.stitch-member-note a { font-weight: 700; }
.stitch-workspace-status { font: 400 12px/1.5 "Source Sans 3", sans-serif; color: var(--akademie-ink-soft); }
.stitch-toc { margin-bottom: 40px; padding: 20px 24px; border-block: 1px solid var(--akademie-line); }
.stitch-toc summary { cursor: pointer; font: 700 12px/1.5 "Space Mono", monospace; }
.stitch-toc ol { margin: 16px 0 0; padding-left: 24px; }
.stitch-toc a { font: 400 17px/1.6 "Source Sans 3", sans-serif; }
.gh-footer { border-top: 1px solid var(--akademie-line); margin-top: 72px; background: var(--akademie-bg-warm); }
.stitch-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; }
.stitch-footer p, .stitch-footer nav { margin: 0; font: 400 12px/1.6 "Space Mono", monospace; }
.stitch-footer .nav { gap: 20px; flex-wrap: wrap; }
.stitch-footer a { color: var(--akademie-ink-soft); }
.stitch-catalogue { max-width: 1320px; margin: 48px auto; padding-inline: 32px; }
.stitch-catalogue-header { max-width: 800px; margin-bottom: 40px; }
.stitch-catalogue h1, .stitch-catalogue-header > h2 { font: 800 clamp(32px,4vw,56px)/1.12 Manrope,sans-serif; letter-spacing: -.03em; }
.stitch-catalogue label { display: block; margin-bottom: 20px; }
.stitch-catalogue input { width: 100%; max-width: 640px; padding: 14px 16px; border: 1px solid var(--akademie-line); background: white; border-radius: 4px; }
.stitch-catalogue-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.stitch-catalogue-item { background: white; border: 1px solid var(--akademie-line); border-radius: 8px; padding: 24px; }
.stitch-catalogue-item h2, .stitch-catalogue-item h3 { font: 800 22px/1.3 Manrope,sans-serif; margin-bottom: 12px; }
.stitch-catalogue-item p { font: 400 18px/1.6 "Source Sans 3",sans-serif; }
.stitch-catalogue-item a { text-decoration: none; }
@media (min-width: 768px) {
    .gh-navigation.is-middle-logo .gh-navigation-inner { display: flex; }
    .gh-navigation-menu { flex: 1; justify-content: center; }
}
@media (max-width: 767px) {
    .gh-navigation-inner { min-height: 64px; gap: 0; }
    .gh-navigation-logo { font-size: 20px; }
    .gh-article-header { margin-top: 28px; margin-bottom: 28px; }
    .gh-article-title { font-size: 34px; line-height: 1.15; }
    .gh-article-excerpt { font-size: 19px; line-height: 1.5; }
    .gh-content { font-size: 19px; line-height: 1.65; }
    .gh-content > h2 { font-size: 26px; }
    .gh-meta-share { flex-wrap: wrap; gap: 12px; }
    .gh-article-image { margin-top: 24px; }
    .stitch-tags { gap: 6px; margin-bottom: 18px; }
    .stitch-tags a { font-size: 9px; padding: 5px 7px; }
    .stitch-resource .gh-article-header.gh-canvas,
    .stitch-resource .gh-content.gh-canvas { --gap: 16px; }
    .stitch-workspace { grid-column: full-start / full-end; padding-inline: 16px; }
    .stitch-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding-block: 20px; gap: 6px; }
    .stitch-tabs button { font-size: 12px; padding: 10px 8px; }
    .stitch-actions { width: 100%; }
    .stitch-actions button { flex: 1; padding-inline: 8px; font-size: 12px; }
    .stitch-member-note { padding: 20px; }
    .stitch-footer { align-items: start; flex-direction: column; }
    .stitch-catalogue { padding-inline: 16px; margin-top: 28px; }
    .stitch-catalogue-list { grid-template-columns: 1fr; }
    .gh-content .da-flip-model .da-flip-faces { min-height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}
@media print {
    .gh-navigation, .gh-footer, .stitch-workspace-head, .stitch-tabs, .stitch-member-note { display: none; }
    .gh-content { font-size: 12pt; }
    .gh-content .da-flip-model .da-flip-faces { transform: none !important; display: block; }
    .gh-content .da-flip-model .da-flip-face { position: static; transform: none; visibility: visible !important; margin-bottom: 12px; }
    .gh-content .da-flip-model .da-flip-hit, .gh-content .da-flip-global { display: none; }
}

.stitch-workspace > :is(.stitch-workspace-head,.stitch-tabs,.stitch-member-note,.stitch-workspace-status) {grid-column:wide-start / wide-end;}
.stitch-catalogue-item[hidden] {display:none;}

.gh-article .gh-article-title, .gh-navigation .gh-navigation-logo {font-family:Manrope,sans-serif;}
.gh-navigation .gh-button {background:#0040ce;color:#fff;}
body { --gh-font-heading: "Manrope", sans-serif; --gh-font-body: "Source Sans 3", sans-serif; }
@media (max-width:767px) {
    .stitch-workspace > :is(.stitch-workspace-head,.stitch-tabs,.stitch-member-note,.stitch-workspace-status) {grid-column:full-start / full-end;}
}

#vorlagen { scroll-margin-top: 100px; }
.gh-hero-ctas .gh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 4px; font: 700 16px/1.3 Manrope, sans-serif; }

/* Mobile Burger-Menue: klare Vollbild-Struktur statt schwebenden Elementen (04.12.) */
@media (max-width: 767px) {
    #gh-navigation.is-open { min-height: 100dvh; }
    #gh-navigation.is-open .gh-navigation-inner { position: relative; display: flex; flex-direction: column; align-items: stretch; min-height: 100dvh; gap: 0; }
    #gh-navigation.is-open .gh-navigation-brand { flex: 0 0 auto; width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: flex-start; }
    #gh-navigation.is-open .gh-search { position: absolute; top: 10px; right: 65px; }
    #gh-navigation.is-open .gh-burger { position: absolute; top: 10px; right: 20px; }
    #gh-navigation.is-open .gh-navigation-menu {
        position: static !important; visibility: visible !important; opacity: 1 !important;
        margin: 40px 0 0; width: 100%; justify-content: flex-start;
    }
    #gh-navigation.is-open .gh-navigation-menu .nav { justify-content: flex-start; gap: 0; }
    #gh-navigation.is-open .gh-navigation-menu a { font: 700 20px/1.3 Manrope, sans-serif; color: var(--akademie-ink); }
    #gh-navigation.is-open .gh-navigation-actions {
        position: static !important; visibility: visible !important; opacity: 1 !important;
        margin-top: auto; width: 100%; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--akademie-line);
        display: block; background: transparent;
    }
    #gh-navigation.is-open .gh-navigation-members { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
    #gh-navigation.is-open .gh-navigation-members .gh-button { width: 100%; }
    #gh-navigation.is-open .gh-navigation-members .gh-portal-close:not(.gh-button) {
        display: flex; justify-content: center; min-height: 44px; align-items: center;
    }
}
