/* Grundlegende Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    display: flex;
    min-height: 100vh;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.nav-links-header {
    display: flex;
    gap: 24px;
}

.nav-links-header a {
    text-decoration: none;
    color: #586069;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links-header a:hover {
    color: #0366d6;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f6f8fa;
    border-radius: 6px;
    padding: 6px 12px;
    border: 1px solid #e1e4e8;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    padding: 4px;
    width: 200px;
    font-size: 0.9rem;
}

.github-link {
    color: #586069;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Language Selector */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 6px 12px;
    color: #586069;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-button:hover {
    background: #e1e4e8;
    color: #0366d6;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 8px 0;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.language-dropdown.active {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    text-decoration: none;
    color: #586069;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.language-option:hover {
    background-color: #f6f8fa;
    color: #0366d6;
}

.language-option.active {
    background-color: #0366d6;
    color: white;
}

.flag-icon {
    font-size: 1rem;
}

/* Burger Menu für Mobile */
.burger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: #f6f8fa;
    border-right: 1px solid #eaeaea;
    padding: 80px 0 20px 0;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.nav-category {
    border-bottom: 1px solid #e1e4e8;
}

.nav-category-header {
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #24292e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color 0.2s ease;
}

.nav-category-header:hover {
    background-color: #e1e4e8;
}

.nav-category-header .arrow {
    font-size: 0.8rem;
    color: #586069;
    transition: transform 0.2s ease;
}

.nav-category-header .arrow.down {
    transform: rotate(0deg);
}

.nav-category-header .arrow.right {
    transform: rotate(-90deg);
}

.nav-category-items {
    display: none;
    background-color: #fff;
    border-top: 1px solid #e1e4e8;
}

.nav-category.expanded .nav-category-items {
    display: block;
}

.nav-category.expanded .nav-category-header .arrow {
    transform: rotate(0deg);
}

.nav-item {
    display: block;
    text-decoration: none;
    color: #586069;
    padding: 8px 24px 8px 36px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: #f6f8fa;
    color: #0366d6;
}

.nav-item.active {
    background-color: #0366d6;
    color: white;
    font-weight: 500;
    border-left-color: #0366d6;
}

.nav-item.active:hover {
    background-color: #0366d6;
    color: white;
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* Hauptinhalt */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 80px 40px 40px;
    max-width: 800px;
}

/* Language Availability Box */
.language-availability {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 16px;
    margin: 1.5rem 0;
}

.language-availability h4 {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #24292e;
}

.language-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.language-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    color: #586069;
    text-decoration: none;
    transition: all 0.2s ease;
}

.language-badge:hover {
    background: #0366d6;
    color: white;
    border-color: #0366d6;
}

.language-badge.active {
    background: #0366d6;
    color: white;
    border-color: #0366d6;
}

/* Table of Contents */
.toc {
    position: fixed;
    right: 40px;
    top: 100px;
    width: 200px;
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 16px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.toc h3 {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #24292e;
}

.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc li {
    margin-bottom: 6px;
}

.toc a {
    text-decoration: none;
    color: #586069;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    display: block;
    padding: 4px 0;
}

.toc a:hover {
    color: #0366d6;
}

.toc a.active {
    color: #0366d6;
    font-weight: 500;
}

/* Überschriften mit Anker-Links */
h1, h2, h3, h4 {
    position: relative;
    padding-right: 30px;
}

h1:hover .anchor-link,
h2:hover .anchor-link,
h3:hover .anchor-link,
h4:hover .anchor-link {
    opacity: 1;
}

.anchor-link {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #0366d6;
    text-decoration: none;
    font-size: 0.8em;
    padding: 4px;
}

.anchor-link:hover {
    opacity: 1;
}

/* Überschriften */
h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid #eaeaea;
}

h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem 0;
}

/* Absätze und Text */
p {
    margin-bottom: 1rem;
}

/* Code-Blöcke */
pre {
    background-color: #f6f8fa;
    border-radius: 6px;
    padding: 16px;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.45;
    border: 1px solid #e1e4e8;
}

code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background-color: #f6f8fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.9rem;
}

pre code {
    background: none;
    padding: 0;
}

/* Navigation am Seitenende */
.nav-links-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #eaeaea;
}

.nav-links-footer a {
    text-decoration: none;
    color: #0366d6;
    font-weight: 500;
}

.nav-links-footer a:hover {
    text-decoration: underline;
}

/* Listen */
ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Hinweis-Box */
.notice {
    background-color: #f8f9fa;
    border-left: 4px solid #0366d6;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}

/* Edit-Link */
.edit-link {
    display: block;
    margin-top: 2rem;
    text-align: right;
    color: #586069;
    font-size: 0.9rem;
}

.edit-link a {
    color: #0366d6;
    text-decoration: none;
}

.edit-link a:hover {
    text-decoration: underline;
}

/* Share Link */
.share-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 6px 12px;
    color: #586069;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.share-link:hover {
    background: #e1e4e8;
    color: #0366d6;
}

/* Responsive Design */
/* === Mobile Fix: zeige nur den rechtlichen Footer unten === */
/* === Fix: Mobile Footer sichtbar machen === */
@media (max-width: 768px) {
    .toc {
      display: none !important;
    }
  
    .mobile-legal {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background: rgba(250, 250, 250, 0.98);
      backdrop-filter: blur(8px);
      border-top: 1px solid #e5e7eb;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1rem;
      padding: 0.6rem 0.5rem;
      font-size: 12px;
      color: #6b7280;
      z-index: 1000;
    }
  
    .mobile-legal a {
      color: #6b7280;
      text-decoration: none;
      transition: color 0.2s ease;
    }
  
    .mobile-legal a:hover {
      color: #1a73e8;
    }
  
    .mobile-legal p {
      display: none;
    }
  
    .main-content {
      padding-bottom: 70px; /* Platz für Footer */
    }
  }
  

  
















@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 80px 20px 20px;
    }
    
    .nav-links-header {
        display: none;
    }
    
    .burger-menu {
        display: block;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .language-button span {
        display: none;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 12px 16px;
    }
    
    .search-box {
        display: none;
    }
    
    .main-content {
        padding: 70px 16px 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}
.title-with-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.8rem; /* sorgt dafür, dass das Icon optisch zur Schrift passt */
    line-height: 1.2;
}

.copy-icon {
    cursor: pointer;
    font-size: 1.4em; /* größer als Text */
    opacity: 0.6;
    user-select: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.copy-icon:hover {
    opacity: 1;
    transform: scale(1.2);
}


/* === TOC allgemein === */
.toc {
    border-left: 1px solid #e5e7eb;
    background: #fafafa;
    padding: 1rem 1.25rem;
    font-size: 14px;
    color: #4b5563;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  
  .toc h3 {
    margin-top: 0;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
  }
  
  /* === TOC-Rechtsbereich (rechtlicher Mini-Footer) === */
  .toc-legal {
    border-top: 1px solid #e5e7eb;
    margin-top: 1.2rem;
    padding-top: 0.8rem;
    font-size: 12px;
    color: #6b7280;
    opacity: 0.9;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    line-height: 1.6;
  }
  
  .toc-legal a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .toc-legal a:hover {
    color: #1a73e8; /* Google-Blau */
  }
  
  .toc-legal p {
    flex-basis: 100%;
    margin: 0.25rem 0 0 0;
    font-size: 11px;
    opacity: 0.7;
  }
  

  .symbol-number {
    text-align: center;
    margin: 1.5rem 0;
  }
  
  .symbol-icon {
    width: 40px;      /* Größe anpassbar */
    height: auto;
    display: block;
  }
  
  .symbol-number h3 {
    font-size: 1.2rem;
    color: #ff0000;
    margin: 0;
    letter-spacing: 1px;
  }
  