    /* NEUE, SAUBERE STYLES */
    :root {
      --primary: #00796b; /* Dunkles Türkis */
      --secondary: #004d40; /* Sehr dunkles Grün/Türkis */
      --accent: #23d5ab; /* Helles, leuchtendes Türkis */
      --bg-light: #f4f7f6;
      --card-bg: #ffffff;
      --text-dark: #2c3e50;
      --text-light: #ffffff;
      --border-color: #e0e0e0;
      --shadow: 0 4px 15px rgba(0,0,0,0.08);
      --transition: all 0.3s ease;
    }

    body {
      font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
      background-color: var(--bg-light);
      color: var(--text-dark);
      line-height: 1.6;
      margin: 0;
    }

    header {
      background: var(--card-bg);
      padding: 10px 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: var(--text-dark);
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
      position: sticky;
      top: 0;
      z-index: 1000;
      border-bottom: 1px solid var(--border-color);
    }
    header img { height: 70px; }
    nav { display: flex; gap: 10px; }
    nav a {
      color: #ffffff !important;
      text-decoration: none;
      font-weight: 500;
      padding: 8px 15px;
      border-radius: 8px;
      transition: var(--transition);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    nav a:hover { 
      background-color: rgba(255, 255, 255, 0.1);
      color: #ffffff !important;
    }
    nav a.active {
      background-color: var(--primary);
      color: #ffffff !important;
    }
    
    /* AI Assist Button */
    .ai-btn {
      background: #23d5ab;
      border: none;
      color: white;
      cursor: pointer;
      font-size: 1.1rem;
      margin-left: auto;
      transition: all 0.3s ease;
      border-radius: 50%;
      width: 35px;
      height: 35px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
    }
    .ai-btn:hover { 
      transform: scale(1.2); 
      background: #1fb895;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    /* Professional AI Assistant Modal */
    .ai-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.8);
      backdrop-filter: blur(5px);
      z-index: 9999;
      display: none;
      justify-content: center;
      align-items: center;
      animation: fadeIn 0.3s ease;
    }
    
    .ai-modal-content {
      background: #ffffff;
      width: 90%;
      max-width: 900px;
      max-height: 85vh;
      border-radius: 20px;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      animation: slideUp 0.3s ease;
      border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    
    @keyframes slideUp {
      from { transform: translateY(50px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    
    .ai-modal-header {
      background: #ffffff;
      border-bottom: 1px solid #e1e4e8;
      padding: 1.25rem 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-shrink: 0;
    }
    
    .ai-header-left {
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    
    .ai-icon-wrapper {
      width: 42px;
      height: 42px;
      background: linear-gradient(135deg, #00796b, #004d40);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      color: white;
      box-shadow: 0 2px 8px rgba(0, 121, 107, 0.2);
    }
    
    .ai-header-text h3 {
      margin: 0;
      font-size: 1.1rem;
      font-weight: 600;
      color: #24292e;
      letter-spacing: -0.02em;
    }
    
    .ai-header-text p {
      margin: 0;
      color: #586069;
      font-size: 0.875rem;
      margin-top: 2px;
    }
    
    .ai-close-btn {
      background: transparent;
      border: none;
      color: #586069;
      width: 36px;
      height: 36px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
    }
    
    .ai-close-btn:hover {
      background: #f6f8fa;
      color: #24292e;
    }
    
    .ai-modal-body {
      flex: 1;
      display: flex;
      flex-direction: row; /* WAR column */
      background: #fafbfc;
      overflow: hidden;
      min-height: 0;
    }
    
    /* NEUE Stile für Zwei-Spalten-Layout */
    .ai-main-panel {
      flex: 2; /* 2/3 der Breite */
      display: flex;
      flex-direction: column;
      min-width: 0;
      border-right: 1px solid #e1e4e8;
    }
    
    .ai-sidebar {
      flex: 1; /* 1/3 der Breite */
      background: #ffffff;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      min-width: 320px;
    }
    
    .ai-sidebar-content {
      padding: 1.5rem;
    }

    .ai-sidebar-title {
      font-size: 1rem;
      font-weight: 600;
      color: #24292e;
      padding-bottom: 0.75rem;
      margin-top: 0;
      margin-bottom: 1.5rem;
      border-bottom: 1px solid #e1e4e8;
    }
    
    .ai-chat-container {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      min-height: 0;
    }
    
    .ai-messages {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      min-height: 0;
      scroll-behavior: smooth;
    }
    
    .ai-messages::-webkit-scrollbar {
      width: 6px;
    }
    
    .ai-messages::-webkit-scrollbar-track {
      background: transparent;
    }
    
    .ai-messages::-webkit-scrollbar-thumb {
      background: #d1d5da;
      border-radius: 3px;
    }
    
    .ai-messages::-webkit-scrollbar-thumb:hover {
      background: #959da5;
    }
    
    .ai-message {
      display: flex;
      gap: 1rem;
      animation: messageSlide 0.3s ease;
    }
    
    @keyframes messageSlide {
      from { transform: translateY(20px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    
    .ai-message-bot {
      align-self: flex-start;
    }
    
    .ai-message-user {
      align-self: flex-end;
      flex-direction: row-reverse;
    }
    
    .ai-message-avatar {
      width: 36px;
      height: 36px;
      background: #f6f8fa;
      border: 1px solid #e1e4e8;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #586069;
      flex-shrink: 0;
      font-size: 0.9rem;
    }
    
    .ai-message-bot .ai-message-avatar {
      background: linear-gradient(135deg, #00796b, #004d40);
      border: none;
      color: white;
    }
    
    .ai-message-user .ai-message-avatar {
      background: #0366d6;
      border: none;
      color: white;
    }
    
    .ai-message-content {
      background: white;
      padding: 0.875rem 1.25rem;
      border-radius: 12px;
      max-width: 75%;
      border: 1px solid #e1e4e8;
      font-size: 0.95rem;
      line-height: 1.5;
      color: #24292e;
    }
    
    .ai-message-content p {
      margin: 0 0 0.5rem 0;
    }
    
    .ai-message-content p:last-child {
      margin-bottom: 0;
    }
    
    .ai-message-content strong {
      font-weight: 600;
      color: #000;
    }
    
    .ai-message-user .ai-message-content {
      background: #0366d6;
      color: white;
      border: none;
    }
    
    .ai-message-user .ai-message-content strong {
      color: white;
    }
    
    .ai-upload-zone {
      margin: 0 0 1.5rem 0; /* Geänderter Margin */
      border: 2px dashed #d1d5da;
      border-radius: 8px;
      padding: 1.25rem; /* Verkleinertes Padding */
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
      background: #fafbfc;
    }
    
    .ai-upload-zone:hover {
      border-color: #0366d6;
      background: #f6f8fa;
    }
    
    .ai-upload-zone.dragover {
      background: #e1f5fe;
      border-color: #0366d6;
      border-style: solid;
    }
    
    .ai-upload-content i {
      font-size: 1.5rem; /* Verkleinert */
      color: #0366d6;
      margin-bottom: 0.5rem; /* Verkleinert */
    }
    
    .ai-upload-content p {
      margin: 0.25rem 0;
      font-weight: 500;
      color: #24292e;
      font-size: 0.9rem; /* Verkleinert */
    }
    
    .ai-upload-formats {
      font-size: 0.8rem;
      color: #586069;
    }
    
    .ai-files-list {
      margin: 0 0 1.5rem 0; /* Geänderter Margin */
      background: white;
      border-radius: 10px;
      padding: 1rem;
      border: 1px solid #e1e4e8; /* Hinzugefügt für Konsistenz */
    }
    
    .ai-file-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.5rem;
      border-bottom: 1px solid #eee;
    }
    
    .ai-data-preview {
      margin: 0; /* Geänderter Margin */
      background: white;
      border-radius: 8px;
      border: 1px solid #e1e4e8;
      overflow: hidden;
    }
    
    .ai-data-header {
      background: #f6f8fa;
      padding: 0.875rem 1.25rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid #e1e4e8;
    }
    
    .ai-data-header h4 {
      margin: 0;
      color: #24292e;
      font-size: 0.95rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .ai-data-header h4 i {
      color: #0366d6;
      font-size: 1rem;
    }
    
    .ai-transfer-all-btn {
      background: #28a745;
      color: white;
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 500;
      font-size: 0.875rem;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 0.375rem;
    }
    
    .ai-transfer-all-btn:hover {
      background: #2ea44f;
    }
    
    .ai-transfer-all-btn:active {
      transform: scale(0.98);
    }
    
    .ai-extracted-data {
      padding: 1rem;
      max-height: 250px;
      overflow-y: auto;
    }
    
    .ai-data-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.75rem 1rem;
      margin-bottom: 0.5rem;
      background: #f8f9fa;
      border-radius: 10px;
      transition: all 0.3s;
    }
    
    .ai-data-item:hover {
      background: #e8f5e9;
      transform: translateX(5px);
    }
    
    .ai-transfer-btn {
      background: #00796b;
      color: white;
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 20px;
      cursor: pointer;
      font-size: 0.85rem;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      gap: 0.3rem;
    }
    
    .ai-transfer-btn:hover {
      background: #004d40;
      transform: scale(1.05);
    }
    
    .ai-input-container {
      background: white;
      border-top: 1px solid #e1e4e8;
      padding: 1rem 1.5rem;
      flex-shrink: 0;
    }
    
    .ai-input-wrapper {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 0.75rem;
    }
    
    #aiChatInput {
      flex: 1;
      padding: 0.625rem 1rem;
      border: 1px solid #e1e4e8;
      border-radius: 6px;
      font-size: 0.95rem;
      transition: all 0.2s;
      background: #fafbfc;
    }
    
    #aiChatInput:focus {
      outline: none;
      border-color: #0366d6;
      background: white;
      box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.1);
    }
    
    .ai-upload-btn, .ai-send-btn {
      background: #0366d6;
      color: white;
      border: none;
      width: 38px;
      height: 38px;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
    }
    
    .ai-upload-btn:hover, .ai-send-btn:hover {
      background: #0256c7;
    }
    
    .ai-upload-btn:active, .ai-send-btn:active {
      transform: scale(0.95);
    }
    
    .ai-quick-actions {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }
    
    .ai-quick-btn {
      background: #f6f8fa;
      border: 1px solid #e1e4e8;
      padding: 0.375rem 0.75rem;
      border-radius: 6px;
      cursor: pointer;
      font-size: 0.8rem;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 0.375rem;
      color: #586069;
      font-weight: 500;
    }
    
    .ai-quick-btn:hover {
      background: #e1e4e8;
      color: #24292e;
    }
    
    .ai-quick-btn i {
      font-size: 0.85rem;
    }
    
    .ai-loading {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1rem;
      background: #f0f7ff;
      border-radius: 10px;
      margin: 1rem 0;
    }
    
    .ai-spinner {
      border: 3px solid #f3f3f3;
      border-top: 3px solid #23d5ab;
      border-radius: 50%;
      width: 30px;
      height: 30px;
      animation: spin 1s linear infinite;
      flex-shrink: 0;
    }
    
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    
    /* Wizard Container */
    #co2Survey {
      max-width: 900px;
      margin: 2rem auto;
      background: var(--card-bg);
      border-radius: 12px;
      box-shadow: var(--shadow);
      padding: 2.5rem;
      overflow: hidden;
    }

    h1, h2, h3 { color: var(--secondary); font-weight: 600; }
    h1 { text-align: center; margin-bottom: 2rem; }

    /* Progress Bar */
    .progress-container {
      margin-bottom: 2.5rem;
      display: flex;
      justify-content: space-between;
      position: relative;
    }
    .progress-line {
      position: absolute;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
      height: 4px;
      background: var(--border-color);
      width: 100%;
      z-index: 1;
    }
    #progressBar {
      height: 4px;
      background: var(--primary);
      width: 0%;
      transition: width 0.4s ease;
    }
    .step-indicator {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--border-color);
      display: flex;
      justify-content: center;
      align-items: center;
      color: var(--text-dark);
      font-weight: bold;
      position: relative;
      z-index: 2;
      transition: all 0.4s ease;
      border: 3px solid var(--border-color);
    }
    .step-indicator.active {
      background: var(--text-light);
      border-color: var(--primary);
      color: var(--primary);
    }
    .step-indicator.finish {
      background: var(--primary);
      border-color: var(--primary);
      color: var(--text-light);
    }

    /* Form Styles */
    .form-step { display: none; }
    .form-step.active { display: block; animation: fadeIn 0.5s; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

    .form-group { margin-bottom: 1.5rem; }
    .form-group label {
      display: block;
      margin-bottom: 0.5rem;
      color: var(--text-dark);
      font-weight: 500;
    }
    .form-group input, .form-group select {
      width: 100%;
      padding: 12px;
      border: 1px solid var(--border-color);
      border-radius: 8px;
      transition: var(--transition);
      background-color: #fafafa;
    }
    .form-group input:focus, .form-group select:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.1);
      outline: none;
    }

    /* Scope Sections */
    .scope-section {
      background: var(--bg-light);
      padding: 1.5rem;
      border: 1px solid #e8e8e8;
      border-radius: 10px;
      margin-bottom: 1.5rem;
    }
    .scope-section h3 {
      margin-top: 0;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      position: relative;
      padding-right: 50px;
      gap: 10px;
      font-size: 1.2rem;
    }

    /* Buttons */
    .btn {
      background: var(--primary);
      color: var(--text-light);
      border: none;
      padding: 12px 24px;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .btn:hover { background: var(--secondary); }
    .btn-secondary { background: #e0e0e0; color: var(--text-dark); }
    .btn-secondary:hover { background: #bdbdbd; }
    
    .remove-btn {
      background: #ffebee;
      color: #c62828;
      border: none;
      border-radius: 50%;
      width: 30px;
      height: 30px;
      cursor: pointer;
      margin-left: 10px;
      font-weight: bold;
      line-height: 30px;
      text-align: center;
    }
    .remove-btn:hover { background: #ffcdd2; }
    
    .dynamic-field {
      display: flex;
        flex-wrap: wrap;
      gap: 15px;
      align-items: flex-end;
      margin-bottom: 15px;
      padding: 20px;
      border-radius: 8px;
      background: #fff;
      border: 1px solid #e8e8e8;
    }
    .dynamic-field > div { 
        flex: 1; 
        min-width: 160px;
    }

    .form-navigation {
      margin-top: 2rem;
      display: flex;
      justify-content: space-between;
      border-top: 1px solid var(--border-color);
      padding-top: 1.5rem;
    }
    
    #summaryContent { text-align: center; }
    .ai-data-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.75rem;
      margin-bottom: 0.5rem;
      background: white;
      border: 1px solid #ddd;
      border-radius: 6px;
    }
    
    .ai-transfer-btn {
      padding: 0.5rem 1rem;
      background: #23d5ab;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.9rem;
      transition: all 0.3s;
    }
    
    .ai-transfer-btn:hover {
      background: #1db896;
      transform: translateY(-1px);
    }
    
    .ai-transfer-btn:disabled {
      cursor: not-allowed;
      opacity: 0.7;
    }
    
    .ai-upload-area.dragover {
      background: #f0f8ff;
      border-color: #23d5ab;
    }
    
    @keyframes slideIn {
      from {
        transform: translateX(100%);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }
    
    @keyframes slideOut {
      from {
        transform: translateX(0);
        opacity: 1;
      }
      to {
        transform: translateX(100%);
        opacity: 0;
      }
    }
