body, html {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1; /* wichtig, damit Footer unten bleibt */
}

footer.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: #f8f9fb;
  padding: 24px 40px;
  font-size: 14px;
  color: #444;
  border-top: 1px solid #e2e2e2;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.footer-col {
  flex: 1 1 280px;
  min-width: 240px;
  line-height: 1.6;
}

.footer-col strong {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #222;
}

footer.footer a {
  color: #0074D9;
  text-decoration: none;
}

footer.footer a:hover {
  text-decoration: underline;
}

.page-number {
  text-align: center;
  width: 100%;
  margin-top: 10px;
  color: #999;
  font-size: 12px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f5f7fa;
  color: #333;
}

.container {
  display: flex;
  flex-direction: row;
}

.sidebar {
  width: 240px;
  background-color: #001f3f;
  color: white;
  height: 100vh;
  position: fixed;
  padding: 1rem;
}

.main-content {
  margin-left: 240px;
  padding: 2rem;
  flex-grow: 1;
}

.sidebar h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.sidebar nav a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin: 1rem 0;
}

.card {
  background: white;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.quick-actions .btn {
  background: #0074D9;
  color: white;
  padding: 0.8rem 1.5rem;
  margin: 0.5rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
}

@media (max-width: 768px) {
  .sidebar {
    position: absolute;
    left: -240px;
    transition: left 0.3s ease;
  }

  .sidebar.open {
    left: 0;
  }

  .main-content {
    margin-left: 0;
  }

  .menu-toggle {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #0074D9;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    z-index: 1000;
  }
}

.kunden-suche {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.kunden-suche input[type="text"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  flex: 1;
}

.kunden-suche button,
.kunden-suche .btn {
  background: #0074D9;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}

.kunden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.kunde-card {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  line-height: 1.6;
}

.kunde-card h3 {
  margin: 0 0 8px;
}

.kunden-actions {
  margin-top: 10px;
  font-size: 14px;
}

.kunden-actions a {
  color: #0074D9;
  text-decoration: none;
  margin-right: 6px;
}

@media (max-width: 1024px) {
  .kunde-card {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (max-width: 600px) {
  .kunde-card {
    flex: 1 1 100%;
  }
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem;
  background: #003366;
  color: white;
  font-size: 0.9rem;
}

.footer-col {
  flex: 1;
  padding: 0 1rem;
}

.page-number {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  font-size: 0.8rem;
  color: #ccc;
}

.login-container, .main-content form {
  max-width: 700px;
  margin: auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
}

input[type='text'],
input[type='email'],
input[type='number'],
textarea {
  width: 100%;
  padding: 0.7rem;
  margin: 0.5rem 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}

button {
  background: #0074D9;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}


.sidebar-toggle {
  position: fixed;
  top: 10px;
  left: 10px;
  background: #0074D9;
  color: white;
  border: none;
  padding: 10px 14px;
  font-size: 20px;
  z-index: 1001;
  display: none;
  border-radius: 4px;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 240px;
  height: 100vh;
  background-color: #001f3f;
  color: white;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: left 0.3s ease;
}

.sidebar-header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}
.sidebar .subtitle {
  font-size: 0.85rem;
  color: #bbb;
  margin-bottom: 1.5rem;
}

.sidebar-nav a {
  color: #ccc;
  text-decoration: none;
  margin: 0.6rem 0;
  display: block;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Responsive Mobile Menu */
@media (max-width: 768px) {
  .sidebar {
    left: -250px;
  }
  .sidebar.sidebar-open {
    left: 0;
  }
  .sidebar-toggle {
    display: block;
  }
  .main-content {
    margin-left: 0 !important;
  }
}

.settings-box {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  max-width: 800px;
  margin: auto;
}

.settings-box label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.settings-box input, .settings-box textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 4px;
}

.placeholder-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.placeholder-buttons button {
  background: #0068d0;
  border: none;
  color: #fff;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.placeholder-buttons button:hover {
  background: #004fa7;
}

.save-btn {
  background: #28a745;
  color: white;
  padding: 12px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-top: 15px;
  font-size: 16px;
}

.user-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.user-search input {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-width: 250px;
}

.user-search button, .user-search .btn {
  background: #0074D9;
  color: white;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}

.user-search button:hover,
.user-search .btn:hover {
  background: #005fa3;
}

.user-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.user-table th, .user-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.user-table th {
  background: #f2f2f2;
  font-weight: 600;
}

.user-table td a {
  text-decoration: none;
  color: #0074D9;
}

.form-box {
  background: #fff;
  padding: 24px;
  max-width: 600px;
  margin: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 8px;
}

.form-box form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-box label {
  font-weight: 600;
}

.form-box input[type="text"],
.form-box input[type="email"],
.form-box select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
}

.save-btn {
  background: #28a745;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.error-box {
  background: #ffe6e6;
  color: #a30000;
  padding: 32px;
  max-width: 600px;
  margin: 50px auto;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.error-box h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.error-box p {
  margin-bottom: 20px;
  font-size: 18px;
}

.btn-back {
  background: #0074D9;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.invoice-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.invoice-filter select,
.invoice-filter button,
.invoice-filter .btn {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.invoice-filter .btn {
  background: #0074D9;
  color: white;
  text-decoration: none;
}

.invoice-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.invoice-table th,
.invoice-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.invoice-table th {
  background: #f4f4f4;
  font-weight: bold;
}

.invoice-table td a {
  text-decoration: none;
  color: #0074D9;
}

.kunden-suche {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}
.kunden-suche input[type="text"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  flex: 1;
  min-width: 200px;
  font-size: 16px;
}
.kunden-suche button,
.kunden-suche .btn {
  background: #0074D9;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
}

.kunden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 0 20px;
  justify-content: center;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 20px auto 0; /* top-Abstand hinzugefügt */
}

.kunde-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kunde-card:hover {
  transform: translateY(-5px);
}

.kunde-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #003366;
}

.kunde-card p {
  margin: 5px 0;
  font-size: 0.95rem;
  color: #555;
}

.kunden-actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 14px;
}

.kunden-actions a {
  color: #0074D9;
  text-decoration: none;
  margin-right: 10px;
  font-weight: 600;
}

.kunden-actions a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .kunden-suche {
    flex-direction: column;
    align-items: stretch;
  }
}

.invoice-table {
  overflow-x: auto;
  width: 100%;
}

.invoice-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.invoice-table th,
.invoice-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .invoice-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .invoice-table table {
    font-size: 14px;
    min-width: 500px;
  }

  .invoice-table::-webkit-scrollbar {
    height: 8px;
  }

  .invoice-table::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
  }
}