/* ===== Memavio — Shared CSS =====
   Änderungen an Header, Footer, Navigation oder Mobile-Menu NUR HIER vornehmen.
   Seitenspezifische Stile (Hero, Cards, Tabs, Artikel-Typo) bleiben in den jeweiligen HTML-Dateien.
   ===== */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #212121; color: #EDEDED;
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: #CC9472; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header { border-bottom: 1px solid #404040; padding: 1rem 0; }
header .container-wide { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.125rem; font-weight: 700; color: #EDEDED; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.logo:hover { text-decoration: none; }
.header-nav { display: flex; align-items: center; gap: 1.25rem; }
.header-nav a { color: #BFBFBF; font-size: 0.875rem; min-height: 48px; display: flex; align-items: center; }
.header-nav a:hover { color: #EDEDED; text-decoration: none; }
.header-nav .cta-blog { border: 1px solid #CC9472; border-radius: 8px; padding: 0.5rem 1rem; color: #CC9472; font-weight: 500; font-size: 0.875rem; }
.header-nav .cta-blog:hover { background: #CC9472; color: #1a1a1a; text-decoration: none; }
.header-nav .cta-register { background: #CC9472; color: #1a1a1a; border-radius: 8px; padding: 0.5rem 1rem; font-weight: 600; font-size: 0.875rem; }
.header-nav .cta-register:hover { filter: brightness(1.1); text-decoration: none; }
.nav-lang { border: 1px solid #555; border-radius: 6px; padding: 0.25rem 0.625rem; color: #BFBFBF; font-size: 0.8125rem; }
.nav-lang:hover { border-color: #CC9472; color: #EDEDED; text-decoration: none; }

/* Mobile menu — hidden on desktop */
.mobile-menu-header { display: none; }
.header-nav .mobile-only { display: none; }
.header-nav .mobile-lang { display: none; }
.mobile-menu-btn { display: none; background: transparent; border: none; color: #EDEDED; font-size: 1.5rem; min-height: 48px; min-width: 48px; cursor: pointer; }
.mobile-close-btn { display: none; background: transparent; border: none; color: #BFBFBF; font-size: 1.25rem; min-height: 48px; min-width: 48px; cursor: pointer; position: absolute; top: 1rem; right: 1rem; }
.mobile-close-btn:hover { color: #EDEDED; }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }

/* Breadcrumb (Blog-Artikel) */
.breadcrumb { padding: 1rem 0; font-size: 0.875rem; color: #BFBFBF; }
.breadcrumb a { color: #BFBFBF; }
.breadcrumb span { margin: 0 0.5rem; }

/* Article typography (Blog-Artikel) */
article { padding: 1rem 0 3rem; }
article h1 { font-size: 2.25rem; font-weight: 700; line-height: 1.3; margin-bottom: 1.5rem; }
article h2 { font-size: 1.375rem; font-weight: 600; margin: 2.5rem 0 1rem; }
article h3 { font-size: 1.125rem; font-weight: 600; margin: 2rem 0 0.75rem; }
article p { margin-bottom: 1.25rem; }
article strong { font-weight: 600; }
article blockquote { border-left: 3px solid #CC9472; padding: 1rem 1.25rem; background: #2B2B2B; margin: 1.5rem 0; border-radius: 0 4px 4px 0; }
article blockquote p:last-child { margin-bottom: 0; }
article ul, article ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
article li { margin-bottom: 0.5rem; }

/* Subtitle */
.subtitle { color: #BFBFBF; font-size: 0.9375rem; margin-bottom: 2rem; font-style: italic; }

/* Chat examples (Blog-Artikel) */
.chat-container { margin: 1.5rem 0 2rem; }
.chat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #CC9472; margin-bottom: 0.5rem; }
.chat-user { background: #2B2B2B; border: 1px solid #404040; border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 0.5rem; }
.chat-ai { border-left: 3px solid #CC9472; padding: 1rem 1.25rem; background: #2B2B2B; border-radius: 0 4px 4px 0; }
.chat-ai p:last-child { margin-bottom: 0; }

/* Share section (Blog-Artikel) */
.share-section { text-align: center; padding: 1.5rem 0; }
.share-button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; border: 1px solid #404040; color: #BFBFBF;
  border-radius: 6px; padding: 0.625rem 1.25rem;
  font-size: 0.875rem; font-family: inherit; cursor: pointer;
  min-height: 48px; transition: border-color 0.2s, color 0.2s;
}
.share-button:hover { border-color: #CC9472; color: #EDEDED; }

/* Soft-Bridge (nach erstem Chat-Block) */
.soft-bridge { font-size: 0.8125rem; color: #BFBFBF; margin: 0.5rem 0 2rem; }
.soft-bridge a { color: #CC9472; text-decoration: none; }
.soft-bridge a:hover { text-decoration: underline; }

/* CTA section (Blog-Artikel) */
.cta-section { text-align: center; padding: 2.5rem 0; margin-top: 2rem; border-top: 1px solid #404040; }
.cta-button { display: inline-block; background: #CC9472; color: #1a1a1a; font-weight: 600; font-size: 1rem; padding: 0.875rem 2rem; border-radius: 6px; text-decoration: none; min-height: 48px; transition: opacity 0.2s; }
.cta-button:hover { opacity: 0.9; text-decoration: none; }

/* Reading progress indicator */
.reading-progress { position: fixed; top: 0; left: 0; width: 0%; height: 2px; background: #CC9472; z-index: 200; transition: width 0.1s linear; pointer-events: none; }

/* Footer */
footer { border-top: 1px solid #404040; padding: 2rem 0; font-size: 0.8125rem; color: #BFBFBF; }
.footer-disclaimer { margin-bottom: 0.5rem; }
.footer-dev { margin-bottom: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-bottom: 1rem; }
.footer-links a { color: #BFBFBF; min-height: 48px; display: flex; align-items: center; gap: 0.375rem; }
.footer-links a:hover { color: #EDEDED; }
.footer-separator { color: #404040; padding: 0 0.625rem; user-select: none; }
.footer-support { border: 1px solid #CC9472; border-radius: 6px; padding: 0.375rem 0.75rem; color: #CC9472; font-weight: 500; }
.footer-support:hover { background: #CC9472; color: #1a1a1a; text-decoration: none; }
.footer-note { margin-top: 1rem; font-size: 0.75rem; }

/* Article category label (single articles) */
.article-category-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #CC9472;
  margin-bottom: 0.5rem;
}

/* Related articles cards */
.related-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #404040; }
.related-heading { font-size: 0.875rem; font-weight: 600; color: #CC9472; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; }
.related-card { display: block; background: #2B2B2B; border: 1px solid #404040; border-radius: 8px; padding: 1rem 1.25rem; color: #EDEDED; text-decoration: none; transition: border-color 0.2s; min-height: 48px; }
.related-card:hover { border-color: #CC9472; text-decoration: none; }
.related-card-title { font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.related-card-context { font-size: 0.8125rem; color: #BFBFBF; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Mobile */
@media (max-width: 640px) {
  article h1 { font-size: 1.5rem; }
  article h2 { font-size: 1.25rem; }
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
  .mobile-close-btn { display: flex; align-items: center; justify-content: center; }
  .mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-right: 2.5rem; }
  .mobile-menu-header .logo { font-size: 1rem; }
  .mobile-only { display: flex; width: 100%; padding: 0.625rem 0; }
  .nav-lang { display: none; }
  .header-nav {
    display: none; position: fixed; top: 0; left: 0; width: 280px; height: 100vh;
    background: #212121; border-right: 1px solid #404040;
    flex-direction: column; padding: 1.5rem; z-index: 100; gap: 0.25rem;
  }
  .header-nav.open { display: flex; }
  .header-nav a { width: 100%; padding: 0.625rem 0; justify-content: center; text-align: center; }
  .header-nav .cta-blog { width: 100%; justify-content: center; text-align: center; }
  .header-nav .mobile-only {
    border: 1px solid #CC9472;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #CC9472;
    font-weight: 500;
    font-size: 0.875rem;
    justify-content: center;
  }
  .header-nav .mobile-only:hover {
    background: #CC9472;
    color: #1a1a1a;
    text-decoration: none;
  }
  .header-nav .cta-register { width: 100%; text-align: center; display: flex; justify-content: center; margin-top: 0.25rem; }
  .header-nav .mobile-lang { margin-top: auto; border-top: 1px solid #404040; padding-top: 1rem; display: flex; width: 100%; justify-content: center; text-align: center; border: 1px solid #555; border-radius: 8px; padding: 0.5rem 1rem; color: #BFBFBF; font-size: 0.875rem; }
  .header-nav .mobile-lang:hover { border-color: #CC9472; color: #EDEDED; text-decoration: none; }
}
