/* ============================================================================
   info.html – Styles (INFO-Seite, vormals info.html)
   Basis: Layout/Theme für html.info2-scroll + body.info2-body + .info2-* (vormals ki-kunterbunt_Info2.css)
   Artikel: Prefix promo-
   ============================================================================ */
/* --- Basis: .info2-* (Scroll, Theme, Toolbar, Skip-Link) --- */

/*
 * Dokument-Scroll: css/base/reset.css setzt html/body auf overflow-y:hidden (!important),
 * weil index.html in #pageContainer scrollt. Diese Seite scrollt wie eine normale Webseite.
 */
html.info2-scroll {
    height: auto !important;
    min-height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    touch-action: pan-y !important;
    overscroll-behavior-y: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

html.info2-scroll::-webkit-scrollbar {
    display: block !important;
    width: 10px;
    height: 0;
}

html.info2-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.22);
    border-radius: 5px;
}

html.info2-scroll.dark-mode::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
}

html.info2-scroll body.info2-body {
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    -webkit-user-select: text !important;
    user-select: text !important;
}

@supports (-webkit-touch-callout: none) {
    html.info2-scroll {
        height: auto !important;
        min-height: -webkit-fill-available !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

html {
    scroll-behavior: smooth;
}

/* Rendering: .promo-section außerhalb des Viewports weniger layouten/painten (CPU, weniger Speicherdruck) */
body.info2-body .promo-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 480px;
}

/* Medien nicht „wegoptimieren“: Lazy-Video (IntersectionObserver) braucht echte Box; sonst fehlende/falsche Ladevorgänge */
body.info2-body .promo-section .promo-media-grid,
body.info2-body .promo-section .promo-media,
body.info2-body .promo-section figure.promo-media {
    content-visibility: visible;
}

body.info2-body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-family, 'JetBrains Mono', ui-monospace, monospace);
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Hell */
body.info2-body:not(.dark-mode) {
    --info2-bg: #fafafa;
    --info2-surface: #ffffff;
    --info2-text: #0a0a0a;
    --info2-muted: #525252;
    --info2-border: rgba(0, 0, 0, 0.08);
    --info2-link: #1d4ed8;
    --info2-link-hover: #1e40af;
    --info2-code-bg: rgba(0, 0, 0, 0.05);
    --info2-focus: rgba(37, 99, 235, 0.45);
    background: var(--info2-bg) !important;
    color: var(--info2-text);
}

/* Dunkel */
body.info2-body.dark-mode {
    --info2-bg: #0a0a0a;
    --info2-surface: #141414;
    --info2-text: #f5f5f5;
    --info2-muted: #a3a3a3;
    --info2-border: rgba(255, 255, 255, 0.09);
    --info2-link: #93c5fd;
    --info2-link-hover: #bfdbfe;
    --info2-code-bg: rgba(255, 255, 255, 0.07);
    --info2-focus: rgba(147, 197, 253, 0.5);
    background: var(--info2-bg) !important;
    color: var(--info2-text);
}

body.info2-body.dark-mode {
    --color-text: var(--info2-text);
    --color-text-muted: var(--info2-muted);
}

/* Skip-Link (Screenreader / Tastatur) */
.info2-skip {
    position: absolute;
    left: -9999px;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--info2-text);
    color: var(--info2-bg);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    border-radius: 0 0 6px 0;
}

.info2-skip:focus {
    left: 0;
    top: 0;
    outline: 2px solid var(--info2-link);
    outline-offset: 2px;
}

/* Layout */
.info2-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 88px clamp(20px, 4vw, 40px) 120px;
    box-sizing: border-box;
}

@media (min-width: 900px) {
    .info2-layout {
        display: grid;
        grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
        gap: clamp(32px, 5vw, 64px);
        align-items: start;
    }
}

/* Toolbar */
.info2-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-bottom: clamp(32px, 5vw, 48px);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--info2-border);
}

/* info.html: nur Tutorial-Video oben – horizontal zentriert */
body.info2-body .info2-toolbar--video-only {
    justify-content: center;
}

.info2-toolbar-link {
    color: var(--info2-muted);
    text-decoration: none;
    font-size: clamp(15px, 1.15vw, 18px);
    font-weight: 600;
}

.info2-toolbar-link:hover {
    color: var(--info2-text);
}

.info2-toolbar-link:focus-visible {
    outline: 2px solid var(--info2-focus);
    outline-offset: 3px;
    border-radius: 4px;
}

.info2-theme-btn {
    margin-left: auto;
    padding: 9px 16px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1px solid var(--info2-border);
    border-radius: 8px;
    cursor: pointer;
    background: var(--info2-surface);
    color: var(--info2-text);
    transition: background 0.15s ease, border-color 0.15s ease;
}

body.info2-body:not(.dark-mode) .info2-theme-btn {
    background: #f0f0f0;
    border-color: transparent;
}

body.info2-body.dark-mode .info2-theme-btn {
    background: #1a1a1a;
    border-color: var(--info2-border);
}

.info2-theme-btn:hover {
    opacity: 0.92;
}

.info2-theme-btn:focus-visible {
    outline: 2px solid var(--info2-focus);
    outline-offset: 2px;
}

/* Textartiger Button (z. B. Navigation neben Links) */
button.info2-btn-inline {
    margin-left: 0;
    padding: 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--info2-link);
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: inherit;
}

button.info2-btn-inline:hover {
    color: var(--info2-link-hover);
    text-decoration: underline;
}

button.info2-btn-inline:focus-visible {
    outline: 2px solid var(--info2-focus);
    outline-offset: 3px;
}

/* Navigation-Abschnitt + Menü.png */
.info2-nav-block {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px 20px;
}

.info2-nav-menu-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--info2-code-bg);
    flex-shrink: 0;
}

.info2-nav-block-text {
    min-width: 0;
    flex: 1;
}

.info2-nav-block-text h2 {
    margin-top: 0;
}

.info2-footer-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.info2-footer-nav-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Hero */
.info2-hero-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--info2-muted);
    margin: 0 0 14px;
}

.info2-hero-title {
    margin: 0 0 18px;
    font-size: clamp(26px, 4.2vw, 42px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: var(--info2-text);
    max-width: min(100%, 16em);
}

.info2-hero-lead {
    margin: 0 0 32px;
    max-width: min(62ch, 100%);
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.62;
    color: var(--info2-muted);
    font-weight: 400;
}

.info2-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;
    margin-bottom: clamp(40px, 6vw, 56px);
}

.info2-link {
    color: var(--info2-link);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.info2-link:hover {
    color: var(--info2-link-hover);
    text-decoration: underline;
}

.info2-link:focus-visible {
    outline: 2px solid var(--info2-focus);
    outline-offset: 3px;
    border-radius: 4px;
}

.info2-link-muted {
    color: var(--info2-muted);
    font-weight: 500;
}

.info2-link-muted:hover {
    color: var(--info2-text);
}

/* Sidebar */
.info2-nav {
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--info2-border) transparent;
}

.info2-nav-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--info2-muted);
    margin: 0 0 14px;
}

.info2-nav a {
    display: block;
    padding: 5px 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--info2-muted);
    text-decoration: none;
    border: none;
    border-radius: 4px;
    margin-left: -4px;
    padding-left: 4px;
}

.info2-nav a:hover {
    color: var(--info2-text);
}

.info2-nav a:focus-visible {
    outline: 2px solid var(--info2-focus);
    outline-offset: 1px;
}

@media (max-width: 899px) {
    .info2-nav {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 28px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--info2-border);
    }

    .info2-nav-scroll {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .info2-nav a {
        display: inline;
        padding: 4px 0;
        margin-left: 0;
        padding-left: 0;
    }
}

/* Hauptspalte: Lesbarkeit */
.info2-main {
    min-width: 0;
}

.info2-section p,
.info2-section li {
    max-width: 65ch;
}

.info2-section {
    margin-bottom: clamp(40px, 6vw, 56px);
    padding-bottom: clamp(40px, 6vw, 56px);
    border-bottom: 1px solid var(--info2-border);
}

.info2-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info2-section h2 {
    margin: 0 0 14px;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.25;
    color: var(--info2-text);
}

.info2-section h3 {
    margin: 24px 0 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--info2-text);
}

.info2-section p,
.info2-section li {
    color: var(--info2-muted);
}

.info2-section p {
    margin: 0 0 14px;
}

.info2-section strong {
    color: var(--info2-text);
    font-weight: 600;
}

.info2-section ul {
    margin: 0 0 16px;
    padding-left: 1.15em;
}

.info2-section li {
    margin: 8px 0;
}

.info2-section code {
    font-family: ui-monospace, 'JetBrains Mono', monospace;
    font-size: 0.86em;
    padding: 3px 7px;
    border-radius: 5px;
    background: var(--info2-code-bg);
    color: inherit;
}

/* Feature grid */
.info2-features {
    display: grid;
    gap: 28px 24px;
    margin-top: 8px;
}

@media (min-width: 640px) {
    .info2-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .info2-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.info2-feature h3 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--info2-text);
}

.info2-feature p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    max-width: none;
}

/* Medien */
.info2-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.info2-media-grid figure {
    margin: 0;
}

.info2-media-grid img,
.info2-media-grid video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    background: transparent;
}

.info2-caption {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--info2-muted);
}

/* FAQ */
.info2-details {
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--info2-border);
}

.info2-details:last-of-type {
    border-bottom: none;
}

.info2-details summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--info2-text);
    list-style: none;
    padding: 4px 0;
    border-radius: 4px;
}

.info2-details summary::-webkit-details-marker {
    display: none;
}

.info2-details summary::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 10px;
    border-radius: 1px;
    background: var(--info2-muted);
    vertical-align: middle;
    opacity: 0.45;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.info2-details[open] summary::before {
    opacity: 0.85;
    background: var(--info2-text);
}

.info2-details summary:focus-visible {
    outline: 2px solid var(--info2-focus);
    outline-offset: 3px;
}

.info2-details p {
    margin: 12px 0 0;
    padding-left: 15px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 60ch;
}

/* Aktionen */
.info2-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-top: 18px;
}

.info2-footer-meta {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--info2-border);
    font-size: 13px;
    color: var(--info2-muted);
}

.info2-footer-meta .info2-link {
    font-weight: 500;
    font-size: 13px;
}

/* Anker: fester Header */
.info2-section[id] {
    scroll-margin-top: 100px;
}

/* Alter Hash #kiki-komplex bleibt gültig (kein sichtbarer Sprung) */
.fragment-alias {
    display: block;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.promo-section[id] {
    scroll-margin-top: 100px;
}

/* ========== ki-kunterbunt INFO: promo-* ========== */

.promo-container {
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 20px;
}

.promo-article {
    padding-top: 100px;
}

.promo-doc-meta {
    margin-top: 12px;
    color: var(--info-text-muted, #64748b);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

body.dark-mode .promo-doc-meta {
    color: rgba(255,255,255,0.62);
}

/* ========== HIGHLIGHT STRIP ========== */
.promo-highlights {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
}

.promo-highlight-card {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #ffffff;
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    transition: all .16s ease;
}

.promo-highlight-card:hover {
    border-color: rgba(102,126,234,.35);
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    transform: translateY(-1px);
}

body.dark-mode .promo-highlight-card {
    background: #1e293b;
    border-color: rgba(255,255,255,.1);
}

body.dark-mode .promo-highlight-card:hover {
    border-color: rgba(129,140,248,.45);
}

.promo-highlight-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--info-text, #1e293b);
}

body.dark-mode .promo-highlight-title {
    color: #f8fafc;
}

.promo-highlight-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--info-text-muted, #64748b);
}

body.dark-mode .promo-highlight-text {
    color: rgba(255,255,255,.72);
}

/* ========== HERO ========== */
.promo-hero {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 12px 28px rgba(0,0,0,0.05);
    padding: 40px 44px;
}

body.dark-mode .promo-hero {
    background: #1e293b;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 4px 24px rgba(0,0,0,0.15);
}

.promo-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.promo-kicker {
    display: inline-block;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

body.dark-mode .promo-kicker {
    color: #a5b4fc;
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.25);
}

.promo-title {
    margin-top: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-size: clamp(26px, 3.2vw, 38px);
    color: inherit;
}

.promo-subtitle {
    margin-top: 16px;
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 1.65;
    color: var(--info-text-muted, #64748b);
    max-width: 58ch;
}

body.dark-mode .promo-subtitle {
    color: rgba(255,255,255,0.75);
}

/* ========== CTAs ========== */
.promo-nav-menu-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 5px;
    flex-shrink: 0;
}

/* Ersatz für Menü-Grafik (kein Vorlagen/webpagebilder auf INFO) */
.promo-nav-menu-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 6px;
    flex-shrink: 0;
    font-size: 15px;
    line-height: 1;
}

.promo-cta-row {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.promo-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    background: #f8fafc;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.promo-cta:hover {
    background: #f1f5f9;
    border-color: rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

body.dark-mode .promo-cta {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
}

body.dark-mode .promo-cta:hover {
    background: rgba(255,255,255,0.1);
}

.promo-cta-primary {
    background: var(--color-primary);
    color: #ffffff;
    border-color: transparent;
}

.promo-cta-primary:hover {
    background: #5a67d8;
    color: #ffffff;
}

body.dark-mode .promo-cta-primary {
    background: var(--color-primary);
}

body.dark-mode .promo-cta-primary:hover {
    background: #7c3aed;
}

/* Hinweis unter Anmelden/Neu anmelden: Profil Alter & Region */
.promo-profile-hint {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.dark-mode .promo-profile-hint {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.promo-profile-hint-figure {
    margin: 0;
    max-width: min(520px, 100%);
}

.promo-profile-hint-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.dark-mode .promo-profile-hint-img {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.promo-profile-hint-caption {
    margin-top: 12px;
    font-size: clamp(13px, 1.5vw, 15px);
    line-height: 1.6;
    color: var(--info-text-muted, #64748b);
    font-weight: 500;
}

body.dark-mode .promo-profile-hint-caption {
    color: rgba(255, 255, 255, 0.78);
}

/* ========== HERO MEDIA ========== */
.promo-hero-media figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    background: transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

body.dark-mode .promo-hero-media figure {
    border-color: rgba(255,255,255,0.08);
    background: transparent;
}

.promo-hero-media img {
    display: block;
    width: 100%;
    height: auto;
    background: transparent;
}

.promo-hero-media figcaption {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--info-text-muted, #64748b);
    line-height: 1.5;
}

body.dark-mode .promo-hero-media figcaption {
    color: rgba(255,255,255,0.6);
}

/* ========== LAYOUT ========== */
.promo-layout {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.promo-content {
    min-width: 0;
}

/* ========== DOCS QUICK NAV ========== */
.promo-docs-nav {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.07);
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

body.dark-mode .promo-docs-nav {
    background: #1e293b;
    border-color: rgba(255,255,255,0.1);
}

.promo-docs-nav a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--info-text-muted, #475569);
    border: 1px solid rgba(0,0,0,0.08);
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 999px;
    transition: all .18s ease;
}

.promo-docs-nav a:hover {
    color: var(--color-primary);
    border-color: rgba(102,126,234,.35);
    background: rgba(102,126,234,.08);
}

body.dark-mode .promo-docs-nav a {
    color: rgba(255,255,255,0.8);
    background: #0f172a;
    border-color: rgba(255,255,255,0.12);
}

body.dark-mode .promo-docs-nav a:hover {
    color: #c7d2fe;
    border-color: rgba(129,140,248,.45);
    background: rgba(79,70,229,.2);
}

/* ========== TOC ========== */
.promo-toc {
    position: sticky;
    top: 96px;
    border-radius: 14px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.04);
}

body.dark-mode .promo-toc {
    background: #1e293b;
    border-color: rgba(255,255,255,0.08);
}

.promo-toc-title {
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--info-text-muted, #64748b);
    margin-bottom: 12px;
}

body.dark-mode .promo-toc-title {
    color: rgba(255,255,255,0.5);
}

.promo-toc a {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--info-text-muted, #64748b);
    font-weight: 520;
    font-size: 13px;
    border-left: 2px solid transparent;
    transition: all 0.18s ease;
}

.promo-toc a:hover {
    background: rgba(102, 126, 234, 0.09);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

body.dark-mode .promo-toc a {
    color: rgba(255,255,255,0.7);
}

body.dark-mode .promo-toc a:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #a5b4fc;
}

/* ========== SECTIONS ========== */
.promo-section {
    margin-top: 24px;
    padding: 30px 34px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 10px 24px rgba(0,0,0,0.035);
}

body.dark-mode .promo-section {
    background: #1e293b;
    border-color: rgba(255,255,255,0.08);
}

.promo-section h2 {
    margin: 0 0 12px 0;
    font-size: clamp(22px, 2.35vw, 28px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.promo-section p {
    margin: 0 0 14px 0;
    line-height: 1.75;
    font-size: 16px;
    color: var(--info-text-muted, #475569);
}

body.dark-mode .promo-section p {
    color: rgba(255,255,255,0.8);
}

.promo-section ul {
    margin: 12px 0 0 20px;
    padding: 0;
}

.promo-section li {
    margin: 6px 0;
    line-height: 1.6;
}

.promo-section a {
    color: var(--color-primary);
    text-decoration: none;
}

.promo-section a:hover {
    text-decoration: underline;
}

body.dark-mode .promo-section a {
    color: #a5b4fc;
}

/*
 * CTAs in .promo-section: .promo-section a kommt später und würde sonst Primary-Farbe auf
 * Primary-Hintergrund erzwingen (Hell + Dunkel). Höhere Spezifität + Dunkelmodus explizit.
 */
.promo-section a.promo-cta {
    color: var(--info-text, #1e293b);
    text-decoration: none;
}

.promo-section a.promo-cta:hover {
    color: var(--info-text, #1e293b);
    text-decoration: none;
}

.promo-section a.promo-cta-primary,
.promo-section a.promo-cta-primary:hover {
    color: #ffffff;
    text-decoration: none;
}

body.dark-mode .promo-section a.promo-cta {
    color: rgba(255, 255, 255, 0.92);
}

body.dark-mode .promo-section a.promo-cta:hover {
    color: #ffffff;
}

body.dark-mode .promo-section a.promo-cta-primary,
body.dark-mode .promo-section a.promo-cta-primary:hover {
    color: #ffffff;
}

/* ========== GRID & CARDS ========== */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.promo-card {
    grid-column: span 6;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    background: #ffffff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.promo-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.08);
}

.promo-card.promo-card-third {
    grid-column: span 4;
}

body.dark-mode .promo-card {
    background: #0f172a;
    border-color: rgba(255,255,255,0.08);
}

body.dark-mode .promo-card:hover {
    border-color: rgba(255,255,255,0.12);
}

.promo-card.promo-card-featured {
    grid-column: span 12;
    background: rgba(102, 126, 234, 0.06);
    border-color: rgba(102, 126, 234, 0.2);
}

body.dark-mode .promo-card.promo-card-featured {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.25);
}

.promo-card-inner {
    padding: 24px;
}

.promo-card h3 {
    margin: 0 0 10px 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.promo-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
}

.promo-featured-title { display: flex; align-items: center; gap: 10px; }
.promo-featured-bullets { margin: 8px 0 0 18px; padding: 0; }
.promo-featured-bullets li { margin: 6px 0; }
.promo-featured-media {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    background: transparent;
}

body.dark-mode .promo-featured-media {
    border-color: rgba(255,255,255,0.08);
    background: transparent;
}

.promo-featured-media img {
    display: block;
    width: 100%;
    height: auto;
    background: transparent;
}
.promo-featured-media .promo-caption {
    padding: 10px 12px;
    font-size: 13px;
    color: var(--info-text-muted, #64748b);
}

body.dark-mode .promo-featured-media .promo-caption {
    color: rgba(255,255,255,0.6);
}

/* ========== MEDIA GRID ========== */
.promo-media-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.promo-media {
    grid-column: span 6;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    background: #ffffff;
}

body.dark-mode .promo-media {
    border-color: rgba(255,255,255,0.08);
    background: #0f172a;
}

/* Medien: kein Karten-/Flächen-Hintergrund (Figur mit Bild oder Video) */
.promo-media:has(> video),
.promo-media:has(> img) {
    background: transparent;
}

body.dark-mode .promo-media:has(> video),
body.dark-mode .promo-media:has(> img) {
    background: transparent;
}

.promo-media img {
    display: block;
    width: 100%;
    height: auto;
    background: transparent;
}

.promo-media video {
    display: block;
    width: 100%;
    height: auto;
    background: transparent;
}

/* Tutorial-/Tortual-Medien: 3 Spalten auf Desktop (mehr Inhalt pro Zeile) */
.promo-tutorial-medien .promo-media-grid {
    gap: 16px;
}

.promo-tutorial-medien .promo-media {
    grid-column: span 4;
}

.promo-tutorial-medien .promo-section-lead {
    font-size: 15px;
    line-height: 1.65;
    color: var(--info-text-muted, #475569);
    margin: 0 0 8px 0;
}

body.dark-mode .promo-tutorial-medien .promo-section-lead {
    color: rgba(255, 255, 255, 0.78);
}

.promo-tutorial-medien code {
    font-size: 0.88em;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.06);
}

.promo-subsection-title {
    margin: 28px 0 12px 0;
    font-size: clamp(17px, 1.6vw, 20px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--info-text, #1e293b);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 8px;
}

body.dark-mode .promo-subsection-title {
    color: #f1f5f9;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.promo-tutorial-medien .promo-subsection-title:first-of-type {
    margin-top: 8px;
}

body.dark-mode .promo-tutorial-medien code {
    background: rgba(255, 255, 255, 0.08);
}

.promo-media .promo-caption {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--info-text-muted, #64748b);
}

body.dark-mode .promo-media .promo-caption {
    color: rgba(255,255,255,0.6);
}

/* ========== CALLOUT ========== */
.promo-callout {
    border-radius: 10px;
    padding: 18px 20px;
    background: rgba(102, 126, 234, 0.06);
    border: 1px solid rgba(102, 126, 234, 0.12);
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
}

body.dark-mode .promo-callout {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.promo-callout strong {
    font-weight: 600;
}

.promo-callout a {
    color: var(--color-primary);
    text-decoration: none;
}

.promo-callout a:hover {
    text-decoration: underline;
}

body.dark-mode .promo-callout a {
    color: #a5b4fc;
}

.promo-callout a.promo-cta {
    color: var(--info-text, #1e293b);
    text-decoration: none;
}

.promo-callout a.promo-cta:hover {
    color: var(--info-text, #1e293b);
    text-decoration: none;
}

.promo-callout a.promo-cta-primary,
.promo-callout a.promo-cta-primary:hover {
    color: #ffffff;
    text-decoration: none;
}

body.dark-mode .promo-callout a.promo-cta {
    color: rgba(255, 255, 255, 0.92);
}

body.dark-mode .promo-callout a.promo-cta:hover {
    color: #ffffff;
}

body.dark-mode .promo-callout a.promo-cta-primary,
body.dark-mode .promo-callout a.promo-cta-primary:hover {
    color: #ffffff;
}

/* ========== FOOTER CTA ========== */
.promo-footer-cta {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ========== FAQ ========== */
.promo-faq details {
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.06);
    background: #f8fafc;
    padding: 16px 20px;
    margin-top: 12px;
}

body.dark-mode .promo-faq details {
    border-color: rgba(255,255,255,0.08);
    background: #0f172a;
}

.promo-faq summary {
    cursor: pointer;
    font-weight: 600;
    outline: none;
}

.promo-faq p {
    margin: 12px 0 0 0;
}

/* ========== TESTIMONIALS ========== */
.promo-testimonials .promo-card h3 {
    font-size: 15px;
}

.promo-quote {
    margin: 16px 0 0 0;
    padding: 20px 24px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.06);
    background: #ffffff;
}

body.dark-mode .promo-quote {
    border-color: rgba(255,255,255,0.08);
    background: #1e293b;
}

.promo-quote p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
}

.promo-quote-meta {
    margin-top: 12px;
    font-weight: 600;
    font-size: 13px;
    color: var(--info-text-muted, #64748b);
}

body.dark-mode .promo-quote-meta {
    color: rgba(255,255,255,0.6);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
    .promo-highlight-card {
        grid-column: span 6;
    }
    .promo-layout {
        grid-template-columns: 1fr;
    }
    .promo-docs-nav {
        margin-top: 14px;
    }
    .promo-toc {
        position: relative;
        top: 0;
    }
}

@media (max-width: 820px) {
    .promo-hero {
        padding: 28px 24px;
    }
    .promo-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .promo-card { grid-column: span 12; }
    .promo-card.promo-card-third { grid-column: span 12; }
    .promo-media { grid-column: span 12; }
    .promo-tutorial-medien .promo-media {
        grid-column: span 12;
    }
    .promo-highlight-card { grid-column: span 12; }
    .promo-article { padding-top: 90px; }
    .promo-section {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .promo-container {
        width: calc(100% - 24px);
        padding: 0 12px;
    }
    .promo-cta-row {
        flex-direction: column;
    }
    .promo-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================================
   Optik: nutzt --info2-* (siehe Basis oben) + body.info2-body
   ============================================================================ */

body.info2-body .promo-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.info2-body .promo-article {
    padding-top: 0;
}

/* Hero: flach wie info2-hero, keine „Karten“-Optik */
body.info2-body .promo-hero {
    position: relative;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 clamp(28px, 5vw, 40px);
    margin-bottom: clamp(8px, 2vw, 16px);
    border-bottom: 1px solid var(--info2-border);
}

body.info2-body .promo-kicker {
    display: inline-block;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--info2-muted);
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

body.info2-body .promo-doc-meta {
    margin-top: 8px;
    color: var(--info2-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

body.info2-body .promo-title {
    margin-top: 14px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.035em;
    font-size: clamp(26px, 4.2vw, 42px);
    color: var(--info2-text);
    max-width: min(100%, 22em);
}

body.info2-body .promo-subtitle {
    margin-top: 16px;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.62;
    color: var(--info2-muted);
    max-width: min(62ch, 100%);
    font-weight: 400;
}

body.info2-body .promo-hero-grid {
    gap: clamp(28px, 5vw, 48px);
}

body.info2-body .promo-hero-media figure {
    border-radius: 10px;
    border: 1px solid var(--info2-border);
    background: transparent;
    box-shadow: none;
}

body.info2-body .promo-hero-media figcaption {
    color: var(--info2-muted);
}

/* Highlight-Zeile unter dem Hero */
body.info2-body .promo-highlights {
    margin-top: clamp(20px, 4vw, 36px);
    margin-bottom: clamp(20px, 4vw, 36px);
    gap: 16px;
}

/*
 * Hauptspalte = volle Breite wie Hero/Toolbar (keine schmale Spalte neben TOC).
 * TOC oben als horizontale, umbrechende Leiste (sticky).
 */
body.info2-body .promo-layout {
    margin-top: clamp(24px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(28px, 4vw, 40px);
}

body.info2-body .promo-content {
    width: 100%;
    max-width: none;
    min-width: 0;
}

body.info2-body .promo-toc {
    position: sticky;
    top: clamp(76px, 10vw, 100px);
    z-index: 8;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 0 16px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--info2-border);
    background: var(--info2-bg);
}

body.info2-body .promo-toc-title {
    flex: 1 0 100%;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--info2-muted);
    margin: 0 0 4px;
}

body.info2-body .promo-toc a {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid var(--info2-border);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--info2-muted);
    background: var(--info2-surface);
    text-decoration: none;
}

body.info2-body .promo-toc a:hover {
    color: var(--info2-text);
    border-color: var(--info2-muted);
    background: var(--info2-code-bg);
}

/* Dokument-Schnelllinks */
body.info2-body .promo-docs-nav {
    margin-top: 18px;
    padding: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--info2-border);
    padding-bottom: 20px;
    margin-bottom: 8px;
    background: transparent;
    box-shadow: none;
    gap: 8px 14px;
}

body.info2-body .promo-docs-nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--info2-muted);
    border: none;
    background: transparent;
    padding: 4px 0;
    border-radius: 4px;
    text-decoration: none;
}

body.info2-body .promo-docs-nav a:hover {
    color: var(--info2-text);
    text-decoration: underline;
    border-color: transparent;
    background: transparent;
}

/* Sektionen: Trennlinien statt Karten (wie .info2-section) */
body.info2-body .promo-section {
    margin-top: 0;
    margin-bottom: clamp(40px, 6vw, 56px);
    padding: 0 0 clamp(40px, 6vw, 56px);
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--info2-border);
    box-shadow: none;
}

body.info2-body .promo-content > .promo-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

body.info2-body .promo-section h2 {
    margin: 0 0 14px;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.25;
    color: var(--info2-text);
}

body.info2-body .promo-section p,
body.info2-body .promo-section li {
    color: var(--info2-muted);
    font-size: 15px;
    line-height: 1.65;
    max-width: 65ch;
}

body.info2-body .promo-section strong {
    color: var(--info2-text);
    font-weight: 600;
}

body.info2-body .promo-section a:not(.promo-cta) {
    color: var(--info2-link);
    font-weight: 600;
}

body.info2-body .promo-section a:not(.promo-cta):hover {
    color: var(--info2-link-hover);
}

/* CTAs: Primärfarbe (--info2-Link-Ton) */
body.info2-body .promo-cta {
    background: var(--info2-surface);
    border: 1px solid var(--info2-border);
    color: var(--info2-text);
}

body.info2-body .promo-cta:hover {
    background: var(--info2-code-bg);
    border-color: var(--info2-border);
    transform: none;
    opacity: 0.95;
}

body.info2-body .promo-cta-primary {
    background: #1d4ed8;
    color: #ffffff;
    border-color: transparent;
}

body.info2-body .promo-cta-primary:hover {
    background: #1e40af;
    color: #ffffff;
}

body.info2-body.dark-mode .promo-cta-primary {
    background: #2563eb;
}

body.info2-body.dark-mode .promo-cta-primary:hover {
    background: #1d4ed8;
}

body.info2-body .promo-section a.promo-cta {
    color: var(--info2-text);
}

body.info2-body .promo-section a.promo-cta-primary,
body.info2-body .promo-section a.promo-cta-primary:hover {
    color: #ffffff;
}

body.info2-body.dark-mode .promo-section a.promo-cta {
    color: var(--info2-text);
}

/* Highlight-Karten */
body.info2-body .promo-highlight-card {
    border-radius: 10px;
    border: 1px solid var(--info2-border);
    background: var(--info2-surface);
    box-shadow: none;
}

body.info2-body .promo-highlight-card:hover {
    border-color: var(--info2-border);
    box-shadow: none;
    transform: none;
    opacity: 0.97;
}

body.info2-body .promo-highlight-title {
    color: var(--info2-text);
    font-size: 13px;
    font-weight: 600;
}

body.info2-body .promo-highlight-text {
    color: var(--info2-muted);
    font-size: 14px;
}

/* Karten & Medien */
body.info2-body .promo-card {
    border-radius: 10px;
    border: 1px solid var(--info2-border);
    background: var(--info2-surface);
}

body.info2-body .promo-card:hover {
    box-shadow: none;
    border-color: var(--info2-border);
}

body.info2-body .promo-card.promo-card-featured {
    background: var(--info2-surface);
    border-color: var(--info2-border);
}

body.info2-body .promo-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--info2-text);
}

body.info2-body .promo-card p {
    color: var(--info2-muted);
    font-size: 14px;
}

body.info2-body .promo-media {
    border-radius: 10px;
    border: 1px solid var(--info2-border);
    background: var(--info2-surface);
}

body.info2-body .promo-media:has(> video),
body.info2-body .promo-media:has(> img) {
    background: transparent;
}

body.info2-body .promo-media .promo-caption {
    color: var(--info2-muted);
    font-size: 12px;
}

/* Gleiche Seitenbreite wie Hero: Raster etwas luftiger; Medien auf sehr breiten Screens begrenzen */
body.info2-body .promo-media-grid {
    gap: clamp(18px, 2.2vw, 28px);
}

body.info2-body .promo-tutorial-medien .promo-media-grid {
    gap: clamp(16px, 2vw, 24px);
}

body.info2-body .promo-hero-media img {
    max-height: min(58vh, 620px);
    object-fit: contain;
    object-position: center;
}

body.info2-body .promo-media img,
body.info2-body .promo-media video {
    max-height: min(520px, 62vh);
    object-fit: contain;
    object-position: center top;
    border-radius: 10px;
}

body.info2-body .promo-subsection-title {
    color: var(--info2-text);
    border-bottom-color: var(--info2-border);
    font-size: 14px;
    font-weight: 600;
}

body.info2-body .promo-tutorial-medien .promo-section-lead {
    color: var(--info2-muted);
}

body.info2-body .promo-tutorial-medien code {
    background: var(--info2-code-bg);
}

/* Callout: dezenter Akzent */
body.info2-body .promo-callout {
    border-radius: 10px;
    background: var(--info2-code-bg);
    border: 1px solid var(--info2-border);
    color: var(--info2-muted);
}

body.info2-body .promo-callout a:not(.promo-cta) {
    color: var(--info2-link);
}

body.info2-body .promo-callout a:not(.promo-cta):hover {
    color: var(--info2-link-hover);
}

/* FAQ */
body.info2-body .promo-faq details {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--info2-border);
    background: transparent;
    padding: 14px 0;
    margin-top: 0;
}

body.info2-body .promo-faq summary {
    color: var(--info2-text);
    font-size: 15px;
}

body.info2-body .promo-faq p {
    color: var(--info2-muted);
    font-size: 14px;
    max-width: 60ch;
}

/* Testimonials */
body.info2-body .promo-quote {
    border-radius: 10px;
    border: 1px solid var(--info2-border);
    background: var(--info2-surface);
}

body.info2-body .promo-quote-meta {
    color: var(--info2-muted);
}

body.info2-body .promo-featured-media {
    border-color: var(--info2-border);
    background: transparent;
}

body.info2-body .promo-featured-media .promo-caption {
    color: var(--info2-muted);
}

/* Schmale Viewports: TOC nicht sticky (mehr Platz), etwas kompaktere Sprünge */
@media (max-width: 980px) {
    body.info2-body .promo-toc {
        position: relative;
        top: 0;
        z-index: auto;
        padding-bottom: 14px;
    }

    body.info2-body .promo-toc a {
        font-size: 11px;
        padding: 5px 9px;
    }
}

@media (max-width: 820px) {
    body.info2-body .promo-hero {
        padding-bottom: 28px;
    }

    body.info2-body .promo-article {
        padding-top: 0;
    }
}

/* Toolbar: Tortual-Tutorial als stumme Dauerschleife ohne Steuerleiste (nur info.html) */
/* Desktop/Tablet breit: Platz für Cinema-/Banner-Format; Mobil bleibt schmal (siehe Media Query unten) */
body.info2-body .info2-toolbar .promo-toolbar-tutorial:only-child {
    margin-left: 0;
    margin-right: 0;
    align-items: center;
}

body.info2-body .info2-toolbar .promo-toolbar-tutorial {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    max-width: min(960px, 82vw);
    min-width: 0;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
}

/* info.html: Toolbar nur Video – mittig (höhere Spezifität als Zeile oben) */
body.info2-body .info2-toolbar.info2-toolbar--video-only .promo-toolbar-tutorial {
    margin-left: 0;
    margin-right: 0;
    align-items: center;
}

body.info2-body .promo-toolbar-tutorial-video {
    width: 100%;
    max-height: 240px;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--info2-border);
    background: #000;
    vertical-align: bottom;
    object-fit: contain;
    object-position: center center;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

/* WebKit: keine Medien-Steuerung, falls der Browser dennoch UI einblendet */
body.info2-body .promo-toolbar-tutorial-video::-webkit-media-controls {
    display: none !important;
}

body.info2-body .promo-toolbar-tutorial-video::-webkit-media-controls-enclosure {
    display: none !important;
}

@media (max-width: 720px) {
    body.info2-body .info2-toolbar .promo-toolbar-tutorial {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        width: 100%;
        align-items: center;
        flex-shrink: 0;
    }

    body.info2-body .promo-toolbar-tutorial-video {
        max-height: 200px;
        object-fit: contain;
    }
}

/* Mittlere Viewports: etwas weniger Breite, damit Zeile mit Zurück-Link nicht überladen wirkt */
@media (min-width: 721px) and (max-width: 1024px) {
    body.info2-body .info2-toolbar .promo-toolbar-tutorial {
        max-width: min(640px, 88vw);
    }

    body.info2-body .promo-toolbar-tutorial-video {
        max-height: 200px;
    }
}

/* ========== ki-kunterbunt INFO: gesponserte Chat-Beispiele (API) ========== */
body.info2-body a.promo-media.info-sponsored-chat-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--info2-surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.info2-body a.promo-media.info-sponsored-chat-card:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

body.info2-body a.promo-media.info-sponsored-chat-card:focus-visible {
    outline: 2px solid var(--info2-accent, #667eea);
    outline-offset: 2px;
}

/* Wie andere .promo-media-Bilder: großzügige Höhe, volle Kartenbreite */
body.info2-body .info-sponsored-chat-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(260px, 36vh);
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.04);
}

html.dark-mode body.info2-body .info-sponsored-chat-logo-wrap,
body.info2-body.dark-mode .info-sponsored-chat-logo-wrap {
    background: rgba(255, 255, 255, 0.05);
}

body.info2-body .info-sponsored-chat-logo-wrap .info-sponsored-chat-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(520px, 62vh);
    object-fit: contain;
    object-position: center top;
    border-radius: 10px;
}

body.info2-body .info-sponsored-chat-logo-placeholder {
    font-size: clamp(3rem, 10vw, 4.5rem);
    line-height: 1;
    opacity: 0.55;
}

body.info2-body .info-sponsored-chat-logo-placeholder--visible {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(220px, 32vh);
}

body.info2-body .info-sponsored-chats-grid .info-sponsored-chats-status {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 14px;
    color: var(--info2-muted, #64748b);
}

body.info2-body .info-sponsored-chats-error {
    color: #b45309;
}

html.dark-mode body.info2-body .info-sponsored-chats-error,
body.info2-body.dark-mode .info-sponsored-chats-error {
    color: #fbbf24;
}

/* ========== ki-kunterbunt INFO: Schatzinsel-Beispiele (API, 3 Stück) ========== */
body.info2-body .schatzinsel-info-media .schatzinsel-info-demo-video {
    grid-column: 1 / -1;
}

body.info2-body .schatzinsel-info-examples-block {
    grid-column: 1 / -1;
}

body.info2-body .info-schatzinsel-examples-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(18px, 2.2vw, 28px);
    margin-top: 4px;
    width: 100%;
}

body.info2-body .info-schatzinsel-examples-grid .info-schatz-example-card {
    grid-column: span 4;
}

@media (max-width: 900px) {
    body.info2-body .info-schatzinsel-examples-grid .info-schatz-example-card {
        grid-column: span 6;
    }
}

@media (max-width: 560px) {
    body.info2-body .info-schatzinsel-examples-grid .info-schatz-example-card {
        grid-column: 1 / -1;
    }
}

body.info2-body .info-schatz-sponsored-badge {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--info2-muted, #64748b);
    opacity: 0.9;
}

/* ============================================================================
   info.html – kindgerecht, bunt, verspielt (body.info-kids)
   ============================================================================ */

body.info2-body.info-kids {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: -0.01em;
}

body.info2-body.info-kids:not(.dark-mode) {
    --kid-c1: #ff6b9d;
    --kid-c2: #ffc93c;
    --kid-c3: #6bcb77;
    --kid-c4: #4d96ff;
    --kid-c5: #c084fc;
    background:
        radial-gradient(ellipse 120% 80% at 10% 0%, rgba(255, 107, 157, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 100% 60% at 90% 20%, rgba(77, 150, 255, 0.16) 0%, transparent 45%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(108, 183, 119, 0.12) 0%, transparent 40%),
        var(--info2-bg) !important;
}

body.info2-body.info-kids.dark-mode {
    --kid-c1: #fb7185;
    --kid-c2: #fbbf24;
    --kid-c3: #4ade80;
    --kid-c4: #60a5fa;
    --kid-c5: #c4b5fd;
    background:
        radial-gradient(ellipse 100% 60% at 15% 10%, rgba(251, 113, 133, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 85% 30%, rgba(96, 165, 250, 0.1) 0%, transparent 45%),
        var(--info2-bg) !important;
}

body.info2-body.info-kids .promo-title,
body.info2-body.info-kids .promo-section h2,
body.info2-body.info-kids .promo-subsection-title,
body.info2-body.info-kids .promo-highlight-title {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 600;
    letter-spacing: -0.01em;
}

body.info2-body.info-kids .promo-title {
    font-size: clamp(1.1rem, 2.8vw, 1.65rem);
    line-height: 1.25;
    font-weight: 600;
    background: linear-gradient(110deg, var(--kid-c1), var(--kid-c4), var(--kid-c3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.info2-body.info-kids.dark-mode .promo-title {
    background: linear-gradient(110deg, var(--kid-c1), var(--kid-c4), var(--kid-c3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Begrüßungszeile: volle Breite, sehr groß, ohne Kasten/Hintergrund/Rahmen */
body.info2-body.info-kids main.info2-wrap {
    overflow-x: clip;
}

body.info2-body.info-kids .promo-kicker-fullbleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    padding: 0 clamp(16px, 4vw, 40px);
    margin-bottom: clamp(28px, 5vw, 48px);
}

body.info2-body.info-kids .promo-kicker-fullbleed .promo-kicker {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.2em 0.35em;
    row-gap: 0.15em;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(8px, 2vw, 16px) 0;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: clamp(1.75rem, 6.5vw, 3.35rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-transform: none;
    text-align: center;
    background: none !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
}

body.info2-body.info-kids .promo-kicker-fullbleed .promo-kicker-greet {
    color: var(--info2-text, #0a0a0a);
    font-weight: 800;
    -webkit-text-fill-color: var(--info2-text, #0a0a0a);
}

body.info2-body.info-kids.dark-mode .promo-kicker-fullbleed .promo-kicker-greet {
    color: #f1f5f9;
    -webkit-text-fill-color: #f1f5f9;
}

body.info2-body.info-kids .promo-kicker-fullbleed .promo-kicker .kikirika-header-title.info-page-brand {
    font-size: 1em;
    font-weight: 800;
    line-height: 1.1;
}

body.info2-body.info-kids .promo-kicker-fullbleed .promo-kicker .kikirika-header-title.info-page-brand > span[data-kiki-color] {
    font-weight: 800;
}

body.info2-body.info-kids .promo-highlights {
    gap: 14px;
}

body.info2-body.info-kids .promo-highlight-card {
    border-radius: 20px;
    border-width: 2px;
    transform: rotate(-0.3deg);
    box-shadow: 4px 6px 0 rgba(0, 0, 0, 0.06);
}

body.info2-body.info-kids .promo-highlight-card:nth-child(2) {
    transform: rotate(0.4deg);
}

body.info2-body.info-kids .promo-highlight-card:nth-child(3) {
    transform: rotate(-0.2deg);
}

body.info2-body.info-kids .promo-highlight-card:hover {
    transform: translateY(-3px) rotate(0deg);
    box-shadow: 6px 10px 0 rgba(77, 150, 255, 0.15);
}

body.info2-body.info-kids .promo-highlight-card:nth-child(1) {
    border-color: rgba(255, 107, 157, 0.45);
    background: linear-gradient(160deg, #fff 0%, rgba(255, 107, 157, 0.08) 100%);
}

body.info2-body.info-kids .promo-highlight-card:nth-child(2) {
    border-color: rgba(255, 201, 60, 0.5);
    background: linear-gradient(160deg, #fff 0%, rgba(255, 201, 60, 0.1) 100%);
}

body.info2-body.info-kids .promo-highlight-card:nth-child(3) {
    border-color: rgba(108, 183, 119, 0.45);
    background: linear-gradient(160deg, #fff 0%, rgba(108, 183, 119, 0.09) 100%);
}

body.info2-body.info-kids.dark-mode .promo-highlight-card:nth-child(1) {
    background: linear-gradient(160deg, #1e293b 0%, rgba(251, 113, 133, 0.12) 100%);
}

body.info2-body.info-kids.dark-mode .promo-highlight-card:nth-child(2) {
    background: linear-gradient(160deg, #1e293b 0%, rgba(251, 191, 36, 0.1) 100%);
}

body.info2-body.info-kids.dark-mode .promo-highlight-card:nth-child(3) {
    background: linear-gradient(160deg, #1e293b 0%, rgba(74, 222, 128, 0.1) 100%);
}

body.info2-body.info-kids .promo-callout {
    border-radius: 20px;
    border-width: 2px;
    border-style: solid;
    border-color: rgba(192, 132, 252, 0.35);
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.1), rgba(77, 150, 255, 0.08));
}

body.info2-body.info-kids .promo-cta-primary {
    border-radius: 999px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 600;
    box-shadow: 0 4px 0 rgba(29, 78, 216, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.info2-body.info-kids .promo-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(29, 78, 216, 0.4);
}

body.info2-body.info-kids .promo-cta:not(.promo-cta-primary) {
    border-radius: 999px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 600;
}

body.info2-body.info-kids .promo-toc a {
    border-radius: 999px;
    border-width: 2px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 700;
}

body.info2-body.info-kids .promo-toc a:nth-of-type(4n+1) {
    border-color: rgba(255, 107, 157, 0.35);
}

body.info2-body.info-kids .promo-toc a:nth-of-type(4n+2) {
    border-color: rgba(255, 201, 60, 0.4);
}

body.info2-body.info-kids .promo-toc a:nth-of-type(4n+3) {
    border-color: rgba(108, 183, 119, 0.4);
}

body.info2-body.info-kids .promo-toc a:nth-of-type(4n+4) {
    border-color: rgba(77, 150, 255, 0.4);
}

body.info2-body.info-kids .promo-section h2 {
    font-size: clamp(22px, 2.6vw, 28px);
    position: relative;
    padding-left: 14px;
}

body.info2-body.info-kids .promo-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 5px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--kid-c1), var(--kid-c2), var(--kid-c3));
}

body.info2-body.info-kids .promo-tutorial-medien {
    padding-bottom: 8px;
}

body.info2-body.info-kids .promo-faq details {
    border-radius: 16px;
    border: 2px solid var(--info2-border);
    margin-top: 14px;
    padding: 16px 18px;
}

body.info2-body.info-kids .promo-faq details[open] {
    border-color: rgba(77, 150, 255, 0.45);
    background: rgba(77, 150, 255, 0.06);
}

body.info2-body.info-kids.dark-mode .promo-faq details[open] {
    background: rgba(96, 165, 250, 0.08);
}

body.info2-body.info-kids .promo-hero-media figure {
    border-radius: 24px;
    border-width: 3px;
    border-style: solid;
    border-color: rgba(255, 201, 60, 0.45);
    box-shadow: 8px 8px 0 rgba(255, 107, 157, 0.2);
}

body.info2-body.info-kids .info2-toolbar {
    border-bottom: 1px solid var(--info2-border);
    padding-bottom: 20px;
}

@media (prefers-reduced-motion: reduce) {
    body.info2-body.info-kids .promo-highlight-card,
    body.info2-body.info-kids .promo-highlight-card:hover,
    body.info2-body.info-kids .promo-cta-primary:hover {
        transform: none;
    }
}

/* ============================================================================
   Markenwort „ki-kunterbunt“ wie im Header (bunte Buchstaben, etwas größer, fett)
   ============================================================================ */

body.info2-body .kikirika-header-title.info-page-brand {
    display: inline;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 700;
    font-size: 1.18em;
    line-height: 1.15;
    vertical-align: baseline;
    white-space: nowrap;
}

body.info2-body .promo-section-lead .kikirika-header-title.info-page-brand {
    font-size: 1.2em;
}

body.info2-body .kikirika-header-title.info-page-brand > span[data-kiki-color] {
    font-weight: 700;
}

/* Gleiche Farben wie .top-header .kikirika-header-title (menueband.js) */
body.info2-body .kikirika-header-title.info-page-brand > span[data-kiki-color="#e91e63"] { color: #e91e63 !important; -webkit-text-fill-color: #e91e63 !important; }
body.info2-body .kikirika-header-title.info-page-brand > span[data-kiki-color="#ff4f8b"] { color: #ff4f8b !important; -webkit-text-fill-color: #ff4f8b !important; }
body.info2-body .kikirika-header-title.info-page-brand > span[data-kiki-color="#ffc107"] { color: #ffc107 !important; -webkit-text-fill-color: #ffc107 !important; }
body.info2-body .kikirika-header-title.info-page-brand > span[data-kiki-color="#00a896"] { color: #00a896 !important; -webkit-text-fill-color: #00a896 !important; }
body.info2-body .kikirika-header-title.info-page-brand > span[data-kiki-color="#008fa3"] { color: #008fa3 !important; -webkit-text-fill-color: #008fa3 !important; }
body.info2-body .kikirika-header-title.info-page-brand > span[data-kiki-color="#2a7de1"] { color: #2a7de1 !important; -webkit-text-fill-color: #2a7de1 !important; }
body.info2-body .kikirika-header-title.info-page-brand > span[data-kiki-color="#3f51b5"] { color: #3f51b5 !important; -webkit-text-fill-color: #3f51b5 !important; }
body.info2-body .kikirika-header-title.info-page-brand > span[data-kiki-color="#5e35b1"] { color: #5e35b1 !important; -webkit-text-fill-color: #5e35b1 !important; }
body.info2-body .kikirika-header-title.info-page-brand > span[data-kiki-color="#7b1fa2"] { color: #7b1fa2 !important; -webkit-text-fill-color: #7b1fa2 !important; }
body.info2-body .kikirika-header-title.info-page-brand > span[data-kiki-color="#d81b60"] { color: #d81b60 !important; -webkit-text-fill-color: #d81b60 !important; }
body.info2-body .kikirika-header-title.info-page-brand > span[data-kiki-color="#1e88e5"] { color: #1e88e5 !important; -webkit-text-fill-color: #1e88e5 !important; }
body.info2-body .kikirika-header-title.info-page-brand > span[data-kiki-color="#009688"] { color: #009688 !important; -webkit-text-fill-color: #009688 !important; }
body.info2-body .kikirika-header-title.info-page-brand > span[data-kiki-color="#3949ab"] { color: #3949ab !important; -webkit-text-fill-color: #3949ab !important; }
