


/* =========================================================
   PRIL UI – GLOBAL BASE (FINAL)
   ========================================================= */
#globalBackground{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

body > *:not(#globalBackground){
  position:relative;
  z-index:1;
}

:root{
  --bg:#0b0f14;
  --panel:#151515;
  --panel-soft:#1a1a1a;
  --panel2:#1c1f26;
  --border:#2d2d2d;
  --accent:#00aaff;
  --row-hover:rgba(0,170,255,.12);
  --text:#e5e5e5;
  --muted:#bbbbbb;
  --shadow-glow:0 0 12px #00aaff55;
  --r:10px;
}




/* ---------- ANRUFBAR ---------- */

.incoming-call-bar{
flex:1;
display:flex;
justify-content:center;
align-items:center;

font-weight:800;
font-size:20px;        /* größer */
letter-spacing:0.8px;  /* klarer */

}

.call-box{

padding:6px 16px;
border-radius:6px;

display:flex;
align-items:center;
gap:12px;

font-size:20px;        /* Hauptgröße */
font-weight:900;

text-shadow:0 0 6px rgba(0,0,0,0.6);  /* bessere Lesbarkeit */

}

/* eingehender Anruf */

.call-ringing{
color:#00e0ff;
animation:ringBlink 1s infinite;

text-shadow:
0 0 8px rgba(0,224,255,0.7),
0 0 14px rgba(0,224,255,0.4);

}

/* Gespräch */

.call-active{
color:#3cff8f;

text-shadow:
0 0 8px rgba(60,255,143,0.7),
0 0 14px rgba(60,255,143,0.4);

}

/* verpasst */

.call-missed{
color:#ff4a4a;

text-shadow:
0 0 8px rgba(255,74,74,0.7),
0 0 14px rgba(255,74,74,0.4);

}

@keyframes ringBlink{

0%{opacity:1}
50%{opacity:0.45}
100%{opacity:1}

}


/* ============================= */
/* PRIL GLOBAL SCROLLBAR */
/* ============================= */

*::-webkit-scrollbar{
width:8px;
height:8px;
}

*::-webkit-scrollbar-track{
background:rgba(255,255,255,.04);
border-radius:10px;
}

*::-webkit-scrollbar-thumb{
background:rgba(0,170,255,.45);
border-radius:10px;
box-shadow:0 0 6px rgba(0,170,255,.4);
}

*::-webkit-scrollbar-thumb:hover{
background:rgba(0,170,255,.75);
}



/* ---------- Design Tokens ---------- */
:root{
  --bg:#0b0f14;
  --panel:#151515;
  --panel-soft:#1a1a1a;
  --panel2:#1c1f26;
  --border:#2d2d2d;
  --accent:#00aaff;

  --text:#e5e5e5;
  --muted:#bbbbbb;

  --shadow-glow:0 0 12px #00aaff55;
  --r:10px;
}

/* ---------- Reset ---------- */
html, body{
  background:var(--bg);
}


html,body{
  margin:0;
  padding:0;
  background:
    radial-gradient(circle at 20% 10%, rgba(120,160,190,.18), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(90,130,170,.12), transparent 35%),
    linear-gradient(180deg,#1a1f24,#2a3138);
  color:#fff;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  -webkit-tap-highlight-color:transparent;
  background-attachment:fixed;
}


/* ---------- Layout ---------- */
.container{
  width:1700px;
  height:740px;
  margin:auto;
  padding:30px;
}

.hidden{ display:none !important; }
.muted{ color:var(--muted); }

/* ---------- Typography ---------- */
.headline{
  font-size:30px;
  font-weight:900;
  margin-bottom:25px;
  padding-left:12px;
  border-left:6px solid var(--accent);
}

/* ---------- Navbar ---------- */
.navbar{
  position:sticky;
  top:0;
  z-index:9999;

  background:
    linear-gradient(
      180deg,
      rgba(22,22,22,0.78),
      rgba(14,14,14,0.62)
    );

  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);

  padding:15px 30px;
  border-bottom:1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 8px 28px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.05);

  display:flex;
  justify-content:space-between;
  align-items:center;
}


.navbar::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-12px;
  height:12px;

  background:linear-gradient(
    180deg,
    rgba(0,180,255,0.25),
    rgba(0,180,255,0.06),
    transparent
  );

  pointer-events:none;
}



.navbar-left,
.navbar-right{
  display:flex;
  align-items:center;
  gap:18px;
}

.navbar-title{
  font-size:28px;
  font-weight:900;
  letter-spacing:.4px;
  margin-left:75px;

  color:#f2f2f2;

  text-shadow:
    0 1px 0 rgba(255,255,255,0.55),   /* obere Lichtkante */
    0 2px 0 rgba(0,0,0,0.45),         /* Grundtiefe */
    0 4px 6px rgba(0,0,0,0.45),       /* Volumen */
    0 0 10px rgba(255,255,255,0.3); /* 🔥 leichter Rückschein */

  opacity:1;
}


.user-panel{
  font-size:15px;
  font-weight:700;
  opacity:.85;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;

  height:36px;
  padding:0 14px;

  background:#2b2b2b;
  border:1px solid #444;
  border-radius:6px;

  color:var(--text);
  font-size:14px;
  font-weight:800;

  cursor:pointer;
  user-select:none;

  transition:
    border-color .22s,
    box-shadow .22s,
    transform .22s,
    background .22s;
}


.btn:hover{
  border-color:var(--accent);
  box-shadow:var(--shadow-glow);
  transform:translateY(-3px);
}

/* ---------- Inputs ---------- */
input, select, textarea{
  width:100%;
  padding:12px 14px;
  background:var(--panel-soft);
  border:1px solid var(--border);
  border-radius:8px;
  color:var(--text);
  font-size:15px;
  font-weight:600;
}

input:focus,
select:focus,
textarea:focus{
  border-color:var(--accent);
  outline:none;
}

/* ---------- Cards (generic) ---------- */
.card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:12px;
  padding:20px;
  margin-bottom:25px;
  box-shadow:0 0 8px #00000066;
}

/* ---------- Tables (BASE only) ---------- */
table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}

th, td{
  padding:12px;
  border-bottom:1px solid #1a1a1a;
  text-align:left;
}

th{
  background:#121212;
  font-weight:900;
  color:#e7eef8;
}

/* ---------- Modals ---------- */
.modal{
  position:fixed;
  inset:0;
  background:#00000088;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.modal.hidden{ display:none; }

.modal-content{
  background:#111;
  padding:22px;
  border-radius:12px;
  border:2px solid #00aaff44;
}

/* ---------- AUSBLENDEN FÜR ANDERE ROLLEN ---------- */
i[data-lucide]{
  width:20px;
  height:20px;
  stroke-width:2.2;
  vertical-align:middle;
}

/* Nur Zeichner + Bauleiter dürfen Produktionsänderungen machen */

body:not(.role-zeichner):not(.role-admin):not(.role-bauleiter) #dropzone {
  display:none !important;
}

body:not(.role-zeichner):not(.role-admin):not(.role-bauleiter) #freigabeBtn,
body:not(.role-zeichner):not(.role-admin):not(.role-bauleiter) #terminInput {
  opacity:0.4;
  pointer-events:none;
}

body:not(.role-zeichner):not(.role-admin):not(.role-bauleiter) .vzCheck {
  pointer-events:none;
  opacity:0.4;
}


/* =========================================================
   GLOBAL MAINTENANCE OVERLAY
   ========================================================= */

#maintenanceOverlay{
  position:fixed;
  inset:0;
  background:rgba(11,15,20,.94);
  backdrop-filter:blur(6px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999999;
}

#maintenanceOverlay.active{
  display:flex;
}

.maintenance-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  padding:50px 60px;
  max-width:520px;
  width:90%;
  text-align:center;
  box-shadow:
    0 0 40px rgba(0,0,0,.7),
    0 0 60px rgba(0,170,255,.08);
}

.maintenance-badge{
  display:inline-block;
  padding:6px 14px;
  border-radius:20px;
  font-size:11px;
  font-weight:900;
  letter-spacing:2px;
  background:rgba(218,54,51,.15);
  color:#ff7b72;
  margin-bottom:20px;
  box-shadow:0 0 14px rgba(255,123,114,.4);
}

.maintenance-loader{
  margin:30px auto 0;
  width:40px;
  height:40px;
  border:4px solid rgba(255,255,255,.1);
  border-top:4px solid var(--accent);
  border-radius:50%;
  animation:maintSpin 1s linear infinite;
}

@keyframes maintSpin{
  to{ transform:rotate(360deg); }
}