  body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      height: 100vh;
      overflow: hidden;
      /* Verhindert Scrolling auf Körperebene */
  }

  .header {
      background-color: #2c3e50;
      color: white;
      padding: 15px;
      text-align: center;
      font-size: 1.5em;
      font-weight: bold;
  }

  .content-container {
      display: flex;
      flex: 1;
  }

  .liste {
      width: 250px;
      background-color: #f5f5f5;
      /* border-right: 1px solid #ddd; */
      overflow-y: auto;
      max-height: calc(100vh - 60px);
      /* Höhe abzüglich Header-Höhe */
  }

  .liste-header {
      background-color: #34495e;
      color: white;
      padding: 10px;
      font-weight: bold;
      text-align: center;
  }

  .liste-content {
      padding: 0;
  }

  .file-section {
      margin-bottom: 15px;
  }

  .section-header {
      background-color: #ecf0f1;
      padding: 5px 10px;
      font-weight: bold;
      border-bottom: 1px solid #ddd;
  }

  .file-list {
      list-style-type: none;
      padding: 0;
      margin: 0;
  }

  .file-list li {
      padding: 8px 10px;
      border-bottom: 1px solid #eee;
      cursor: pointer;
  }

  .file-list li:hover {
      background-color: #e0e0e0;
  }

  .file-list li.active {
      background-color: #3498db;
      color: white;
  }

  .lang-form-container {
      flex: 1;
      padding: 0;
      display: flex;
      flex-direction: column;
      max-height: calc(100vh - 60px);
      /* Höhe abzüglich Header-Höhe */
  }

  .lang-form {
      max-width: 800px;
      padding: 0 var(--btnHeight) var(--btnHeight) 20px;
      /* Etwas Platz am Ende des Formulars */
      overflow-y: auto;
      flex: 1;
  }

  .form-header {
      font-size: 1.2em;
      padding: 20px 20px 10px 20px;
      margin-bottom: 0;
      border-bottom: 1px solid #ddd;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
      flex-wrap: wrap;
      background-color: #fff;
      position: sticky;
      top: 0;
      z-index: 10;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .form-title {
      font-weight: bold;
      min-width: 220px;
  }

  .form-controls {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      min-width: 0;
  }

  #aktualisierenBtn {
      background-color: #3498db;
      color: white;
      border: none;
      padding: 8px 15px;
      border-radius: 4px;
      cursor: pointer;
  }

  .insert-logo-btn {
      background-color: #5b9b43;
      color: white;
      border: none;
      padding: 8px 15px;
      border-radius: 4px;
      cursor: pointer;
      font-weight: 600;
  }

  .insert-logo-btn:hover {
      background-color: #4c8538;
  }

  .form-row {
      display: flex;
      margin-bottom: 15px;
      padding: 10px;
      border-bottom: 1px solid #eee;
  }

  .form-row:hover {
      background-color: #f9f9f9;
  }

  .element-id {
      flex: 0 0 200px;
      font-weight: bold;
      padding-top: 8px;
  }

  .type-badge {
      display: block;
      font-size: 0.8em;
      padding: 2px 6px;
      border-radius: 3px;
      margin-top: 5px;
      font-weight: normal;
      width: fit-content;
  }

  .type-badge.placeholder {
      background-color: #e74c3c;
      color: white;
  }

  .type-badge.text {
      background-color: #3498db;
      color: white;
  }

  .element-content {
      flex: 1;
      min-width: 0;
  }

  .element-content textarea {
      width: 98%;
      min-height: 60px;
      padding: 8px;
      border: 1px solid #ddd;
      border-radius: 4px;
  }

  .pell-container {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
  }

  .pell-content {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      overflow-x: hidden;
      overflow-y: auto;
      overflow-wrap: anywhere;
      word-break: normal;
      white-space: normal;
  }

  .pell-content p {
      max-width: 100%;
      overflow-wrap: anywhere;
  }

  .language-selector {
      display: flex;
      align-items: center;
      margin-right: 15px;
  }

  .search-selector {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-right: 8px;
  }

  .search-selector input {
      width: clamp(170px, 26vw, 300px);
      min-width: 0;
      padding: 6px 10px;
      border: 1px solid #cdd3d9;
      border-radius: 999px;
  }

  .language-selector select {
      padding: 5px;
      margin-left: 10px;
  }

  .save-btn {
      background-color: #2ecc71;
      color: white;
      border: none;
      padding: 8px 15px;
      border-radius: 4px;
      cursor: pointer;
      margin-left: 10px;
      display: none;
      /* Einzelne Speichern-Buttons ausblenden */
  }

  .save-btn:hover {
      background-color: #27ae60;
  }

  .save-all-btn {
      background-color: #3498db;
      color: white;
      border: none;
      padding: 8px 15px;
      border-radius: 4px;
      cursor: pointer;
      margin-left: 15px;
      font-weight: bold;
  }

  .save-all-btn:hover {
      background-color: #2980b9;
  }

  .save-all-btn:disabled {
      background-color: #95a5a6;
      cursor: not-allowed;
      opacity: 0.75;
  }

  .status-message {
      padding: 10px 20px;
      margin: 0;
      border-radius: 0;
      display: none;
      position: sticky;
      top: 81px;
      /* Position direkt unter dem Header */
      z-index: 9;
  }

  .success {
      background-color: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
  }

  .error {
      background-color: #f8d7da;
      color: #721c24;
      border: 1px solid #f5c6cb;
  }

  .info {
      background-color: #cce5ff;
      color: #004085;
      border: 1px solid #b8daff;
  }

  .bapBtn {
      width: 80px;
      height: 40px;
      border: none;
      margin: 1rem;
      border-radius: 8px;
      background-color: green;
      color: white;
      font-weight: 600;
      font-size: 24px;
      cursor: pointer;
      margin: 0 auto;
  }


  /* JS-Scan Elemente hervorheben */
.form-row[data-new-item="true"] {
    background-color: #e8f4f8;
    border-left: 4px solid #17a2b8;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 4px;
    position: relative;
}

/* Textarea in JS-Elementen */
.form-row[data-new-item="true"] textarea {
    background-color: #e8f4f8 !important;
    border-left: 4px solid #17a2b8 !important;
    border-radius: 3px;
}

/* Hover-Effekt für JS-Elemente */
.form-row[data-new-item="true"]:hover {
    background-color: #d1ecf1;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.15);
    transition: all 0.2s ease;
}

/* Element-ID Bereich für JS-Elemente */
.form-row[data-new-item="true"] .element-id {
    background-color: #bee5eb;
    padding: 6px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
}

/* Badge für JS-Markierung (falls du das hinzufügst) */
.form-row[data-new-item="true"]::before {
    content: "JS";
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #17a2b8;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.vscode-link {
    display: inline-block;
    /* margin-left: 5px; */
    margin-top: 7px;
    padding: 2px 6px;
    background-color: #535253;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 10px;
}

.vscode-link:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.translate-btn {
    background-color: #17a2b8;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 5px;
}

.translate-btn:hover {
    background-color: #138496;
}

.translate-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.search-section .section-header {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.search-results li {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
}

.search-results li.search-result-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #eef2ff;
    color: #1e3a8a;
    font-weight: 700;
    border-top: 1px solid #dbeafe;
}

.search-results li.search-result-item {
    padding-left: 16px;
}

.search-results li .search-result__title {
    font-weight: 600;
    font-size: 13px;
    color: #1e40af;
}

.search-results li .search-result__context {
    color: #475569;
    font-size: 12px;
    line-height: 1.3;
    word-break: break-word;
}

.form-row.search-selected {
    outline: 2px solid #1d4ed8;
    background-color: #eff6ff;
}

.pell-content .inline-logo-wrap,
.element-content textarea + .pell-container .inline-logo-wrap {
    display: inline-block;
    height: 1em;
    line-height: 1;
    vertical-align: -0.12em;
    white-space: nowrap;
}

.pell-content .inline-logo-wrap img,
.element-content textarea + .pell-container .inline-logo-wrap img {
    display: block;
    height: 90% !important;
    width: auto !important;
    max-width: none !important;
}
