* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
  }
  
  h2 {
    margin-bottom: 20px;
    color: #3498db;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }
  
  .form-section {
    margin-bottom: 40px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-row {
    display: flex;
    gap: 20px;
  }
  
  .form-row .form-group {
    flex: 1;
  }
  
  label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
  }
  
  input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
  }
  
  input:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 3px rgba(52, 152, 219, 0.3);
  }
  
  textarea {
    resize: vertical;
    min-height: 80px;
  }
  
  /* Enhanced logo preview styling */
  .logo-upload {
    display: block;
    margin-bottom: 30px;
  }
  
  #logo-preview {
    margin-top: 10px;
    max-width: 200px;
    max-height: 120px;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  #logo-preview img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
  }
  
  th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }
  
  th {
    background-color: #f9f9f9;
  }
  
  table input {
    width: 100%;
    padding: 8px;
  }
  
  .item-total {
    font-weight: 600;
  }
  
  .remove-item {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .remove-item:hover {
    background-color: #c0392b;
  }
  
  .totals {
    margin-top: 30px;
    margin-left: auto;
    max-width: 300px;
  }
  
  .total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
  }
  
  .total-amount {
    font-weight: 700;
    font-size: 18px;
    color: #2c3e50;
    padding-top: 10px;
    margin-top: 5px;
    border-top: 2px solid #3498db;
  }
  
  button {
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
  }
  
  button:hover {
    background-color: #2980b9;
  }
  
  #add-item {
    margin: 10px 0;
  }
  
  .actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
  }
  
  #preview-invoice {
    background-color: #f39c12;
  }
  
  #preview-invoice:hover {
    background-color: #e67e22;
  }
  
  #preview-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .preview-content {
    background-color: white;
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  .preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
  }
  
  #invoice-preview {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 60px);
  }
  
  #close-preview {
    background-color: #7f8c8d;
  }
  
  #close-preview:hover {
    background-color: #95a5a6;
  }
  
  /* Korrigierte hidden-Klasse mit !important */
  .hidden {
    display: none !important;
  }
  