/* ============================================
   MS Info Channel - Wachstums-Umbau 10/2026
   Wird NACH styles.css geladen. Praefix msx-.
   ============================================ */

:root {
    --msx-bg: #0a1a14;
    --msx-panel: #10261d;
    --msx-panel-2: #153126;
    --msx-line: rgba(255, 255, 255, 0.12);
    --msx-text: #e8efe9;
    --msx-muted: #a9bbb0;
    --msx-gold: #d4af37;
    --msx-gold-2: #e8c65a;
    --msx-ok: #5fd38d;
    --msx-warn: #e8c65a;
    --msx-bad: #ff8a7a;
}

.msx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.msx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Header / Navigation ---------- */
.msx-header .msx-notice { padding: 6px 0; }
.msx-header .medical-disclaimer-text { font-size: 0.78rem; line-height: 1.35; text-align: center; color: var(--msx-text); }
.msx-header .medical-disclaimer-text a { color: var(--msx-gold-2); text-decoration: underline; }
.msx-nav { justify-content: space-between !important; gap: 16px; }
.msx-nav .nav-menu { gap: 4px; }
.msx-nav .nav-link { font-size: 0.95rem; padding: 0.5rem 0.8rem; }
.msx-nav .nav-link.active { background: rgba(212, 175, 55, 0.18); color: var(--msx-gold-2); }
.msx-nav .hamburger { position: static !important; }
@media (min-width: 769px) {
    .msx-nav .hamburger { display: none !important; }
}
@media (max-width: 768px) {
    .msx-header .medical-disclaimer-text { font-size: 0.7rem; text-align: left; }
    .msx-header .medical-disclaimer-icon { display: none; }
    .msx-nav .nav-menu .nav-link { font-size: 1.1rem; }
}

/* ---------- Seitengeruest fuer neue Seiten ---------- */
body[data-msx="new"] { background: var(--msx-bg); color: var(--msx-text); }
.msx-main { padding: 150px 0 0; min-height: 60vh; }
.msx-wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.msx-narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.msx-hero { padding: 56px 0 40px; }
.msx-eyebrow { display: inline-block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--msx-gold); margin-bottom: 12px; font-weight: 600; }
.msx-h1 { font-family: var(--font-heading); font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.15; color: #fff; margin: 0 0 16px; }
.msx-h1 em { color: var(--msx-gold-2); font-style: normal; }
.msx-lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--msx-muted); line-height: 1.6; max-width: 62ch; }
.msx-section { padding: 40px 0; }
.msx-section h2 { font-family: var(--font-heading); font-size: clamp(1.5rem, 3.4vw, 2.1rem); color: #fff; margin: 0 0 12px; }
.msx-section p, .msx-section li { color: var(--msx-text); line-height: 1.7; }
.msx-muted { color: var(--msx-muted) !important; }
.msx-section a:not(.msx-btn):not(.msx-card-link) { color: var(--msx-gold-2); }
.msx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.msx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--msx-line); background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px; transition: transform .15s, background .15s; }
.msx-btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.08); }
.msx-btn-gold { background: linear-gradient(135deg, var(--msx-gold), var(--msx-gold-2)); color: #10261d; border-color: transparent; }
.msx-btn-gold:hover { background: linear-gradient(135deg, var(--msx-gold-2), var(--msx-gold)); }
.msx-btn-spotify { background: #1db954; color: #08210f; border-color: transparent; }
.msx-linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; text-decoration: underline; }

.msx-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.msx-trust li { background: var(--msx-panel); border: 1px solid var(--msx-line); border-radius: 12px; padding: 14px 16px; font-size: 0.92rem; }
.msx-trust strong { display: block; color: var(--msx-gold-2); margin-bottom: 2px; }

.msx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.msx-card { background: var(--msx-panel); border: 1px solid var(--msx-line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.msx-card h3 { font-size: 1.1rem; color: #fff; margin: 0; line-height: 1.35; }
.msx-card p { margin: 0; font-size: 0.95rem; }
.msx-card-link { margin-top: auto; color: var(--msx-gold-2); font-weight: 600; text-decoration: none; }
.msx-card-link:hover { text-decoration: underline; }
.msx-tag { display: inline-block; font-size: 0.72rem; padding: 2px 10px; border-radius: 999px; background: rgba(212, 175, 55, 0.15); color: var(--msx-gold-2); }

/* ---------- Forschung ---------- */
.msx-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; }
.msx-filter input, .msx-filter select { background: var(--msx-panel); color: var(--msx-text); border: 1px solid var(--msx-line); border-radius: 10px; padding: 10px 12px; font: inherit; min-height: 44px; }
.msx-filter input { flex: 1 1 220px; }
.msx-study { background: var(--msx-panel); border: 1px solid var(--msx-line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.msx-study h3 { font-size: 1.1rem; line-height: 1.4; color: #fff; margin: 6px 0 8px; font-weight: 600; }
.msx-study-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 0.82rem; color: var(--msx-muted); align-items: center; }
.msx-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; border: 1px solid var(--msx-line); }
.msx-badge-hoch { color: var(--msx-ok); border-color: rgba(95, 211, 141, .5); }
.msx-badge-mittel { color: var(--msx-warn); border-color: rgba(232, 198, 90, .5); }
.msx-badge-gering, .msx-badge-preprint { color: var(--msx-bad); border-color: rgba(255, 138, 122, .5); }
.msx-study p { margin: 0 0 10px; font-size: 0.97rem; }
.msx-src { font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 8px; border-top: 1px dashed var(--msx-line); }
.msx-src a { color: var(--msx-gold-2); }
.msx-note { background: var(--msx-panel-2); border-left: 3px solid var(--msx-gold); border-radius: 8px; padding: 12px 16px; font-size: 0.9rem; color: var(--msx-text); margin: 16px 0; }

/* ---------- Newsletter ---------- */
.msx-newsletter { margin: 32px 0; }
.msx-newsletter-inner { background: linear-gradient(135deg, #153126, #0f2a20); border: 1px solid rgba(212, 175, 55, .35); border-radius: 18px; padding: clamp(20px, 4vw, 36px); }
.msx-newsletter h2 { font-family: var(--font-heading); color: #fff; margin: 0 0 4px; font-size: clamp(1.4rem, 3.2vw, 2rem); }
.msx-newsletter-sub { color: var(--msx-gold-2); font-weight: 600; margin: 0 0 10px; }
.msx-newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }
.msx-newsletter-form input[type="email"] { background: #0a1a14; color: #fff; border: 1px solid var(--msx-line); border-radius: 999px; padding: 12px 18px; font: inherit; min-height: 48px; min-width: 0; }
.msx-newsletter-form .msx-check, .msx-newsletter-form .msx-form-msg { grid-column: 1 / -1; }
.msx-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--msx-muted); line-height: 1.5; }
.msx-check input { margin-top: 3px; accent-color: var(--msx-gold); width: 18px; height: 18px; flex: none; }
.msx-form-msg { margin: 0; min-height: 1.2em; font-size: 0.9rem; }
.msx-form-msg.ok { color: var(--msx-ok); }
.msx-form-msg.err { color: var(--msx-bad); }
@media (max-width: 600px) { .msx-newsletter-form { grid-template-columns: 1fr; } }

/* ---------- Unterstuetzen ---------- */
.msx-support-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }

/* ---------- Footer ---------- */
.msx-footer .msx-footer-note { font-size: 0.82rem; opacity: .85; }
.msx-footer .msx-social { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.msx-footer .msx-social a { font-size: 0.9rem; }
.msx-footer .footer-links a, .msx-footer .footer-links .msx-linkbtn { display: block; margin: 6px 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.msx-footer .footer-links a:hover, .msx-footer .msx-linkbtn:hover { color: var(--msx-gold-2); }
.msx-footer .footer-links .msx-linkbtn { text-decoration: none; }

/* ---------- Werbehinweis / Themenbox auf Legacy-Seiten ---------- */
.msx-topic-note { background: rgba(212, 175, 55, 0.08); border: 1px solid rgba(212, 175, 55, 0.35); border-radius: 12px; padding: 14px 18px; margin: 0 0 24px; font-size: 0.92rem; line-height: 1.6; color: var(--color-text, #2c3e50); }
body:not([data-theme="light"]) .msx-topic-note { color: #e8efe9; }
.msx-topic-note strong { color: var(--color-gold, #d4af37); }

/* ---------- Consent ---------- */
.msx-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100000; background: #0d221a; color: #e8efe9; border-top: 2px solid var(--msx-gold); padding: 16px; box-shadow: 0 -8px 30px rgba(0, 0, 0, .5); font-family: var(--font-body, Inter, sans-serif); }
.msx-consent-inner { width: min(980px, 100%); margin-inline: auto; display: grid; gap: 12px; }
.msx-consent h2 { font-size: 1.05rem; margin: 0; color: #fff; font-family: inherit; }
.msx-consent p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: #cddad1; }
.msx-consent a { color: var(--msx-gold-2); }
.msx-consent-opts { display: none; gap: 8px; }
.msx-consent-opts.open { display: grid; }
.msx-consent-opts label { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; }
.msx-consent-opts input { margin-top: 3px; accent-color: var(--msx-gold); width: 18px; height: 18px; }
.msx-consent-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.msx-consent-btns button { flex: 1 1 150px; min-height: 44px; border-radius: 10px; border: 1px solid var(--msx-line); background: #153126; color: #fff; font: inherit; font-weight: 600; cursor: pointer; padding: 10px 14px; }
.msx-consent-btns button.primary { background: var(--msx-gold); color: #10261d; border-color: transparent; }
.msx-embed-ph { border: 1px dashed var(--msx-line); border-radius: 12px; background: rgba(0, 0, 0, .35); padding: 18px; text-align: center; color: #e8efe9; font-size: 0.9rem; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; min-height: 152px; }
.msx-embed-ph p { margin: 0; max-width: 52ch; }
.msx-embed-ph button { min-height: 44px; border-radius: 999px; padding: 10px 20px; border: 0; background: #1db954; color: #08210f; font-weight: 700; cursor: pointer; font: inherit; }
