/* main.css */
/* Hier ist die Grundoptik definiert, welche den gesamten Style der kompletten Webseite vorgeben soll */
/* Alle weiteren css sollen sich an dieser Grundoptik orientieren, sowohl in Style, Optik, Layout als auch Farbgebung */

/* Grundstyling */
*, *::before, *::after { box-sizing: border-box; }
body {
  background: #12151b;
  color: #e0e0e0;
  font-family: 'Inter', Verdana, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

a { color: inherit; text-decoration: none; }

a:hover { text-decoration: underline; }

/* Top Bar */
.top-bar {
  background: linear-gradient(90deg, #1b2735, #273849);
  color: #f5f5f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Content Bereich */
.content {
  flex: 1;
  margin-top: 4rem;
  margin-bottom: 4rem;
  overflow-y: auto;
}

/* Projektliste */
.project-section {
  padding: 1.5rem;
  width: 100%;
  margin: 0; /* Volle Browserbreite ohne zentrierte Begrenzung */
}
.project-section h1 {
  border-bottom: 3px solid #3a4a5a;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  color: #d1d9e6;
}
.project-table {
  width: 100%;
  border-collapse: collapse;
  background: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.project-table th,
.project-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
}
.project-table thead {
  background: #273849;
  color: #e0e0e0;
}
.project-table tbody tr:nth-child(even) { background: #1c2532; }
.project-table tbody tr:nth-child(odd)  { background: #1e293b; }

/* Buttons - oval mit ursprünglichen Farben */
.btn {
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  font-family: 'Inter', Verdana, sans-serif;
}
.btn:last-child { margin-right: 0; }

.login-btn {
  background: linear-gradient(135deg, #415a77, #1f4068);
  color: #f0f0f0;
}

.login-btn:hover {
  background: linear-gradient(135deg, #1f4068, #415a77);
}

/* Rechnungs-Buttons */
.invoice-buttons-group {
  display: inline-flex;
  gap: 0.5rem;
  margin: 0 0.5rem;
  padding: 0.25rem;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

.invoice-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  padding: 0.6rem 1.2rem;
  margin: 0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.invoice-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.quote-btn {
  background: linear-gradient(135deg, #059669, #047857);
  color: white;
  padding: 0.6rem 1.2rem;
  margin: 0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.quote-btn:hover {
  background: linear-gradient(135deg, #10b981, #059669);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.invoice-btn:disabled,
.quote-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {
  .invoice-buttons-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .invoice-btn,
  .quote-btn {
    width: 100%;
    margin-bottom: 0.25rem;
  }
}

  transform: scale(1.05);
}

.edit-btn {
  background: #3282b8;
  color: #fff;
}
.edit-btn:hover {
  background: #0f4c75;
  transform: scale(1.05);
}

.manage-btn {
  background: #1b9aaa;
  color: #fff;
}
.manage-btn:hover {
  background: #09649f;
  transform: scale(1.05);
}

.view-btn {
  background: #56cfe1;
  color: #fff;
}
.view-btn:hover {
  background: #3ca6d0;
  transform: scale(1.05);
}

.new-project-btn {
  background: linear-gradient(135deg, #3a86ff, #265df2);
  color: #fff;
}
.new-project-btn:hover {
  background: linear-gradient(135deg, #265df2, #3a86ff);
  transform: scale(1.05);
}

.new-client-btn {
  background: linear-gradient(135deg, #8338ec, #5f2aae);
  color: #fff;
}
.new-client-btn:hover {
  background: linear-gradient(135deg, #5f2aae, #8338ec);
  transform: scale(1.05);
}

/* Status Labels */
.status {
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: #fff;
  display: inline-block;
}
.status.completed { background: #27ae60; }
.status.draft     { background: #f39c12; }
.status.in-progress { background: #2980b9; }

.provider-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem;
}

/* Footer Bar */
.footer-bar {
  background: linear-gradient(90deg, #1b2735, #273849);
  color: #f5f5f5;
  text-align: center;
  padding: 0.75rem 1.5rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.5);
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 0.5rem;
}
.footer-nav a {
  font-size: 0.9rem;
  position: relative;
  padding: 0 0.25rem;
}
.footer-nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #5dade2;
  transition: width 0.3s;
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
}
.footer-nav a:hover::after {
  width: 100%;
}
