/* Grundlayout */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f8;
    color: #333;
    margin: 0;
    padding: 0;

}

header {
    background-color: #0d6efd;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

header nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 1rem;
    font-weight: 500;
}

header nav a:hover {
    text-decoration: none;
}

main {
    padding: 2rem;
}

/* Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

table th, table td {
    padding: 0.75rem 1rem;
    text-align: left;
}

table th {
    background-color: #f1f3f5;
    font-weight: 600;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #e9f0ff;
}

/* Buttons */
a, button {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    margin: 0.2rem 0;
    background-color: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

a:hover, button:hover {
    background-color: #084298;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #f1f3f5;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}

/* Formulare */
form {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    max-width: 600px;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

form input[type="text"],
form input[type="number"],
form input[type="date"],
form select,
form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

form button {
    margin-top: 0.5rem;
}
.badge {
    display: inline-block;
    background-color: #dc3545; /* Rot */
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.15rem 0.5rem;
    border-radius: 50%;
    margin-left: 0.3rem;
    vertical-align: top;
}
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
    font-weight: bold;
}
/* Server-Status */
.load {
    margin: 10px 0;
}
.status {
    margin: 10px 0;
    display: flex;
    padding-left: 5px;
    padding-top: 2px;
}
.dot {
    height: 20px;
    width: 20px; 
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
}
/* Login */
.login-wrapper {
    height: 50vh;
    display:flex;
    justify-content:center;
    align-items:center;
}
.login-container { 
    max-width:300px;
    margin-top:20px;
    padding: 5px 50px;
    display:flex; 
    flex-direction:column;
    justify-content:center;
    align-items:center;
    border: 1px solid #32313594;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}
.login-uname,
.login-pw {
  width: 100%;
  padding: 10px 12px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

/* Hover- und Fokus-Effekte */
.login-uname:focus,
.login-pw:focus {
  border-color: #007BFF;      /* Blau wie bei Bootstrap */
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
  background-color: #f4f6f8;
}
.floating-field {
  position: relative;
  width: 100%;
  margin: 10px 0;
}

.floating-field input {
  width: 100%;
  padding: 12px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-field label {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #999;
  font-size: 14px;
  pointer-events: none;
  transition: all 0.2s ease;
  padding: 0 4px;
}

.floating-field input:focus {
  border-color: #007BFF;
  box-shadow: 0 0 5px rgba(0,123,255,0.4);
}

.floating-field input:focus + label,
.floating-field input:not(:placeholder-shown) + label {
  top: -2px;
  font-size: 12px;
  background: #f4f6f8; /* damit das Label über dem Rand sauber aussieht */
  color: #007BFF;
}

button {
  width: 100%;
  padding: 10px 12px;
  margin-top: 10px;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

button:hover {
  background-color: #0056b3;
}

button:active {
  transform: scale(0.98);
}

.error { 
    color:red; 
}
/* Kunden anlegen*/
.customer_add {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  font-size:26px;
  font-weight:bold;
  color:white;
  background-color: #0d6efd;
  border:none;
  border-radius: 4px;
  text-decoration:none;
  box-shadow:0 2px 5px rgba(0,0,0,0.2);
  transition:background-color 0.2s, transform 0.1s;
}
.customer_add:hover {
    background-color: #084298;
    transform: scale(1.05);
}