/* ==========================================================================
   FARBEN & VARIABLEN
   ========================================================================== */
:root {
  /* Hauptfarben (Brand Colors: Network Share Mounter) */
  --primary: #7C448E;          /* Deine exakte Hauptfarbe */
  --primary-hover: #542f65;    /* Ein etwas dunkleres Violett für Buttons beim Drüberfahren */
  --primary-dark: #191434;     /* Sehr tiefes Dunkelviolett (für Farbverläufe) */
  --primary-gradient: #8e4fa8; /* Etwas helleres Violett für Verläufe (falls du kein eigenes hast) */
  --primary-light: #f3ebf5;    /* Sehr helles Violett (für Badges & aktive Menüs im Hintergrund) */

  /* Textfarben */
  --text-main: #1a1a2e;        /* Sehr dunkles Blau/Grau für normalen Text */
  --text-muted: #555555;       /* Grau für Untertitel und Beschreibungen */
  --text-light: #777777;       /* Helles Grau für Meta-Infos */

  /* Hintergrundfarben */
  --bg-page: #ffffff;          /* Seitenhintergrund */
  --bg-section: #fafafa;       /* Leicht grauer Hintergrund für abwechselnde Sektionen */
  --border-color: #f0f0f0;     /* Farbe für feine Trennlinien */

  /* macOS Fenster Farben (Dark Mode Optik) */
  --mac-bg: #1e1e2e;
  --mac-titlebar: rgba(42,42,62,0.9); 
  --mac-menubar: #2a2a3e;
  
  /* Ampel-Farben */
  --color-success: #28c840;    /* Grün (Verbunden) */
  --color-warning: #febc2e;    /* Gelb (Wartend) */
  --color-danger:  #ff5f57;    /* Rot (macOS Schließen-Button) */
}

/* ==========================================================================
   BASIS
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif; background: var(--bg-page); color: var(--text-main); }
a { text-decoration: none; transition: all 0.2s ease; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
nav.top-nav { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 6%; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); z-index: 100; }
.logo { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; color: var(--text-main); }
.logo-icon { width: 28px; height: 28px; background: linear-gradient(135deg, var(--primary), var(--primary-gradient)); border-radius: 7px; display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; font-weight: bold; }
.logo-img { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; }

.nav-links { display: flex; gap: 2rem; font-size: 0.9rem; font-weight: 500; align-items: center; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--primary); }
.nav-btn { background: var(--primary); color: white; padding: 0.5rem 1.2rem; border-radius: 8px; font-size: 0.88rem; font-weight: 600; }
.nav-btn:hover { background: var(--primary-hover); }

.lang-switch { display: flex; gap: 0.5rem; background: var(--border-color); padding: 0.2rem 0.5rem; border-radius: 6px; font-size: 0.8rem; }
.lang-switch a { padding: 0.2rem 0.4rem; border-radius: 4px; color: #888; text-transform: uppercase; font-weight: bold; }
.lang-switch a.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* ==========================================================================
   HERO SEKTION
   ========================================================================== */
.hero { display: flex; align-items: center; justify-content: space-between; padding: 6rem 6% 5rem; gap: 4rem; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; }
.hero-text { flex: 1; min-width: 320px; }
.hero-badge { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 0.78rem; font-weight: 700; padding: 0.4rem 1rem; border-radius: 20px; margin-bottom: 1.5rem; letter-spacing: 0.02em; }
h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 1.2rem; color: #0a0a1a; }
h1 span { color: var(--primary); }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; max-width: 500px; }
.hero-meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 2rem; display: flex; gap: 1.5rem; font-weight: 500; flex-wrap: wrap; }
.hero-meta span { display: flex; align-items: center; gap: 6px; }

/* Buttons */
.btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { background: var(--primary); color: white; padding: 0.9rem 2rem; border-radius: 10px; font-size: 0.95rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-secondary { background: #f5f5f7; color: var(--text-main); padding: 0.9rem 1.8rem; border-radius: 10px; font-size: 0.95rem; font-weight: 600; }
.btn-secondary:hover { background: #e8e8ed; }
.btn-ghost { background: transparent; color: var(--primary); padding: 0.9rem 1.5rem; border-radius: 10px; font-size: 0.95rem; font-weight: 600; border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-light); }

/* ==========================================================================
   SCREENSHOTS & MAC MOCKUP
   ========================================================================== */
.hero-visual { flex: 1; display: flex; justify-content: center; min-width: 320px; }
.screenshot-wrap { width: 100%; max-width: 480px; position: relative; }
.mac-frame { background: var(--mac-bg); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.1); }
.mac-titlebar { background: var(--mac-titlebar); padding: 0.8rem 1rem; display: flex; align-items: center; gap: 8px; }
.mac-screen { position: relative; line-height: 0; }
.screenshot-img { width: 100%; height: auto; display: block; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: var(--color-danger); }
.dot-yellow { background: var(--color-warning); }
.dot-green { background: var(--color-success); }
.titlebar-text { font-size: 0.75rem; color: #888; margin-left: 0.5rem; font-weight: 500; }

/* CSS-only Tabs für Screenshots */
.tab-input { display: none; }
.screenshot-img { display: none; }
.screenshot-img:first-child { display: block; } /* Fallback für einzelnes Bild */
#tab-0:checked ~ .mac-frame .screenshot-0, #tab-1:checked ~ .mac-frame .screenshot-1, #tab-2:checked ~ .mac-frame .screenshot-2, #tab-3:checked ~ .mac-frame .screenshot-3 { display: block; }
.screenshot-tabs { display: flex; justify-content: center; gap: 8px; margin-top: 1rem; }
.tab-dot { width: 8px; height: 8px; border-radius: 50%; background: #ccc; cursor: pointer; transition: background 0.2s; }
#tab-0:checked ~ .screenshot-tabs label:nth-child(1), #tab-1:checked ~ .screenshot-tabs label:nth-child(2), #tab-2:checked ~ .screenshot-tabs label:nth-child(3), #tab-3:checked ~ .screenshot-tabs label:nth-child(4) { background: var(--primary); }

/* Alte Mac-Content Dummy-Elemente (falls noch benötigt) */
.menubar-strip { background: var(--mac-menubar); padding: 0.6rem 1rem; display: flex; gap: 0.8rem; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.06); }
.menubar-pill { background: rgba(255,255,255,0.08); color: #aaa; font-size: 0.75rem; padding: 0.25rem 0.8rem; border-radius: 6px; font-weight: 500; }
.menubar-pill.active { background: var(--primary); color: white; }
.mac-content { padding: 1rem; }
.share-item { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0.8rem; border-radius: 8px; margin-bottom: 0.5rem; background: rgba(255,255,255,0.04); }
.share-left { display: flex; align-items: center; gap: 0.8rem; }
.share-icon { font-size: 1.2rem; }
.share-name { color: #e0e0f0; font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.share-path { color: #888; font-size: 0.7rem; }
.share-status { font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 5px; font-weight: 600; }
.status-ok { background: rgba(40,200,64,0.15); color: var(--color-success); }
.status-wait { background: rgba(254,188,46,0.15); color: var(--color-warning); }
.mac-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 0.8rem 0; }
.mac-footer { display: flex; justify-content: space-between; padding: 0 0.2rem; }
.mac-footer-btn { color: #888; font-size: 0.75rem; cursor: pointer; font-weight: 500; }

/* ==========================================================================
   STATISTIKEN (STATS)
   ========================================================================== */
.stats { display: flex; gap: 4rem; justify-content: center; padding: 3rem 6%; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background: var(--bg-section); flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-light); margin-top: 0.3rem; font-weight: 500; }

/* ==========================================================================
   FEATURES
   ========================================================================== */
.features { padding: 6rem 6%; max-width: 1200px; margin: 0 auto; }
.section-label { text-align: center; color: var(--primary); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.section-title { text-align: center; font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem; }
.section-sub { text-align: center; color: var(--text-muted); font-size: 1.1rem; margin-bottom: 4rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { background: var(--bg-section); border: 1px solid #eaeaea; border-radius: 16px; padding: 2rem; transition: transform 0.2s, box-shadow 0.2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-color: #d0e3ff; }
.feature-icon { font-size: 2rem; margin-bottom: 1.2rem; }
.feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--text-main); }
.feature-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* ==========================================================================
   CHANGELOG
   ========================================================================== */
.changelog { padding: 6rem 6%; max-width: 800px; margin: 0 auto; }
.changelog-item { border-left: 3px solid var(--primary); padding: 0 0 3rem 2rem; position: relative; }
.changelog-item:last-child { padding-bottom: 0; }
.version-badge { background: var(--primary); color: white; font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 6px; position: absolute; left: -2.3rem; top: 0; }
.version-date { color: #888; font-size: 0.85rem; display: block; margin-bottom: 0.5rem; font-weight: 500; }
.version-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-main); }
.version-changes { list-style: none; color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }
.version-changes li { margin-bottom: 0.5rem; display: flex; gap: 0.5rem; }
.version-changes li::before { content: "✓"; color: var(--color-success); font-weight: 800; }
.version-badge-old { background: #888; left: -2.1rem; }
.changelog-item-old { border-color: #ccc; }

/* ==========================================================================
   CALL TO ACTION (CTA)
   ========================================================================== */
.cta { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; text-align: center; padding: 6rem 6%; }
.cta h2 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1.2rem; }
.cta p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.btn-white { background: white; color: var(--primary); padding: 1rem 2.5rem; border-radius: 10px; font-weight: 700; margin: 0.5rem; display: inline-block; font-size: 1rem; }
.btn-white:hover { background: var(--primary-light); }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.4); color: white; padding: 1rem 2.5rem; border-radius: 10px; font-weight: 600; margin: 0.5rem; display: inline-block; font-size: 1rem; }
.btn-outline-white:hover { border-color: white; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { background: var(--text-main); color: var(--text-light); text-align: center; padding: 3rem 6%; font-size: 0.9rem; }
footer a { color: #0099ff; font-weight: 500; }
footer a:hover { color: #66b3ff; }

/* ==========================================================================
   DOKUMENTATION
   ========================================================================== */
.docs-wrapper { display: grid; grid-template-columns: 280px 1fr; max-width: 1200px; margin: 0 auto; gap: 3rem; padding: 3rem 6%; }
.docs-sidebar { position: sticky; top: 100px; height: calc(100vh - 120px); }
.docs-nav { display: flex; flex-direction: column; gap: 0.5rem; align-items: stretch; }
.docs-nav a { color: var(--text-muted); padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.95rem; font-weight: 500; text-align: left; display: block; }
.docs-nav a:hover { background: #f5f5f7; color: var(--primary); }
.docs-nav a.active { background: var(--primary-light); color: var(--primary); font-weight: 700; }

.docs-content { max-width: 800px; }
.prose h1 { font-size: 2.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.prose h2 { font-size: 1.8rem; margin: 2.5rem 0 1rem; }
.prose p { line-height: 1.7; color: var(--text-main); margin-bottom: 1.2rem; }
.prose ul, .prose ol { margin-bottom: 1.2rem; padding-left: 1.5rem; line-height: 1.7; color: var(--text-main); }
.prose li { margin-bottom: 0.5rem; }
/* Inline Code (einzelne Backticks) */
.prose code {
  background: #f0f0f0;
  padding: 0.2em 0.45em;
  border-radius: 5px;
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 0.875em;
  color: #d63384;
  white-space: nowrap;
}

/* Code-Blöcke (dreifache Backticks) */
.prose .highlight {
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e1e4e8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.prose .highlight pre {
  margin: 0;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  background: #f6f8fa !important; /* github-style */
}

/* Kopfzeile mit Sprachen-Label (optional, aber schön) */
.prose .highlight-wrapper {
  position: relative;
}

/* Zeilennummern (wenn lineNos = true) */
.prose .highlight .ln {
  color: #999;
  user-select: none;
  margin-right: 1rem;
}

/* Kein doppeltes Styling für Code innerhalb von Blöcken */
.prose .highlight code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
  white-space: pre;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Handy / Tablet)
   ========================================================================== */
@media (max-width: 900px) {
  .docs-wrapper { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; height: auto; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .hero { flex-direction: column; text-align: center; padding-top: 3rem; }
  .hero-meta, .btns { justify-content: center; }
  .nav-links { display: none; }
}

/* Footer Erweiterung für Impressum */
.legal-links {
  margin-top: 1rem;
  font-size: 0.8em;
}
.legal-links a {
  color: var(--text-light);
}
.legal-links a:hover {
  color: var(--primary-gradient);
}
.dot-separator {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* Sichtbarer Fokus für Tastatur-Navigation (WCAG Pflicht) */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

