.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.content, .content a, .content p {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}
@media screen and (max-width: 768px) {
        .katex-display {
        overflow-x: auto;
        overflow-y: hidden;
        max-width: 100%;
        padding-bottom: 10px;
    }
.content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Sorgt für weiches Scrollen auf iOS */
    border-collapse: collapse; /* Macht die Rahmen sauberer */
    margin-bottom: 20px;
}
.content th, .content td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    white-space: nowrap; /* Verhindert, dass der Text in den Spalten hässlich umbricht */
}
}
@media screen and (min-width: 769px) {
    .content table {
        width: 100%;
        display: unset;    
    }
    .katex-display {
     
    }
}
.katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding-bottom: 10px; /* Verhindert, dass der Scrollbalken Teile der Formel verdeckt */
}

  #ai-chat-btn { position: fixed; bottom: 20px; right: 20px; background: #2560f5; color: white; border: none; border-radius: 50px; padding: 12px 20px; font-size: 16px; cursor: pointer; box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 9999; }
  #ai-chat-window { 
    display: none; 
    position: fixed; 
    bottom: 70px; 
    right: 20px; 
    width: calc(100% - 40px);
    max-width: 550px;
    height: 95vh;
    max-height: 840px; 
    background: white; 
    border: 1px solid #ccc; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
    flex-direction: column; 
    z-index: 9999; 
    font-family: sans-serif; 
  }
  #ai-chat-header { background: #333; color: white; padding: 10px; border-top-left-radius: 10px; border-top-right-radius: 10px; font-weight: bold; display: flex; justify-content: space-between; align-items: center; }
  #ai-chat-close { cursor: pointer; font-weight: normal; }
  #ai-chat-messages { flex: 1; padding: 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; font-size: 14px; background: #f9f9f9; }
  .msg-user { align-self: flex-end; background: #2560f5; color: white; padding: 8px 12px; border-radius: 15px 15px 0 15px; max-width: 80%; word-wrap: break-word; }
  .msg-bot { align-self: flex-start; background: #e0e0e0; color: #333; padding: 8px 12px; border-radius: 15px 15px 15px 0; max-width: 80%; word-wrap: break-word; }
  #ai-chat-input-area { display: flex; border-top: 1px solid #ccc; }
  #ai-chat-input { flex: 1; padding: 10px; border: none; border-bottom-left-radius: 10px; outline: none; }
  #ai-chat-submit { background: #2560f5; color: white; border: none; padding: 0 15px; border-bottom-right-radius: 0px; cursor: pointer; }
  .msg-bot a { color: #0066cc; text-decoration: underline; }
  .msg-bot a:hover { color: #004499; }
  .darkgrey { color: #777; }
  
  #ai-chat-suggestions, .dynamic-suggestions-wrapper { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    padding: 10px 0; 
  }
  
  /* Initial suggestions need a slightly different padding due to placement */
  #ai-chat-suggestions {
    padding: 10px; 
    background: #fff; 
    border-top: 1px solid #eee; 
  }

  .suggestion-chip { 
    background: #f0f4ff; 
    color: #2560f5; 
    border: 1px solid #2560f5; 
    border-radius: 15px; 
    padding: 6px 12px; 
    font-size: 13px; 
    cursor: pointer; 
    transition: all 0.2s ease-in-out; 
    text-align: left;
  }
  .suggestion-chip:hover { 
    background: #2560f5; 
    color: white; 
  }
.lang-link {
    color: #2560f5;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}
.lang-link:hover {
    color: #004499;
}
#char-counter {
  font-size: 11px;
  color: #888;
  text-align: right;
  padding: 2px 10px 5px 0;
  background: #fff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  pointer-events: none; /* Verhindert, dass der Text Klicks blockiert */
}
ul.child {
    /* Setzt den Pfeil und ein Leerzeichen als Aufzählungszeichen */
    list-style-type: "↳ "; 
    
    /* Passt die Einrückung der gesamten Unterliste an */
    padding-left: 20px; 
}

/* Falls dein Theme die Aufzählungszeichen auf li-Ebene erzwingt: */
li.child {
    list-style-type: "↳ ";
}
