/* Globale Resets & Fonts */
body { font-family: 'Segoe UI', Arial, sans-serif; background-color: #f4f7f6; margin: 0; padding: 0; color: #333; }
.container { max-width: 1400px; margin: 20px auto; background: white; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

/* SLT Corporate Header */
.slt-header { background-color: #0082c3; color: white; padding: 0 20px; font-size: 0.95rem; }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 70px; max-width: 1600px; margin: 0 auto; }
.header-left, .header-right { display: flex; align-items: center; gap: 20px; }

/* SLT Logo Box */
.slt-logo { border: 2px solid white; border-radius: 4px; padding: 4px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; margin-right: 15px; }
.logo-slt { font-size: 1.4rem; font-weight: 900; letter-spacing: 2px; }
.logo-sub { font-size: 0.6rem; letter-spacing: 0.5px; }

/* Navigation */
.slt-nav { display: flex; gap: 15px; }
.slt-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 500; transition: 0.2s; padding: 8px 12px; border-radius: 4px; }
.slt-nav a:hover { color: white; background: rgba(255,255,255,0.1); }
.slt-nav a.active { color: white; font-weight: bold; background: rgba(255,255,255,0.2); }

/* Rechte Header-Elemente */
.icon-search { cursor: pointer; opacity: 0.9; }
.icon-search:hover { opacity: 1; }
.header-phone { font-weight: 500; }
.header-user { cursor: pointer; }
.btn-slt-contact { background-color: #1aa3d9; color: white; border: none; padding: 8px 18px; border-radius: 4px; font-weight: bold; font-size: 0.9rem; cursor: pointer; transition: 0.2s; }
.btn-slt-contact:hover { background-color: #158bb9; }

/* Login Screen */
.login-container { display: flex; justify-content: center; align-items: center; height: 100vh; background: #0082c3; }
.login-box { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); text-align: center; width: 350px; }
.login-box input { width: 100%; box-sizing: border-box; margin-bottom: 15px; padding: 10px; border: 1px solid #bdc3c7; border-radius: 4px; font-size: 1rem; }
.login-box button { width: 100%; background: #0082c3; color: white; border: none; padding: 12px; border-radius: 4px; font-weight: bold; font-size: 1.1rem; cursor: pointer; transition: background 0.3s; }
.login-box button:hover { background: #006b9e; }

/* System Banner */
.system-banner { display: flex; gap: 20px; background: #2c3e50; color: white; padding: 12px 20px; font-size: 0.95rem; align-items: center; flex-wrap: wrap; }
.system-banner strong { color: #bdc3c7; }

/* Formulare & Boxen */
h2 { color: #2c3e50; border-bottom: 2px solid #ecf0f1; padding-bottom: 10px; margin-top: 0; }
.form-box { background: #f8f9fa; border: 1px solid #e9ecef; padding: 20px; border-radius: 8px; margin-bottom: 25px; border-left: 5px solid #0082c3; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 10px; }
.form-group { display: flex; flex-direction: column; flex: 1; min-width: 130px; }
label { font-weight: bold; margin-bottom: 5px; font-size: 0.8rem; color: #7f8c8d; text-transform: uppercase; }
input, select { padding: 8px; border: 1px solid #bdc3c7; border-radius: 5px; font-size: 0.95rem; }
button { background: #27ae60; color: white; border: none; padding: 9px 18px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.2s; height: 38px; }
button:hover { background: #2ecc71; }
.btn-delete { background: #e74c3c; padding: 5px 10px; font-size: 0.9rem; height: auto; } .btn-delete:hover { background: #c0392b; }
.btn-adjust { color: white; padding: 5px 10px; font-size: 0.85rem; height: auto; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; margin-right: 2px;}
.btn-minus { background: #e67e22; } .btn-plus { background: #3498db; } .btn-reset { background: #95a5a6; }

/* Tabellen */
table { width: 100%; border-collapse: collapse; margin-top: 10px; margin-bottom: 15px; font-size: 0.95rem;}
th, td { border: 1px solid #bdc3c7; padding: 8px 12px; text-align: left; }
th { background-color: #ecf0f1; color: #2c3e50; }
tr:nth-child(even) { background-color: #f9f9f9; }
tr.dragging { opacity: 0.5; background-color: #e9ecef !important; }

/* Karten */
.display-card { border: 2px solid #bdc3c7; border-radius: 8px; padding: 20px; margin-bottom: 25px; background: white; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.display-card h3 { margin-top: 0; margin-bottom: 15px; color: #2c3e50; border-bottom: none; }
.status-badge { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: 0.85rem; font-weight: bold; background:#ecf0f1; color:#2c3e50;}
.values-box { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 5px; padding: 5px 10px; font-family: monospace; font-size: 0.95rem; }

/* Modal & Logs */
#crew-edit-modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.7); z-index:9999; justify-content:center; align-items:center; }
.modal-content { background:#1a252f; padding:30px; border-radius:12px; width:90%; max-width:600px; color:white; }
.log-console { background: #111; color: #0f0; font-family: monospace; padding: 15px; border-radius: 6px; overflow-y: auto; max-height: 250px; font-size: 0.85rem; margin-bottom: 25px; white-space: pre-wrap;}
.log-table-container { background: white; border: 1px solid #bdc3c7; border-radius: 8px; overflow: hidden; margin-bottom: 25px; }
.log-table-container h3 { margin: 0; padding: 12px 15px; background: #34495e; color: white; font-size: 1rem; border-bottom: none; }
.log-scroll-area { max-height: 400px; overflow-y: auto; }
.log-scroll-area table { margin: 0; border: none; }
.log-scroll-area th { position: sticky; top: 0; }
.log-status-SUCCESS { color: #27ae60; font-weight: bold; }
.log-status-WARN { color: #e67e22; font-weight: bold; }
.log-status-ERROR { color: #c0392b; font-weight: bold; }
.log-status-INFO { color: #2980b9; font-weight: bold; }