/* ============================================================
   SKYLINE BUSINESS THEME (cleaned)
   ============================================================ */

/* ----------------------------
   Fonts
---------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/inter-v20-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: url("fonts/inter-v20-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/inter-v20-latin-700.woff2") format("woff2");
}

/* ----------------------------
   CSS Variables
---------------------------- */
:root {
  --primary: #a51d2d;        /* Skyline Rot */
  --bg-body: #f4f5f7;
  --text-main: #172b4d;
  --text-muted: #6b778c;
  --border: #dfe1e6;
  --white: #ffffff;

  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ----------------------------
   Base / Layout
---------------------------- */
* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;

  /* Default: center layout (Admin Screen) */
  display: flex;
  justify-content: center;
}

h1 {
font-size: 1.5rem; font-weight: 600; color: #172b4d; margin-bottom: 5px;
}

h2 {
color: #6b778c; font-size: 1.2rem; margin-bottom: 30px; text-transform: uppercase;
}

h3 {
  margin: 0 0 20px;


  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h4{
    margin-top:0; color:#2c3e50; border-bottom: none; margin-bottom: 5px;
}

/* Screens */
#admin-screen {
  display: none;
  width: 100%;
  max-width: 1100px;
  padding: 40px 20px;
}


/* ----------------------------
   Login
---------------------------- */
#login-screen {
  width: 100vw;
  height: 100vh;
  position: fixed;
  z-index: 9999;
  background: linear-gradient(135deg, #172b4d 0%, #0f1c30 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

#login-error{
    color: #d63031; font-size: 0.9rem; margin-top: 15px; display: none;
}

.login-box {
  background: var(--white);
  width: 100%;
  max-width: 460px;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--primary);
  text-align: center;
}

.login-box img{
    display: block; margin: 0 auto 20px auto; max-width: 180px; height: auto;
}

/* ----------------------------
   Header / Cards
---------------------------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  padding: 20px 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

.header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.card {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

.card h3{
    margin-top:0; border-bottom:none; color:#a51d2d; text-transform:uppercase; font-size:1.2rem; margin-bottom:20px;
}


/* ----------------------------
   Timer (Admin)
---------------------------- */
.timer-display {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  margin: 10px 0;
}

.timer-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ----------------------------
   Inputs (Admin)
---------------------------- */
input,
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  background: var(--white);
  color: var(--text-main);
  margin-bottom: 15px;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
}

/* textarea: nicer defaults (admin + modal) */
textarea {
  min-height: 80px;
  max-height: 150px;
  resize: vertical;
  padding: 10px;
}

/* ----------------------------
   Buttons (ONE system)
---------------------------- */
button,
.btn {
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

/* Full width helper (falls du das brauchst) */
.btn-block {
  width: 100%;
}

/* Variants */
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(165, 29, 45, 0.25);
  width: 100%;
  font-size: 1em;
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  border-color: var(--border);
  color: var(--text-main);
  margin-bottom: 20px;
}


.btn-secondary:hover {
  background: #f9fafb;
  border-color: #cbd5e1;
}

.btn-stop {
  background: #172b4d;
  color: var(--white);
}

/* Icon-only buttons */
.btn-icon-only {
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.btn-icon-only:hover {
  background: #f3f4f6;
  color: #111827;
}

.btn-icon-only svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* Login button convenience */
.btn-login {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  margin-top: 10px;
}

/* ----------------------------
   Filter Bar
---------------------------- */
.filter-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bg-body);
  flex-wrap: nowrap; /* no wrap */
}

.filter-select {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
  transition: border 0.2s;

  appearance: none;
  -webkit-appearance: none;
  background-repeat: no-repeat;
  background-position: right 10px top 50%;
  background-size: 10px auto;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236b778c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
}

.filter-select:focus {
  border-color: var(--primary);
}

.btn-reset {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ----------------------------
   Table
---------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

thead {
   border-bottom: 2px solid var(--border);
}

th {
  text-align: left;
  padding: 12px 15px;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

/* ----------------------------
   Tags
---------------------------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tag-item {
  background: var(--bg-body);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-main);
}

.tag-delete {
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.tag-delete:hover {
  color: var(--primary);
}

.tag-delete svg {
  width: 14px;
  height: 14px;
}

/* ----------------------------
   Modal Helpers
---------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.modal-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
  letter-spacing: 0.5px;
}

/* Review Modal */
#review-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 30, 66, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.review-box {
  background: var(--white);
  width: 90%;
  max-width: 600px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease-out;
}

.review-header {
  background: var(--bg-body);
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-content {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.review-footer {
  padding: 20px;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.review-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.review-table th {
  color: var(--text-muted);
  padding: 8px;
  border-bottom: 2px solid #eee;
}

.review-table td {
  padding: 8px;
  border-bottom: 1px solid #eee;
  color: var(--text-main);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Export Modal */
#emp-export-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(23, 43, 77, 0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-box {
  background: var(--white);
  width: 90%;
  max-width: 400px;
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ----------------------------
   Today List
---------------------------- */
.today-list {
  text-align: left;
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.entry {
  background: var(--white);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.entry-time {
  font-weight: 600;
  color: var(--primary);
}

/* ============================================================
   PREMIUM DASHBOARD (Overrides)
   Only active when body has .logged-in
   ============================================================ */
body.logged-in {
  background: #f8fafc !important;
  color: #334155 !important;

  /* Premium layout should NOT be centered flex */
  display: block !important;
  padding: 0 !important;
}

body.logged-in #tracker-screen {
  display: block;
  max-width: 550px;
  margin: 0 auto;
  /* Wir erhöhen den Abstand unten von 40px auf fette 120px! */
  padding: 0 20px 120px; 
}

/* Premium Header */
.dashboard-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 30px;
}

.header-logo {
  height: 60px;
  width: auto;
}

.profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  background: #e2e8f0;
  color: #64748b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Premium Card */
.premium-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
  padding: 35px;
  text-align: center;
  margin-bottom: 30px;
  border: 1px solid var(--white);
}

.premium-card-child {
padding: 50px 20px;
background-color: #f8fafc;
margin-bottom: 50px;
}


/* Premium Timer */
body.logged-in .timer-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.timer-value {
  font-family: "Inter", sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Premium Inputs */
.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
  display: block;
}

/* Der Container für Input & Select (JETZT GLOBAL FÜR MODAL UND TRACKER) */
.soft-input, 
.soft-select {
    width: 100%; 
    padding: 16px 20px 16px 48px; /* 48px Platz links für das Icon */
    height: 56px; /* Zwingend feste Höhe, damit die Zentrierung perfekt ist */
    line-height: 1.2;
    background-color: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem; 
    color: #1e293b; 
    font-weight: 600; /* Etwas kräftiger für Lesbarkeit */
    
    outline: none; 
    transition: all 0.2s ease;
    appearance: none; 
    -webkit-appearance: none; 
    box-sizing: border-box; /* Garantiert, dass die Höhe genau 56px bleibt */
}

/* Wrapper-Klassen für perfekte Icon-Zentrierung */
.soft-input-container,
.soft-select-container {
    position: relative;
    width: 100%;
    display: block; 
}

/* Das Icon millimetergenau zentrieren (Der Goldstandard) */
.soft-input-container svg,
.soft-select-container svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%); /* Zieht das Icon exakt auf die Mitte */
    color: #94a3b8;
    pointer-events: none;
    width: 20px;
    height: 20px;
}

/* Platzhalter Farbe */
.soft-input::placeholder { color: #94a3b8; }

/* --- DROPDOWN PFEIL (Custom) --- */
.soft-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px; 
    cursor: pointer;
}

/* Dropdown-Optionen */
.soft-select option {
    background: #ffffff;
    color: #334155;
    padding: 10px;
    font-family: "Inter", sans-serif;
}


/* Premium Action Buttons */
.btn-action {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.1s, box-shadow 0.2s;
}

.btn-start {
  background: linear-gradient(135deg, var(--primary) 0%, #8a1321 100%);
  color: var(--white);
  box-shadow: 0 10px 20px -5px rgba(165, 29, 45, 0.4);
}

.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(165, 29, 45, 0.5);
}

.btn-start:active {
  transform: scale(0.98);
}

body.logged-in .btn-stop {
  background: #334155;
  color: var(--white);
  box-shadow: 0 10px 20px -5px rgba(51, 65, 85, 0.4);
}

body.logged-in .btn-stop:hover {
  background: #1e293b;
}

/* Premium List */
.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin: 40px 0 15px;
}

.list-entry {
  background: var(--white);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s;
}

.list-entry:hover {
  transform: translateX(5px);
  border-color: #e2e8f0;
}

.entry-main {
  font-weight: 600;
  color: #334155;
}

.entry-sub {
  font-size: 0.8rem;
  color: #94a3b8;
}

body.logged-in .entry-time {
  font-weight: 700;
  color: var(--primary);
}

/* Premium Footer */
.footer-actions {
  margin-top: 40px;
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
  text-align: center;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: var(--primary);
}

/* Weiteres Styling*/
.btn-cancel {
  background: transparent;
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-release {
  background: #a51d2d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(165, 29, 45, 0.3);
}

.copyrighttext{
    margin-top: 25px; font-size: 0.75rem; color: #8898aa;
}

/* Gesamtzeit */
.total-summary {
  padding-top: 20px;
  margin: 10px 0 30px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid #eee;
}

.total-summary__content {
  text-align: right;
}

.total-summary__label {
  display: block;
  font-size: 0.75rem;
  color: #6b778c;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.total-summary__value {
  font-size: 1.5rem;
  color: #a51d2d;
  font-weight: 700;
  font-family: monospace;
}

/* Divider mit negativem Margin wie vorher */
.section-divider {
  border-top: 1px solid #eee;
  margin: 30px -25px;
}

/* Hint Text */
.section-hint {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

/* Manage Row */
.manage-row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.manage-field {
  flex: 1;
  min-width: 200px;
}

.manage-field:nth-child(2) {
  min-width: 150px;
}

.manage-label {
  font-size: 0.8rem;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

/* Selects */
.manage-select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Button (zusätzlich zu .btn-add) */
.manage-button {
  background: #a51d2d;
  border: none;
  padding: 10px 20px;
}

/* Ergebnisbox */
.manage-result {
  padding: 15px;
  background: #f4f5f7;
  border-radius: 4px;
  display: none;              /* wie vorher */
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ddd;
}

.manage-result__text {
  font-weight: bold;
  font-size: 1.1rem;
}

.manage-result__actions {
  display: flex;
  gap: 10px;
}

/* =============================
   ADMIN CARDS
============================= */

.admin-card {
  background: #fff;
  border: 1px solid #dfe1e6;
  border-radius: 6px;
  padding: 25px;
  margin-bottom: 25px;
}

.admin-card--last {
  margin-bottom: 0;
}

.admin-card__title {
  margin-top: 0;
  color: #2c3e50;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* =============================
   ROWS & FIELDS
============================= */

.admin-row {
  display: flex;
  gap: 10px;
}

.admin-row--wrap {
  align-items: center;
  flex-wrap: wrap;
}

.admin-field {
  flex: 1;
  min-width: 150px;
}

/* =============================
   USER GRID
============================= */

.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

/* Optional: spezieller Button Override */

.btn-add--primary {
  background: #a51d2d;
}

/* =============================
   EDIT MODAL
============================= */

.modal {
  display: none;              /* Standard: versteckt */
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(23, 43, 77, 0.6);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.modal-card {
  width: 500px;
  max-width: 90%;
  padding: 30px;
  margin: 0;
  background: #ffffff;
  border-radius: 8px;
  border: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.modal-title {
  margin-top: 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
  padding-bottom: 15px;
  font-size: 1.1rem;
  color: #172b4d;
}

/* Grids */
.modal-grid {
  display: grid;
}

.modal-grid--wide {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.modal-grid--compact {
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

/* Labels */
.modal-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b778c;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Rows */
.modal-row {
  display: flex;
  gap: 10px;
}

/* Inputs */
.modal-input,
.modal-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dfe1e6;
  border-radius: 4px;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  color: #172b4d;
  background: #fff;
  box-sizing: border-box;
}

.modal-input--date {
  flex: 2;
  min-width: 0;
}

.modal-input--time {
  flex: 1;
  min-width: 0;
  text-align: center;
}

/* Select arrow */
.modal-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px auto;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236b778c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
}

.modal-input:focus,
.modal-select:focus,
.modal-textarea:focus {
  border-color: #a51d2d;
}

/* Textarea */
.modal-textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border: 1px solid #dfe1e6;
  border-radius: 4px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
}

/* Footer */
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

/* Danger outline button */
.btn-danger-outline {
  background: none;
  border: 1px solid #fab1a0;
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-add{
  color: var(--bg-body)
}

#mngResult #mngActions a{
  color: var(--text-main);
  text-decoration: none;
  border-radius: 5px;
}

#mngResult #mngActions a:last-of-type{
  color: var(--white);
}

.filter-container select, .admin-row input, .admin-field input {
  margin-bottom: 0;
}
/* ============================================================
   3. MITARBEITER TRACKER (SKYLINE BRANDED)
   Elegant, Weiß, mit Logo-Farben (Rot/Gold).
   ============================================================ */

/* Basis-Reset */

#tracker-screen {
    display: none;
    background-color: #ffffff; 
    
  margin-top: 20px;
    width: 100%;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #334155;
    position: relative;
    overflow-x: hidden;
}

#tracker-screen .dashboard-header {
  margin-bottom: 0;
}

/* --- 1. HEADER (Weiß & Clean) --- */
#tracker-screen .dashboard-header {
    background: #ffffff;
    height: 80px; /* Etwas höher für mehr Luft */
    padding: 0 30px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    /* Keine Linie unten, wirkt moderner. Nur Schatten beim Scrollen (optional) */
    position: sticky; top: 0; z-index: 100;
}

#tracker-screen .header-logo {
    height: 45px; /* Logo darf hier größer sein */
    width: auto;
    filter: none; /* WICHTIG: Originalfarben anzeigen! */
}

/* Menü Button: Dezent dunkelgrau */
#tracker-screen .btn-icon-only {
    color: #334155 !important;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
    background: transparent;
    border: none; cursor: pointer;
}
#tracker-screen .btn-icon-only:hover {
    background: #f8fafc;
    color: #a51d2d !important; /* Wird Rot beim Drüberfahren */
}

/* --- 2. DIE HAUPTKARTE --- */
#view-timer {
    
    margin: 0 auto 0 auto;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

#view-timer .input-group, #view-timer .btn-group, #view-history, #view-export {
padding: 0 20px;
}

#view-history, #view-export{
  margin-top: 20px;
}


#tracker-screen .premium-card {
    background: transparent;
    padding: 0;
    box-shadow: none; border: none;
}

/* TIMER: Dünn, Groß, Dunkel (Beste Lesbarkeit) */
#tracker-screen .timer-label {
    display: block;
    color: #c5b358; /* Dein Logo-Gold als feiner Akzent */
    font-size: 0.8rem; 
    font-weight: 700;
    text-transform: uppercase; 
    letter-spacing: 2px;
    margin-bottom: 10px;
}

#tracker-screen .timer-value {
    font-family: 'Inter', sans-serif; /* Oder deine Systemschrift */
    font-size: 5.5rem; /* Sehr groß */
    font-weight: 200; /* Light Font */
    color: #1e293b; /* Fast Schwarz für Kontrast */
    font-variant-numeric: tabular-nums;
    line-height: 1;

    letter-spacing: -3px;
}

/* --- 3. INPUTS (Modern Box Style - Clean & Stabil) --- */
#tracker-screen .input-group { 
    margin-bottom: 25px; 
    text-align: left; 
    position: relative; /* Wichtig für Icons */
}

#tracker-screen .input-label {
    font-size: 0.75rem; 
    font-weight: 700; 
    color: #64748b; /* Kühles Grau */
    margin-bottom: 8px; 
    display: block; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    margin-left: 5px;
}

/* Der Container für Input & Select */
#tracker-screen .soft-input, 
#tracker-screen .soft-select {
    width: 100%; 
    padding: 16px 20px; /* Schön groß zum Klicken */
    background-color: #f8fafc; /* Sehr helles Grau */
    border: 1px solid #e2e8f0; /* Feiner Rahmen */
    border-radius: 12px; /* Rundere Ecken wirken moderner */
    
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    
    font-size: 1rem; 
    color: #1e293b; 
    font-weight: 500;
    
    outline: none; 
    transition: all 0.2s ease;
    appearance: none; 
    -webkit-appearance: none; 
}

/* Platzhalter Farbe */
#tracker-screen .soft-input::placeholder { color: #94a3b8; }

/* Fokus-Effekt (Wenn man reinklickt) */
#tracker-screen .soft-input:focus, 
#tracker-screen .soft-select:focus {
    background-color: #ffffff;
    border-color: #a51d2d; /* Skyline Rot */
    box-shadow: 0 0 0 4px rgba(165, 29, 45, 0.1); /* Roter Glow */
}

/* --- DROPDOWN PFEIL (Custom) --- */
/* Da wir das Standard-Design entfernt haben, brauchen wir einen eigenen Pfeil */
#tracker-screen .soft-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px; /* Platz für den Pfeil lassen */
    cursor: pointer;
}

/* Dropdown-Optionen (Das Menü selbst) */
#tracker-screen .soft-select option {
    background: #ffffff;
    color: #334155;
    padding: 10px;
    font-family: "Inter", sans-serif; /* Auch hier Inter erzwingen */
}

/* --- 4. BUTTONS (Marken-Farben) --- */
#tracker-screen .btn-action {
    width: 100%; 
    padding: 18px; 
    margin-top: 40px;
    border-radius: 8px;
    border: none; 
    cursor: pointer;
    font-size: 1rem; 
    font-weight: 600; 
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.2s;
    box-shadow: 0 10px 20px -5px rgba(165, 29, 45, 0.2); /* Roter Schimmerschatten */
}

#tracker-screen .btn-start {
    /* Dein Logo Rot */
    background: #a51d2d; 
    color: white;
}
#tracker-screen .btn-start:hover {
    background: #8e1825; /* Etwas dunkler beim Hover */
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(165, 29, 45, 0.3);
}
#tracker-screen .btn-start:active { transform: scale(0.98); }

#tracker-screen .btn-stop {
    background: white;
    color: #a51d2d;
    border: 1px solid #a51d2d;
    box-shadow: none;
}
#tracker-screen .btn-stop:hover {
    background: #fff5f5; /* Ganz leichtes Rot */
}

/* --- 5. SIDEBAR MENÜ (Branded) --- */
#main-menu {
    position: fixed; top: 0; right: 0;
    width: 320px; height: 100%;
    background: #ffffff;
    z-index: 20000;
    /* Neu: Abgerundete Ecken links und kräftigerer Schatten */
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    box-shadow: -15px 0 50px rgba(15, 23, 42, 0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
    overflow: hidden;
}

#main-menu.active { transform: translateX(0); }

/* Overlay */
#menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    /* Neu: Dunkler iOS-Style Blur-Hintergrund */
    background: rgba(15, 23, 42, 0.4); 
    backdrop-filter: blur(8px);
    z-index: 19999;
    opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
#menu-overlay.active { opacity: 1; pointer-events: all; }

.menu-header {
    padding: 30px;
    display: flex; justify-content: space-between; align-items: center;
}
.menu-header span { font-weight: 700; color: #a51d2d; font-size: 1.2rem; } /* Rote Überschrift */

.btn-close-menu { background: none; border: none; font-size: 2rem; cursor: pointer; color: #94a3b8; line-height: 1; }
.btn-close-menu:hover { color: #a51d2d; }

.menu-content { padding: 0 30px; flex-grow: 1; display: flex; flex-direction: column; }

.menu-user {
    margin-bottom: 40px;
    padding: 20px; 
    border: 1px solid #e2e8f0; border-radius: 12px;
    display: flex; align-items: center; gap: 15px;
    background: #fcfcfc;
}
.menu-user-avatar {
    width: 45px; height: 45px; 
    background: #c5b358; /* Goldener Avatar Hintergrund */
    color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem;
}

.menu-item {
    background: transparent; border: none;
    color: #475569; font-size: 1.1rem; font-weight: 500;
    text-align: left; padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 15px;
}
.menu-item:hover { color: #a51d2d; padding-left: 10px; } /* Rutscht leicht nach rechts und wird rot */
.menu-item svg { width: 20px; height: 20px; color: #94a3b8; transition: color 0.2s; }
.menu-item:hover svg { color: #a51d2d; }

.menu-footer { margin-top: auto; padding: 30px 0; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- MONATS-LISTE DESIGN --- */
.month-list {
    display: flex; flex-direction: column; gap: 15px; margin-top: 20px;
}

.month-item {
    background: #ffffff;
    border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 20px;
    display: flex; justify-content: space-between; align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.month-item:hover {
    transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.month-info h4 {
    margin: 0 0 5px 0; font-size: 1rem; color: #1e293b; font-weight: 700;
}

.status-badge {
    display: inline-block; font-size: 0.75rem; padding: 4px 10px;
    border-radius: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.status-pending { background: #fff7ed; color: #c2410c; border: 1px solid #ffedd5; }
.status-signed { background: #f0fdf4; color: #15803d; border: 1px solid #dcfce7; }

.month-actions { display: flex; gap: 10px; }

/* Kleine Buttons */
.btn-mini {
    padding: 8px 12px; font-size: 0.85rem; border-radius: 6px;
    text-decoration: none; cursor: pointer; font-weight: 600; display: flex; align-items: center;
}
.btn-view { background: #f1f5f9; color: #475569; border: none; }
.btn-sign { background: #a51d2d; color: white; border: none; }

/* --- ACTIVE TIMER STATE (Business Style - Fixed) --- */
#timer-main-card.timer-active {
    border-color: #a51d2d;
    box-shadow: 0 25px 50px -12px rgba(165, 29, 45, 0.2);
}

#timer-main-card.timer-active .timer-value {
    color: #a51d2d !important;
    transition: color 0.3s ease;
}

#timer-main-card.timer-active .timer-label {
    color: #a51d2d !important;
    opacity: 1;
    transition: color 0.3s ease;
}
/* ==========================================
   KALENDER PERFORMANCE (GPU-BESCHLEUNIGUNG)
   ========================================== */
#calendar-grid, #emp-calendar-grid, .day-slot-container {
    transform: translateZ(0); 
    will-change: transform, contents; 
}

/* ==========================================
   KALENDER RASTER HOVER EFFEKT
   ========================================== */
.hour-hover {
    transition: background-color 0.2s ease;
}

.hour-hover:hover {
    background-color: rgba(59, 130, 246, 0.08);
}

/* ==========================================
   RESPONSIVE KALENDER HEADER (HANDY DESIGN)
   ========================================== */
.cal-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}
.cal-header-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Wenn der Bildschirm klein ist (Handy) */
@media (max-width: 768px) {
    .cal-header-flex {
        flex-direction: column;       /* Bricht in zwei Zeilen um */
        align-items: flex-start;      /* Linksbündig */
        gap: 15px;                    /* Abstand zwischen Titel und Pfeilen */
    }
    .cal-header-controls {
        width: 100%;                  /* Nimmt die ganze Breite ein */
        justify-content: space-between; /* Schiebt die Pfeile ganz nach außen */
    }
    .cal-header-controls button {
        padding: 10px 20px !important; /* Macht die Knöpfe für Daumen größer */
    }
}
/* ==========================================
   PREMIUM TAGS (KUNDEN & PROJEKTE)
   ========================================== */
.tag-item {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 6px 12px 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}
.tag-item:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}
.tag-delete {
    background: #ffffff;
    color: #ef4444;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.tag-delete:hover {
    background: #fee2e2;
    color: #b91c1c;
    transform: scale(1.15);
}
.tag-delete svg {
    width: 14px;
    height: 14px;
}
/* ==========================================
   VOLLE BILDSCHIRMBREITE (EDGE-TO-EDGE)
   ========================================== */
body, html {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden; /* Verhindert seitliches Scrollen */
}

/* Hauptbereiche auf 100% Breite zwingen */
#admin-screen, 
.view-section {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important; /* Minimaler Abstand zum Monitorrand */
    padding-right: 15px !important;
    box-sizing: border-box;
}

/* Optional: Die Abstände zwischen den Kacheln minimal verkleinern, um noch mehr Platz zu haben */
.view-section > div[style*="grid-template-columns"] {
    gap: 15px !important;
}
/* ==========================================
   PREMIUM TABELLEN & BERICHTE (MONATSABSCHLUSS)
   ========================================== */
.skyline-table-wrapper {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    overflow: hidden; 
    width: 100%;
}

/* Styling für die Dropdowns (Selects) */
.skyline-select {
    height: 42px;
    padding: 0 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #0f172a;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none; /* Entfernt den Standard-Pfeil in manchen Browsern */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 10px auto;
    padding-right: 35px; /* Platz für den neuen Pfeil */
}
.skyline-select:hover, .skyline-select:focus {
    border-color: #a51d2d;
    background-color: #ffffff;
}

/* Status Badges */
.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.5px;
}
.badge-pending { background: #fef3c7; color: #d97706; }
.badge-signed { background: #dcfce7; color: #10b981; }
/* ==========================================
   APP-STYLE KALENDER EVENTS (BUBBLES)
   ========================================== */
#emp-calendar-grid .day-slot-container > div[onclick] {
    border-radius: 10px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05) !important;
    border-left-width: 5px !important;
    padding: 6px 8px !important;
    backdrop-filter: blur(4px);
}
/* ==========================================
   NATIVE APP FEELING (Die letzten 1%)
   ========================================== */

/* 1. Versteckt die Web-Scrollbars (wischen funktioniert natürlich weiterhin!) */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}

/* 2. Verhindert den blauen "Klick-Blitz" beim Tippen auf dem Handy */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 3. Verhindert, dass man App-Elemente aus Versehen als Text markiert */
button, .btn-action, .month-item, .list-entry, .soft-select-container, .soft-input-container {
    user-select: none;
    -webkit-user-select: none;
}