/* ==========================================================================
   Reset & Base Styles
   ==========================================================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
  }
  
  /* ==========================================================================
     Login Page Styles
     ==========================================================================
  */
  .login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }
  
  .login-wrapper {
    width: 100%;
    max-width: 400px;
  }
  
  .login-header {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  .logo-icon {
    background-color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: white;
  }
  
  .login-header h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 0.5rem;
  }
  
  .subtitle {
    color: #64748b;
    margin-bottom: 0.25rem;
  }
  
  .version {
    font-size: 0.75rem;
    color: #94a3b8;
  }
  
  .login-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  .card-header {
    padding: 1.5rem 1.5rem 0;
    text-align: center;
  }
  
  .card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
  }
  
  .card-header p {
    color: #64748b;
    font-size: 0.875rem;
  }
  
  .login-form {
    padding: 1.5rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
  }
  
  .password-wrapper {
    position: relative;
  }
  
  .password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
  }
  
  .login-btn {
    width: 100%;
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .login-btn:hover {
    background-color: #b91c1c;
  }
  
  .error-message {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
  }
  
  .security-info,
  .demo-info {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    padding: 1.5rem;
  }
  
  .security-info {
    border-top: 1px solid #e5e7eb;
  }
  
  /* ==========================================================================
     Dashboard: Header, Navigation & Layout
     ==========================================================================
  */
  .dashboard-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
  }
  
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .logo-text h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
  }
  
  .logo-text p {
    font-size: 0.875rem;
    color: #64748b;
  }
  
  .header-right,
  .header-left,
  .logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .avatar {
    width: 2rem;
    height: 2rem;
    background-color: #dc2626;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
  }
  
  .user-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 14rem;
    z-index: 50;
    display: none;
  }
  
  .user-dropdown.show {
    display: block;
  }
  
  /* ==========================================================================
     Projects Table, Cards, and Buttons
     ==========================================================================
  */
  .projects-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
  }
  
  .projects-table th,
  .projects-table td {
    padding: 12px 15px;
    text-align: left;
  }
  
  .projects-table thead {
    background: #dc2626;
    color: white;
  }
  
  .projects-table tbody tr:hover {
    background-color: rgba(204, 0, 0, 0.2);
    cursor: pointer;
  }
  
  .btn-create-project {
    margin-top: 30px;
    padding: 12px 20px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
  }
  
  .btn-create-project:hover {
    background: rgb(205, 85, 85);
  }
  
  /* ==========================================================================
     Responsive Layouts
     ==========================================================================
  */
  @media (max-width: 768px) {
    .header-content,
    .dashboard-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }
  
    .search-wrapper input {
      width: 100%;
    }
  }
  
  @media (max-width: 480px) {
    .dashboard-main {
      padding: 1rem;
    }
  
    .projects-table th,
    .projects-table td {
      padding: 0.5rem;
    }
  }
  .project-slide {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
  }
  
  .project-slide.open {
    right: 0;
  }
  
  .slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
  }
  
  .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
  }
  
  .slide-content {
    padding: 1rem;
    overflow-y: auto;
    flex-grow: 1;
  }
  /* Ab Hier "NEUE PROJEKTE*/

  .form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
  }
  
  input[type="submit"],
  .btn-red {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem; /* gleiche Schriftgröße */
    font-family: inherit; /* gleiche Schriftart */
    line-height: 1.5;
    height: 44px; /* gleiche Höhe erzwingen */
    cursor: pointer;
    border: none;
    text-decoration: none;
    text-align: center;
    display: inline-flex; /* damit vertical alignment klappt */
    align-items: center;  /* zentriert Text vertikal */
    justify-content: center;
    background-color: #cc0000;
    color: white;
    transition: background-color 0.3s ease;
  }
  
  input[type="submit"]:hover,
  .btn-red:hover {
    background-color: #990000;
  }
  

  .tabs {
    display: flex;
    border-bottom: 2px solid #ccc;
    margin-bottom: 1rem;
  }
  
  .tab-btn {
    background: none;
    border: none;
    padding: 14px 25px;       /* mehr Padding für größere Tabs */
    cursor: pointer;
    font-weight: bold;
    font-size: 1.3rem;        /* größere Schrift */
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s, background-color 0.3s;
  }
  
  .tab-btn:hover {
    background-color: #f0f0f0;
  }
  
  .tab-btn.active {
    border-color: #cc0000;    /* roter Akzent für aktiven Tab */
    color: #cc0000;
    background-color: #fff;
  }
  
  .header-section {
    margin-bottom: 1rem;
    font-style: italic;
    color: #666;
  }
  
  .form-section {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .box {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 1rem;
    background: #fafafa;
    flex: 1;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
  }
  
  .box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #cc0000;
  }
  
  .box label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
  }
  
  .box input, 
  .box select {
    width: 100%;
    padding: 6px 8px;
    font-size: 1rem;
    border: 1px solid #bbb;
    border-radius: 4px;
  }
  
  .volume-table-container {
    overflow-x: auto;
    margin-bottom: 1rem;
  }
  
  .volume-table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .volume-table th, 
  .volume-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    min-width: 70px;
  }
  
  .volume-table input[type=number] {
    width: 100%;
    box-sizing: border-box;
  }
  